/* ============================================================
   @property — propiedades animables del btn--shiny
   ============================================================ */
@property --shiny-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@property --shiny-angle-offset {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@property --shiny-percent {
  syntax: "<percentage>";
  initial-value: 5%;
  inherits: false;
}
@property --shiny-shine {
  syntax: "<color>";
  initial-value: white;
  inherits: false;
}

/* ============================================================
   TOKENS — Paleta y tipografías oficiales del brief
   ============================================================ */
:root {
  /* Backgrounds */
  --bg-deep: #020617;          /* azul casi negro */
  --bg-night: #071A2D;         /* azul noche */
  --surface: #0B2138;
  --surface-2: rgba(255, 255, 255, 0.025);

  /* Bordes */
  --border: rgba(148, 163, 184, 0.10);
  --border-strong: rgba(148, 163, 184, 0.18);
  --border-glass: rgba(56, 189, 248, 0.16);

  /* Acentos */
  --blue-pro: #0F4C81;         /* azul profesional */
  --blue-electric: #2563EB;    /* azul eléctrico */
  --cyan: #38BDF8;             /* celeste tecnológico */
  --amber: #F5B544;            /* ámbar elegante (uso muy puntual) */

  /* Texto */
  --text: #F8FAFC;             /* blanco frío */
  --text-muted: #94A3B8;       /* gris azulado */
  --text-dim: #64748B;

  /* Tipografía */
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Sistema */
  --radius-pill: 999px;
  --radius-btn: 12px;
  --radius-lg: 18px;
  --container: 1320px;
  --header-h: 88px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Planes — imágenes de las cards (valores finales) */
  --plan-img-size: 160%;
  --plan-img-y: 18px;
  --plan-media-h: 218px;

  /* Propuesta — pillars + scroll-pin (valores finales) */
  --pillar-w: 178%;
  --pillar1-y: 2%;
  --pillar2-y: -9%;
  --pillar3-y: -20%;
  --prop-h: 180vh;
  --prop-fade-top: 260px;   /* transición de entrada (oscuro→blanco) */
  --prop-fade-bot: 40px;    /* transición de salida (blanco→oscuro); menor = más abajo */
}

/* ============================================================
   LOADER — pantalla de carga inicial premium
   ============================================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 45% at 50% 44%, rgba(37, 99, 235, 0.20), transparent 68%),
    linear-gradient(180deg, #020617 0%, #071A2D 100%);
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

/* Grid blueprint muy sutil */
.loader::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
}

/* Viñeta oscura en bordes */
.loader::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 85% 85% at 50% 50%, transparent 38%, rgba(2, 6, 23, 0.72) 100%);
  pointer-events: none;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Elemento visual decorativo de fondo (línea punteada + pelota ámbar) */
.loader__path-decor {
  position: absolute;
  width: min(580px, 84vw);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(5);
  opacity: 0.30;
  pointer-events: none;
  z-index: 1;
  user-select: none;
}

.loader__center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Contenedor CSS del isotipo — cuadrado azul redondeado */
.loader__logo-shell {
  width: 112px;
  height: 112px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  position: relative;
  flex-shrink: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13) 0%, transparent 42%),
    radial-gradient(circle at 68% 18%, rgba(56, 189, 248, 0.52), transparent 28%),
    linear-gradient(145deg, #2563EB 0%, #0F4CFF 55%, #1642B8 100%);
  border: 1px solid rgba(56, 189, 248, 0.38);
  animation: loader-shell-breathe 2.6s ease-in-out infinite;
}

@keyframes loader-shell-breathe {
  0%, 100% {
    box-shadow:
      0 0 28px rgba(37, 99, 235, 0.55),
      0 0 75px  rgba(37, 99, 235, 0.28),
      0 0 140px rgba(37, 99, 235, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.22);
  }
  50% {
    box-shadow:
      0 0 42px rgba(37, 99, 235, 0.75),
      0 0 100px rgba(37, 99, 235, 0.40),
      0 0 180px rgba(37, 99, 235, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.22);
  }
}

/* Contenedor Lottie dentro del shell */
.loader__lottie {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
}

.loader__lottie svg {
  width: 100% !important;
  height: 100% !important;
}

/* Barra de progreso */
.loader__bar {
  width: 260px;
  height: 2px;
  margin-top: 28px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.10);
  overflow: hidden;
  flex-shrink: 0;
  /* filter aplica post-clipping: el glow sigue al span animado sin desbordarse */
  filter:
    drop-shadow(0 0 3px rgba(56, 189, 248, 1))
    drop-shadow(0 0 10px rgba(37, 99, 235, 0.85))
    drop-shadow(0 0 22px rgba(37, 99, 235, 0.55))
    drop-shadow(0 0 42px rgba(37, 99, 235, 0.28));
}

.loader__bar span {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    transparent              0%,
    rgba(37, 99, 235, 0.45) 22%,
    #38BDF8                 46%,
    rgba(255,255,255, 0.92) 57%,
    #38BDF8                 70%,
    rgba(37, 99, 235, 0.45) 86%,
    transparent             100%
  );
  animation: loader-slide 1.45s ease-in-out infinite;
}

@keyframes loader-slide {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(310%); }
}

/* Logotipo wordmark debajo de la barra */
.loader__wordmark {
  width: 130px;
  height: auto;
  margin-top: 22px;
  opacity: 0.88;
  flex-shrink: 0;
  display: block;
  filter: brightness(0) invert(1);
}

/* Bloquear scroll mientras el loader está visible */
body.is-loading { overflow: hidden; }

@media (max-width: 768px) {
  .loader__logo-shell {
    width: 82px;
    height: 82px;
    border-radius: 22px;
  }
  .loader__lottie {
    width: 54px;
    height: 54px;
  }
  .loader__bar {
    width: 180px;
    margin-top: 22px;
  }
  .loader__wordmark {
    width: 104px;
    margin-top: 18px;
  }
  .loader__path-decor {
    width: min(360px, 90vw);
    opacity: 0.20;
  }
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; max-width: 100%; }

/* Contención del scroll horizontal a nivel ICB.
   Origen real del desborde (diagnosticado en mobile): los elementos
   position:fixed (.bg-layers y sus glows, .assistant, .screen, .dock) y los
   SVG decorativos que sangran a propósito (.bg-zigzag/.cta__zigzag/.footer__zigzag,
   con preserveAspectRatio="slice" y viewBox ancho) se anclan al Initial
   Containing Block, NO al body — por eso el `overflow-x: clip` del body no los
   contenía y el scrollWidth quedaba en 635px sobre un viewport de 375px.
   Cliparlos en <html> cierra ese desborde sin romper position:sticky (clip, no
   hidden, no crea contexto de scroll). No es un parche: el contenido in-flow ya
   entra en el viewport; esto solo recorta el sangrado intencional de las capas
   decorativas fijas. */
html { overflow-x: clip; }

body {
  min-height: 100vh;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-body);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* overflow-x: clip (no "hidden") porque "hidden" rompe position:sticky
     de los hijos al crear un nuevo scrolling context */
  overflow-x: clip;
  position: relative;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--blue-electric); color: #fff; }

/* ============================================================
   FONDO BLUEPRINT — capas decorativas FIJAS al viewport
   No se mueven con el scroll. Visibles uniformemente en toda la landing.
   ============================================================ */
.bg-layers {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

@keyframes grid-scroll {
  from { background-position: 0 0; }
  to   { background-position: 72px 72px; }
}

/* Grilla técnica uniforme con scroll diagonal sutil */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: 0 0;
  animation: grid-scroll 8s linear infinite;
  mask-image: linear-gradient(to bottom,
    transparent 0,
    #000 80px,
    #000 calc(100% - 80px),
    transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom,
    transparent 0,
    #000 80px,
    #000 calc(100% - 80px),
    transparent 100%);
}

/* Capa reveal — sigue al cursor, misma grilla en cian */
.bg-grid-reveal {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.28) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: 0 0;
  animation: grid-scroll 8s linear infinite;
  mask-image: radial-gradient(circle 300px at var(--mouse-x, -600px) var(--mouse-y, -600px), black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle 300px at var(--mouse-x, -600px) var(--mouse-y, -600px), black 0%, transparent 100%);
  pointer-events: none;
}

/* Dots ultra sutiles — también fijos y uniformes */
.bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(148, 163, 184, 0.10) 1px, transparent 1.2px);
  background-size: 28px 28px;
  background-position: 14px 14px;
  opacity: 0.5;
}

/* Glow azul controlado: uno detrás del Spline, otro abajo a la izquierda */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
}
.bg-glow--right {
  width: 720px; height: 720px;
  top: -120px; right: -180px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.45), transparent 65%);
}
.bg-glow--left {
  width: 520px; height: 520px;
  bottom: -180px; left: -140px;
  background: radial-gradient(circle, rgba(15, 76, 129, 0.55), transparent 70%);
  opacity: 0.45;
}

/* Zigzag inspirado en el isotipo (trayectoria de pelota rebotando) */
.bg-zigzag {
  position: absolute;
  left: 0;
  right: 0;
  top: 62%;
  width: 100%;
  height: 360px;
  opacity: 0.55;
}
.bg-zigzag__path {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 4 8;
  animation: zig-drift 14s linear infinite;
}
.bg-zigzag__dot {
  animation: dot-pulse 3.6s var(--ease) infinite;
  transform-origin: center;
}
.bg-zigzag__dot:nth-child(3) { animation-delay: 1.2s; }
.bg-zigzag__dot:nth-child(4) { animation-delay: 2.4s; }

@keyframes zig-drift {
  to { stroke-dashoffset: -120; }
}
@keyframes dot-pulse {
  0%, 100% { opacity: 0.35; r: 2; }
  50%      { opacity: 1;    r: 3.5; }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  margin: 0;
  padding: 0 56px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;

  /* Distorted glass (estilo cult-ui) — combina blur + saturación + SVG noise displacement.
     `url(#glass-distortion)` solo funciona en Chromium; en Firefox/Safari el fallback
     es solo el blur, que igual queda como liquid glass premium. */
  background: linear-gradient(180deg,
    rgba(2, 6, 23, 0.55) 0%,
    rgba(2, 6, 23, 0.35) 100%);
  backdrop-filter: blur(18px) saturate(170%) url(#glass-distortion);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* Reflejo superior sutil (top edge highlight, tipo glass real) */
.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.08) 50%,
    transparent);
  pointer-events: none;
}

/* Línea inferior glass muy sutil */
.site-header::after {
  content: "";
  position: absolute;
  left: 56px;
  right: 56px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(56, 189, 248, 0.22) 30%,
    rgba(56, 189, 248, 0.22) 70%,
    transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  /* color hereda al SVG -> pinta las letras "Webstudio".
     Para fondo claro (futuras secciones): poner color: var(--bg-deep)
     o agregar la clase .section--light a la sección padre. */
  color: var(--text);
}

.brand__logo {
  height: 46px;
  width: auto;
  filter: drop-shadow(0 8px 22px rgba(37, 99, 235, 0.28));
  transition: transform 0.4s var(--ease), color 0.3s var(--ease);
}
.brand:hover .brand__logo { transform: translateY(-1px); }

/* Hook para futuras secciones con fondo claro */
.section--light .brand { color: var(--bg-deep); }

.nav {
  justify-self: center;
  display: flex;
  gap: 40px;
}
.nav a {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  opacity: 0.78;
  position: relative;
  padding: 6px 2px;
  text-shadow: 0 0 0 transparent;
  transition: opacity 0.2s var(--ease),
              color 0.25s var(--ease),
              text-shadow 0.35s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--cyan);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav a:hover {
  opacity: 1;
  color: var(--cyan);
  /* glow del texto: dos capas para suavidad */
  text-shadow:
    0 0 8px rgba(56, 189, 248, 0.65),
    0 0 22px rgba(56, 189, 248, 0.35);
}
.nav a:hover::after {
  width: 100%;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  isolation: isolate;
  transition: transform 0.25s var(--ease),
              background 0.25s var(--ease),
              border-color 0.25s var(--ease),
              box-shadow 0.35s var(--ease);
}
.btn:hover { transform: translateY(-1.5px); }

.btn--sm { padding: 11px 20px; font-size: 14px; border-radius: 10px; }
.btn--xl { padding: 20px 32px; font-size: 16.5px; border-radius: 14px; }

.btn--primary {
  background: var(--blue-electric);
  color: #fff;
  /* Glow centrado (offset Y = 0) para que envuelva al botón, no caiga abajo */
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 0 28px rgba(37, 99, 235, 0.35);
}
.btn--primary:hover {
  background: #3b73ff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 0 42px rgba(37, 99, 235, 0.55),
    0 0 0 4px rgba(37, 99, 235, 0.18);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  border-color: var(--border-strong);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  background: rgba(56, 189, 248, 0.06);
  border-color: var(--border-glass);
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.14);
}

.btn__icon { width: 16px; height: 16px; }
.btn:hover .btn__icon { transform: translate(1px, -1px); transition: transform 0.25s var(--ease); }

/* ── Shiny button ─────────────────────────────────────────── */
@keyframes shiny-rotate  { to { --shiny-angle: 360deg; } }
@keyframes shiny-shimmer { to { rotate: 360deg; } }
@keyframes shiny-breathe { from, to { scale: 1; } 50% { scale: 1.2; } }

.btn--shiny {
  --shiny-bg:       #020617;
  --shiny-bg-sub:   #0c1a35;
  --shiny-hi:       #2563EB;
  --shiny-hi-soft:  #8aa6ff; /* azul suave para el shine en hover — NO cyan */
  --shiny-dur:      3s;
  --shiny-ease:     800ms cubic-bezier(0.25, 1, 0.5, 1);

  overflow: hidden; /* recorta el cuadrado ::after y dots ::before que sobresalen */

  /* override btn--primary solid fill */
  background:
    linear-gradient(var(--shiny-bg), var(--shiny-bg)) padding-box,
    conic-gradient(
      from calc(var(--shiny-angle) - var(--shiny-angle-offset)),
      transparent,
      var(--shiny-hi)         var(--shiny-percent),
      var(--shiny-shine)      calc(var(--shiny-percent) * 2),
      var(--shiny-hi)         calc(var(--shiny-percent) * 3),
      transparent             calc(var(--shiny-percent) * 4)
    ) border-box;
  border: 1px solid transparent;
  box-shadow: inset 0 0 0 1px var(--shiny-bg-sub);
  color: #fff;
  transition:
    --shiny-angle-offset var(--shiny-ease),
    --shiny-percent      var(--shiny-ease),
    --shiny-shine        var(--shiny-ease),
    transform            0.25s var(--ease);

  animation:
    shiny-rotate var(--shiny-dur) linear infinite,
    shiny-rotate calc(var(--shiny-dur) / 0.4) linear infinite reverse paused;
  animation-composition: add;
}

/* Dot pattern */
.btn--shiny::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset-inline-start: 50%;
  inset-block-start: 50%;
  translate: -50% -50%;
  z-index: -1;
  --sz: calc(100% - 4px);
  width: var(--sz);
  height: var(--sz);
  background: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.55) 0.5px, transparent 0) padding-box;
  background-size: 4px 4px;
  background-repeat: space;
  mask-image: conic-gradient(from calc(var(--shiny-angle) + 45deg), black, transparent 10% 90%, black);
  border-radius: inherit;
  opacity: 0.35;
  animation:
    shiny-rotate var(--shiny-dur) linear infinite,
    shiny-rotate calc(var(--shiny-dur) / 0.4) linear infinite reverse paused;
  animation-composition: add;
}

/* Inner shimmer */
.btn--shiny::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset-inline-start: 50%;
  inset-block-start: 50%;
  translate: -50% -50%;
  z-index: -1;
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(-50deg, transparent, var(--shiny-hi), transparent);
  mask-image: radial-gradient(circle at bottom, transparent 40%, black);
  opacity: 0.55;
  animation:
    shiny-shimmer var(--shiny-dur) linear infinite,
    shiny-shimmer calc(var(--shiny-dur) / 0.4) linear infinite reverse paused;
  animation-composition: add;
}

/* Span wrapping text + icon */
.btn--shiny > span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Inner glow breathe on hover */
.btn--shiny > span::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset-inline-start: 50%;
  inset-block-start: 50%;
  translate: -50% -50%;
  z-index: -1;
  --sz: calc(100% + 2.5rem);
  width: var(--sz);
  height: var(--sz);
  background: radial-gradient(ellipse 75% 60% at 50% 100%, var(--shiny-hi), transparent 72%);
  opacity: 0;
  transition: opacity var(--shiny-ease);
  animation: calc(var(--shiny-dur) * 1.5) shiny-breathe linear infinite;
}

/* Hover / focus — activa la animación y amplía el brillo */
.btn--shiny:is(:hover, :focus-visible) {
  --shiny-percent:      20%;
  --shiny-angle-offset: 95deg;
  --shiny-shine:        var(--shiny-hi-soft);
  transform: translateY(-1.5px);
}
.btn--shiny:is(:hover, :focus-visible),
.btn--shiny:is(:hover, :focus-visible)::before,
.btn--shiny:is(:hover, :focus-visible)::after {
  animation-play-state: running;
}
.btn--shiny:is(:hover, :focus-visible) > span::before { opacity: 1; }
.btn--shiny:active { translate: 0 1px; }

/* ============================================================
   HERO — texto pegado a la izquierda, Spline ocupa mitad derecha
   ============================================================ */
.hero {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 64px 56px 96px;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
}

/* COPY pegado a la izquierda del viewport */
.hero__copy {
  position: relative;
  z-index: 3;
  max-width: 780px;
  width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  font-weight: 500;
  text-transform: uppercase;
}
.eyebrow__dash {
  width: 22px;
  height: 1px;
  background: var(--cyan);
  display: inline-block;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

.hero__title {
  margin: 0 0 32px;
  font-family: var(--font-display);
  font-size: clamp(54px, 7.2vw, 108px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--text);
}
.accent-dot { color: var(--blue-electric); }

/* ============================================================
   TEXT ANIMATE — rollIn (estilo cult-ui, hecho en vanilla)
   ============================================================ */
.hero__title .word {
  display: inline-block;
  white-space: nowrap;
  vertical-align: top;
}
.hero__title .word__inner {
  display: inline-block;
}
.hero__title .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em) rotate(110deg);
  transform-origin: 0 100%;
  animation: rollIn 0.7s cubic-bezier(.2, .8, .2, 1) forwards;
  animation-delay: calc(var(--i, 0) * 0.035s + 0.15s);
  will-change: transform, opacity;
}
.hero__title .accent-dot {
  display: inline-block;
  opacity: 0;
  animation: dotPop 0.5s cubic-bezier(.2, .8, .2, 1) forwards;
  animation-delay: 1.2s;
  transform: scale(0);
  transform-origin: bottom left;
}

/* Si JS no corrió (reduced-motion o sin JS), mostrar el texto plano */
.hero__title.is-static .letter,
.hero__title.is-static .accent-dot,
html.no-js .hero__title .letter,
html.no-js .hero__title .accent-dot {
  opacity: 1;
  transform: none;
  animation: none;
}

@keyframes rollIn {
  0% {
    opacity: 0;
    transform: translateY(0.6em) rotate(110deg);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}
@keyframes dotPop {
  0%   { opacity: 0; transform: scale(0); }
  70%  { opacity: 1; transform: scale(1.25); }
  100% { opacity: 1; transform: scale(1); }
}

/* ============================================================
   HOVER en palabras destacadas (.word--hl) — gradient sweep + glow
   Genérico: funciona en cualquier título.
   ============================================================ */
.word--hl {
  position: relative;
  cursor: pointer;
  display: inline-block;
}
.word--hl .word__inner {
  display: inline-block;
  background-image: linear-gradient(110deg,
    var(--cyan) 0%,
    var(--blue-electric) 18%,
    var(--text) 38%,
    var(--text) 100%);
  background-size: 220% 100%;
  background-position: 100% 0;       /* parado en zona blanca */
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: background-position 0.9s cubic-bezier(.2, .8, .2, 1),
              filter 0.5s var(--ease),
              transform 0.5s var(--ease);
}
.word--hl:hover .word__inner {
  background-position: 0% 0;
  filter: drop-shadow(0 0 24px rgba(56, 189, 248, 0.55));
  transform: translateY(-2px);
}

/* Underline animado tipo lente que aparece al hover */
.word--hl::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -0.05em;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg,
    transparent,
    var(--cyan),
    var(--blue-electric),
    transparent);
  opacity: 0;
  transform: scaleX(0.3);
  transform-origin: center;
  transition: opacity 0.45s var(--ease), transform 0.55s cubic-bezier(.2, .8, .2, 1);
  pointer-events: none;
  filter: blur(0.5px);
}
.word--hl:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.hero__desc {
  margin: 0 0 40px;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.65;
  max-width: 580px;
}

.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Pill "Mantenimiento disponible" — esquinas a juego con los botones */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-btn);
  background: rgba(56, 189, 248, 0.04);
  border: 1px solid var(--border-glass);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.pill__icon {
  width: 16px;
  height: 16px;
  color: var(--cyan);
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.5));
  animation: wrench-tilt 4s var(--ease) infinite;
  transform-origin: 70% 70%;
}
@keyframes wrench-tilt {
  0%, 70%, 100% { transform: rotate(0deg); }
  78%           { transform: rotate(-18deg); }
  86%           { transform: rotate(12deg); }
}

/* ============================================================
   HERO VISUAL — Spline cover-style, responsive a cualquier aspect ratio
   El iframe se dimensiona como "object-fit: cover": siempre cubre el
   contenedor manteniendo el aspect 16:9 que usa Spline, sin importar
   si la pantalla es 16:9, 21:9, 4:3 o mobile.
   ============================================================ */
.hero__visual {
  /* 🎛 Ajustes del bloque visual:
     --visual-width → ancho del bloque (vw)
     --visual-right → desplazamiento desde el borde derecho.
                      Valores negativos sacan el bloque fuera del viewport,
                      moviendo visualmente el modelo MÁS a la derecha.
  */
  --visual-width: 68vw;
  --visual-right: -4vw;

  position: absolute;
  top: 0;
  right: var(--visual-right);
  width: var(--visual-width);
  height: 100%;
  z-index: 1;
  pointer-events: none;

  /* container queries: permite que el iframe se dimensione respecto
     a este contenedor (no al viewport). */
  container-type: size;
}

/* Viñeta + glow azul DETRÁS del Spline (z-index 0) */
.hero__visual::before {
  content: "";
  position: absolute;
  /* Glow centrado más compacto, levemente debajo del modelo */
  inset: 10% 10% 8% 10%;
  background:
    radial-gradient(ellipse 55% 55% at 50% 60%,
      transparent 0%,
      transparent 60%,
      rgba(2, 6, 23, 0.35) 100%),
    radial-gradient(ellipse 50% 50% at 50% 60%,
      rgba(37, 99, 235, 0.32) 0%,
      rgba(56, 189, 248, 0.16) 30%,
      transparent 70%);
  filter: blur(4px);
  z-index: 0;
  pointer-events: none;
}

.spline-wrap {
  /* 🎛 Ajustes finos del modelo dentro del iframe:
     --spline-x → desplazamiento horizontal (px o %) del iframe.
                  0 = centrado. Positivo = a la derecha. Negativo = a la izquierda.
     --spline-y → desplazamiento vertical.
     --spline-ratio → aspect ratio del iframe. Spline renderiza a 16/9 por defecto.
                      Si tu escena está pensada en otra proporción, cambialo
                      (ej. 4/3, 1/1, 21/9).
  */
  --spline-x: 0%;
  --spline-y: 0%;
  --spline-ratio: 16 / 9;

  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: auto;
}

/* COVER del iframe: el lado que falta se completa, el sobrante se recorta.
   Esto garantiza que la escena NUNCA quede cortada por aspect ratio. */
.spline-wrap iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  /* width/height calculados estilo background-size: cover */
  width: max(100cqw, calc(100cqh * 16 / 9));
  height: max(100cqh, calc(100cqw * 9 / 16));
  transform: translate(
    calc(-50% + var(--spline-x)),
    calc(-50% + var(--spline-y))
  );
  border: 0;
  display: block;
  background: transparent;
}

/* Imagen del hero dentro del wrap (reemplaza la escena Spline).
   contain = se ve la ilustración completa, sin recortes.
   - máscara radial: difumina suavemente los bordes para integrarla con la página.
   - transition en transform: para el zoom al hacer hover. */
.spline-wrap .hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 80% 84% at 50% 50%, #000 60%, transparent 100%);
          mask-image: radial-gradient(ellipse 80% 84% at 50% 50%, #000 60%, transparent 100%);
  transform: scale(1);
  transition: transform 0.55s cubic-bezier(0.2, 0.6, 0.2, 1);
  will-change: transform;
}
/* Hover: la imagen se agranda suavemente (el wrap recibe el hover porque
   la imagen tiene pointer-events:none). */
.spline-wrap:hover .hero__img {
  transform: scale(1.07);
}

/* Halftone desactivado (se reemplazó por degradé smooth) */
.halftone { display: none; }

/* ============================================================
   SECCIÓN PROPUESTA — fondo claro (04), con scroll-pin
   ============================================================ */
.propuesta {
  position: relative;
  z-index: 2;
  /* Altura del scroll-pin (--prop-h) + 150px extra de hold al final. */
  height: calc(var(--prop-h, 170vh) + 150px);
  padding: 0;
  /* Degradé smooth oscuro → celeste → blanco → celeste → oscuro.
     🎛 --prop-fade-top: dónde termina la transición de arriba (entrada).
        --prop-fade-bot: dónde EMPIEZA la transición de abajo (salida).
        Más chico = la transición a oscuro queda más abajo = más zona blanca. */
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(37, 99, 235, 0.04), transparent 70%),
    radial-gradient(ellipse 60% 50% at 90% 80%, rgba(56, 189, 248, 0.06), transparent 70%),
    linear-gradient(180deg,
      #020617 0%,
      #071A2D calc(var(--prop-fade-top, 240px) * 0.17),
      #0F4C81 calc(var(--prop-fade-top, 240px) * 0.42),
      #38BDF8 calc(var(--prop-fade-top, 240px) * 0.67),
      #F8FAFC var(--prop-fade-top, 240px),
      #F8FAFC calc(100% - var(--prop-fade-bot, 240px)),
      #38BDF8 calc(100% - var(--prop-fade-bot, 240px) * 0.67),
      #0F4C81 calc(100% - var(--prop-fade-bot, 240px) * 0.42),
      #071A2D calc(100% - var(--prop-fade-bot, 240px) * 0.17),
      #020617 100%);
  color: #020617;
}

/* Trama de blueprint sutil propia (light) */
.propuesta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 76, 129, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 76, 129, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
  z-index: 0;
}
/* Dots laterales sutiles */
.propuesta::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 76, 129, 0.13) 1px, transparent 1.2px);
  background-size: 28px 28px;
  background-position: 14px 14px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(90deg,
    rgba(0,0,0,0.45) 0%,
    transparent 22%,
    transparent 78%,
    rgba(0,0,0,0.45) 100%);
  -webkit-mask-image: linear-gradient(90deg,
    rgba(0,0,0,0.45) 0%,
    transparent 22%,
    transparent 78%,
    rgba(0,0,0,0.45) 100%);
}

/* Decoraciones (cruces + dot ámbar) */
.propuesta__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  color: rgba(15, 76, 129, 0.30);
}
.propuesta__plus {
  position: absolute;
  width: 16px;
  height: 16px;
}
.propuesta__plus--tr { top: 14%; right: 12%; width: 22px; height: 22px; opacity: 0.7; }
.propuesta__plus--mr { top: 38%; right: 6%;  width: 18px; height: 18px; opacity: 0.45; }
.propuesta__plus--bl { bottom: 18%; left: 8%; width: 14px; height: 14px; opacity: 0.55; }

.propuesta__amber {
  position: absolute;
  bottom: 16%;
  left: 4%;
  width: 8px;
  height: 8px;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(245, 181, 68, 0.55);
}

/* CLAVE para el scroll-pin: el inner debe tener la altura COMPLETA de la
   sección (320vh) para que el .propuesta__pin sticky tenga recorrido donde
   pegarse. Si el inner fuera height:auto, colapsaría a 100vh y el sticky
   no tendría espacio para "frenarse". */
.propuesta__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 1480px;
  margin: 0 auto;
}

/* Wrapper sticky — se queda pinneado durante todo el scroll de la sección.
   Mientras tanto JS detecta el progreso y dispara los estados (data-step). */
.propuesta__pin {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  padding: 60px 56px 80px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: center;
}

/* COPY */
.propuesta__copy {
  max-width: 620px;
}

.eyebrow--dark {
  color: var(--blue-electric);
}
.eyebrow--dark .eyebrow__dash {
  background: var(--blue-electric);
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.35);
}

.propuesta__title {
  margin: 24px 0 24px;
  font-family: var(--font-display);
  font-size: clamp(56px, 6.4vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: #020617;
}
.propuesta__title-dot { color: #020617; }
.propuesta__title-dot--accent { color: var(--blue-electric); }
.propuesta__accent {
  color: var(--blue-electric);
}

/* Cada palabra del título — gradient sweep estilo hero (.word--hl).
   En reposo el gradient está parado en la zona oscura (#020617).
   Al activarse (.is-glow), el gradient se desliza revelando cian → azul. */
.propuesta__word {
  display: inline-block;
  background-image: linear-gradient(110deg,
    var(--cyan) 0%,
    var(--blue-electric) 20%,
    #020617 42%,
    #020617 100%);
  background-size: 240% 100%;
  background-position: 100% 0;        /* reposo: oscuro */
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: background-position 0.9s cubic-bezier(.2, .8, .2, 1),
              filter 0.5s var(--ease);
}
.propuesta__word.is-glow {
  background-position: 0% 0;          /* revela cian + azul */
  filter: drop-shadow(0 0 22px rgba(56, 189, 248, 0.45));
}

.propuesta__desc {
  margin: 0 0 36px;
  color: #475569;
  font-size: 18px;
  line-height: 1.6;
  max-width: 460px;
}

/* Pill light variant */
.propuesta__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid rgba(2, 6, 23, 0.08);
  font-size: 13.5px;
  font-weight: 500;
  color: #020617;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 10px 24px rgba(15, 23, 42, 0.06);
}
.propuesta__pill-icon {
  width: 16px;
  height: 16px;
  color: var(--blue-electric);
}
.propuesta__pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px rgba(245, 181, 68, 0.6);
  margin-left: 4px;
}

/* ============================================================
   STAGE — 3 pillars escalonados animados con scroll
   ============================================================ */
.propuesta__stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 480px;
}

.propuesta__stack {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 14px;
  /* Padding lateral: deja aire para que el solape de la 1ª y 3ª imagen NO se
     pase del borde del contenedor (si no, el overflow-x:clip del body la corta). */
  padding-inline: clamp(16px, 2.5vw, 44px);
  /* overflow visible: las imágenes 2x se superponen entre columnas (horizontal). */
  overflow: visible;
  /* Máscara degradado SOLO hacia abajo. repeat-x = se repite en horizontal
     (mantiene visible el solape lateral) pero NO en vertical: por debajo de la
     caja queda transparente, así los pedestales se desvanecen suave en vez de
     cortarse/reaparecer. También oculta los pillars cuando están en translateY(120%). */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 74%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 74%, transparent 100%);
  -webkit-mask-repeat: repeat-x;
          mask-repeat: repeat-x;
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
}

/* Cada pillar: imagen que empieza fuera (abajo) y sube según data-step */
.propuesta__pillar {
  position: relative;
  align-self: end;
  width: 100%;
  height: 100%;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.9s cubic-bezier(.22, .61, .36, 1),
              opacity 0.6s ease;
  will-change: transform;
}
/* Imagen de cada pillar: desborda su columna y se ancla abajo.
   🎛 --pillar-w controla el ancho (tamaño) de las imágenes. */
.propuesta__pillar-img {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--pillar-w, 166%);
  height: auto;
  max-width: none;
  display: block;
  filter: drop-shadow(0 24px 44px rgba(37, 99, 235, 0.22));
  opacity: 0;
  transition: opacity 0.5s ease;
}
/* Capas (stacking): 01 al frente, 02 en el medio, 03 al fondo */
.propuesta__pillar--01 { z-index: 3; }
.propuesta__pillar--02 { z-index: 2; }
.propuesta__pillar--03 { z-index: 1; }
/* La imagen aparece cuando carga (clase agregada por JS). */
.propuesta__pillar.is-loaded .propuesta__pillar-img { opacity: 1; }
.propuesta__pillar.is-loaded .propuesta__pillar-card { opacity: 0; }

/* Placeholder card — visible solo mientras la imagen real no se cargó */
.propuesta__pillar-card {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80%;
  max-width: 240px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  background:
    linear-gradient(180deg,
      rgba(56, 189, 248, 0.20),
      rgba(37, 99, 235, 0.30) 60%,
      rgba(2, 6, 23, 0.50));
  border: 1px solid rgba(56, 189, 248, 0.40);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 20px 50px rgba(37, 99, 235, 0.30);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  transition: opacity 0.3s ease;
}
.propuesta__pillar-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  opacity: 0.75;
}
.propuesta__pillar-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}

/* Estados disparados por scroll. Posición FINAL escalonada:
   01 más abajo, 02 al medio, 03 más arriba */
.propuesta[data-step="0"] .propuesta__pillar { /* todas abajo */
  transform: translateY(120%);
  opacity: 0;
}

.propuesta[data-step="1"] .propuesta__pillar--01,
.propuesta[data-step="2"] .propuesta__pillar--01,
.propuesta[data-step="3"] .propuesta__pillar--01 {
  transform: translateY(var(--pillar1-y, 20%));
  opacity: 1;
}

.propuesta[data-step="2"] .propuesta__pillar--02,
.propuesta[data-step="3"] .propuesta__pillar--02 {
  transform: translateY(var(--pillar2-y, 8%));
  opacity: 1;
}

.propuesta[data-step="3"] .propuesta__pillar--03 {
  transform: translateY(var(--pillar3-y, -4%));
  opacity: 1;
}

/* (reglas obsoletas del stage anterior eliminadas) */

/* ============================================================
   HEADER ADAPTATIVO — al estar sobre sección clara
   ============================================================ */
.site-header.is-on-light {
  background: linear-gradient(180deg,
    rgba(248, 250, 252, 0.78) 0%,
    rgba(248, 250, 252, 0.55) 100%);
  border-bottom-color: rgba(2, 6, 23, 0.08);
}
.site-header.is-on-light::after {
  background: linear-gradient(90deg,
    transparent,
    rgba(37, 99, 235, 0.20) 30%,
    rgba(37, 99, 235, 0.20) 70%,
    transparent);
}
.site-header.is-on-light .brand { color: var(--bg-deep); }
.site-header.is-on-light .brand__logo {
  filter: drop-shadow(0 6px 16px rgba(37, 99, 235, 0.15));
}
.site-header.is-on-light .nav a {
  color: var(--bg-deep);
  opacity: 0.85;
}
.site-header.is-on-light .nav a:hover {
  color: var(--blue-electric);
  text-shadow:
    0 0 8px rgba(37, 99, 235, 0.35),
    0 0 22px rgba(37, 99, 235, 0.18);
}
.site-header.is-on-light .nav a::after {
  background: var(--blue-electric);
}

/* ============================================================
   UTILIDAD: sección desactivada temporalmente.
   Apaga por completo cualquier sección sin borrar su HTML/CSS/JS.
   Usada actualmente en la sección Resultados (ver index.html).
   Para reactivar la sección: quitar la clase `section-disabled` (y `hidden`)
   de la etiqueta <section> correspondiente.
   ============================================================ */
.section-disabled {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* ============================================================
   SECCIÓN RESULTADOS — antes / después
   ============================================================ */
.results {
  position: relative;
  z-index: 2;
  padding: 88px 40px 88px 56px;
}

.results__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr); /* derecha mucho más ancha */
  gap: 56px;
  align-items: stretch;
  max-width: 1720px;            /* contenedor más ancho */
  margin: 0 auto;
}

.results__visual {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-top: 56px;
}

.results__copy { max-width: 620px; }

.results__title {
  margin: 18px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(34px, 3.8vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--text);
}
.results__title-accent { color: var(--blue-electric); }

.results__desc {
  margin: 0 0 32px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 460px;
}

/* ---- Features grid asimétrico ----
   Layout:
   ┌─────────┬─────────┐
   │         │   02    │
   │   01    ├─────────┤
   │ (grande)│   03    │
   ├─────────┴─────────┤
   │       04 (wide)   │
   └───────────────────┘
*/
.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-auto-rows: minmax(0, auto);
  gap: 12px;
}

.feature--lg { grid-column: 1; grid-row: 1 / span 2; }
.feature--sm:nth-of-type(2) { grid-column: 2; grid-row: 1; }
.feature--sm:nth-of-type(3) { grid-column: 2; grid-row: 2; }
.feature--wide { grid-column: 1 / -1; }

.feature {
  position: relative;
  padding: 22px 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.025),
    rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.4s var(--ease),
              transform 0.4s var(--ease),
              box-shadow 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}

/* Capa hover: gradient azul radial que aparece on hover */
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 100% at 80% 110%,
      rgba(37, 99, 235, 0.28),
      transparent 60%),
    radial-gradient(ellipse 60% 80% at 0% 0%,
      rgba(56, 189, 248, 0.14),
      transparent 65%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  z-index: 0;
  pointer-events: none;
}
.feature:hover {
  border-color: rgba(56, 189, 248, 0.30);
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.14);
}
.feature:hover::before { opacity: 1; }

/* Icono GRANDE de fondo con máscara gradient hacia abajo */
.feature__icon-bg {
  position: absolute;
  right: -10px;
  bottom: -16px;
  width: 160px;
  height: 160px;
  color: var(--cyan);
  opacity: 0.12;
  /* Mask: el icono se desvanece hacia abajo */
  -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 65%);
  mask-image: linear-gradient(to top, transparent 0%, #000 65%);
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.feature:hover .feature__icon-bg {
  opacity: 0.22;
  transform: scale(1.05) rotate(-3deg);
  color: var(--cyan);
}

/* Card grande (01): icono más grande */
.feature--lg {
  padding: 22px 22px 20px;
  min-height: 230px;
  border-color: rgba(56, 189, 248, 0.22);
}
.feature--lg .feature__icon-bg {
  width: 240px;
  height: 240px;
  right: -30px;
  bottom: -30px;
  opacity: 0.10;
}
.feature--lg .feature__body { margin-top: auto; }
.feature--lg .feature__title { font-size: 22px; }
.feature--lg .feature__desc { font-size: 14.5px; max-width: 280px; }

/* Cards chicas (02 y 03) */
.feature--sm {
  padding: 18px 20px;
  min-height: 108px;
}
.feature--sm .feature__title { font-size: 16px; }
.feature--sm .feature__desc { font-size: 13.5px; }
.feature--sm .feature__icon-bg {
  width: 130px;
  height: 130px;
  right: -16px;
  bottom: -14px;
}

/* Card wide (04) */
.feature--wide {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  min-height: 88px;
}
.feature--wide .feature__title { font-size: 16px; margin-bottom: 3px; }
.feature--wide .feature__desc { font-size: 13px; }
.feature--wide .feature__icon-bg {
  width: 180px;
  height: 180px;
  right: 30%;
  bottom: -40px;
}

/* Contenido por encima del icono de fondo */
.feature__num,
.feature__body,
.feature__footer,
.feature__value {
  position: relative;
  z-index: 1;
}

/* Número arriba a la derecha de cada card */
.feature__num {
  position: absolute;
  top: 14px;
  right: 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  z-index: 1;
}
.feature--wide .feature__num {
  position: absolute;
  top: 12px;
  right: 18px;
}

.feature__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.005em;
  color: var(--text);
}
.feature__desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Footer del card 01 (Impacto directo →) */
.feature__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.feature__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}
.feature__tag-arrow {
  width: 16px;
  height: 16px;
  color: var(--cyan);
}

/* Bloque "valor" del card 04 */
.feature__value {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}
.feature__value-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.feature__value-amount {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1;
  background: linear-gradient(120deg, var(--cyan), var(--blue-electric));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============================================================
   BEFORE / AFTER SLIDER
   Controlado por --pos (porcentaje 0-100%) seteado desde JS.
   ============================================================ */
.ba {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  /* Glow azul detrás */
  isolation: isolate;
}
.ba::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse 70% 60% at 50% 50%,
    rgba(37, 99, 235, 0.22),
    transparent 70%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

.ba__labels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  margin-bottom: 18px;
  color: var(--text);
}
.ba__labels > span { text-align: center; }
.ba__label--after { color: var(--cyan); }

.ba__stage {
  position: relative;
  flex: 1;
  min-height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-night);
  cursor: ew-resize;
  user-select: none;
}

/* Viñeta SOLO en los laterales (izq + der), no arriba ni abajo.
   Capa por encima de las imágenes pero por debajo del divider/handle. */
.ba__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right,
      rgba(2, 6, 23, 0.65) 0%,
      rgba(2, 6, 23, 0) 12%,
      rgba(2, 6, 23, 0) 88%,
      rgba(2, 6, 23, 0.65) 100%);
  z-index: 2;
}

.ba__pane {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
.ba__pane--before {
  background:
    repeating-linear-gradient(45deg,
      rgba(148, 163, 184, 0.04) 0 8px,
      transparent 8px 16px),
    #e2e8f0;
}
.ba__pane--after {
  background:
    radial-gradient(ellipse at 60% 40%, rgba(37, 99, 235, 0.35), transparent 60%),
    radial-gradient(ellipse at 30% 80%, rgba(56, 189, 248, 0.25), transparent 60%),
    linear-gradient(135deg, #051226 0%, #0a1f3f 100%);
  /* Clip-path para revelar solo lo que queda a la derecha del divider */
  clip-path: inset(0 0 0 var(--pos, 50%));
}

/* Placeholders dentro de cada pane */
.ba__placeholder {
  display: grid;
  place-items: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
  font-family: var(--font-body);
}
.ba__placeholder svg { width: 64px; height: 64px; opacity: 0.55; }
.ba__placeholder span {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ba__placeholder small {
  font-size: 12px;
  font-family: var(--font-mono);
  opacity: 0.7;
}
.ba__placeholder--before { color: #475569; }
.ba__placeholder--after  { color: var(--text); }

/* Divider vertical posicionado por --pos */
.ba__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 2px;
  background: linear-gradient(180deg,
    transparent,
    rgba(255, 255, 255, 0.85) 12%,
    rgba(255, 255, 255, 0.85) 88%,
    transparent);
  transform: translateX(-50%);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.45);
  pointer-events: none;
  z-index: 3; /* por encima de la viñeta (z-index 2) */
}

/* Handle circular en el centro del divider */
.ba__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(180deg, #3b73ff, var(--blue-electric));
  border: 2px solid rgba(255, 255, 255, 0.85);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow:
    0 0 0 4px rgba(37, 99, 235, 0.18),
    0 12px 32px rgba(37, 99, 235, 0.4);
  pointer-events: none;
  transition: transform 0.25s var(--ease);
}
.ba__handle svg { width: 22px; height: 22px; }
.ba__stage:hover .ba__handle { transform: translate(-50%, -50%) scale(1.06); }

/* ============================================================
   SECCIÓN PLANES — fondo claro (05), cards dark metalizadas
   ============================================================ */
.planes {
  position: relative;
  z-index: 2;
  isolation: isolate;
  padding: 200px 56px;
  color: #020617;
  /* Degradé smooth: oscuro → azul profesional → celeste → blanco → invertido */
  background:
    radial-gradient(ellipse 80% 60% at 80% 20%, rgba(37, 99, 235, 0.04), transparent 70%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(56, 189, 248, 0.05), transparent 70%),
    linear-gradient(180deg,
      #020617 0%,
      #071A2D 40px,
      #0F4C81 100px,
      #38BDF8 160px,
      #F8FAFC 220px,
      #F8FAFC calc(100% - 220px),
      #38BDF8 calc(100% - 160px),
      #0F4C81 calc(100% - 100px),
      #071A2D calc(100% - 40px),
      #020617 100%);
}

/* Trama de blueprint sutil propia (light), igual que en propuesta */
.planes::before {
  content: "";
  position: absolute;
  inset: 200px 0;
  background-image:
    linear-gradient(rgba(15, 76, 129, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 76, 129, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
  z-index: 0;
}
.planes::after {
  content: "";
  position: absolute;
  inset: 200px 0;
  background-image: radial-gradient(rgba(15, 76, 129, 0.13) 1px, transparent 1.2px);
  background-size: 28px 28px;
  background-position: 14px 14px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(90deg,
    rgba(0,0,0,0.45) 0%,
    transparent 22%,
    transparent 78%,
    rgba(0,0,0,0.45) 100%);
  -webkit-mask-image: linear-gradient(90deg,
    rgba(0,0,0,0.45) 0%,
    transparent 22%,
    transparent 78%,
    rgba(0,0,0,0.45) 100%);
}

/* Corner brackets decorativos en las 4 esquinas */
.planes__deco {
  position: absolute;
  inset: 220px 32px;
  pointer-events: none;
  z-index: 1;
  color: rgba(15, 76, 129, 0.28);
}
.planes__corner {
  position: absolute;
  width: 28px;
  height: 28px;
}
.planes__corner--tl { top: 0; left: 0; }
.planes__corner--tr { top: 0; right: 0; }
.planes__corner--bl { bottom: 0; left: 0; }
.planes__corner--br { bottom: 0; right: 0; }

.planes__inner {
  position: relative;
  z-index: 2;
  max-width: 1480px;
  margin: 0 auto;
}

.planes__header {
  margin-bottom: 40px;
  max-width: 720px;
}

.planes__title {
  margin: 18px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: #020617;
}
.planes__accent { color: var(--blue-electric); }

.planes__desc {
  margin: 0;
  color: #475569;
  font-size: 16px;
  line-height: 1.5;
  max-width: 460px;
}

/* ---- GRID DE 3 CARDS con perspectiva 3D sutil ----
   El grid tiene perspective, y cada card se rota levemente según
   su posición (left/center/right) para dar profundidad. No es draggable. */
.planes__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  perspective: 2200px;
  perspective-origin: 50% 45%;
}

/* Posiciones 3D */
.plan[data-tilt="left"] {
  transform: rotateY(7deg) translateZ(-30px) scale(0.97);
  transform-origin: right center;
}
.plan[data-tilt="right"] {
  transform: rotateY(-7deg) translateZ(-30px) scale(0.97);
  transform-origin: left center;
}
.plan[data-tilt="center"] {
  transform: translateY(-14px) translateZ(20px);
  z-index: 2;
}

/* Hover: la card hovereada se endereza y se acerca */
.plan[data-tilt="left"]:hover {
  transform: rotateY(0deg) translateZ(10px) scale(1);
}
.plan[data-tilt="right"]:hover {
  transform: rotateY(0deg) translateZ(10px) scale(1);
}
.plan[data-tilt="center"]:hover {
  transform: translateY(-18px) translateZ(30px);
}

/* ---- CARD genérica — superficie metalizada con detalles ---- */
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 22px;
  border-radius: 22px;
  min-height: 600px;        /* card más vertical */
  /* Background metalizado: 3 capas — sheen diagonal + gradient base + textura sutil */
  background:
    /* sheen diagonal sutil tipo metal pulido */
    linear-gradient(135deg,
      rgba(56, 189, 248, 0.05) 0%,
      transparent 35%,
      transparent 65%,
      rgba(37, 99, 235, 0.08) 100%),
    /* gradient base radial */
    radial-gradient(ellipse 120% 100% at 30% 0%,
      rgba(56, 189, 248, 0.08),
      transparent 60%),
    /* color sólido base */
    linear-gradient(180deg, #0E2138 0%, #051226 100%);
  border: 1px solid rgba(56, 189, 248, 0.12);
  box-shadow:
    /* highlight superior interno */
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    /* sombra inferior interna sutil */
    0 -1px 0 rgba(0, 0, 0, 0.30) inset,
    /* sombra exterior */
    0 28px 60px rgba(2, 6, 23, 0.30);
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.5s var(--ease),
              border-color 0.4s var(--ease),
              box-shadow 0.5s var(--ease);
}

/* Línea de luz superior tipo metal pulido */
.plan::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(56, 189, 248, 0.55) 50%,
    transparent);
  z-index: 1;
  pointer-events: none;
}

/* Ring glow al hover — capa exterior con border-radius matching */
.plan::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 22px;
  padding: 1px;
  background: conic-gradient(from 180deg at 50% 50%,
    transparent 0deg,
    var(--cyan) 90deg,
    var(--blue-electric) 180deg,
    var(--cyan) 270deg,
    transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
  z-index: 0;
}
.plan:hover::after { opacity: 0.7; }
.plan:hover {
  border-color: rgba(56, 189, 248, 0.30);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 -1px 0 rgba(0, 0, 0, 0.35) inset,
    0 36px 72px rgba(2, 6, 23, 0.40),
    0 0 60px rgba(37, 99, 235, 0.25);
}

.plan__num {
  position: absolute;
  top: 22px;
  left: 26px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: rgba(148, 163, 184, 0.55);
}

.plan__title {
  position: relative;
  z-index: 1;
  margin: 28px 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--text);
}

/* Imagen central de cada card — más grande, contenida arriba */
.plan__media {
  position: relative;
  z-index: 1;
  margin: 4px 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 🎛 Tweakable: alto de la caja de imagen */
  height: var(--plan-media-h, 150px);
}
.plan__media img {
  /* 🎛 --plan-img-size: tamaño (alto) | --plan-img-y: subir/bajar (negativo = sube) */
  height: var(--plan-img-size, 100%);
  max-height: 150%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  transform: translateY(var(--plan-img-y, -10px));
  filter: drop-shadow(0 16px 36px rgba(37, 99, 235, 0.30));
}

/* Lista de features — cada item con su propio fondo glass para destacarse
   sobre la imagen de fondo y mantener legibilidad */
.plan__features {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 8px;
  flex: 1;
}
.plan__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.plan__check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.32);
  color: var(--cyan);
  flex-shrink: 0;
}
.plan__check svg { width: 13px; height: 13px; }

/* CTA al final de la card */
.plan__cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding: 12px 16px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--cyan);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.25s var(--ease),
              border-color 0.25s var(--ease),
              color 0.25s var(--ease);
}
.plan__cta svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.plan__cta:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: var(--border-glass);
}
.plan__cta:hover svg { transform: translateX(4px); }

/* ---- CARD destacada (PREMIUM) — más glow, más metalizada ---- */
.plan--featured {
  background:
    linear-gradient(135deg,
      rgba(56, 189, 248, 0.10) 0%,
      transparent 35%,
      transparent 65%,
      rgba(37, 99, 235, 0.14) 100%),
    radial-gradient(ellipse 130% 100% at 30% 0%,
      rgba(56, 189, 248, 0.14),
      transparent 60%),
    linear-gradient(180deg, #102849 0%, #061633 100%);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 -1px 0 rgba(0, 0, 0, 0.30) inset,
    0 36px 72px rgba(2, 6, 23, 0.45),
    0 0 0 1px rgba(56, 189, 248, 0.30),
    0 0 50px rgba(37, 99, 235, 0.40);
}
.plan--featured::before {
  background: linear-gradient(90deg,
    transparent,
    rgba(56, 189, 248, 0.90) 50%,
    transparent);
}
.plan--featured::after { opacity: 0.4; }
.plan--featured:hover::after { opacity: 1; }
.plan--featured:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 -1px 0 rgba(0, 0, 0, 0.35) inset,
    0 44px 80px rgba(2, 6, 23, 0.55),
    0 0 0 1px rgba(56, 189, 248, 0.55),
    0 0 80px rgba(37, 99, 235, 0.55);
}
.plan--featured .plan__title { font-size: 26px; }

.plan__badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px 6px 9px;
  border-radius: 999px;
  background: rgba(245, 181, 68, 0.12);
  border: 1px solid rgba(245, 181, 68, 0.50);
  color: var(--amber);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.plan__badge svg { width: 12px; height: 12px; }

/* ============================================================
   BOTÓN "CONSULTAR PREMIUM" — el más premium de todos
   Gradient azul vibrante + shimmer cruzado + ring glow
   ============================================================ */
.plan__cta--featured {
  position: relative;
  background: linear-gradient(135deg, #4d82ff 0%, var(--blue-electric) 50%, #1d4ed8 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 14px 18px;
  font-weight: 700;
  letter-spacing: 0.005em;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.30) inset,
    0 -1px 0 rgba(0, 0, 0, 0.25) inset,
    0 12px 28px rgba(37, 99, 235, 0.50),
    0 0 0 4px rgba(37, 99, 235, 0.12);
  transition: transform 0.3s var(--ease),
              box-shadow 0.4s var(--ease);
}

/* Shimmer cruzado: brillo que cruza el botón en bucle */
.plan__cta--featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.30),
    transparent);
  transform: skewX(-20deg);
  animation: cta-shimmer 4.5s ease-in-out infinite;
}
@keyframes cta-shimmer {
  0%, 60%   { left: -100%; }
  100%      { left: 180%; }
}

/* Highlight superior (sheen metálico) */
.plan__cta--featured::after {
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 45%;
  border-radius: 11px 11px 0 0;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.18),
    transparent);
  pointer-events: none;
}

.plan__cta--featured svg { width: 18px; height: 18px; color: #fff; }
.plan__cta--featured:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #5a8eff 0%, #3471ff 50%, #2659e0 100%);
  border-color: rgba(255, 255, 255, 0.30);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.36) inset,
    0 -1px 0 rgba(0, 0, 0, 0.25) inset,
    0 18px 40px rgba(37, 99, 235, 0.65),
    0 0 0 6px rgba(37, 99, 235, 0.18),
    0 0 36px rgba(56, 189, 248, 0.35);
}
.plan__cta--featured:hover svg { transform: translateX(6px); }

/* ---- CARD EXTRAS (03) — imagen del mismo tamaño que las otras cards ---- */
.plan--extras .plan__media--extras {
  height: var(--plan-media-h, 150px);
  margin: 4px 0 18px;
}

/* Bloque destacado mantenimiento — borde dashed ámbar */
.plan__maintenance {
  position: relative;
  z-index: 1;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(245, 181, 68, 0.05);
  border: 1px dashed rgba(245, 181, 68, 0.45);
}
.plan__maintenance-ico {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(245, 181, 68, 0.12);
  color: var(--amber);
  flex-shrink: 0;
}
.plan__maintenance-ico svg { width: 18px; height: 18px; }
.plan__maintenance-body { flex: 1; min-width: 0; }
.plan__maintenance-title {
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--amber);
  letter-spacing: -0.005em;
}
.plan__maintenance-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
}

/* ============================================================
   CTA FINAL — escena de cierre premium (08)
   ============================================================ */
.cta {
  position: relative;
  z-index: 2;
  isolation: isolate;
  padding: 160px 56px 220px;
  overflow: hidden;
  text-align: center;
  /* Fondo centro: azul casi negro, limpio y profundo */
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, rgba(2, 6, 23, 0.5), transparent 70%),
    var(--bg-deep);
}

/* GLOWS LATERALES — entran desde los bordes, no del centro */
.cta__side {
  position: absolute;
  top: -10%;
  bottom: -10%;
  width: 520px;
  pointer-events: none;
  z-index: 0;
  filter: blur(70px);
}
.cta__side--left {
  left: -260px;
  background: radial-gradient(ellipse 60% 80% at 30% 50%,
    rgba(37, 99, 235, 0.42),
    rgba(37, 99, 235, 0.16) 35%,
    transparent 70%);
}
.cta__side--right {
  right: -260px;
  background: radial-gradient(ellipse 60% 80% at 70% 50%,
    rgba(56, 189, 248, 0.38),
    rgba(15, 76, 129, 0.18) 35%,
    transparent 70%);
}

/* Viñeta de esquinas: oscurece corners */
.cta__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse 100% 100% at 0% 0%, rgba(2, 6, 23, 0.7), transparent 35%),
    radial-gradient(ellipse 100% 100% at 100% 0%, rgba(2, 6, 23, 0.7), transparent 35%),
    radial-gradient(ellipse 100% 100% at 0% 100%, rgba(2, 6, 23, 0.7), transparent 35%),
    radial-gradient(ellipse 100% 100% at 100% 100%, rgba(2, 6, 23, 0.7), transparent 35%);
}

/* MARCO FANTASMA tipo navegador — contenedor atmosférico, casi invisible */
.cta__frame {
  position: absolute;
  inset: 80px 14% 150px;            /* menos ancho: 14% de margen lateral */
  z-index: 1;
  border: 1px solid rgba(56, 189, 248, 0.14);
  border-radius: 28px;
  overflow: hidden;
  pointer-events: none;
  /* Fade en los bordes verticales para que el marco no "corte" */
  mask-image: linear-gradient(180deg,
    transparent 0%,
    #000 4%,
    #000 96%,
    transparent 100%);
  -webkit-mask-image: linear-gradient(180deg,
    transparent 0%,
    #000 4%,
    #000 96%,
    transparent 100%);
}

/* Barra superior del frame con dots */
.cta__frame-bar {
  position: relative;
  height: 38px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.10);
  display: flex;
  align-items: center;
  padding: 0 18px;
  gap: 8px;
  color: rgba(56, 189, 248, 0.35);
}
.cta__frame-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.20);
  border: 1px solid rgba(56, 189, 248, 0.30);
}
.cta__frame-url {
  flex: 0 1 200px;
  height: 6px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.10);
  margin: 0 auto;
}
.cta__frame-corner {
  width: 14px;
  height: 14px;
  margin-left: auto;
  opacity: 0.5;
}

/* Grid blueprint interno del frame, sutil */
.cta__frame-grid {
  position: absolute;
  inset: 38px 0 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: 50% 50%;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 30%, transparent 90%);
}

/* Cruces decorativas + en las "esquinas internas" del frame */
.cta__plus {
  position: absolute;
  width: 18px;
  height: 18px;
  z-index: 2;
  color: rgba(56, 189, 248, 0.35);
  pointer-events: none;
}
.cta__plus--tl { top: 100px; left: calc(14% + 20px); }
.cta__plus--tr { top: 100px; right: calc(14% + 20px); }
.cta__plus--bl { bottom: 170px; left: calc(14% + 20px); }
.cta__plus--br { bottom: 170px; right: calc(14% + 20px); }

/* CONTENIDO CENTRAL */
.cta__inner {
  position: relative;
  z-index: 3;
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta__eyebrow {
  justify-content: center;
}

.cta__title {
  margin: 28px 0 28px;
  font-family: var(--font-display);
  font-size: clamp(48px, 6.4vw, 100px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--text);
}

/* Contenedor de las palabras destacadas + subrayado SVG */
.cta__hl {
  position: relative;
  display: inline-block;
  padding-bottom: 0.06em;
  white-space: nowrap;
  color: var(--text);
}

/* "una" — texto plano dentro del cta__hl, sin gradient hover */
.cta__hl-pre {
  display: inline-block;
  margin-right: 0.28em;
}

/* Wrapper interno que solo abarca "web a la altura." — el subrayado se
   posiciona absolute dentro de ÉSTE, no del .cta__hl entero. */
.cta__hl-underlined {
  position: relative;
  display: inline-block;
  padding-bottom: 0.06em;
}

/* Espacios entre palabras .word--hl dentro del cta__hl */
.cta__hl .word--hl + .word--hl { margin-left: 0.28em; }

/* Cancelamos el underline ::after individual de cada .word--hl dentro del CTA
   (porque ya hay un SVG underline abarcando todas las palabras) */
.cta__hl .word--hl::after { display: none; }

/* Subrayado SVG hecho a mano debajo de TODAS las palabras */
.cta__hl-underline {
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -0.18em;
  width: 104%;
  height: 0.32em;
  color: var(--blue-electric);
  filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.55));
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}
/* El path del underline se setea con stroke-dasharray/offset desde JS.
   Estado inicial: oculto (dashoffset = length). Cuando llega al viewport
   se anima a dashoffset 0 = se "dibuja" de izquierda a derecha. */
.cta__hl-underline path {
  transition: stroke-dashoffset 1.4s cubic-bezier(.65, 0, .35, 1);
}

.cta__desc {
  margin: 0 0 44px;
  color: #94A3B8;
  font-size: 18px;
  line-height: 1.65;
  max-width: 560px;
}

.cta__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 44px;
}

/* Micropruebas livianas (NO cards) — solo iconos + texto */
.cta__trust {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 36px;
}
.cta__trust li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}
.cta__trust li svg {
  width: 20px;
  height: 20px;
  color: var(--cyan);
}

/* Zigzag inferior (trayectoria que guía hacia la acción) */
.cta__zigzag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 220px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
}

/* ============================================================
   FOOTER — multi-columna detallado (estilo referencia)
   ============================================================ */
.footer {
  position: relative;
  z-index: 2;
  isolation: isolate;
  padding: 88px 56px 18px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(37, 99, 235, 0.08), transparent 60%),
    radial-gradient(ellipse 50% 50% at 0% 100%, rgba(15, 76, 129, 0.20), transparent 70%),
    radial-gradient(ellipse 50% 50% at 100% 100%, rgba(56, 189, 248, 0.10), transparent 70%),
    linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.6) 50%, rgba(7, 26, 45, 0.95) 100%);
  border-top: 1px solid var(--border-glass);
  overflow: hidden;
}

/* Línea cian arriba del footer */
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(56, 189, 248, 0.55) 50%,
    transparent);
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.4));
}

.footer__inner {
  max-width: 1480px;
  margin: 0 auto;
}

/* 4 COLUMNAS — Brand grande + Estudio + Servicios + Contacto */
.footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 56px;
  padding-bottom: 56px;
}

/* === BRAND === */
.footer__brand-link {
  display: inline-block;
  margin-bottom: 28px;
  transition: transform 0.3s var(--ease);
}
.footer__brand-link:hover { transform: translateY(-2px); }

.footer__logo {
  height: 42px;
  width: auto;
  filter: drop-shadow(0 8px 20px rgba(37, 99, 235, 0.25));
}

.footer__headline {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--text);
  max-width: 360px;
}
.footer__headline-accent {
  color: var(--blue-electric);
}

.footer__tagline {
  margin: 0 0 28px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
  max-width: 360px;
}

.footer__social {
  display: flex;
  gap: 10px;
}
.footer__social-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-strong);
  color: var(--text);
  transition: background 0.25s var(--ease),
              border-color 0.25s var(--ease),
              color 0.25s var(--ease),
              transform 0.25s var(--ease),
              box-shadow 0.3s var(--ease);
}
.footer__social-btn:hover {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.12), rgba(37, 99, 235, 0.22));
  border-color: var(--border-glass);
  color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.20);
}
.footer__social-btn svg { width: 18px; height: 18px; }

/* === COLUMNAS DE LINKS === */
.footer__col-title {
  margin: 0 0 22px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__col-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

.footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

/* Items de las columnas con flecha → */
.footer__col li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px 10px 0;
  color: var(--text-muted);
  font-size: 15px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease),
              border-color 0.25s var(--ease),
              padding-left 0.25s var(--ease);
}
.footer__col li a svg {
  width: 16px;
  height: 16px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  color: var(--cyan);
}
.footer__col li a:hover {
  color: var(--text);
  border-bottom-color: rgba(56, 189, 248, 0.20);
  padding-left: 4px;
}
.footer__col li a:hover svg {
  opacity: 1;
  transform: translateX(0);
}

/* === CONTACTO === */
.footer__col--contact .footer__contact-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 6px;
}
.footer__col--contact .footer__contact-list a,
.footer__col--contact .footer__contact-actions a {
  display: flex;
  align-items: center;
  justify-content: flex-start;  /* alineado a la izquierda explícito */
  gap: 12px;
  padding: 10px 14px 10px 0;
  color: var(--text);
  font-size: 14.5px;
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
  border-bottom: none;
}
.footer__col--contact .footer__contact-list a:hover {
  color: var(--cyan);
  padding-left: 4px;
}
/* Override de la regla general que ocultaba iconos hasta el hover */
.footer__col--contact .footer__contact-list svg,
.footer__col--contact .footer__contact-actions svg {
  opacity: 1 !important;
  transform: none !important;
}

.footer__contact-ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--cyan);
  flex-shrink: 0;
}
.footer__contact-ico svg { width: 16px; height: 16px; }

.footer__contact-divider {
  height: 1px;
  margin: 0 0 16px;
  background: linear-gradient(90deg,
    transparent,
    var(--border-strong) 50%,
    transparent);
}

.footer__contact-actions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.footer__contact-actions a {
  justify-content: flex-start;
}
.footer__contact-actions a span:not(.footer__contact-ico) {
  flex: 1;
}
.footer__arrow {
  width: 18px;
  height: 18px;
  color: var(--cyan);
  opacity: 0.7;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.footer__contact-actions a:hover .footer__arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* === ZIGZAG decorativo === */
.footer__zigzag {
  display: block;
  width: 100%;
  height: 52px;
  margin: 8px 0 8px;
  opacity: 0.7;
}

/* === BOTTOM BAR === */
.footer__bar {
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-dim);
}

.footer__copy { margin: 0; }

.footer__made {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer__heart {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px rgba(245, 181, 68, 0.75);
}

/* ============================================================
   EXPANDABLE SCREEN — proyecto en detalle (estilo cult-ui)
   Animación FLIP: parte del rect del card y crece a fullscreen.
   ============================================================ */
.screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  /* Mientras está cerrado, el contenido no es seleccionable ni receptivo */
}
.screen.is-open,
.screen.is-closing { pointer-events: auto; }

/* Backdrop oscuro con blur */
.screen__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  cursor: pointer;
}
.screen.is-open .screen__backdrop { opacity: 1; }

/* Panel: parte del rect del trigger (--ox, --oy, --ow, --oh) y se expande.
   Fondo con el mismo gradient azul que usa el placeholder de la media. */
.screen__panel {
  position: absolute;
  left: var(--ox, 50%);
  top: var(--oy, 50%);
  width: var(--ow, 0);
  height: var(--oh, 0);
  background:
    radial-gradient(ellipse at 60% 40%, rgba(37, 99, 235, 0.35), transparent 60%),
    radial-gradient(ellipse at 30% 80%, rgba(56, 189, 248, 0.25), transparent 60%),
    linear-gradient(135deg, #051226 0%, #0a1f3f 100%);
  background-attachment: local;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  opacity: 0;
  transition:
    left 0.6s cubic-bezier(.4, 0, .2, 1),
    top 0.6s cubic-bezier(.4, 0, .2, 1),
    width 0.6s cubic-bezier(.4, 0, .2, 1),
    height 0.6s cubic-bezier(.4, 0, .2, 1),
    border-radius 0.5s var(--ease),
    opacity 0.3s ease;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55);
}
.screen.is-open .screen__panel {
  left: 40px;
  top: 40px;
  width: calc(100vw - 80px);
  height: calc(100vh - 80px);
  border-radius: 20px;
  opacity: 1;
}

/* Botón cerrar — pill detallado con label, atajo ESC y X */
/* Flechas de navegación entre proyectos (laterales) */
.screen__nav {
  position: absolute;
  top: 62%;
  transform: translateY(-50%);
  z-index: 6;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(11, 33, 56, 0.72);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.5);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.screen__nav:hover {
  background: linear-gradient(180deg, rgba(56,189,248,0.18), rgba(37,99,235,0.30));
  border-color: var(--border-glass);
}
.screen__nav svg { width: 24px; height: 24px; }
.screen__nav--prev { left: 18px; }
.screen__nav--next { right: 18px; }
.screen__nav--prev:hover { transform: translateY(-50%) translateX(-3px); }
.screen__nav--next:hover { transform: translateY(-50%) translateX(3px); }

.screen__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.2s var(--ease),
              border-color 0.2s var(--ease),
              transform 0.2s var(--ease),
              padding 0.3s var(--ease);
}
.screen__close:hover {
  background: rgba(56, 189, 248, 0.10);
  border-color: var(--border-glass);
}
.screen__close-kbd {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
}
.screen__close-label {
  color: var(--text);
}
.screen__close-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--cyan), var(--blue-electric));
  color: #fff;
  transition: transform 0.3s var(--ease);
}
.screen__close-icon svg { width: 16px; height: 16px; }
.screen__close:hover .screen__close-icon { transform: rotate(90deg); }

/* Contenedor scrolleable */
.screen__scroll {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.25s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.screen.is-open .screen__scroll { opacity: 1; }
.screen__scroll::-webkit-scrollbar { width: 8px; }
.screen__scroll::-webkit-scrollbar-track { background: transparent; }
.screen__scroll::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
}

/* Hero del proyecto (intro grande) */
.screen__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
}

.screen__media {
  position: relative;
  background:
    linear-gradient(180deg,
      rgba(2, 6, 23, 0.18),
      rgba(2, 6, 23, 0.32));
  display: grid;
  place-items: center;
  min-height: 380px;
  border-right: 1px solid var(--border-glass);
  overflow: hidden;
}

/* ---- Galería de imágenes del proyecto (dentro del modal) ---- */
.screen__gallery {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.screen__gallery-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(.4, 0, .2, 1);
}
.screen__gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}
.screen__gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Placeholder visible solo cuando no hay imágenes */
.screen__gallery [data-gallery-empty] { display: none; }
.screen__gallery.is-empty [data-gallery-empty] {
  display: grid;
  position: absolute;
  inset: 0;
}
.screen__gallery.is-empty .screen__gallery-track { display: none; }

/* Flechas de la galería — solo si hay más de una imagen */
.screen__gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(2, 6, 23, 0.55);
  color: #fff;
  display: none;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.screen__gallery.has-multiple .screen__gallery-nav { display: grid; }
.screen__gallery-nav:hover { background: rgba(37, 99, 235, 0.7); }
.screen__gallery-nav svg { width: 20px; height: 20px; }
.screen__gallery-nav--prev { left: 14px; }
.screen__gallery-nav--next { right: 14px; }

/* Dots de la galería */
.screen__gallery-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}
.screen__gallery-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s var(--ease), width 0.25s var(--ease);
}
.screen__gallery-dots button.is-active {
  background: #fff;
  width: 22px;
  border-radius: 999px;
}

.screen__media-inner {
  display: grid;
  place-items: center;
  gap: 14px;
  text-align: center;
  padding: 32px;
  color: var(--text);
}
.screen__media-inner svg { width: 80px; height: 80px; opacity: 0.55; }
.screen__media-inner span {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
}

.screen__intro {
  position: relative;
  padding: 56px 56px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  /* Fondo glass oscuro para diferenciar este bloque del gradient del panel.
     Suficientemente translúcido para que se vea el color del panel detrás. */
  background:
    linear-gradient(135deg,
      rgba(2, 6, 23, 0.55),
      rgba(7, 26, 45, 0.70));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-left: 1px solid var(--border-glass);
}
/* Hairline cian sutil arriba para separar */
.screen__intro::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(56, 189, 248, 0.25) 30%,
    rgba(56, 189, 248, 0.25) 70%,
    transparent);
}

/* Botón "Visitar sitio" — sección de acción dentro del intro */
.screen__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.screen__actions .btn { align-self: flex-start; }
.screen__tag {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.screen__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 3.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text);
}
.screen__desc {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.6;
  max-width: 540px;
}

.screen__meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.screen__meta-item { display: flex; flex-direction: column; gap: 4px; }
.screen__meta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.screen__meta-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

/* Body en 2 columnas (aprovecha espacio lateral) */
.screen__body {
  max-width: 1400px;
  margin: 0 auto;
  padding: 56px 56px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
}
.screen__col {
  display: grid;
  gap: 40px;
  align-content: start;
}

.screen__section h3 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.015em;
  color: var(--text);
}
.screen__section h3::before {
  content: "—";
  color: var(--cyan);
  margin-right: 10px;
}
.screen__section p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 720px;
}
.screen__section em { color: var(--text-dim); font-style: italic; }

.screen__list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.screen__list li {
  position: relative;
  padding-left: 24px;
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.55;
}
.screen__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--cyan), var(--blue-electric));
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

.screen__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.screen__stat {
  padding: 24px 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg,
    rgba(56, 189, 248, 0.06),
    rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.screen__stat-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 36px;
  letter-spacing: -0.025em;
  color: var(--text);
  background: linear-gradient(120deg, var(--text), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.screen__stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* Lista ordenada de proceso */
.screen__steps {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 14px;
}
.screen__steps li {
  position: relative;
  padding: 14px 16px 14px 56px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.5;
  counter-increment: step;
}
.screen__steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid var(--border-glass);
}
.screen__steps strong {
  color: var(--text);
  font-weight: 600;
}

.screen__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.screen__tags span {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}

.screen__cta {
  text-align: center;
  /* Centrado en la página, ancho controlado (fuera del grid de 2 columnas) */
  max-width: 680px;
  margin: 0 auto 8px;
  padding: 56px 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg,
    rgba(37, 99, 235, 0.12),
    rgba(56, 189, 248, 0.06));
  border: 1px solid var(--border-glass);
  display: grid;
  gap: 12px;
  place-items: center;
}
.screen__cta h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.screen__cta p {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 16px;
}

/* Responsive del screen */
@media (max-width: 1080px) {
  .screen__hero { grid-template-columns: 1fr; }
  .screen__media { min-height: 280px; border-right: 0; border-bottom: 1px solid var(--border); }
  .screen__intro { padding: 40px 32px; }
  .screen__meta { grid-template-columns: repeat(2, 1fr); }
  .screen__body {
    padding: 48px 32px 64px;
    gap: 32px;
    grid-template-columns: 1fr;
  }
  .screen__col { gap: 32px; }
}

@media (max-width: 720px) {
  .screen.is-open .screen__panel {
    left: 0; top: 0;
    width: 100vw; height: 100vh;
    border-radius: 0;
  }
  .screen__close {
    top: 14px;
    right: 14px;
    padding: 6px 6px 6px 12px;
    gap: 8px;
    font-size: 12px;
  }
  .screen__close-kbd { display: none; }
  .screen__close-icon { width: 28px; height: 28px; }
  /* Flechas más chicas y pegadas a los bordes en mobile */
  .screen__nav { width: 42px; height: 42px; }
  .screen__nav svg { width: 20px; height: 20px; }
  .screen__nav--prev { left: 8px; }
  .screen__nav--next { right: 8px; }
  .screen__intro { padding: 32px 20px; }
  .screen__body { padding: 36px 20px 56px; gap: 28px; }
  .screen__meta { grid-template-columns: 1fr 1fr; gap: 12px; }
  .screen__stats { grid-template-columns: 1fr 1fr; }
  .screen__stat-value { font-size: 28px; }
}

/* ============================================================
   DOCK — navegación rápida estilo macOS (cult-ui en vanilla)
   Fijo al bottom-center. Magnify por proximidad del mouse.
   ============================================================ */
.dock {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  padding: 10px 18px;
  border-radius: 22px;

  /* Glass azul oscuro */
  background:
    linear-gradient(180deg,
      rgba(15, 76, 129, 0.32),
      rgba(7, 26, 45, 0.55));
  border: 1px solid rgba(56, 189, 248, 0.22);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.10) inset,
    0 -1px 0 rgba(0, 0, 0, 0.30) inset,
    0 24px 60px rgba(2, 6, 23, 0.55),
    0 0 40px rgba(37, 99, 235, 0.18);
}

.dock__item {
  /* --scale se setea por JS para el efecto magnify por proximidad */
  --scale: 1;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--text);
  position: relative;
  flex-shrink: 0;
  transform-origin: bottom center;
  transform: scale(var(--scale));
  transition:
    transform 0.18s var(--ease),
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    box-shadow 0.3s var(--ease);

  /* Botón azul translúcido */
  background: linear-gradient(180deg,
    rgba(56, 189, 248, 0.10),
    rgba(37, 99, 235, 0.18));
  border: 1px solid rgba(56, 189, 248, 0.20);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 6px 16px rgba(2, 6, 23, 0.35);
}

.dock__item:hover {
  background: linear-gradient(180deg,
    rgba(56, 189, 248, 0.22),
    rgba(37, 99, 235, 0.40));
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 10px 28px rgba(37, 99, 235, 0.40),
    0 0 0 4px rgba(37, 99, 235, 0.10);
}

.dock__item svg {
  width: 22px;
  height: 22px;
}

/* Botón destacado (Inicio) — azul eléctrico sólido */
.dock__item--accent {
  background: linear-gradient(180deg, #3b73ff, var(--blue-electric));
  border-color: rgba(255, 255, 255, 0.30);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 8px 22px rgba(37, 99, 235, 0.50),
    0 0 0 3px rgba(37, 99, 235, 0.18);
  color: #fff;
}
.dock__item--accent:hover {
  background: linear-gradient(180deg, #4d82ff, #3b73ff);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.30) inset,
    0 14px 32px rgba(37, 99, 235, 0.65),
    0 0 0 5px rgba(37, 99, 235, 0.20);
}

/* Slot bloqueado (próximamente): se ve más apagado pero NO se desactiva
   — el usuario pidió que no se "desactiven", solo no llevan a nada todavía */
.dock__item--locked {
  color: var(--text-dim);
  opacity: 0.55;
  cursor: default;
}
.dock__item--locked:hover {
  background: linear-gradient(180deg,
    rgba(56, 189, 248, 0.10),
    rgba(37, 99, 235, 0.18));
  border-color: rgba(56, 189, 248, 0.20);
  opacity: 0.8;
}

/* Separador antes del botón destacado */
.dock__divider {
  width: 1px;
  height: 32px;
  align-self: center;
  background: linear-gradient(180deg,
    transparent,
    rgba(148, 163, 184, 0.30),
    transparent);
  margin: 0 4px;
}

/* Tooltip arriba del botón al hover */
.dock__item::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px) scale(calc(1 / var(--scale)));
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.92);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.dock__item:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(calc(1 / var(--scale)));
}

/* En mobile, dock más compacto */
@media (max-width: 720px) {
  .dock { bottom: 14px; padding: 8px 14px; gap: 12px; }
  .dock__item { width: 42px; height: 42px; border-radius: 12px; }
  .dock__item svg { width: 19px; height: 19px; }
  .dock__divider { height: 26px; }
}

/* ============================================================
   SECCIÓN TRABAJOS — Loading Carousel
   ============================================================ */
.works {
  position: relative;
  z-index: 2;
  padding: 120px 56px 140px;
}

.works__inner {
  max-width: 1480px;
  margin: 0 auto;
}

.works__header {
  text-align: center;
  margin-bottom: 56px;
}
.works__header .eyebrow { justify-content: center; }

.works__title {
  margin: 24px 0 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--text);
}

/* ---- Loading Carousel ---- */
.lc {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.025),
    rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border-strong);
  overflow: hidden;
  isolation: isolate;
}
/* Glow azul detrás del carrusel */
.lc::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse 60% 50% at 50% 50%,
    rgba(37, 99, 235, 0.18),
    transparent 70%);
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}

.lc__viewport {
  position: relative;
  overflow: hidden;
}

.lc__track {
  position: relative;
  /* las slides se apilan absolutas; el track marca la altura del slide activo */
  display: grid;
}

.lc__slide {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  min-height: 480px;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
}
.lc__slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* Media (imagen) del slide */
.lc__media {
  position: relative;
  background:
    radial-gradient(ellipse at 60% 40%, rgba(37, 99, 235, 0.30), transparent 60%),
    radial-gradient(ellipse at 30% 80%, rgba(56, 189, 248, 0.20), transparent 60%),
    linear-gradient(135deg, #051226 0%, #0a1f3f 100%);
  border-right: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  min-height: 360px;
  overflow: hidden;
}

/* Imagen real del proyecto (llena la media) */
.lc__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lc__placeholder {
  display: grid;
  place-items: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
  color: var(--text);
  font-family: var(--font-body);
}
.lc__placeholder svg { width: 72px; height: 72px; opacity: 0.6; }
.lc__placeholder span {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lc__placeholder small {
  font-size: 12px;
  font-family: var(--font-mono);
  opacity: 0.65;
}

/* Body (texto) del slide */
.lc__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 48px 56px;
}
.lc__tag {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.lc__heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 2.6vw, 40px);
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.1;
}
.lc__desc {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 480px;
}
.lc__body .btn { align-self: flex-start; }

/* Loading bar */
.lc__progress {
  position: relative;
  height: 3px;
  background: rgba(148, 163, 184, 0.10);
  overflow: hidden;
}
.lc__progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--blue-electric));
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
  /* la transition la maneja el JS dinámicamente */
}

/* Indicators (dots) */
.lc__indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 18px 0 20px;
  background: rgba(2, 6, 23, 0.4);
}
.lc__dot {
  width: 24px;
  height: 4px;
  border-radius: 2px;
  border: 0;
  background: rgba(148, 163, 184, 0.25);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s var(--ease), width 0.3s var(--ease);
}
.lc__dot:hover { background: rgba(148, 163, 184, 0.45); }
.lc__dot.is-active {
  background: var(--cyan);
  width: 40px;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1280px) {
  .hero__visual { --visual-width: 62vw; --visual-right: -2vw; }
}

@media (max-width: 1080px) {
  :root { --header-h: 100px; }
  .site-header { padding: 0 32px; gap: 20px; }
  .site-header::after { left: 32px; right: 32px; }
  .nav { gap: 26px; }
  .brand__logo { height: 52px; }

  .hero { padding: 40px 32px 72px; }
  .hero__copy { max-width: 100%; }

  /* En tablets el Spline queda más chico y se difumina un poco */
  .hero__visual { --visual-width: 50vw; --visual-right: -2vw; opacity: 0.85; }

  /* CTA + Footer en tablet */
  .cta { padding: 120px 32px 180px; }
  .cta__frame { inset: 48px 40px 130px; }
  .cta__plus--tl, .cta__plus--bl { left: 60px; }
  .cta__plus--tr, .cta__plus--br { right: 60px; }
  .cta__plus--tl, .cta__plus--tr { top: 70px; }
  .cta__plus--bl, .cta__plus--br { bottom: 150px; }
  .cta__side { width: 360px; }
  .cta__side--left { left: -200px; }
  .cta__side--right { right: -200px; }

  .footer { padding: 72px 32px 24px; }
  .footer__main {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer__brand { grid-column: 1 / -1; }
  .footer__col--contact { grid-column: 1 / -1; }

  /* Propuesta en tablet: desactivamos el pin (1 columna, scroll normal) */
  .propuesta { height: auto; min-height: auto; padding: 96px 0; }
  .propuesta__inner { height: auto; }
  .propuesta__pin {
    position: static;
    height: auto;
    padding: 0 32px;
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .propuesta__copy { max-width: 100%; }
  .propuesta__stage { min-height: 420px; height: 420px; }
  /* En tablet mostramos los 3 pillars en su posición final fija */
  .propuesta .propuesta__pillar--01 { transform: translateY(15%);  opacity: 1; }
  .propuesta .propuesta__pillar--02 { transform: translateY(0%);   opacity: 1; }
  .propuesta .propuesta__pillar--03 { transform: translateY(-15%); opacity: 1; }

  /* Planes: 1 columna en tablet — desactivo el 3D */
  .planes { padding: 110px 32px; }
  .planes__grid {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 560px;
    margin: 0 auto;
    perspective: none;
  }
  .plan[data-tilt],
  .plan[data-tilt="left"],
  .plan[data-tilt="right"],
  .plan[data-tilt="center"] {
    transform: none;
  }
  .plan[data-tilt="left"]:hover,
  .plan[data-tilt="right"]:hover,
  .plan[data-tilt="center"]:hover {
    transform: translateY(-3px);
  }

  /* Resultados: una columna */
  .results { padding: 80px 32px; }
  .results__inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .results__copy { max-width: 100%; }
  .ba__stage { min-height: 460px; }

  /* Trabajos: slide en columna */
  .works { padding: 80px 32px 100px; }
  .lc__slide { grid-template-columns: 1fr; min-height: auto; }
  .lc__media { min-height: 280px; border-right: 0; border-bottom: 1px solid var(--border-strong); }
  .lc__body { padding: 36px 32px; }
}

@media (max-width: 720px) {
  :root { --header-h: 72px; }
  .nav { display: none; }
  .site-header { grid-template-columns: auto 1fr; padding: 0 20px; gap: 16px; }
  .site-header::after { left: 20px; right: 20px; }
  .site-header .btn { justify-self: end; }
  .brand__logo { height: 38px; }

  .hero { padding: 24px 20px 56px; }
  .hero__title { font-size: clamp(40px, 10vw, 56px); }
  .hero__desc { font-size: 16px; margin-bottom: 28px; }
  .hero__ctas { gap: 10px; margin-bottom: 20px; flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; justify-content: center; }

  /* En mobile la imagen va de FONDO, detrás del texto, con poca opacidad.
     Al scrollear hacia abajo se desenfoca (--hero-bg-blur lo setea el JS). */
  .hero__visual {
    display: block;
    position: absolute;
    inset: 0;
    right: auto;
    width: 100%;
    height: 100%;
    z-index: 0;            /* detrás del copy (z-index 3) */
    opacity: 0.05;
    pointer-events: none;
  }
  /* El glow azul de fondo del visual estorba como fondo tenue: lo apagamos. */
  .hero__visual::before { display: none; }
  /* El blur por scroll va acá (no en .hero__visual): ese tiene
     container-type:size y por eso ignora el filter. El valor del blur lo
     setea el JS directo (filter: blur(Npx)); acá solo el suavizado. */
  .spline-wrap {
    transition: filter 0.25s linear;
  }
  /* Como fondo conviene que llene la pantalla (cover) en vez de contain. */
  .spline-wrap .hero__img { object-fit: cover; }

  /* Zigzag más chico y movido para no estorbar */
  .bg-zigzag { top: 75%; height: 160px; opacity: 0.4; }
  /* Glows de fondo más chicos en mobile: menos lavado azul detrás del texto */
  .bg-glow--right { width: 380px; height: 380px; top: -80px; right: -120px; }
  .bg-glow--left { width: 300px; height: 300px; bottom: -120px; left: -100px; }

  /* Resultados en mobile */
  .results { padding: 60px 20px; }
  .results__title { font-size: clamp(34px, 8vw, 48px); }
  .feature { padding: 16px 18px; grid-template-columns: 44px 1fr; gap: 14px; }
  .feature__icon { width: 40px; height: 40px; }
  .feature__icon svg { width: 18px; height: 18px; }
  .feature__title { font-size: 16px; }
  .feature__desc { font-size: 13.5px; }
  .ba__stage { aspect-ratio: 4 / 3; min-height: 0; }
  .ba__handle { width: 44px; height: 44px; }
  .ba__handle svg { width: 18px; height: 18px; }

  /* CTA + Footer mobile */
  .cta { padding: 80px 20px 160px; }
  .cta__frame { inset: 32px 16px 110px; border-radius: 20px; }
  .cta__frame-bar { height: 32px; padding: 0 12px; }
  .cta__plus { display: none; }
  .cta__title { font-size: clamp(36px, 9.5vw, 56px); }
  /* En mobile permitimos que se rompa la línea naturalmente si no entra */
  .cta__hl { white-space: normal; }
  .cta__desc { font-size: 16px; max-width: 100%; }
  .cta__actions { width: 100%; flex-direction: column; }
  .cta__actions .btn { width: 100%; justify-content: center; }
  .cta__trust { flex-direction: column; align-items: center; gap: 12px; }
  .cta__side { width: 240px; }

  /* Footer compacto en mobile.
     - Estudio + Servicios quedan lado a lado (2 columnas) en vez de apilarse,
       lo que recorta muchísima altura.
     - Brand y Contacto ocupan el ancho completo.
     - Gaps, paddings y espaciados de links reducidos.
     - padding-bottom mínimo (72px) solo para que el dock flotante no tape el
       copyright; el resto de la altura se recorta arriba y entre bloques. */
  .footer { padding: 40px 20px 72px; }
  .footer__main {
    grid-template-columns: 1fr 1fr;
    gap: 26px 18px;
    padding-bottom: 24px;
  }
  .footer__brand { grid-column: 1 / -1; }
  .footer__col--contact { grid-column: 1 / -1; }

  /* Brand más compacto */
  .footer__brand-link { margin-bottom: 16px; }
  .footer__logo { height: 34px; }
  .footer__headline { font-size: 18px; margin-bottom: 10px; max-width: 100%; }
  .footer__tagline { font-size: 13px; line-height: 1.55; margin-bottom: 18px; max-width: 100%; }
  .footer__social { gap: 8px; }
  .footer__social-btn { width: 40px; height: 40px; border-radius: 10px; }

  /* Columnas de links más densas */
  .footer__col-title { font-size: 11px; margin-bottom: 12px; }
  .footer__col li a { padding: 6px 10px 6px 0; font-size: 14px; }
  .footer__col--contact .footer__contact-list { margin-bottom: 14px; }
  .footer__col--contact .footer__contact-list a,
  .footer__col--contact .footer__contact-actions a { padding: 8px 10px 8px 0; font-size: 14px; }

  /* Cierre */
  .footer__zigzag { height: 44px; }
  .footer__bar { flex-direction: column; text-align: center; gap: 6px; margin-top: 14px; }

  /* Propuesta en mobile */
  /* Transición dark→claro→dark mucho más corta en mobile: comprime las bandas
     azul/oscuro hacia los bordes y suma padding-top para que el contenido caiga
     en la zona blanca, no sobre el degradado (el texto también es azul). */
  .propuesta {
    padding: 100px 0 64px;
    --prop-fade-top: 88px;
    --prop-fade-bot: 28px;
  }
  .propuesta__pin { padding: 0 20px; }
  .propuesta__stage { min-height: 320px; height: 320px; }
  /* Mobile: los mockups verticales se ven más grandes y bajados, de modo que
     se aprecie SOLO la parte de arriba del teléfono (el resto desborda hacia
     abajo y se desvanece con la máscara). El top nunca se corta. */
  .propuesta__pillar-img { --pillar-w: 230%; }
  .propuesta .propuesta__pillar--01,
  .propuesta .propuesta__pillar--02,
  .propuesta .propuesta__pillar--03 { transform: translateY(40px); opacity: 1; }

  /* Planes en mobile: transición comprimida (igual criterio que Propuesta).
     Las bandas dark→azul→blanco pasan de 220px a ~104px y el contenido arranca
     después del fade, así el título no queda sobre el degradado azul. */
  .planes {
    padding: 116px 20px;
    background:
      radial-gradient(ellipse 80% 60% at 80% 20%, rgba(37, 99, 235, 0.04), transparent 70%),
      radial-gradient(ellipse 60% 50% at 10% 80%, rgba(56, 189, 248, 0.05), transparent 70%),
      linear-gradient(180deg,
        #020617 0%,
        #071A2D 18px,
        #0F4C81 50px,
        #38BDF8 80px,
        #F8FAFC 104px,
        #F8FAFC calc(100% - 104px),
        #38BDF8 calc(100% - 80px),
        #0F4C81 calc(100% - 50px),
        #071A2D calc(100% - 18px),
        #020617 100%);
  }
  .planes::before, .planes::after { inset: 104px 0; }
  .planes__title { font-size: clamp(40px, 10vw, 56px); }
  .plan { padding: 24px 22px; }
  .propuesta__title { font-size: clamp(44px, 11vw, 64px); }
  .propuesta__desc { font-size: 16px; }
  .propuesta__states { gap: 8px; grid-template-columns: auto 1fr auto 1fr auto; }
  .propuesta__state-num { width: 30px; height: 30px; font-size: 11px; }
  .propuesta__state-label { font-size: 10px; letter-spacing: 0.10em; }
  .propuesta__state-line { margin-bottom: 18px; }
  .propuesta__reserved { padding: 24px; }
  .propuesta__reserved svg { width: 36px; height: 36px; }

  /* Features en mobile: todo en una columna */
  .features {
    grid-template-columns: 1fr;
  }
  .feature--lg, .feature--sm, .feature--wide {
    grid-column: 1;
    grid-row: auto;
  }
  .feature--wide { grid-template-columns: auto 1fr; }
  .feature--wide .feature__value { grid-column: 1 / -1; align-items: flex-start; }

  /* Trabajos en mobile */
  .works { padding: 60px 20px 80px; }
  .lc__body { padding: 28px 20px; }
  .lc__media { min-height: 220px; }
}

/* ============================================================
   ASISTENTE VIRTUAL — FAB + burbuja + mini chat
   ============================================================ */
.assistant {
  position: fixed;
  right: 22px;
  bottom: 96px;             /* arriba del dock */
  z-index: 100;
  font-family: var(--font-body);
}

/* ---- FAB (botón flotante principal) ---- */
.assistant__fab {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: var(--blue-electric);
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 14px 32px rgba(37, 99, 235, 0.45),
    0 0 0 4px rgba(37, 99, 235, 0.14);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  margin-left: auto;
}
.assistant__fab:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.30) inset,
    0 18px 40px rgba(37, 99, 235, 0.55),
    0 0 0 6px rgba(37, 99, 235, 0.18);
}

/* Pulse ring animado alrededor del FAB cuando está cerrado */
.assistant__fab-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.45);
  z-index: -1;
  animation: assistant-pulse 2.4s ease-out infinite;
}
.assistant[data-state="open"] .assistant__fab-pulse { animation: none; opacity: 0; }
@keyframes assistant-pulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(1.7); opacity: 0;   }
}

/* Icono del FAB: cambia entre logo y X según estado */
.assistant__fab-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.assistant__fab-icon--logo {
  opacity: 1;
  transform: rotate(0);
}
.assistant__fab-icon--logo svg {
  width: 38px;
  height: 38px;
}
.assistant__fab-icon--close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
  color: #fff;
}
.assistant__fab-icon--close svg { width: 22px; height: 22px; }
.assistant[data-state="open"] .assistant__fab-icon--logo {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
}
.assistant[data-state="open"] .assistant__fab-icon--close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* ---- Burbuja de bienvenida ---- */
.assistant__bubble {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: 320px;
  display: flex;
  gap: 12px;
  padding: 14px 36px 14px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f1f5f9);
  color: #020617;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 20px 50px rgba(2, 6, 23, 0.45),
    0 0 0 1px rgba(56, 189, 248, 0.18);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.assistant__bubble[data-visible="true"] {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.assistant__bubble::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: -6px;
  width: 14px;
  height: 14px;
  background: #f1f5f9;
  transform: rotate(45deg);
  border-right: 1px solid rgba(56, 189, 248, 0.18);
  border-bottom: 1px solid rgba(56, 189, 248, 0.18);
}
.assistant__bubble-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
}
.assistant__bubble-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.assistant__bubble-body { flex: 1; min-width: 0; }
.assistant__bubble-name {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--blue-electric);
}
.assistant__bubble-msg {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #475569;
}
.assistant__bubble-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 0;
  background: rgba(2, 6, 23, 0.06);
  color: #475569;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.assistant__bubble-close:hover { background: rgba(2, 6, 23, 0.12); }
.assistant__bubble-close svg { width: 12px; height: 12px; }

/* ---- Mini chat ---- */
.assistant__chat {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: 360px;
  max-height: 540px;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, #071A2D 0%, #051226 100%);
  border: 1px solid var(--border-glass);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 30px 70px rgba(2, 6, 23, 0.6),
    0 0 0 1px rgba(56, 189, 248, 0.12);
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}
.assistant[data-state="open"] .assistant__chat {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Header del chat */
.assistant__chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg,
    rgba(37, 99, 235, 0.16),
    rgba(37, 99, 235, 0.04));
}
.assistant__chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
}
.assistant__chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.assistant__chat-info { flex: 1; min-width: 0; }
.assistant__chat-info h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}
.assistant__chat-info p {
  margin: 2px 0 0;
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.assistant__chat-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.7);
}
.assistant__chat-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 0;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.assistant__chat-close:hover { background: rgba(255, 255, 255, 0.08); }
.assistant__chat-close svg { width: 14px; height: 14px; }

/* Messages */
.assistant__messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.assistant__messages::-webkit-scrollbar { width: 6px; }
.assistant__messages::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
}
.assistant__msg {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  max-width: 92%;
  animation: msg-in 0.35s var(--ease);
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.assistant__msg--bot { align-self: flex-start; }
.assistant__msg--user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.assistant__msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.assistant__msg-avatar img { width: 100%; height: 100%; object-fit: cover; }

.assistant__msg-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.5;
}
.assistant__msg-bubble p { margin: 0; }
.assistant__msg-bubble p + p { margin-top: 6px; }
.assistant__msg--bot .assistant__msg-bubble {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.assistant__msg--user .assistant__msg-bubble {
  background: linear-gradient(180deg, #3b73ff, var(--blue-electric));
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.30);
}

/* Opciones del árbol (botones que reemplazan al input) */
.assistant__msg--options { max-width: 100%; }
.assistant__opts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.assistant__opt {
  appearance: none;
  border: 1px solid var(--border-glass);
  background: rgba(56, 189, 248, 0.06);
  color: var(--text);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s var(--ease),
              border-color 0.2s var(--ease),
              transform 0.2s var(--ease);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.assistant__opt:hover {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.40);
  transform: translateX(2px);
}
.assistant__opt--cta {
  background: linear-gradient(180deg, #25D366, #1da851);
  border-color: rgba(255, 255, 255, 0.20);
  color: #fff;
  box-shadow: 0 6px 14px rgba(37, 211, 102, 0.30);
}
.assistant__opt--cta:hover {
  background: linear-gradient(180deg, #2ee175, #25D366);
  border-color: rgba(255, 255, 255, 0.30);
  transform: translateX(0) translateY(-1px);
}
.assistant__opt--cta svg { width: 16px; height: 16px; }

/* Barra de acciones globales (volver / restart / WA) */
.assistant__actions {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.40);
}
.assistant__action {
  appearance: none;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 10px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 500;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--ease),
              border-color 0.2s var(--ease),
              color 0.2s var(--ease);
}
.assistant__action svg { width: 14px; height: 14px; }
.assistant__action:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.10);
  border-color: var(--border-glass);
  color: var(--cyan);
}
.assistant__action:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.assistant__action--wa {
  background: linear-gradient(180deg, rgba(37, 211, 102, 0.18), rgba(37, 211, 102, 0.08));
  border-color: rgba(37, 211, 102, 0.30);
  color: #4ade80;
}
.assistant__action--wa:hover {
  background: linear-gradient(180deg, rgba(37, 211, 102, 0.28), rgba(37, 211, 102, 0.14));
  border-color: rgba(37, 211, 102, 0.55);
  color: #fff;
}

/* Mobile: chat más compacto */
@media (max-width: 720px) {
  .assistant { right: 14px; bottom: 80px; }
  .assistant__fab { width: 54px; height: 54px; }
  .assistant__fab-icon--logo svg { width: 34px; height: 34px; }
  .assistant__bubble { width: 280px; right: 0; }
  .assistant__chat {
    width: calc(100vw - 28px);
    max-width: 360px;
    max-height: calc(100vh - 160px);
  }
}

/* ============================================================
   SECCIÓN FAQ — acordeón premium
   ============================================================ */
.faq {
  position: relative;
  z-index: 2;
  isolation: isolate;
  padding: 120px 56px 130px;
  background:
    linear-gradient(to bottom, #020617 0%, rgba(2, 6, 23, 0) 22%),
    linear-gradient(to top,    #020617 0%, rgba(2, 6, 23, 0) 22%),
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(2, 6, 23, 0.30), transparent 70%),
    url('Assets/fondo_preguntasfrecuentes.webp') center / cover no-repeat;
  overflow: hidden;
}
.faq__glow {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 340px;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(37, 99, 235, 0.12), transparent 70%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

/* Marco técnico decorativo de fondo */
.faq__frame {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(980px, calc(100% - 48px));
  height: calc(100% - 56px);
  border: 1px solid rgba(56, 189, 248, 0.09);
  border-radius: 28px;
  pointer-events: none;
  z-index: 0;
}
.faq__frame::before,
.faq__frame::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 1px;
  background: rgba(56, 189, 248, 0.28);
}
.faq__frame::before { left: -4px; }
.faq__frame::after  { right: -4px; }

.faq__fc {
  position: absolute;
  width: 20px;
  height: 20px;
}
.faq__fc--tl { top: -1px; left: -1px; border-top: 2px solid rgba(56, 189, 248, 0.45); border-left: 2px solid rgba(56, 189, 248, 0.45); border-radius: 8px 0 0 0; }
.faq__fc--tr { top: -1px; right: -1px; border-top: 2px solid rgba(56, 189, 248, 0.45); border-right: 2px solid rgba(56, 189, 248, 0.45); border-radius: 0 8px 0 0; }
.faq__fc--bl { bottom: -1px; left: -1px; border-bottom: 2px solid rgba(56, 189, 248, 0.45); border-left: 2px solid rgba(56, 189, 248, 0.45); border-radius: 0 0 0 8px; }
.faq__fc--br { bottom: -1px; right: -1px; border-bottom: 2px solid rgba(56, 189, 248, 0.45); border-right: 2px solid rgba(56, 189, 248, 0.45); border-radius: 0 0 8px 0; }

.faq__inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
}
.faq__header {
  text-align: center;
  margin-bottom: 48px;
}
.faq__header .eyebrow { justify-content: center; }
.faq__title {
  margin: 22px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--text);
}
.faq__desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 16.5px;
}

/* Panel glass que contiene el acordeón */
.faq__panel {
  position: relative;
  background: rgba(2, 8, 23, 0.55);
  border: 1px solid rgba(56, 189, 248, 0.14);
  border-radius: 22px;
  padding: 20px;
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, 0.06),
    0 32px 80px rgba(0, 0, 0, 0.40);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.faq__list {
  display: grid;
  gap: 10px;
}

/* Item */
.faq__item {
  position: relative;
  border-radius: 14px;
  background: rgba(3, 10, 27, 0.72);
  border: 1px solid rgba(56, 189, 248, 0.10);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.35s var(--ease), transform 0.30s var(--ease), box-shadow 0.35s var(--ease);
}

/* Línea de luz superior — visible solo en estado abierto */
.faq__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(56, 189, 248, 0.90),
    rgba(56, 189, 248, 0.90),
    transparent
  );
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  opacity: 0;
  transition: none;
  z-index: 2;
  pointer-events: none;
}

.faq__item:hover {
  border-color: rgba(56, 189, 248, 0.24);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.10);
}
.faq__item.is-open {
  border-color: rgba(56, 189, 248, 0.28);
  border-top-color: rgba(56, 189, 248, 0.82);
  background: rgba(4, 12, 34, 0.90);
  box-shadow:
    0 -22px 44px rgba(37, 99, 235, 0.18),
    0 20px 50px rgba(0, 0, 0, 0.22),
    inset 0 1px 10px rgba(37, 99, 235, 0.10);
}

/* Pregunta */
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text);
  letter-spacing: -0.01em;
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.faq__item:hover .faq__q { padding-left: 30px; }
.faq__item.is-open .faq__q { color: var(--cyan); }

/* Ícono +/– */
.faq__icon {
  position: relative;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(56, 189, 248, 0.25);
  transition: transform 0.45s cubic-bezier(.34,1.56,.64,1), border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1.8px;
  background: var(--cyan);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.45s cubic-bezier(.34,1.56,.64,1), opacity 0.3s var(--ease);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item:hover .faq__icon { border-color: var(--cyan); }
.faq__item.is-open .faq__icon {
  transform: rotate(180deg);
  background: rgba(37, 99, 235, 0.85);
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.45);
}
.faq__item.is-open .faq__icon::before { background: #fff; }
.faq__item.is-open .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }

/* Respuesta — dark glass integrada */
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(.4,0,.2,1);
}
.faq__a-inner {
  margin: 0 12px 12px;
  padding: 20px 22px;
  border-radius: 12px;
  background: rgba(8, 18, 42, 0.72);
  border: 1px solid rgba(56, 189, 248, 0.13);
  color: rgba(248, 250, 252, 0.76);
  font-size: 15.5px;
  line-height: 1.65;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.4s var(--ease) 0.1s, transform 0.4s var(--ease) 0.1s;
}
.faq__a-inner p { margin: 0; }
.faq__item.is-open .faq__a-inner {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 720px) {
  .faq { padding: 80px 16px 96px; }
  .faq__panel { padding: 12px; border-radius: 18px; }
  .faq__frame { width: calc(100% - 20px); height: calc(100% - 36px); }
  .faq__fc { display: none; }
  .faq__frame::before, .faq__frame::after { display: none; }
  .faq__q { padding: 18px 16px; }
  .faq__item:hover .faq__q { padding-left: 16px; }
  .faq__item:hover { transform: none; box-shadow: none; }

  .assistant__bubble-avatar { display: none; }
}
