/* =====================================================================
   ACNA · Protección y Patrimonio Empresarial — styles.css (base compartida)
   Fuente de verdad visual: build/diseno/DESIGN.md
   ---------------------------------------------------------------------
   CÓMO REUTILIZAR EN UNA LANDING
   <head>: preconnect + Google Fonts (Fraunces, Manrope, Caveat) + /assets/styles.css
           + (opcional) page.css propio. Script inline anti-parpadeo de tema (ver index.html).
   <body data-page="..." data-producto="..." data-whatsapp="521..." data-endpoint="/api/lead">
   Bloques listos:
     .site-header / .site-footer / .skip-link        → copia el markup de index.html
     .hero (+ .hero__media, .hero__veil, .hero__inner, .hero__title, .hand)
     .section (+ .section--alt, .section--ink) · .container · .grid · .stack
     .eyebrow · .lead · .muted · .note (nota "ejercicio ilustrativo")
     .btn (.btn--primary, .btn--secondary, .btn--wa, .btn--ghost, .btn--lg, .btn--block)
     .card · .card-producto · .steps · .trust · .faq · .manifesto · .cta-final
     .field / .input / .chip (formularios) · .wizard (multistep) · .calc (calculadora)
     .state (.state--loading/.state--error/.state--success) · .reveal (+ .is-in)
     .wa-float (botón flotante) · .consent (banner de cookies)
   Un solo acento: var(--accent). Nunca morados ni gradientes de color.
   ===================================================================== */

/* === 1. TOKENS (claro por default) ================================== */
:root {
  --bg: #F6F4EF;
  --bg-2: #FFFFFF;
  --bg-3: #ECE8DF;
  --ink: #101B2D;
  --ink-2: #4A5467;
  --line: #D9D3C6;
  --accent: #0F7B6C;
  --accent-hover: #0D6E61;      /* acento oscurecido ~8 % */
  --accent-text: #0D6E61;       /* acento para texto pequeño sobre --bg-3 (AA ≥ 4.5) */
  --accent-ink: #FFFFFF;
  --accent-soft: #DDEFEA;
  --danger: #B3261E;
  --ok: #2E7D32;
  --veil: rgba(246, 244, 239, .55); --veil-m: rgba(246, 244, 239, .8);
  --header-bg: rgba(246, 244, 239, .78);
  --shadow: 0 10px 30px rgba(16, 27, 45, .08);
  --shadow-lg: 0 24px 60px rgba(16, 27, 45, .12);
  --hero-img: url("/assets/img/hero-poster.jpg");

  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 24px;
  --max: 1180px;
  --gutter: 20px;
  --header-h: 68px;

  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-text: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-hand: "Caveat", "Bradley Hand", cursive;

  --ease: cubic-bezier(.2, .7, .2, 1);       /* reveal / hero (DESIGN.md §5) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1); /* UI que entra o responde */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --dur: 600ms;
  --stagger: 70ms;
  --section: clamp(64px, 10vw, 128px);
  color-scheme: light;
}

/* Oscuro: tinta azulada, no negro puro. Se activa con data-theme="dark"
   (app.js lo pone según localStorage o prefers-color-scheme). */
[data-theme="dark"] {
  --bg: #0E1726;
  --bg-2: #152033;
  --bg-3: #1C2A40;
  --ink: #F3F1EA;
  --ink-2: #B7BDC9;
  --line: #2A3A54;
  --accent: #3FBFA9;
  --accent-hover: #52CBB6;
  --accent-text: #3FBFA9;
  --accent-ink: #0A1A17;
  --accent-soft: #143A35;
  --danger: #F28B82;
  --ok: #81C995;
  --veil: rgba(14, 23, 38, .6); --veil-m: rgba(14, 23, 38, .8);
  --header-bg: rgba(14, 23, 38, .78);
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .45);
  --hero-img: url("/assets/img/hero-poster-dark.jpg");
  color-scheme: dark;
}
/* Sin JS y sin preferencia guardada: respeta el sistema */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0E1726; --bg-2: #152033; --bg-3: #1C2A40; --ink: #F3F1EA; --ink-2: #B7BDC9;
    --line: #2A3A54; --accent: #3FBFA9; --accent-hover: #52CBB6; --accent-text: #3FBFA9; --accent-ink: #0A1A17;
    --accent-soft: #143A35; --danger: #F28B82; --ok: #81C995; --veil: rgba(14, 23, 38, .6); --veil-m: rgba(14, 23, 38, .8); --veil-m: rgba(14, 23, 38, .8);
    --header-bg: rgba(14, 23, 38, .78); --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --hero-img: url("/assets/img/hero-poster-dark.jpg"); color-scheme: dark;
  }
}
@media (min-width: 768px) { :root { --gutter: 32px; --header-h: 76px; } }

/* === 2. RESET ======================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font-family: var(--f-text);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
@media (min-width: 768px) { body { font-size: 17px; } }
img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent-soft); color: var(--ink); }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 18px; height: 18px; }
.icon--lg { width: 32px; height: 32px; }

/* === 3. TIPOGRAFÍA =================================================== */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.08; margin: 0 0 .5em;
  font-variation-settings: "SOFT" 50; color: var(--ink); text-wrap: balance; }
h1, .h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.02em; font-weight: 560; }
h2, .h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.015em; font-weight: 560; }
h3, .h3 { font-size: clamp(21px, 1.4vw + 14px, 24px); line-height: 1.2; letter-spacing: -0.005em; }
h4 { font-size: 19px; line-height: 1.3; }
.eyebrow { display: inline-block; font: 600 13px/1.3 var(--f-text); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.hand { font-family: var(--f-hand); font-weight: 600; font-style: normal; color: var(--accent); font-size: 1.22em; line-height: .8;
  letter-spacing: 0; display: inline-block; transform: rotate(-2deg); margin-left: -.06em; }
.num { font-family: var(--f-display); font-weight: 600; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.02em; }
.note { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); margin-top: 12px; }
.note::before { content: ""; display: inline-block; width: 14px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 8px; }
.prose { max-width: 68ch; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2em; margin-bottom: 1em; }
.prose li { margin-bottom: .4em; }

/* === 4. LAYOUT ======================================================= */
.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(780px + var(--gutter) * 2); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--alt { background: var(--bg-3); }
/* Banda tinta: oscura en ambos temas (manifiesto, CTA final) */
.section--ink { --bg: #101B2D; --bg-2: #18253B; --bg-3: #1C2A40; --ink: #F3F1EA; --ink-2: #B7BDC9; --line: #2A3A54;
  --accent: #3FBFA9; --accent-hover: #52CBB6; --accent-text: #3FBFA9; --accent-ink: #0A1A17; --accent-soft: #143A35;
  background: var(--bg); color: var(--ink); }
[data-theme="dark"] .section--ink { --bg: #08101C; }
.section__head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head--center { margin-inline: auto; text-align: center; }
.grid { display: grid; gap: 24px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid > * { grid-column: 1 / -1; }
.cols-2, .cols-3, .cols-4 { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; }
  .span-4 { grid-column: span 4; } .span-8 { grid-column: span 8; }
}
.stack > * + * { margin-top: var(--stack, 16px); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* === 5. SKIP LINK ==================================================== */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: var(--radius-s); font-weight: 600; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* === 6. HEADER (fijo, translúcido) =================================== */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  background: var(--header-bg); -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand__name { font-family: var(--f-display); font-weight: 600; font-size: 24px; letter-spacing: .04em; line-height: 1; }
.brand__tag { display: none; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
@media (min-width: 1320px) { .brand__tag { display: inline; } }
.nav { display: none; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 2px; position: relative; }
.nav a::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: 2px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
@media (min-width: 1024px) { .nav { display: flex; gap: 22px; align-items: center; } }
.site-header .header-cta { display: none; }
@media (min-width: 480px) { .site-header .header-cta { display: inline-flex; } }
.icon-btn { flex: none; width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--ink); transition: background .2s, border-color .2s; }
.icon-btn:hover { background: var(--bg-3); }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.menu-toggle { display: inline-grid; }
@media (min-width: 1024px) { .menu-toggle { display: none; } }
/* Menú móvil */
.mobile-nav { position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99; background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter) 24px; box-shadow: var(--shadow-lg); }
.mobile-nav a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none;
  font-family: var(--f-display); font-size: 22px; }
.mobile-nav .btn { margin-top: 20px; }
@media (min-width: 1024px) { .mobile-nav { display: none !important; } }
main { display: block; }
.page-offset { padding-top: var(--header-h); }

/* === 7. BOTONES ====================================================== */
.btn { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 14px 24px;
  border-radius: var(--radius-m); border: 1px solid var(--btn-bd); background: var(--btn-bg); color: var(--btn-fg);
  font: 600 16px/1.2 var(--f-text); text-decoration: none; text-align: center; white-space: nowrap;
  transition: background-color .16s ease, transform .14s var(--ease-out), box-shadow .16s var(--ease-out), border-color .16s ease, color .16s ease;
  -webkit-tap-highlight-color: transparent; }
.btn:hover { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translateY(-1px); } }
.btn:active { transform: scale(.98); transition-duration: .1s; }
.btn:focus-visible { outline: 1px solid var(--accent); outline-offset: 0; box-shadow: 0 0 0 4px var(--accent-soft); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn--primary, .btn--wa { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); }
.btn--primary, .btn--wa { box-shadow: 0 1px 2px rgba(16,27,45,.12); }
.btn--primary:hover, .btn--wa:hover { --btn-bg: var(--accent-hover); box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--accent) 70%, #000); }
.btn--primary:active, .btn--wa:active { box-shadow: 0 1px 2px rgba(16,27,45,.18); }
.btn--secondary { --btn-bd: var(--ink); --btn-fg: var(--ink); }
.btn--secondary:hover { --btn-bg: var(--ink); --btn-fg: var(--bg); }
.btn--ghost { --btn-fg: var(--accent); padding-inline: 4px; min-height: 44px; }
.btn--ghost:hover { text-decoration: underline; transform: none; }
.btn--ghost:active { transform: scale(.98); }
.btn--sm { min-height: 40px; padding: 9px 16px; font-size: 15px; }
.btn--lg { min-height: 56px; padding: 16px 28px; font-size: 17px; }
.btn--block { width: 100%; }
.btn .icon { width: 20px; height: 20px; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.btn.is-loading .icon { display: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--accent); }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
@keyframes spin { to { transform: rotate(360deg); } }

/* WhatsApp flotante (móvil y desktop), etiqueta aparece tras 3 s (app.js añade .is-labeled) */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: inline-flex; align-items: center; gap: 0;
  height: 56px; min-width: 56px; padding: 0 16px; border-radius: 28px; background: var(--accent); color: var(--accent-ink);
  text-decoration: none; font-weight: 600; box-shadow: 0 12px 30px -10px rgba(16,27,45,.45); transition: gap .3s var(--ease), padding .3s var(--ease), transform .2s; }
.wa-float .icon { width: 24px; height: 24px; }
.wa-float__label { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .4s var(--ease); }
.wa-float.is-labeled { gap: 10px; padding: 0 20px 0 16px; }
.wa-float.is-labeled .wa-float__label { max-width: 220px; }
.wa-float:hover { transform: translateY(-2px); }
.wa-float:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
body.has-consent-open .wa-float { bottom: 140px; }

/* === 8. HERO CINEMÁTICO ============================================== */
.hero { position: relative; min-height: 92vh; min-height: 92svh; display: flex; align-items: center; overflow: hidden;
  padding-top: calc(var(--header-h) + 40px); padding-bottom: 72px; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; background: var(--bg) var(--hero-img) center right / cover no-repeat; }
.hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__media.is-parallax { will-change: transform; }
/* Velo: fuerte a la izquierda (texto), ligero a la derecha (imagen) */
.hero__veil { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--bg) 0%, var(--veil) 48%, transparent 100%),
              linear-gradient(0deg, var(--bg) 0%, transparent 22%); }
@media (max-width: 767px) { .hero__veil { background: linear-gradient(0deg, var(--bg) 4%, var(--veil-m) 55%, var(--veil) 100%); } }
.hero__inner { width: 100%; }
.hero__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: 64px; } }
.hero__title { font-size: clamp(42px, 7vw, 84px); line-height: 1.02; letter-spacing: -0.025em; margin-bottom: 24px; }
.hero__title .line { display: block; }
.hero__title .line--2 { color: var(--ink-2); font-weight: 420; font-style: italic; }
.hero__sub { font-size: clamp(18px, 1.7vw, 21px); color: var(--ink-2); max-width: 54ch; margin-bottom: 32px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .hero__ctas .btn { width: 100%; } }
.hero__fine { margin-top: 18px; font-size: 14px; color: var(--ink-2); }
/* Reveal escalonado del hero: al cargar (app.js añade .is-ready al body) */
/* Coreografía: eyebrow → título por líneas → sub → CTAs; 70 ms de stagger. CSS puro: si app.js falla, igual se ve. */
.hero [data-hero-step] { animation: heroIn 760ms var(--ease) both; animation-delay: calc(var(--i, 0) * var(--stagger) + 80ms); }
.hero__title .line[data-hero-step] { animation-name: heroLine; animation-duration: 900ms; }
.hero .folio[data-hero-step] { animation-name: heroFolio; animation-duration: 1000ms; animation-delay: 420ms; }
@keyframes heroIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes heroLine { from { opacity: 0; transform: translateY(.35em); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(-.2em -.2em -.3em -.2em); } }
@keyframes heroFolio { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
/* La palabra manuscrita se "escribe" una sola vez, de izquierda a derecha, después del título */
.hero .hand { clip-path: inset(-30% -8% -30% -8%); animation: handWrite 1100ms cubic-bezier(.45, .05, .25, 1) both; animation-delay: 760ms; }
@keyframes handWrite { from { clip-path: inset(-30% 100% -30% -8%); } to { clip-path: inset(-30% -8% -30% -8%); } }
.hero__scroll { display: none !important; } /* scroll cue retirado (diseno-wow §8) */
/* Hero compacto para páginas internas */
.hero--page { min-height: auto; padding-top: calc(var(--header-h) + clamp(48px, 8vw, 104px)); padding-bottom: clamp(48px, 7vw, 88px); }

/* Folio: documento "Tu estrategia en 5 números" (hero de home y reutilizable) */
.folio { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px 28px 22px;
  box-shadow: var(--shadow-lg); position: relative; }
.folio::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--line); border-radius: calc(var(--radius-l) - 6px); pointer-events: none; opacity: .6; }
.folio__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.folio__title { font-family: var(--f-display); font-size: 20px; font-weight: 600; margin: 0; }
.folio__id { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.folio__list { list-style: none; counter-reset: f; }
.folio__list li { counter-increment: f; display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: baseline;
  padding: 12px 0; border-top: 1px dashed var(--line); font-size: 15px; }
.folio__list li::before { content: counter(f, decimal-leading-zero); font-family: var(--f-display); font-size: 14px; color: var(--accent); font-variant-numeric: tabular-nums; }
.folio__list .k { color: var(--ink); font-weight: 500; }
.folio__list .v { color: var(--ink-2); font-size: 13px; text-align: right; }
@media (max-width: 559px) {
  .folio { padding: 22px 20px 18px; }
  .folio__id { display: none; }
  .folio__list li { grid-template-columns: 28px 1fr; row-gap: 2px; padding: 10px 0; }
  .folio__list .v { grid-column: 2; text-align: left; }
}
.folio__foot { margin-top: 10px; font-size: 12.5px; color: var(--ink-2); }

/* === 9. FRANJA DE CONFIANZA ========================================== */
.trust { border-block: 1px solid var(--line); background: var(--bg); }
.trust__list { list-style: none; display: grid; grid-template-columns: 1fr; }
.trust__item { display: flex; gap: 14px; align-items: center; padding: 20px 0; color: var(--ink); font-weight: 500; font-size: 15px; line-height: 1.35; }
.trust__item + .trust__item { border-top: 1px solid var(--line); }
.trust__item .icon { color: var(--accent); }
@media (min-width: 768px) {
  .trust__list { grid-template-columns: repeat(2, 1fr); }
  .trust__item + .trust__item { border-top: 0; }
  .trust__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (min-width: 1024px) {
  .trust__list { grid-template-columns: repeat(4, 1fr); }
  .trust__item { padding: 26px 24px; }
  .trust__item:first-child { padding-left: 0; }
  .trust__item:nth-child(n+3) { border-top: 0; }
  .trust__item + .trust__item { border-left: 1px solid var(--line); }
}

/* === 10. TARJETAS ==================================================== */
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 28px; }
.card--lg { border-radius: var(--radius-l); padding: clamp(24px, 4vw, 44px); }
/* Tarjeta de producto: sin sombra en reposo, sombra al hover */
.card-producto { position: relative; display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius-m); padding: 28px; min-height: 100%; transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s; }
.card-producto:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.card-producto__icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 22px; }
.card-producto .eyebrow { margin-bottom: 8px; }
.card-producto h3 { margin-bottom: 10px; }
.card-producto p { color: var(--ink-2); margin-bottom: 22px; }
.card-producto .link-arrow { margin-top: auto; }
.card-producto .link-arrow::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* toda la tarjeta clicable */
.card-producto--feature { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.card-producto--feature h3, .card-producto--feature .link-arrow { color: var(--bg); }
.card-producto--feature p { color: color-mix(in srgb, var(--bg) 78%, var(--ink)); }
.card-producto--feature .eyebrow { color: color-mix(in srgb, var(--accent-soft) 85%, var(--bg)); }
.card-producto--feature .card-producto__icon { background: rgba(255,255,255,.08); color: var(--bg); }
[data-theme="dark"] .card-producto--feature { background: var(--accent-soft); color: var(--ink); border-color: var(--accent-soft); }
[data-theme="dark"] .card-producto--feature h3, [data-theme="dark"] .card-producto--feature .link-arrow { color: var(--ink); }
[data-theme="dark"] .card-producto--feature p { color: var(--ink-2); }
[data-theme="dark"] .card-producto--feature .eyebrow { color: var(--accent); }
.products { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .products { grid-template-columns: repeat(6, 1fr); }
  .products > :nth-child(1) { grid-column: span 3; } .products > :nth-child(2) { grid-column: span 3; }
  .products > :nth-child(n+3) { grid-column: span 2; }
}

/* === 11. PASOS (Cómo trabajamos) ===================================== */
.steps { list-style: none; display: grid; gap: 0; grid-template-columns: 1fr; counter-reset: step; }
.step { position: relative; padding: 28px 0 28px 72px; border-top: 1px solid var(--line); }
.step__num { position: absolute; left: 0; top: 26px; font-family: var(--f-display); font-size: 44px; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.step__icon { color: var(--ink); margin-bottom: 14px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-2); margin: 0; }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
  .step { padding: 32px 0 0; }
  .step__num { position: static; display: block; margin-bottom: 18px; font-size: 56px; }
}

/* === 12. ANA (asistente virtual) ===================================== */
.ana { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1024px) { .ana { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; } }
.ana__card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(20px, 3.5vw, 36px); box-shadow: var(--shadow); }
.ana__who { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.ana__avatar { width: 64px; height: 64px; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--ink); display: grid; place-items: center; overflow: hidden; position: relative; }
.ana__avatar svg { width: 100%; height: 100%; }
.ana__avatar::after { content: ""; position: absolute; right: 3px; bottom: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg-2); }
.ana__name { font-family: var(--f-display); font-weight: 600; font-size: 20px; line-height: 1.1; margin: 0; }
.ana__badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.ana__bubble { background: var(--bg-3); border-radius: 4px var(--radius-m) var(--radius-m) var(--radius-m); padding: 16px 18px; font-size: 17px; margin-bottom: 20px; max-width: 46ch; }
.ana__bubble p:last-child { margin: 0; }
.ana__options { display: grid; gap: 10px; }
.ana__option { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 14px 18px; text-align: left;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-m); color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: 16px; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.ana__option .icon { color: var(--accent); }
.ana__option .chev { margin-left: auto; color: var(--ink-2); transition: transform .2s var(--ease), color .2s; }
.ana__option:hover { border-color: var(--accent); background: var(--accent-soft); text-decoration: none; }
.ana__option:hover .chev { transform: translateX(3px); color: var(--accent); }
.ana__disclaimer { font-size: 13px; color: var(--ink-2); margin: 16px 0 0; }
/* Escritura simulada (tres puntos) */
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-2); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* === 13. COMPARATIVO (por qué un asesor) ============================= */
.versus { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; background: var(--bg-2); }
.versus__row { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.versus__row:first-child { border-top: 0; }
.versus__cell { padding: 20px 24px; }
.versus__cell--app { color: var(--ink-2); font-size: 15px; background: var(--bg-3); }
.versus__cell--app::before { content: "Una app: "; font-weight: 600; }
.versus__cell--us { display: flex; gap: 12px; align-items: flex-start; }
.versus__cell--us .icon { color: var(--accent); margin-top: 2px; }
.versus__cell--us strong { display: block; font-family: var(--f-display); font-weight: 600; font-size: 19px; margin-bottom: 2px; }
.versus__cell--us span { color: var(--ink-2); }
.versus__head { display: none; }
@media (min-width: 768px) {
  .versus__row { grid-template-columns: .8fr 1.2fr; }
  .versus__cell--app::before { content: none; }
  .versus__head { display: grid; grid-template-columns: .8fr 1.2fr; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--ink-2); }
  .versus__head > div { padding: 14px 24px; border-bottom: 1px solid var(--line); }
  .versus__head > div:first-child { background: var(--bg-3); }
}

/* === 14. MANIFIESTO (frases de concientización) ====================== */
.manifesto { list-style: none; }
.manifesto__item { display: grid; grid-template-columns: 1fr; gap: 10px; padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--line); }
.manifesto__item:last-child { border-bottom: 1px solid var(--line); }
.manifesto__n { font-family: var(--f-display); color: var(--accent); font-size: 15px; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.manifesto__q { font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 3.6vw, 46px); line-height: 1.15; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
.manifesto__q em { font-style: italic; color: var(--accent); }
@media (min-width: 1024px) { .manifesto__item { grid-template-columns: 120px 1fr; gap: 24px; align-items: baseline; } }

/* === 15. FAQ ========================================================= */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-family: var(--f-display); font-size: clamp(19px, 2vw, 22px); font-weight: 500; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq summary:hover { color: var(--accent); }
.faq__a { padding: 0 0 24px; color: var(--ink-2); max-width: 70ch; }
.faq__a p:last-child { margin: 0; }

/* === 16. CTA FINAL =================================================== */
.cta-final { text-align: center; }
.cta-final h2 { font-size: clamp(34px, 5vw, 60px); max-width: 18ch; margin-inline: auto; }
.cta-final .lead { margin: 0 auto 32px; }
.cta-final .row { justify-content: center; }

/* === 17. FOOTER ====================================================== */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding: 64px 0 32px; font-size: 15px; }
.footer__grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__brand .brand__name { font-size: 28px; }
.footer__brand p { color: var(--ink-2); margin-top: 12px; max-width: 38ch; }
.footer__title { font: 600 12.5px/1.3 var(--f-text); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 14px; }
.footer__links { list-style: none; display: grid; gap: 10px; }
.footer__links a { color: var(--ink); text-decoration: none; }
.footer__links a:hover { color: var(--accent); text-decoration: underline; }
.footer__legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 13px; line-height: 1.55; display: grid; gap: 10px; }

/* === 18. FORMULARIOS: field, input, chip ============================= */
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label, .label { font-weight: 600; font-size: 15px; color: var(--ink); }
.field .hint { font-size: 13.5px; color: var(--ink-2); margin: -2px 0 0; }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 12px 14px; background: var(--bg-3); border: 1px solid var(--line);
  border-radius: var(--radius-s); color: var(--ink); font-size: 16px; transition: border-color .2s, box-shadow .2s, background .2s; }
.textarea { min-height: 110px; resize: vertical; }
.input::placeholder { color: color-mix(in srgb, var(--ink-2) 75%, transparent); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--bg-2); }
.field.is-invalid .input, .input[aria-invalid="true"] { border-color: var(--danger); }
.field.is-valid .input { border-color: var(--ok); }
.field__error { color: var(--danger); font-size: 14px; font-weight: 500; margin: 0; min-height: 0; }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix__tag { display: grid; place-items: center; padding: 0 12px; background: var(--bg-3); border: 1px solid var(--line); border-right: 0;
  border-radius: var(--radius-s) 0 0 var(--radius-s); color: var(--ink-2); font-weight: 600; font-size: 15px; }
.input-prefix .input { border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 1px 0 0; border: 1.5px solid var(--ink-2);
  border-radius: 5px; background: var(--bg-2); display: grid; place-items: center; cursor: pointer; transition: background .15s, border-color .15s; }
.check input::after { content: ""; width: 6px; height: 11px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); opacity: 0; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { opacity: 1; }
.check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.check + .check, .check--opt { margin-top: 10px; }
.check .small { font-size: 12.5px; line-height: 1.45; color: var(--ink-3, var(--ink-2)); }
/* Chips grandes (1 toque en móvil) */
.chips { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .chips--2 { grid-template-columns: repeat(2, 1fr); } }
.chip { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 14px 18px; text-align: left;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-m); color: var(--ink); font-weight: 600; font-size: 16px; line-height: 1.3;
  transition: border-color .15s, background .15s, transform .15s var(--ease); }
.chip::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--bg-2); transition: border .15s, background .15s; }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"], .chip.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.chip[aria-pressed="true"]::before, .chip.is-selected::before { border: 6px solid var(--accent); }
.chip:active { transform: scale(.99); }
.chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* === 19. WIZARD (formulario multistep) =============================== */
.wizard { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(20px, 4vw, 40px); box-shadow: var(--shadow); position: relative; }
.wizard__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; min-height: 44px; }
.wizard__count { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.wizard__back { background: none; border: 0; padding: 10px 0; color: var(--ink-2); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.wizard__back:hover { color: var(--accent); }
.wizard__back .icon { transform: rotate(180deg); width: 18px; height: 18px; }
.wizard__progress { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; margin-bottom: 28px; }
.wizard__bar { height: 100%; width: 100% !important; background: var(--accent); border-radius: inherit; transform: scaleX(var(--p, 0)); transform-origin: left center;
  transition: transform .5s var(--ease-out); }
.wizard [data-step] { animation: stepIn .45s var(--ease); }
.wizard [data-step]:not(.is-active) { display: none; }
.wizard__q { font-family: var(--f-display); font-size: clamp(24px, 3vw, 32px); font-weight: 500; line-height: 1.18; margin: 0 0 8px; letter-spacing: -0.01em; }
.wizard__help { color: var(--ink-2); margin: 0 0 22px; font-size: 15px; }
.wizard__actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 20px; }
.wizard__legal { font-size: 13px; color: var(--ink-2); margin-top: 16px; }
.wizard fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.wizard legend { padding: 0; }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

/* === 20. ESTADOS: loading / error / success / empty ================== */
.state { border-radius: var(--radius-m); padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.state .icon { margin-top: 1px; }
.state--loading { background: var(--bg-3); color: var(--ink-2); }
.state--loading::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--accent); border-right-color: transparent; animation: spin .7s linear infinite; }
.state--error { background: color-mix(in srgb, var(--danger) 10%, var(--bg-2)); color: var(--ink); border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent); }
.state--error .icon { color: var(--danger); }
.state--success { background: color-mix(in srgb, var(--ok) 10%, var(--bg-2)); color: var(--ink); border: 1px solid color-mix(in srgb, var(--ok) 45%, transparent); }
.state--success .icon { color: var(--ok); }
.state__body > * + * { margin-top: 10px; }
.state__title { font-weight: 700; margin: 0; }

/* === 21. CALCULADORA ================================================= */
.calc { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(20px, 4vw, 40px); box-shadow: var(--shadow); }
.calc__grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .calc__grid { grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; } }
.calc__label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; margin-bottom: 14px; }
.calc__value { font-family: var(--f-display); font-size: 22px; font-variant-numeric: tabular-nums; color: var(--ink); }
.calc__result { background: var(--bg-3); border-radius: var(--radius-m); padding: 24px; }
.calc__big { font-family: var(--f-display); font-weight: 600; font-size: clamp(40px, 6vw, 64px); line-height: 1; color: var(--accent);
  font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.02em; margin: 6px 0 10px; display: block; }
.calc__options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc__opt { padding: 16px; border-radius: var(--radius-m); border: 1px solid var(--line); background: var(--bg-2); text-align: left; }
.calc__opt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.calc__opt .num { font-size: 22px; display: block; }
.calc__opt small { color: var(--ink-2); font-size: 13px; }
/* Slider estilizado */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; --pct: 50%; }
.range:focus { outline: none; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--accent) var(--pct), var(--line) var(--pct)); }
.range::-moz-range-track { height: 6px; border-radius: 6px; background: var(--line); }
.range::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--accent); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: var(--accent);
  border: 4px solid var(--bg-2); box-shadow: 0 2px 8px rgba(16,27,45,.25); transition: transform .15s; }
.range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); border: 4px solid var(--bg-2); box-shadow: 0 2px 8px rgba(16,27,45,.25); }
.range:active::-webkit-slider-thumb { transform: scale(1.1); }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--accent-soft), 0 0 0 5px var(--accent); }
.range__scale { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-2); margin-top: 4px; font-variant-numeric: tabular-nums; }

/* === 22. BANNER DE COOKIES (consent) ================================= */
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 120; max-width: 520px; margin-left: auto;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: var(--shadow-lg);
  padding: 16px 18px; display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; font-size: 14.5px; animation: stepIn .4s var(--ease); }
.consent p { margin: 0; flex: 1 1 220px; color: var(--ink); }
.consent .row { gap: 8px; }

/* === 23. PÁGINAS DE GRACIAS / 404 ==================================== */
.next-steps { list-style: none; display: grid; gap: 0; counter-reset: ns; }
.next-steps li { counter-increment: ns; display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.next-steps li::before { content: counter(ns); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
  font-family: var(--f-display); font-weight: 600; }
.next-steps strong { display: block; font-size: 17px; }
.next-steps span { color: var(--ink-2); font-size: 15px; }
.links-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .links-grid { grid-template-columns: repeat(3, 1fr); } }
.link-card { display: block; padding: 22px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-m); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s var(--ease); }
.link-card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.link-card .eyebrow { margin-bottom: 6px; }
.link-card strong { display: block; font-family: var(--f-display); font-weight: 600; font-size: 19px; line-height: 1.25; margin-bottom: 8px; }
.link-card span { color: var(--ink-2); font-size: 14.5px; }
.big-code { font-family: var(--f-display); font-size: clamp(96px, 18vw, 200px); line-height: .9; color: var(--accent); letter-spacing: -0.04em; font-weight: 400; margin: 0 0 10px; }

/* === 24. PRINCIPIOS / LISTAS DECORADAS =============================== */
.principles { list-style: none; display: grid; gap: 0; }
.principles li { padding: 26px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
@media (min-width: 900px) { .principles li { grid-template-columns: 1fr 1.4fr; gap: 40px; } }
.principles h3 { margin: 0; }
.principles p { color: var(--ink-2); margin: 0; }
.checklist { list-style: none; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { color: var(--accent); margin-top: 2px; width: 20px; height: 20px; }

/* === 25. REVEAL (scroll, una sola vez) =============================== */
/* Solo se oculta lo que app.js "arma" (bajo el pliegue al cargar). En reposo, sin JS o al imprimir, todo se lee. */
.reveal.is-armed { opacity: 0; transform: translateY(16px); }
.reveal.is-armed.is-in { opacity: 1; transform: none; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: calc(var(--i, 0) * var(--stagger)); }

/* === 26. UTILIDADES ================================================== */
.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: initial; } .hide-desktop { display: none; } }
.text-accent { color: var(--accent); }
.maxw-50 { max-width: 50ch; } .maxw-60 { max-width: 60ch; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.divider-label { display: flex; align-items: center; gap: 14px; color: var(--ink-2); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.divider-label::before, .divider-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* === 27. PASADA WOW v2: pulido + motion (MOTION 6) ================== */
/* 27.1 Ritmo y medida */
.section__head h2 { margin-bottom: .45em; }
.section__head .lead { margin-bottom: 0; }
.card-producto p, .faq__a, .step p, .prose { max-width: 65ch; }
.eyebrow { margin-left: .02em; } /* alineación óptica con el titular serif */
.num, .calc__big, .calc__value, .folio .v, .hc-num { font-variant-numeric: tabular-nums lining-nums; }

/* Texto pequeño en acento sobre bandas alternas: tono AA */
.section--alt .eyebrow, .section--alt .link-arrow, .section--alt .wizard__count, .calc .eyebrow { color: var(--accent-text); }
.section--alt a:not(.btn):not(.ana__option):not(.link-card) { color: var(--accent-text); }
@media (pointer: coarse) { .btn--sm { min-height: 44px; } }

/* 27.2 Tarjeta de producto: icono sin tile, arriba a la derecha (no "icono en tile sobre heading") */
.card-producto { padding-top: 30px; }
.card-producto__icon { position: absolute; top: 26px; right: 26px; width: auto; height: auto; margin: 0; background: none !important; border-radius: 0; color: var(--accent); }
.card-producto--feature .card-producto__icon { color: color-mix(in srgb, var(--bg) 80%, var(--accent)); }
[data-theme="dark"] .card-producto--feature .card-producto__icon { color: var(--accent); }
.card-producto .eyebrow { padding-right: 40px; }
@media (hover: none) { .card-producto:hover { transform: none; box-shadow: none; } }
.card-producto:active { transform: scale(.995); }

/* 27.3 Chips: micro-feedback al seleccionar (punto que late + borde) */
.chip { transition: border-color .15s ease, background-color .15s ease, transform .14s var(--ease-out), box-shadow .16s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .chip:hover { box-shadow: 0 4px 14px -8px rgba(16,27,45,.35); } }
.chip:active { transform: scale(.98); }
.chip[aria-pressed="true"]::before, .chip.is-selected::before { animation: chipDot .32s var(--ease-out); }
.chip[aria-pressed="true"], .chip.is-selected { animation: chipPop .26s var(--ease-out); }
@keyframes chipDot { 0% { transform: scale(.55); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes chipPop { 0% { transform: scale(.985); } 100% { transform: scale(1); } }
.calc__opt { transition: border-color .15s ease, background-color .15s ease, transform .14s var(--ease-out); }
.calc__opt:active { transform: scale(.98); }
.ana__option:active, .link-card:active { transform: scale(.99); }

/* 27.4 Valor que "late" al cambiar (sliders y salidas de calculadora) */
.is-beat { display: inline-block; animation: beat .22s var(--ease-out); }
@keyframes beat { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }
.range::-webkit-slider-thumb { transition: transform .14s var(--ease-out), box-shadow .16s ease; }
.range:hover::-webkit-slider-thumb { transform: scale(1.06); }

/* 27.5 Cómo trabajamos: los 3 pasos se iluminan con el scroll (app.js añade .is-live y .is-lit) */
.steps { position: relative; }
.steps.is-live::before { content: ""; position: absolute; background: var(--accent); transform-origin: left top; transition: transform .7s var(--ease-out); z-index: 1; }
@media (max-width: 1023px) { .steps.is-live::before { left: 0; top: 0; width: 2px; height: 100%; transform: scaleY(var(--lit, 0)); } }
@media (min-width: 1024px) { .steps.is-live::before { left: 0; top: -1px; height: 2px; width: 100%; transform: scaleX(var(--lit, 0)); } }
.steps.is-live .step__num, .steps.is-live .step__icon { transition: opacity .5s var(--ease), transform .5s var(--ease), color .5s ease; }
.steps.is-live .step:not(.is-lit) .step__num { opacity: .28; transform: translateY(6px); }
.steps.is-live .step:not(.is-lit) .step__icon { opacity: .4; }
.steps.is-live .step.is-lit .step__num { opacity: 1; transform: none; }
@media (max-width: 1023px) { .steps.is-live .step { padding-left: 84px; } .steps.is-live .step__num { left: 18px; } }
@media (min-width: 1024px) {
  /* en fila entran juntos al viewport: se encienden en secuencia y la línea los recorre */
  .steps.is-live::before { transition-duration: 1.2s; }
  .steps.is-live .step__num, .steps.is-live .step__icon { transition-delay: calc(var(--i, 0) * 260ms + 120ms); }
}

/* 27.6 WhatsApp flotante: aparece al dejar atrás los CTAs del hero (nunca tapa el primer viewport) */
.wa-float { transition: gap .3s var(--ease-out), padding .3s var(--ease-out), transform .3s var(--ease-out), opacity .25s ease; }
.wa-float.is-away { opacity: 0; transform: translateY(16px) scale(.96); pointer-events: none; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
.wa-float:active { transform: scale(.97); }

/* 27.7 Menú móvil: entrada corta desde arriba */
.mobile-nav:not([hidden]) { animation: navIn .22s var(--ease-out); }
@keyframes navIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* 27.8 Header: sombra suave al hacer scroll */
.site-header.is-scrolled { box-shadow: 0 6px 20px -16px rgba(16,27,45,.35); }

/* 27.9 Contadores: ancho estable mientras cuentan */
[data-count-to] { font-variant-numeric: tabular-nums lining-nums; }

/* === 28. MOVIMIENTO REDUCIDO: todo colapsa a estático ================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal.is-armed, .hero [data-hero-step] { opacity: 1 !important; transform: none !important; }
  .hero .hand, .hero__title .line { clip-path: none !important; }
  .hero__media.is-parallax { transform: none !important; }
  .steps.is-live .step .step__num, .steps.is-live .step .step__icon { opacity: 1 !important; transform: none !important; }
  .btn:active, .chip:active { transform: none; }
}

/* === 29. IMPRESIÓN =================================================== */
@media print {
  .site-header, .wa-float, .consent, .hero__media, .hero__veil, .mobile-nav { display: none !important; }
  body { background: #fff; color: #000; }
  .section--ink { background: #fff; color: #000; }
  .reveal, .reveal.is-armed, .hero [data-hero-step] { opacity: 1 !important; transform: none !important; animation: none !important; }
  .hero .hand, .hero__title .line { clip-path: none !important; }
}

/* === 30. AJUSTES DE PÁGINAS INTERNAS ================================= */
/* h1 de .hero--page (diagnóstico, gracias, nosotros, landings) más contenido que el de la home */
.hero--page .h1 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.06; }

/* === marca: símbolo del arco (diseno/marca) === */
.brand__mark { width: 22px; height: 24px; margin-right: 10px; flex: 0 0 auto; color: var(--ink); vertical-align: middle; }
.brand { display: inline-flex; align-items: center; }
.site-footer .brand__mark { width: 18px; height: 20px; }
@media (max-width: 767px) { .brand__mark { width: 20px; height: 22px; margin-right: 8px; } }
