/* tastemaker: macro=conversational-front-door (hero=onboarding desk) · nav=quiet-split · how=pinned-stage+steps · cases=editorial-posters(staggered) · proof=role-ledger · faq=split-sticky · close=brand-plate(v12) · mood=warm/editorial (marca fija Legalin, sin paleta generada) · contraste: ver .tastemaker/style-lock.md · crítica: show 4 · philosophy 4 · hierarchy 4 · specificity 5 · restraint 4 · variety 4 */

@font-face {
  font-family: "Bricolage";
  src: url("../assets/fonts/bricolage-variable.woff2") format("woff2"), url("../assets/fonts/bricolage-variable.ttf") format("truetype");
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../assets/fonts/newsreader-italic-variable.woff2") format("woff2"), url("../assets/fonts/newsreader-italic-variable.ttf") format("truetype");
  font-weight: 200 800; font-style: italic; font-display: swap;
}

:root {
  --forest: #145c45;
  --forest-deep: #0f4a37;
  --mandarin: #ffb15e;
  --ivory: #fdf8ea;
  --shirt: #fffdf7;
  --ink: #183029;
  --paper: #f7f8f2;
  --graphite: #44464b;
  --line: rgba(24, 48, 41, .14);
  --line-strong: rgba(24, 48, 41, .28);
  --on-forest: #f7f8f2;
  --on-forest-muted: rgba(247, 248, 242, .74);

  --gutter: clamp(1rem, 4.5vw, 4.5rem);
  --max: 84rem;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --shadow-card: 0 1px 1px rgba(24, 48, 41, .04), 0 6px 14px -6px rgba(24, 48, 41, .10), 0 24px 48px -24px rgba(24, 48, 41, .18);

  --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-6: 1.5rem; --s-8: 2rem; --s-12: 3rem; --s-16: 4rem; --s-24: 6rem; --s-32: 8rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Bricolage", system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.55;
  font-variation-settings: "wght" 440, "wdth" 100, "opsz" 14;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
a { color: inherit; }
em { font-style: italic; }
h1, h2, h3 { margin: 0; font-weight: normal; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.shell { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: var(--s-4); top: -4rem; z-index: 50; background: var(--ink); color: var(--paper); padding: var(--s-2) var(--s-4); border-radius: 6px; }
.skip:focus { top: var(--s-4); }

.proposal-strip {
  font-size: .8125rem; text-align: center; padding: .45rem var(--gutter);
  background: var(--ink); color: var(--paper);
}

/* Títulos de sección: concepto Bricolage + matiz Newsreader */
.section-title {
  font-size: clamp(2.4rem, 5.2vw, 4.4rem); line-height: .98; letter-spacing: -.03em;
  font-variation-settings: "wght" 760, "wdth" 90, "opsz" 80;
}
.section-title em, .hero-title em {
  font-family: "Newsreader", Georgia, serif; font-weight: 600; letter-spacing: -.02em;
  font-variation-settings: "wght" 600, "opsz" 64;
}

/* ───────── Cabecera ───────── */
.top {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s-8);
  padding-block: var(--s-4);
}
.top-logo img { width: 8.5rem; }
.top-nav { display: flex; justify-content: center; gap: var(--s-8); font-size: .9375rem; }
.top-nav a, .top-wa, .top-explica { text-decoration: none; }
.top-actions { display: flex; align-items: center; gap: var(--s-3); }
.top-explica {
  display: inline-flex; align-items: center; min-height: 44px; padding: .55rem 1rem; border-radius: 999px; background: var(--forest); color: var(--on-forest);
  font-size: .9375rem; font-variation-settings: "wght" 650, "wdth" 100, "opsz" 14; transition: background-color .15s var(--ease), transform .12s var(--ease);
}
.top-explica:active { transform: scale(.96); }
.top-nav a { color: var(--graphite); transition: color .15s var(--ease); }
.top-wa {
  display: inline-flex; align-items: center; gap: .45rem; font-size: .9375rem;
  font-variation-settings: "wght" 600, "wdth" 100, "opsz" 14; font-variant-numeric: tabular-nums;
  padding: .55rem .9rem; border: 1px solid var(--line-strong); border-radius: 999px;
  transition: background-color .15s var(--ease), border-color .15s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .top-nav a:hover { color: var(--forest); }
  .top-wa:hover { background: var(--shirt); border-color: var(--forest); }
  .top-explica:hover { background: var(--forest-deep); }
}

/* ───────── Hero / mesa de entrada ───────── */
.hero {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem);
  align-items: start; padding-top: clamp(1.5rem, 4vw, 3.5rem); padding-bottom: var(--s-32);
}
/* El titular escala con el ancho real de su columna: «Nosotros te guiamos.» mide ~8,6 veces la letra y debe caber en una línea. */
.hero-text { container-type: inline-size; }
.hero-title {
  font-size: clamp(2.2rem, 11cqi, 6.2rem); line-height: .98; letter-spacing: -.035em;
  font-variation-settings: "wght" 780, "wdth" 86, "opsz" 96;
}
.hero-title .line { display: block; }
.hero-title em { position: relative; display: inline-block; color: var(--forest); padding-right: .06em; white-space: nowrap; }
/* Subrayado mandarina: trazo real que se dibuja (stroke-dashoffset), no un estirado */
.hero-title .ul { position: absolute; left: .02em; bottom: -.08em; width: calc(100% - .12em); height: .22em; overflow: visible; pointer-events: none; }
.hero-title .ul path {
  fill: none; stroke: var(--mandarin); stroke-width: 8; stroke-linecap: round; /* sin non-scaling-stroke: con pathLength, Chrome lo dibujaba como guiones */
  stroke-dasharray: 1; stroke-dashoffset: 0;
}
.hero-sub {
  margin-top: var(--s-6); max-width: 36ch; font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.45; color: var(--ink);
}

/* El avatar sobresale --guide-rise sobre la tarjeta; la mesa reserva ese alto + aire para no tapar la bajada. */
.desk { --guide-w: 6.5rem; --guide-rise: 4.25rem; position: relative; margin-top: calc(var(--guide-rise) + var(--s-4)); max-width: 40rem; }
.desk-guide { position: absolute; right: clamp(.75rem, 3vw, 2rem); top: calc(var(--guide-rise) * -1); width: var(--guide-w); z-index: 2; pointer-events: none; }
.desk-avatar { width: 100%; height: auto; }
.desk-card {
  position: relative; background: var(--shirt); border-radius: 20px; box-shadow: var(--shadow-card);
  outline: 1px solid var(--line); outline-offset: -1px; padding: var(--s-6) clamp(1.25rem, 3vw, 2rem) var(--s-8);
  min-height: 25rem;
}
.desk-head { display: flex; align-items: center; gap: var(--s-4); min-height: 2rem; padding-right: 6.5rem; }
.desk-back {
  display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .5rem .35rem .2rem; margin-left: -.2rem;
  background: none; border: 0; border-radius: 6px; cursor: pointer; font-size: .875rem; color: var(--graphite);
  transition: color .15s var(--ease);
}
.desk-back[hidden] { display: none; }
.desk-progress { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5px; margin: 0; padding: 0; list-style: none; }
.desk-progress li { height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.desk-progress li::before { content: ""; display: block; height: 100%; background: var(--forest); transform: scaleX(.001); transform-origin: left; transition: transform .3s var(--ease-out); } /* barra de progreso: crece desde la izquierda */
.desk-progress li.is-done::before { transform: scaleX(1); }
.desk-count { font-size: .8125rem; color: var(--graphite); font-variant-numeric: tabular-nums; min-width: 2.2rem; text-align: right; }

/* «Escribiendo…»: solo en la entrada, ocupa el lugar del globo para no mover el layout */
.desk-say-wrap { position: relative; }
.desk-typing {
  position: absolute; top: 0; left: 0; display: flex; gap: 5px; align-items: center; margin-top: var(--s-6);
  padding: .85rem 1rem; border-radius: 14px 4px 14px 14px; background: var(--ivory);
}
.desk-typing[hidden] { display: none; }
.desk-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--forest); opacity: .35; animation: typing 1s var(--ease) infinite; }
.desk-typing span:nth-child(2) { animation-delay: .15s; }
.desk-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 100% { opacity: .35; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }

/* La voz de Legalin: globo que sale del avatar (arriba a la derecha) */
.desk-say {
  position: relative; width: fit-content; max-width: calc(100% - 5.5rem); margin-top: var(--s-6);
  padding: .6rem .95rem; border-radius: 14px 4px 14px 14px; background: var(--ivory);
  font-family: "Newsreader", Georgia, serif; font-style: italic; font-size: 1.125rem; line-height: 1.35;
  font-variation-settings: "wght" 520, "opsz" 24; color: var(--forest);
}
.desk-say::after {
  content: ""; position: absolute; top: 0; right: -9px; width: 10px; height: 12px; background: var(--ivory);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.desk-q {
  margin-top: var(--s-2); font-size: clamp(1.45rem, 2.4vw, 1.85rem); line-height: 1.15; letter-spacing: -.015em;
  font-variation-settings: "wght" 700, "wdth" 96, "opsz" 48;
}
.desk-q:focus { outline: none; }
.desk-body { margin-top: var(--s-6); }
.desk-anim { animation: deskIn .28s var(--ease-out) both; }
@keyframes deskIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.opts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.opt {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: 1rem .75rem 1rem .25rem; background: none; border: 0; border-bottom: 1px solid var(--line);
  text-align: left; cursor: pointer; font-size: 1.0625rem; line-height: 1.3;
  font-variation-settings: "wght" 560, "wdth" 100, "opsz" 16;
  transition: background-color .15s var(--ease);
}
.opt > span { transition: transform .2s var(--ease); }
.opt small { display: block; margin-top: .15rem; font-size: .875rem; color: var(--graphite); font-variation-settings: "wght" 420, "wdth" 100, "opsz" 14; }
.opt .ico { color: var(--forest); transition: transform .2s var(--ease); }
.opt:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) {
  .opt:hover { background: var(--ivory); }
  .opt:hover > span { transform: translateX(.5rem); }
  .opt:hover .ico { transform: translateX(3px); }
  .desk-back:hover { color: var(--forest); }
}

.field-label { display: block; font-size: .9375rem; font-variation-settings: "wght" 600, "wdth" 100, "opsz" 14; margin-bottom: var(--s-2); }
.desk textarea {
  width: 100%; min-height: 8.5rem; resize: vertical; padding: .85rem 1rem; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--paper); font: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.desk textarea:focus { outline: none; border-color: var(--forest); background: #fff; box-shadow: 0 0 0 3px rgba(20, 92, 69, .16); }
.field-meta a, .privacy a, .faq details a { color: var(--forest); text-underline-offset: .2em; }
.field-meta { display: flex; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-2); font-size: .8125rem; color: var(--graphite); }
.field-meta span:last-child { font-variant-numeric: tabular-nums; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-6); margin-top: var(--s-6); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3rem; padding: .8rem 1.35rem;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer; text-decoration: none; font-size: 1rem;
  font-variation-settings: "wght" 650, "wdth" 100, "opsz" 16;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), transform .12s var(--ease);
}
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--forest); color: var(--on-forest); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.text-btn {
  display: inline-flex; align-items: center; gap: .35rem; padding: .3rem 0; background: none; border: 0; cursor: pointer;
  font-variation-settings: "wght" 600, "wdth" 100, "opsz" 16; color: var(--forest);
  text-decoration: underline; text-decoration-color: rgba(20, 92, 69, .35); text-underline-offset: .25em; text-decoration-thickness: 1px;
  transition: text-decoration-color .15s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--forest-deep); }
  .btn-ghost:hover { border-color: var(--forest); background: var(--ivory); }
  .text-btn:hover { text-decoration-color: currentColor; }
}

/* Paso de precio: montos en pesos, ayuda y error junto al campo */
.field-help { font-size: .9375rem; color: var(--graphite); margin-bottom: var(--s-4); max-width: 46ch; }
.money-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.money-pair.is-single { grid-template-columns: minmax(0, 18rem); }
.money {
  display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--paper);
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.money:focus-within { border-color: var(--forest); background: #fff; box-shadow: 0 0 0 3px rgba(20, 92, 69, .16); }
.money span { padding-left: 1rem; color: var(--graphite); font-variation-settings: "wght" 600, "wdth" 100, "opsz" 14; }
.money input {
  flex: 1; min-width: 0; min-height: 48px; padding: .8rem 1rem .8rem .35rem; border: 0; background: transparent; outline: none;
  font: inherit; font-size: 1.0625rem; color: var(--ink); font-variant-numeric: tabular-nums;
}
.field-error { min-height: 1.4em; margin-top: var(--s-2); font-size: .9375rem; color: #5c465d; font-variation-settings: "wght" 600, "wdth" 100, "opsz" 14; }
.ficha dt small { display: block; font-size: .75rem; color: var(--forest); }

/* Ficha final */
.ficha { position: relative; margin-top: var(--s-2); padding: var(--s-6) var(--s-6) var(--s-4); background: var(--ivory); border-radius: 14px; }
.ficha-tag {
  position: absolute; top: -.7rem; left: 1.25rem; padding: .2rem .6rem; border-radius: 4px; background: var(--mandarin); color: var(--ink);
  font-size: .75rem; letter-spacing: .08em; font-variation-settings: "wght" 760, "wdth" 90, "opsz" 14;
}
.keyword-hint { margin-top: var(--s-4); font-size: .9375rem; color: var(--graphite); }
.deadline-note { margin-top: var(--s-3); padding-left: .75rem; border-left: 3px solid var(--mandarin); font-size: .9375rem; color: var(--ink); }
.keyword-hint strong { color: var(--ink); letter-spacing: .04em; font-variation-settings: "wght" 760, "wdth" 92, "opsz" 14; }
.ficha dl { margin: 0; display: grid; grid-template-columns: 8.5rem 1fr; }
.ficha dt, .ficha dd { margin: 0; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .9688rem; }
.ficha dt { color: var(--graphite); }
.ficha dd { font-variation-settings: "wght" 600, "wdth" 100, "opsz" 14; overflow-wrap: anywhere; }
.ficha dt:nth-last-of-type(1), .ficha dd:last-of-type { border-bottom: 0; }
.next-steps { margin: var(--s-6) 0 0; padding: 0; list-style: none; display: grid; gap: .5rem; counter-reset: n; }
.next-steps li { counter-increment: n; display: grid; grid-template-columns: 1.75rem 1fr; font-size: .9375rem; color: var(--graphite); }
.next-steps li::before { content: counter(n); font-family: "Newsreader", Georgia, serif; font-style: italic; font-variation-settings: "wght" 600, "opsz" 24; color: var(--forest); font-size: 1.05rem; }
.privacy { margin-top: var(--s-4); font-size: .8125rem; color: var(--graphite); }

/* Media del hero: marco de papel con borde irregular controlado */
.hero-media { margin: 0; position: relative; }
.paper-frame {
  position: relative; overflow: hidden; background: var(--ivory);
  clip-path: polygon(0.6% 1.2%, 22% 0.2%, 51% 0.9%, 78% 0%, 99.4% 0.8%, 100% 24%, 99.3% 52%, 100% 79%, 99.2% 99.1%, 74% 100%, 46% 99.2%, 19% 100%, 0.4% 99.4%, 0% 71%, 0.8% 43%, 0% 17%);
}
.hero-media .paper-frame { aspect-ratio: 3 / 4; }
.hero-video, .hero-still { width: 100%; height: 100%; object-fit: cover; }
.hero-media figcaption { margin-top: var(--s-4); font-size: .9375rem; color: var(--graphite); max-width: 34ch; }
.hero-media figcaption em, .poster-q, .plate-slogan {
  font-family: "Newsreader", Georgia, serif; font-style: italic; font-variation-settings: "wght" 600, "opsz" 64; color: var(--ink);
}

/* ───────── Cómo funciona ───────── */
.how { background: var(--forest); color: var(--on-forest); padding-block: var(--s-24) var(--s-32); }
.how-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 6rem); }
.how-stage { position: sticky; top: 12vh; align-self: start; }
.how-frame { aspect-ratio: 4 / 3; background: var(--forest-deep); }
.how-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s var(--ease); }
.how-img.is-on { opacity: 1; }
.how-stage-num { margin-top: var(--s-4); font-family: "Newsreader", Georgia, serif; font-style: italic; font-size: 1.5rem; font-variation-settings: "wght" 600, "opsz" 48; font-variant-numeric: tabular-nums; }
.how-num-total { color: var(--on-forest-muted); }
.how-text .section-title { color: var(--on-forest); }
.how-text .section-title em { color: var(--mandarin); }
.how-steps { margin: var(--s-12) 0 0; padding: 0; list-style: none; }
.how-step { min-height: 62vh; padding-top: var(--s-6); border-top: 1px solid rgba(247, 248, 242, .22); opacity: .45; transition: opacity .4s var(--ease); }
.how-step.is-on { opacity: 1; }
.how-step:last-child { min-height: 40vh; }
.how-step-n { font-family: "Newsreader", Georgia, serif; font-style: italic; font-size: 1.25rem; color: var(--mandarin); font-variation-settings: "wght" 600, "opsz" 24; }
.how-step h3 { margin-top: var(--s-2); font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.1; letter-spacing: -.015em; font-variation-settings: "wght" 720, "wdth" 92, "opsz" 64; }
.how-step p { margin-top: var(--s-3); max-width: 38ch; color: var(--on-forest-muted); font-size: 1.125rem; }

/* ───────── Situaciones ───────── */
.cases { padding-block: var(--s-32) var(--s-24); }
.cases-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--s-8); align-items: end; }
.cases-head p { color: var(--graphite); font-size: 1.125rem; max-width: 34ch; }
.posters { margin-top: var(--s-16); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); }
.poster:nth-child(2) { margin-top: var(--s-12); }
.poster-art { position: relative; container-type: inline-size; padding-bottom: 7cqi; }
.poster-art img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 4px; outline: 1px solid rgba(0, 0, 0, .1); outline-offset: -1px; }
.poster-word {
  position: absolute; left: -.04em; bottom: 0; line-height: .8; font-size: 19.5cqi; letter-spacing: -.035em; color: var(--forest);
  font-variation-settings: "wght" 800, "wdth" 75, "opsz" 96; white-space: nowrap; pointer-events: none;
}
.poster-q { margin-top: var(--s-6); font-size: clamp(1.45rem, 2.2vw, 1.8rem); line-height: 1.12; }
.poster > p { margin-top: var(--s-3); color: var(--graphite); }
.poster-go {
  margin-top: var(--s-4); display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 0; background: none; border: 0;
  border-bottom: 2px solid var(--mandarin); cursor: pointer; font-variation-settings: "wght" 650, "wdth" 100, "opsz" 16;
  transition: gap .2s var(--ease), border-color .15s var(--ease);
}
.poster-go .ico { color: var(--forest); }
@media (hover: hover) and (pointer: fine) { .poster-go:hover { gap: .7rem; border-color: var(--forest); } }
.cases-other { margin-top: var(--s-16); font-size: 1.125rem; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; }

/* ───────── Quién hace qué ───────── */
.roles { background: var(--ivory); padding-block: var(--s-24); }
.ledger { margin-top: var(--s-12); }
.ledger-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1.5fr); gap: var(--s-6); padding-block: 1.15rem; border-top: 1px solid var(--line); }
.ledger-row:last-child { border-bottom: 1px solid var(--line); }
.ledger-headrow { border-top: 0; padding-bottom: .6rem; font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--graphite); font-variation-settings: "wght" 600, "wdth" 100, "opsz" 12; align-items: end; }
.ledger-headrow span { display: flex; align-items: end; gap: .5rem; }
.ledger-face { width: 2.4rem; height: auto; margin-bottom: -.35rem; }
.ledger-row [role="rowheader"] { font-family: "Newsreader", Georgia, serif; font-style: italic; font-size: 1.2rem; font-variation-settings: "wght" 600, "opsz" 32; color: var(--forest); }
.ledger-row [role="cell"] { font-size: 1.0625rem; }
.muted { color: rgba(24, 48, 41, .4); }
.roles-note { margin-top: var(--s-8); max-width: 62ch; color: var(--graphite); font-size: .9688rem; }

/* ───────── Preguntas ───────── */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-12); padding-block: var(--s-24); }
.faq .section-title { position: sticky; top: 14vh; align-self: start; }
.faq-list { 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: var(--s-4);
  padding: 1.25rem .25rem; font-size: 1.1875rem; font-variation-settings: "wght" 620, "wdth" 98, "opsz" 20;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 1.75rem; height: 1.75rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--forest); font-size: 1.1rem; transition: transform .2s var(--ease), background-color .15s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--ivory); }
.faq details p { padding: 0 3rem 1.35rem .25rem; color: var(--graphite); max-width: 60ch; }

/* ───────── Placa de cierre (estándar v12) ───────── */
.plate { background: var(--paper); border-top: 1px solid var(--line); padding-block: var(--s-24) var(--s-24); text-align: center; }
.plate-inner { display: flex; flex-direction: column; align-items: center; }
.plate-logo { width: clamp(13rem, 22vw, 17rem); }
.plate-promise { margin-top: var(--s-6); font-size: clamp(1.125rem, 1.8vw, 1.375rem); max-width: 32ch; font-variation-settings: "wght" 560, "wdth" 100, "opsz" 20; }
.plate-cta { margin-top: var(--s-4); color: var(--forest); font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1; letter-spacing: -.03em; font-variation-settings: "wght" 760, "wdth" 90, "opsz" 80; }
.plate-phone {
  margin-top: var(--s-8); display: inline-flex; align-items: center; gap: .6rem; text-decoration: none;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-variant-numeric: tabular-nums; letter-spacing: -.01em; color: var(--ink);
  font-variation-settings: "wght" 700, "wdth" 100, "opsz" 48; padding: .4rem 1.4rem; border-radius: 999px; border: 2px solid var(--forest);
  transition: background-color .15s var(--ease), color .15s var(--ease), transform .12s var(--ease);
}
.plate-phone .ico { color: var(--forest); transition: color .15s var(--ease); }
.plate-phone:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) { .plate-phone:hover { background: var(--forest); color: var(--on-forest); } .plate-phone:hover .ico { color: var(--mandarin); } }
.plate-channels { margin-top: var(--s-4); display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem .75rem; color: var(--graphite); font-size: 1.0625rem; }
.plate-channels a { text-decoration: none; }
.plate-slogan { margin-top: var(--s-6); font-size: clamp(1.4rem, 2.4vw, 1.75rem); color: var(--forest); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4); padding-block: var(--s-8); border-top: 1px solid var(--line); font-size: .875rem; color: var(--graphite); }
.foot nav { display: flex; flex-wrap: wrap; gap: var(--s-6); }
.foot a { text-decoration: none; }

.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 60; transform: translateX(-50%); width: min(92vw, 30rem);
  padding: .9rem 1.2rem; border-radius: 14px; background: var(--ink); color: var(--paper); font-size: .9375rem; box-shadow: var(--shadow-card);
  animation: toastIn .25s var(--ease-out) both;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ───────── Responsive ───────── */
@media (max-width: 1080px) {
  .top-nav { display: none; }
  .top { grid-template-columns: auto 1fr; }
  .top-actions { justify-self: end; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-bottom: var(--s-24); }
  .hero-media { max-width: 30rem; }
  .how-stage { align-self: stretch; top: 0; z-index: 2; background: var(--forest); padding-bottom: var(--s-3); }
  .how-frame { aspect-ratio: 16 / 10; }
  .how-stage-num { display: none; }
  .how-steps { margin-top: var(--s-6); }
  .how-step { min-height: 46vh; }
  .cases-head, .faq { grid-template-columns: 1fr; }
  .posters { grid-template-columns: 1fr; gap: var(--s-12); }
  .poster:nth-child(2) { margin-top: 0; }
  .faq .section-title { position: static; }
}
@media (max-width: 900px) {
  .how-grid { display: flex; flex-direction: column; }
  .how-text { display: contents; }
  .how-text .section-title { order: -1; margin-bottom: var(--s-8); }
}
@media (max-width: 640px) {
  .top-logo img { width: 7rem; }
  .top-wa span { display: none; }
  .top-wa { padding: .6rem; }
  .desk { --guide-w: 5.25rem; --guide-rise: 3.4rem; }

  .desk-head { padding-right: 4.5rem; }
  .desk-say { max-width: calc(100% - 4rem); }
  .ficha dl { grid-template-columns: 1fr; }
  .ficha dt { padding-bottom: 0; border-bottom: 0; font-size: .8125rem; }
  .ficha dt small { display: inline; margin-left: .4rem; }
  .money-pair { grid-template-columns: 1fr; }
  .ficha dd { padding-top: .1rem; }
  .actions .btn { width: 100%; }
  .ledger-headrow { display: none; }
  .ledger-row { grid-template-columns: 1fr; gap: .35rem; }
  .ledger-row [role="cell"]::before { display: block; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--graphite); }
  .ledger-row [role="cell"]:nth-child(2)::before { content: "Legalin"; }
  .ledger-row [role="cell"]:nth-child(3)::before { content: "Tu abogado"; }
  .ledger-row .muted { display: none; }
  .faq details p { padding-right: .25rem; }
  .plate-phone { padding-inline: 1rem; }
}

/* ───────── Móvil: objetivos táctiles ≥44 px, ritmo de scroll y franja corta ───────── */
.opt, .btn, .poster-go, .text-btn, .faq summary { -webkit-tap-highlight-color: transparent; }
@media (max-width: 640px) {
  .ps-long { display: none; }
  .skip { min-height: 44px; display: inline-flex; align-items: center; }
  .top { padding-block: var(--s-2); }
  .top-logo { display: block; padding-block: .3rem; }
  .top-wa { width: 44px; height: 44px; justify-content: center; padding: 0; }
  .top-explica { padding-inline: .9rem; font-size: .875rem; }
  .top-actions { gap: var(--s-2); }
  .text-btn { min-height: 44px; }
  .opt { min-height: 56px; }
  .opt:active { background: var(--ivory); }
  .how-step { min-height: 34vh; }
  .how-step:last-child { min-height: 26vh; }
  .plate-channels { flex-direction: column; gap: 0; }
  .plate-channels span { display: none; }
  .plate-channels a { display: inline-block; padding: .6rem .5rem; }
  .foot { padding-block: var(--s-6); }
  .foot nav { gap: 0 var(--s-6); }
  .foot a { display: inline-block; padding-block: .75rem; }
}

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

/* ───────── Corrección móvil (3-nov-2026) ───────── */
/* Legalin pestañeando: WebP animado con transparencia (Safari no muestra la transparencia del WebM VP9 y la pinta negra). */
.desk-avatar-anim { width: 100%; height: auto; display: block; }
/* Carteles: sin unidades de contenedor, la palabra no debe crecer sobre la imagen. */
@supports not (font-size: 1cqi) { .poster-word { font-size: 4.5rem; } }
/* En una columna la palabra va bajo la imagen, sin superponerse ni moverse con el scroll. */
@media (max-width: 900px) {
  .poster-art { padding-bottom: 0; }
  .poster-word { position: static; display: block; margin-top: var(--s-3); font-size: clamp(2.75rem, 15vw, 5.25rem); transform: none !important; }
  .poster-q { margin-top: var(--s-3); }
}

/* Fase 0-B del embudo (4-nov-2026): aviso de autorización sobre el botón de envío de la mesa. */
.consent-note { margin-top: var(--s-6); font-size: .875rem; color: var(--ink); }
.consent-note a { color: var(--forest); text-underline-offset: .2em; }
.consent-note + .actions { margin-top: var(--s-3); }
.ficha-consent { margin: var(--s-3) 0 0; font-size: .8125rem; color: var(--graphite); }
