@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ==========================================
   VARIABLES & DESIGN SYSTEM
   ========================================== */
:root {
  /* Colors */
  --bg-dark: #070913;
  --bg-dark-secondary: #0d1127;
  --primary: #6366f1; /* Indigo */
  --primary-glow: rgba(99, 102, 241, 0.15);
  --accent-cyan: #06b6d4; /* Cyan */
  --accent-cyan-glow: rgba(6, 182, 212, 0.15);
  --accent-whatsapp: #25d366; /* WhatsApp Green */
  --accent-whatsapp-hover: #1ebd5a;
  --text-white: #f8fafc;
  --text-normal: #cbd5e1;
  --text-muted: #64748b;
  --card-bg: rgba(13, 17, 39, 0.6);
  --card-border: rgba(255, 255, 255, 0.06);
  --card-border-glow: rgba(99, 102, 241, 0.3);
  
  /* Fonts */
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions & Shadows */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
  --glass: backdrop-filter: blur(12px);
}

/* ==========================================
   BASE & RESET
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-normal);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  bottom: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-white);
  font-weight: 700;
  line-height: 1.25;
}

p {
  margin-bottom: 1.25rem;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary);
}

ul {
  list-style: none;
}

/* ==========================================
   BUTTONS & ACTIONS
   ========================================== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.button.primary {
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  color: var(--text-white);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
  filter: brightness(1.1);
}

.button.whatsapp {
  background: linear-gradient(135deg, var(--accent-whatsapp), #128c7e);
  color: var(--text-white) !important;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
}

.button.whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  filter: brightness(1.1);
}

.button.fit {
  width: 100%;
}

.button:not(.primary):not(.whatsapp) {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-white);
  backdrop-filter: blur(5px);
}

.button:not(.primary):not(.whatsapp):hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* ==========================================
   HEADER / NAVIGATION
   ========================================== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4rem;
  transition: var(--transition);
  background: transparent;
  border-bottom: 1px solid transparent;
}

#header.scrolled {
  background: rgba(7, 9, 19, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  height: 70px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

#header h1 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

#header h1 a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-white);
  font-weight: 800;
}

#header h1 a img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

#nav {
  display: flex;
  align-items: center;
}

#nav > ul {
  display: flex;
  gap: 2rem;
}

#nav > ul > li > a {
  color: var(--text-normal);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.5rem 0;
  position: relative;
}

#nav > ul > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
  transition: var(--transition);
}

#nav > ul > li > a:hover {
  color: var(--text-white);
}

#nav > ul > li > a:hover::after {
  width: 100%;
}

/* Mobile Menu Toggle button */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-white);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 105;
  transition: var(--transition);
}

/* ==========================================
   MOBILE NAV DRAWER
   ========================================== */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--bg-dark-secondary);
  border-left: 1px solid var(--card-border);
  z-index: 101;
  padding: 6rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(15px);
}

.mobile-nav-drawer.active {
  right: 0;
}

.mobile-nav-drawer ul {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-drawer ul a {
  color: var(--text-normal);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-drawer ul a:hover {
  color: var(--text-white);
  padding-left: 0.5rem;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================
   HERO / BANNER
   ========================================== */
#banner {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8rem 2rem 4rem;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(13, 17, 39, 0.8) 0%, var(--bg-dark) 100%);
}

#banner::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  animation: pulse-glow 8s infinite alternate;
}

#banner .inner {
  max-width: 900px;
  z-index: 10;
  animation: fade-in-up 1s ease-out;
}

#banner h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-white) 30%, #a5b4fc 60%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#banner p {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-normal);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  font-weight: 350;
}

#banner .actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

#banner .more {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

#banner .more::after {
  content: '↓';
  font-size: 1.25rem;
  color: var(--accent-cyan);
  animation: bounce 2s infinite;
}

/* ==========================================
   SECTIONS GENERAL
   ========================================== */
.wrapper {
  padding: 7rem 4rem;
  position: relative;
}

.wrapper.special {
  text-align: center;
}

.wrapper .inner {
  max-width: 1200px;
  margin: 0 auto;
}

.wrapper header.major {
  margin-bottom: 4.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.wrapper header.major h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.wrapper header.major p {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 400;
}

/* ==========================================
   SECTION ONE: AREAS OF EXPERTISE
   ========================================== */
#one {
  background: var(--bg-dark-secondary);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.icons.major {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.icons.major li {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  min-width: 160px;
  flex: 1 1 180px;
  max-width: 220px;
  transition: var(--transition);
}

.icons.major li:hover {
  transform: translateY(-5px);
  border-color: var(--card-border-glow);
  box-shadow: 0 10px 25px var(--primary-glow);
  background: rgba(20, 27, 45, 0.8);
}

.icons.major li .icon {
  font-size: 2rem;
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.icons.major li .label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-white);
  text-align: center;
}

/* ==========================================
   SECTION TWO: SPOTLIGHTS (SERVICES)
   ========================================== */
#two {
  padding: 0;
}

.spotlight {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--card-border);
  min-height: 500px;
}

.spotlight:nth-child(even) {
  flex-direction: row-reverse;
}

.spotlight .image {
  flex: 1;
  height: 550px;
  position: relative;
  overflow: hidden;
}

.spotlight .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.spotlight:hover .image img {
  transform: scale(1.05);
}

.spotlight .content {
  flex: 1;
  padding: 4.5rem;
}

.spotlight h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.spotlight h2::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
  border-radius: 2px;
}

.spotlight p {
  font-size: 1.05rem;
  color: var(--text-normal);
  margin-bottom: 1.5rem;
}

.spotlight ul:not(.actions) {
  margin-bottom: 2rem;
}

.spotlight ul:not(.actions) li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.spotlight ul:not(.actions) li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-weight: 800;
}

/* AI Highlight spotlight special styles */
.spotlight.ai {
  background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
              radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.12) 0%, var(--bg-dark) 100%);
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
}

.spotlight.ai h2 {
  background: linear-gradient(135deg, #a5b4fc, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.spotlight.ai h2::after {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-whatsapp));
}

.spotlight.ai ul:not(.actions) li::before {
  content: '⚡';
  color: var(--accent-cyan);
}

.spotlight.ai .actions {
  margin-bottom: 2.5rem;
}

/* English Version Sub-card in AI Spotlight */
.ai-english-block, .ai-data-privacy-block {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--primary);
  border-radius: 0 12px 12px 0;
  margin-bottom: 1.5rem;
}

.ai-data-privacy-block {
  border-left-color: var(--accent-cyan);
}

.ai-english-block h3, .ai-data-privacy-block h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--text-white);
}

.ai-english-block p, .ai-data-privacy-block p {
  font-size: 0.9rem;
  color: var(--text-normal);
  margin-bottom: 0.75rem;
}

/* ==========================================
   SECTION THREE & AI CASES: FEATURES GRID
   ========================================== */
#three, #ai-use-cases {
  background: var(--bg-dark);
  border-bottom: 1px solid var(--card-border);
}

#ai-use-cases {
  background: var(--bg-dark-secondary);
  border-bottom: 1px solid var(--card-border);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.features li {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 2.5rem;
  border-radius: 16px;
  text-align: left;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.features li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
  opacity: 0;
  transition: var(--transition);
}

.features li:hover {
  transform: translateY(-8px);
  border-color: var(--card-border-glow);
  box-shadow: var(--shadow-lg);
  background: rgba(20, 27, 45, 0.7);
}

.features li:hover::before {
  opacity: 1;
}

.features li .feature-icon {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.features li h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.features li p {
  color: var(--text-normal);
  font-size: 0.95rem;
  margin-bottom: 0;
  flex-grow: 1;
}

/* Custom styles for AI cases list */
.features.ai-cases li::before {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-whatsapp));
}

.features.ai-cases li:hover {
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.15);
}

#ai-use-cases footer {
  margin-top: 4rem;
}

/* ==========================================
   CTA SECTION
   ========================================== */
#cta {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  padding: 6rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--card-border);
}

#cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 55%);
  pointer-events: none;
}

#cta .inner {
  max-width: 800px;
  margin: 0 auto;
  z-index: 2;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

#cta h2 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

#cta p {
  font-size: 1.15rem;
  color: var(--text-normal);
  max-width: 600px;
}

#cta .actions {
  display: flex;
  gap: 1.5rem;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}

#cta .actions li {
  flex: 0 1 240px;
}

/* ==========================================
   FOOTER
   ========================================== */
#footer {
  background-color: var(--bg-dark);
  padding: 6rem 4rem 3rem;
  border-top: 1px solid var(--card-border);
}

#footer .inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand h2 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 350px;
}

.footer-links h3, .footer-contact h3 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-links h3::after, .footer-contact h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary);
}

.footer-contact p {
  color: var(--text-normal);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact p a {
  color: var(--text-normal);
}

.footer-contact p a:hover {
  color: var(--accent-cyan);
}

.footer-socials {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-normal);
  font-size: 1.1rem;
  transition: var(--transition);
}

.footer-socials a:hover {
  background: var(--primary);
  color: var(--text-white);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px var(--primary-glow);
}

.footer-bottom {
  border-top: 1px solid var(--card-border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-bottom .copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-bottom .copyright a {
  color: var(--text-muted);
}

.footer-bottom .copyright a:hover {
  color: var(--text-white);
}

.footer-bottom .privacy-link {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--accent-cyan);
  font-weight: 500;
}

.footer-bottom .privacy-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* ==========================================
   WHATSAPP FLOATING BUTTON
   ========================================== */
.whatsapp-button {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 65px;
  height: 65px;
  background-color: var(--accent-whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
  animation: pulse-border 2s infinite;
}

.whatsapp-button img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.whatsapp-button:hover {
  transform: scale(1.1) rotate(5deg);
  background-color: var(--accent-whatsapp-hover);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes pulse-glow {
  0% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

@keyframes pulse-border {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================== */
@media screen and (max-width: 1100px) {
  #header {
    padding: 0 2rem;
  }
}

@media screen and (max-width: 980px) {
  .wrapper {
    padding: 5rem 2rem;
  }
  
  .spotlight {
    flex-direction: column !important;
  }
  
  .spotlight .image {
    width: 100%;
    height: 350px;
  }
  
  .spotlight .content {
    width: 100%;
    padding: 3rem 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-brand p {
    max-width: 100%;
  }
}

@media screen and (max-width: 768px) {
  #nav > ul {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
  
  #banner .actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  
  #cta .actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin: 0 auto;
  }
  
  #cta .actions li {
    flex: 1 1 auto;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
