/* ================================================================
   HYP — styles.css  (versión 2)
   GUÍA RÁPIDA:
   COLORES         → :root (~línea 30)
   NAV GLASSMORPHISM → sección "NAVEGACIÓN"
   HERO BG IMAGE   → busca "HERO IMAGE" en este archivo
   CURSOR          → sección "CURSOR PERSONALIZADO"
   VALUE CARDS     → sección "PROPUESTA DE VALOR"
   SERVICE CARDS   → sección "SERVICIOS"
   GLOBO           → sección "GLOBO 3D"
   WHATSAPP        → sección "WHATSAPP"
   REDES SOCIALES  → sección "REDES SOCIALES"
   AI BG IMAGE     → busca "AI IMAGE"
   ================================================================ */

/* ── VARIABLES GLOBALES ───────────────────────────────────────── */
:root {
  --c-bg:         #F4F3EF;
  --c-bg-alt:     #ECEAE3;
  --c-dark:       #080C17;
  --c-dark-2:     #0C1120;
  --c-text:       #0A0B10;
  --c-muted:      #797C8C;
  --c-blue:       #1A46F0;   /* Acento principal — CAMBIAR AQUI */
  --c-blue-lt:    #5B8AFF;
  --c-blue-glow:  rgba(26, 70, 240, 0.16);
  --c-border:     rgba(10, 11, 16, 0.09);
  --c-border-dk:  rgba(255, 255, 255, 0.09);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Outfit', system-ui, sans-serif;

  --sp-section:   128px;
  --container-max: 1240px;
  --container-pad: 36px;
  --radius-card:  18px;
  --radius-btn:   8px;
  --shadow-sm:    0 2px 16px rgba(10, 11, 16, 0.06);
  --shadow-md:    0 6px 36px rgba(10, 11, 16, 0.10);
  --shadow-hover: 0 20px 60px rgba(10, 11, 16, 0.20);
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast:       0.18s;
  --t-smooth:     0.36s;
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── CONTENEDOR ─────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ================================================================
   CURSOR PERSONALIZADO
   Círculo blanco con mix-blend-mode: difference.
   → Aparece negro sobre fondos claros, blanco sobre fondos oscuros.
   → Se agranda al pasar sobre elementos interactivos.
   
   PARA QUITAR: borra esta sección y el div#cursor en index.html
   ================================================================ */
* { cursor: none; }

.cursor {
  position: fixed;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #ffffff;
  pointer-events: none;
  z-index: 99999;
  /* El mix-blend-mode invierte el color automáticamente */
  mix-blend-mode: difference;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.20s cubic-bezier(0.23, 1, 0.32, 1),
              width 0.20s, height 0.20s;
  will-change: transform, left, top;
}
/* Cursor grande al hover de elementos interactivos */
.cursor--hover {
  transform: translate(-50%, -50%) scale(2.4);
}
/* Cursor comprimido al hacer click */
.cursor--click {
  transform: translate(-50%, -50%) scale(0.7);
}
/* En mobile: ocultar cursor y restaurar el cursor del sistema */
@media (hover: none) {
  .cursor { display: none; }
  * { cursor: auto; }
  a, button { cursor: pointer; }
}

/* ================================================================
   NAVEGACIÓN — VIDRIO PAVONADO (GLASSMORPHISM)
   La barra siempre tiene efecto glass, adaptándose al fondo.
   ================================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  /* GLASS OSCURO (sobre hero) */
  background: rgba(8, 12, 23, 0.30);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--t-smooth) var(--ease),
              border-color var(--t-smooth) var(--ease),
              padding var(--t-smooth) var(--ease);
}
/* GLASS CLARO (al hacer scroll fuera del hero) — vidrio translúcido */
.nav.is-scrolled {
  background: rgba(180, 178, 173, 0.42);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom: 1px solid rgba(10, 11, 16, 0.08);
  padding: 12px 0;
}

.nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex; align-items: center; gap: 0;
  justify-content: space-between;
}

/* LOGO */
.nav__logo { display: flex; align-items: center; flex-shrink: 0; }
/* TAMAÑO DEL LOGO EN EL NAV — CAMBIAR height */
.nav__logo-img { height: 32px; width: auto; filter: invert(1); opacity: 0.92; }
.nav.is-scrolled .nav__logo-img { filter: invert(0); }
.nav__logo-text {
  font-family: var(--font-display); font-size: 20px; font-weight: 600; color: #fff;
}
.nav.is-scrolled .nav__logo-text { color: var(--c-text); }

/* LINKS DE SECCIÓN EN EL NAV */
.nav__links {
  display: flex; align-items: center; gap: 6px;
  margin: 0 auto;
}
.nav__link {
  font-size: 13px; font-weight: 400; letter-spacing: 0.02em;
  color: rgba(255,255,255,0.65);
  padding: 6px 14px; border-radius: 100px;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav__link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav.is-scrolled .nav__link { color: var(--c-muted); }
.nav.is-scrolled .nav__link:hover { color: var(--c-text); background: rgba(10,11,16,0.06); }

/* TOGGLE IDIOMA */
.nav__right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.lang-toggle { display: flex; align-items: center; gap: 4px; }
.lang-btn {
  background: none; border: none; cursor: none;
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.38); transition: color var(--t-fast); padding: 2px 4px;
}
.lang-btn.active { color: rgba(255,255,255,0.92); }
.lang-btn:hover  { color: #fff; }
.nav.is-scrolled .lang-btn { color: var(--c-muted); }
.nav.is-scrolled .lang-btn.active { color: var(--c-text); }
.lang-sep { color: rgba(255,255,255,0.20); font-size: 10px; }
.nav.is-scrolled .lang-sep { color: var(--c-border); }

/* BOTÓN CTA DEL NAV */
.btn--nav {
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.88);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 9px 18px; font-size: 13px; font-family: var(--font-body);
  font-weight: 500; border-radius: var(--radius-btn); display: inline-flex;
  align-items: center; white-space: nowrap; transition: all var(--t-fast);
}
.btn--nav:hover { background: rgba(255,255,255,0.18); color: #fff; }
.nav.is-scrolled .btn--nav {
  background: var(--c-text); color: var(--c-bg); border-color: transparent;
}
.nav.is-scrolled .btn--nav:hover { background: #2A2A2A; }

/* ================================================================
   BOTONES GLOBALES
   ================================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: var(--radius-btn);
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  letter-spacing: 0.02em; cursor: none; border: none;
  transition: all var(--t-fast) var(--ease);
  white-space: nowrap; position: relative; text-decoration: none;
}
.btn--primary { background: var(--c-blue); color: #fff; }
.btn--primary:hover {
  background: #1038D8; transform: translateY(-3px);
  box-shadow: 0 14px 40px var(--c-blue-glow);
}
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  background: transparent; color: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.20);
}
.btn--ghost:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.45); color: #fff; }
.btn--outline-white {
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.60);
  transform: translateY(-3px);
}
.btn--full { width: 100%; }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden; background: var(--c-dark);
}

/* ── IMAGEN DE FONDO DEL HERO ──────────────────────────────────
   PARA ACTIVAR: descomenta el div .hero__img-bg en index.html
   Luego edita el url() abajo con el nombre de tu archivo.
   
   DIMENSIONES: Desktop 1920×1080px  /  Mobile: ver @media abajo
   ─────────────────────────────────────────────────────────────── */
.hero__img-bg {
  position: absolute; inset: 0; z-index: 0;
  /* CAMBIAR IMAGEN AQUI — pon el nombre de tu archivo */
  background: url('../images/hero-bg.jpg') center center / cover no-repeat;
  /* El overlay oscuro garantiza legibilidad del texto */
  /* CAMBIAR OPACIDAD DEL OVERLAY: el 0.72 controla qué tan oscuro */
}
.hero__img-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(8,12,23,0.72) 0%,
    rgba(8,12,23,0.50) 60%,
    rgba(8,12,23,0.30) 100%
  );
}
/* HERO IMAGE MOBILE — imagen alternativa para celular */
/* PARA ACTIVAR: descomenta la línea de background abajo */
@media (max-width: 768px) {
  .hero__img-bg {
    /* IMAGEN MOBILE — reemplaza hero-bg-mobile.jpg con tu archivo */
    /* Dimensiones: 768×1024px (portrait) */
    /* background: url('../images/hero-bg-mobile.jpg') center top / cover no-repeat; */
  }
}

/* Fondo animado (orbes) — sobre la imagen si existe */
.hero__bg { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.hero__orb {
  position: absolute; border-radius: 50%; filter: blur(90px);
  animation: orbDrift 12s ease-in-out infinite;
}
/* ORB 1 — azul eléctrico — CAMBIAR COLORES AQUI */
.hero__orb--1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(26,70,240,0.42) 0%, transparent 70%);
  top: -180px; right: -100px;
  animation-duration: 13s; animation-delay: 0s;
}
/* ORB 2 — azul profundo */
.hero__orb--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(10,28,110,0.55) 0%, transparent 70%);
  bottom: 60px; left: -80px;
  animation-duration: 10s; animation-delay: -4s;
}
/* ORB 3 — acento suave */
.hero__orb--3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(91,138,255,0.24) 0%, transparent 70%);
  top: 45%; left: 38%;
  animation-duration: 15s; animation-delay: -8s;
}
@keyframes orbDrift {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(30px,-26px) scale(1.05); }
  66%      { transform: translate(-20px,18px) scale(0.96); }
}
.hero__grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* Contenido del hero — limitado a la izquierda para dar espacio al globo */
.hero .container { position: relative; z-index: 3; }
.hero__content {
  padding: 148px 0 88px;
  /* Texto ocupa la parte izquierda; el globo queda detrás a la derecha */
  max-width: 900px;
}

.hero__eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--c-blue-lt); margin-bottom: 28px;
}
.hero__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-blue-lt); flex-shrink: 0;
  animation: dotPulse 2.2s ease-in-out infinite;
}
@keyframes dotPulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.4; transform:scale(0.65); } }

/* TÍTULO HERO — CAMBIAR font-size */
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(56px, 8.5vw, 108px);
  font-weight: 600; line-height: 0.95; letter-spacing: -0.028em;
  color: #FAFAF8; margin-bottom: 28px;
}
.hero__title em { font-style: italic; color: var(--c-blue-lt); }

.hero__subtitle {
  font-size: 17px; font-weight: 300; line-height: 1.72;
  color: rgba(255,255,255,0.52); max-width: 490px; margin-bottom: 48px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__scroll { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); z-index: 3; }
.hero__scroll-line {
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.32), transparent);
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine { 0%,100% { opacity:0.3; } 50% { opacity:0.75; } }

/* ================================================================
   GLOBO 3D — 20% más grande que la versión anterior
   Puede cortarse arriba, abajo y a la derecha.
   El lado izquierdo de la esfera NUNCA debe cortarse.
   CAMBIAR right para mover izquierda/derecha
   CAMBIAR width/height para hacer más grande/pequeño
   ================================================================ */
.hero__globe {
  position: absolute;
  /* right negativo = se puede cortar por la derecha. CAMBIAR este valor */
  right: -15%;
  top: 50%;
  transform: translateY(-50%);
  /* 20% más grande: de 54vw → 65vw. CAMBIAR para ajustar tamaño */
  width: 65vw; height: 65vw;
  max-width: 940px; max-height: 940px;
  z-index: 2;
  /* Semitransparente detrás del texto */
  opacity: 0.60;
  pointer-events: none;
  /* NO poner overflow:hidden aquí — el hero lo hace */
}
@media (max-width: 1024px) {
  .hero__globe { width: 60vw; height: 60vw; right: -12%; opacity: 0.42; }
}
@media (max-width: 768px) {
  .hero__globe {
    width: 95vw; height: 95vw;
    max-width: 440px; max-height: 440px;
    right: auto; left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.14; top: 40%;
  }
}

/* ================================================================
   CARRUSEL DE LOGOS
   VELOCIDAD: cambia animation-duration en .logos-track
   TAMAÑO LOGOS: cambia height en .logo-item img
   OPACIDAD: cambia opacity en .logo-item img
   ================================================================ */
.logos-section {
  padding: 52px 0; background: var(--c-bg);
  border-bottom: 1px solid var(--c-border); overflow: hidden;
}
.logos-label-wrap { text-align: center; margin-bottom: 28px; }
.logos-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--c-muted);
}
.logos-carousel {
  width: 100%; overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.logos-track {
  display: flex; width: max-content;
  /* VELOCIDAD — más alto = más lento */
  animation: logoScroll 40s linear infinite;
}
.logos-track:hover { animation-play-state: paused; }
.logos-list { display: flex; align-items: center; gap: 72px; padding: 0 36px; }
.logo-item img {
  height: 44px; width: auto;
  filter: grayscale(100%); opacity: 0.45;
  transition: opacity var(--t-smooth);
}
.logo-item img:hover { opacity: 0.85; }
.logo-ph {
  display: inline-flex; align-items: center; height: 44px; padding: 0 20px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.10em;
  color: var(--c-border); border: 1px dashed var(--c-border); border-radius: 4px;
}
@keyframes logoScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ================================================================
   ENCABEZADOS DE SECCIÓN
   ================================================================ */
.section-header { margin-bottom: 72px; }
.section-tag {
  display: inline-block; font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--c-blue); margin-bottom: 18px;
}
.section-tag--glow { color: var(--c-blue-lt); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 600; line-height: 1.06; letter-spacing: -0.025em; color: var(--c-text);
}
.section-title em { font-style: italic; color: var(--c-blue); }

/* ================================================================
   PROPUESTA DE VALOR — Hover: 3D tilt + spotlight de luz
   Las variables --mx y --my las actualiza script.js con el mouse.
   ================================================================ */
.value-section { padding: var(--sp-section) 0; background: var(--c-bg); }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--c-border); }

.value-card {
  background: var(--c-bg); padding: 56px 44px;
  position: relative; overflow: hidden;
  transition: box-shadow var(--t-smooth) var(--ease);
}

/* Spotlight: gradiente radial que sigue el cursor */
.value-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(26, 70, 240, 0.11) 0%,
    transparent 65%
  );
  opacity: 0; transition: opacity 0.45s var(--ease);
  pointer-events: none; z-index: 0;
}

/* Línea inferior que se expande al hover */
.value-card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--c-blue) 0%, var(--c-blue-lt) 100%);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.value-card:hover::before { opacity: 1; }
.value-card:hover::after  { transform: scaleX(1); }
.value-card:hover {
  box-shadow: var(--shadow-hover);
  z-index: 1;
}

.value-card__icon {
  position: relative; z-index: 1;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--c-bg-alt);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-blue); margin-bottom: 28px;
  transition: background var(--t-smooth), transform var(--t-smooth),
              box-shadow var(--t-smooth);
}
.value-card:hover .value-card__icon {
  background: rgba(26,70,240,0.10);
  transform: scale(1.12) rotate(-3deg);
  box-shadow: 0 8px 24px var(--c-blue-glow);
}

.value-card__title {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-size: 26px; font-weight: 600;
  line-height: 1.20; letter-spacing: -0.01em; margin-bottom: 14px;
  transition: color var(--t-smooth);
}
.value-card:hover .value-card__title { color: var(--c-blue); }

.value-card__desc {
  position: relative; z-index: 1;
  font-size: 15px; line-height: 1.78; color: var(--c-muted);
}

/* ================================================================
   SERVICIOS — "Lo que hacemos, con precisión"
   Animación de entrada en cascada con rotación + escala
   ================================================================ */
.services-section { padding: var(--sp-section) 0; background: var(--c-bg-alt); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.service-card {
  background: #fff; border-radius: var(--radius-card);
  padding: 48px 40px;
  border: 1px solid var(--c-border);
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
  /* Es un <a>, reseteamos estilos de link */
  text-decoration: none; color: inherit;
  cursor: none;
  transition: transform 0.40s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.40s var(--ease),
              border-color 0.40s var(--ease);
}

/* Shimmer sweep de izquierda a derecha al hover */
.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(26,70,240,0.05) 50%,
    transparent 80%
  );
  transform: translateX(-100%);
  transition: transform 0.60s ease;
}
.service-card:hover::before { transform: translateX(100%); }

/* Línea azul animada en el borde izquierdo */
.service-card::after {
  content: ''; position: absolute;
  top: 0; left: 0; bottom: 0; width: 3px;
  background: linear-gradient(to bottom, var(--c-blue), var(--c-blue-lt));
  transform: scaleY(0); transform-origin: top;
  border-radius: 0 2px 2px 0;
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}
.service-card:hover::after { transform: scaleY(1); }

.service-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: rgba(26,70,240,0.18);
}

.service-num {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em; color: var(--c-blue);
  transition: letter-spacing var(--t-smooth);
}
.service-card:hover .service-num { letter-spacing: 0.22em; }

.service-title {
  font-family: var(--font-display); font-size: 30px; font-weight: 600;
  line-height: 1.15; letter-spacing: -0.01em;
}
.service-desc {
  font-size: 15px; line-height: 1.78; color: var(--c-muted); flex: 1;
}
.service-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid var(--c-border); margin-top: auto;
}
.service-tag { font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-muted); }

.service-arrow {
  color: var(--c-blue); opacity: 0;
  transform: translateX(-8px) scale(0.8);
  transition: opacity 0.35s, transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}
.service-card:hover .service-arrow {
  opacity: 1; transform: translateX(0) scale(1);
}

/* ================================================================
   IA AGÉNTICA — Imagen de fondo opcional
   ================================================================ */
.ai-section {
  position: relative; overflow: hidden;
  padding: var(--sp-section) 0;
  background: var(--c-dark-2);
}
.ai-section__bg { position: absolute; inset: 0; overflow: hidden; }
.ai__orb {
  position: absolute; border-radius: 50%; filter: blur(110px);
}
.ai__orb--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(26,70,240,0.30) 0%, transparent 70%);
  top: -120px; right: -80px;
}
.ai__orb--2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(91,138,255,0.18) 0%, transparent 70%);
  bottom: -60px; left: 80px;
}

/* ── IMAGEN DE FONDO — SECCIÓN IA ─────────────────────────────
   PARA ACTIVAR: descomenta el div .ai__img-bg en index.html
   DIMENSIONES: 1920×1080px recomendado — imagen oscura
   AI IMAGE — CAMBIAR nombre del archivo abajo */
.ai__img-bg {
  position: absolute; inset: 0; z-index: 0;
  /* CAMBIAR IMAGEN AQUI */
  background: url('../images/ai-bg.jpg') center center / cover no-repeat;
}
.ai__img-bg::after {
  content: ''; position: absolute; inset: 0;
  /* OPACIDAD DEL OVERLAY: 0.80 = muy oscuro, 0.50 = más visible */
  background: rgba(8, 12, 23, 0.80);
}

.ai-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.ai-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 600; line-height: 1.0; letter-spacing: -0.025em;
  color: #FAFAF8; margin-top: 20px;
}
.ai-desc {
  font-size: 17px; line-height: 1.82; color: rgba(255,255,255,0.52); margin-bottom: 40px;
}

/* ================================================================
   CONTACTO
   ================================================================ */
.contact-section { padding: var(--sp-section) 0; background: var(--c-bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: start; }
.contact-left { padding-top: 8px; }
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600; line-height: 1.08; letter-spacing: -0.025em;
  margin: 18px 0 24px;
}
.contact-title em { font-style: italic; color: var(--c-blue); }
.contact-desc { font-size: 16px; line-height: 1.78; color: var(--c-muted); margin-bottom: 36px; }
.contact-details { display: flex; flex-direction: column; gap: 8px; }
.contact-email { font-size: 16px; font-weight: 500; color: var(--c-blue); transition: color var(--t-fast); }
.contact-email:hover { color: #1038D8; }
.contact-web { font-size: 14px; color: var(--c-muted); }

.contact-form-card {
  background: #fff; border-radius: var(--radius-card);
  padding: 48px; border: 1px solid var(--c-border);
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 24px;
}
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-size: 13px; font-weight: 500; }
.form-input {
  width: 100%; padding: 13px 16px;
  border: 1px solid var(--c-border); border-radius: 8px;
  font-family: var(--font-body); font-size: 15px; color: var(--c-text);
  background: var(--c-bg); outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  appearance: none;
}
.form-input::placeholder { color: var(--c-muted); opacity: 0.60; }
.form-input:focus {
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px var(--c-blue-glow); background: #fff;
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-error {
  font-size: 13px; color: #D93025;
  background: rgba(217,48,37,0.06); padding: 10px 14px;
  border-radius: 6px; border: 1px solid rgba(217,48,37,0.18);
}
.form-note { font-size: 12px; color: var(--c-muted); text-align: center; }

/* ================================================================
   FOOTER + REDES SOCIALES
   ================================================================ */
.footer { background: var(--c-dark); padding: 64px 0 44px; }
.footer__inner {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 40px;
}
.footer__brand { display: flex; flex-direction: column; gap: 10px; }
.footer__logo {
  /* Tamaño controlado para mantener proporción exacta */
  height: 28px;
  width: auto;
  max-width: 160px;   /* evita que se estire en horizontal */
  max-height: 28px;
  object-fit: contain;
  object-position: left center;
  filter: invert(1); opacity: 0.80;
  flex-shrink: 0;
  align-self: flex-start; /* no se estira dentro del flex column */
}
.footer__logo-text { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: #fff; }
.footer__tagline { font-size: 12px; color: rgba(255,255,255,0.32); letter-spacing: 0.05em; }

.footer__nav { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; justify-content: center; }
.footer__nav a { font-size: 13px; color: rgba(255,255,255,0.42); transition: color var(--t-fast); }
.footer__nav a:hover { color: #fff; }

/* REDES SOCIALES en el footer */
.footer__social {
  display: flex; align-items: center; gap: 12px; justify-content: flex-end;
}
/* BOTONES DE REDES SOCIALES — CAMBIAR colores en hover si deseas */
.social-btn {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  /* Escala de grises por defecto */
  color: rgba(255,255,255,0.40);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  transition: color var(--t-smooth), background var(--t-smooth),
              border-color var(--t-smooth), transform var(--t-smooth);
}
.social-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-3px);
}

.footer__copy { text-align: right; }
.footer__copy p { font-size: 12px; color: rgba(255,255,255,0.24); line-height: 1.6; }

/* ================================================================
   BOTÓN FLOTANTE DE WHATSAPP
   PARA QUITAR: borra esta sección y el <a> en index.html
   ================================================================ */
.whatsapp-fab {
  position: fixed;
  /* POSICIÓN — CAMBIAR right y bottom */
  right: 28px; bottom: 32px;
  z-index: 900;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  /* ESCALA DE GRISES — el color se aplica en escala de grises elegante */
  background: rgba(60,60,60,0.90);
  color: rgba(220,220,220,0.90);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  transition: background var(--t-smooth), color var(--t-smooth),
              transform var(--t-smooth), box-shadow var(--t-smooth);
  /* Animación de pulso sutil */
  animation: waPulse 3s ease-in-out infinite;
}
.whatsapp-fab:hover {
  /* Al hover: muestra el verde característico de WhatsApp */
  background: #25D366;
  color: #fff;
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 16px 44px rgba(37,211,102,0.40);
  animation: none;
}
@keyframes waPulse {
  0%,100% { box-shadow: 0 8px 32px rgba(0,0,0,0.35); }
  50%      { box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 0 0 8px rgba(60,60,60,0.15); }
}

/* ================================================================
   ELEMENTOS DE REVEAL (estado inicial antes de animar)
   GSAP los activa al hacer scroll
   ================================================================ */
[data-reveal] {
  opacity: 0;
  will-change: opacity, transform;
}
[data-reveal="fade-up"]    { transform: translateY(48px); }
[data-reveal="fade-left"]  { transform: translateX(-52px); }
[data-reveal="fade-right"] { transform: translateX(52px); }
[data-reveal="fade-down"]  { transform: translateY(-36px); }
/* Los service-cards tienen animación propia controlada por GSAP */
[data-reveal="service-card"] { transform: translateY(60px) scale(0.92) rotateX(8deg); }

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* ── Tablet (≤1024px) ── */
@media (max-width: 1024px) {
  :root { --sp-section: 88px; --container-pad: 28px; }
  .value-grid    { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-inner      { grid-template-columns: 1fr; gap: 44px; }
  .contact-grid  { grid-template-columns: 1fr; gap: 60px; }
  .footer__inner { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .footer__brand { align-items: center; }
  .footer__logo  { align-self: center; object-position: center; }
  .footer__nav   { justify-content: center; }
  .footer__social { justify-content: center; }
  .footer__copy  { text-align: center; }
  .nav__links    { display: none; }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {
  :root { --sp-section: 64px; --container-pad: 20px; }

  /* Globo */
  .hero__globe {
    width: 92vw; height: 92vw;
    max-width: 400px; max-height: 400px;
    right: auto; left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.14; top: 40%;
  }

  /* Hero */
  .hero__content   { max-width: 100%; padding: 120px 0 72px; }
  .hero__title     { font-size: clamp(44px, 11vw, 72px); }
  .hero__subtitle  { font-size: 16px; max-width: 100%; }
  .hero__actions   { flex-direction: column; gap: 10px; }
  .hero__actions .btn { width: 100%; text-align: center; justify-content: center; }

  /* Nav */
  .btn--nav { display: none; }
  .lang-toggle { margin-right: 4px; }

  /* Secciones */
  .section-header  { margin-bottom: 48px; }
  .value-grid      { grid-template-columns: 1fr; gap: 0; }
  .value-card      { padding: 36px 24px; }
  .services-grid   { grid-template-columns: 1fr; }
  .service-card    { padding: 36px 28px; }

  /* IA */
  .ai-inner { gap: 36px; }
  .ai-title { font-size: clamp(36px, 9vw, 54px); }

  /* Contacto */
  .contact-grid    { gap: 48px; }
  .contact-form-card { padding: 28px 20px; }
  .contact-title   { font-size: clamp(32px, 8vw, 48px); }

  /* Footer */
  .footer          { padding: 48px 0 36px; }
  .footer__inner   { gap: 28px; }
  .footer__brand   { align-items: center; }
  .footer__logo    { align-self: center; object-position: center; }
  .footer__nav     { flex-wrap: wrap; gap: 14px; justify-content: center; }
  .footer__social  { gap: 10px; }
  .footer__copy    { font-size: 11px; }

  /* WhatsApp FAB */
  .whatsapp-fab { right: 20px; bottom: 24px; width: 48px; height: 48px; }

  /* Carrusel */
  .logos-list { gap: 44px; }
}

/* ── Mobile pequeño (≤480px) ── */
@media (max-width: 480px) {
  :root { --container-pad: 16px; }
  .hero__content   { padding: 108px 0 60px; }
  .hero__title     { font-size: clamp(38px, 10vw, 56px); line-height: 0.98; }
  .hero__eyebrow   { font-size: 10px; }
  .value-card      { padding: 32px 20px; }
  .value-card__title { font-size: 22px; }
  .service-card    { padding: 32px 24px; }
  .service-title   { font-size: 24px; }
  .section-title   { font-size: clamp(30px, 8vw, 44px); }
  .contact-form-card { padding: 24px 16px; }
  .btn             { padding: 13px 22px; }
  .footer__nav     { gap: 10px; font-size: 12px; }
  .social-btn      { width: 36px; height: 36px; }
}

/* ================================================================
   BOTÓN "INICIO" EN NAV — páginas de servicio
   En las páginas de servicio el nav tiene una estructura diferente:
   Logo izquierda | Links centrados (Inicio + 3 servicios) | Lang + CTA
   ================================================================ */
.nav__back {
  display: none; /* se oculta — los links de servicio van en el centro */
}

/* Links de navegación en páginas de servicio — mismo estilo que .nav__link */
.nav__service-links {
  display: flex; align-items: center; gap: 4px;
  margin: 0 auto; /* centra entre logo y right */
}
.nav__service-links a {
  font-size: 13px; font-weight: 400; letter-spacing: 0.01em;
  color: rgba(255,255,255,0.60);
  padding: 6px 13px; border-radius: 100px;
  transition: color var(--t-fast), background var(--t-fast);
  white-space: nowrap;
}
.nav__service-links a:hover {
  color: #fff; background: rgba(255,255,255,0.09);
}
/* Link activo — resalta la página actual */
.nav__service-links a.is-active {
  color: #fff; background: rgba(255,255,255,0.13);
  font-weight: 500;
}
/* Separador entre Home y los servicios */
.nav__service-sep {
  width: 1px; height: 16px;
  background: rgba(255,255,255,0.18);
  flex-shrink: 0; margin: 0 4px;
}
/* Colores cuando nav está sobre fondo claro */
.nav.is-scrolled .nav__service-links a { color: var(--c-muted); }
.nav.is-scrolled .nav__service-links a:hover { color: var(--c-text); background: rgba(10,11,16,0.06); }
.nav.is-scrolled .nav__service-links a.is-active { color: var(--c-text); background: rgba(10,11,16,0.08); font-weight: 500; }
.nav.is-scrolled .nav__service-sep { background: var(--c-border); }

/* En tablet: ocultar labels, mostrar sólo iconos cortos */
@media (max-width: 1024px) {
  .nav__service-links { gap: 2px; }
  .nav__service-links a { font-size: 12px; padding: 6px 10px; }
  .nav__service-sep { display: none; }
}
@media (max-width: 768px) {
  /* En mobile: sólo Home visible en el nav, el resto en un menú */
  .nav__service-links .nav__service-sep { display: none; }
  .nav__service-links a:not(.nav__home-link) { display: none; }
  .nav__service-links a.nav__home-link {
    color: rgba(255,255,255,0.70);
  }
}

/* ================================================================
   PÁGINAS DE SERVICIO — estilos compartidos
   Usados en investigacion-de-mercado.html,
   consultoria-estrategica.html, capacitacion-corporativa.html
   ================================================================ */

/* ── Hero de servicio ────────────────────────────────────────── */
.sp-hero {
  position: relative; min-height: 80vh;
  display: flex; align-items: center;
  overflow: hidden; background: var(--c-dark);
  padding-top: 80px; /* compensar nav fija */
}
.sp-hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.sp-hero__orb {
  position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none;
  animation: orbDrift 12s ease-in-out infinite;
}
/* COLORES de los orbes del hero de servicio — CAMBIAR aqui */
.sp-hero__orb--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(26,70,240,0.38) 0%, transparent 70%);
  top: -120px; right: -60px; animation-duration: 13s;
}
.sp-hero__orb--2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(10,28,110,0.45) 0%, transparent 70%);
  bottom: 40px; left: -60px; animation-duration: 10s; animation-delay: -5s;
}
.sp-hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ── Imagen de fondo del hero de servicio ────────────────────────
   PARA ACTIVAR: descomenta el div .sp-hero__img en el HTML
   DIMENSIONES: 1920×1080 px (16:9) mínimo, imagen oscura
   ARCHIVO: pon tu imagen en /images/ y edita el url() en CSS abajo ── */
.sp-hero__img {
  position: absolute; inset: 0; z-index: 1;
  /* CAMBIAR el nombre del archivo de imagen aqui */
  background: url('images/service-hero-bg.jpg') center center / cover no-repeat;
}
.sp-hero__img::after {
  content: ''; position: absolute; inset: 0;
  /* OPACIDAD del overlay: 0.75 = muy oscuro / 0.50 = más imagen visible */
  background: linear-gradient(135deg, rgba(8,12,23,0.75) 0%, rgba(8,12,23,0.50) 100%);
}

.sp-hero .container { position: relative; z-index: 3; }
.sp-hero__content { padding: 72px 0 80px; max-width: 820px; }

.sp-hero__tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--c-blue-lt); margin-bottom: 24px;
}
.sp-hero__tag::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-blue-lt); flex-shrink: 0;
  animation: dotPulse 2.2s ease-in-out infinite;
}

/* TITULO PRINCIPAL del hero de servicio — CAMBIAR font-size */
.sp-hero__title {
  font-family: var(--font-display);
  font-size: clamp(50px, 7.5vw, 96px);
  font-weight: 600; line-height: 0.96; letter-spacing: -0.028em;
  color: #FAFAF8; margin-bottom: 28px;
}
.sp-hero__title em { font-style: italic; color: var(--c-blue-lt); }

.sp-hero__desc {
  font-size: 18px; font-weight: 300; line-height: 1.72;
  color: rgba(255,255,255,0.54); max-width: 600px; margin-bottom: 44px;
}
.sp-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Sección de pilares / columnas (¿Qué incluye?) ───────────── */
.sp-pillars { padding: var(--sp-section) 0; background: var(--c-bg); }
.sp-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sp-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }

.sp-card {
  background: #fff; border-radius: var(--radius-card);
  padding: 44px 36px; border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-smooth), box-shadow var(--t-smooth), border-color var(--t-smooth);
}
.sp-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(26,70,240,0.16);
}
.sp-card__icon {
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--c-bg-alt);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-blue); margin-bottom: 22px;
  transition: background var(--t-smooth);
}
.sp-card:hover .sp-card__icon { background: var(--c-blue-glow); }
.sp-card__title {
  font-family: var(--font-display); font-size: 24px; font-weight: 600;
  line-height: 1.18; margin-bottom: 12px;
}
.sp-card__desc { font-size: 15px; line-height: 1.78; color: var(--c-muted); }

/* ── Proceso / pasos ─────────────────────────────────────────── */
.sp-process { padding: var(--sp-section) 0; background: var(--c-bg-alt); }
.sp-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
/* Línea conectora entre pasos */
.sp-steps::before {
  content: ''; position: absolute;
  top: 36px; left: calc(12.5% + 8px); right: calc(12.5% + 8px); height: 1px;
  background: linear-gradient(90deg, var(--c-blue), var(--c-blue-lt));
  opacity: 0.30; z-index: 0;
}
.sp-step { padding: 0 24px; position: relative; z-index: 1; }
.sp-step__num {
  width: 72px; height: 72px; border-radius: 50%;
  background: #fff; border: 2px solid rgba(26,70,240,0.20);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 28px; font-weight: 600;
  color: var(--c-blue); margin-bottom: 24px;
  box-shadow: 0 4px 20px var(--c-blue-glow);
}
.sp-step__title { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.sp-step__desc { font-size: 14px; line-height: 1.72; color: var(--c-muted); }

/* ── Entregables / beneficios ────────────────────────────────── */
.sp-deliverables { padding: var(--sp-section) 0; background: var(--c-bg); }
.sp-list {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px; margin-top: 0;
}
.sp-list-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 24px 28px; background: #fff;
  border-radius: 14px; border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
}
.sp-list-item__icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--c-blue-glow);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-blue); flex-shrink: 0;
}
.sp-list-item__text strong {
  display: block; font-size: 15px; font-weight: 600; margin-bottom: 4px;
}
.sp-list-item__text span { font-size: 14px; color: var(--c-muted); line-height: 1.6; }

/* ── CTA de la página de servicio ───────────────────────────── */
.sp-cta { padding: var(--sp-section) 0; background: var(--c-dark); position: relative; overflow: hidden; }
.sp-cta__bg { position: absolute; inset: 0; }
.sp-cta__orb {
  position: absolute; border-radius: 50%; filter: blur(110px);
  background: radial-gradient(circle, rgba(26,70,240,0.28) 0%, transparent 70%);
  width: 600px; height: 600px; top: -100px; right: -80px;
}
.sp-cta__inner {
  position: relative; z-index: 2;
  text-align: center; max-width: 700px; margin: 0 auto;
}
.sp-cta__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 600; line-height: 1.06; letter-spacing: -0.025em;
  color: #FAFAF8; margin-bottom: 20px;
}
.sp-cta__title em { font-style: italic; color: var(--c-blue-lt); }
.sp-cta__desc {
  font-size: 17px; line-height: 1.75;
  color: rgba(255,255,255,0.50); margin-bottom: 40px;
}

/* ── Responsive páginas de servicio ─────────────────────────── */
@media (max-width: 1024px) {
  .sp-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .sp-steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .sp-steps::before { display: none; }
  .sp-step { padding: 0 8px; }
}
@media (max-width: 768px) {
  .sp-hero { min-height: 70vh; }
  .sp-hero__content { padding: 48px 0 60px; }
  .sp-hero__title { font-size: clamp(38px, 10vw, 60px); }
  .sp-hero__desc { font-size: 16px; }
  .sp-hero__actions { flex-direction: column; gap: 10px; }
  .sp-hero__actions .btn { width: 100%; justify-content: center; }
  .sp-grid-3 { grid-template-columns: 1fr; }
  .sp-grid-2 { grid-template-columns: 1fr; }
  .sp-steps { grid-template-columns: 1fr; gap: 28px; }
  .sp-list { grid-template-columns: 1fr; }
  .sp-card { padding: 32px 24px; }
  .sp-step { padding: 0; }
  .sp-cta__inner { text-align: left; }
}
