/* ==========================================================================
   Simple y Resuelto · hoja de estilos del sitio público
   Sistema: CSS nativo con tokens. Tema claro/oscuro según el sistema.
   Radios: tarjetas 18px · imágenes 10px · botones e insignias en píldora.
   ========================================================================== */

@font-face {
  font-family: "Geist";
  src: url("../fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f6f7f5;
  --bg-2: #eef0ec;
  --surface: #fcfcfb;
  --ink: #17191a;
  --ink-2: #3a3d40;
  --muted: #5d6166;
  --line: #dfe2dd;
  --accent: #1f6b4f;
  --accent-ink: #ffffff;
  --accent-soft: #e3efe8;
  --shadow: 0 1px 2px rgb(23 40 32 / .06), 0 12px 32px -12px rgb(23 40 32 / .18);
  --shadow-lg: 0 2px 4px rgb(23 40 32 / .06), 0 30px 60px -20px rgb(23 40 32 / .30);
  --radius: 18px;
  --radius-sm: 10px;
  --wrap: 1200px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101211;
    --bg-2: #161917;
    --surface: #1a1d1b;
    --ink: #ecedea;
    --ink-2: #cfd2cd;
    --muted: #a2a7a1;
    --line: #2b302d;
    --accent: #5cc49a;
    --accent-ink: #0d1a14;
    --accent-soft: #1c2b24;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 12px 32px -12px rgb(0 0 0 / .6);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / .4), 0 30px 60px -20px rgb(0 0 0 / .7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 18px; } }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 12px; }

/* ---------- Tipografía ---------- */
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.08; font-weight: 650; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 4.2vw, 3.5rem); }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.7rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0 0 1em; text-wrap: pretty; }
.lead { font-size: 1.16rem; color: var(--muted); max-width: 54ch; }
.muted { color: var(--muted); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 14px 0 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 22px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-sm { height: 42px; padding: 0 18px; font-size: .94rem; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn .ico { transition: transform .3s var(--ease); }
.btn:hover .ico-move { transform: translateX(3px); }

/* ---------- Navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; letter-spacing: -0.02em; font-size: 1.08rem; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.brand-mark svg { width: 18px; height: 18px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: .96rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.btn { color: var(--accent-ink); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); width: 42px; height: 42px; border-radius: 999px; color: var(--ink); align-items: center; justify-content: center; }
@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 18px 18px; }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child a { border: 0; }
  .nav-links .btn { margin-top: 12px; width: 100%; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 15ch; }
.hero .lead { margin: 22px 0 32px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .hero { padding: 32px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; min-height: 0; }
}

/* Abanico de portadas (imágenes reales de las guías) */
.fan { position: relative; height: 520px; perspective: 1400px; }
.fan .book {
  position: absolute; width: 47%; aspect-ratio: 210 / 297; top: 50%; left: 50%;
  border-radius: 6px 12px 12px 6px; overflow: hidden; box-shadow: var(--shadow-lg);
  transform-origin: 50% 100%; transition: transform .7s var(--ease);
  background: var(--surface);
}
.fan .book img { width: 100%; height: 100%; object-fit: cover; }
.fan .book::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 0 0 / .14), transparent 7%, transparent 93%, rgb(255 255 255 / .06)); pointer-events: none; }
.fan .b1 { transform: translate(-102%, -50%) rotate(-8deg); z-index: 1; }
.fan .b2 { transform: translate(-50%, -54%) rotate(0deg); z-index: 3; }
.fan .b3 { transform: translate(2%, -50%) rotate(8deg); z-index: 2; }
@media (hover: hover) {
  .fan:hover .b1 { transform: translate(-108%, -52%) rotate(-11deg); }
  .fan:hover .b3 { transform: translate(8%, -52%) rotate(11deg); }
  .fan:hover .b2 { transform: translate(-50%, -57%) rotate(0deg); }
}
@media (max-width: 900px) { .fan { height: 440px; } .fan .book { width: 44%; } }
@media (max-width: 520px) { .fan { height: 330px; } }

/* ---------- Franja de garantías ---------- */
.assure { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.assure ul { list-style: none; margin: 0 auto; padding-top: 22px; padding-bottom: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.assure li { display: flex; align-items: center; gap: 12px; font-size: .95rem; color: var(--ink-2); }
.assure li .ico { width: 22px; height: 22px; color: var(--accent); }
@media (max-width: 900px) { .assure ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .assure ul { grid-template-columns: 1fr; } }

section { padding: 104px 0; }
@media (max-width: 768px) { section { padding: 72px 0; } }

/* ---------- Catálogo (bento asimétrico) ---------- */
.bento { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.bento .p-card:first-child { grid-row: span 2; }
.p-card {
  --pc: var(--accent);
  position: relative; display: grid; gap: 24px; padding: 32px; border-radius: var(--radius); text-decoration: none;
  background: color-mix(in srgb, var(--pc) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--pc) 16%, var(--line));
  transition: transform .5s var(--ease), box-shadow .5s var(--ease); overflow: hidden;
}
.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.bento .p-card:first-child { grid-template-rows: 1fr auto; }
.p-card .p-cover { border-radius: 4px 10px 10px 4px; box-shadow: var(--shadow); overflow: hidden; transition: transform .6s var(--ease); }
.bento .p-card:first-child .p-cover { width: 58%; margin: 8px auto 0; transform: rotate(-3deg); }
.p-card:hover .p-cover { transform: rotate(0deg) translateY(-4px); }
.p-card.row { grid-template-columns: 34% 1fr; align-items: center; }
.p-card .cat { font-size: .82rem; font-weight: 600; color: var(--pc); }
.p-card h3 { font-size: 1.5rem; margin: 6px 0 8px; letter-spacing: -0.02em; }
.p-card p { color: var(--muted); margin: 0 0 18px; font-size: .99rem; }
.p-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.price { font-weight: 650; font-size: 1.25rem; letter-spacing: -0.01em; }
.price s { color: var(--muted); font-weight: 450; font-size: .95rem; margin-left: 6px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .96rem; color: var(--pc); }
.p-card:hover .link-arrow .ico { transform: translateX(3px); }
.link-arrow .ico { transition: transform .3s var(--ease); }
@media (prefers-color-scheme: dark) {
  .p-card { background: color-mix(in srgb, var(--pc) 12%, var(--surface)); }
  .p-card .cat, .p-card .link-arrow { color: color-mix(in srgb, var(--pc) 55%, white); }
}
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .bento .p-card:first-child { grid-row: auto; }
  .p-card.row { grid-template-columns: 30% 1fr; }
}
@media (max-width: 520px) {
  .p-card { padding: 24px; }
  .p-card.row { grid-template-columns: 1fr; }
  .p-card.row .p-cover { width: 46%; }
}

/* ---------- Galería de páginas interiores ---------- */
.peek { background: var(--bg-2); overflow: hidden; }
.peek-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 280px); gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 24px 28px; margin: 0 -24px;
  scrollbar-width: thin;
}
.peek-track figure { margin: 0; scroll-snap-align: start; }
.peek-track button { all: unset; cursor: zoom-in; display: block; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); background: #fff; transition: transform .45s var(--ease); }
.peek-track button:hover { transform: translateY(-4px); }
.peek-track button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.peek-track figcaption { font-size: .88rem; color: var(--muted); margin-top: 12px; }

/* ---------- Cómo funciona ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: s; position: relative; }
.steps li { list-style: none; padding: 0 28px 0 0; position: relative; }
.steps .dot { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 22px; position: relative; z-index: 1; }
.steps .dot .ico { width: 24px; height: 24px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 26px; left: 64px; right: 12px; height: 1px; background: var(--line); }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: .99rem; max-width: 32ch; }
@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps li::after { display: none; }
}

/* ---------- Principios (texto + imagen) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.split-media img + img { position: absolute; width: 52%; right: -6%; bottom: -10%; transform: rotate(4deg); }
.principles { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 26px; }
.principles li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.principles .ico-wrap { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.principles .ico-wrap .ico { width: 22px; height: 22px; }
.principles h3 { font-size: 1.08rem; margin-bottom: 4px; }
.principles p { color: var(--muted); margin: 0; font-size: .98rem; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 56px; }
  .split-media { max-width: 520px; margin: 0 auto 30px; }
}

/* ---------- Garantía ---------- */
.guarantee { padding: 0; }
.guarantee .box {
  display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center;
  padding: 44px 48px; border-radius: var(--radius); background: var(--ink); color: var(--bg);
}
.guarantee .seal { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 12%, transparent); }
.guarantee .seal .ico { width: 42px; height: 42px; }
.guarantee h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 8px; }
.guarantee p { margin: 0; opacity: .78; max-width: 60ch; }
.guarantee .btn-primary { background: var(--bg); color: var(--ink); box-shadow: none; }
@media (max-width: 860px) { .guarantee .box { grid-template-columns: 1fr; padding: 32px 26px; text-align: left; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-weight: 600; font-size: 1.06rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .ico { position: absolute; right: 4px; top: 50%; translate: 0 -50%; transition: rotate .35s var(--ease); color: var(--muted); }
.faq-list details[open] summary .ico { rotate: 45deg; }
.faq-list .ans { padding: 0 0 22px; color: var(--muted); max-width: 68ch; }
.faq-list .ans p { margin: 0; }

/* ---------- Cierre ---------- */
.final { text-align: center; }
.final h2 { max-width: 20ch; margin: 0 auto 16px; }
.final p { color: var(--muted); margin: 0 auto 30px; max-width: 52ch; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: .94rem; color: var(--muted); }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer h4 { margin: 0 0 12px; font-size: .9rem; color: var(--ink); font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }
.footer .legal-line { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 8px; font-size: .86rem; }
@media (max-width: 720px) { .footer .wrap { grid-template-columns: 1fr; } }

/* ==========================================================================
   Página de producto
   ========================================================================== */
.p-hero { padding: 48px 0 80px; }
.p-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.p-hero .lead { margin: 20px 0 28px; }
.buybox { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.buybox .price { font-size: 2rem; }
.buybox .price small { display: block; font-size: .82rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.p-hero .cover3d { position: relative; width: min(380px, 80%); margin: 0 auto; perspective: 1200px; }
.p-hero .cover3d img { border-radius: 4px 12px 12px 4px; box-shadow: var(--shadow-lg); transform: rotateY(-14deg) rotateX(4deg); transition: transform .8s var(--ease); }
.p-hero .cover3d:hover img { transform: rotateY(-4deg) rotateX(1deg); }
.p-hero .cover3d::before { content: ""; position: absolute; inset: 8% -12% -8% -12%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent); }
@media (max-width: 900px) { .p-hero-grid { grid-template-columns: 1fr; gap: 44px; } .p-hero { padding: 28px 0 56px; } }

.pains { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px; list-style: none; padding: 0; margin: 0; }
.pains li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 1.05rem; color: var(--ink-2); padding: 18px 0; border-top: 1px solid var(--line); }
.pains .ico { width: 22px; height: 22px; color: var(--accent); margin-top: 3px; }
.pains-close { margin-top: 36px; font-size: 1.2rem; font-weight: 550; max-width: 46ch; }
@media (max-width: 720px) { .pains { grid-template-columns: 1fr; } }

.learn { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 40px; }
.learn div .ico { width: 26px; height: 26px; color: var(--accent); margin-bottom: 14px; }
.learn h3 { margin-bottom: 6px; }
.learn p { color: var(--muted); margin: 0; font-size: .98rem; }
@media (max-width: 900px) { .learn { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .learn { grid-template-columns: 1fr; gap: 32px; } }

.previews { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 24px; align-items: center; }
.previews button { all: unset; cursor: zoom-in; display: block; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; transition: transform .5s var(--ease); }
.previews button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.previews button:nth-child(1) { transform: rotate(-3deg) translateY(16px); }
.previews button:nth-child(3) { transform: rotate(3deg) translateY(16px); }
.previews button:hover { transform: rotate(0) translateY(-6px); }
@media (max-width: 720px) {
  .previews { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; }
  .previews button { scroll-snap-align: center; transform: none !important; }
}

.receipt { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.items li { display: grid; grid-template-columns: 48px 1fr auto; gap: 16px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.items .ico-wrap { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.items .ico-wrap .ico { width: 24px; height: 24px; }
.items strong { display: block; font-weight: 600; }
.items span.d { color: var(--muted); font-size: .95rem; }
.items .n { font-size: .88rem; color: var(--muted); white-space: nowrap; }
.items .tag { display: inline-block; font-size: .74rem; font-weight: 650; letter-spacing: .04em; color: var(--accent); background: var(--accent-soft); padding: 2px 9px; border-radius: 999px; margin-left: 8px; vertical-align: 2px; }
.buycard { position: sticky; top: 92px; padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.buycard .price { font-size: 2.3rem; display: block; margin: 4px 0 18px; }
.buycard .btn { width: 100%; }
.buycard ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; font-size: .95rem; color: var(--ink-2); }
.buycard li { display: flex; gap: 10px; align-items: center; }
.buycard li .ico { color: var(--accent); }
.buycard .note { font-size: .86rem; color: var(--muted); margin: 18px 0 0; }
@media (max-width: 900px) { .receipt { grid-template-columns: 1fr; } .buycard { position: static; } }

.notice { display: flex; gap: 12px; padding: 18px 20px; border-radius: 12px; background: var(--bg-2); color: var(--muted); font-size: .94rem; margin-top: 28px; max-width: 820px; }
.notice .ico { color: var(--accent); margin-top: 3px; }

.more { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 720px) { .more { grid-template-columns: 1fr; } }

/* Barra fija de compra en móvil */
.mobile-buy { display: none; }
@media (max-width: 720px) {
  .mobile-buy {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 10px 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(140%); transition: transform .45s var(--ease);
  }
  .mobile-buy.show { transform: none; }
  .mobile-buy .price { font-size: 1.1rem; }
  body.has-mobile-buy { padding-bottom: 84px; }
}

/* ---------- Visor de imágenes ---------- */
dialog.viewer { border: 0; padding: 0; background: transparent; max-width: min(92vw, 760px); max-height: 92vh; }
dialog.viewer::backdrop { background: rgb(10 12 11 / .78); backdrop-filter: blur(4px); }
dialog.viewer img { max-height: 88vh; width: auto; margin: 0 auto; border-radius: 8px; }
dialog.viewer .close { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #111; display: grid; place-items: center; cursor: pointer; }

/* ---------- Banner de cookies ---------- */
.consent {
  position: fixed; left: 16px; bottom: 16px; z-index: 60; max-width: 420px; padding: 20px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: .93rem;
}
.consent p { margin: 0 0 14px; color: var(--ink-2); }
.consent .row { display: flex; gap: 10px; flex-wrap: wrap; }
.consent[hidden] { display: none; }
@media (max-width: 520px) { .consent { left: 10px; right: 10px; bottom: 10px; max-width: none; } }

/* ---------- Páginas legales ---------- */
.legal { max-width: 760px; padding: 56px 0 96px; }
.legal h1 { font-size: clamp(2rem, 3.4vw, 2.6rem); margin-bottom: 8px; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 10px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--ink-2); }

/* ---------- Animaciones de entrada ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; translate: 0 22px; transition: opacity .9s var(--ease), translate .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
  .reveal.in { opacity: 1; translate: 0 0; }
  .hero-anim > * { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
  .fan .book { animation: bookIn 1.1s var(--ease) both; }
  .fan .b1 { animation-delay: .25s; } .fan .b2 { animation-delay: .1s; } .fan .b3 { animation-delay: .4s; }
}
@keyframes rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@keyframes bookIn { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
