/* =================================================================
   FLUITION AI AGENCY — Landing de venta
   FASE 0 · Fundación: tokens + componentes base + navbar/footer/bonusbar

   Sistema de diseño: design.md ("Apple") — se sigue TAL CUAL.
   No sustituir la tipografía (Inter) ni la paleta por criterio propio.
   ================================================================= */

/* -----------------------------------------------------------------
   1. TOKENS DE DISEÑO  (importados de design.md)
   ----------------------------------------------------------------- */
:root {
  /* Colores — design.md ("Supabase", dark emerald) */
  --color-primary:    #EDEDED;  /* titulares y texto principal */
  --color-secondary:  #8A8F8A;  /* bordes, captions, metadatos */
  --color-tertiary:   #3ECF8E;  /* único acento de interacción — reservar */
  --color-neutral:    #1C1C1C;  /* fondo de página */
  --color-surface:    #2A2A2A;  /* tarjetas / superficies */
  --color-on-primary: #1C1C1C;  /* texto sobre acento */

  /* Superficie extra oscura para consolas de código (más honda que el fondo) */
  --color-code-bg:   #161616;

  /* Derivados mínimos (no nuevos acentos: solo estados del mismo verde) */
  --color-tertiary-hover: #34B87D;
  --color-hairline:  rgba(255, 255, 255, 0.09);  /* líneas finas 1px */
  --color-hairline-strong: rgba(255, 255, 255, 0.16);

  /* Tipografía — design.md (Inter + JetBrains Mono para labels/código) */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Escala tipográfica — valores tope de design.md, fluidos con clamp.
     h2/section-title y lead subidos a petición: h2 grande (no tanto como
     el display), lead más presente, eyebrow más visible. */
  --text-display: clamp(2.4rem, 1.4rem + 4.4vw, 4.5rem); /* display 4.5rem / 500 */
  --text-h1:      clamp(2rem, 1.4rem + 2.7vw, 2.9rem);    /* section-title */
  --text-h2:      clamp(1.5rem, 1.15rem + 1.4vw, 1.9rem);
  --text-body:    0.96rem;                                /* body 0.96rem / 1.55 */
  --text-label:   0.92rem;                                /* eyebrow más visible */

  --weight-regular: 400;
  --weight-medium:  500;
  --weight-semibold: 600;
  --weight-heading: 500;          /* design.md: display y h1 a 500 */
  --tracking-display: -0.03em;    /* design.md */

  /* Radios — design.md (afilados, code-first) */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;

  /* Espaciado — design.md (sm/md/lg) + ritmo de sección derivado */
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
  --space-xl: 64px;
  /* Ritmo vertical de sección — reducido y uniforme en toda la web */
  --space-2xl: clamp(2.5rem, 1.9rem + 2.2vw, 4rem);

  /* Layout */
  --container-max: 1200px;
  --container-pad: clamp(20px, 5vw, 40px);

  /* Sombras — sutiles sobre fondo oscuro; el borde hace la mayor parte del trabajo */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.30);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.45);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 160ms;
  --dur-normal: 280ms;
  --dur-slow: 520ms;

  /* Alturas de componentes fijos */
  --navbar-h: 60px;
  --bonusbar-h: 64px;
}

/* -----------------------------------------------------------------
   2. RESET / BASE
   ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* deja hueco al navbar fijo cuando se salta a un ancla */
  scroll-padding-top: calc(var(--navbar-h) + 16px);
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.5;
  color: var(--color-primary);
  background-color: var(--color-neutral);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* espacio inferior para que la barra de bono no tape el footer */
  padding-bottom: var(--bonusbar-h);
}

img, video, svg { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; padding: 0; }

button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }

:focus-visible {
  outline: 2px solid var(--color-tertiary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Saltar al contenido (accesibilidad de teclado) */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 16px;
  background-color: var(--color-tertiary);
  color: var(--color-on-primary);
  font-weight: var(--weight-medium);
  border-radius: var(--radius-sm);
  transform: translateY(-150%);
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus-visible { transform: translateY(0); }

/* -----------------------------------------------------------------
   3. LAYOUT UTILITIES
   ----------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  position: relative;
  padding-block: var(--space-2xl);
  overflow: hidden;   /* contiene el watermark gigante del encabezado */
}

/* Fondo alternado: tinte verde muy sutil + hairlines de separación.
   Mismo recurso del paso 06 de "cómo funciona", a nivel de sección. */
.section--tint {
  background-color: rgba(62, 207, 142, 0.035);
  border-top: 1px solid var(--color-hairline);
  border-bottom: 1px solid var(--color-hairline);
}

/* -----------------------------------------------------------------
   4. TIPOGRAFÍA / COMPONENTES DE TEXTO
   ----------------------------------------------------------------- */
.type-display {
  font-size: var(--text-display);
  font-weight: var(--weight-heading);
  letter-spacing: var(--tracking-display);
  line-height: 1.05;
  color: var(--color-primary);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-tertiary);
  margin-bottom: var(--space-md);
}

/* ---- Encabezado de sección: watermark + tick vertical (reutilizable) ---- */
/* Tick vertical verde encima del eyebrow (referencia del usuario) */
.head-tick {
  display: block;
  width: 1px;
  height: 30px;
  margin: 0 auto var(--space-lg);
  background-color: var(--color-tertiary);
  opacity: 0.55;
}

/* Texto fantasma detrás del encabezado (mismo texto del eyebrow),
   justo detrás del propio título, tenue. */
.head-ghost {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, 80%);
  z-index: 0;
  font-family: var(--font-mono);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  white-space: nowrap;
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.5rem);
  line-height: 1;
  color: rgba(62, 207, 142, 0.03);
  pointer-events: none;
  user-select: none;
}

.section-title {
  font-size: var(--text-h1);
  font-weight: var(--weight-heading);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.section-lead {
  font-size: clamp(1.1rem, 1rem + 0.55vw, 0.8rem);
  line-height: 1.55;
  color: var(--color-secondary);
  max-width: 62ch;
}

/* Resaltado de palabras clave en titulares y leads — acento verde.
   Guía visual: dirige la mirada a lo que importa. */
.hl { color: var(--color-tertiary); }
/* En leads, el resaltado va en verde pero un poco más contenido */
.section-lead .hl { color: var(--color-tertiary); font-weight: var(--weight-medium); }

/* -----------------------------------------------------------------
   5. BOTONES  ·  .btn
   ----------------------------------------------------------------- */
.btn {
  --btn-pad-y: 12px;
  --btn-pad-x: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: var(--weight-medium);
  line-height: 1;
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}

.btn:active { transform: scale(0.97); }

.btn--primary {
  background-color: var(--color-tertiary);
  color: var(--color-on-primary);
}
.btn--primary:hover {
  background-color: var(--color-tertiary-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(62, 207, 142, 0.28);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-hairline-strong);
}
.btn--ghost:hover {
  border-color: rgba(62, 207, 142, 0.5);
  background-color: rgba(62, 207, 142, 0.07);
  transform: translateY(-1px);
}

.btn--sm {
  --btn-pad-y: 9px;
  --btn-pad-x: 16px;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.btn--lg {
  --btn-pad-y: 15px;
  --btn-pad-x: 28px;
  font-size: 1rem;
}

/* -----------------------------------------------------------------
   6. HUECOS DE IMAGEN / VÍDEO  ·  .img-slot / .video-slot
   Convención obligatoria (ver instrucciones): borde discontinuo,
   rayas diagonales, etiqueta mono con tamaño en px, y data-slot único.
   ----------------------------------------------------------------- */
.img-slot,
.video-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  padding: var(--space-lg);
  border: 1.5px dashed var(--color-hairline-strong);
  border-radius: var(--radius-lg);
  color: var(--color-secondary);
  text-align: center;
  background-color: var(--color-surface);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.045) 0,
    rgba(255, 255, 255, 0.045) 1px,
    transparent 1px,
    transparent 11px
  );
  overflow: hidden;
}

.img-slot__label,
.video-slot .img-slot__label {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: var(--weight-medium);
  color: var(--color-primary);
}

.img-slot__hint {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--color-secondary);
  opacity: 0.85;
}

.video-slot__play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--color-tertiary);
  position: relative;
  box-shadow: var(--shadow-md);
}
.video-slot__play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--color-on-primary);
}

/* -----------------------------------------------------------------
   7. NAVBAR
   ----------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--navbar-h);
  display: flex;
  align-items: center;
  background-color: rgba(28, 28, 28, 0.72);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-normal) var(--ease-out),
              background-color var(--dur-normal) var(--ease-out);
}
.navbar.is-scrolled {
  border-bottom-color: var(--color-hairline);
  background-color: rgba(28, 28, 28, 0.88);
}

.navbar__inner {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  width: 100%;
}

.navbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: var(--weight-semibold);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--color-primary);
}
.navbar__mark {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: block;
}
.navbar__brand-accent { color: var(--color-secondary); font-weight: var(--weight-medium); }

.navbar__nav { margin-left: auto; }
.navbar__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}
.navbar__links a {
  font-size: 0.9rem;
  font-weight: var(--weight-medium);
  color: var(--color-secondary);
  transition: color var(--dur-fast) var(--ease-out);
}
.navbar__links a:hover { color: var(--color-tertiary); }

.navbar__cta { flex-shrink: 0; }

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.navbar__toggle span {
  width: 22px;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast);
}

/* -----------------------------------------------------------------
   8. FOOTER
   ----------------------------------------------------------------- */
.footer {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-hairline);
  padding-block: var(--space-2xl) var(--space-xl);
  margin-top: var(--space-2xl);
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl) var(--space-lg);
}
.footer__tagline {
  margin-top: var(--space-md);
  color: var(--color-secondary);
  max-width: 34ch;
  font-size: 0.95rem;
}

/* Marca del footer: icono más grande y texto en mayúsculas (que sea marca) */
.footer__brand .navbar__brand { gap: 12px; }
.footer__brand .navbar__mark { width: 40px; height: 40px; }
.footer__brand .navbar__brand-text {
  font-size: 1.2rem;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer__heading {
  font-size: 0.8rem;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a {
  font-size: 0.92rem;
  color: var(--color-secondary);
  transition: color var(--dur-fast) var(--ease-out);
}
.footer__col a:hover { color: var(--color-tertiary); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  justify-content: space-between;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-hairline);
  font-size: 0.82rem;
  color: var(--color-secondary);
}

/* -----------------------------------------------------------------
   9. BARRA DE BONO FLOTANTE  ·  .bonusbar
   Desktop: ambos bonos compactos en línea.
   Móvil:   crossfade entre los dos (clase .is-active vía JS).
   ----------------------------------------------------------------- */
.bonusbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  min-height: var(--bonusbar-h);
  display: flex;
  align-items: center;
  background-color: rgba(20, 20, 20, 0.92);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  color: var(--color-primary);
  border-top: 1px solid var(--color-hairline-strong);
}
.bonusbar__inner {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  width: 100%;
}
.bonusbar__items {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex: 1;
  min-width: 0;
}
.bonusbar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 0;
  min-width: 0;
}
.bonusbar__tag {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background-color: var(--color-tertiary);
  color: var(--color-on-primary);
}
.bonusbar__text {
  flex: 1;
  min-width: 0;
  font-size: 0.84rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.66);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bonusbar__text strong { color: var(--color-primary); font-weight: var(--weight-semibold); }
.bonusbar__count {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--color-tertiary);
  white-space: nowrap;
}
/* Meta de la barra fija: reloj + mini-barras, a la izquierda del botón */
.bonusbar__meta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.bonusbar__bars { display: flex; flex-direction: column; gap: 6px; }
.bonusbar__bar { width: 96px; margin: 0; }
.bonusbar__bar .progress__track { height: 5px; background-color: rgba(255, 255, 255, 0.14); }
.bonusbar__clock .countdown {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-tertiary);
  font-variant-numeric: tabular-nums;
}
.bonusbar__cta { flex-shrink: 0; }

/* -----------------------------------------------------------------
   10. REVEAL ON LOAD/SCROLL  ·  [data-reveal]
   ----------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition: opacity 720ms var(--ease-out),
              transform 720ms var(--ease-out),
              filter 720ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; filter: blur(0); }

/* -----------------------------------------------------------------
   11. HERO  (Fase 1)
   ----------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: calc(var(--space-2xl) + 1rem) var(--space-2xl);
}

/* Cuadrícula de píxeles interactiva (canvas, se inyecta por JS) */
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;   /* los botones siguen siendo clicables */
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero .eyebrow { color: var(--color-tertiary); }

.hero__title {
  max-width: 16ch;
  margin-bottom: var(--space-lg);
}

.hero__lead {
  max-width: 60ch;
  font-size: clamp(1.05rem, 0.98rem + 0.5vw, 1.28rem);
  color: var(--color-secondary);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md) var(--space-lg);
  margin-top: var(--space-xl);
  font-size: 0.92rem;
  color: var(--color-secondary);
}
.hero__facts li { display: inline-flex; align-items: baseline; gap: 6px; }
.hero__facts strong {
  font-size: 1.15rem;
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
}

.hero__visual {
  width: 100%;
  max-width: 860px;
  margin-top: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}

/* -----------------------------------------------------------------
   12. TERMINAL / CONSOLA  (elemento visual del hero)
   Panel oscuro sobre página clara: usa la propia paleta invertida.
   ----------------------------------------------------------------- */
.terminal {
  width: 100%;
  background-color: var(--color-code-bg);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
  font-family: var(--font-mono);
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 12px var(--space-md);
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.terminal__dots { display: inline-flex; gap: 7px; }
.terminal__dot { width: 11px; height: 11px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.22); }
.terminal__title {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

.terminal__body { padding: var(--space-md) var(--space-lg) var(--space-lg); }

.terminal__line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: 7px;
  font-size: clamp(0.76rem, 0.7rem + 0.3vw, 0.9rem);
  line-height: 1.4;
  transition: opacity var(--dur-normal) var(--ease-out),
              transform var(--dur-normal) var(--ease-out);
}
/* Estado inicial de "tecleo" solo con JS; sin JS se ve la consola completa */
.js .terminal__line { opacity: 0; transform: translateY(6px); }
.js .terminal__line.is-typed { opacity: 1; transform: none; }

.terminal__line--cmd { color: rgba(255, 255, 255, 0.92); }
.terminal__prompt { color: var(--color-tertiary); font-weight: 600; margin-right: 4px; }

.terminal__step { color: rgba(255, 255, 255, 0.62); }
.terminal__arrow { color: rgba(255, 255, 255, 0.35); margin-right: 4px; }
.terminal__val { color: rgba(255, 255, 255, 0.92); white-space: nowrap; }
.terminal__val--accent { color: var(--color-tertiary); }

.terminal__line--done { color: #fff; border-top: 1px solid rgba(255, 255, 255, 0.08); margin-top: 4px; padding-top: 12px; }
.terminal__check { color: var(--color-tertiary); font-weight: 700; margin-right: 6px; }

/* Cursor parpadeante en la línea de comando */
.terminal__caret {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  transform: translateY(2px);
  margin-left: 4px;
  background-color: var(--color-tertiary);
  animation: caret-blink 1.05s steps(2, start) infinite;
}
@keyframes caret-blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

/* -----------------------------------------------------------------
   13. FLOW / CÓMO FUNCIONA  (Fase 2)
   ----------------------------------------------------------------- */
.flow__head {
  position: relative;
  max-width: 62ch;
  margin: 0 auto var(--space-2xl);
  text-align: center;
}
.flow__head > :not(.head-ghost) { position: relative; z-index: 1; }
.flow__head .section-title { margin-left: auto; margin-right: auto; }
.flow__head .section-lead { max-width: 60ch; margin-left: auto; margin-right: auto; }

.flow__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  counter-reset: none;
}

.flow-step {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--color-surface);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-normal) var(--ease-out),
              transform var(--dur-normal) var(--ease-out);
}
.flow-step:hover {
  border-color: var(--color-hairline-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.flow-step__n {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: var(--weight-semibold);
  color: var(--color-secondary);
  opacity: 0.4;
  letter-spacing: -0.02em;
}

.flow-step__tag {
  margin-top: var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-tertiary);
}

.flow-step__title {
  margin-top: 6px;
  font-size: 1.3rem;
  font-weight: var(--weight-semibold);
  letter-spacing: -0.01em;
  color: var(--color-primary);
}

.flow-step__text {
  margin-top: var(--space-sm);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-secondary);
}

/* Paso final: el único que te involucra a ti — se marca con el acento verde */
.flow-step--you {
  border-color: rgba(62, 207, 142, 0.45);
  background-color: rgba(62, 207, 142, 0.06);
}
.flow-step--you .flow-step__n { color: var(--color-tertiary); opacity: 0.5; }
.flow-step--you:hover { border-color: rgba(62, 207, 142, 0.7); box-shadow: var(--shadow-md); }

/* -----------------------------------------------------------------
   14. DEMO / VÍDEO ANCLA  (Fase 3)
   ----------------------------------------------------------------- */
.demo__head {
  position: relative;
  max-width: 60ch;
  margin: 0 auto var(--space-2xl);
  text-align: center;
}
.demo__head > :not(.head-ghost) { position: relative; z-index: 1; }
.demo__head .section-title { margin-left: auto; margin-right: auto; }
.demo__head .section-lead { max-width: 58ch; margin-left: auto; margin-right: auto; }

.demo__video { max-width: 960px; margin: 0 auto; }
.demo__video .video-slot { box-shadow: var(--shadow-md); }
.demo__video .video-slot:hover .video-slot__play { transform: scale(1.06); }
.video-slot__play { transition: transform var(--dur-fast) var(--ease-out); }

.demo__caption {
  margin-top: var(--space-md);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: var(--color-secondary);
}

/* -----------------------------------------------------------------
   15. WORKFLOWS — patrón de bloque (Fase 4)
   ----------------------------------------------------------------- */
/* Encabezado de sección centrado y reutilizable */
.s-head {
  position: relative;
  max-width: 64ch;
  margin: 0 auto var(--space-2xl);
  text-align: center;
}
.s-head > :not(.head-ghost) { position: relative; z-index: 1; }
.s-head .section-title,
.s-head .section-lead { margin-left: auto; margin-right: auto; }
.s-head .section-lead { max-width: 60ch; }

/* code inline (status, campos) — chip verde */
code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  background-color: rgba(62, 207, 142, 0.10);
  color: var(--color-tertiary);
}

/* --- Bloque de workflow: tarjetas con fondo alternado + espacio,
   para diferenciar claramente uno de otro --- */
.wf {
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-lg);
}
.wf + .wf { margin-top: var(--space-lg); }
.wf:nth-of-type(odd) { background-color: rgba(255, 255, 255, 0.025); }
.wf:nth-of-type(even) {
  background-color: rgba(62, 207, 142, 0.05);
  border-color: rgba(62, 207, 142, 0.18);
}

.wf__intro { max-width: 72ch; margin: 0 auto var(--space-2xl); }
.wf__kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: var(--space-md);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-tertiary);
}
.wf__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background-color: rgba(62, 207, 142, 0.13);
  color: var(--color-tertiary);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0;
}
.wf__title {
  font-size: clamp(1.6rem, 1.25rem + 1.7vw, 2.3rem);
  font-weight: var(--weight-heading);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: var(--space-md);
}
.wf__lead {
  font-size: clamp(1rem, 0.96rem + 0.4vw, 1.15rem);
  line-height: 1.6;
  color: var(--color-secondary);
}
.wf__lead strong { color: var(--color-primary); font-weight: var(--weight-medium); }

.wf__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  margin-top: var(--space-lg);
}
.wf__facts li {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-secondary);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
}
.wf__facts strong { color: var(--color-primary); font-weight: var(--weight-semibold); }
.wf__facts code { background: none; padding: 0; }

/* Sub-bloques apilados a lo ancho (A, B, C). Solo el flujo (C) va en fila. */
.wf__panels { display: flex; flex-direction: column; gap: var(--space-2xl); }
.wf__panel-label {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}
.wf__panel-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 10px;
  border-radius: var(--radius-sm);
  background-color: rgba(62, 207, 142, 0.14);
  color: var(--color-tertiary);
  font-size: 0.8rem;
  font-weight: var(--weight-semibold);
}
.wf__panel-desc {
  max-width: 68ch;
  margin-bottom: var(--space-lg);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-secondary);
}
.wf__panel-desc code { font-size: 0.82em; }

/* Mount genérico para capturas (CRM y flujo) */
.shot { max-width: 1000px; margin-inline: auto; }
.shot .img-slot { box-shadow: var(--shadow-md); }
.shot__cap {
  margin-top: var(--space-md);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: var(--color-secondary);
}
.shot__cap code { font-size: 0.9em; padding: 0 4px; }

/* Flujo n8n: las 3 partes en fila horizontal con flechas entre ellas */
.wf__flow { display: flex; align-items: flex-start; gap: var(--space-md); }

/* Variante diagrama (sin imágenes): nodos conectados por flechas */
.wf__flow--diagram { align-items: stretch; }
.wf-node {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: var(--space-lg);
  text-align: center;
  background-color: var(--color-code-bg);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-lg);
}
.wf-node__n {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background-color: rgba(62, 207, 142, 0.14);
  color: var(--color-tertiary);
  font-family: var(--font-mono);
  font-weight: 700;
}
.wf-node__t { font-size: 0.95rem; line-height: 1.4; color: rgba(255, 255, 255, 0.85); }
.wf__flow--diagram .flow-arrow { margin-top: 0; align-self: center; }
.shot--flow { flex: 1; min-width: 0; max-width: none; margin-inline: 0; }
.flow-arrow {
  flex-shrink: 0;
  align-self: center;
  margin-top: -18px;   /* centra la flecha con la imagen, no con el caption */
  width: 10px; height: 14px;
  background-color: var(--color-tertiary);
  clip-path: polygon(0 0, 100% 50%, 0 100%);   /* triángulo → derecha */
  opacity: 0.55;
}

/* --- Mockup de Telegram (escritorio, no móvil) --- */
.tg {
  max-width: 960px;
  margin-inline: auto;
  background-color: var(--color-code-bg);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.tg__chrome {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-hairline);
  background-color: rgba(255, 255, 255, 0.03);
}
.tg__dots { display: inline-flex; gap: 7px; }
.tg__dots span { width: 11px; height: 11px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.18); }
.tg__title { font-family: var(--font-mono); font-size: 0.76rem; color: var(--color-secondary); }

.tg__main { display: grid; grid-template-columns: 210px 1fr; }
.tg__aside {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border-right: 1px solid var(--color-hairline);
  background-color: rgba(255, 255, 255, 0.015);
}
.tg__chat { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--radius-sm); }
.tg__chat.is-active { background-color: rgba(62, 207, 142, 0.08); }
.tg__avatar { width: 30px; height: 30px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.08); flex-shrink: 0; }
.tg__lines { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; }
.tg__lines i { display: block; height: 6px; border-radius: 3px; background-color: rgba(255, 255, 255, 0.08); }
.tg__lines i:first-child { width: 70%; }
.tg__lines i:last-child { width: 45%; background-color: rgba(255, 255, 255, 0.05); }
.tg__chat.is-active .tg__lines i:first-child { background-color: rgba(62, 207, 142, 0.35); }

.tg__thread { display: flex; }
.tg__thread .img-slot { border-radius: 0; border-width: 0; box-shadow: none; width: 100%; }

/* -----------------------------------------------------------------
   16. PLANTILLAS — patrón de bloque (Fase 6)
   ----------------------------------------------------------------- */
.tpl-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
}

.tpl {
  display: grid;
  grid-template-columns: 1.25fr 1fr;   /* imagen un poco más ancha */
  gap: var(--space-2xl);
  align-items: center;
}
/* Alternado: imagen a la derecha (y sigue siendo la columna ancha) */
.tpl--reverse { grid-template-columns: 1fr 1.25fr; }
.tpl--reverse .tpl__shot { order: 2; }

.tpl__shot { margin: 0; }
.tpl__shot .img-slot { box-shadow: var(--shadow-md); }

.tpl__kicker {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-tertiary);
  margin-bottom: var(--space-sm);
}
.tpl__title {
  font-size: clamp(1.4rem, 1.2rem + 1.2vw, 1.9rem);
  font-weight: var(--weight-heading);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}
.tpl__desc {
  max-width: 46ch;
  margin-bottom: var(--space-lg);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-secondary);
}
.tpl__points { display: grid; gap: 10px; }
.tpl__points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--color-primary);
}
.tpl__points li::before {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border-radius: var(--radius-sm);
  background-color: rgba(62, 207, 142, 0.14);
  /* check en verde vía máscara para mantenerlo nítido */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%233ECF8E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* -----------------------------------------------------------------
   17. ESCRAPEADOR — grid con zoom + lightbox (Fase 8)
   ----------------------------------------------------------------- */
.scraper-grid__hint {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--color-secondary);
}

.scraper-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.shot-zoom {
  position: relative;
  margin: 0;
  cursor: zoom-in;
}
.shot-zoom .img-slot {
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-normal) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.shot-zoom:hover .img-slot,
.shot-zoom:focus-visible .img-slot {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-hairline-strong);
}
/* Distintivo de lupa en la esquina al pasar por encima */
.shot-zoom::after {
  content: "⤢";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background-color: rgba(20, 20, 20, 0.7);
  color: var(--color-tertiary);
  font-size: 0.9rem;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  pointer-events: none;
}
.shot-zoom:hover::after,
.shot-zoom:focus-visible::after { opacity: 1; transform: scale(1); }

.shot-zoom__cap {
  margin-top: var(--space-sm);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-secondary);
}

/* --- Lightbox (se inyecta por JS) --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 5vw, 60px);
  background-color: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lightbox.is-open { display: flex; animation: lb-in var(--dur-normal) var(--ease-out); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }

.lightbox__content {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: 86vh;
  overflow: hidden;
}
.lightbox__media {
  width: min(1000px, 92vw);
  max-height: 86vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
img.lightbox__media { width: auto; height: auto; max-width: 92vw; object-fit: contain; }

.lightbox__close {
  position: absolute;
  top: clamp(16px, 3vw, 28px);
  right: clamp(16px, 3vw, 28px);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--color-primary);
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--color-hairline);
  border-radius: 50%;
  transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.lightbox__close:hover { background-color: rgba(255, 255, 255, 0.16); transform: rotate(90deg); }

/* -----------------------------------------------------------------
   18. BONOS / MEGA PACK — ventana 2 columnas, progreso, marquee (Fase 9)
   ----------------------------------------------------------------- */
/* Barra de progreso de escasez */
.progress {
  max-width: 420px;
  margin: 0 auto var(--space-2xl);
  text-align: center;
}
.progress__track {
  height: 8px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.progress__fill {
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  border-radius: 999px;
  background-color: var(--color-tertiary);
  transition: transform var(--dur-slow) var(--ease-out);
}
.progress__label {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--color-tertiary);
}

/* Ventana de listado a dos columnas (estilo consola) */
.win {
  max-width: 860px;
  margin: 0 auto var(--space-2xl);
  background-color: var(--color-code-bg);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.win__bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-hairline);
  background-color: rgba(255, 255, 255, 0.03);
}
.win__dots { display: inline-flex; gap: 7px; }
.win__dots span { width: 11px; height: 11px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.18); }
.win__title { font-family: var(--font-mono); font-size: 0.76rem; color: var(--color-secondary); }

.win__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 var(--space-lg);
  padding: var(--space-lg);
}
.win__list { display: flex; flex-direction: column; }
.win__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-block: 9px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.win__list li:last-child { border-bottom: 0; }
.win__list li::before {
  content: "›";
  color: var(--color-tertiary);
  font-weight: 700;
  flex-shrink: 0;
}
.win__list li b { color: var(--color-primary); font-weight: var(--weight-semibold); }

/* Capturas de los bonos */
.bono__shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  max-width: 900px;
  margin: 0 auto;
}
.megapack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

/* Banda en movimiento (marquee) */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--color-hairline);
  border-bottom: 1px solid var(--color-hairline);
  background-color: var(--color-code-bg);
  padding-block: clamp(1.4rem, 1rem + 1.5vw, 2.6rem);
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: var(--space-lg);
  will-change: transform;
  animation: marquee-scroll 34s linear infinite;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee__item {
  font-family: var(--font-sans);
  font-size: clamp(1.6rem, 1rem + 3vw, 3.4rem);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.14);
}
.marquee__item.is-accent { color: var(--color-tertiary); opacity: 0.85; }
.marquee__sep { color: var(--color-tertiary); opacity: 0.4; font-size: 1.4rem; }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* -----------------------------------------------------------------
   19. PACKS · banda urgencia · comparativa · bonos · modal (Fase 10)
   ----------------------------------------------------------------- */
/* Variante de barra de progreso para bandas/tarjetas (alineada, grande) */
.progress--bar { max-width: none; margin: 0; text-align: left; }
.progress--bar .progress__track { height: 10px; }
.progress__cap {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-secondary);
  margin-bottom: 6px;
}
.progress--bar .progress__label { color: var(--color-secondary); }
.progress--bar .progress__label { text-align: left; }

/* --- Banda de urgencia recurrente --- */
.buybar {
  background-color: rgba(62, 207, 142, 0.055);
  border-top: 1px solid rgba(62, 207, 142, 0.3);
  border-bottom: 1px solid rgba(62, 207, 142, 0.3);
  padding-block: var(--space-xl);
}
.buybar__inner {
  display: flex;
  align-items: center;
  gap: var(--space-lg) var(--space-2xl);
  flex-wrap: wrap;
}

/* Bloque izquierdo: título + reloj destacado */
.buybar__lead { flex: 1 1 240px; }
.buybar__title {
  font-size: clamp(1.3rem, 1rem + 1.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.buybar__timer { display: inline-flex; align-items: center; gap: 10px; }
.buybar__timer-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-secondary);
}
.buybar .countdown {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-tertiary);
  background-color: rgba(62, 207, 142, 0.1);
  border: 1px solid rgba(62, 207, 142, 0.4);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  font-variant-numeric: tabular-nums;
}

/* Bloque central: precios en pills + barras */
.buybar__mid { flex: 2 1 360px; display: flex; flex-direction: column; gap: var(--space-md); }
.buybar__plans { display: flex; gap: 10px; flex-wrap: wrap; }
.buybar__plan {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--color-secondary);
  padding: 6px 12px;
  border: 1px solid var(--color-hairline);
  border-radius: 999px;
}
.buybar__plan b { color: var(--color-primary); font-weight: var(--weight-semibold); }
.buybar__now { color: var(--color-tertiary); font-weight: 700; }
.buybar__plan s { opacity: 0.45; }
.buybar__bars { display: flex; gap: var(--space-lg); }
.buybar__bars .progress { flex: 1; }

.buybar__cta { flex-shrink: 0; }

/* --- Calculadora de facturación --- */
.calc__formula {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm) var(--space-md);
  max-width: 760px;
  margin: 0 auto var(--space-xl);
  padding: var(--space-md) var(--space-lg);
  background-color: var(--color-surface);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-lg);
  font-family: var(--font-mono);
}
.calc__formula-part {
  font-size: 1rem;
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  text-align: center;
}
.calc__formula-part small {
  display: block;
  font-family: var(--font-sans);
  font-weight: var(--weight-regular);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-secondary);
  margin-top: 2px;
}
.calc__formula-part--result { color: var(--color-tertiary); }
.calc__formula-op { color: var(--color-secondary); opacity: 0.6; font-size: 1.2rem; }

.calc__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  max-width: 1000px;
  margin: 0 auto var(--space-lg);
  align-items: stretch;
}
.calc__card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
}
.calc__card--main {
  background-color: rgba(62, 207, 142, 0.06);
  border-color: rgba(62, 207, 142, 0.5);
  box-shadow: 0 0 0 1px rgba(62, 207, 142, 0.18), var(--shadow-md);
  transform: translateY(-6px);
}
.calc__card-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-secondary);
  margin-bottom: var(--space-sm);
}
.calc__card--main .calc__card-tag { color: var(--color-tertiary); }
.calc__card-detail { color: var(--color-secondary); font-size: 0.88rem; margin-bottom: var(--space-md); min-height: 2.6em; }
.calc__card-value {
  font-size: clamp(2.1rem, 1.7rem + 1.6vw, 2.8rem);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.02em;
  color: var(--color-primary);
  line-height: 1;
}
.calc__card--main .calc__card-value { color: var(--color-tertiary); }
.calc__card-sub { font-size: 0.8rem; color: var(--color-secondary); margin-top: 4px; }

.calc__note {
  max-width: 640px;
  margin: 0 auto var(--space-xl);
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-secondary);
  opacity: 0.85;
}
.calc__cta { display: flex; justify-content: center; }

@media (max-width: 860px) {
  .calc__grid { grid-template-columns: 1fr; }
  .calc__card--main { transform: none; }
}

/* --- Tarjetas de packs --- */
.packs__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  max-width: 900px;
  margin: 0 auto var(--space-2xl);
  align-items: start;
}
.pack {
  position: relative;
  background-color: var(--color-surface);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}
.pack--featured {
  border-color: rgba(62, 207, 142, 0.5);
  box-shadow: 0 0 0 1px rgba(62, 207, 142, 0.18), var(--shadow-md);
}
.pack__badge {
  position: absolute;
  top: -11px;
  left: var(--space-xl);
  background-color: var(--color-tertiary);
  color: var(--color-on-primary);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}
.pack__name {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-tertiary);
  margin-bottom: var(--space-sm);
}
.pack__price { display: flex; align-items: baseline; gap: 12px; margin-bottom: var(--space-sm); }
.pack__anchor { font-size: 1.1rem; color: var(--color-secondary); text-decoration: line-through; }
.pack__now { font-size: clamp(2rem, 1.6rem + 1.5vw, 2.6rem); font-weight: var(--weight-semibold); color: var(--color-primary); letter-spacing: -0.02em; }
.pack__tagline { color: var(--color-secondary); margin-bottom: var(--space-lg); }
.pack__features { display: grid; gap: 10px; margin-bottom: var(--space-xl); }
.pack__features li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; color: var(--color-primary); }
.pack__features li b { font-weight: var(--weight-semibold); }
.pack__features li::before {
  content: "";
  flex-shrink: 0;
  width: 16px; height: 16px; margin-top: 2px;
  border-radius: var(--radius-sm);
  background-color: rgba(62, 207, 142, 0.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%233ECF8E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.pack__checkout { display: flex; flex-direction: column; gap: 10px; }

/* --- Tabla comparativa --- */
.compare-wrap { max-width: 900px; margin: 0 auto var(--space-2xl); overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.compare__caption {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-secondary);
  margin-bottom: var(--space-md);
}
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--color-hairline); text-align: left; }
.compare thead th { font-family: var(--font-mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-secondary); }
.compare thead th.compare__pro { color: var(--color-tertiary); }
.compare tbody th { font-weight: var(--weight-regular); color: var(--color-primary); }
.compare td { text-align: center; width: 130px; }
.compare td[data-yes]::before { content: "✓"; color: var(--color-tertiary); font-weight: 700; }
.compare td[data-no]::before { content: "—"; color: var(--color-secondary); opacity: 0.5; }
.compare__price { font-weight: var(--weight-semibold); color: var(--color-primary); }

/* --- Recap de bonos --- */
.packs__bonos { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); max-width: 900px; margin: 0 auto var(--space-2xl); }
.bonocard {
  background-color: rgba(62, 207, 142, 0.05);
  border: 1px solid rgba(62, 207, 142, 0.28);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}
.bonocard__tag { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-tertiary); margin-bottom: var(--space-sm); }
.bonocard__title { font-size: 1.2rem; font-weight: var(--weight-semibold); margin-bottom: 6px; }
.bonocard__desc { color: var(--color-secondary); font-size: 0.92rem; margin-bottom: var(--space-md); }

/* --- Garantía --- */
.guarantee {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  max-width: 680px;
  margin: 0 auto;
  padding: var(--space-lg);
  border: 1px dashed var(--color-hairline-strong);
  border-radius: var(--radius-lg);
}
.guarantee__icon { font-size: 1.9rem; color: var(--color-tertiary); flex-shrink: 0; }
.guarantee__title { font-weight: var(--weight-semibold); margin-bottom: 4px; }
.guarantee__desc { color: var(--color-secondary); font-size: 0.9rem; }

/* --- Modal de oferta --- */
.offer {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 5vw, 40px);
  background-color: rgba(10, 10, 10, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.offer.is-open { display: flex; animation: lb-in var(--dur-normal) var(--ease-out); }
.offer__card {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: clamp(26px, 5vw, 42px);
  background-color: var(--color-surface);
  border: 1px solid rgba(62, 207, 142, 0.4);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.offer__close {
  position: absolute;
  top: 12px; right: 14px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; line-height: 1;
  color: var(--color-secondary);
  border-radius: 50%;
  transition: color var(--dur-fast), background-color var(--dur-fast);
}
.offer__close:hover { color: var(--color-primary); background-color: rgba(255, 255, 255, 0.06); }
.offer__eyebrow { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-tertiary); margin-bottom: var(--space-sm); }
.offer__title { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem); font-weight: var(--weight-semibold); line-height: 1.2; margin-bottom: var(--space-sm); }
.offer__desc { color: var(--color-secondary); margin-bottom: var(--space-lg); }
.offer__timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 2rem + 2vw, 3.4rem);
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
  font-variant-numeric: tabular-nums;
}
.offer__colon { color: var(--color-tertiary); }
.offer__time { background-color: var(--color-code-bg); border-radius: var(--radius-sm); padding: 4px 12px; }
.offer__actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: var(--space-md); }
.offer__fine { font-size: 0.78rem; color: var(--color-secondary); }

/* Botones directos a cada plan: apilados, a lo ancho y con la MISMA
   estructura de 2 líneas (frase arriba, precio abajo) para que sean iguales */
.offer__buy {
  flex-direction: column;
  gap: 3px;
  align-items: center;
  text-align: center;
  line-height: 1.25;
  padding-block: 12px;
}
.offer__buy-label { font-size: 0.92rem; }
.offer__buy-price { font-size: 0.92rem; }
.offer__buy-price b { font-weight: 700; }
.offer__buy-price s { opacity: 0.6; font-weight: 400; font-size: 0.85em; margin-left: 5px; }

/* "Ahora no": discreto, que no compita con los CTA */
.offer__dismiss { border: 0; background: none; color: var(--color-secondary); }
.offer__dismiss:hover { color: var(--color-primary); background: none; }

/* Código de promoción copiable dentro del modal */
.offer__code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  max-width: 100%;
  margin-bottom: var(--space-lg);
  padding: 7px 7px 7px 14px;
  border: 1px dashed rgba(62, 207, 142, 0.5);
  border-radius: var(--radius-md);
  background-color: rgba(62, 207, 142, 0.06);
}
.offer__code-label { font-size: 0.82rem; color: var(--color-secondary); }
.offer__code-value {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.05em;
  color: var(--color-tertiary);
  background: none;
  padding: 0;
}
.offer__code-copy {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background-color: var(--color-tertiary);
  color: var(--color-on-primary);
  transition: background-color var(--dur-fast) var(--ease-out);
}
.offer__code-copy:hover { background-color: var(--color-tertiary-hover); }

/* -----------------------------------------------------------------
   20. FAQ + CTA FINAL (Fase 11)
   ----------------------------------------------------------------- */
.faq__list { max-width: 760px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--color-hairline); }
.faq__item:first-child { border-top: 1px solid var(--color-hairline); }

.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: var(--space-lg);
  font-size: 1.08rem;
  font-weight: var(--weight-medium);
  color: var(--color-primary);
  transition: color var(--dur-fast) var(--ease-out);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--color-tertiary); }

/* Chevron ▾ que gira al abrir */
.faq__item summary::after {
  content: "";
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-right: 2px solid var(--color-tertiary);
  border-bottom: 2px solid var(--color-tertiary);
  transform: rotate(45deg);
  transition: transform var(--dur-normal) var(--ease-out);
}
.faq__item[open] summary::after { transform: rotate(-135deg); }

.faq__answer {
  padding-bottom: var(--space-lg);
  max-width: 64ch;
  line-height: 1.6;
  color: var(--color-secondary);
}

/* --- CTA final --- */
.finalcta__card {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(2rem, 1.4rem + 3vw, 4rem);
  text-align: center;
  background-color: var(--color-code-bg);
  border: 1px solid rgba(62, 207, 142, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.finalcta__card .eyebrow { justify-content: center; }
.finalcta__title {
  max-width: 22ch;
  margin: 0 auto var(--space-md);
  font-size: clamp(1.8rem, 1.4rem + 2.4vw, 3rem);
  font-weight: var(--weight-heading);
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--color-primary);
}
.finalcta__lead { color: var(--color-secondary); font-size: 1.1rem; margin-bottom: var(--space-xl); }
.finalcta__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}
.finalcta__bars {
  display: flex;
  gap: var(--space-lg);
  max-width: 520px;
  margin: 0 auto;
}
.finalcta__bars .progress { flex: 1; }

/* -----------------------------------------------------------------
   21. IMÁGENES EN HUECOS · COOKIES · PÁGINAS LEGALES
   ----------------------------------------------------------------- */
/* Hueco relleno con imagen real (cargador automático) */
.img-slot--filled { display: block; padding: 0; border: 0; background: none; }
.slot-img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.slot-video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; background-color: #000; }

/* --- Banner de cookies --- */
.cookie {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 160;
  display: none;
  background-color: rgba(20, 20, 20, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-hairline-strong);
  padding-block: var(--space-md);
}
.cookie.is-open { display: block; }
.cookie__inner { display: flex; align-items: center; gap: var(--space-lg); flex-wrap: wrap; }
.cookie__text { flex: 1 1 320px; font-size: 0.86rem; line-height: 1.5; color: rgba(255, 255, 255, 0.8); }
.cookie__text a { color: var(--color-tertiary); text-decoration: underline; }
.cookie__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Mientras no hay decisión de cookies, oculta la barra de bono para no solapar */
.cookies-pending .bonusbar { display: none; }

/* --- Modal de preferencias de cookies --- */
.cookie-prefs {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 5vw, 40px);
  background-color: rgba(10, 10, 10, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.cookie-prefs.is-open { display: flex; animation: lb-in var(--dur-normal) var(--ease-out); }
.cookie-prefs__card {
  position: relative;
  width: 100%;
  max-width: 520px;
  padding: clamp(24px, 5vw, 36px);
  background-color: var(--color-surface);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.cookie-prefs__close {
  position: absolute; top: 12px; right: 14px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--color-secondary); border-radius: 50%;
  transition: color var(--dur-fast), background-color var(--dur-fast);
}
.cookie-prefs__close:hover { color: var(--color-primary); background-color: rgba(255, 255, 255, 0.06); }
.cookie-prefs__title { font-size: 1.3rem; font-weight: var(--weight-semibold); margin-bottom: var(--space-sm); }
.cookie-prefs__desc { color: var(--color-secondary); font-size: 0.92rem; margin-bottom: var(--space-lg); }
.cookie-prefs__list { display: flex; flex-direction: column; gap: var(--space-md); margin-bottom: var(--space-lg); }
.cookie-cat { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-md); padding-bottom: var(--space-md); border-bottom: 1px solid var(--color-hairline); }
.cookie-cat:last-child { border-bottom: 0; padding-bottom: 0; }
.cookie-cat__name { font-weight: var(--weight-semibold); margin-bottom: 4px; }
.cookie-cat__desc { font-size: 0.85rem; color: var(--color-secondary); max-width: 40ch; }
.cookie-cat__always { font-family: var(--font-mono); font-size: 0.72rem; color: var(--color-tertiary); flex-shrink: 0; white-space: nowrap; }
.cookie-prefs__actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* Interruptor (switch) */
.switch { position: relative; display: inline-flex; flex-shrink: 0; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__slider { width: 42px; height: 24px; border-radius: 999px; background-color: rgba(255, 255, 255, 0.15); transition: background-color var(--dur-fast) var(--ease-out); position: relative; }
.switch__slider::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background-color: #fff; transition: transform var(--dur-fast) var(--ease-out); }
.switch input:checked + .switch__slider { background-color: var(--color-tertiary); }
.switch input:checked + .switch__slider::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__slider { outline: 2px solid var(--color-tertiary); outline-offset: 2px; }
.switch__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* --- Páginas legales --- */
.legal-header { border-bottom: 1px solid var(--color-hairline); background-color: var(--color-neutral); }
.legal-header .container { display: flex; align-items: center; min-height: var(--navbar-h); }
.legal { max-width: 760px; padding-block: clamp(2rem, 1.5rem + 4vw, 5rem); }
.legal__back { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.82rem; color: var(--color-secondary); margin-bottom: var(--space-xl); }
.legal__back:hover { color: var(--color-tertiary); }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); font-weight: var(--weight-heading); letter-spacing: -0.02em; line-height: 1.15; margin-bottom: var(--space-sm); }
.legal__updated { font-family: var(--font-mono); font-size: 0.8rem; color: var(--color-secondary); margin-bottom: var(--space-xl); }
.legal h2 { font-size: 1.3rem; font-weight: var(--weight-semibold); margin-top: var(--space-xl); margin-bottom: var(--space-sm); color: var(--color-primary); }
.legal h3 { font-size: 1.05rem; font-weight: var(--weight-semibold); margin-top: var(--space-lg); margin-bottom: 6px; }
.legal p, .legal li { color: var(--color-secondary); line-height: 1.7; }
.legal p { margin-bottom: var(--space-md); }
.legal ul { list-style: disc; padding-left: 1.4em; margin-bottom: var(--space-md); }
.legal ul li { margin-bottom: 6px; }
.legal a { color: var(--color-tertiary); text-decoration: underline; }
.legal code { font-size: 0.85em; }
.legal__note { border: 1px solid rgba(62, 207, 142, 0.3); background-color: rgba(62, 207, 142, 0.05); padding: var(--space-md); border-radius: var(--radius-md); font-size: 0.88rem; margin-bottom: var(--space-lg); }
.legal__note p:last-child { margin-bottom: 0; }
.legal-footer { border-top: 1px solid var(--color-hairline); padding-block: var(--space-lg); text-align: center; font-size: 0.82rem; color: var(--color-secondary); }
.legal-footer a { color: var(--color-secondary); }
.legal-footer a:hover { color: var(--color-tertiary); }

/* -----------------------------------------------------------------
   22. TESTIMONIOS (2 sliders opuestos) + WIDGET WHATSAPP
   ----------------------------------------------------------------- */
.testimonials .s-head { margin-bottom: var(--space-xl); }

.tslider { overflow: hidden; padding-block: 6px; }
.tslider + .tslider { margin-top: var(--space-md); }
.tslider__track { display: flex; gap: var(--space-md); width: max-content; }
.tslider__track.is-animated { animation: tslide 55s linear infinite; }
.tslider--reverse .tslider__track.is-animated { animation-direction: reverse; }
.tslider:hover .tslider__track.is-animated { animation-play-state: paused; }
@keyframes tslide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.tcard {
  flex: 0 0 clamp(280px, 30vw, 372px);
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: var(--space-lg);
  background-color: var(--color-surface);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-lg);
}
.tcard__stars { color: var(--color-tertiary); letter-spacing: 2px; font-size: 0.95rem; margin-bottom: var(--space-md); }
.tcard__quote { margin: 0 0 var(--space-lg); font-size: 0.98rem; line-height: 1.6; color: var(--color-primary); }
.tcard__who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.tcard__avatar {
  width: 44px; height: 44px; flex-shrink: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(62, 207, 142, 0.12)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A8F8A' stroke-width='1.6'%3E%3Ccircle cx='12' cy='9' r='3.5'/%3E%3Cpath d='M5 20c0-3.6 3.1-5.5 7-5.5s7 1.9 7 5.5'/%3E%3C/svg%3E")
    center/64% no-repeat;
}
.tcard__meta { display: flex; flex-direction: column; }
.tcard__name { font-weight: var(--weight-semibold); font-size: 0.92rem; color: var(--color-primary); }
.tcard__role { font-size: 0.8rem; color: var(--color-tertiary); }

/* --- Galería de capturas reales (testimonios de móvil, horizontales) --- */
.tgallery-wrap { margin-top: var(--space-2xl); }
.tgallery__kicker {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-secondary);
  margin-bottom: var(--space-lg);
}
.tgallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}
.tshot { position: relative; margin: 0; cursor: zoom-in; }
.tshot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-hairline);
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-normal) var(--ease-out);
}
.tshot:hover img,
.tshot:focus-visible img { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tshot::after {
  content: "⤢";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background-color: rgba(20, 20, 20, 0.72);
  color: var(--color-tertiary);
  font-size: 0.95rem;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  pointer-events: none;
}
.tshot:hover::after,
.tshot:focus-visible::after { opacity: 1; transform: scale(1); }
.tshot__cap {
  margin-top: var(--space-sm);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-secondary);
}

/* --- Widget de WhatsApp --- */
.wa {
  position: fixed;
  right: clamp(16px, 4vw, 28px);
  bottom: calc(var(--bonusbar-h) + 18px);
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.cookies-pending .wa { display: none; }

.wa__fab {
  width: 58px; height: 58px;
  border-radius: 30%;
  overflow: hidden;
  background: none;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-fast) var(--ease-out);
}
.wa__fab:hover { transform: scale(1.06); }
.wa__fab img { width: 100%; height: 100%; display: block; }
.wa.is-open .wa__fab { display: none; }

.wa__panel {
  width: 280px;
  padding: var(--space-lg);
  background-color: var(--color-surface);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: translateY(10px) scale(0.98);
  transform-origin: bottom right;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-normal) var(--ease-out), transform var(--dur-normal) var(--ease-out);
}
.wa.is-open .wa__panel { opacity: 1; transform: none; pointer-events: auto; }
.wa__close {
  position: absolute; top: 8px; right: 10px;
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-secondary);
  background-color: var(--color-neutral);
}
.wa__close:hover { color: var(--color-primary); }
.wa__title { font-size: 1.15rem; font-weight: var(--weight-semibold); line-height: 1.2; margin-bottom: var(--space-md); color: var(--color-primary); }
.wa__row { display: flex; align-items: center; gap: 10px; margin-bottom: var(--space-md); }
.wa__icon { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; background-color: var(--color-tertiary); color: var(--color-on-primary); display: flex; align-items: center; justify-content: center; }
.wa__icon svg { width: 20px; height: 20px; }
.wa__logo { width: 34px; height: 34px; flex-shrink: 0; border-radius: var(--radius-md); }
.wa__msg { font-size: 0.85rem; line-height: 1.4; color: var(--color-secondary); }
.wa__cta { width: 100%; background-color: #25D366; color: #ffffff; }
.wa__cta:hover { background-color: #128C7E; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(37, 211, 102, 0.28); }
.wa__fine { margin-top: 8px; text-align: center; font-size: 0.75rem; color: var(--color-secondary); }

/* --- Prueba social (bocadillo abajo-izquierda) --- */
.proof {
  position: fixed;
  left: clamp(16px, 4vw, 28px);
  bottom: calc(var(--bonusbar-h) + 18px);
  z-index: 115;
  width: 300px;
  max-width: calc(100vw - 32px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 26px 12px 14px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--dur-normal) var(--ease-out), opacity var(--dur-normal) var(--ease-out);
}
.proof.is-open { transform: none; opacity: 1; pointer-events: auto; }
.cookies-pending .proof { display: none; }
.proof__icon {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 50%;
  background-color: rgba(62, 207, 142, 0.12);
  color: var(--color-tertiary);
  display: flex; align-items: center; justify-content: center;
}
.proof__icon svg { width: 20px; height: 20px; }
.proof__title { font-size: 0.86rem; line-height: 1.35; color: var(--color-primary); }
.proof__title b { font-weight: var(--weight-semibold); }
.proof__meta { margin-top: 2px; font-family: var(--font-mono); font-size: 0.7rem; color: var(--color-secondary); }
.proof__close {
  position: absolute; top: 6px; right: 8px;
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; line-height: 1; color: var(--color-secondary);
}
.proof__close:hover { color: var(--color-primary); }

/* -----------------------------------------------------------------
   23. RESPONSIVE  (afinado a fondo en la Fase 12)
   ----------------------------------------------------------------- */
@media (max-width: 860px) {
  .navbar__cta { display: none; }
  .navbar__toggle { display: flex; }

  /* Menú móvil: panel desplegable bajo la barra */
  .navbar__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    background-color: rgba(28, 28, 28, 0.98);
    backdrop-filter: saturate(160%) blur(20px);
    -webkit-backdrop-filter: saturate(160%) blur(20px);
    border-bottom: 1px solid var(--color-hairline);
    padding: var(--space-md) var(--container-pad) var(--space-lg);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-normal) var(--ease-out),
                transform var(--dur-normal) var(--ease-out);
  }
  .navbar.is-menu-open .navbar__nav { opacity: 1; transform: none; pointer-events: auto; }
  .navbar__links { flex-direction: column; align-items: flex-start; gap: 4px; }
  .navbar__links a { display: block; padding-block: 10px; font-size: 1rem; }

  /* Hamburguesa → X */
  .navbar.is-menu-open .navbar__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .navbar.is-menu-open .navbar__toggle span:nth-child(2) { opacity: 0; }
  .navbar.is-menu-open .navbar__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }

  .hero__facts { gap: var(--space-sm) var(--space-md); }

  .flow__grid { grid-template-columns: repeat(2, 1fr); }

  /* Barra de bono: un bono visible a la vez (crossfade por JS) */
  .bonusbar__items { position: relative; }
  .bonusbar__item {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-slow) var(--ease-out);
  }
  .bonusbar__item.is-active { position: relative; opacity: 1; pointer-events: auto; }
}

@media (max-width: 860px) {
  /* Plantillas a una columna; la imagen siempre arriba */
  .tpl { grid-template-columns: 1fr; gap: var(--space-lg); }
  .tpl--reverse .tpl__shot { order: 0; }
  .tpl__shot { max-width: 560px; }

  /* Grid del escrapeador: de 4 a 2 columnas */
  .scraper-grid { grid-template-columns: repeat(2, 1fr); }

  /* Bonos / Mega Pack */
  .win__cols { grid-template-columns: 1fr; gap: 0; }
  .megapack-grid { grid-template-columns: repeat(2, 1fr); }

  /* Packs y banda de urgencia */
  .packs__grid { grid-template-columns: 1fr; max-width: 460px; }
  .packs__bonos { grid-template-columns: 1fr; }
  .buybar__mid { flex: 1 1 100%; }
  .buybar__cta { width: 100%; }
}

@media (max-width: 560px) {
  .bono__shots { grid-template-columns: 1fr; }
  .megapack-grid { grid-template-columns: 1fr; }
  .finalcta__bars { flex-direction: column; }
}

@media (max-width: 720px) {
  .tgallery { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  /* Flujo n8n: en vertical, la misma flecha (clip-path) rota para apuntar hacia abajo */
  .wf__flow { flex-direction: column; align-items: stretch; gap: var(--space-sm); }
  .shot--flow { max-width: 640px; margin-inline: auto; }
  .flow-arrow {
    align-self: center;
    margin: 2px 0;
    transform: rotate(90deg);
  }
}

@media (max-width: 640px) {
  /* Barra fija: en móvil quita las mini-barras, deja el reloj */
  .bonusbar__bars { display: none; }

  /* Telegram: ocultar panel lateral decorativo, el hilo ocupa todo */
  .tg__main { grid-template-columns: 1fr; }
  .tg__aside { display: none; }
}

@media (max-width: 520px) {
  .footer__inner { grid-template-columns: 1fr; }
  .flow__grid { grid-template-columns: 1fr; }
  .bonusbar__cta { padding-inline: 12px; }
  .bonusbar__tag { display: none; }
}

/* -----------------------------------------------------------------
   12. REDUCED MOTION
   ----------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
