/* Cántaro — páginas públicas (venta y afiliados)
   Mismos tokens, tipos y formas que css/app.css: si cambian allí, cambiarlos aquí.
   Sin JS ni recursos de terceros: la página funciona con la política de seguridad más estricta. */

@font-face { font-family: "Young Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/young-serif.woff2) format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/newsreader.woff2) format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400 600; font-display: swap; src: url(../fonts/newsreader-italic.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/figtree.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --bg: #f2e9df; --bg-2: #e8dacb; --surface: #fbf6f0; --surface-2: #f5ece2;
  --ink: #2a1c15; --ink-2: #5e4a3e; --ink-3: #705b4e; --line: #e0cebd;
  --barro: #9f4c27; --barro-ink: #7c3719; --barro-soft: #f2dccb; --barro-deep: #5c2b17; --on-barro: #fff8f1;
  --agua: #2c7a74; --agua-ink: #1d5752; --agua-soft: #d6e8e3; --agua-light: #7fbfb5;
  --oro: #b8872b; --oro-ink: #7f5c14; --oro-soft: #f3e6c6;
  --alerta: #a3283a;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 .2 0 0 0 0 .12 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --shadow: 0 1px 2px rgb(60 30 15 / 7%), 0 10px 26px -14px rgb(60 30 15 / 28%);
  --shadow-l: 0 2px 4px rgb(60 30 15 / 6%), 0 24px 48px -24px rgb(60 30 15 / 34%);
  --hand: 20px 16px 22px 15px / 15px 22px 16px 20px;
  --hand-l: 34px 24px 38px 22px / 24px 38px 22px 34px;
  --hand-s: 13px 10px 14px 9px / 10px 14px 9px 13px;
  --hand-btn: 26px 20px 28px 18px / 20px 28px 18px 26px;
  --pebble: 52% 48% 55% 45% / 48% 55% 45% 52%;
  --f-brand: "Young Serif", "Iowan Old Style", Georgia, serif;
  --f-read: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-ui: "Figtree", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --maxw: 1080px;
  --gutter: 20px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #1b130f; --bg-2: #241913; --surface: #2a1f18; --surface-2: #32251d;
    --ink: #f3e7da; --ink-2: #cdb9a8; --ink-3: #a8927f; --line: #3f2f25;
    --barro: #d98a5f; --barro-ink: #f2b795; --barro-soft: #45281b; --barro-deep: #3a1d11; --on-barro: #2a130a;
    --agua: #6fc0b4; --agua-ink: #a6ddd3; --agua-soft: #183633; --agua-light: #3f8c82;
    --oro: #ddb35a; --oro-ink: #ecca80; --oro-soft: #3a2e17;
    --alerta: #f08a95;
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .9 0 0 0 0 .8 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    --shadow: 0 1px 2px rgb(0 0 0 / 35%), 0 12px 30px -14px rgb(0 0 0 / 65%);
    --shadow-l: 0 2px 4px rgb(0 0 0 / 30%), 0 24px 48px -24px rgb(0 0 0 / 70%);
  }
}

/* ───── Base ───── */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; overflow-x: hidden; overflow-x: clip;
  background: var(--grain), var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--f-ui);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--barro-ink); }
:focus-visible { outline: 2.5px solid var(--barro); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; font-variant-numeric: lining-nums; }
p { text-wrap: pretty; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: var(--hand-s); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico.s { width: 18px; height: 18px; }

/* ───── Marca ───── */
.wordmark { font: 400 25px/1 var(--f-brand); letter-spacing: -.01em; color: var(--ink); white-space: nowrap; text-decoration: none; }
.wordmark .acc { color: var(--barro); }

/* ───── Tipografía ───── */
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--barro-ink); }
.display { font: 400 clamp(38px, 8.6vw, 64px)/1.04 var(--f-brand); letter-spacing: -.02em; }
.display em { font-style: normal; color: var(--barro); }
.h2 { font: 400 clamp(29px, 5.6vw, 42px)/1.1 var(--f-brand); letter-spacing: -.015em; }
.h3 { font: 400 21px/1.22 var(--f-brand); }
.lead { font: 400 clamp(18.5px, 2.4vw, 21px)/1.5 var(--f-read); color: var(--ink-2); max-width: 34em; }
.muted { color: var(--ink-2); }
.small { font-size: 14.5px; }
.tiny { font-size: 13px; color: var(--ink-3); }
.center { text-align: center; }
.sec-head { display: grid; gap: 12px; max-width: 40em; margin-bottom: 30px; }
.sec-head.center { margin-left: auto; margin-right: auto; justify-items: center; }

/* ───── Botones ───── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 52px; padding: 0 26px; border-radius: var(--hand-btn); border: 1px solid transparent;
  font-weight: 750; font-size: 16px; line-height: 1.2; cursor: pointer; text-decoration: none; text-align: center;
  background: var(--barro); color: var(--on-barro);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 18%), 0 8px 18px -10px color-mix(in srgb, var(--barro) 80%, transparent);
  transition: transform .12s ease, filter .2s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.98); }
.btn.ghost { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 22%, var(--line)); box-shadow: none; }
.btn.ghost:hover { background: var(--surface); }
.btn.oro { background: var(--oro); color: #2a1c0a; box-shadow: inset 0 1px 0 rgb(255 255 255 / 25%), 0 8px 18px -10px color-mix(in srgb, var(--oro) 80%, transparent); }
.btn.cream { background: #fbf1e6; color: #5c2b17; box-shadow: 0 10px 24px -12px rgb(0 0 0 / 50%); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn.block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.reassure { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.reassure span { display: inline-flex; align-items: center; gap: 6px; }
.reassure .ico { color: var(--agua); width: 17px; height: 17px; stroke-width: 2.2; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: var(--hand-s); font-size: 12.5px; font-weight: 750; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; }
.chip.agua { background: var(--agua-soft); color: var(--agua-ink); }
.chip.oro { background: var(--oro-soft); color: var(--oro-ink); }
.chip.barro { background: var(--barro-soft); color: var(--barro-ink); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--hand); padding: 22px; box-shadow: var(--shadow); }

/* ───── Barra superior ───── */
.top {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.top .wrap { display: flex; align-items: center; gap: 14px; min-height: 64px; padding-top: env(safe-area-inset-top, 0px); }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.top nav .link { color: var(--ink-2); font-weight: 650; font-size: 14.5px; text-decoration: none; padding: 8px 10px; border-radius: var(--hand-s); }
.top nav .link:hover { color: var(--ink); background: var(--bg-2); }
.top .hide-s { display: none; }
@media (min-width: 760px) { .top .hide-s { display: inline-flex; } }

/* ───── Portada ───── */
.hero { position: relative; padding: 28px 0 56px; }
.hero .wrap { display: grid; gap: 30px; align-items: center; }
.hero-copy { display: grid; gap: 20px; justify-items: start; }
.hero-art { position: relative; justify-self: center; width: min(78vw, 360px); aspect-ratio: 1 / 1.05; display: grid; place-items: center; isolation: isolate; }
.hero-art .halo { position: absolute; inset: 6% 2% 0; z-index: -2; border-radius: var(--pebble); background: radial-gradient(closest-side, color-mix(in srgb, var(--agua) 18%, transparent), transparent 75%), radial-gradient(70% 60% at 50% 70%, color-mix(in srgb, var(--barro) 14%, transparent), transparent 70%); }
.hero-art .vessel { width: 68%; }
.hero-art .badge { position: absolute; right: -2%; bottom: 14%; display: grid; gap: 2px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--hand); box-shadow: var(--shadow-l); transform: rotate(-3deg); }
.hero-art .badge b { font: 400 22px/1 var(--f-brand); color: var(--agua-ink); }
.hero-art .badge span { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.hero-art .badge.l { left: -2%; right: auto; top: 12%; bottom: auto; transform: rotate(3deg); }
.hero-art .badge.l b { color: var(--oro-ink); font-size: 17px; }
@media (min-width: 900px) {
  .hero { padding: 56px 0 90px; }
  .hero .wrap { grid-template-columns: 1.15fr .85fr; gap: 40px; }
  .hero-art { width: 100%; max-width: 420px; }
}

/* Tiestos decorativos */
.sherd { position: absolute; z-index: -1; pointer-events: none; width: 90px; height: 90px; }
.sherd polygon { fill: var(--barro); opacity: .9; }
.sherd polyline { fill: none; stroke: var(--oro); stroke-width: 3; stroke-linejoin: round; }
.sherds .sherd { opacity: .2; }
.hero-art .sh1 { left: -6%; bottom: 0; width: 96px; height: 96px; transform: rotate(-18deg); opacity: .32; }
.hero-art .sh2 { right: 2%; top: -2%; width: 70px; height: 70px; transform: rotate(26deg); opacity: .26; }

/* ───── Cántaro (SVG) ───── */
.vessel { display: block; height: auto; overflow: visible; }
.vessel .inner { fill: color-mix(in srgb, var(--surface) 70%, var(--bg-2)); }
.vessel .outline { fill: none; stroke: var(--ink); stroke-width: 3.4; stroke-linejoin: round; }
.vessel .handle { fill: none; stroke: var(--ink); stroke-width: 7; stroke-linecap: round; }
.vessel .crack { fill: none; stroke: var(--oro); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.vessel .shine { fill: none; stroke: #fff; stroke-opacity: .35; stroke-width: 4; stroke-linecap: round; }
.vessel .g1 { stop-color: var(--agua-light); }
.vessel .g2 { stop-color: var(--agua); }
.vessel .level { transform: translateY(94px); animation: fill 2.6s .35s cubic-bezier(.2,.8,.2,1) both; }
.vessel .wave { animation: wave 5s linear infinite; }
.vessel .wave.b { animation-duration: 7s; animation-direction: reverse; opacity: .5; }
@keyframes fill { from { transform: translateY(225px); } to { transform: translateY(94px); } }
@keyframes wave { from { transform: translateX(0); } to { transform: translateX(-120px); } }

/* Mosaico: piezas unidas con oro */
.mosaic { display: block; width: 100%; height: auto; overflow: visible; }
.mosaic .piece.off { fill: color-mix(in srgb, var(--surface-2) 70%, transparent); stroke: var(--ink-3); stroke-width: 1.2; stroke-dasharray: 3 4; }
.mosaic .piece.on.tone0 { fill: var(--barro); }
.mosaic .piece.on.tone1 { fill: color-mix(in srgb, var(--barro) 82%, #000); }
.mosaic .piece.on.tone2 { fill: color-mix(in srgb, var(--barro) 80%, #fff); }
.mosaic .seam { fill: none; stroke: var(--oro); stroke-width: 2.6; stroke-linejoin: round; }
.mosaic .m-outline { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.mosaic .m-handle { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: round; opacity: .8; }

/* ───── Bandas ───── */
.band { padding: 64px 0; position: relative; }
.band.alt { background: var(--grain), var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .band { padding: 96px 0; } }

/* Gratis de verdad */
.free { display: grid; gap: 16px; }
.free .card { display: grid; gap: 10px; align-content: start; }
.free .card header { display: flex; align-items: center; gap: 12px; }
.free .card .ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--pebble); background: var(--agua-soft); color: var(--agua-ink); flex: none; }
.free .card.safe .ic { background: color-mix(in srgb, var(--alerta) 14%, transparent); color: var(--alerta); }
.free .card ul { padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; color: var(--ink-2); }
.free .card li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.free .card li .ico { color: var(--agua); margin-top: 3px; width: 16px; height: 16px; stroke-width: 2.4; }
.free-cta { margin-top: 28px; display: grid; gap: 14px; justify-items: center; text-align: center; }
.free-cta p { font: italic 19px/1.45 var(--f-read); color: var(--ink-2); max-width: 30em; }
@media (min-width: 760px) { .free { grid-template-columns: 1fr 1fr; } }

/* Para quién */
.modes { display: grid; gap: 16px; }
.mode { display: grid; gap: 12px; align-content: start; padding: 26px; border-radius: var(--hand-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.mode .ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: var(--pebble); background: var(--barro-soft); color: var(--barro-ink); }
.mode.acomp .ic { background: var(--oro-soft); color: var(--oro-ink); }
.mode p { color: var(--ink-2); }
.mode .who { font-size: 14px; font-weight: 650; color: var(--ink-3); }
@media (min-width: 760px) { .modes { grid-template-columns: 1fr 1fr; } }

/* El recorrido */
/* minmax(0, 1fr) y guiones: «Desbordamiento» no cabe entero en dos columnas a 360 px o menos */
.stages { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; counter-reset: st; }
.stages li { display: flex; align-items: center; gap: 8px; padding: 11px; border-radius: var(--hand-s); background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 15px; }
.stages li span { min-width: 0; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
.stages li .ico { color: var(--agua); }
.stages li small { display: block; font-weight: 600; font-size: 12px; color: var(--ink-3); }
@media (min-width: 760px) { .stages { grid-template-columns: repeat(4, 1fr); } }
.mods { margin-top: 26px; display: grid; gap: 8px; list-style: none; padding: 0; }
.mods li { display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 12px; padding: 13px 16px; border-radius: var(--hand-s); background: var(--surface); border: 1px solid var(--line); }
.mods .code { font: 400 19px/1 var(--f-brand); color: var(--barro); font-variant-numeric: lining-nums; }
.mods .t { font-weight: 650; }
.mods li.is-free { border-color: color-mix(in srgb, var(--agua) 45%, var(--line)); background: color-mix(in srgb, var(--agua-soft) 45%, var(--surface)); }
@media (min-width: 760px) { .mods { grid-template-columns: 1fr 1fr; } }
.verse { margin-top: 30px; max-width: 40em; font: italic 18px/1.5 var(--f-read); color: var(--ink-2); padding-left: 16px; border-left: 3px solid var(--oro); }
.verse cite { display: block; margin-top: 6px; font: 700 12px var(--f-ui); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--barro-ink); }

/* Cómo se aprende */
.how { display: grid; gap: 30px; align-items: center; }
.how .art { justify-self: center; width: min(62vw, 260px); }
.feats { display: grid; gap: 18px; list-style: none; padding: 0; }
.feats li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.feats .ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--pebble); background: var(--surface); border: 1px solid var(--line); color: var(--barro); }
.feats h3 { font: 700 16.5px/1.3 var(--f-ui); margin-bottom: 3px; }
.feats p { color: var(--ink-2); font-size: 15.5px; }
.ladder { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ladder .sep { color: var(--ink-3); }
.ladder-note { margin-top: 10px; }
@media (min-width: 900px) { .how { grid-template-columns: .8fr 1.2fr; gap: 56px; } .how .art { width: 300px; } }

/* Confianza */
.trust { display: grid; gap: 14px; }
.trust .card { display: grid; gap: 8px; align-content: start; }
.trust .ic { color: var(--barro); }
.trust .card.safe .ic { color: var(--alerta); }
.trust h3 { font: 700 16.5px/1.3 var(--f-ui); }
.trust p { color: var(--ink-2); font-size: 15px; }
@media (min-width: 640px) { .trust { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .trust { grid-template-columns: repeat(4, 1fr); } }

/* Precio */
.plans { display: grid; gap: 18px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 16px; padding: 28px 24px; border-radius: var(--hand-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.plan.full { border: 2px solid var(--oro); box-shadow: var(--shadow-l); position: relative; }
.plan .tag { position: absolute; top: -14px; left: 24px; }
.plan h3 { font: 400 24px/1.15 var(--f-brand); }
.plan .price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plan .price b { font: 400 44px/1 var(--f-brand); letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.plan .price span { font-size: 14.5px; font-weight: 650; color: var(--ink-2); }
.plan ul { list-style: none; padding: 0; display: grid; gap: 9px; font-size: 15px; color: var(--ink-2); }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 9px; }
.plan li .ico { width: 17px; height: 17px; margin-top: 3px; stroke-width: 2.4; color: var(--agua); }
.plan.full li .ico { color: var(--oro); }
.plan li strong { color: var(--ink); }
.plan .fine { font-size: 13.5px; color: var(--ink-3); }
.plan .fine .ico { width: 15px; height: 15px; vertical-align: -3px; margin-right: 4px; }
.plan > .btn { margin-top: auto; }
@media (min-width: 820px) { .plans { grid-template-columns: 1fr 1.1fr; } }

/* Preguntas */
.faq { display: grid; gap: 10px; max-width: 780px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--hand); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; font-weight: 700; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--barro); transition: transform .2s ease; }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq .ans { padding: 0 20px 20px; color: var(--ink-2); display: grid; gap: 10px; }

/* Afiliados: pasos, kit de imágenes y mensajes para copiar */
.steps { list-style: none; padding: 0; display: grid; gap: 14px; counter-reset: paso; }
.steps li { counter-increment: paso; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; align-content: start; }
.steps li::before { content: counter(paso); width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--pebble); background: var(--barro); color: #fff8f1; font: 400 20px/1 var(--f-brand); }
.steps h3 { font: 700 16.5px/1.3 var(--f-ui); margin-bottom: 3px; }
.steps p { color: var(--ink-2); font-size: 15.5px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 22px; } .steps li { grid-template-columns: 1fr; } }
.note-box { margin-top: 26px; display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 16px 18px; border-radius: var(--hand); background: var(--oro-soft); color: var(--ink); font-size: 15px; max-width: 52em; }
.note-box .ico { color: var(--oro-ink); margin-top: 2px; }
.kit { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); align-items: start; }
.kit figure { display: grid; gap: 10px; }
.kit img { width: 100%; height: auto; border-radius: var(--hand-s); border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
.kit figcaption { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; font-weight: 650; color: var(--ink-2); }
.msgs { display: grid; gap: 14px; margin-top: 30px; }
.msg { display: grid; gap: 10px; }
.msg header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.msg h3 { font: 700 16px/1.3 var(--f-ui); }
.msg p.text { white-space: pre-line; font-size: 15.5px; color: var(--ink-2); padding: 14px 16px; border-radius: var(--hand-s); background: var(--bg-2); user-select: all; -webkit-user-select: all; }
.msg .copy[hidden] { display: none; }
@media (min-width: 820px) { .msgs { grid-template-columns: 1fr 1fr; } }
.rules { list-style: none; padding: 0; display: grid; gap: 10px; max-width: 52em; }
.rules li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ink-2); }
.rules li .ico { color: var(--alerta); margin-top: 3px; width: 18px; height: 18px; }

/* Cierre */
.final { position: relative; overflow: hidden; isolation: isolate; padding: 56px 24px; border-radius: 40px 28px 44px 26px / 28px 44px 26px 40px; background: var(--grain), linear-gradient(150deg, #7a3a1d, #2e170d); color: #f6e8d8; display: grid; gap: 18px; justify-items: center; text-align: center; box-shadow: var(--shadow-l); }
.final .h2 { color: #fbf1e6; }
.final p { font: 400 19px/1.5 var(--f-read); color: #ead6c4; max-width: 32em; }
.final .rule { width: 64px; height: 3px; border-radius: 3px; background: #ddb35a; }
.final .sherd { opacity: .22; }
.final .sherd polygon { fill: #c56a3e; }
.final .sh3 { left: -24px; top: -20px; width: 130px; height: 130px; transform: rotate(-16deg); }
.final .sh4 { right: -30px; bottom: -36px; width: 150px; height: 150px; transform: rotate(30deg); }
.final .tiny { color: #d9c2ae; }
.final a.plain { color: #f6e8d8; }

/* Pie */
.foot { padding: 44px 0 calc(env(safe-area-inset-bottom, 0px) + 40px); border-top: 1px solid var(--line); margin-top: 64px; }
.foot .wrap { display: grid; gap: 18px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14.5px; font-weight: 650; }
.foot nav a { color: var(--ink-2); text-decoration: none; }
.foot nav a:hover { color: var(--barro-ink); text-decoration: underline; }
.foot p { font-size: 13.5px; color: var(--ink-3); max-width: 60em; }

/* Barra fija en teléfonos: el botón de empezar siempre a mano */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 10px var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 10px); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.dock p { font-size: 13px; line-height: 1.3; color: var(--ink-2); font-weight: 600; }
.dock .btn { flex: none; min-height: 46px; }
@media (min-width: 760px) { .dock { display: none; } }
@media (max-width: 759px) { .foot { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 96px); } }

/* ───── Recursos (/recursos/): índice y artículos, generados por tools/make_recursos.cjs ───── */
.wrap.narrow { max-width: 760px; }
.res-hero { padding-bottom: 20px; }
.res-hero .wrap { display: grid; grid-template-columns: minmax(0, 46rem); gap: 18px; justify-items: start; align-items: start; }
.res-list { list-style: none; margin: 0 0 40px; padding: 0; display: grid; gap: 16px; }
.res-list a { display: grid; gap: 8px; height: 100%; padding: 22px 22px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--hand); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .15s ease; }
.res-list a:hover { transform: translateY(-2px); }
.res-list b { font-weight: 400; font-family: var(--f-brand); }
.res-list .d { color: var(--ink-2); font-size: 15px; }
.res-list .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-weight: 750; font-size: 14.5px; color: var(--barro-ink); }
.res-list li.big a { background: var(--grain), linear-gradient(150deg, #7a3a1d, #2e170d); border-color: transparent; color: #f6e8d8; padding: 30px 26px; }
.res-list li.big .eyebrow, .res-list li.big .go { color: #ddb35a; }
.res-list li.big .d { color: #ead6c4; font: 400 18px/1.5 var(--f-read); }
@media (min-width: 760px) {
  .res-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .res-list li.big { grid-column: 1 / -1; }
}
.art { padding: 22px 0 10px; }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 700; color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--barro-ink); }
.art-head { display: grid; gap: 16px; justify-items: start; margin: 22px 0 30px; }
.art-title { font-size: clamp(34px, 7.4vw, 54px); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; font-weight: 650; color: var(--ink-3); }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.prose { font: 400 19px/1.65 var(--f-read); color: var(--ink); overflow-wrap: break-word; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font: 400 clamp(25px, 4.6vw, 32px)/1.15 var(--f-brand); margin-top: 44px; letter-spacing: -.01em; }
.prose h3 { font: 750 18px/1.3 var(--f-ui); margin-top: 28px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--barro); }
.prose strong { font-weight: 650; }
.prose a { text-underline-offset: 3px; }
.prose .say { padding: 18px 20px; border-left: 3px solid var(--oro); background: var(--surface); border-radius: 0 var(--hand-s) var(--hand-s) 0; font-style: italic; color: var(--ink-2); }
.prose .help-box { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 18px 20px; border-radius: var(--hand); background: color-mix(in srgb, var(--alerta) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--alerta) 35%, var(--line)); font: 400 16px/1.55 var(--f-ui); }
.prose .help-box .ico { color: var(--alerta); width: 26px; height: 26px; }
.prose .help-box p + p { margin-top: 6px; }
.prose .tree { list-style: none; padding: 0; counter-reset: q; display: grid; gap: 12px; }
.prose .tree li { counter-increment: q; position: relative; margin: 0; padding: 16px 18px 16px 58px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--hand); font-size: 17px; }
.prose .tree li::before { content: counter(q); position: absolute; left: 16px; top: 15px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: var(--pebble); background: var(--barro-soft); color: var(--barro-ink); font: 400 17px/1 var(--f-brand); font-variant-numeric: lining-nums; }
.prose .tree h3 { margin: 0 0 6px; font-size: 17px; }
.prose .steps-list li::marker { font: 750 16px var(--f-ui); }
.prose .check, .prose .signs, .prose .no-list { list-style: none; padding: 0; }
.prose .check li, .prose .signs li, .prose .no-list li { position: relative; padding-left: 30px; }
.prose .check li::before, .prose .signs li::before, .prose .no-list li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 16px; height: 16px; border-radius: 5px; }
.prose .check li::before { border: 2px solid var(--agua); }
.prose .signs li::before { background: var(--oro-soft); border: 2px solid var(--oro); border-radius: 50%; }
.prose .no-list li::before { background: color-mix(in srgb, var(--alerta) 18%, transparent); border: 2px solid var(--alerta); border-radius: 50%; }
.prose .two-col { display: grid; gap: 14px; }
.prose .two-col .col { padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--hand); font-size: 17px; }
.prose .two-col h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.prose .two-col .yes h3 { color: var(--agua-ink); }
.prose .two-col .no h3 { color: var(--alerta); }
@media (min-width: 680px) { .prose .two-col { grid-template-columns: 1fr 1fr; } }
.cta-box { display: grid; gap: 12px; justify-items: start; margin: 40px 0; padding: 26px 24px; border-radius: var(--hand-l); background: var(--grain), var(--agua-soft); border: 1px solid color-mix(in srgb, var(--agua) 30%, var(--line)); font: 400 16px/1.55 var(--f-ui); }
.cta-box .eyebrow { color: var(--agua-ink); }
.cta-box .h3 { font: 400 clamp(23px, 4vw, 28px)/1.15 var(--f-brand); }
.cta-box .actions { margin-top: 4px; }
.cta-box .tiny { color: var(--ink-2); }
.prose .shift { list-style: none; padding: 0; display: grid; gap: 8px; }
.prose .shift li { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin: 0; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--hand-s); font-size: 17px; }
.prose .shift li span:first-child { color: var(--ink-3); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--alerta) 55%, transparent); }
.prose .shift li span:last-child { font-weight: 650; color: var(--agua-ink); }
.prose .shift li::after { content: "→"; grid-column: 2; grid-row: 1; color: var(--oro); font-family: var(--f-ui); }
.related { margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--line); }
.related ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.related a { display: grid; gap: 4px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--hand-s); color: var(--ink); text-decoration: none; }
.related a:hover { border-color: var(--barro); }
.related b { font: 400 19px/1.25 var(--f-brand); }

/* Animaciones sobrias; nada se mueve si la persona lo pidió así */
.rise { animation: rise .6s ease both; }
.rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .vessel .level { transform: translateY(94px); }
}

/* Young Serif trae números de estilo antiguo («M0» se leía «Mo»); el atajo font los reinicia, por eso van aquí al final. */
:is(.display, .h2, .h3, .res-list b, .related b, .badge b, .plan h3, .plan .price b, .mods .code, .wordmark) { font-variant-numeric: lining-nums; }
