/* Squoox: tokens de plataforma derivados del logo oficial.
   Claro por defecto; oscuro por preferencia del sistema o forzado con data-theme.
   La landing puede forzar data-theme="dark" (el logo exige fondo oscuro). */
:root {
  /* Colores del logo (fijos en ambos temas) */
  --sq-logo-violet: #8f27dd;      /* Pulso */
  --sq-logo-orange: #ff7d23;      /* Brasa: solo sobre oscuro, solo marketing */
  --sq-logo-cyan: #01c8fe;        /* Neón: solo sobre oscuro */
  --sq-logo-white: #f0f0f0;
  --sq-ink: #080c15;              /* Hierro: fondo del logo y bloques oscuros fijos */

  /* Marca (violeta) */
  --sq-brand: #8f27dd;            /* Pulso: 6,00 sobre blanco, 5,50 sobre tiza */
  --sq-brand-pressed: #7a1fc0;
  --sq-brand-soft: #f3e9ff;       /* Pulso sobre él: 5,11 */
  --sq-on-brand: #ffffff;         /* 6,00:1 */
  --sq-brand-text: #8f27dd;

  /* Acción de marketing (naranja): no existe en claro; ver bloques .sq-dark */
  --sq-cta: #8f27dd;              /* en claro el CTA es violeta */
  --sq-cta-pressed: #7a1fc0;
  --sq-on-cta: #ffffff;

  /* Información y detalles (cian) */
  --sq-info: #006b8f;             /* Neón tinta: 6,00 sobre blanco, 5,50 sobre tiza */
  --sq-info-soft: #e6f8fe;        /* Neón tinta sobre él: 5,49 */

  /* Neutros */
  --sq-bg: #f4f5f8;               /* Tiza */
  --sq-surface: #ffffff;
  --sq-surface-pressed: #ebedf2;
  --sq-border: #dcdfe6;           /* decorativo */
  --sq-border-strong: #7c869a;    /* inputs y controles: 3,66 / 3,36 */
  --sq-text: #080c15;             /* 17,94 sobre tiza */
  --sq-text-secondary: #4a5468;   /* 6,98 */
  --sq-text-muted: #5a6478;       /* 5,46 */
  --sq-focus: #006b8f;

  /* Estados */
  --sq-good: #1a7f4e;
  --sq-warning: #8f5d00;
  --sq-danger: #c4302b;

  /* Tipografía */
  --sq-font-display: "Exo 2", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sq-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sq-weight-regular: 400;
  --sq-weight-medium: 500;
  --sq-weight-semibold: 600;
  --sq-weight-bold: 700;
  --sq-weight-extrabold: 800;
  --sq-weight-black: 900;

  /* Espaciado y radios (alineados con src/lib/theme.ts) */
  --sq-space-xs: 4px;
  --sq-space-sm: 8px;
  --sq-space-md: 16px;
  --sq-space-lg: 24px;
  --sq-space-xl: 32px;
  --sq-space-2xl: 64px;
  --sq-radius-sm: 8px;
  --sq-radius-md: 12px;
  --sq-radius-lg: 16px;
  --sq-radius-pill: 999px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sq-brand: #b57cff;          /* Pulso noche */
    --sq-brand-pressed: #c9a0ff;
    --sq-brand-soft: #26103d;     /* Pulso noche sobre él: 5,96 */
    --sq-on-brand: #080c15;       /* 6,79:1 */
    --sq-brand-text: #b57cff;     /* 6,22 sobre surface */
    --sq-cta: #ff7d23;            /* Brasa (solo landing; el panel usa --sq-brand) */
    --sq-cta-pressed: #ff9a52;
    --sq-on-cta: #080c15;         /* 7,65:1. Nunca blanco sobre Brasa */
    --sq-info: #01c8fe;           /* Neón: 9,12 sobre surface */
    --sq-info-soft: #0b2633;      /* Neón sobre él: 7,99 */
    --sq-bg: #080c15;
    --sq-surface: #111725;
    --sq-surface-pressed: #1a2131;
    --sq-border: #252d3d;
    --sq-border-strong: #6b7488;  /* 3,82:1 sobre surface */
    --sq-text: #f0f0f0;
    --sq-text-secondary: #b8bfcc;
    --sq-text-muted: #878fa1;
    --sq-focus: #01c8fe;
    --sq-good: #2fbf71;
    --sq-warning: #fab219;
    --sq-danger: #ff5a52;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --sq-brand: #b57cff;
  --sq-brand-pressed: #c9a0ff;
  --sq-brand-soft: #26103d;
  --sq-on-brand: #080c15;
  --sq-brand-text: #b57cff;
  --sq-cta: #ff7d23;
  --sq-cta-pressed: #ff9a52;
  --sq-on-cta: #080c15;
  --sq-info: #01c8fe;
  --sq-info-soft: #0b2633;
  --sq-bg: #080c15;
  --sq-surface: #111725;
  --sq-surface-pressed: #1a2131;
  --sq-border: #252d3d;
  --sq-border-strong: #6b7488;
  --sq-text: #f0f0f0;
  --sq-text-secondary: #b8bfcc;
  --sq-text-muted: #878fa1;
  --sq-focus: #01c8fe;
  --sq-good: #2fbf71;
  --sq-warning: #fab219;
  --sq-danger: #ff5a52;
  color-scheme: dark;
}

/* En el panel web (app.squoox.com) el CTA es siempre el violeta: sin naranja
   en superficies con estados. */
.sq-app {
  --sq-cta: var(--sq-brand);
  --sq-cta-pressed: var(--sq-brand-pressed);
  --sq-on-cta: var(--sq-on-brand);
}

body {
  background: var(--sq-bg);
  color: var(--sq-text);
  font-family: var(--sq-font-body);
}
.sq-display {
  font-family: var(--sq-font-display);
  font-style: italic;
  font-weight: var(--sq-weight-black);
  letter-spacing: -0.01em;
}
.sq-eyebrow {
  color: var(--sq-info);
  font: 700 0.75rem/1.2 var(--sq-font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sq-btn-cta { background: var(--sq-cta); color: var(--sq-on-cta); }
.sq-btn-cta:hover, .sq-btn-cta:active { background: var(--sq-cta-pressed); }
.sq-soon { /* chip "Próximamente" */
  background: var(--sq-info-soft);
  color: var(--sq-info);
  border: 1px solid currentColor;
  border-radius: var(--sq-radius-pill);
}
.sq-logo-plate { background: var(--sq-ink); } /* placa obligatoria del logo sobre claro */
.sq-num { font-feature-settings: "tnum" 1; }
:focus-visible { outline: 3px solid var(--sq-focus); outline-offset: 2px; }

/* ---------- Capa de la landing (squoox.com) ----------
   La landing fuerza data-theme="dark" en <html>: el logo exige fondo Hierro.
   Alias y valores de la paleta (§5) que los tokens base no traen. */
:root {
  --sq-panel: #0d121f;             /* secciones alternas, entre Hierro y surface (decorativo) */
  --sq-glow: radial-gradient(ellipse 60% 55% at 92% 0%, rgb(143 39 221 / 0.24), transparent 70%);
  --sq-shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px rgb(0 0 0 / 0.35);
  --sq-wrap: 1120px;
  --sq-gutter: var(--space-4);

  /* Escala de espaciado de la landing (múltiplos de 4/8). Todo margen, relleno
     y gap usa estos tokens; no hay valores sueltos. Los --sq-space-* de arriba
     siguen alineados con src/lib/theme.ts (mismos valores 4/8/16/24/32/64). */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  /* Ritmo vertical (móvil primero; ver el bloque >=768 px) */
  --section-y: var(--space-7);    /* relleno arriba/abajo de cada sección */
  --head-gap: var(--space-6);     /* encabezado de sección -> contenido */
  --stack-gap: var(--space-4);    /* gap de grillas, listas de tarjetas y bloques apilados */
  --card-pad: var(--space-5);     /* relleno interno de tarjetas */
  --safe-bottom: env(safe-area-inset-bottom, 0px); /* barra de inicio del iPhone (viewport-fit=cover) */
  /* Maqueta de la app: colores de la app (Neutral de src/lib/theme.ts), sin marca Squoox */
  --sq-app-bg: #0b0b0d;
  --sq-app-surface: #17171a;
  --sq-app-surface-2: #212126;
  --sq-app-text: #f6f5f1;
  --sq-app-text-2: #b9bac3;
  --sq-app-good: #2fbf71;
  --sq-app-warning: #fab219;
  --sq-app-danger: #ff5a52;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; background: var(--sq-bg); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  background: var(--sq-bg);
  color: var(--sq-text);
  font-family: var(--sq-font-body);
  font-size: 1rem;
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--sq-brand-text); text-underline-offset: 3px; }
a:hover { color: var(--sq-brand-pressed); }
:focus-visible { outline: 3px solid var(--sq-focus); outline-offset: 2px; border-radius: 4px; }
p { margin: 0 0 var(--space-4); max-width: 70ch; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3 { margin: 0 0 var(--space-4); text-wrap: balance; }
/* El último hijo no suma margen: el relleno del contenedor manda (ritmo parejo) */
:where(.card, .card > div, .calc, .calc__out, .price-card, .form-card, .cupos, .tier, .section__head,
  .faq__a, .problem > div, .case > div, .form-wrap > div, .footer-grid > div, .referidos__cond,
  .final .wrap, .section > .wrap, .consent, .form-status, .draft-banner, .video-ph > div) > :last-child { margin-bottom: 0; }
h1, h2 { font-family: var(--sq-font-display); font-style: italic; font-weight: var(--sq-weight-extrabold); }
h2 { font-size: 1.75rem; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; line-height: 1.3; font-weight: var(--sq-weight-semibold); }
strong { color: var(--sq-text); }
.sq-display {
  font-family: var(--sq-font-display);
  font-style: italic;
  font-weight: var(--sq-weight-black);
  letter-spacing: -0.01em;
}
.sq-num { font-feature-settings: "tnum" 1; }
.icon { width: 20px; height: 20px; flex: none; fill: currentColor; }
.icon--24 { width: 24px; height: 24px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: var(--sq-wrap); margin: 0 auto; padding: 0 var(--sq-gutter); }
@media (min-width: 768px) {
  :root {
    --sq-gutter: var(--space-5);
    --section-y: var(--space-9);
    --head-gap: var(--space-7);
    --stack-gap: var(--space-5);
  }
}

.skip-link {
  position: absolute; left: var(--space-2); top: -100px; z-index: 100;
  background: var(--sq-surface); color: var(--sq-text); padding: var(--space-3) var(--space-4);
  border-radius: var(--sq-radius-sm); font-weight: 600; box-shadow: var(--sq-shadow);
}
.skip-link:focus { top: var(--space-2); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: var(--space-3) var(--space-5);
  border-radius: var(--sq-radius-pill); border: 2px solid transparent;
  font: var(--sq-weight-semibold) 0.9375rem/1.2 var(--sq-font-body);
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
/* CTA de marketing: Brasa con texto Hierro (7,65:1). Nunca texto blanco sobre Brasa. */
.btn--primary { background: var(--sq-cta); color: var(--sq-on-cta); font-weight: var(--sq-weight-bold); }
.btn--primary:hover { background: var(--sq-cta-pressed); color: var(--sq-on-cta); }
/* CTA en secciones con estados (maqueta, caso BlackBox) y elementos fijos: Pulso noche con texto Hierro (6,79:1) */
.btn--brand { background: var(--sq-brand); color: var(--sq-on-brand); font-weight: var(--sq-weight-bold); }
.btn--brand:hover { background: var(--sq-brand-pressed); color: var(--sq-on-brand); }
.btn--outline { background: transparent; color: var(--sq-text); border-color: var(--sq-border-strong); }
.btn--outline:hover { background: var(--sq-surface-pressed); color: var(--sq-text); border-color: var(--sq-text-muted); }
.btn--block { width: 100%; }
.btn--lg { min-height: 56px; font-size: 1rem; padding: var(--space-3) var(--space-5); }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgb(8 12 21 / 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(8px); /* Safari iOS < 18 */
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--sq-border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 64px; }
.brand { display: inline-flex; align-items: center; color: var(--sq-text); text-decoration: none; border-radius: var(--sq-radius-sm); }
/* Header: versión horizontal provisional (placa con la palabra SQUOOX, sin las pesas),
   recortada del PNG oficial. A 44 px de alto mide 104 px de ancho (mínimo de la horizontal: 96 px, §5).
   Footer: badge completo a 176 px de ancho (mínimo del badge: 160 px). Ambos PNG traen alfa. */
.brand__logo { width: auto; height: 44px; aspect-ratio: 104 / 44; }
.brand__badge { width: 176px; height: auto; aspect-ratio: 4 / 3; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nav { display: none; }
.nav a { color: var(--sq-text-secondary); text-decoration: none; font-weight: 500; font-size: 0.9375rem; padding: var(--space-2) var(--space-1); }
.nav a:hover { color: var(--sq-text); }
.site-header .btn { min-height: 44px; padding: var(--space-2) var(--space-4); font-size: 0.875rem; }
@media (min-width: 900px) {
  .nav { display: flex; gap: var(--space-5); }
  .site-header .btn { font-size: 0.9375rem; }
}

/* ---------- Secciones ---------- */
.section { padding: var(--section-y) 0; }
.section--alt { background: var(--sq-panel); border-block: 1px solid var(--sq-border); }
.section__head { max-width: 720px; margin-bottom: var(--head-gap); }
.section__head p { color: var(--sq-text-secondary); font-size: 1.0625rem; }
.muted { color: var(--sq-text-secondary); }
.eyebrow {
  display: inline-block; margin-bottom: var(--space-3);
  font: var(--sq-weight-bold) 0.75rem/1.2 var(--sq-font-body);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--sq-info);
}
/* Bloques destacados con brillo violeta (caso, CTA final) */
.section--ink { background: var(--sq-glow), var(--sq-panel); border-block: 1px solid var(--sq-border); }
.accent-underline {
  background: linear-gradient(transparent 74%, var(--sq-logo-orange) 74%, var(--sq-logo-orange) 90%, transparent 90%); /* franja decorativa */
  padding: 0 2px; color: var(--sq-text);
}

/* Marcador de contenido pendiente (visible a propósito) */
.pending {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-1) var(--space-3); border-radius: var(--sq-radius-pill);
  border: 1px dashed currentColor; font-size: 0.8125rem; font-weight: 600; line-height: 1.4;
  color: var(--sq-warning);
}

/* ---------- Hero ---------- */
.hero { padding: var(--space-6) 0 var(--section-y); overflow: hidden; background: var(--sq-glow); }
@media (min-width: 768px) { .hero { padding-top: var(--space-8); } }
.hero__grid { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; gap: var(--space-8); align-items: start; }
  /* Sin el badge en el hero, el texto arranca arriba (no centrado contra el teléfono) */
  .hero__grid > div:first-child { padding-top: var(--space-7); }
}
.hero__title {
  font-size: clamp(2.125rem, 1.35rem + 3.6vw, 3.5rem); line-height: 1.05;
  margin-bottom: var(--space-4);
}
.hero__lead { font-size: 1.125rem; color: var(--sq-text-secondary); margin-bottom: var(--space-5); }
.hero__ctas { display: grid; gap: var(--space-3); margin-bottom: var(--space-5); }
@media (min-width: 560px) { .hero__ctas { display: flex; flex-wrap: wrap; } }

/* Contador de cupos */
.cupos {
  background: var(--sq-surface); border: 1px solid var(--sq-brand);
  border-radius: var(--sq-radius-lg); padding: var(--space-4) var(--space-5); max-width: 520px;
}
.cupos__top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2) var(--space-3); flex-wrap: wrap; }
.cupos__num { font: var(--sq-weight-bold) 2rem/1 var(--sq-font-body); font-feature-settings: "tnum" 1; color: var(--sq-text); }
.cupos__label { font-weight: 600; }
.cupos__meta { color: var(--sq-text-secondary); font-size: 0.875rem; margin: var(--space-3) 0 0; }
.cupos__bar { height: 10px; margin-top: var(--space-3); border-radius: var(--sq-radius-pill); background: var(--sq-surface-pressed); overflow: hidden; }
.cupos__fill { height: 100%; width: 0; background: var(--sq-brand); /* conteo = información: violeta, nunca naranja */ border-radius: inherit; min-width: 4px; }

/* Maqueta del teléfono (ilustración con datos ficticios) */
.phone-fig { margin: 0; display: grid; justify-items: center; gap: var(--space-4); }
.phone {
  width: min(320px, 100%); aspect-ratio: 9 / 18.5;
  background: var(--sq-surface-pressed); border-radius: 40px; padding: 12px;
  box-shadow: 0 30px 80px -20px rgb(143 39 221 / 0.45), inset 0 0 0 2px var(--sq-border);
}
.phone__screen {
  height: 100%; border-radius: 30px; background: var(--sq-app-bg); color: var(--sq-app-text);
  overflow: hidden; font-size: 0.8125rem; line-height: 1.35;
}
.app-top { display: flex; align-items: center; justify-content: space-between; }
.app-gym { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.9375rem; }
.app-gym__logo { width: 28px; height: 28px; border-radius: 8px; background: var(--sq-app-text); color: var(--sq-app-bg); display: grid; place-items: center; font-weight: 800; font-size: 0.75rem; }
.app-date { color: var(--sq-app-text-2); font-size: 0.8125rem; }
.app-counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.app-counter { background: var(--sq-app-surface); border-radius: 12px; padding: 10px 8px; display: grid; gap: 4px; }
.app-counter b { font: 700 1.375rem/1 var(--sq-font-body); font-feature-settings: "tnum" 1; }
.app-counter span { display: flex; align-items: center; gap: 4px; font-size: 0.8125rem; color: var(--sq-app-text-2); }
.app-counter .icon { width: 14px; height: 14px; }
.is-good { color: var(--sq-good); }
.is-warn { color: var(--sq-warning); }
.is-bad { color: var(--sq-danger); }
.app-h { font-weight: 700; font-size: 0.875rem; margin-top: 4px; }
.app-list { list-style: none; display: grid; gap: 8px; }
.app-row { background: var(--sq-app-surface); border-radius: 12px; padding: 10px; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; }
.app-row strong { font-size: 0.875rem; color: var(--sq-app-text); }
.app-row small { color: var(--sq-app-text-2); font-size: 0.8125rem; grid-column: 1; }
.app-row .app-pill { grid-row: 1 / span 2; grid-column: 2; background: var(--sq-app-surface-2); color: var(--sq-app-text); border-radius: 999px; padding: 6px 10px; font-weight: 600; font-size: 0.8125rem; }
.app-row .tag { display: inline-flex; align-items: center; gap: 4px; }
.app-row .tag .icon { width: 13px; height: 13px; }
.phone-fig figcaption { font-size: 0.8125rem; color: var(--sq-text-muted); }

/* ---------- Demo animada del hero: aviso → Squoox → Recordar → WhatsApp ----------
   Ilustración: el mensaje se abre prellenado y lo envía la persona.
   Sin JS se ve la pantalla de Inicio fija. main.js agrega .demo--on (controla
   las pantallas con data-step), el modo (.demo--anim con movimiento o
   .demo--calm con "Reducir movimiento": Inicio fija y, si la persona toca
   "Ver animación", solo fundidos) y .demo--seq mientras corre el guion.
   Solo se anima transform y opacity; el alto lo reserva el aspect-ratio del
   teléfono (CLS 0). */
.phone__screen { position: relative; padding: 0; display: block; isolation: isolate; }
@media (min-width: 960px) { .phone { width: min(300px, 100%); } }
.demo-scr { position: absolute; inset: 0; opacity: 0; transition: opacity 0.45s ease, transform 0.45s ease; }
.demo-scr--home { opacity: 1; padding: 22px 14px 14px; display: flex; flex-direction: column; gap: 12px; }
.demo--on .demo-scr--home { opacity: 0; transform: scale(0.96); }
.demo--on[data-step="1"] .demo-scr--lock,
.demo--on[data-step="2"] .demo-scr--home,
.demo--on[data-step="3"] .demo-scr--home,
.demo--on[data-step="4"] .demo-scr--wa { opacity: 1; transform: none; }
.demo-scr--lock { transform: scale(1.04); }
.demo-scr--wa { transform: translateX(14%); }

/* 1. Pantalla de bloqueo con el aviso de la app */
.demo-scr--lock {
  background: radial-gradient(ellipse 90% 60% at 80% 10%, rgb(143 39 221 / 0.45), transparent 70%),
              radial-gradient(ellipse 80% 50% at 0% 100%, rgb(1 200 254 / 0.18), transparent 70%), #10121c;
  padding: 56px 12px 14px; display: flex; flex-direction: column; align-items: center; text-align: center;
}
.lock-clock { font: 300 4rem/1 var(--sq-font-body); letter-spacing: -0.02em; color: #fff; font-feature-settings: "tnum" 1; }
.lock-date { margin-top: 8px; font-size: 0.875rem; color: #e4e6ee; }
.lock-date::first-letter { text-transform: uppercase; }
.demo-notif {
  position: relative; margin-top: 36px; width: 100%; text-align: left;
  background: rgb(246 245 241 / 0.94); color: #15171c; border-radius: 18px; padding: 12px 14px;
  display: grid; gap: 2px; box-shadow: 0 8px 24px rgb(0 0 0 / 0.35);
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(.2, .8, .2, 1);
}
.demo-notif b { font-size: 0.875rem; }
.demo-notif > span:not(.demo-notif__app):not(.demo-tap) { font-size: 0.8125rem; color: #33363f; }
.demo-notif__app { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: #4a4d57; margin-bottom: 4px; }
.demo-notif__icon { width: 18px; height: 18px; border-radius: 5px; background: var(--sq-ink); display: grid; place-items: center; }
.demo-notif__icon svg { width: 14px; height: 7px; }
.demo--seq .demo-notif { opacity: 0; }
.demo--seq[data-step="1"][data-phase="b"] .demo-notif,
.demo--seq[data-step="1"][data-phase="c"] .demo-notif { opacity: 1; }
.demo--anim .demo-notif { transform: translateY(-24px); }
.demo--anim[data-step="1"][data-phase="b"] .demo-notif { transform: none; }
.demo--anim[data-step="1"][data-phase="c"] .demo-notif { transform: scale(0.98); transition-delay: 0.35s; }

/* 2 y 3. Inicio: Laura resaltada y su botón Recordar */
.app-row { position: relative; transition: box-shadow 0.3s ease; }
.demo--on .app-row--target { box-shadow: inset 0 0 0 1.5px rgb(250 178 25 / 0.55); }
.app-row .app-pill { position: relative; color: var(--sq-app-good); background: rgb(47 191 113 / 0.12); transition: transform 0.2s ease; }
.demo--anim[data-step="3"][data-phase="b"] .app-row--target .app-pill { transform: scale(0.94); }

/* Indicador de toque (dedo) con onda */
.demo-tap {
  position: absolute; z-index: 2; width: 36px; height: 36px; border-radius: 50%; pointer-events: none;
  background: rgb(255 255 255 / 0.32); box-shadow: 0 0 0 2px rgb(255 255 255 / 0.9), 0 4px 12px rgb(0 0 0 / 0.4);
  opacity: 0; transform: translate(26px, 40px) scale(1.2);
  transition: opacity 0.3s ease, transform 0.45s cubic-bezier(.2, .8, .2, 1);
}
.demo-notif .demo-tap { right: 28%; top: 50%; margin-top: -18px; }
.app-pill .demo-tap { left: 50%; top: 50%; margin: -18px 0 0 -18px; }
.demo-tap::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 2px rgb(255 255 255 / 0.85); opacity: 0;
}
.demo--anim[data-step="1"][data-phase="c"] .demo-notif .demo-tap,
.demo--anim[data-step="3"] .app-pill .demo-tap { opacity: 1; transform: none; }
.demo--anim[data-step="1"][data-phase="c"] .demo-notif .demo-tap::after { animation: demo-ripple 0.7s ease-out 0.35s both; }
.demo--anim[data-step="3"][data-phase="b"] .app-pill .demo-tap::after { animation: demo-ripple 0.7s ease-out both; }
/* Reducir movimiento: el toque se ve quieto sobre Recordar (Inicio fija o paso 3) */
.demo--calm:not(.demo--seq) .app-pill .demo-tap,
.demo--calm[data-step="3"] .app-pill .demo-tap { opacity: 1; transform: none; }
@keyframes demo-ripple {
  from { opacity: 0.9; transform: scale(0.6); }
  to { opacity: 0; transform: scale(2.4); }
}

/* 4. Chat genérico estilo mensajería (sin logo ni marca de terceros) */
.demo-scr--wa { background: #0b141a; display: flex; flex-direction: column; color: #e9edef; }
.chat-top { display: flex; align-items: center; gap: 10px; padding: 30px 12px 12px; background: #005c4b; color: #fff; font-size: 0.9375rem; }
.chat-top__back { width: 18px; height: 18px; color: #fff; }
.chat-top__avatar { width: 32px; height: 32px; border-radius: 50%; background: #c8d1d6; color: #0b141a; display: grid; place-items: center; font-weight: 700; font-size: 0.875rem; }
.chat-body { flex: 1; display: flex; justify-content: center; align-items: flex-start; padding-top: 14px; }
.chat-day { background: #182229; color: #aebac1; font-size: 0.75rem; border-radius: 8px; padding: 4px 10px; }
.chat-compose { display: flex; align-items: flex-end; gap: 8px; padding: 10px 8px 14px; }
.chat-draft { flex: 1; margin: 0; background: #1f2c34; border-radius: 18px; padding: 10px 12px; font-size: 0.8125rem; line-height: 1.4; color: #e9edef; }
.chat-send { position: relative; flex: none; width: 42px; height: 42px; border-radius: 50%; background: #00a884; color: #0b141a; display: grid; place-items: center; }
.chat-send svg { width: 18px; height: 18px; margin-left: 2px; fill: currentColor; }
.chat-send::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 3px #00a884; opacity: 0; }
.demo--anim[data-step="4"] .chat-send::before { animation: demo-pulse 1.3s ease-out 0.5s infinite; }
@keyframes demo-pulse {
  from { opacity: 0.8; transform: scale(1); }
  to { opacity: 0; transform: scale(1.7); }
}

/* Lista de pasos (alternativa textual; resalta el paso activo cuando anima) */
.demo-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); width: min(420px, 100%); }
.demo-steps li {
  display: grid; grid-template-columns: 26px 1fr; gap: var(--space-3); align-items: start;
  padding: var(--space-2) var(--space-3); border-radius: var(--sq-radius-md); border: 1px solid transparent;
  font-size: 0.875rem; line-height: 1.45; color: var(--sq-text-secondary);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.demo-steps b { color: var(--sq-text); font-weight: var(--sq-weight-semibold); }
.demo-steps__n {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-weight: var(--sq-weight-bold); font-size: 0.8125rem; font-feature-settings: "tnum" 1;
  background: var(--sq-brand-soft); color: var(--sq-brand-text);
}
.demo--seq[data-step="1"] .demo-steps li:nth-child(1),
.demo--seq[data-step="2"] .demo-steps li:nth-child(2),
.demo--seq[data-step="3"] .demo-steps li:nth-child(3),
.demo--seq[data-step="4"] .demo-steps li:nth-child(4) { background: var(--sq-surface); border-color: var(--sq-brand); color: var(--sq-text); }
.demo--seq[data-step="1"] .demo-steps li:nth-child(1) .demo-steps__n,
.demo--seq[data-step="2"] .demo-steps li:nth-child(2) .demo-steps__n,
.demo--seq[data-step="3"] .demo-steps li:nth-child(3) .demo-steps__n,
.demo--seq[data-step="4"] .demo-steps li:nth-child(4) .demo-steps__n { background: var(--sq-brand); color: var(--sq-on-brand); }

/* Botón de pausa (WCAG 2.2.2): reserva su alto siempre; solo se ve si anima */
.demo-bar { min-height: 44px; display: flex; justify-content: center; }
.demo-toggle {
  visibility: hidden; display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-4);
  border-radius: var(--sq-radius-pill); border: 1px solid var(--sq-border-strong); background: transparent;
  color: var(--sq-text); font: var(--sq-weight-medium) 0.875rem/1 var(--sq-font-body); cursor: pointer;
}
.demo-toggle:hover { background: var(--sq-surface-pressed); }
.demo-toggle svg { width: 16px; height: 16px; fill: currentColor; }
.demo-toggle[data-state="paused"] { border-color: var(--sq-brand); background: var(--sq-brand-soft); }
.demo-toggle__play, .demo-toggle[data-state="paused"] .demo-toggle__pause { display: none; }
.demo-toggle[data-state="paused"] .demo-toggle__play { display: block; }
.demo--anim .demo-toggle, .demo--calm .demo-toggle { visibility: visible; }
.demo--paused .phone *, .demo--paused .phone *::before, .demo--paused .phone *::after { animation-play-state: paused !important; }
/* "Reducir movimiento": sin desplazamientos ni escalas, solo fundidos lentos
   (anula el transition:none global de la regla de movimiento reducido). */
@media (prefers-reduced-motion: reduce) {
  .demo--calm .demo-scr, .demo--calm .demo-notif, .demo--calm .demo-tap { transition: opacity 0.6s ease !important; transform: none !important; }
}

/* ---------- Problema + calculadora ---------- */
.problem { display: grid; gap: var(--space-6); }
@media (min-width: 960px) { .problem { grid-template-columns: 0.9fr 1.1fr; gap: var(--space-8); align-items: start; } }
.big-quote { font: var(--sq-weight-semibold) 1.3125rem/1.4 var(--sq-font-body); margin: 0 0 var(--space-4); max-width: 32ch; }
.problem p { color: var(--sq-text-secondary); }
.problem .big-quote { color: var(--sq-text); }
.calc { background: var(--sq-surface); border: 1px solid var(--sq-border); border-radius: var(--sq-radius-lg); padding: var(--card-pad); box-shadow: var(--sq-shadow); }
@media (min-width: 560px) { .calc { padding: var(--space-6); } }
.calc h3 { margin-bottom: var(--space-2); }
.calc__fields { display: grid; gap: var(--space-4); margin: var(--space-5) 0; }
@media (min-width: 560px) { .calc__fields { grid-template-columns: repeat(3, 1fr); } }
.calc__out { background: var(--sq-bg); border: 1px solid var(--sq-brand); border-radius: var(--sq-radius-md); padding: var(--space-4); }
.calc__money { font: var(--sq-weight-bold) clamp(1.875rem, 1.2rem + 3vw, 2.5rem)/1.1 var(--sq-font-body); font-feature-settings: "tnum" 1; letter-spacing: -0.01em; display: block; margin: var(--space-1) 0 var(--space-2); color: var(--sq-text); }
.calc__out p { margin: 0 0 var(--space-2); color: var(--sq-text-secondary); }
.calc__foot { font-size: 0.8125rem; color: var(--sq-text-muted); margin: var(--space-3) 0 var(--space-5); }

/* ---------- Pasos y funciones ---------- */
.grid-3 { display: grid; gap: var(--stack-gap); list-style: none; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-2 { display: grid; gap: var(--stack-gap); list-style: none; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--sq-surface); border: 1px solid var(--sq-border); border-radius: var(--sq-radius-lg); padding: var(--card-pad); }
.card h3 { margin-bottom: var(--space-2); }
.card p { color: var(--sq-text-secondary); margin: 0; }
.step__n {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: var(--space-4);
  border-radius: var(--sq-radius-pill); background: var(--sq-brand); color: var(--sq-on-brand);
  font: 700 1.125rem/1 var(--sq-font-body); font-feature-settings: "tnum" 1;
}
/* Tarjeta con ícono. Desde 560 px: ícono a la izquierda y texto al lado.
   En móvil: el ícono comparte la primera fila con el título (o con la etiqueta
   Próximamente) y el resto del texto usa todo el ancho de la tarjeta. */
.feature { display: flex; gap: var(--space-4); align-items: flex-start; }
@media (max-width: 559.98px) {
  .feature { display: grid; grid-template-columns: 44px 1fr; gap: 0 var(--space-3); align-items: center; }
  .feature > div { display: contents; }
  .feature > div > * { grid-column: 1 / -1; }
  .feature > div > :first-child { grid-column: 2; justify-self: start; margin-bottom: 0; }
  .feature > div > :nth-child(2) { margin-top: var(--space-2); }
}
.feature__icon {
  flex: none; width: 44px; height: 44px; border-radius: var(--sq-radius-md);
  display: grid; place-items: center; background: var(--sq-brand-soft); color: var(--sq-brand-text);
}
.feature__icon .icon { width: 24px; height: 24px; }
.status-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); list-style: none; }
.status-chip { display: inline-flex; align-items: center; gap: var(--space-1); font-size: 0.8125rem; font-weight: 600; padding: var(--space-1) var(--space-3); border-radius: var(--sq-radius-pill); border: 1px solid currentColor; }
.status-chip .icon { width: 14px; height: 14px; }
.status-chip--good { color: var(--sq-good); }
.status-chip--warn { color: var(--sq-warning); }
.status-chip--bad { color: var(--sq-danger); }

/* Enlace extra bajo un paso (p. ej. "Descarga la plantilla gratis") */
.card .step__extra { margin-top: var(--space-3); }

/* ---------- Recursos gratis (lead magnets) ---------- */
/* Tarjeta en columna: las acciones quedan abajo y alineadas entre tarjetas. */
.lm-card { display: flex; flex-direction: column; gap: var(--space-3); }
.lm-card h3, .lm-card p { margin-bottom: 0; }
.lm-card .feature__icon { margin-bottom: var(--space-1); } /* ícono -> título: 16 px, igual que .feature */
.lm-card .status-chips { margin-top: 0; }
.lm-card__actions { display: grid; gap: var(--space-2); margin-top: auto; padding-top: var(--space-2); }
/* Enlace secundario de descarga: área táctil de 44 px aunque se vea como texto */
.lm-link {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: var(--space-2) var(--space-3); border-radius: var(--sq-radius-pill);
  font-weight: var(--sq-weight-semibold); font-size: 0.9375rem; text-decoration: underline;
}
.lm-link .icon { width: 18px; height: 18px; }
.nowrap { white-space: nowrap; }
.lm-card__actions .hint { text-align: center; }

/* ---------- Caso BlackBox ---------- */
.case { display: grid; gap: var(--space-6); }
.case > * { min-width: 0; } /* el aspect-ratio del video no ensancha la columna en 320 px */
@media (min-width: 960px) { .case { grid-template-columns: 1.1fr 0.9fr; gap: var(--space-8); align-items: center; } }
.video-ph {
  aspect-ratio: 16 / 9; border-radius: var(--sq-radius-lg); border: 2px dashed var(--sq-border-strong);
  display: grid; place-items: center; text-align: center; padding: var(--space-5); color: var(--sq-text-secondary);
  background: var(--sq-bg);
}
.video-ph .icon { width: 48px; height: 48px; color: var(--sq-info); margin: 0 auto var(--space-2); }
.video-ph p { margin: 0 auto var(--space-2); }
.case__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); margin: var(--space-5) 0 var(--space-3); list-style: none; }
.case__stat { border-top: 2px solid var(--sq-brand); padding-top: var(--space-3); }
.case__stat b { display: block; font: 700 1.75rem/1 var(--sq-font-body); font-feature-settings: "tnum" 1; color: var(--sq-text-muted); }
.case__stat span { display: block; font-size: 0.8125rem; color: var(--sq-text-secondary); hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.case__quote { margin: var(--space-5) 0; padding-left: var(--space-4); border-left: 3px solid var(--sq-info); font-size: 1.125rem; }
.case__quote p { margin-bottom: var(--space-2); color: var(--sq-text-secondary); font-style: italic; }
.case__quote footer { font-size: 0.875rem; color: var(--sq-text-secondary); }

/* ---------- Precios ---------- */
.pricing { display: grid; gap: var(--stack-gap); }
@media (min-width: 960px) { .pricing { grid-template-columns: 1.2fr 0.8fr; align-items: start; } }
.price-card { border-radius: var(--sq-radius-lg); padding: var(--card-pad); }
@media (min-width: 560px) { .price-card { padding: var(--space-6); } }
.price-card--fundador { background: var(--sq-glow), var(--sq-surface); border: 2px solid var(--sq-brand); }
.seal {
  display: inline-block; background: var(--sq-brand-soft); color: var(--sq-brand); border: 1px solid currentColor; /* etiqueta: nunca naranja */
  font: 700 0.75rem/1.2 var(--sq-font-body); letter-spacing: 0.08em; text-transform: uppercase;
  padding: var(--space-1) var(--space-3); border-radius: var(--sq-radius-pill); margin-bottom: var(--space-4);
}
.tiers { display: grid; gap: var(--space-3); margin: 0 0 var(--space-5); list-style: none; }
@media (min-width: 560px) { .tiers { grid-template-columns: 1fr 1fr; } }
.tier { border: 1px solid var(--sq-border-strong); border-radius: var(--sq-radius-md); padding: var(--space-4); background: var(--sq-bg); }
.tier__price { font: 700 2rem/1.1 var(--sq-font-body); font-feature-settings: "tnum" 1; letter-spacing: -0.01em; }
.tier__price small { font: 500 0.875rem/1 var(--sq-font-body); color: var(--sq-text-secondary); }
.price-card .cupos__meta { margin: 0 0 var(--space-4); }
.tier p { margin: var(--space-2) 0 0; font-size: 0.875rem; color: var(--sq-text-secondary); }
.checks { list-style: none; display: grid; gap: var(--space-3); margin: 0 0 var(--space-5); }
.checks li { display: flex; gap: var(--space-3); align-items: flex-start; }
.checks .icon { margin-top: 3px; color: var(--sq-info); }
.price-side { display: grid; gap: var(--stack-gap); }
.price-card--regular, .price-card--premium { background: var(--sq-surface); border: 1px solid var(--sq-border); }
.price-card--premium p { color: var(--sq-text-secondary); }
.reg-table { width: 100%; border-collapse: collapse; margin: var(--space-2) 0 var(--space-4); font-feature-settings: "tnum" 1; }
.reg-table th, .reg-table td { text-align: left; padding: var(--space-3) 0; border-bottom: 1px solid var(--sq-border); }
.reg-table th { font-weight: 500; color: var(--sq-text-secondary); }
.reg-table td { text-align: right; font-weight: 600; }
.small { font-size: 0.8125rem; color: var(--sq-text-muted); margin: 0 0 var(--space-4); }

/* ---------- Formulario ---------- */
.form-wrap { display: grid; gap: var(--space-6); }
@media (min-width: 960px) { .form-wrap { grid-template-columns: 0.8fr 1.2fr; gap: var(--space-8); align-items: start; } }
.form-wrap > div > p { color: var(--sq-text-secondary); }
.form-card { background: var(--sq-surface); border: 1px solid var(--sq-border); border-radius: var(--sq-radius-lg); padding: var(--card-pad); box-shadow: var(--sq-shadow); }
@media (min-width: 560px) { .form-card { padding: var(--space-6); } }
.form-grid { display: grid; gap: var(--space-5) var(--space-4); }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: grid; gap: var(--space-2); align-content: start; }
.field[hidden] { display: none; }
.field > label { font-weight: 600; font-size: 0.9375rem; }
.hint { font-size: 0.8125rem; color: var(--sq-text-muted); margin: 0; }
#form-req { margin-bottom: var(--space-5); }
input[type="text"], input[type="tel"], input[type="number"], select {
  width: 100%; min-height: 48px; padding: var(--space-2) var(--space-3);
  font: 400 1rem/1.4 var(--sq-font-body); color: var(--sq-text);
  background: var(--sq-bg); border: 1.5px solid var(--sq-border-strong); border-radius: var(--sq-radius-sm);
  appearance: none; -webkit-appearance: none;
}
input::placeholder { color: var(--sq-text-muted); opacity: 1; }
select {
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--sq-text-secondary) 50%), linear-gradient(135deg, var(--sq-text-secondary) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
select option { background: var(--sq-surface); color: var(--sq-text); }
input:focus-visible, select:focus-visible { outline: 3px solid var(--sq-focus); outline-offset: 1px; border-color: var(--sq-focus); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--sq-danger); border-width: 2px; }
.phone-input { display: grid; grid-template-columns: 116px 1fr; gap: var(--space-2); }
.err { color: var(--sq-danger); font-size: 0.875rem; font-weight: 500; margin: 0; }
.err:empty { display: none; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: var(--space-3); align-items: start; font-size: 0.9375rem; color: var(--sq-text-secondary); }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--sq-brand); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: var(--space-4); padding: var(--space-4); border-radius: var(--sq-radius-md); border: 1px solid var(--sq-danger); background: var(--sq-bg); }
.form-status[hidden] { display: none; }
.form-status p { margin: 0 0 var(--space-3); }
.form-actions { display: grid; gap: var(--space-3); margin-top: var(--space-5); }
.thanks { display: grid; gap: var(--space-4); }
.thanks[hidden] { display: none; }
.thanks h3 { font-family: var(--sq-font-display); font-style: italic; font-weight: var(--sq-weight-extrabold); font-size: 1.5rem; margin: 0; }
.thanks p { margin: 0; color: var(--sq-text-secondary); }
.thanks ol { margin: 0; padding-left: var(--space-5); display: grid; gap: var(--space-3); color: var(--sq-text-secondary); }

/* ---------- Próximamente ---------- */
.soon { display: inline-block; font: 700 0.75rem/1.2 var(--sq-font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sq-info); background: var(--sq-info-soft); border: 1px solid currentColor; border-radius: var(--sq-radius-pill); padding: var(--space-1) var(--space-3); margin-bottom: var(--space-3); }
/* Ícono de lo que viene: cian (información), no violeta (lo que existe) */
.feature__icon--soon { background: var(--sq-info-soft); color: var(--sq-info); }
.card--soon { border-style: dashed; border-color: var(--sq-border-strong); background: transparent; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--space-3); max-width: 820px; }
.faq details { background: var(--sq-surface); border: 1px solid var(--sq-border); border-radius: var(--sq-radius-md); }
.faq details[open] { border-color: var(--sq-brand); }
.faq summary {
  list-style: none; cursor: pointer; padding: var(--space-3) var(--space-7) var(--space-3) var(--space-4); position: relative;
  font-weight: 600; min-height: 48px; display: flex; align-items: center; border-radius: var(--sq-radius-md);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: var(--space-5); top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--sq-text-secondary); border-bottom: 2px solid var(--sq-text-secondary);
  transform: rotate(45deg); transition: transform .15s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .faq__a { padding: 0 var(--space-4) var(--space-4); color: var(--sq-text-secondary); }
.faq .faq__a p:last-child { margin-bottom: 0; }

/* ---------- CTA final y pie ---------- */
.final h2 { font-size: clamp(1.875rem, 1.2rem + 3vw, 2.75rem); line-height: 1.1; }
.final .hero__ctas { margin-top: var(--space-5); margin-bottom: 0; }
/* Abajo deja libre el botón flotante de WhatsApp (52 px + 16 px + barra de inicio) */
.site-footer { padding: var(--space-7) 0 calc(var(--space-9) + var(--safe-bottom)); border-top: 1px solid var(--sq-border); font-size: 0.875rem; color: var(--sq-text-secondary); }
@media (min-width: 768px) { .site-footer { padding-bottom: var(--space-7); } }
.footer-grid { display: grid; gap: var(--space-6); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { font: 700 0.75rem/1.2 var(--sq-font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--sq-text); margin-bottom: var(--space-2); }
.site-footer ul { list-style: none; display: grid; gap: var(--space-1); }
.site-footer a { color: var(--sq-text-secondary); display: inline-block; padding: var(--space-2) 0; }
.site-footer a:hover { color: var(--sq-text); }
.site-footer .brand { padding: 0; }
.site-footer p { margin-bottom: var(--space-2); }
.linklike { background: none; border: 0; padding: var(--space-2) 0; color: var(--sq-text-secondary); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linklike:hover { color: var(--sq-text); }
.say { font-weight: 600; color: var(--sq-text); }
.site-footer .legal-line { margin: var(--space-6) 0 0; padding-top: var(--space-4); border-top: 1px solid var(--sq-border); }

/* Botón flotante de WhatsApp (solo móvil) */
.wa-float {
  position: fixed; right: var(--space-4); bottom: calc(var(--space-4) + var(--safe-bottom)); z-index: 50;
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 52px; padding: var(--space-3) var(--space-5);
  border-radius: var(--sq-radius-pill); background: var(--sq-brand); color: var(--sq-on-brand);
  font: 600 0.9375rem/1 var(--sq-font-body); text-decoration: none;
  box-shadow: 0 10px 24px -6px rgb(0 0 0 / 0.6);
}
.wa-float:hover { background: var(--sq-brand-pressed); color: var(--sq-on-brand); }
.wa-float .icon { width: 22px; height: 22px; }
@media (min-width: 768px) { .wa-float { display: none; } }
body.consent-open .wa-float { display: none; }

/* Banner de consentimiento */
.consent {
  position: fixed; left: var(--space-3); right: var(--space-3); bottom: calc(var(--space-3) + var(--safe-bottom)); z-index: 60;
  max-width: 560px; margin-left: auto;
  background: var(--sq-surface); color: var(--sq-text);
  border: 1px solid var(--sq-border-strong); border-radius: var(--sq-radius-lg);
  padding: var(--space-4); box-shadow: 0 20px 40px -12px rgb(0 0 0 / 0.7);
}
.consent[hidden] { display: none; }
.consent h2 { font: 600 1rem/1.3 var(--sq-font-body); margin-bottom: var(--space-2); }
.consent p { font-size: 0.8125rem; line-height: 1.5; color: var(--sq-text-secondary); margin-bottom: var(--space-3); }
.consent__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.consent__actions .btn { min-height: 44px; flex: 1 1 120px; padding: var(--space-2) var(--space-4); font-size: 0.875rem; white-space: nowrap; }

/* ---------- Páginas legales y 404 ---------- */
.doc { padding: var(--space-7) 0 var(--space-8); }
.doc .wrap { max-width: 800px; }
.doc h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); line-height: 1.1; font-weight: 800; }
.doc h2 { font-size: 1.375rem; margin-top: var(--space-7); }
.doc h3 { margin-top: var(--space-5); font-size: 1.0625rem; }
.doc p, .doc li { color: var(--sq-text-secondary); }
.doc ul, .doc ol { padding-left: var(--space-5); margin: 0 0 var(--space-4); }
.doc li { margin-bottom: var(--space-2); }
.draft-banner {
  border: 2px dashed var(--sq-warning); border-radius: var(--sq-radius-md);
  padding: var(--space-4); margin: var(--space-5) 0 var(--space-6); background: var(--sq-surface);
}
.draft-banner p { color: var(--sq-text); margin: 0; }
.draft-banner strong { color: var(--sq-warning); }
.placeholder { background: var(--sq-brand-soft); color: var(--sq-text); padding: 0 4px; border-radius: 4px; font-weight: 600; }
.not-found { min-height: 70vh; display: grid; align-content: center; padding: var(--space-8) 0; background: var(--sq-glow); }
.not-found h1 { font-family: var(--sq-font-display); font-style: italic; font-weight: var(--sq-weight-black); font-size: clamp(2.25rem, 1.4rem + 4vw, 3.5rem); line-height: 1.05; }
.not-found p { color: var(--sq-text-secondary); }
.not-found .hero__ctas { margin-top: var(--space-2); }

/* Aclaración discreta en textos que dependen de revisión legal */
.nota-legal { color: var(--sq-text-muted); font-size: 0.875em; }

/* ---------- Referidos e Instagram ---------- */
.referidos__cond { margin-top: var(--head-gap); max-width: 820px; }
.referidos__cond h3 { margin-bottom: var(--space-4); }
.referidos__cond .hero__ctas { margin-bottom: 0; }
.ref-aviso {
  display: flex; gap: var(--space-3); align-items: flex-start;
  padding: var(--space-3) var(--space-4); border: 1px solid var(--sq-brand); border-radius: var(--sq-radius-md);
  background: var(--sq-brand-soft); color: var(--sq-text);
}
.ref-aviso[hidden] { display: none; }
.ref-aviso .icon { margin-top: 3px; color: var(--sq-brand-text); }
.site-footer .social-link { display: inline-flex; align-items: center; gap: var(--space-2); }

/* ---------- Utilidades de espaciado (al final: ganan a los márgenes de componente) ---------- */
.mt-stack { margin-top: var(--stack-gap); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
