/* ============================================================
   ClearTech — Sistema de diseño
   ============================================================ */
:root {
  /* Color */
  --navy-950: #060a12;
  --navy-900: #0a101c;
  --navy-800: #0e1626;
  --navy-700: #142036;
  --navy-600: #1d2c47;
  --blue-500: #2f7cf6;
  --blue-400: #5495f8;
  --blue-300: #8db8fb;
  --white: #ffffff;
  --ink-900: #0d1420;
  --ink-600: #4b5566;
  --ink-400: #7d8797;
  --surface: #f5f7fa;
  --line-dark: rgba(255, 255, 255, 0.08);
  --line-light: #e4e8ee;

  /* Tipografía */
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;

  /* Espaciado / forma */
  --radius: 14px;
  --radius-lg: 20px;
  --container: 1180px;
  --nav-h: 78px;

  /* Sombra */
  --shadow-card: 0 10px 30px rgba(6, 10, 18, 0.10);
  --shadow-btn: 0 8px 24px rgba(47, 124, 246, 0.35);
}

/* ============ Reset ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ============ Barra de desplazamiento personalizada ============ */
/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--blue-500) var(--navy-900);
}
/* Chromium / Edge / Safari */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--navy-900); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--blue-500), #38d4f5);
  border-radius: 999px;
  border: 3px solid var(--navy-900); /* deja aire alrededor del pulgar */
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #4a8ef8, #5fd8f7);
}
::-webkit-scrollbar-corner { background: var(--navy-900); }
body {
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--navy-950);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
ul { list-style: none; }
:target { scroll-margin-top: calc(var(--nav-h) + 12px); }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

/* ============ Tipografía base ============ */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em; }
.accent { color: var(--blue-500); }

/* Acento con gradiente animado (azul → cian → azul) en títulos */
.hero__title .accent,
h2 .accent {
  background: linear-gradient(90deg, #2f7cf6 0%, #38d4f5 30%, #6b8bff 60%, #2f7cf6 100%);
  background-size: 280% 100%;
  background-position: 0% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: accent-shift 6s linear infinite;
}
@keyframes accent-shift {
  to { background-position: -280% 0; }
}
.h2-left { text-align: left; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin-bottom: 14px;
}
.eyebrow--center { text-align: center; }

/* ============ Botones ============ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 28px;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; transition: transform 0.2s ease; flex-shrink: 0; }
.btn:hover svg { transform: translateX(4px); }

.btn--primary {
  background: linear-gradient(135deg, #4a8ef8 0%, #2f7cf6 45%, #1f5fd8 100%);
  color: var(--white);
  box-shadow: var(--shadow-btn), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn--primary::before {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}
.btn--primary:hover::before { left: 130%; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(47, 124, 246, 0.5); }

.btn--ghost {
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }

.btn--outline { color: var(--white); border: 1.5px solid var(--line-dark); }
.btn--outline:hover { border-color: var(--blue-400); color: var(--blue-300); }

.btn--whatsapp { background: #1fbe5f; color: var(--white); margin-top: 26px; }
.btn--whatsapp svg { width: 20px; height: 20px; }
.btn--whatsapp:hover { background: #25d366; transform: translateY(-2px); }

.btn--sm { padding: 12px 20px; font-size: 0.76rem; }
.btn--lg { padding: 18px 34px; font-size: 0.88rem; }
.btn--block { width: 100%; justify-content: center; }

/* ============ Barra de progreso de scroll ============ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  z-index: 200;
  background: linear-gradient(90deg, #2f7cf6, #38d4f5);
  box-shadow: 0 0 12px rgba(47, 124, 246, 0.8);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

/* ============ Cursor personalizado ============ */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  opacity: 0;
  will-change: transform;
}
.cursor-dot {
  width: 7px; height: 7px;
  background: var(--blue-500);
  transition: opacity 0.3s ease, background 0.2s ease;
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1.5px solid rgba(47, 124, 246, 0.55);
  transition: opacity 0.3s ease, border-color 0.25s ease, background 0.25s ease;
}
.cursor-dot.is-on,
.cursor-ring.is-on { opacity: 1; }
.cursor-ring.is-hover {
  border-color: rgba(56, 212, 245, 0.9);
  background: rgba(47, 124, 246, 0.08);
}
.cursor-dot.is-hover { background: #38d4f5; }
/* Se oculta el cursor nativo solo cuando el personalizado está activo (lo activa el JS) */
html.has-cursor, html.has-cursor * { cursor: none !important; }

/* ============ Intro de carga ============ */
/* Secuencia: se dibuja el logo → aparece el nombre con un barrido → la barra
   sigue la carga real (la mueve main.js) → la capa se levanta como un telón.
   Todo lo que entra es CSS con retardos; JS solo decide CUÁNDO sale. */
.intro {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(125% 125% at 50% 34%, #101c31 0%, #080e1a 58%, #05080f 100%);
  will-change: transform;
  /* Respaldo: si el script no corre, la capa se desvanece sola.
     Cuando main.js toma el control añade .is-managed y cancela este respaldo. */
  animation: intro-failsafe 0.6s ease 5s forwards;
}
.intro.is-managed { animation: none; }
/* Salida: el contenido sube y se difumina, y el telón se levanta detrás */
.intro.is-out { animation: intro-lift 0.9s cubic-bezier(0.76, 0, 0.24, 1) 0.16s forwards; }

/* --- Fondo --- */
/* Halos de marca que respiran detrás del logo */
.intro__aura {
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(30% 26% at 32% 34%, rgba(47, 124, 246, 0.32), transparent 70%),
    radial-gradient(28% 24% at 70% 64%, rgba(56, 212, 245, 0.20), transparent 70%);
  animation: intro-aura 6s ease-in-out infinite alternate;
}
/* Rejilla técnica muy tenue, desvanecida hacia los bordes */
.intro__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(141, 184, 251, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 184, 251, 0.08) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(52% 52% at 50% 44%, #000, transparent);
  mask-image: radial-gradient(52% 52% at 50% 44%, #000, transparent);
  opacity: 0;
  animation: intro-in 1.4s ease 0.2s forwards;
}
/* Barrido de luz sobre el vidrio: cruza la pantalla una sola vez */
.intro__sweep {
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: -45%;
  width: 40%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(147, 197, 253, 0.10) 40%, rgba(56, 212, 245, 0.16) 55%, transparent);
  mix-blend-mode: screen;
  transform: skewX(-16deg) translateX(0);
  opacity: 0;
  animation: intro-sweep 2.3s cubic-bezier(0.45, 0, 0.25, 1) 0.5s;
}
/* Filo luminoso que arrastra el telón al subir */
.intro__edge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-500), #7ee6ff, var(--blue-500), transparent);
  box-shadow: 0 0 22px rgba(56, 212, 245, 0.7);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.intro.is-out .intro__edge { opacity: 1; }

/* --- Contenido --- */
.intro__stage {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  padding-inline: 24px;
  text-align: center;
  transition: opacity 0.34s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.34s ease;
}
.intro.is-out .intro__stage {
  opacity: 0;
  transform: translateY(-16px) scale(1.04);
  filter: blur(4px);
}
.intro__logo svg {
  width: clamp(104px, 20vw, 138px);
  height: clamp(104px, 20vw, 138px);
  overflow: visible;
  filter: drop-shadow(0 14px 40px rgba(53, 120, 240, 0.45));
}
.intro__path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  fill-opacity: 0;
  animation: intro-draw 1.45s cubic-bezier(0.62, 0, 0.2, 1) 0.12s forwards,
             intro-fill 0.75s ease 1.05s forwards;
}
.intro__shine {
  transform-box: view-box;
  transform-origin: 0 0;
  transform: translateX(-520px) skewX(-18deg);
  opacity: 0;
  animation: logo-shine 1.05s cubic-bezier(0.32, 0, 0.2, 1) 1.35s;
}
.intro__name {
  margin-top: 22px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.05rem, 4vw, 1.3rem);
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  /* El nombre no aparece de golpe: se descubre con un barrido de izquierda a derecha */
  -webkit-mask-image: linear-gradient(90deg, #000 0 42%, transparent 58%);
  mask-image: linear-gradient(90deg, #000 0 42%, transparent 58%);
  -webkit-mask-size: 230% 100%;
  mask-size: 230% 100%;
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
  animation: intro-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) 1.2s forwards,
             intro-wordmark 0.95s cubic-bezier(0.22, 1, 0.36, 1) 1.2s forwards;
}
.intro__name b { color: var(--blue-300); font-weight: 600; letter-spacing: 0.3em; font-size: 0.68em; }
.intro__rule {
  width: 96px;
  height: 1px;
  margin-top: 18px;
  background: linear-gradient(90deg, transparent, rgba(141, 184, 251, 0.85), transparent);
  transform: scaleX(0);
  animation: intro-rule 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.6s forwards;
}
.intro__tagline {
  margin-top: 16px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(197, 214, 240, 0.7);
  opacity: 0;
  transform: translateY(8px);
  animation: intro-rise 0.7s ease 1.75s forwards;
}
/* Barra de progreso: aparece pronto porque es la que informa de la espera */
.intro__meter {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  opacity: 0;
  animation: intro-in 0.7s ease 0.85s forwards;
}
.intro__track {
  position: relative;
  width: clamp(150px, 42vw, 210px);
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.intro__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-500), #38d4f5);
  box-shadow: 0 0 14px rgba(56, 212, 245, 0.65);
  transform-origin: 0 50%;
  transform: scaleX(0); /* lo actualiza main.js con la carga real */
}
.intro__pct {
  min-width: 4ch;
  text-align: left;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: rgba(197, 214, 240, 0.85);
}

@keyframes intro-draw { to { stroke-dashoffset: 0; } }
@keyframes intro-fill { to { fill-opacity: 1; } }
@keyframes intro-in { to { opacity: 1; } }
@keyframes intro-rise { to { opacity: 1; transform: none; } }
@keyframes intro-wordmark {
  to { -webkit-mask-position: 0 0; mask-position: 0 0; }
}
@keyframes intro-rule { to { transform: scaleX(1); } }
@keyframes intro-aura {
  from { transform: scale(1) translate3d(0, 0, 0); opacity: 0.75; }
  to   { transform: scale(1.12) translate3d(0, -2%, 0); opacity: 1; }
}
@keyframes intro-sweep {
  0%   { transform: skewX(-16deg) translateX(0); opacity: 0; }
  18%  { opacity: 1; }
  82%  { opacity: 1; }
  100% { transform: skewX(-16deg) translateX(340%); opacity: 0; }
}
@keyframes intro-lift { to { transform: translateY(-100%); } }
@keyframes intro-failsafe { to { opacity: 0; visibility: hidden; } }

/* En pantallas chicas la línea de apoyo se aprieta para no partirse en dos */
@media (max-width: 420px) {
  .intro__name { margin-top: 18px; }
  .intro__tagline { font-size: 0.62rem; letter-spacing: 0.18em; }
  .intro__meter { margin-top: 30px; gap: 12px; }
}

html.intro-lock { overflow: hidden; }
/* Con intro, la entrada del hero y de la navbar se RETRASA hasta que empieza a
   levantarse el telón (~2.9s); si no, se animarían escondidas detrás y saldrían
   ya quietas.
   Es un retardo puro de CSS, con reloj propio: NO depende de que ningún script
   quite una clase. Antes se ocultaban con una clase que main.js debía retirar,
   y si eso no ocurría (pestaña sin pintar, script caído) el texto del hero se
   quedaba invisible para siempre. Aquí, en el peor caso, entra a destiempo. */
html.intro-seq .hero .reveal { animation-delay: calc(var(--d, 0s) + 2.8s); }
html.intro-seq .navbar { animation-delay: 2.8s; }

/* ============ Smooth scroll (Lenis) ============ */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* ============ Navbar ============ */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease, height 0.3s ease,
              transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  animation: navbar-in 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
@keyframes navbar-in {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Al terminar la entrada se suelta la animación: si no, su "fill" bloquea
   el transform con el que la barra se oculta al bajar. */
.navbar.nav-ready { animation: none; }
/* Barra inteligente: se esconde al bajar y reaparece al subir */
.navbar.is-hidden { transform: translateY(-100%); }
/* Velo superior: mantiene legibles los enlaces sobre las zonas claras del hero.
   Se desvanece al hacer scroll (ahí la barra ya tiene su propio fondo). */
.navbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 10, 18, 0.55), transparent);
  transition: opacity 0.3s ease;
}
/* Filo con degradado que aparece al hacer scroll: separa la barra del contenido */
.navbar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(47, 124, 246, 0.55) 30%, rgba(56, 212, 245, 0.55) 70%, transparent);
  transition: opacity 0.3s ease;
}
.navbar.is-scrolled::before,
.navbar.is-menu-open::before { opacity: 0; }
.navbar.is-scrolled::after { opacity: 1; }
.navbar.is-menu-open::after { opacity: 0; }
.navbar.is-scrolled {
  background: rgba(9, 14, 26, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.34);
  height: 66px;
}
/* Con el menú abierto, quitar el filtro: de lo contrario la navbar se vuelve
   el bloque contenedor del drawer fijo y lo limita a la altura de la navbar. */
.navbar.is-menu-open {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: transparent;
  box-shadow: none;
}
.navbar__inner { display: flex; align-items: center; gap: 18px; width: 100%; }

.navbar__brand { position: relative; display: flex; align-items: center; gap: 10px; color: var(--white); }
.navbar__logo {
  position: relative;
  width: 40px; height: 40px;
  flex-shrink: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
}
/* Realce sobrio: nada de halos, solo un levantamiento mínimo y sombra nítida */
.navbar__brand:hover .navbar__logo {
  transform: scale(1.06);
  filter: drop-shadow(0 3px 9px rgba(53, 195, 245, 0.38));
}
/* Destello especular que recorre la silueta del logo (recortado a su forma) */
.navbar__logo-shine {
  transform-box: view-box;
  transform-origin: 0 0;
  transform: translateX(-520px) skewX(-18deg);
  opacity: 0;
}
.navbar__brand:hover .navbar__logo-shine {
  animation: logo-shine 0.95s cubic-bezier(0.32, 0, 0.2, 1);
}
@keyframes logo-shine {
  0%   { transform: translateX(-520px) skewX(-18deg); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateX(1400px) skewX(-18deg); opacity: 0; }
}
/* El degradado del logo se aclara apenas (solo el del navbar) */
#lg-nav stop { transition: stop-color 0.45s ease; }
.navbar__brand:hover #lg-nav stop:first-child { stop-color: #4671e8; }
.navbar__brand:hover #lg-nav stop:last-child { stop-color: #4dd3ff; }

.navbar__name strong,
.navbar__name small { transition: color 0.3s ease; }
.navbar__brand:hover .navbar__name strong { color: #fff; }
.navbar__brand:hover .navbar__name small { color: #9fe4ff; }
.navbar__name {
  position: relative;
  z-index: 1;
  font-family: var(--font-head);
  font-size: 1.24rem;
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.navbar__name strong { font-weight: 800; letter-spacing: -0.01em; }
.navbar__name small {
  font-family: var(--font-body);
  font-size: 0.66rem;
  letter-spacing: 0.34em;
  color: var(--blue-300);
  font-weight: 600;
  margin-top: 2px;
}

.navbar__nav { position: relative; display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 11px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.28s ease, box-shadow 0.28s ease, text-shadow 0.28s ease;
}
/* Subrayado con degradado, compartido por el hover y la sección activa.
   Crece desde la izquierda al pasar el cursor y al activarse por scroll. */
.nav-link::after {
  content: "";
  position: absolute;
  left: 11px; right: 11px; bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-500), #38d4f5);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.nav-link:hover { color: rgba(255, 255, 255, 0.95); }
@media (hover: hover) {
  .nav-link:hover::after { transform: scaleX(1); }
}
/* Enlace de la sección actual: resaltado sobrio y profesional */
.nav-link.is-active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}
.nav-link.is-active::after { transform: scaleX(1); }
.nav-link svg { width: 14px; height: 14px; transition: transform 0.2s ease; }

/* Indicador deslizante: una sola píldora que viaja entre los enlaces
   siguiendo el cursor y, al soltarlo, la sección activa. */
.nav-indicator {
  position: absolute;
  top: 50%; left: 0;
  height: 36px;
  margin-top: -18px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.07);
  pointer-events: none;
  opacity: 0;
  z-index: 0;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
              width 0.42s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.3s ease;
}
.nav-indicator::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-500), #38d4f5);
}
.nav-indicator.is-on { opacity: 1; }
.navbar__nav > .nav-link,
.navbar__nav > .nav-dropdown { position: relative; z-index: 1; }
/* En escritorio manda el indicador: se apagan el subrayado y la caja por enlace */
@media (min-width: 1181px) {
  .nav-link::after { display: none; }
  .nav-link.is-active { background: transparent; }
}
@media (max-width: 1180px) {
  .nav-indicator { display: none; }
}

.nav-dropdown { position: relative; }
/* Mega-menú: panel de cristal con icono + descripción por película */
.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: -10px;
  width: 330px;
  background: rgba(13, 20, 35, 0.94);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 10px;
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.98);
  transform-origin: top left;
  transition: opacity 0.22s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.3s;
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.5);
}
.nav-mega__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  transition: background 0.2s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-mega__item:hover { background: rgba(255, 255, 255, 0.07); transform: translateX(3px); }
.nav-mega__ic {
  flex: none;
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(150deg, rgba(74, 142, 248, 0.95), rgba(47, 124, 246, 0.7));
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-mega__ic svg { width: 18px; height: 18px; }
.nav-mega__item:hover .nav-mega__ic { transform: scale(1.08) rotate(-4deg); }
.nav-mega__txt strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.nav-mega__txt small { display: block; font-size: 0.76rem; color: rgba(255, 255, 255, 0.55); margin-top: 1px; }
.nav-mega__foot {
  margin-top: 6px;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-300);
  transition: color 0.2s ease;
}
.nav-mega__foot svg { width: 15px; height: 15px; transition: transform 0.25s ease; }
.nav-mega__foot:hover { color: #fff; }
.nav-mega__foot:hover svg { transform: translateX(4px); }
.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu,
.nav-dropdown.is-open .nav-dropdown__menu {
  opacity: 1; visibility: visible; transform: translateY(0) scale(1);
}
.nav-dropdown:hover .nav-dropdown__toggle svg,
.nav-dropdown.is-open .nav-dropdown__toggle svg { transform: rotate(180deg); }

/* CTA de la navbar: píldora (a juego con el botón de idioma) y nunca se
   comprime, si no el flex le recortaba la flecha por el overflow del brillo. */
.navbar__cta {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 11px 22px;
  box-shadow: 0 8px 22px rgba(47, 124, 246, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.navbar__cta:hover { box-shadow: 0 12px 28px rgba(47, 124, 246, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.navbar__cta-mobile { display: none; }

/* Botón de idioma */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.lang-toggle svg { width: 16px; height: 16px; }
.lang-toggle__label { line-height: 1; }
.lang-toggle:hover {
  background: rgba(47, 124, 246, 0.14);
  border-color: var(--blue-500);
  color: var(--white);
}
.lang-toggle:active { transform: scale(0.94); }
/* En navbar clara (con scroll) el botón se adapta */
.navbar.is-scrolled .lang-toggle { border-color: rgba(255, 255, 255, 0.16); }

.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.navbar__burger span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.navbar__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__burger.is-open span:nth-child(2) { opacity: 0; }
.navbar__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 90px;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 10, 18, 0.93) 0%, rgba(6, 10, 18, 0.72) 42%, rgba(6, 10, 18, 0.30) 75%, rgba(6, 10, 18, 0.45) 100%),
    linear-gradient(0deg, rgba(6, 10, 18, 0.9) 0%, transparent 30%);
}

.hero__content { color: var(--white); max-width: var(--container); }
.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin-bottom: 18px;
}
.hero__title {
  font-size: clamp(2.3rem, 5.6vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.08;
}
.hero__subtitle {
  max-width: 480px;
  margin-top: 22px;
  font-size: 1.06rem;
  color: rgba(255, 255, 255, 0.82);
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 34px; }

/* Grid de dos columnas: texto + panel de beneficios */
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.hero__panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  justify-self: end;
  background: linear-gradient(160deg, rgba(13, 22, 40, 0.8), rgba(8, 13, 24, 0.74));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px 22px 10px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  overflow: hidden;
}
/* Línea superior con destello de color que la recorre (efecto escáner) */
.hero__panel::before {
  content: "";
  position: absolute;
  top: 0; left: 6%; right: 6%;
  height: 2px;
  border-radius: 2px;
  background:
    linear-gradient(90deg, transparent, #4a8ef8 38%, #38d4f5 62%, transparent) no-repeat,
    linear-gradient(90deg, transparent, rgba(47, 124, 246, 0.35) 50%, transparent);
  background-size: 55% 100%, 100% 100%;
  animation: line-sweep 3.2s ease-in-out infinite;
}
@keyframes line-sweep {
  0%   { background-position: -120% 0, 0 0; }
  100% { background-position: 220% 0, 0 0; }
}
.hero__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.hero__panel-eyebrow {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-400);
}
.hero__panel-dots { display: flex; align-items: center; gap: 6px; }
.hero__panel-dots i {
  width: 6px; height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
  transition: width 0.4s ease, background 0.4s ease;
}
.hero__panel-dots i.is-on {
  width: 20px;
  background: linear-gradient(90deg, #2f7cf6, #38d4f5);
}

/* Spotlight: un beneficio a la vez, en grande, con crossfade */
.hero__features {
  position: relative;
  height: 112px;
  margin-top: 6px;
}
.hero__features li {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s;
}
.hero__features li.is-hot {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.hero__features svg {
  width: 56px; height: 56px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(74, 142, 248, 0.32), rgba(31, 95, 216, 0.22));
  border: 1px solid rgba(76, 144, 250, 0.35);
  color: var(--white);
  flex-shrink: 0;
}
.hero__features li > div { display: flex; flex-direction: column; min-width: 0; }
.hero__features strong {
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
}
.hero__features span {
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.hero__scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  animation: float 2.2s ease-in-out infinite;
}
.hero__scroll svg { width: 22px; height: 22px; }
@keyframes float {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ============ Secciones ============ */
.section { padding: 100px 0; }
.section--tight { padding: 76px 0; }
.section--light { background: var(--white); color: var(--ink-900); }
.section--muted { background: var(--surface); color: var(--ink-900); }
.section--dark {
  background-color: var(--navy-900);
  background-image:
    radial-gradient(640px 320px at 88% 0%, rgba(47, 124, 246, 0.10), transparent 65%),
    radial-gradient(520px 300px at 0% 100%, rgba(47, 124, 246, 0.06), transparent 65%);
  color: var(--white);
}
.section--dark + .section--dark { border-top: 1px solid var(--line-dark); }

/* Aurora en deriva: da profundidad y vida a las secciones oscuras planas.
   Solo transform se anima (capa cacheada por el compositor) → costo nulo. */
#peliculas { position: relative; overflow: hidden; }
#peliculas > .container { position: relative; z-index: 1; }
.dark-aurora { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.dark-aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(96px);
  opacity: 0.55;
  will-change: transform;
}
.dark-aurora span:nth-child(1) {
  width: 480px; height: 480px; left: -150px; top: -170px;
  background: radial-gradient(circle, rgba(47, 124, 246, 0.55), transparent 70%);
  animation: dark-aurora-1 20s ease-in-out infinite;
}
.dark-aurora span:nth-child(2) {
  width: 440px; height: 440px; right: -130px; bottom: -190px;
  background: radial-gradient(circle, rgba(56, 212, 245, 0.45), transparent 70%);
  animation: dark-aurora-2 24s ease-in-out infinite;
}
@keyframes dark-aurora-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(100px, 56px) scale(1.16); }
}
@keyframes dark-aurora-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-88px, -44px) scale(1.12); }
}

/* Grano cinematográfico sobre las fotos oscuras (estático, sin animación → 0 coste) */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.38;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}
.hero__bg .grain { z-index: 1; }
.grain--cta { z-index: 1; border-radius: inherit; opacity: 0.32; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-head__sub { margin-top: 16px; color: var(--ink-600); font-size: 1.02rem; }
.section--dark .section-head__sub { color: rgba(255, 255, 255, 0.65); }
.section-head .eyebrow { margin-bottom: 10px; }
.section-head__line {
  display: block;
  width: 40px; height: 3px;
  background: var(--blue-500);
  border-radius: 2px;
  margin: 0 auto 22px;
}
.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  max-width: none;
  margin-bottom: 46px;
}
.section-head__side {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* ============ Features (soluciones) ============ */
#soluciones {
  background-image: radial-gradient(circle, #e9eef6 1.3px, transparent 1.3px);
  background-size: 26px 26px;
  position: relative;
}
#soluciones::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(255, 255, 255, 0.9), transparent);
  pointer-events: none;
}
#soluciones .container { position: relative; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.feature {
  position: relative;
  padding: 28px 26px 30px;
  background: var(--white);
  border: 1px solid #e6ebf3;
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(13, 20, 32, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
/* Spotlight que sigue al cursor dentro de la tarjeta */
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(230px circle at var(--mx, 50%) var(--my, 50%), rgba(47, 124, 246, 0.09), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
/* Línea de acento que crece en la base */
.feature::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #2f7cf6, #38d4f5);
  transition: width 0.35s ease;
}
.feature:hover {
  --ty: -6px;
  border-color: rgba(47, 124, 246, 0.45);
  box-shadow: 0 18px 40px rgba(13, 20, 32, 0.12);
}
.feature:hover::before { opacity: 1; }
.feature:hover::after { width: 100%; }

.feature__num {
  position: absolute;
  top: 20px; right: 22px;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ccd8ea;
  transition: color 0.3s ease;
}
.feature:hover .feature__num { color: var(--blue-500); }

.feature__icon {
  width: 54px; height: 54px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #eaf2fe, #dcebfd);
  border: 1px solid #d3e3fb;
  color: var(--blue-500);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.feature:hover .feature__icon {
  background: linear-gradient(135deg, #4a8ef8, #1f5fd8);
  border-color: transparent;
  color: var(--white);
  transform: scale(1.07) rotate(-4deg);
  box-shadow: 0 10px 22px rgba(47, 124, 246, 0.35);
}
.feature__icon svg { width: 26px; height: 26px; }

.feature h3 {
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.feature p { font-size: 0.9rem; color: var(--ink-600); }

/* ============ Cards de películas ============ */
.films-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  perspective: 1200px;
}
.film-card {
  position: relative;
  background: linear-gradient(180deg, #111c31 0%, #0c1424 100%);
  border-radius: var(--radius);
  color: var(--white);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.09);
  /* El tilt 3D llega vía --rx/--ry (ver .reveal.is-visible) */
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}
.film-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  background: linear-gradient(140deg, rgba(47, 124, 246, 0.7), transparent 40%, transparent 65%, rgba(47, 124, 246, 0.35)) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.film-card:hover { --ty: -7px; box-shadow: 0 26px 52px rgba(0, 0, 0, 0.45); }
.film-card:hover::after { opacity: 1; }

.film-card__media { position: relative; }
.film-card__frame {
  position: relative;
  aspect-ratio: 4 / 3.1;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
/* Destello que barre la imagen al pasar el cursor */
.film-card__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 32%, rgba(255, 255, 255, 0.22) 50%, transparent 68%);
  transform: translateX(-130%);
  pointer-events: none;
}
.film-card:hover .film-card__frame::after {
  transform: translateX(130%);
  transition: transform 0.75s ease;
}
.film-card__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.film-card:hover .film-card__frame img { transform: scale(1.07); }
.film-card__badge {
  position: absolute;
  left: 18px; bottom: -23px;
  width: 47px; height: 47px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a8ef8, #1f5fd8);
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(47, 124, 246, 0.5), 0 0 0 4px rgba(13, 21, 37, 0.95);
  z-index: 1;
}
.film-card__badge svg { width: 22px; height: 22px; }
/* Pulso que emana del badge, desfasado por tarjeta */
.film-card__badge::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: badge-ping 2.8s ease-out infinite;
}
.film-card:nth-child(2) .film-card__badge::after { animation-delay: 0.7s; }
.film-card:nth-child(3) .film-card__badge::after { animation-delay: 1.4s; }
.film-card:nth-child(4) .film-card__badge::after { animation-delay: 2.1s; }
@keyframes badge-ping {
  0%   { box-shadow: 0 0 0 0 rgba(47, 124, 246, 0.45); }
  70%  { box-shadow: 0 0 0 13px rgba(47, 124, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 124, 246, 0); }
}


.film-card__body { padding: 38px 20px 22px; }
.film-card__body h3 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue-400);
  margin-bottom: 8px;
}
.film-card__body p { font-size: 0.88rem; color: rgba(255, 255, 255, 0.6); min-height: 63px; }
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-500);
}
.link-more svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.link-more:hover svg { transform: translateX(5px); }

/* ============ Antes / Después ============ */
.ba-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}
.ba-slider {
  position: relative;
  margin-top: 30px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  user-select: none;
  touch-action: pan-y;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.ba-slider img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
/* Lado "con película": exposición equilibrada, colores ricos y
   un tinte frío sutil de vidrio polarizado */
.ba-slider__after { filter: brightness(0.96) contrast(1.04) saturate(1.1); }
.ba-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(205deg, rgba(47, 124, 246, 0.10), rgba(16, 34, 60, 0.10) 55%, rgba(6, 10, 18, 0.12));
  pointer-events: none;
}
.ba-slider__before-wrap {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
  z-index: 2;
}
/* Lado "sin película": luz dura y sobreexpuesta */
.ba-slider__before-wrap img {
  width: auto;
  height: 100%;
  max-width: none;
  filter: brightness(1.18) contrast(1.02) saturate(1.04);
}
/* Deslumbramiento: hotspot de sol entrando por los ventanales */
.ba-slider__glare {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  background:
    radial-gradient(46% 58% at 70% 26%, rgba(255, 238, 195, 0.62), transparent 72%),
    radial-gradient(60% 75% at 30% 40%, rgba(255, 246, 224, 0.28), transparent 75%),
    linear-gradient(112deg, rgba(255, 240, 208, 0.22), transparent 58%);
}
.ba-slider__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--white);
  cursor: ew-resize;
  transform: translateX(-50%);
  z-index: 3;
}
.ba-slider__grip {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--blue-500);
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.ba-slider__grip svg { width: 20px; height: 20px; }
.ba-slider__tag {
  position: absolute;
  z-index: 3;
  bottom: 14px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 6px;
}
.ba-slider__tag--left { left: 14px; background: rgba(6, 10, 18, 0.72); color: var(--white); }
.ba-slider__tag--right { right: 14px; background: var(--blue-500); color: var(--white); }

/* ============ Stats (panel con divisores) ============ */
.stats-panel {
  background: linear-gradient(155deg, #17253f 0%, #101a2d 55%, #0e1626 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  padding: 34px 36px 14px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}
.stats-panel::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 124, 246, 0.18), transparent 70%);
  pointer-events: none;
}
/* Línea de luz superior con destello que la recorre */
.stats-panel::after {
  content: "";
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 2px;
  background:
    linear-gradient(90deg, transparent, #4a8ef8 40%, #38d4f5 60%, transparent) no-repeat,
    linear-gradient(90deg, transparent, rgba(47, 124, 246, 0.3) 50%, transparent);
  background-size: 55% 100%, 100% 100%;
  animation: line-sweep 3.4s ease-in-out infinite;
}
.stats-panel .eyebrow { margin-bottom: 6px; }
.stats-panel__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.stat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 18px 24px 10px;
  border-radius: 12px;
  transition: background 0.3s ease;
}
.stat:hover { background: rgba(47, 124, 246, 0.07); }
.stat:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, 0.09); }
.stat:nth-child(even) { padding-left: 24px; }
.stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, 0.09); }

/* Anillo de progreso alrededor del icono */
.stat__ring { position: relative; width: 58px; height: 58px; flex-shrink: 0; }
.stat__ring > svg:first-of-type {
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.stat__track, .stat__prog { fill: none; stroke-width: 4; }
.stat__track { stroke: rgba(255, 255, 255, 0.1); }
.stat__prog {
  stroke: url(#ring-grad);
  stroke-linecap: round;
  stroke-dasharray: 163.4;
  stroke-dashoffset: 163.4;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.22, 1, 0.36, 1) 0.35s;
}
.stats-panel.is-filled .stat__prog {
  stroke-dashoffset: calc(163.4 - 163.4 * var(--p) / 100);
}
.stat__icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22px; height: 22px;
  color: var(--blue-300);
  transition: color 0.3s ease, transform 0.3s ease;
}
.stat:hover .stat__icon { color: var(--white); transform: scale(1.12); }
.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  white-space: nowrap;
}
.stat span {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.4;
}
.stats-panel__note {
  padding: 4px 0 14px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.38);
}

/* ============ Showcase (split de borde a borde, según mockup) ============ */
.showcase {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: var(--navy-950);
  min-height: 580px;
}
.showcase__media { position: relative; overflow: hidden; }
.showcase__media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.showcase__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, rgba(6, 10, 18, 0.75) 100%);
}

/* Stat flotante de vidrio */
.showcase__stat {
  position: absolute;
  left: 28px; bottom: 28px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 20px 15px 15px;
  border-radius: 14px;
  background: rgba(8, 13, 24, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  color: var(--white);
}
.showcase__stat-icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, #4a8ef8, #1f5fd8);
  color: var(--white);
  flex-shrink: 0;
}
.showcase__stat-icon svg { width: 25px; height: 25px; }
.showcase__stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.05;
}
.showcase__stat > div > span {
  display: block;
  margin-top: 3px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.45;
}

.showcase__panel {
  position: relative;
  color: var(--white);
  padding: 96px 8vw 96px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
/* Línea de luz vertical en la costura, con destello que la recorre */
.showcase__panel::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background:
    linear-gradient(180deg, transparent, #4a8ef8 40%, #38d4f5 60%, transparent) no-repeat,
    linear-gradient(180deg, transparent, rgba(47, 124, 246, 0.3) 50%, transparent);
  background-size: 100% 55%, 100% 100%;
  animation: beam-sweep 3.6s ease-in-out infinite;
}
@keyframes beam-sweep {
  0%   { background-position: 0 -120%, 0 0; }
  100% { background-position: 0 220%, 0 0; }
}
.showcase__panel h2 {
  margin-bottom: 18px;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 2.9vw, 2.2rem);
}
.showcase__lead { color: rgba(255, 255, 255, 0.7); font-size: 0.97rem; max-width: 440px; }
.showcase__list { margin: 24px 0 34px; display: grid; gap: 12px; }
.showcase__list li {
  position: relative;
  padding-left: 30px;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.82);
  transition: padding-left 0.25s ease, color 0.25s ease;
}
.showcase__list li:hover { padding-left: 38px; color: var(--white); }
.showcase__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--blue-500);
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"><path d="m5 12 5 5 9-10" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg>') center / 14px no-repeat, linear-gradient(#000 0 0);
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"><path d="m5 12 5 5 9-10" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg>') center / 14px no-repeat;
}

/* ============ Carrusel de proyectos ============ */
.carousel-nav { display: flex; gap: 10px; }
.carousel-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--line-dark);
  color: var(--white);
  display: grid;
  place-items: center;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.carousel-btn:hover { background: var(--blue-500); border-color: var(--blue-500); color: var(--white); }
.carousel-btn:active { transform: scale(0.9); }
.carousel-btn svg { width: 20px; height: 20px; }

/* Adaptación de controles en secciones claras */
.section--muted .carousel-btn { border-color: #cdd7e4; color: var(--ink-900); }
.section--muted .btn--outline { color: var(--ink-900); border-color: #cdd7e4; }
.section--muted .btn--outline:hover { border-color: var(--blue-500); color: var(--blue-500); }
.section--muted .projects-swiper .swiper-pagination-bullet { background: #c6d2e4; }
.section--muted .projects-swiper .swiper-pagination-bullet:hover { background: #a7b8d0; }
.section--muted .projects-swiper .swiper-pagination-bullet-active { background: rgba(47, 124, 246, 0.22); }
.section--muted .project-card { box-shadow: 0 18px 40px rgba(13, 20, 32, 0.16); }

/* La sección recorta el sangrado del carrusel y lleva un tinte decorativo */
#proyectos {
  position: relative;
  overflow: clip;
}
#proyectos::before,
#proyectos::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
#proyectos::before {
  top: -140px; right: -160px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(47, 124, 246, 0.09), transparent 65%);
}
#proyectos::after {
  bottom: -180px; left: -140px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(41, 194, 245, 0.08), transparent 65%);
}

/* El carrusel sangra fuera del contenedor: se asoman las tarjetas vecinas */
.projects-swiper { overflow: visible; }
/* La paginación fluye debajo de las tarjetas (no absoluta) para no montarse sobre las fotos */
.projects-swiper .swiper-pagination {
  position: static;
  margin-top: 26px;
}
.projects-swiper .swiper-pagination-bullet {
  width: 9px; height: 9px;
  background: rgba(255, 255, 255, 0.3);
  opacity: 1;
  border-radius: 999px;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
  position: relative;
  overflow: hidden;
}
.projects-swiper .swiper-pagination-bullet:hover { background: rgba(255, 255, 255, 0.55); }
/* El activo lleva una pista tintada de marca: se distingue aunque el
   progreso del autoplay esté en cero (antes quedaba gris igual que los otros). */
.projects-swiper .swiper-pagination-bullet-active {
  width: 38px;
  background: rgba(47, 124, 246, 0.32);
}
/* Relleno de progreso del autoplay (--pg lo actualiza Swiper) */
.projects-swiper .swiper-pagination-bullet-active::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-500), #38d4f5);
  transform-origin: left center;
  transform: scaleX(var(--pg, 0));
}
/* Foco limpio en vez del punteado del navegador */
.projects-swiper .swiper-pagination-bullet:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 3px;
}
.projects-swiper .swiper-pagination-bullet:focus:not(:focus-visible) { outline: none; }

.project-card {
  position: relative;
  aspect-ratio: 3 / 3.6;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
}
/* Velo que funde con el fondo las tarjetas fuera del viewport del carrusel */
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--surface);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.projects-swiper .project-card:not(.swiper-slide-visible)::before { opacity: 0.72; }
.project-card:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; }
.project-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* --px lo mueve el parallax del carrusel; --sc crece en hover */
  transform: scale(var(--sc, 1.15));
  translate: var(--px, 0px) 0;
  transition:
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
    translate 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 0.45s ease;
}
.project-card:hover img { --sc: 1.21; filter: brightness(1.05) saturate(1.06); }
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0);
  transition: border-color 0.4s ease;
  pointer-events: none;
  z-index: 3;
}
.project-card:hover::after { border-color: rgba(255, 255, 255, 0.28); }
.project-card__peek {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(8, 13, 24, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  opacity: 0;
  transform: translateY(-10px) scale(0.8);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.project-card__peek svg { width: 17px; height: 17px; }
.project-card:hover .project-card__peek,
.project-card:focus-visible .project-card__peek { opacity: 1; transform: none; }
.project-card__info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 56px 20px 20px;
  background: linear-gradient(0deg, rgba(6, 10, 18, 0.92) 0%, transparent 100%);
  color: var(--white);
  /* oculta la fila "Ver proyecto" bajo el borde; sube completa en hover */
  transform: translateY(34px);
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.project-card:hover .project-card__info,
.project-card:focus-visible .project-card__info { transform: translateY(0); }
.project-card__tag {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(8, 13, 24, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.project-card__info h3 { font-size: 1.05rem; margin: 0 0 2px; }
.project-card__info p { font-size: 0.8rem; color: rgba(255, 255, 255, 0.66); }
.project-card__more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--blue-300);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease 0.05s, transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) 0.05s;
}
.project-card__more svg { width: 15px; height: 15px; }
.project-card:hover .project-card__more,
.project-card:focus-visible .project-card__more { opacity: 1; transform: none; }
@media (hover: none) {
  .project-card__info { transform: none; }
  .project-card__more { display: none; }
  .project-card__peek { opacity: 1; transform: none; }
}

/* ============ FAQ ============ */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq__item {
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(13, 20, 32, 0.04);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq__item[open] {
  border-color: rgba(47, 124, 246, 0.35);
  box-shadow: 0 12px 30px rgba(47, 124, 246, 0.1);
}
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-900);
  transition: color 0.2s ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--blue-500); }
/* Icono + / − */
.faq__item summary::after {
  content: "";
  flex-shrink: 0;
  width: 22px; height: 22px;
  background:
    linear-gradient(var(--blue-500), var(--blue-500)) no-repeat center / 12px 2px,
    linear-gradient(var(--blue-500), var(--blue-500)) no-repeat center / 2px 12px;
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.faq__item[open] summary::after {
  transform: rotate(180deg);
  background-size: 12px 2px, 0 2px; /* se oculta la barra vertical: queda "−" */
}
.faq__panel {
  padding: 0 22px 20px;
  animation: faq-open 0.32s ease;
}
.faq__panel p {
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--ink-600);
  border-top: 1px solid var(--line-light);
  padding-top: 16px;
}
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ============ Números ============ */
.numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
  margin-top: 34px;
}
.numbers__item { position: relative; padding: 8px 10px; }
/* Divisores verticales entre columnas */
.numbers__item + .numbers__item::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 50%;
  translate: 0 -50%;
  width: 1px;
  height: 72%;
  background: linear-gradient(180deg, transparent, #d7e0ec, transparent);
}
.numbers__item strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--blue-500);
  transition: transform 0.3s ease;
  /* Resplandor que "respira" detrás de la cifra, en oleada por columna */
  animation: num-glow 4.2s ease-in-out infinite;
}
.numbers__item:nth-child(2) strong { animation-delay: 0.5s; }
.numbers__item:nth-child(3) strong { animation-delay: 1s; }
.numbers__item:nth-child(4) strong { animation-delay: 1.5s; }
@keyframes num-glow {
  0%, 100% { text-shadow: 0 0 0 rgba(47, 124, 246, 0); }
  50% { text-shadow: 0 8px 30px rgba(47, 124, 246, 0.5); }
}
.numbers__item:hover strong { transform: scale(1.08); }

/* Línea de acento que se dibuja bajo cada cifra al revelarse */
.numbers__item strong::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin: 10px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #2f7cf6, #38d4f5);
  transform: scaleX(0);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.numbers.is-visible .numbers__item strong::after { transform: scaleX(1); }
.numbers.is-visible .numbers__item:nth-child(1) strong::after { transition-delay: 0.15s; }
.numbers.is-visible .numbers__item:nth-child(2) strong::after { transition-delay: 0.3s; }
.numbers.is-visible .numbers__item:nth-child(3) strong::after { transition-delay: 0.45s; }
.numbers.is-visible .numbers__item:nth-child(4) strong::after { transition-delay: 0.6s; }
.numbers__item > span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-400);
}

/* ============ CTA banner ============ */
.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  background: var(--navy-800);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 56px 58px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.cta-banner__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0e1a30 0%, rgba(14, 26, 48, 0.94) 42%, rgba(14, 26, 48, 0.55) 75%, rgba(14, 26, 48, 0.35) 100%);
  z-index: 1;
}
/* Barrido de luz en el borde superior (misma firma que el panel del hero) */
.cta-banner::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 3;
  border-radius: 2px;
  background:
    linear-gradient(90deg, transparent, #4a8ef8 38%, #38d4f5 62%, transparent) no-repeat,
    linear-gradient(90deg, transparent, rgba(47, 124, 246, 0.35) 50%, transparent);
  background-size: 55% 100%, 100% 100%;
  animation: line-sweep 4s ease-in-out infinite;
}
/* Resplandor que sigue al cursor */
.cta-banner__glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  background: radial-gradient(460px circle at var(--mx, 70%) var(--my, 50%), rgba(74, 142, 248, 0.17), transparent 62%);
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.cta-banner:hover .cta-banner__glow { opacity: 1; }
/* Partículas de luz que ascienden lentamente dentro del banner */
.cta-banner__particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.cta-banner__particles i {
  position: absolute;
  bottom: -10px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(130, 195, 255, 0.95), rgba(47, 124, 246, 0.3) 70%, transparent);
  filter: drop-shadow(0 0 6px rgba(74, 142, 248, 0.85));
  opacity: 0;
  animation: cta-rise linear infinite;
}
.cta-banner__particles i:nth-child(1) { left: 6%;  width: 4px; height: 4px; animation-duration: 9s;    animation-delay: 0s; }
.cta-banner__particles i:nth-child(2) { left: 16%; width: 6px; height: 6px; animation-duration: 11.5s; animation-delay: 2.2s; }
.cta-banner__particles i:nth-child(3) { left: 31%; width: 3px; height: 3px; animation-duration: 8.5s;  animation-delay: 4.6s; }
.cta-banner__particles i:nth-child(4) { left: 46%; width: 5px; height: 5px; animation-duration: 10s;   animation-delay: 1.4s; }
.cta-banner__particles i:nth-child(5) { left: 58%; width: 4px; height: 4px; animation-duration: 12s;   animation-delay: 5.8s; }
.cta-banner__particles i:nth-child(6) { left: 72%; width: 6px; height: 6px; animation-duration: 9.5s;  animation-delay: 3.1s; }
.cta-banner__particles i:nth-child(7) { left: 84%; width: 3px; height: 3px; animation-duration: 11s;   animation-delay: 0.8s; }
.cta-banner__particles i:nth-child(8) { left: 93%; width: 5px; height: 5px; animation-duration: 10.5s; animation-delay: 6.4s; }
@keyframes cta-rise {
  0%   { transform: translateY(0); opacity: 0; }
  10%  { opacity: 0.9; }
  80%  { opacity: 0.45; }
  100% { transform: translateY(-250px); opacity: 0; }
}
.cta-banner__text, .cta-banner > .btn { position: relative; z-index: 2; }
.cta-banner__text { display: flex; align-items: center; gap: 28px; }
.cta-banner__logo {
  width: 58px; height: 58px;
  color: var(--blue-400);
  flex-shrink: 0;
  filter: drop-shadow(0 0 14px rgba(47, 124, 246, 0.5));
  animation: cta-float 5.5s ease-in-out infinite;
}
@keyframes cta-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.cta-banner h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.cta-banner p { margin-top: 10px; color: rgba(255, 255, 255, 0.72); font-size: 0.94rem; max-width: 420px; }
/* Botón: destello que lo recorre al hover y flecha que avanza */
.cta-banner .btn {
  position: relative;
  overflow: hidden;
}
.cta-banner .btn::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -70%;
  width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-18deg);
}
.cta-banner .btn:hover::after { animation: btn-shine 0.75s ease forwards; }
@keyframes btn-shine {
  from { left: -70%; }
  to { left: 125%; }
}
.cta-banner .btn svg { transition: transform 0.3s ease; }
.cta-banner .btn:hover svg { transform: translateX(5px); }

/* ============ Footer ============ */
.footer {
  background: var(--navy-950);
  color: var(--white);
  border-top: 1px solid var(--line-dark);
  position: relative;
  overflow: hidden;
}
/* Resplandor tenue que sigue al cursor */
.footer__spot {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 30%), rgba(47, 124, 246, 0.08), transparent 60%);
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.footer:hover .footer__spot { opacity: 1; }
/* Línea superior con un "respiro" suave de intensidad */
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 2;
  background: linear-gradient(90deg, transparent, var(--blue-500) 22%, #38d4f5 50%, var(--blue-500) 78%, transparent);
  animation: footer-line-breathe 4.5s ease-in-out infinite;
}
@keyframes footer-line-breathe {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 1; }
}
/* Fondo vivo: auroras de marca que respiran lentamente */
.footer__aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.footer__aurora span {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.footer__aurora span:nth-child(1) {
  width: 520px; height: 520px;
  left: -150px; top: -190px;
  background: radial-gradient(circle, rgba(47, 124, 246, 0.45), transparent 68%);
  filter: blur(64px);
  animation: aurora-1 16s ease-in-out infinite;
}
.footer__aurora span:nth-child(2) {
  width: 460px; height: 460px;
  right: -130px; bottom: -200px;
  background: radial-gradient(circle, rgba(56, 212, 245, 0.32), transparent 68%);
  filter: blur(64px);
  animation: aurora-2 20s ease-in-out infinite;
}
@keyframes aurora-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(120px, 60px) scale(1.2); }
}
@keyframes aurora-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-100px, -46px) scale(1.15); }
}

/* Rejilla principal: marca + 3 columnas de información */
.footer__inner {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.35fr;
  gap: 56px;
  padding-top: 76px;
  padding-bottom: 60px;
  position: relative;
  z-index: 1;
}

/* Columna de marca */
.footer__brand-col .navbar__logo { width: 44px; }
.footer__tagline {
  margin-top: 20px;
  max-width: 320px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
}
.footer__social { display: flex; gap: 10px; margin-top: 24px; }
.footer__social a {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease,
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}
.footer__social a:hover {
  background: var(--blue-500);
  border-color: var(--blue-500);
  color: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(47, 124, 246, 0.4);
}
.footer__social svg { width: 19px; height: 19px; }

/* Encabezados de columna con subrayado que se dibuja al entrar */
.footer__col, .footer__contact { display: flex; flex-direction: column; align-items: flex-start; }
.footer h4 {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  padding-bottom: 12px;
  margin-bottom: 18px;
  position: relative;
  width: 100%;
}
.footer h4::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 30px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #2f7cf6, #38d4f5);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.footer.is-in h4::after { transform: scaleX(1); }
.footer.is-in .footer__inner > :nth-child(2) h4::after { transition-delay: 0.12s; }
.footer.is-in .footer__inner > :nth-child(3) h4::after { transition-delay: 0.24s; }
.footer.is-in .footer__inner > :nth-child(4) h4::after { transition-delay: 0.36s; }

/* Enlaces de navegación */
.footer__col a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.58);
  padding: 6px 0;
  transition: color 0.2s ease, transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.footer__col a:hover { color: var(--blue-300); transform: translateX(5px); }

/* Columna de contacto */
.footer__contact-item {
  display: inline-flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
  padding: 7px 0;
  transition: color 0.2s ease;
}
.footer__contact-item svg { width: 18px; height: 18px; color: var(--blue-400); flex-shrink: 0; margin-top: 1px; }
a.footer__contact-item:hover { color: var(--blue-300); }

/* Botón de WhatsApp destacado */
.footer__wa {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 18px;
  padding: 13px 20px;
  border-radius: 12px;
  background: linear-gradient(145deg, #27d16b, #17a851);
  color: var(--white);
  font-size: 0.94rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(31, 190, 95, 0.3);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  /* Resplandor que pulsa suave para atraer la vista al CTA. Se anima
     drop-shadow (no box-shadow) para no pisar la sombra del :hover. */
  animation: wa-btn-glow 2.8s ease-in-out infinite;
}
@keyframes wa-btn-glow {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(31, 190, 95, 0.2)); }
  50%      { filter: drop-shadow(0 0 14px rgba(31, 190, 95, 0.7)); }
}
.footer__wa svg { width: 19px; height: 19px; }
.footer__wa::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -70%;
  width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-18deg);
}
.footer__wa:hover::after { animation: btn-shine 0.75s ease forwards; }
.footer__wa:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 32px rgba(31, 190, 95, 0.45);
}
.footer__status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #3ddc84;
}
.footer__status i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 3px rgba(61, 220, 132, 0.18);
  animation: wa-online 2s ease-in-out infinite;
}

/* Barra inferior */
.footer__bottom {
  border-top: 1px solid var(--line-dark);
  padding: 22px 0;
  position: relative;
  z-index: 1;
}
.footer__bottom p { font-size: 0.8rem; color: rgba(255, 255, 255, 0.42); }
.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer__legal { display: flex; gap: 24px; }
.footer__legal a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s ease;
}
.footer__legal a:hover { color: var(--blue-300); }
.footer__top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  /* Holgura a la derecha para no quedar bajo el botón flotante de WhatsApp */
  margin-right: 88px;
  padding: 9px 17px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.footer__top svg { width: 14px; height: 14px; transition: transform 0.3s ease; }
.footer__top:hover {
  background: var(--blue-500);
  border-color: var(--blue-500);
  color: var(--white);
}
.footer__top:hover svg { transform: translateY(-3px); }

/* ============ Modal de película ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 22px;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 16, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.modal__panel {
  position: relative;
  width: min(860px, 100%);
  max-height: min(86vh, 700px);
  overflow: auto;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  background: linear-gradient(170deg, #131f38 0%, #0c1424 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__panel { opacity: 1; transform: none; }

.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(6, 10, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.modal__close:hover { background: var(--blue-500); border-color: var(--blue-500); transform: rotate(90deg); }
.modal__close svg { width: 18px; height: 18px; }

.modal__media { position: relative; min-height: 340px; }
.modal__media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 20px 0 0 20px;
}
.modal__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, rgba(12, 20, 36, 0.9) 100%);
  border-radius: 20px 0 0 20px;
}

.modal__body { padding: 38px 36px; color: var(--white); }
.modal__body h3 {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 4px 0 12px;
}
.modal__desc { font-size: 0.95rem; color: rgba(255, 255, 255, 0.68); }
.modal__list { display: grid; gap: 11px; margin: 22px 0 28px; }
.modal__list li {
  position: relative;
  padding-left: 30px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
}
.modal__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--blue-500);
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"><path d="m5 12 5 5 9-10" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg>') center / 14px no-repeat;
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"><path d="m5 12 5 5 9-10" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg>') center / 14px no-repeat;
}

/* Enlace opcional a la ubicación del proyecto */
.modal__map {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: -14px 0 24px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue-500);
  text-decoration: none;
}
.modal__map svg { width: 18px; height: 18px; flex: none; }
.modal__map:hover { text-decoration: underline; }
.modal__map[hidden] { display: none; }

/* Variante clara del modal (para secciones de fondo claro) */
.modal--light .modal__panel {
  background: linear-gradient(170deg, #ffffff 0%, #f2f5fa 100%);
  border-color: #e2e8f1;
}
.modal--light .modal__body { color: var(--ink-900); }
.modal--light .modal__body h3 { color: var(--ink-900); }
.modal--light .modal__desc { color: var(--ink-600); }
.modal--light .modal__list li { color: #39445a; }
.modal--light .modal__media::after {
  background: linear-gradient(90deg, transparent 60%, rgba(248, 250, 253, 0.95) 100%);
}
.modal--light .modal__close {
  background: rgba(255, 255, 255, 0.75);
  border-color: #d8e0ec;
  color: var(--ink-900);
}
.modal--light .modal__close:hover { background: var(--blue-500); border-color: var(--blue-500); color: var(--white); }

@media (max-width: 760px) {
  /* El modal se desplaza como un todo para que el CTA final sea alcanzable */
  .modal { align-items: start; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px; }
  .modal__panel { grid-template-columns: 1fr; max-height: none; overflow: visible; width: 100%; }
  .modal__media { min-height: 190px; }
  .modal__media img, .modal__media::after { border-radius: 18px 18px 0 0; }
  .modal__media::after { background: linear-gradient(0deg, rgba(12, 20, 36, 0.9), transparent 55%); }
  .modal--light .modal__media::after { background: linear-gradient(0deg, rgba(248, 250, 253, 0.95), transparent 55%); }
  .modal__body { padding: 24px 20px 26px; }
  /* El botón cerrar queda fijo para no perderse al hacer scroll */
  .modal__close { position: fixed; top: 20px; right: 20px; }
}

/* ============ WhatsApp flotante ============ */
.wa-widget {
  position: fixed;
  right: 22px;
  /* Se levanta sobre la barra inferior / indicador del navegador en móvil */
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  /* El contenedor no captura clics; solo lo hacen el botón y la burbuja
     visible. Sin esto, la caja de la burbuja oculta tapa "Volver arriba". */
  pointer-events: none;
}
.wa-float {
  pointer-events: auto;
  position: relative;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(145deg, #27d16b, #17a851);
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(31, 190, 95, 0.45);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  animation: wa-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 1s backwards;
}
/* Dos anillos desfasados: efecto radar que invita al clic */
.wa-float::before,
.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(31, 190, 95, 0.4);
  z-index: -1;
  animation: wa-ping 3s ease-out infinite;
}
.wa-float::before { animation-delay: 1.6s; }
.wa-float::after { animation-delay: 3.1s; }
.wa-float:hover {
  transform: scale(1.1) rotate(6deg);
  box-shadow: 0 14px 34px rgba(31, 190, 95, 0.6);
}
/* El icono "repica" cada ciclo, como un teléfono sonando */
.wa-float svg {
  width: 30px; height: 30px;
  transform-origin: center;
  animation: wa-ring 4.5s ease-in-out 2.2s infinite;
}
@keyframes wa-pop {
  from { transform: scale(0); }
  to { transform: scale(1); }
}
@keyframes wa-ping {
  0% { transform: scale(1); opacity: 0.7; }
  70%, 100% { transform: scale(2); opacity: 0; }
}
@keyframes wa-ring {
  0%, 78%, 100% { transform: rotate(0); }
  81% { transform: rotate(-14deg); }
  84% { transform: rotate(12deg); }
  87% { transform: rotate(-9deg); }
  90% { transform: rotate(6deg); }
  93% { transform: rotate(-3deg); }
}
/* Contador de mensaje "sin leer" sobre el botón */
.wa-float__badge {
  position: absolute;
  top: -3px; right: -3px;
  min-width: 21px; height: 21px;
  border-radius: 11px;
  background: #e5484d;
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 3px 10px rgba(229, 72, 77, 0.5);
  transform: scale(0);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.wa-widget.has-msg .wa-float__badge { transform: scale(1); }

/* Burbuja de invitación tipo chat */
.wa-bubble {
  position: relative;
  width: 256px;
  background: var(--white);
  color: var(--ink-900);
  border-radius: 16px 16px 4px 16px;
  padding: 13px 14px 14px;
  box-shadow: 0 18px 46px rgba(13, 20, 32, 0.28);
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  transform-origin: bottom right;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.4, 0.64, 1);
  pointer-events: none;
}
.wa-bubble.is-in {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.wa-bubble__top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 22px;
}
.wa-bubble__avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #f1f5fa;
  border: 1px solid #e6ecf4;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.wa-bubble__avatar svg { width: 19px; height: 23px; }
.wa-bubble__name { font-size: 0.82rem; font-weight: 800; line-height: 1.2; }
.wa-bubble__status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #128c4b;
}
.wa-bubble__status i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #1fbe5f;
  box-shadow: 0 0 0 2.5px rgba(31, 190, 95, 0.2);
  animation: wa-online 2s ease-in-out infinite;
}
@keyframes wa-online {
  0%, 100% { box-shadow: 0 0 0 2.5px rgba(31, 190, 95, 0.2); }
  50% { box-shadow: 0 0 0 4.5px rgba(31, 190, 95, 0.08); }
}
.wa-bubble__time {
  margin-left: auto;
  align-self: flex-start;
  font-size: 0.66rem;
  color: #9aa5b5;
}
/* Indicador "escribiendo…" que precede al mensaje */
.wa-bubble__typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  padding: 11px 14px;
  background: #eef2f7;
  border-radius: 12px 12px 12px 4px;
}
.wa-bubble__typing i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #9aa5b5;
  animation: wa-typing 1.1s ease-in-out infinite;
}
.wa-bubble__typing i:nth-child(2) { animation-delay: 0.15s; }
.wa-bubble__typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes wa-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.55; }
  30% { transform: translateY(-4px); opacity: 1; }
}
.wa-bubble__content { display: none; }
.wa-bubble.is-msg .wa-bubble__typing { display: none; }
.wa-bubble.is-msg .wa-bubble__content {
  display: block;
  animation: wa-msg-in 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@keyframes wa-msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.wa-bubble__msg {
  margin-top: 12px;
  padding: 10px 12px;
  background: #eef2f7;
  border-radius: 12px 12px 12px 4px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #3c4658;
}
.wa-bubble__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  background: linear-gradient(145deg, #27d16b, #17a851);
  color: var(--white);
  font-size: 0.84rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(31, 190, 95, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-bubble__cta svg { width: 17px; height: 17px; }
.wa-bubble__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(31, 190, 95, 0.45);
}
.wa-bubble__close {
  position: absolute;
  top: 9px; right: 9px;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #9aa5b5;
  transition: background 0.2s ease, color 0.2s ease;
}
.wa-bubble__close:hover { background: #eef2f7; color: var(--ink-900); }
.wa-bubble__close svg { width: 13px; height: 13px; }

/* ============ Nosotros / Confianza (2ª sección) ============ */
#nosotros { position: relative; overflow: hidden; }
#nosotros::before {
  content: "";
  position: absolute;
  top: -130px; right: -110px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 124, 246, 0.09), transparent 68%);
  pointer-events: none;
  animation: nos-glow 9s ease-in-out infinite;
}
@keyframes nos-glow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.18); opacity: 0.65; }
}
#nosotros > .container { position: relative; z-index: 1; }

.about2 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.about2__body { max-width: 600px; }
.about2__lead { color: var(--ink-600); margin-top: 16px; font-size: 1.02rem; }

/* Tarjetas apiladas interactivas (enlazan a secciones con smooth-scroll) */
.about2__cards { display: grid; gap: 14px; margin: 30px 0; }
.about2__card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e6ecf5;
  box-shadow: 0 10px 26px rgba(20, 44, 86, 0.06);
  color: var(--ink-900);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease, border-color 0.32s ease;
}
/* Barrido de luz al pasar el cursor */
.about2__card::after {
  content: "";
  position: absolute;
  top: 0; left: -70%;
  width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(47, 124, 246, 0.12), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.about2__card:hover::after { left: 130%; }
.about2__card:hover {
  transform: translateX(6px);
  border-color: rgba(47, 124, 246, 0.35);
  box-shadow: 0 18px 38px rgba(47, 124, 246, 0.16);
}
.about2__pic {
  flex: none;
  width: 48px; height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(150deg, #4a8ef8, #2f7cf6);
  box-shadow: 0 8px 18px rgba(47, 124, 246, 0.35);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.about2__pic svg { width: 23px; height: 23px; }
.about2__card:hover .about2__pic { transform: scale(1.08) rotate(-3deg); }
.about2__ctext { flex: 1 1 auto; min-width: 0; }
.about2__ctext strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.04rem;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}
.about2__ctext small { display: block; font-size: 0.86rem; color: var(--ink-600); margin-top: 2px; }
.about2__chev { flex: none; width: 20px; height: 20px; color: #9fb0c8; transition: transform 0.32s ease, color 0.32s ease; }
.about2__card:hover .about2__chev { transform: translateX(4px); color: var(--blue-500); }
.about2__cta { margin-top: 2px; }

/* Foto enmarcada con badges flotantes */
.about2__media { position: relative; }
.about2__frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 4.5;
  box-shadow: 0 44px 84px rgba(16, 38, 74, 0.20);
}
.about2__frame img { width: 100%; height: 100%; object-fit: cover; }
.about2__glow {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(9, 17, 33, 0.30));
  pointer-events: none;
}
.about2__seal {
  position: absolute;
  top: -18px; right: -16px;
  width: 122px; height: 122px;
  padding: 8px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 18px 40px rgba(16, 38, 74, 0.24);
}
.about2__seal svg { width: 100%; height: 100%; overflow: visible; }
.seal__ring { fill: none; stroke: url(#seal-grad); stroke-width: 2.4; }
.seal__dash {
  fill: none;
  stroke: rgba(47, 124, 246, 0.4);
  stroke-width: 1.4;
  stroke-dasharray: 1.5 7;
  stroke-linecap: round;
  transform-box: view-box;
  transform-origin: 60px 60px;
  animation: seal-spin 26s linear infinite;
}
@keyframes seal-spin { to { transform: rotate(360deg); } }
.seal__txt {
  fill: #2f6fd6;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 8px;
  letter-spacing: 0.7px;
}
.seal__mark { opacity: 0.9; }
.seal__big { fill: #14233f; font-family: var(--font-head); font-weight: 800; font-size: 27px; }
.seal__small { fill: #2f7cf6; font-family: var(--font-body); font-weight: 800; font-size: 11px; letter-spacing: 3px; }

.about2__badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px 13px 13px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 44px rgba(16, 38, 74, 0.20);
  animation: badge-float 4.6s ease-in-out infinite;
}
.about2__badge--top { top: -18px; right: -18px; }
.about2__badge--stat { left: -20px; bottom: 28px; animation-duration: 5.4s; animation-delay: -1.9s; }
@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
.about2__badge-ic {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(150deg, #4a8ef8, #2f7cf6);
}
.about2__badge-ic svg { width: 22px; height: 22px; }
.about2__badge strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--ink-900);
}
.about2__badge small { font-size: 0.78rem; color: var(--ink-600); }

/* ============ Nuestros Servicios ============ */
.services {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #eaf1fb 0%, #f3f8fd 55%, #ffffff 100%);
  color: var(--ink-900);
}
.services__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(560px 300px at 88% 4%, rgba(47, 124, 246, 0.10), transparent 60%),
    radial-gradient(520px 320px at 6% 96%, rgba(56, 212, 245, 0.09), transparent 60%);
}
.services > .container { position: relative; z-index: 1; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e6ecf5;
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 34px rgba(20, 44, 86, 0.06);
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.service-card:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; }
/* Indicador de "abrir" que aparece al pasar el cursor */
.service-card__peek {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--blue-500);
  opacity: 0;
  transform: scale(0.6) translateY(-4px);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card__peek svg { width: 17px; height: 17px; }
.service-card:hover .service-card__peek,
.service-card:focus-visible .service-card__peek { opacity: 1; transform: scale(1) translateY(0); }
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(47, 124, 246, 0.3);
  box-shadow: 0 28px 56px rgba(47, 124, 246, 0.16);
}
/* Zona de imagen (foto o placeholder de marca) */
.service-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef3fa;
}
.service-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover .service-card__media img { transform: scale(1.07); }
.service-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 17, 33, 0.06) 0%, transparent 38%, rgba(9, 17, 33, 0.30) 100%);
  pointer-events: none;
}
/* Placeholder de marca cuando aún no hay foto */
.service-card__media--ph {
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #4a8ef8 0%, #2f7cf6 60%, #1f5fd8 100%);
}
.service-card__media--ph::before {
  content: "";
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%);
}
.service-card__media--ph::after { background: none; }
.service-card__ph-icon { position: relative; z-index: 1; width: 66px; height: 66px; color: #fff; }
.service-card:hover .service-card__ph-icon { animation: none; }
.service-card__num {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  min-width: 34px; height: 34px;
  padding: 0 8px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(9, 16, 28, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.9rem;
}
.service-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 24px;
}
.service-card__body h3 { font-size: 1.2rem; color: var(--ink-900); margin-bottom: 9px; letter-spacing: -0.01em; }
.service-card__body p { color: var(--ink-600); font-size: 0.94rem; line-height: 1.55; margin-bottom: 18px; flex: 1; }
.service-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-500);
}
.service-card__more svg { width: 16px; height: 16px; transition: transform 0.25s ease; }
.service-card:hover .service-card__more svg { transform: translateX(4px); }

/* Placeholder del modal (servicios sin foto) */
.modal__media-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #4a8ef8 0%, #2f7cf6 60%, #1f5fd8 100%);
}
.modal__media-ph[hidden] { display: none; }
.modal__media-ph svg { width: 96px; height: 96px; color: #fff; }

/* ============ Animaciones de aparición (controladas por GSAP) ============ */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  visibility: hidden;
}
/* El hero está sobre el pliegue: se anima con CSS puro, NO con GSAP.
   Si su texto espera a que cargue el JS, el LCP se dispara en móviles
   lentos (era el elemento LCP y tardaba ~6 s). */
/* El estado en REPOSO del hero es visible y sin desplazar; la animación solo
   manda durante su retardo y su recorrido. Por eso `backwards` y no `both`:
   con `both` el estado final lo fijaba la animación, así que si algo la
   cancelaba o nunca llegaba a correr el texto se quedaba invisible. Ahora, si
   la animación falla, el texto simplemente aparece sin entrada. */
.hero .reveal {
  visibility: visible;
  opacity: 1;
  transform: none;
  animation: hero-in 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
  animation-delay: var(--d, 0s);
}
@keyframes hero-in {
  from { opacity: 0; transform: translateY(34px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* El estado visible usa variables de transform para que los componentes
   interactivos (tilt 3D, elevación al hover) puedan moverse vía --ty/--rx/--ry */
.reveal.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(var(--ty, 0px)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
/* Nota: los reveals y scrubs de scroll corren siempre (los pidió el cliente);
   solo los bucles decorativos respetan "reducir movimiento" del sistema. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__scroll { animation: none; }
  .film-card__badge::after { animation: none; }
  .numbers__item strong { animation: none; }
  .cta-banner::after { animation: none; }
  .cta-banner__logo { animation: none; }
  .cta-banner__particles { display: none; }
  .wa-bubble__status i, .wa-bubble__typing i { animation: none; }
  .footer__status i { animation: none; }
  .footer__aurora span { animation: none; }
  .dark-aurora span { animation: none; }
  .navbar { animation: none; }
  .seal__dash { animation: none; }
  .about2__badge { animation: none; }
  #nosotros::before { animation: none; }
  .intro { display: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about2 { grid-template-columns: 1fr; gap: 48px; }
  .about2__media { max-width: 560px; margin-inline: auto; }
  .about2__frame { aspect-ratio: 16 / 10; }
  .about2__body { max-width: none; }
  .films-grid { grid-template-columns: repeat(2, 1fr); }
  .ba-grid { grid-template-columns: 1fr; gap: 44px; }
  .showcase { grid-template-columns: 1fr; }
  .showcase__media { min-height: 400px; }
  .showcase__panel { padding: 64px 32px; }
  .showcase__panel::before { top: 0; bottom: auto; left: 8%; right: 8%; width: auto; height: 2px;
    background:
      linear-gradient(90deg, transparent, #4a8ef8 40%, #38d4f5 60%, transparent) no-repeat,
      linear-gradient(90deg, transparent, rgba(47, 124, 246, 0.3) 50%, transparent);
    background-size: 55% 100%, 100% 100%;
    animation: line-sweep 3.6s ease-in-out infinite;
  }
  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px 48px; }
  .footer__brand-col { grid-column: 1 / -1; }
}

@media (max-width: 1180px) {
  /* Menú hamburguesa también en tablet/laptop chico: con 6 enlaces la barra
     horizontal ya no cabe cómodamente junto al idioma y el CTA. */
  /* Menú móvil: overlay a pantalla completa, lista editorial alineada a la
     izquierda que arranca bajo la barra (sin huecos muertos) */
  .navbar__nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    /* --app-h lo mide el JS con el viewport visual: es lo único fiable para
       que la barra del navegador móvil no tape el pie del menú.
       100vh queda de respaldo si el JS no corre. */
    height: 100vh;
    height: var(--app-h, 100vh);
    width: 100%;
    background: linear-gradient(180deg, #0a1120 0%, #0c1526 100%);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 104px 28px calc(28px + env(safe-area-inset-bottom, 0px));
    gap: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
  }
  .navbar__nav.is-open { opacity: 1; visibility: visible; }

  /* Entrada escalonada de los elementos del menú */
  .navbar__nav > * {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  .navbar__nav.is-open > * { opacity: 1; transform: none; }
  .navbar__nav.is-open > *:nth-child(1) { transition-delay: 0.06s; }
  .navbar__nav.is-open > *:nth-child(2) { transition-delay: 0.11s; }
  .navbar__nav.is-open > *:nth-child(3) { transition-delay: 0.16s; }
  .navbar__nav.is-open > *:nth-child(4) { transition-delay: 0.21s; }
  .navbar__nav.is-open > *:nth-child(5) { transition-delay: 0.26s; }
  .navbar__nav.is-open > *:nth-child(6) { transition-delay: 0.31s; }
  .navbar__nav.is-open > *:nth-child(7) { transition-delay: 0.38s; }

  /* Enlaces como lista: grandes, a la izquierda y con separador */
  .nav-link {
    width: 100%;
    justify-content: flex-start;
    font-size: 1.3rem;
    letter-spacing: 0.02em;
    padding: 17px 2px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  /* En el menú el activo va sin caja: solo un subrayado a la izquierda */
  .nav-link.is-active { background: transparent; }
  .nav-link.is-active::after {
    display: block;
    left: 2px; right: auto; bottom: 8px;
    width: 26px; margin-left: 0;
    transform-origin: left center;
  }

  .nav-dropdown { width: 100%; text-align: left; }

  /* El chevron se va al extremo derecho, como un acordeón */
  .nav-dropdown__toggle { justify-content: space-between; width: 100%; }
  .nav-dropdown__menu {
    position: static;
    width: auto;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    min-width: 0;
    border: 0;
    border-left: 1px solid rgba(47, 124, 246, 0.35);
    border-radius: 0;
    margin: 0 0 0 2px;
    padding: 6px 0 10px 14px;
    text-align: left;
  }
  /* Mega-menú compacto dentro del drawer */
  .nav-mega__item { padding: 8px 0; gap: 10px; }
  .nav-mega__item:hover { background: transparent; transform: none; }
  .nav-mega__ic { width: 30px; height: 30px; border-radius: 8px; }
  .nav-mega__ic svg { width: 15px; height: 15px; }
  .nav-mega__txt strong { font-size: 0.95rem; }
  .nav-mega__txt small { display: none; }
  .nav-mega__foot { margin-top: 4px; padding: 10px 0 0; }
  .nav-dropdown__menu a {
    justify-content: flex-start;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.98rem;
    padding: 9px 0;
  }
  .nav-dropdown.is-open .nav-dropdown__menu { display: grid; gap: 0; }
  .navbar__cta { display: none; }
  .navbar__cta-mobile {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    margin-top: 26px;
    padding-top: 13px;
    padding-bottom: 13px;
  }
  /* La marca y la X quedan por encima del overlay a pantalla completa */
  .navbar__brand { position: relative; z-index: 105; margin-right: auto; }
  .navbar__inner { gap: 0; }
  .lang-toggle { margin-left: 0; position: relative; z-index: 105; }
  .navbar__burger { display: flex; z-index: 110; margin-left: 14px; }
}

/* Ajustes de layout de tablet/móvil (independientes del breakpoint del menú) */
@media (max-width: 860px) {
  .section { padding: 72px 0; }
  .section-head--split { flex-direction: column; align-items: flex-start; }
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 40px 30px; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .numbers__item:nth-child(3)::before { display: none; }
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__panel { max-width: none; justify-self: stretch; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 60px; padding-bottom: 48px; }
  .footer__brand-col { grid-column: 1 / -1; }
  .footer__tagline { max-width: 440px; }
  /* Barra inferior apilada y con espacio para que "Volver arriba" no quede
     debajo del botón flotante de WhatsApp (fijo abajo a la derecha) */
  .footer__bottom-inner { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
  .footer__bottom { padding-bottom: 100px; }
  .footer__top { margin-right: 0; }
}

/* Menú móvil en pantallas de poca altura (o con la barra del navegador
   comiéndose espacio): todo más compacto para que el pie no se salga */
@media (max-width: 860px) and (max-height: 720px) {
  .navbar__nav { padding-top: 86px; }
  .nav-link { font-size: 1.1rem; padding: 12px 2px; }
  .nav-dropdown__menu a { padding: 7px 0; font-size: 0.92rem; }
  .navbar__cta-mobile { margin-top: 16px; }
}

@media (max-width: 560px) {
  /* Servicios: una sola columna en móvil */
  .services-grid { grid-template-columns: 1fr; }
  /* Nosotros: en móvil los badges bajan a una fila bajo la foto (sin encimarse) */
  .about2__media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .about2__frame { grid-column: 1 / -1; }
  .about2__badge {
    position: static;
    animation: none;
    padding: 12px 14px;
    box-shadow: 0 10px 26px rgba(16, 38, 74, 0.10);
    border: 1px solid #e9eef6;
  }
  .about2__badge-ic { width: 40px; height: 40px; }
  .about2__badge strong { font-size: 1.2rem; }
  .about2__card { padding: 14px 14px; gap: 13px; }
  /* Bullets del carrusel: zona táctil de 44px y más separación (accesibilidad) */
  .projects-swiper .swiper-pagination { display: flex; justify-content: center; align-items: center; gap: 30px; }
  .projects-swiper .swiper-pagination-bullet { margin: 0 !important; position: relative; }
  .projects-swiper .swiper-pagination-bullet::before {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    width: 44px; height: 44px;
    transform: translate(-50%, -50%);
  }
  /* En móvil solo el botón flotante de WhatsApp (sin la burbuja automática,
     que se cortaba con la barra del navegador) */
  .wa-bubble { display: none !important; }
  /* En móvil se oculta "Volver arriba" */
  .footer__top { display: none; }
  /* Footer centrado y más compacto en móvil */
  .footer__inner { grid-template-columns: 1fr; gap: 30px; text-align: center; padding-top: 52px; padding-bottom: 40px; }
  .footer__brand-col, .footer__col, .footer__contact { align-items: center; }
  .footer__brand-col .navbar__brand { justify-content: center; }
  .footer__tagline { margin-left: auto; margin-right: auto; }
  .footer__social { justify-content: center; }
  .footer h4 { text-align: center; }
  .footer h4::after { left: 50%; margin-left: -15px; transform-origin: center; }
  .footer__contact-item { justify-content: center; }
  .footer__wa { width: auto; padding-left: 26px; padding-right: 26px; }
  .footer__status { justify-content: center; }
  .projects-swiper .swiper-pagination { margin-top: 22px; }
  .showcase__stat { left: 14px; bottom: 14px; padding: 11px 14px 11px 11px; }
  .showcase__stat strong { font-size: 1.15rem; }
  .features-grid { grid-template-columns: 1fr; gap: 30px; }
  .films-grid { grid-template-columns: 1fr; }
  .faq__item summary { padding: 17px 18px; font-size: 0.95rem; }
  .faq__panel { padding: 0 18px 18px; }
  .film-card__body p { min-height: 0; }
  .hero__actions { align-items: center; }
  .hero__actions .btn { flex: 1; justify-content: center; }
  .stats-panel { padding: 26px 22px 8px; }
  .stats-panel__grid { grid-template-columns: 1fr; }
  .stat { padding: 20px 0; }
  .stat:nth-child(odd) { border-right: none; }
  .stat:nth-child(even) { padding-left: 0; }
  .stat:nth-child(-n+2) { border-bottom: none; }
  .stat:not(:last-child) { border-bottom: 1px solid rgba(255, 255, 255, 0.09); }
  .cta-banner__text { flex-direction: column; align-items: flex-start; gap: 18px; }
  .cta-banner .btn { width: 100%; justify-content: center; }
}
