/* ==========================================================================
   RogueAC · styles.css
   --------------------------------------------------------------------------
   Índice
     1. Colores y tipografía (modo claro y oscuro)
     2. Base
     3. Utilidades y botones
     4. Navegación
     5. Portada (hero) y herramientas
     6. Servicios
     7. Ejemplos y diagramas
     8. Demo de chat
     9. Calculadora
    10. Reseñas
    11. Por qué RogueAC
    12. Proceso
    13. Precios
    14. Preguntas frecuentes
    15. Contacto
    16. Pie, botón flotante y ventana legal
    17. Animaciones y movimiento reducido
   ========================================================================== */

/* ---------- 0. Tipografías (alojadas en la propia web, carpeta fonts/) ----------
   Fraunces, Instrument Sans y JetBrains Mono: licencia libre SIL Open Font License.
   Solo el juego de caracteres latino (incluye tildes, ñ, ¿, ¡ y €). */
@font-face {
  font-family: 'Fraunces'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('fonts/fraunces.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces'; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url('fonts/fraunces-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('fonts/instrument-sans.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/jetbrains-mono.woff2') format('woff2');
}

/* ---------- 1. Colores y tipografía ---------- */
:root {
  /* Papel y tinta */
  --bg: #F4F0E8;
  --bg-2: #ECE6DA;
  --surface: #FBF9F5;
  --surface-2: #F2EDE4;
  --ink: #16201B;
  --ink-2: #4E5751;
  --ink-3: #5B635D;
  --line: rgba(22, 32, 27, .11);
  --line-2: rgba(22, 32, 27, .2);
  --dot: rgba(22, 32, 27, .13);

  /* Verde pino (confianza) y ámbar (avisos) */
  --accent: #1E5B45;
  --accent-2: #164635;
  --accent-soft: #DDE8E1;
  --on-accent: #F6F2EA;
  --signal: #D9822B;
  --signal-ink: #8F4E10;
  --signal-soft: #F6E4CF;

  /* Bloques profundos (resultado de la calculadora, plan destacado, contacto) */
  --deep: #1E5B45;
  --on-deep: #F6F2EA;
  --on-deep-2: rgba(246, 242, 234, .86);

  /* Sección oscura de la demo (oscura en ambos modos) */
  --ink-section: #16201B;
  --ink-section-2: #1E2A24;

  /* Estilo WhatsApp del chat */
  --wa-bg: #EFEAE2;
  --wa-in: #FFFFFF;
  --wa-out: #D9FDD3;
  --wa-text: #111B21;
  --wa-meta: #667781;
  --wa-head: #1E5B45;
  --wa-head-text: #FFFFFF;
  --wa-input: #FFFFFF;
  --wa-bar: #F0F2F5;
  --wa-chip: #FFFFFF;
  --wa-chip-text: #0B7A5F;
  --wa-day: #FFFFFF;
  --wa-sys: #FFF3C4;
  --wa-sys-text: #54656F;
  --wa-tick: #53BDEB;
  --wa-send: #00A884;
  --wa-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23000' stroke-opacity='.055' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='20' r='6'/%3E%3Cpath d='M70 14h22a4 4 0 0 1 4 4v10a4 4 0 0 1-4 4H80l-6 5v-5h-4a4 4 0 0 1-4-4V18a4 4 0 0 1 4-4z'/%3E%3Cpath d='M20 70l4 8 9 1-6 6 1 9-8-4-8 4 1-9-6-6 9-1z'/%3E%3Cpath d='M58 70c6-8 14-8 20 0s14 8 20 0'/%3E%3Crect x='84' y='92' width='14' height='14' rx='3'/%3E%3Cpath d='M40 104h14M47 97v14'/%3E%3Ccircle cx='104' cy='52' r='5'/%3E%3C/g%3E%3C/svg%3E");

  --shadow: 0 1px 2px rgba(22, 32, 27, .05), 0 10px 28px -14px rgba(22, 32, 27, .22);
  --shadow-lg: 0 2px 6px rgba(22, 32, 27, .05), 0 34px 70px -34px rgba(22, 32, 27, .42);

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Instrument Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --font-app: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --gutter: 20px;
  --radius: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}

/* Tokens del modo oscuro: se aplican si el sistema está en oscuro (salvo que se elija claro) o si se elige oscuro */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1412; --bg-2: #131A17; --surface: #172019; --surface-2: #1C2621;
    --ink: #ECE6DA; --ink-2: #A9B1AB; --ink-3: #858E88;
    --line: rgba(236, 230, 218, .1); --line-2: rgba(236, 230, 218, .19); --dot: rgba(236, 230, 218, .1);
    --accent: #6BBF98; --accent-2: #8AD1AF; --accent-soft: rgba(107, 191, 152, .14); --on-accent: #0C1310;
    --signal: #EDA052; --signal-ink: #F2B573; --signal-soft: rgba(237, 160, 82, .15);
    --deep: #173F31; --on-deep: #EFEAE0; --on-deep-2: rgba(239, 234, 224, .72);
    --ink-section: #090D0B; --ink-section-2: #121915;
    --wa-bg: #0B141A; --wa-in: #202C33; --wa-out: #005C4B; --wa-text: #E9EDEF; --wa-meta: #8696A0;
    --wa-head: #202C33; --wa-head-text: #E9EDEF; --wa-input: #2A3942; --wa-bar: #1F2C34;
    --wa-chip: #202C33; --wa-chip-text: #21C08B; --wa-day: #182229; --wa-sys: #182229; --wa-sys-text: #FFD279;
    --wa-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.035' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='20' r='6'/%3E%3Cpath d='M70 14h22a4 4 0 0 1 4 4v10a4 4 0 0 1-4 4H80l-6 5v-5h-4a4 4 0 0 1-4-4V18a4 4 0 0 1 4-4z'/%3E%3Cpath d='M20 70l4 8 9 1-6 6 1 9-8-4-8 4 1-9-6-6 9-1z'/%3E%3Cpath d='M58 70c6-8 14-8 20 0s14 8 20 0'/%3E%3Crect x='84' y='92' width='14' height='14' rx='3'/%3E%3Cpath d='M40 104h14M47 97v14'/%3E%3Ccircle cx='104' cy='52' r='5'/%3E%3C/g%3E%3C/svg%3E");
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -14px rgba(0, 0, 0, .7);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 34px 70px -34px rgba(0, 0, 0, .9);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1412; --bg-2: #131A17; --surface: #172019; --surface-2: #1C2621;
  --ink: #ECE6DA; --ink-2: #A9B1AB; --ink-3: #858E88;
  --line: rgba(236, 230, 218, .1); --line-2: rgba(236, 230, 218, .19); --dot: rgba(236, 230, 218, .1);
  --accent: #6BBF98; --accent-2: #8AD1AF; --accent-soft: rgba(107, 191, 152, .14); --on-accent: #0C1310;
  --signal: #EDA052; --signal-ink: #F2B573; --signal-soft: rgba(237, 160, 82, .15);
  --deep: #173F31; --on-deep: #EFEAE0; --on-deep-2: rgba(239, 234, 224, .72);
  --ink-section: #090D0B; --ink-section-2: #121915;
  --wa-bg: #0B141A; --wa-in: #202C33; --wa-out: #005C4B; --wa-text: #E9EDEF; --wa-meta: #8696A0;
  --wa-head: #202C33; --wa-head-text: #E9EDEF; --wa-input: #2A3942; --wa-bar: #1F2C34;
  --wa-chip: #202C33; --wa-chip-text: #21C08B; --wa-day: #182229; --wa-sys: #182229; --wa-sys-text: #FFD279;
  --wa-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.035' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='20' r='6'/%3E%3Cpath d='M70 14h22a4 4 0 0 1 4 4v10a4 4 0 0 1-4 4H80l-6 5v-5h-4a4 4 0 0 1-4-4V18a4 4 0 0 1 4-4z'/%3E%3Cpath d='M20 70l4 8 9 1-6 6 1 9-8-4-8 4 1-9-6-6 9-1z'/%3E%3Cpath d='M58 70c6-8 14-8 20 0s14 8 20 0'/%3E%3Crect x='84' y='92' width='14' height='14' rx='3'/%3E%3Cpath d='M40 104h14M47 97v14'/%3E%3Ccircle cx='104' cy='52' r='5'/%3E%3C/g%3E%3C/svg%3E");
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -14px rgba(0, 0, 0, .7);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 34px 70px -34px rgba(0, 0, 0, .9);
  color-scheme: dark;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
  transition: background-color .35s ease, color .35s ease;
}
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img, svg { display: block; }
svg { flex: none; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
section[id] { scroll-margin-top: 72px; }

/* Iconos de línea (por defecto) */
.icon-btn svg, .trust svg, .service__icon svg, .pledge__icon svg, .feed__badge svg,
.btn svg:not(.i-wa), .chat__back, .chat__reset svg, .toast__icon svg {
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- 3. Utilidades y botones ---------- */
.container { width: min(100% - var(--gutter) * 2, 1180px); margin-inline: auto; }
@media (min-width: 768px) { :root { --gutter: 32px; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

.section { padding-block: clamp(76px, 11vw, 140px); }
.section--alt { background: var(--bg-2); }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.4rem); margin-top: 18px; }
.section-head > p:not(.eyebrow) { margin-top: 18px; color: var(--ink-2); font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.eyebrow {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px;
  font-family: var(--font-mono); font-size: .74rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
}
.eyebrow__dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px var(--signal-soft); }
.eyebrow strong { color: var(--accent); font-weight: 600; }
.hero .eyebrow { flex-wrap: nowrap; } /* con un nombre largo ("Preparado para…"), el texto se parte junto al punto */
/* En pantallas muy estrechas, el texto se parte en dos líneas junto al punto (en vez de bajar entero) */
@media (max-width: 360px) { .eyebrow { flex-wrap: nowrap; } }

/* Etiquetas de contenido de ejemplo: solo visibles en modo maqueta */
.tag-sample { display: none; }
[data-muestra="true"] .tag-sample {
  display: inline-block; font-family: var(--font-body); letter-spacing: 0; text-transform: none;
  font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  background: var(--signal-soft); color: var(--signal-ink);
}
.sample-bar { display: none; }
[data-muestra="true"] .sample-bar {
  display: block; padding: 8px var(--gutter); text-align: center; font-size: .8rem; line-height: 1.4;
  background: var(--signal-soft); color: var(--signal-ink);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .92em 1.4em; border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1.1 var(--font-body); text-decoration: none; cursor: pointer; text-align: center;
  transition: translate .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn svg { width: 18px; height: 18px; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn:hover { translate: 0 -1px; }
.btn:active { translate: 0 0; }
.btn--sm { padding: .68em 1.1em; font-size: .92rem; }
.btn--lg { padding: 1.08em 1.6em; font-size: 1.02rem; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-2); box-shadow: 0 12px 26px -14px var(--accent); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); background: var(--surface); }
.btn--light { background: var(--on-deep); color: #13241C; }
.btn--light:hover { background: #FFFFFF; box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .6); }
.btn--outline-light { background: transparent; color: var(--on-deep); border-color: rgba(255, 255, 255, .32); }
.btn--outline-light:hover { border-color: var(--on-deep); background: rgba(255, 255, 255, .06); }
.i-wa { fill: currentColor; }

.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--ink);
  transition: background-color .2s, border-color .2s;
}
.icon-btn:hover { background: var(--surface); border-color: var(--line-2); }
.icon-btn svg { width: 19px; height: 19px; transition: transform .5s var(--ease); }
[data-theme-toggle]:hover svg { transform: rotate(-25deg); }

.linklike { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink-2); font-size: inherit; text-align: left; }
.linklike:hover { color: var(--ink); }

/* ---------- 4. Navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .35s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo__mark { width: 30px; height: 30px; }
.logo__bg { fill: var(--accent); }
.logo__line { fill: none; stroke: var(--on-accent); stroke-width: 2.4; stroke-linecap: round; }
.logo__dot { fill: var(--on-accent); }
.logo__dot--signal { fill: var(--signal); }
.logo__word { font-family: var(--font-display); font-size: 1.32rem; font-weight: 600; letter-spacing: -.02em; }
.logo__word span { color: var(--accent); font-style: italic; font-weight: 500; }

.nav__links { display: none; }
.nav__links a {
  position: relative; color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 500;
  transition: color .2s;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }

/* Barra de progreso de lectura */
.nav__progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.nav__progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.nav__actions { display: flex; align-items: center; gap: 8px; }

.i-moon { display: none; }
[data-theme="dark"] .i-sun { display: none; }
[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: none; }
  :root:not([data-theme="light"]) .i-moon { display: block; }
}

.nav__mobile { display: grid; padding: 8px var(--gutter) 20px; border-top: 1px solid var(--line); background: var(--bg); }
.nav__mobile[hidden] { display: none; }
.nav__mobile a {
  padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none;
  font-family: var(--font-display); font-size: 1.3rem;
}
.nav__mobile a:last-child { border-bottom: 0; color: var(--accent); }

@media (max-width: 420px) {
  .nav__actions { gap: 6px; }
  .nav__actions .icon-btn { width: 38px; height: 38px; }
  .nav__actions .btn--sm { padding: .62em .95em; font-size: .88rem; }
  .logo__word { font-size: 1.2rem; }
}
@media (max-width: 340px) {
  .nav__actions .btn--sm { display: none; }
}
@media (min-width: 980px) {
  .nav__links { display: flex; gap: 30px; }
  .nav__burger { display: none; }
  .nav__mobile { display: none !important; }
}

/* ---------- 5. Portada (hero) y herramientas ---------- */
.hero { position: relative; isolation: isolate; padding-top: clamp(36px, 7vw, 96px); }
.hero__canvas {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--dot) 1.1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 65% 55% at 72% 38%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 65% 55% at 72% 38%, #000 25%, transparent 75%);
}
.hero__grid { display: grid; gap: 56px; align-items: center; }
.hero__title {
  margin-top: 22px;
  font-size: clamp(2.55rem, 1.2rem + 5.2vw, 4.6rem);
  line-height: 1.02; letter-spacing: -.032em; font-weight: 500;
}
.hero__title em { font-style: italic; font-weight: 400; color: var(--accent); }
.hero__lead { margin-top: 24px; max-width: 34em; color: var(--ink-2); font-size: clamp(1.07rem, 1rem + .4vw, 1.24rem); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__ctas .btn { flex: 1 1 auto; }
@media (min-width: 560px) { .hero__ctas .btn { flex: 0 0 auto; } }

.trust {
  list-style: none; display: grid; grid-template-columns: 1fr; gap: 10px 18px;
  margin-top: 34px; font-size: .9rem; color: var(--ink-2);
}
.trust li { display: flex; align-items: center; gap: 8px; line-height: 1.3; }
.trust svg { width: 16px; height: 16px; color: var(--accent); stroke-width: 2.2; }
.trust a { text-decoration: none; border-bottom: 1px dashed var(--line-2); transition: border-color .2s; }
.trust a:hover { border-bottom-color: var(--accent); }
.trust a strong { color: var(--accent); font-weight: 600; }
@media (min-width: 480px) { .trust { grid-template-columns: auto auto; justify-content: start; gap: 12px 32px; } }

.hero__visual { position: relative; padding-top: 58px; max-width: 460px; width: 100%; margin-inline: auto; }
@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: 1.22fr .78fr; gap: 64px; }
  .hero__visual { margin-right: 0; }
}

.feed {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow-lg); padding: 8px;
}
.feed__head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 16px 12px; font-weight: 600; font-size: .92rem;
}
.live {
  display: inline-flex; align-items: center; gap: 8px; color: var(--accent);
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
}
.live i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: live 2.2s ease-out infinite; }
.feed__list { list-style: none; display: grid; gap: 6px; }
.feed__item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start;
  padding: 14px 16px; border-radius: 16px; background: var(--surface-2);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.feed__item time { font-family: var(--font-mono); font-size: .76rem; color: var(--ink-3); padding-top: 3px; }
.feed__in { font-weight: 600; font-size: .95rem; line-height: 1.35; }
.feed__out { margin-top: 3px; font-size: .87rem; color: var(--ink-2); line-height: 1.35; }
.feed__out::before { content: '→ '; color: var(--accent); }
.feed__badge {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .85rem;
}
.feed__badge svg { width: 14px; height: 14px; stroke-width: 2.4; }
.feed__badge--alert { background: var(--signal-soft); color: var(--signal-ink); }
.feed__foot { padding: 12px 16px 10px; font-size: .82rem; color: var(--ink-3); }
.feed.is-playing .feed__item:not(.is-shown) { opacity: 0; transform: translateY(10px); }

.toast {
  position: absolute; top: 0; right: -6px; z-index: 2;
  display: flex; align-items: center; gap: 12px; max-width: 290px;
  padding: 12px 16px 12px 12px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: .82rem; line-height: 1.3; color: var(--ink-2);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.toast strong { display: block; color: var(--ink); font-size: .85rem; }
.toast__text { transition: opacity .35s ease, transform .35s ease; }
.toast__text.is-changing { opacity: 0; transform: translateY(4px); }
.toast__icon {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: var(--signal-soft); color: var(--signal-ink);
}
.toast__icon svg { width: 18px; height: 18px; }
.hero__visual.is-playing .toast:not(.is-shown) { opacity: 0; transform: translateY(-8px) scale(.97); }

.tools { margin-top: clamp(64px, 9vw, 110px); padding-block: 28px; border-top: 1px solid var(--line); }
.tools__title { text-align: center; font-size: .86rem; color: var(--ink-3); margin-bottom: 18px; padding-inline: var(--gutter); }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 10px; padding-right: 10px; list-style: none; }
.marquee li {
  white-space: nowrap; padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: .92rem; font-weight: 500; color: var(--ink-2);
}

/* ---------- 6. Servicios ---------- */
.services { display: grid; gap: 16px; }
@media (min-width: 700px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1120px) { .services { grid-template-columns: repeat(4, 1fr); } }
.service {
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.service:hover { translate: 0 -4px; box-shadow: var(--shadow); border-color: var(--line-2); }
.service__icon {
  width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 6px;
  transition: transform .4s var(--ease);
}
.service:hover .service__icon { transform: rotate(-6deg) scale(1.05); }
.service__icon svg { width: 24px; height: 24px; }
.service h3 { font-size: 1.42rem; }
.service p { color: var(--ink-2); font-size: .98rem; }
.service .service__for {
  margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line-2);
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}

/* ---------- 6b. Un día en tu negocio (antes / después) ---------- */
.dia { max-width: 860px; margin-inline: auto; }
.dia__switch {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  width: min(100%, 440px); margin: 0 auto 32px; padding: 5px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.dia__thumb {
  position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px;
  background: var(--signal); transition: transform .5s var(--ease), background-color .5s;
}
.dia__opt {
  position: relative; appearance: none; border: 0; background: transparent; cursor: pointer;
  padding: 13px 14px; border-radius: 999px; font: 600 .95rem/1.1 var(--font-body); color: var(--ink-2);
  transition: color .4s;
}
.dia__opt:hover { color: var(--ink); }
.is-sin .dia__opt[data-dia-modo="sin"] { color: #231405; }
.is-con .dia__thumb { transform: translateX(100%); background: var(--accent); }
.is-con .dia__opt[data-dia-modo="con"] { color: var(--on-accent); }
/* Invitación a pulsar, solo hasta el primer clic */
.dia.is-sin:not(.is-tocado) .dia__opt[data-dia-modo="con"]::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 0 var(--accent); animation: invita 2.2s ease-out infinite;
}

.dia__list { list-style: none; display: grid; gap: 10px; }
.dia__item {
  display: grid; grid-template-columns: 50px 32px 1fr; gap: 12px; align-items: center;
  padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
}
.dia__item time { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-3); }
.dia__icon {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  transition: background-color .45s, color .45s; transition-delay: calc(var(--i, 0) * 70ms);
}
.dia__icon svg { grid-area: 1 / 1; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: opacity .3s, transform .3s; transition-delay: calc(var(--i, 0) * 70ms); }
.is-sin .dia__icon { background: var(--signal-soft); color: var(--signal-ink); }
.is-con .dia__icon { background: var(--accent-soft); color: var(--accent); }
.is-sin .i-bien, .is-con .i-mal { opacity: 0; transform: scale(.6); }
.dia__item p, .dia__total { display: grid; }
.dia__item p { font-size: .98rem; line-height: 1.45; }
.dia__item p > span, .dia__total > span {
  grid-area: 1 / 1;
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s;
  transition-delay: calc(var(--i, 0) * 70ms);
}
.is-sin .dia__con, .is-con .dia__sin {
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .25s, transform .25s, visibility 0s linear .25s;
}
.is-sin .dia__item p { color: var(--ink-2); }
.dia__total {
  margin-top: 16px; padding: 18px 22px; border-radius: 18px; text-align: center; font-size: 1.02rem; line-height: 1.45;
  transition: background-color .45s, color .45s;
}
.is-sin .dia__total { background: var(--signal-soft); color: var(--signal-ink); }
.is-con .dia__total { background: var(--deep); color: var(--on-deep); }
@media (max-width: 480px) {
  .dia__item { grid-template-columns: 42px 28px 1fr; gap: 10px; padding: 14px; }
  .dia__icon { width: 28px; height: 28px; }
  .dia__item p { font-size: .93rem; }
  .dia__opt { font-size: .9rem; padding: 12px 8px; }
}

/* ---------- 6c. Sectores ---------- */
.sectors { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 1000px) { .sectors { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.sector {
  display: flex; flex-direction: column; gap: 12px; padding: 22px 20px;
  border-radius: 20px; background: var(--surface); border: 1px solid var(--line);
}
.sector:hover { translate: 0 -4px; box-shadow: var(--shadow); border-color: var(--line-2); }
.sector__icon {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.sector__icon svg, .sector__link svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sector__icon svg { width: 22px; height: 22px; }
.sector h3 { font-size: 1.22rem; line-height: 1.15; }
.sector ul { list-style: none; display: grid; gap: 5px; font-size: .9rem; line-height: 1.35; color: var(--ink-2); }
.sector li { display: flex; gap: 8px; }
.sector li::before { content: ''; flex: none; width: 5px; height: 5px; margin-top: .5em; border-radius: 50%; background: var(--signal); }
.sector__link {
  margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px;
  font-size: .9rem; font-weight: 600; color: var(--accent); text-decoration: none;
}
.sector__link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.sector__link:hover svg { transform: translateX(3px); }
@media (max-width: 420px) {
  .sector { padding: 18px 15px; gap: 10px; }
  .sector h3 { font-size: 1.08rem; }
  .sector ul { font-size: .84rem; }
}
@media (max-width: 359px) { .sectors { grid-template-columns: 1fr; } }
/* Con un enlace personalizado, el sector de ese negocio se resalta */
.sector.is-suyo { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), var(--shadow); }

/* ---------- 7. Ejemplos y diagramas ---------- */
.cases { display: grid; gap: 20px; }
@media (min-width: 1000px) { .cases { grid-template-columns: repeat(2, 1fr); } }
.case {
  display: flex; flex-direction: column; gap: 20px;
  padding: clamp(24px, 3.4vw, 36px); border-radius: 26px;
  background: var(--surface); border: 1px solid var(--line);
}
.case:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.case__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: center; }
.case__num { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.case__channels { font-size: .8rem; color: var(--ink-3); word-spacing: .18em; }
.case h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.85rem); }
.case__before, .case__after { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; line-height: 1.5; }
.case__before { color: var(--ink-2); }
.case__after { font-weight: 600; }
.label {
  flex: none; margin-top: 2px; padding: 4px 8px; border-radius: 6px;
  font-family: var(--font-mono); font-size: .66rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2;
}
.label--before { background: var(--signal-soft); color: var(--signal-ink); }
.label--after { background: var(--accent-soft); color: var(--accent); }

/* Diagrama de 3 pasos: vertical en móvil, horizontal a partir de 640px */
.flow { position: relative; padding: 20px; border-radius: 18px; background: var(--surface-2); }
.flow__steps { position: relative; z-index: 1; list-style: none; display: grid; gap: 18px; }
.flow__step { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: center; font-size: .94rem; line-height: 1.4; }
.flow__node {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: .78rem; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line-2);
  transition: background-color .4s, color .4s, border-color .4s;
}
.flow__step:nth-child(2) .flow__node { border-color: var(--accent); color: var(--accent); }
.flow__step:last-child .flow__node { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.flow__track {
  position: absolute; left: 37px; top: 40px; bottom: 40px; width: 0;
  border-left: 1.5px dashed var(--line-2);
}
.flow__pulse {
  position: absolute; left: -4.75px; top: 0; width: 8px; height: 8px; border-radius: 50%;
  background: var(--signal); box-shadow: 0 0 0 4px var(--signal-soft); opacity: 0;
}
.is-in .flow__pulse { animation: flow-y 3s cubic-bezier(.55, 0, .45, 1) .5s infinite; }
@media (min-width: 640px) {
  .flow { padding: 24px 20px; }
  .flow__steps { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .flow__step { grid-template-columns: 1fr; justify-items: center; align-items: start; text-align: center; gap: 12px; font-size: .9rem; }
  .flow__track {
    left: calc(20px + (100% - 72px) / 6); right: calc(20px + (100% - 72px) / 6);
    top: 42px; bottom: auto; width: auto; height: 0;
    border-left: 0; border-top: 1.5px dashed var(--line-2);
  }
  .flow__pulse { left: 0; top: -4.75px; }
  .is-in .flow__pulse { animation-name: flow-x; }
}

/* ---------- 8. Demo de chat ---------- */
.section--ink { background: var(--ink-section); color: #EFEAE0; }
.section--ink .section-head > p:not(.eyebrow) { color: rgba(239, 234, 224, .7); }
.section--ink .eyebrow { color: rgba(239, 234, 224, .66); }
.section--ink .eyebrow__dot { box-shadow: 0 0 0 4px rgba(237, 160, 82, .2); }

.demo__tabs {
  display: flex; gap: 4px; width: max-content; max-width: 100%; margin: 0 auto 32px;
  padding: 5px; border-radius: 999px; overflow-x: auto; scrollbar-width: none;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
}
.demo__tabs::-webkit-scrollbar { display: none; }
.demo__tab {
  flex: none; appearance: none; border: 0; cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 15px; border-radius: 999px; background: transparent;
  color: rgba(239, 234, 224, .72); font: 600 .9rem/1 var(--font-body);
  transition: background-color .25s, color .25s;
}
.demo__tab:hover { color: #FFFFFF; }
.demo__tab[aria-selected="true"] { background: #EFEAE0; color: #16201B; }
.demo__tab svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 479px) {
  .demo__tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 20px; }
  .demo__tab { border-radius: 15px; padding: 11px 10px; }
}
/* Tableta: las seis pestañas no caben en una fila; van en dos filas de tres */
@media (min-width: 480px) and (max-width: 899px) {
  .demo__tabs { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; max-width: 620px; border-radius: 22px; }
  .demo__tab { border-radius: 16px; }
}

/* minmax(0, 1fr): sin esto, la fila de sugerencias (que no se parte) ensancharía el chat en móviles de 320 px */
.demo__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; justify-items: center; }
.demo__grid > * { min-width: 0; max-width: 100%; }
@media (min-width: 960px) {
  .demo__grid { grid-template-columns: auto 340px; justify-content: center; align-items: center; gap: 44px; }
}

.phone {
  width: 100%; max-width: 400px; padding: 10px; border-radius: 42px;
  background: #050807;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .09), 0 50px 90px -40px rgba(0, 0, 0, .85), 0 0 120px -30px rgba(107, 191, 152, .25);
}
.chat {
  display: flex; flex-direction: column; height: min(640px, 80vh); min-height: 500px;
  border-radius: 32px; overflow: hidden;
  background-color: var(--wa-bg); background-image: var(--wa-pattern);
  color: var(--wa-text); font-family: var(--font-app);
}
@media (max-width: 479px) {
  .phone { padding: 0; background: none; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); border-radius: 22px; }
  .chat { border-radius: 22px; height: min(600px, 76vh); min-height: 460px; }
}

.chat__head {
  display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 8px;
  background: var(--wa-head); color: var(--wa-head-text);
}
.chat__back { width: 22px; height: 22px; opacity: .9; }
.chat__avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--biz, #2E7A5E); color: #FFFFFF; font-weight: 700; font-size: .82rem; letter-spacing: .02em;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .18);
}
.chat__who { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.chat__title { display: flex; align-items: center; gap: 5px; min-width: 0; }
.chat__who strong { font-size: 1rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat__verified { flex: none; width: 15px; height: 15px; }
.chat__verified circle { fill: #25D366; }
.chat__verified path { fill: none; stroke: #FFFFFF; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.chat__who span { font-size: .78rem; opacity: .82; }
.chat__reset {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: transparent; color: inherit; cursor: pointer; opacity: .9;
}
.chat__reset:hover { background: rgba(255, 255, 255, .12); }
.chat__reset svg { width: 20px; height: 20px; }

.chat__body {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 10px;
  scrollbar-width: thin;
}
.chat__day, .chat__sys {
  align-self: center; text-align: center; border-radius: 8px; box-shadow: 0 1px .5px rgba(11, 20, 26, .13);
}
.chat__day { margin: 2px 0 8px; padding: 5px 12px; background: var(--wa-day); color: var(--wa-meta); font-size: .74rem; }
.chat__sys { max-width: 88%; margin-bottom: 10px; padding: 6px 12px; background: var(--wa-sys); color: var(--wa-sys-text); font-size: .74rem; line-height: 1.4; }

.msg {
  position: relative; max-width: 84%; padding: 6px 9px 7px; border-radius: 8px;
  font-size: .93rem; line-height: 1.38; overflow-wrap: anywhere;
  box-shadow: 0 1px .5px rgba(11, 20, 26, .13);
}
.msg strong { font-weight: 650; }
.msg--in { align-self: flex-start; background: var(--wa-in); }
.msg--out { align-self: flex-end; background: var(--wa-out); }
.msg--tail { margin-top: 6px; }
.msg--in.msg--tail { border-top-left-radius: 0; }
.msg--out.msg--tail { border-top-right-radius: 0; }
.msg--tail::before { content: ''; position: absolute; top: 0; width: 8px; height: 13px; }
.msg--in.msg--tail::before { left: -8px; background: var(--wa-in); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.msg--out.msg--tail::before { right: -8px; background: var(--wa-out); clip-path: polygon(0 0, 100% 0, 0 100%); }
.msg__meta {
  float: right; display: inline-flex; align-items: center; gap: 3px;
  margin: 8px -2px -3px 12px; font-size: .68rem; line-height: 1; color: var(--wa-meta);
}
.msg__ticks { width: 17px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: color .3s; }
.msg.is-read .msg__ticks { color: var(--wa-tick); }
.msg--new { animation: msg-in .28s var(--ease) both; }

.msg--typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--wa-meta); opacity: .5; animation: typing 1.2s infinite ease-in-out; }
.msg--typing i:nth-child(2) { animation-delay: .15s; }
.msg--typing i:nth-child(3) { animation-delay: .3s; }

.chat__chips {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px;
  padding: 0 12px 8px; min-height: 8px;
}
/* En el móvil, las sugerencias van en una fila que se desliza con el dedo (como en WhatsApp) */
@media (max-width: 479px) {
  .chat__chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding-top: 2px; }
  .chat__chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}
.chip {
  appearance: none; cursor: pointer; padding: 7px 12px; border-radius: 999px;
  background: var(--wa-chip); color: var(--wa-chip-text); border: 1px solid rgba(11, 20, 26, .08);
  font: 500 .84rem/1.2 var(--font-app); box-shadow: 0 1px .5px rgba(11, 20, 26, .13);
  animation: chip-in .3s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms);
  transition: transform .15s, filter .15s;
}
.chip:hover { filter: brightness(.97); transform: translateY(-1px); }
.chip.is-hint { animation: chip-in .3s var(--ease) both, invita-chip 1.6s ease-out .3s 3; }
.chip:active { transform: translateY(0); }

.chat__form { display: flex; align-items: center; gap: 8px; padding: 8px 10px 10px; background: var(--wa-bar); }
.chat__form input {
  flex: 1; min-width: 0; height: 44px; padding: 0 16px; border-radius: 999px; border: 0;
  background: var(--wa-input); color: var(--wa-text); font: 16px var(--font-app); outline: none;
}
.chat__form input::placeholder { color: var(--wa-meta); }
.chat__form input:focus-visible { box-shadow: 0 0 0 2px var(--wa-send); }
.chat__form button {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--wa-send); color: #FFFFFF;
  transition: transform .15s, opacity .2s;
}
.chat__form button:hover { transform: scale(1.05); }
.chat__form button:disabled { opacity: .55; cursor: default; transform: none; }
.chat__form button svg { width: 20px; height: 20px; fill: currentColor; margin-left: 2px; }

.backstage {
  width: 100%; max-width: 400px; padding: 24px; border-radius: 24px;
  background: var(--ink-section-2); border: 1px solid rgba(255, 255, 255, .08); color: #EFEAE0;
}
.backstage h3 {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(239, 234, 224, .72);
}
.backstage .live { color: #6BBF98; }
.bs-steps { list-style: none; display: grid; gap: 11px; margin-top: 18px; min-height: 168px; align-content: start; }
.bs-empty { color: rgba(239, 234, 224, .6); font-size: .92rem; line-height: 1.5; }
@media (max-width: 959px) { .bs-steps { min-height: 0; } }
.bs-step { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .92rem; line-height: 1.4; animation: fade-up .35s var(--ease) both; }
.bs-step__icon {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(107, 191, 152, .16); color: #8FD3B2;
}
.bs-step__icon svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.bs-step.is-working .bs-step__icon { background: transparent; border: 2px solid rgba(143, 211, 178, .25); border-top-color: #8FD3B2; animation: spin .8s linear infinite; }
.bs-step.is-working .bs-step__icon svg { display: none; }
.bs-step.is-working span:last-child { color: rgba(239, 234, 224, .7); }
.bs-step--alert .bs-step__icon { background: rgba(237, 160, 82, .18); color: #F2B573; }
.bs-step--final span:last-child { color: #8FD3B2; }
.bs-block { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); }
.bs-block h4 {
  margin-bottom: 10px; font-family: var(--font-mono); font-size: .68rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: rgba(239, 234, 224, .55);
}
.bs-mem { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.bs-mem li {
  padding: 5px 10px; border-radius: 8px; font-size: .84rem;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08);
}
.bs-mem li.is-new { animation: fade-up .35s var(--ease) both; }
.bs-mem li b { font-weight: 500; color: rgba(239, 234, 224, .6); margin-right: 4px; }
.bs-mem .bs-mem__empty { background: none; border: 0; padding: 0; color: rgba(239, 234, 224, .5); }
.bs-alert { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: rgba(239, 234, 224, .8); }
.bs-alert__dot { width: 10px; height: 10px; border-radius: 50%; background: #56625C; flex: none; transition: background-color .3s, box-shadow .3s; }
.bs-alert.is-on { color: #F2B573; }
.bs-alert.is-on .bs-alert__dot { background: #EDA052; box-shadow: 0 0 0 5px rgba(237, 160, 82, .2); }
.bs-alert.is-new .bs-alert__dot { animation: ping 1s ease-out 3; }

.demo__tip {
  display: flex; align-items: flex-start; gap: 12px; max-width: 560px; margin: 28px auto 0; padding: 14px 18px;
  border-radius: 16px; border: 1px dashed rgba(255, 255, 255, .18); color: rgba(239, 234, 224, .75); font-size: .9rem; line-height: 1.5;
}
.demo__tip strong { color: #EFEAE0; font-weight: 600; }
.demo__tip svg { flex: none; width: 20px; height: 20px; margin-top: 1px; fill: none; stroke: #EDA052; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.demo__foot { margin-top: 44px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.demo__foot p { font-family: var(--font-display); font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem); line-height: 1.25; }
.section--ink .btn--light { background: #EFEAE0; color: #16201B; }

/* ---------- 9. Calculadora ---------- */
.calc {
  display: grid; gap: 28px; padding: clamp(22px, 4vw, 44px); border-radius: 30px;
  background: var(--surface); border: 1px solid var(--line);
}
@media (min-width: 920px) { .calc { grid-template-columns: 1.15fr .85fr; gap: 44px; } }
.calc__inputs { display: grid; gap: 30px; align-content: center; }
.calc__presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: -4px; }
.calc__presets span { margin-right: 4px; font-size: .88rem; color: var(--ink-3); }
.calc__presets button {
  appearance: none; cursor: pointer; padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; color: var(--ink-2);
  font: 500 .86rem/1.2 var(--font-body); transition: background-color .2s, color .2s, border-color .2s;
}
.calc__presets button:hover { border-color: var(--ink); color: var(--ink); }
.calc__presets button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.range { display: grid; gap: 14px; }
.range__top { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; font-weight: 500; line-height: 1.4; }
.range output { font-family: var(--font-display); font-size: 1.7rem; line-height: 1; color: var(--accent); min-width: 2.2ch; text-align: right; font-variant-numeric: tabular-nums; }
.range input { --p: 20%; -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; }
.range input::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--accent) var(--p), var(--line-2) var(--p)); }
.range input::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent); box-shadow: var(--shadow); transition: transform .15s;
}
.range input:active::-webkit-slider-thumb { transform: scale(1.12); }
.range input::-moz-range-track { height: 6px; border-radius: 99px; background: var(--line-2); }
.range input::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--accent); }
.range input::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.range input:focus-visible { outline: none; }
.range input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--signal-soft); border-color: var(--signal); }

.calc__result {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
  padding: clamp(26px, 4vw, 40px); border-radius: 24px; background: var(--deep); color: var(--on-deep);
}
.calc__result::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1.3px); background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(circle at 100% 0, #000, transparent 65%);
  mask-image: radial-gradient(circle at 100% 0, #000, transparent 65%);
}
.calc__kicker { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-deep-2); }
.calc__big { font-family: var(--font-display); font-size: clamp(3rem, 2rem + 4vw, 4.6rem); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.calc__big small { display: block; margin-top: 10px; font-family: var(--font-body); font-size: 1rem; letter-spacing: 0; color: var(--on-deep-2); }
.calc__facts { list-style: none; display: grid; gap: 6px; color: var(--on-deep-2); }
.calc__facts strong { color: var(--on-deep); font-weight: 600; }
.calc__note { font-size: .78rem; line-height: 1.5; color: var(--on-deep-2); }
.calc__plan {
  padding: 12px 14px; border-radius: 14px; font-size: .92rem; line-height: 1.5; color: var(--on-deep-2);
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
}
.calc__plan a, .calc__plan strong { color: var(--on-deep); font-weight: 600; }
.calc__plan a { text-underline-offset: 3px; }

/* ---------- 10. Reseñas ---------- */
.reviews {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(84%, 360px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 16px; scroll-padding-inline: var(--gutter);
}
.reviews::-webkit-scrollbar { display: none; }
.review {
  position: relative; scroll-snap-align: start; margin: 0;
  display: flex; flex-direction: column; gap: 18px; padding: 28px 26px;
  border-radius: 24px; background: var(--surface); border: 1px solid var(--line);
}
.review:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.review__tag {
  align-self: flex-start; padding: 4px 9px; border-radius: 6px;
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase;
  background: var(--accent-soft); color: var(--accent);
}
.review__quote { margin: 0; font-family: var(--font-display); font-size: 1.16rem; line-height: 1.45; letter-spacing: -.005em; }
.review__quote::before { content: '“'; display: block; height: 30px; font-size: 3.4rem; line-height: 1; color: var(--signal); }
.review__who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review__who > span:last-child { display: grid; line-height: 1.35; }
.review__name { font-weight: 600; font-size: .95rem; }
.review__biz { font-size: .85rem; color: var(--ink-2); word-spacing: .12em; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-weight: 600; font-size: .88rem; letter-spacing: .02em;
}
.avatar--a { background: var(--accent-soft); color: var(--accent); }
.avatar--b { background: var(--signal-soft); color: var(--signal-ink); }
.avatar--c { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.review__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stars {
  flex: none; width: 82px; height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23E08A2E' d='M12 2.6l2.9 5.9 6.5.9-4.7 4.6 1.1 6.4L12 17.4l-5.8 3 1.1-6.4-4.7-4.6 6.5-.9z'/%3E%3C/svg%3E") left center / 16.4px 15px repeat-x;
}

/* Caso de éxito destacado */
.featured {
  display: grid; gap: 28px; margin-bottom: 20px; padding: clamp(24px, 4vw, 44px);
  border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
@media (min-width: 960px) { .featured { grid-template-columns: 1.25fr .75fr; gap: 44px; align-items: center; } }
.featured__main { display: grid; gap: 22px; align-content: start; }
.featured__tag { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: .88rem; color: var(--ink-2); word-spacing: .12em; }
.featured__kind {
  padding: 5px 10px; border-radius: 7px; background: var(--deep); color: var(--on-deep);
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; word-spacing: 0;
}
.featured__quote {
  margin: 0; font-family: var(--font-display); font-size: clamp(1.45rem, 1.1rem + 1.5vw, 2.15rem);
  line-height: 1.25; letter-spacing: -.015em; text-wrap: balance;
}
.featured__quote::before { content: '“'; display: block; height: .55em; font-size: 2.4em; line-height: 1; color: var(--signal); }
.featured__data { display: grid; gap: 12px; padding: 24px; border-radius: 20px; background: var(--surface-2); }
.featured__label { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.featured__label:not(:first-child) { margin-top: 10px; }
.featured__list { list-style: none; display: grid; gap: 8px; font-size: .94rem; line-height: 1.45; }
.featured__list li { display: flex; gap: 10px; }
.featured__list li::before { content: ''; flex: none; width: 6px; height: 6px; margin-top: .55em; border-radius: 50%; background: var(--accent); }
.featured__results { display: grid; gap: 8px; margin: 0; }
.featured__results div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 10px 14px; border-radius: 12px; background: var(--surface);
}
.featured__results dt { font-size: .86rem; color: var(--ink-2); }
.featured__results dd { margin: 0; font-weight: 600; font-size: .92rem; color: var(--accent); text-align: right; }

.reviews__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 10px; }
.reviews__dots { display: flex; gap: 6px; }
.reviews__dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; cursor: pointer;
  background: var(--line-2); transition: width .3s var(--ease), background-color .3s;
}
.reviews__dots button.is-on { width: 22px; background: var(--accent); }
.swipe-hint { font-size: .82rem; color: var(--ink-3); text-align: right; }
@media (min-width: 900px) {
  .reviews { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin-inline: 0; padding: 0; }
  .reviews__foot { display: none; }
}

/* ---------- 11. Por qué RogueAC ---------- */
.why { display: grid; gap: 44px; }
@media (min-width: 1000px) { .why { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; } }
.why__statement {
  margin-top: 22px; font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.25rem);
  line-height: 1.2; letter-spacing: -.02em; text-wrap: balance;
}
.why__statement em { color: var(--accent); }
.why__sub { margin-top: 20px; color: var(--ink-2); max-width: 32em; }
.pledges { list-style: none; display: grid; gap: 14px; }
@media (min-width: 600px) { .pledges { grid-template-columns: 1fr 1fr; } }
.pledge { padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.pledge:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.pledge__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.pledge__icon svg { width: 20px; height: 20px; }
.pledge h3 { margin-top: 16px; font-family: var(--font-body); font-size: 1.04rem; font-weight: 600; letter-spacing: 0; }
.pledge p { margin-top: 6px; font-size: .94rem; color: var(--ink-2); line-height: 1.5; }

/* ---------- 11b. Comparativa ---------- */
.compare {
  overflow-x: auto; border-radius: 24px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.compare table { width: 100%; min-width: 340px; border-collapse: collapse; }
.compare th, .compare td { padding: 16px 14px; text-align: center; vertical-align: middle; }
.compare thead th {
  padding-top: 22px; padding-bottom: 18px; font-size: .88rem; font-weight: 600; line-height: 1.25; color: var(--ink-2);
}
.compare thead th.is-us { color: var(--on-accent); background: var(--accent); font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.compare tbody th { text-align: left; font-weight: 500; font-size: .98rem; line-height: 1.4; padding-left: clamp(16px, 3vw, 28px); }
.compare tbody tr + tr > * { border-top: 1px solid var(--line); }
.compare td.is-us { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.compare tbody tr:last-child td.is-us { border-bottom-right-radius: 0; }
.compare thead th:first-child { width: 46%; }
.ck { display: inline-grid; place-items: center; font-size: .78rem; font-weight: 600; line-height: 1.2; }
.ck--si, .ck--no { width: 28px; height: 28px; border-radius: 50%; }
.ck--si { background: var(--accent); }
.ck--si::before, .ck--no::before { content: ''; width: 14px; height: 14px; background-color: currentColor; -webkit-mask: var(--icono) center / contain no-repeat; mask: var(--icono) center / contain no-repeat; }
.ck--si { color: var(--on-accent); --icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.ck--no { background: var(--surface-2); color: var(--ink-3); --icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E"); }
.ck--medio { padding: 4px 9px; border-radius: 999px; background: var(--signal-soft); color: var(--signal-ink); }
.ck--na { color: var(--ink-3); font-weight: 500; }
@media (max-width: 560px) {
  .compare table { min-width: 0; table-layout: fixed; }
  .compare th, .compare td { padding: 13px 4px; }
  .compare thead th { font-size: .72rem; }
  .compare thead th.is-us { font-size: .86rem; letter-spacing: -.01em; }
  .compare tbody th { font-size: .84rem; padding-left: 14px; padding-right: 8px; }
  .ck--medio, .ck--na { font-size: .6rem; padding: 3px 5px; white-space: nowrap; }
  .ck--si, .ck--no { width: 26px; height: 26px; }
  .compare thead th:first-child { width: 37%; }
}

/* ---------- 12. Proceso ---------- */
.steps { list-style: none; display: grid; }
.step { position: relative; padding: 0 0 40px 68px; }
.step:last-child { padding-bottom: 0; }
.step__num {
  position: absolute; left: 0; top: 0; z-index: 1; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-mono); font-size: .82rem;
  background: var(--surface); color: var(--ink-2); border: 1px solid var(--line-2);
  transition: background-color .5s, color .5s, border-color .5s;
  transition-delay: calc(var(--i, 0) * 180ms + 150ms);
}
.step::before, .step::after { content: ''; position: absolute; left: 22.5px; top: 46px; bottom: 0; width: 1px; }
.step::before { background: var(--line-2); }
.step::after { background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 180ms + 300ms); }
.step:last-child::before, .step:last-child::after { display: none; }
.step.is-in .step__num { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.step.is-in::after { transform: scaleY(1); }
.step h3 { padding-top: 8px; font-size: 1.5rem; }
.step p { margin-top: 10px; color: var(--ink-2); max-width: 30em; }
.step__meta { display: inline-block; margin-top: 14px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .step { padding: 70px 0 0; }
  .step::before, .step::after { left: 58px; right: -26px; top: 23px; bottom: auto; width: auto; height: 1px; }
  .step::after { transform: scaleX(0); transform-origin: left; }
  .step.is-in::after { transform: scaleX(1); }
}

/* ---------- 13. Precios ---------- */
.pricing__top {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 26px 40px; margin-bottom: clamp(40px, 5vw, 64px);
}
.pricing__top .section-head { margin-bottom: 0; }
.billing-wrap { display: grid; justify-items: start; gap: 12px; }
@media (min-width: 1000px) { .billing-wrap { justify-items: end; text-align: right; } }

/* Interruptor mensual / anual (solo aparece si app.js ha arrancado) */
.billing {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow);
}
[data-precios]:not(.is-ready) .billing { display: none; }
.billing button {
  position: relative; z-index: 1; appearance: none; border: 0; background: none; cursor: pointer;
  padding: 11px 20px; border-radius: 999px; white-space: nowrap;
  font: 600 .93rem/1.2 var(--font-body); color: var(--ink-2); transition: color .3s;
}
.billing button:hover { color: var(--ink); }
.billing button[aria-pressed="true"] { color: var(--on-accent); }
.billing__thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: 999px; background: var(--accent); transition: transform .45s var(--ease);
}
.is-anual .billing__thumb { transform: translateX(100%); }
.billing__gift { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-2); }
.billing__gift::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px var(--signal-soft); }
.billing__gift strong { color: var(--signal-ink); font-weight: 600; }

/* Precio mensual o anual: los dos están escritos en el HTML; se ve uno u otro */
.solo-anual { display: none; }
.is-anual .solo-mes { display: none; }
.is-anual .solo-anual { display: inline; }

.plans { display: grid; gap: 18px; }
@media (min-width: 940px) {
  .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .plan--featured { margin-block: -14px; }
}
.plan {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  padding: 34px 28px 28px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line);
}
.plan:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.plan h3 { font-size: 1.7rem; }
.plan__desc { margin-top: -8px; color: var(--ink-2); font-size: .97rem; line-height: 1.45; }
.plan__price { display: flex; align-items: flex-end; gap: 10px; margin-top: 6px; }
.plan__amount {
  display: inline-flex; align-items: flex-start;
  font-family: var(--font-display); font-size: clamp(3.3rem, 2.7rem + 1.6vw, 4.1rem); font-weight: 500;
  line-height: .85; letter-spacing: -.045em; font-variant-numeric: lining-nums;
}
.plan__amount.is-flip { animation: fade-up .45s var(--ease); }
.plan__cur { margin: .05em 0 0 .08em; font-size: .46em; letter-spacing: 0; }
.plan__per, .plan__from { padding-bottom: 3px; font-size: .82rem; line-height: 1.25; color: var(--ink-2); }
.plan__from { font-size: .92rem; }
.plan__setup {
  padding: 9px 12px; border-radius: 12px; font-size: .86rem; line-height: 1.4;
  background: var(--surface-2); color: var(--ink-2); transition: background-color .3s, color .3s;
}
.is-anual .plan__setup { background: var(--signal-soft); color: var(--signal-ink); font-weight: 600; }
.plan ul { list-style: none; display: grid; gap: 11px; margin: 2px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: .95rem; }
.plan li, .assure__incl li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.plan li strong { font-weight: 600; }
.plan li::before, .assure__incl li::before {
  content: ''; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E5B45' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.plan__ideal { font-size: .85rem; line-height: 1.45; color: var(--ink-3); }
.plan .btn { margin-top: auto; }
.plan--featured { background: var(--deep); color: var(--on-deep); border-color: transparent; box-shadow: var(--shadow-lg); }
.plan--featured:hover { border-color: transparent; box-shadow: var(--shadow-lg); }
.plan--featured .plan__desc, .plan--featured .plan__per, .plan--featured .plan__ideal { color: var(--on-deep-2); }
.plan--featured .plan__setup { background: rgba(255, 255, 255, .09); color: var(--on-deep-2); }
.is-anual .plan--featured .plan__setup { background: var(--signal); color: #231405; }
.plan--featured ul { border-top-color: rgba(255, 255, 255, .14); }
.plan--featured li::before {
  background: rgba(255, 255, 255, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F6F2EA' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.plan__badge {
  position: absolute; top: -12px; left: 28px; padding: 5px 12px; border-radius: 999px;
  background: var(--signal); color: #231405; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
/* Tableta: cada plan en dos columnas (precio y botón a la izquierda, lo que incluye a la derecha) */
@media (min-width: 640px) and (max-width: 939px) {
  .plan {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); column-gap: 32px; row-gap: 14px;
    grid-template-areas: "t l" "d l" "p l" "s l" "i l" "b l"; grid-template-rows: auto auto auto auto 1fr auto;
    padding: 34px 32px 30px;
  }
  .plan h3 { grid-area: t; }
  .plan__desc { grid-area: d; margin-top: -6px; }
  .plan__price { grid-area: p; }
  .plan__setup { grid-area: s; align-self: start; }
  .plan__ideal { grid-area: i; align-self: end; }
  .plan .btn { grid-area: b; }
  .plan ul { grid-area: l; align-self: center; margin: 0; padding: 0 0 0 30px; border-top: 0; border-left: 1px solid var(--line); }
  .plan--featured ul { border-left-color: rgba(255, 255, 255, .14); }
}
/* Plan señalado desde la calculadora */
.plan.is-match { box-shadow: 0 0 0 3px var(--signal), var(--shadow-lg); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .plan li::before, :root:not([data-theme="light"]) .assure__incl li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236BBF98' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E");
  }
  :root:not([data-theme="light"]) .plan--featured li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F6F2EA' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E");
  }
}
[data-theme="dark"] .plan li::before, [data-theme="dark"] .assure__incl li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236BBF98' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E");
}
[data-theme="dark"] .plan--featured li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F6F2EA' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E");
}

/* Garantía y "en todos los planes" */
.assure {
  display: grid; gap: 24px; align-items: center; margin-top: clamp(36px, 5vw, 52px);
  padding: clamp(24px, 4vw, 36px); border-radius: 26px; background: var(--surface); border: 1px solid var(--line);
}
@media (min-width: 540px) { .assure { grid-template-columns: auto 1fr; } .assure__incl { grid-column: 1 / -1; } }
@media (min-width: 1100px) {
  .assure { grid-template-columns: auto .85fr 1.4fr; gap: 36px; }
  .assure__incl { grid-column: auto; padding-left: 36px; border-left: 1px solid var(--line); }
}
.seal { position: relative; display: grid; place-items: center; width: 116px; height: 116px; color: var(--accent); }
.seal::before {
  content: ''; position: absolute; inset: 22px; border-radius: 50%;
  background: var(--accent-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent);
}
.seal__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: seal-spin 30s linear infinite; }
.seal__ring text { font: 500 9px var(--font-mono); letter-spacing: .08em; fill: currentColor; }
.seal__num {
  position: relative; display: grid; justify-items: center;
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; line-height: .9; letter-spacing: -.03em;
}
.seal__num small { margin-top: 3px; font: 600 .62rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; }
.assure__copy h3 { font-size: clamp(1.4rem, 1.2rem + .6vw, 1.7rem); }
.assure__copy p { margin-top: 8px; color: var(--ink-2); max-width: 26em; }
.assure__label { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.assure__incl ul { list-style: none; display: grid; gap: 10px 22px; margin-top: 14px; font-size: .94rem; }
@media (min-width: 540px) { .assure__incl ul { grid-template-columns: 1fr 1fr; } }

/* Extras a la carta */
.extras { margin-top: 18px; padding: clamp(22px, 3vw, 30px); border-radius: 26px; border: 1px dashed var(--line-2); }
.extras__title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.2; }
.extras__title span {
  padding: 4px 9px; border-radius: 6px; background: var(--accent-soft); color: var(--accent);
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase;
}
.extras__list { list-style: none; display: grid; gap: 12px; margin-top: 18px; }
@media (min-width: 560px) { .extras__list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .extras__list { grid-template-columns: repeat(4, 1fr); } }
.extras__list li { display: grid; align-content: start; gap: 4px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.extras__name { font-weight: 600; font-size: .95rem; }
.extras__price { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.2; color: var(--accent); }
.extras__note { font-size: .85rem; line-height: 1.45; color: var(--ink-2); }
@media (max-width: 559px) {
  .extras__list { gap: 8px; }
  .extras__list li { grid-template-columns: 1fr auto; align-items: baseline; column-gap: 12px; padding: 13px 16px; }
  .extras__price { font-size: 1.2rem; }
  .extras__note { grid-column: 1 / -1; }
}

/* Comparar planes (desplegable) */
.plans-compare { margin-top: 18px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); }
.plans-compare summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px clamp(20px, 3vw, 28px); cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: clamp(1.12rem, 1rem + .4vw, 1.3rem); transition: color .2s;
}
.plans-compare summary::-webkit-details-marker { display: none; }
.plans-compare summary:hover { color: var(--accent); }
.plans-compare[open] .faq__icon { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.compare--plans { border: 0; border-top: 1px solid var(--line); border-radius: 0 0 26px 26px; background: transparent; box-shadow: none; }
.plans-compare[open] .compare--plans { animation: fade-up .35s var(--ease) both; }
.compare--plans thead th:first-child { width: 40%; }
.ck--txt { font-size: .88rem; font-weight: 500; color: var(--ink); }
@media (max-width: 560px) {
  .compare--plans thead th:first-child { width: 34%; }
  .ck--txt { font-size: .68rem; }
}

.plans-notes { list-style: none; display: grid; gap: 8px 32px; margin-top: 26px; font-size: .87rem; color: var(--ink-2); }
@media (min-width: 760px) { .plans-notes { grid-template-columns: 1fr 1fr; } }
.plans-notes li { display: flex; gap: 10px; line-height: 1.5; }
.plans-notes li::before { content: ''; flex: none; width: 5px; height: 5px; margin-top: .62em; border-radius: 50%; background: var(--signal); }

/* ---------- 14. Preguntas frecuentes ---------- */
.faq-wrap { display: grid; gap: 8px; }
@media (min-width: 1000px) {
  .faq-wrap { grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
  .faq-wrap__head { position: sticky; top: 110px; }
}
.faq-wrap__head a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: clamp(1.14rem, 1rem + .5vw, 1.36rem); line-height: 1.3; font-weight: 500;
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq__icon {
  position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2);
  transition: transform .35s var(--ease), background-color .3s, border-color .3s;
}
.faq__icon::before, .faq__icon::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; margin: -.8px 0 0 -6px;
  background: currentColor; border-radius: 2px;
}
.faq__icon::after { transform: rotate(90deg); }
.faq details[open] .faq__icon { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.faq__body { padding: 0 52px 24px 0; color: var(--ink-2); }
.faq details[open] .faq__body { animation: fade-up .35s var(--ease) both; }

/* ---------- 15. Contacto ---------- */
.section--cta { padding-top: 0; padding-bottom: clamp(56px, 8vw, 100px); }
.section--alt + .section--cta { padding-top: clamp(56px, 8vw, 100px); background: linear-gradient(var(--bg-2), var(--bg-2) 50%, var(--bg) 50%); }
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 72px);
  border-radius: clamp(26px, 4vw, 44px); background: var(--deep); color: var(--on-deep);
}
.cta__grid { display: grid; gap: 36px; }
@media (min-width: 1000px) { .cta__grid { grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; } }
.cta__canvas {
  position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .13) 1.1px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 95% 10%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 95% 10%, #000 20%, transparent 70%);
}
.eyebrow--light { color: var(--on-deep-2); }
.eyebrow--light .eyebrow__dot { box-shadow: 0 0 0 4px rgba(217, 130, 43, .25); }
.cta h2 { margin-top: 20px; max-width: 12em; font-size: clamp(2.3rem, 1.4rem + 3.2vw, 3.7rem); line-height: 1.02; letter-spacing: -.03em; }
.cta__copy > p:not(.eyebrow) { margin-top: 20px; max-width: 30em; color: var(--on-deep-2); font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cta__actions .btn { flex: 1 1 auto; }
.cta__actions .btn svg { width: 20px; height: 20px; }

/* Configurador del mensaje */
.config {
  display: grid; gap: 20px; margin: 0; padding: clamp(20px, 3vw, 30px); border-radius: 26px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.config__title { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.2; }
.config fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.config legend, .config__label {
  display: block; padding: 0; margin-bottom: 10px;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-deep-2);
}
.config__opt { font-family: var(--font-body); letter-spacing: 0; text-transform: none; }
.config__chips { display: flex; flex-wrap: wrap; gap: 7px; }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pick span {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .24); font-size: .88rem; font-weight: 500; line-height: 1.2; color: var(--on-deep);
  transition: background-color .2s, color .2s, border-color .2s;
}
.pick:hover span { border-color: rgba(255, 255, 255, .55); }
.pick input:checked + span { background: var(--on-deep); border-color: var(--on-deep); color: #13241C; }
.pick input[type="checkbox"]:checked + span::before { content: '✓'; font-weight: 700; }
.pick input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }
.config__preview { display: grid; }
.config__bubble {
  position: relative; justify-self: end; max-width: 94%; margin-right: 8px;
  padding: 9px 12px 10px; border-radius: 10px; border-top-right-radius: 0;
  background: #D9FDD3; color: #111B21; font: .95rem/1.4 var(--font-app);
  box-shadow: 0 1px .5px rgba(11, 20, 26, .2);
}
.config__bubble::before {
  content: ''; position: absolute; top: 0; right: -8px; width: 8px; height: 13px;
  background: #D9FDD3; clip-path: polygon(0 0, 100% 0, 0 100%);
}
.config__bubble.is-updated { animation: fade-up .3s var(--ease); }
.config__alt { font-size: .85rem; line-height: 1.5; color: var(--on-deep-2); }
.cta__legal { max-width: 900px; margin: 18px auto 0; padding-inline: 8px; font-size: .78rem; line-height: 1.55; color: var(--ink-3); text-align: center; }
.cta__legal strong { color: var(--ink-2); font-weight: 600; }
.cta__legal a { color: var(--accent); text-underline-offset: 2px; }
.config__alt a { color: var(--on-deep); text-underline-offset: 3px; }
.cta__meta { list-style: none; display: grid; gap: 10px; margin-top: 28px; font-size: .88rem; color: var(--on-deep-2); }
.cta__meta li { display: flex; align-items: center; gap: 8px; }
.cta__meta li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--signal); }

/* ---------- 16. Pie, botón flotante y ventana legal ---------- */
.footer { padding: 64px 0 36px; border-top: 1px solid var(--line); }
.footer__grid { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
.footer__brand { grid-column: 1 / -1; }
.footer__brand p { margin-top: 14px; max-width: 26em; color: var(--ink-2); font-size: .95rem; }
@media (min-width: 560px) { .footer__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 820px) {
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .footer__brand { grid-column: auto; }
}
.footer__title { margin-bottom: 14px; font-family: var(--font-mono); font-size: .7rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.footer ul { list-style: none; display: grid; gap: 10px; font-size: .95rem; }
.footer ul a { color: var(--ink-2); text-decoration: none; }
.footer ul a:hover { color: var(--ink); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px;
  margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--ink-3);
}

.fab {
  position: fixed; right: 16px; bottom: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 16px;
  border-radius: 999px; background: #25D366; color: #0B2E1A; text-decoration: none;
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .55);
  font-weight: 600; font-size: .95rem;
  transition: transform .45s var(--ease), opacity .35s, box-shadow .25s;
}
.fab svg { width: 26px; height: 26px; fill: currentColor; }
.fab:hover { box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .6); }
.fab__label { display: none; }
@media (min-width: 720px) { .fab__label { display: inline; } .fab { right: 24px; bottom: 24px; } }
.reveal-ready .fab:not(.is-visible) { transform: translateY(120%) scale(.9); opacity: 0; pointer-events: none; }

.dialog {
  width: min(560px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 24px;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg);
}
.dialog::backdrop { background: rgba(8, 12, 10, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.dialog { max-height: min(84vh, 760px); overflow-y: auto; overscroll-behavior: contain; }
.dialog__inner { display: grid; gap: 18px; padding: clamp(24px, 4vw, 36px); }
.dialog h2 { font-size: 1.8rem; }
.dialog p, .dialog li { color: var(--ink-2); font-size: .96rem; line-height: 1.6; }
.dialog .tag-sample { justify-self: start; }
.legal { display: grid; gap: 14px; }
.legal[hidden] { display: none; }
.legal h3 { margin-top: 6px; font-family: var(--font-body); font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.legal ul { list-style: none; display: grid; gap: 10px; }
.legal li { padding-left: 16px; position: relative; }
.legal li::before { content: ''; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }
.legal strong { color: var(--ink); font-weight: 600; }
.dialog form { margin-top: 4px; }

/* Páginas legales (aviso legal, privacidad, cookies) */
.legal-top {
  position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line);
  background: var(--bg); background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(150%) blur(12px); backdrop-filter: saturate(150%) blur(12px);
}
.legal-top__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.legal-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.legal-back:hover svg { transform: translateX(-3px); }
.legal-doc { width: min(100% - var(--gutter) * 2, 760px); margin: 0 auto; padding-block: clamp(44px, 7vw, 88px); }
.legal-doc h1 { margin-top: 16px; font-size: clamp(2.3rem, 1.4rem + 3.4vw, 3.6rem); letter-spacing: -.03em; }
.legal-meta { margin-top: 12px; font-size: .9rem; color: var(--ink-3); }
.legal-summary { margin-top: 28px; padding: 20px 24px; border-radius: 18px; background: var(--deep); color: var(--on-deep); }
.legal-summary__title { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-deep-2); }
.legal-summary ul { list-style: none; display: grid; gap: 8px; margin-top: 12px; }
.legal-summary li { display: flex; gap: 10px; line-height: 1.5; }
.legal-summary li::before { content: ''; flex: none; width: 6px; height: 6px; margin-top: .6em; border-radius: 50%; background: var(--signal); }
.legal-toc { margin-top: 28px; padding: 20px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.legal-toc__title { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.legal-toc ol { list-style: none; display: grid; gap: 6px; margin-top: 10px; }
.legal-toc a { color: var(--ink-2); text-decoration: none; }
.legal-toc a:hover { color: var(--accent); }
.legal-doc section { scroll-margin-top: 84px; }
.legal-doc h2 { margin-top: 48px; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.75rem); }
.legal-doc section p, .legal-doc section li { color: var(--ink-2); line-height: 1.7; }
.legal-doc section p { margin-top: 14px; }
.legal-doc section ul { display: grid; gap: 8px; margin-top: 14px; padding-left: 1.2em; }
.legal-doc section li::marker { color: var(--signal); }
.legal-doc strong { color: var(--ink); font-weight: 600; }
.legal-doc a { color: var(--accent); text-underline-offset: 2px; }
.legal-doc code { font-family: var(--font-mono); font-size: .85em; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); }
.legal-table-wrap { margin-top: 16px; overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.legal-table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: .92rem; }
.legal-table th, .legal-table td { padding: 12px 16px; text-align: left; vertical-align: top; line-height: 1.5; }
.legal-table th { font-weight: 600; color: var(--ink); background: var(--surface-2); }
.legal-table td { color: var(--ink-2); border-top: 1px solid var(--line); }
.legal-table code { white-space: nowrap; }
/* Móvil: cada fila de la tabla se lee como una ficha, sin tener que desplazarse de lado */
@media (max-width: 560px) {
  .legal-table-wrap { overflow: visible; }
  .legal-table { min-width: 0; }
  .legal-table thead { display: none; }
  .legal-table tr { display: grid; gap: 8px; padding: 14px 16px; }
  .legal-table tr + tr { border-top: 1px solid var(--line); }
  .legal-table td { display: grid; justify-items: start; gap: 2px; padding: 0; border: 0; }
  .legal-table td::before {
    content: attr(data-label); font-family: var(--font-mono); font-size: .66rem;
    letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
  }
}
.legal-contact { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-2); }
.legal-foot { border-top: 1px solid var(--line); padding: 28px 0 40px; }
.legal-foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; font-size: .88rem; color: var(--ink-3); }
.legal-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.legal-foot a { color: var(--ink-2); text-decoration: none; }
.legal-foot a:hover, .legal-foot a[aria-current="page"] { color: var(--accent); }
/* Generador de enlaces personalizados (enlaces.html, herramienta interna) */
.gen { display: grid; gap: 20px; margin-top: 32px; padding: clamp(20px, 4vw, 32px); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.gen__campo { display: grid; gap: 8px; }
.gen__campo span, .gen__etiqueta { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.gen__campo input, .gen__campo select {
  width: 100%; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line-2);
  background: var(--bg); color: var(--ink); font: 500 1rem/1.3 var(--font-body);
}
.gen__campo input:focus-visible, .gen__campo select:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.gen__salida { display: grid; gap: 8px; }
.gen__enlace {
  display: block; padding: 13px 16px; border-radius: 14px; background: var(--accent-soft); color: var(--accent);
  font: 500 .92rem/1.45 var(--font-mono); word-break: break-all;
}
.gen__acciones { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 560px) { .gen__acciones .btn { flex: 1 1 100%; } }
.gen__aviso { min-height: 1.4em; font-size: .9rem; font-weight: 600; color: var(--accent); }
.gen__burbuja { justify-self: start; max-width: 100%; margin: 0 8px 0 0; }

/* Datos pendientes de rellenar en las plantillas legales: resaltados para que no se escape ninguno */
.ph { padding: 0 4px; border-radius: 4px; background: var(--signal-soft); color: var(--signal-ink); font-weight: 600; }

/* Página 404 */
.lost {
  position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px;
  width: min(100% - var(--gutter) * 2, 880px); margin-inline: auto; padding-block: 64px;
}
.lost .logo { position: absolute; top: 28px; left: 0; }
.lost h1 { font-size: clamp(2.4rem, 1.3rem + 5vw, 4.6rem); line-height: 1.03; letter-spacing: -.03em; }
.lost h1 em { color: var(--accent); font-weight: 400; }
.lost__text { max-width: 32em; color: var(--ink-2); font-size: 1.15rem; }
.lost .hero__canvas { -webkit-mask-image: radial-gradient(ellipse 70% 60% at 80% 40%, #000 25%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 80% 40%, #000 25%, transparent 75%); }

/* ---------- 17. Animaciones ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes chip-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes live { 0% { box-shadow: 0 0 0 0 currentColor; } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes invita-chip {
  0% { box-shadow: 0 1px .5px rgba(11, 20, 26, .13), 0 0 0 0 rgba(0, 168, 132, .55); }
  70%, 100% { box-shadow: 0 1px .5px rgba(11, 20, 26, .13), 0 0 0 9px rgba(0, 168, 132, 0); }
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(237, 160, 82, .6); }
  100% { box-shadow: 0 0 0 12px rgba(237, 160, 82, 0); }
}
@keyframes invita {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); }
  70%, 100% { box-shadow: 0 0 0 12px transparent; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes seal-spin { to { transform: rotate(360deg); } }
@keyframes flow-y { 0% { top: 0; opacity: 0; } 12%, 85% { opacity: 1; } 100% { top: calc(100% - 8px); opacity: 0; } }
@keyframes flow-x { 0% { left: 0; opacity: 0; } 12%, 85% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }

/* Entrada de la portada (solo CSS: funciona aunque falle el JavaScript) */
.hero__copy > * { animation: rise .9s var(--ease) both; }
.hero__copy > :nth-child(2) { animation-delay: .07s; }
.hero__copy > :nth-child(3) { animation-delay: .14s; }
.hero__copy > :nth-child(4) { animation-delay: .21s; }
.hero__copy > :nth-child(5) { animation-delay: .28s; }
.hero__visual { animation: rise 1s .25s var(--ease) both; }

/* Aparición al hacer scroll. Solo se oculta si app.js ha arrancado (clase reveal-ready). */
.reveal-ready .reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease), translate .3s var(--ease), box-shadow .3s, border-color .3s;
  transition-delay: calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms), 0s, 0s, 0s;
}
.reveal-ready .reveal.is-in { opacity: 1; transform: none; }
.reveal-init .reveal { transition: none !important; }
.service, .case, .review, .pledge, .plan, .sector { transition: translate .3s var(--ease), box-shadow .3s, border-color .3s; }

/* Brillo que sigue al ratón (lo activa app.js solo en equipos con ratón) */
.has-spot { position: relative; isolation: isolate; }
.has-spot::after {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 10%, transparent), transparent 65%);
  opacity: 0; transition: opacity .4s;
}
.has-spot:hover::after { opacity: 1; }

/* Impresión o "Guardar como PDF": siempre en claro (aunque el sistema esté en oscuro), sin menú, demo ni botones */
@media print {
  html:root:not([data-imprimir]) {
    --bg: #FFFFFF; --bg-2: #FFFFFF; --surface: #FFFFFF; --surface-2: #F4F0E8;
    --ink: #16201B; --ink-2: #4E5751; --ink-3: #5B635D;
    --line: rgba(22, 32, 27, .15); --line-2: rgba(22, 32, 27, .25); --dot: transparent;
    --accent: #1E5B45; --accent-2: #164635; --accent-soft: #DDE8E1; --on-accent: #F6F2EA;
    --signal: #D9822B; --signal-ink: #8F4E10; --signal-soft: #F6E4CF;
    --deep: #1E5B45; --on-deep: #F6F2EA; --on-deep-2: rgba(246, 242, 234, .86);
    --shadow: none; --shadow-lg: none;
    color-scheme: light;
  }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: #FFFFFF; font-size: 11pt; }
  .skip, .sample-bar, .nav, .fab, .hero__visual, .hero__ctas, .tools, #demo, .billing, .billing-wrap,
  .config, .cta__canvas, .hero__canvas, .reviews__foot, .calc__presets, .plan .btn, .plans-compare { display: none !important; }
  .reveal-ready .reveal { opacity: 1 !important; transform: none !important; }
  .section { padding-block: 22px; }
  .hero { padding-top: 0; }
  .reviews { display: grid; grid-auto-flow: row; grid-template-columns: 1fr 1fr; overflow: visible; margin: 0; padding: 0; }
  .service, .case, .sector, .review, .featured, .pledge, .step, .plan, .assure, .extras li, .faq details, .compare tr { break-inside: avoid; }
  h2, h3 { break-after: avoid; }
  /* En papel no se puede pulsar: se muestra la dirección de WhatsApp junto al enlace */
  .footer a[href^="https://wa.me/"]::after { content: " (" attr(href) ")"; font-size: .85em; color: var(--ink-3); }
}

/* Modo de alto contraste de Windows: los iconos hechos con máscara y los chips elegidos siguen viéndose */
@media (forced-colors: active) {
  .ck--si::before, .ck--no::before { forced-color-adjust: none; background-color: CanvasText; }
  .ck--si, .ck--no { border: 1px solid CanvasText; }
  .pick input:checked + span, .billing button[aria-pressed="true"], .calc__presets button[aria-pressed="true"],
  .demo__tab[aria-selected="true"], .dia__opt[aria-pressed="true"] { outline: 2px solid Highlight; outline-offset: 1px; }
  .billing__thumb, .plan__badge { forced-color-adjust: none; }
  .btn, .icon-btn, .chip { border: 1px solid ButtonText; }
}

/* Movimiento reducido: se quitan los movimientos continuos, se mantienen los fundidos suaves */
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; width: auto; justify-content: center; padding-inline: var(--gutter); }
  .marquee ul { flex-wrap: wrap; justify-content: center; }
  .marquee ul[aria-hidden="true"] { display: none; }
  .flow__pulse, .is-in .flow__pulse { animation: none; opacity: 0; }
  .live i { animation: none; }
  .seal__ring { animation: none; }
  .dia.is-sin:not(.is-tocado) .dia__opt[data-dia-modo="con"]::after { animation: none; box-shadow: 0 0 0 2px var(--accent); }
  .chip.is-hint { animation: none; box-shadow: 0 0 0 2px var(--wa-send); }
  .bs-alert.is-new .bs-alert__dot { animation: none; }
  .reveal-ready .reveal { transform: none; }
  .hero__copy > *, .hero__visual { animation-duration: .01s; }
}
