/* =========================================================
   VEREDIA — informe independiente sobre plataformas de inversión con IA
   Layout: revista de pruebas de consumo. Columna editorial a la izquierda,
   fichas y sellos de puntuación como elementos de lectura rápida.
   Firma visual: portada del informe en 3D y sellos amarillos 0–10.
   ========================================================= */

:root {
  --paper:   #FFFFFF;
  --surface: #F4F5F8;
  --ink:     #1D2433;
  --muted:   #5E6675;
  --rule:    #DADDE3;
  --yellow:  #F6C90E;
  --on-yellow: #1D2433;
  --blue:    #2445A8;
  --blue-soft: #E7ECFA;
  --cover:   #1F3A8F;
  --cover-2: #16296A;
  --on-cover:#FFFFFF;
  --good:    #1E7A4F;
  --bad:     #B3322E;

  --f-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-text: "Public Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --t-xs: .8125rem;
  --t-sm: .9375rem;
  --t-md: 1.0625rem;
  --t-lg: 1.25rem;
  --t-xl: 1.625rem;
  --t-2xl: clamp(1.9rem, 3.2vw, 2.6rem);
  --t-3xl: clamp(2.3rem, 4.6vw, 3.6rem);
  --t-4xl: clamp(2.6rem, 6vw, 4.9rem);

  --wrap: 1200px;
  --gut-l: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  --r: 6px;
  --r-l: 14px;
  --ease: cubic-bezier(.22,.7,.2,1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:#10162A; --surface:#182037; --ink:#E9ECF3; --muted:#A0A8B8; --rule:#2A3350;
    --yellow:#F6C90E; --on-yellow:#1D2433; --blue:#9DB2FF; --blue-soft:#1E2A52;
    --cover:#2445A8; --cover-2:#182E78; --on-cover:#FFFFFF; --good:#5FCB95; --bad:#F08A86;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper:#10162A; --surface:#182037; --ink:#E9ECF3; --muted:#A0A8B8; --rule:#2A3350;
  --yellow:#F6C90E; --on-yellow:#1D2433; --blue:#9DB2FF; --blue-soft:#1E2A52;
  --cover:#2445A8; --cover-2:#182E78; --on-cover:#FFFFFF; --good:#5FCB95; --bad:#F08A86;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-text); font-size: var(--t-md); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--paper); z-index: 60; }
img, svg { max-width: 100%; }
a { color: inherit; }
::selection { background: var(--yellow); color: var(--on-yellow); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: var(--r); }
.skip:focus { left: 16px; }
.ico { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gut-l); padding-right: var(--gut-r); }

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.08; letter-spacing: -.015em; margin: 0; text-wrap: balance; font-optical-sizing: auto; }
h1 { font-size: var(--t-4xl); font-weight: 600; letter-spacing: -.025em; }
h2 { font-size: var(--t-3xl); }
h3 { font-size: var(--t-xl); }
h4 { font-size: var(--t-lg); }
p { margin: 0; }
.lede { font-size: var(--t-lg); color: var(--muted); line-height: 1.55; max-width: 48ch; }
.small { font-size: var(--t-sm); color: var(--muted); }
.fine { font-size: var(--t-xs); color: var(--muted); line-height: 1.5; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.mark { background: linear-gradient(transparent 58%, color-mix(in srgb, var(--yellow) 70%, transparent) 58%); padding: 0 .08em; }
.link { color: var(--blue); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.link:hover { text-decoration-thickness: 2px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 600 var(--t-sm)/1 var(--f-text); padding: 1em 1.4em; border-radius: var(--r); border: 2px solid var(--ink); background: var(--ink); color: var(--paper); text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--yellow); }
.btn:active { transform: none; box-shadow: none; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--yellow { background: var(--yellow); color: var(--on-yellow); border-color: var(--yellow); }
.btn--yellow:hover { box-shadow: 4px 4px 0 var(--ink); }
.btn--lg { font-size: var(--t-md); padding: 1.05em 1.6em; }
.btn--block { width: 100%; }

/* Sello de puntuación */
.seal { --s: 64px; width: var(--s); height: var(--s); border-radius: 50%; background: var(--yellow); color: var(--on-yellow); display: grid; place-items: center; position: relative; flex: none; font-family: var(--f-display); font-weight: 700; font-size: calc(var(--s) * .36); font-variant-numeric: lining-nums tabular-nums; }
.seal::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--on-yellow) 55%, transparent); }
.seal small { position: absolute; bottom: 18%; font-family: var(--f-text); font-size: calc(var(--s) * .13); font-weight: 600; }
.seal--lg { --s: 96px; }
.seal--sm { --s: 40px; }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--paper); border-bottom: 1px solid var(--rule); }
.top__in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-size: 1.55rem; font-weight: 600; letter-spacing: -.02em; }
.brand__mark { width: 30px; height: 30px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; font-size: var(--t-sm); font-weight: 500; padding: 8px 12px; border-radius: var(--r); color: var(--muted); }
.nav a:hover { color: var(--ink); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--yellow); border-radius: 0; }
.top__actions { display: flex; gap: 10px; align-items: center; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--rule); border-radius: var(--r); background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--ink); }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
.menu-btn { display: none; }
.top .btn { padding: .8em 1.1em; }
.drawer { position: fixed; inset: 0; z-index: 70; background: var(--paper); padding: calc(env(safe-area-inset-top, 0px) + 84px) var(--gut-r) 32px var(--gut-l); display: flex; flex-direction: column; visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s; }
.drawer.is-open { visibility: visible; opacity: 1; }
.drawer a:not(.btn) { font-family: var(--f-display); font-size: 2rem; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.drawer .btn { margin-top: 24px; }
.drawer__close { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 13px); right: var(--gut-r); }
@media (max-width: 960px) { .nav, .top .btn--cta { display: none; } .menu-btn { display: grid; } .top__actions { margin-left: auto; } }

/* Secciones */
.section { padding-block: clamp(56px, 8vw, 112px); }
.section--alt { background: var(--surface); }
.section--rule { border-top: 1px solid var(--rule); }
.head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 20px 56px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.head p { color: var(--muted); max-width: 46ch; }
.head > * { min-width: 0; }
@media (max-width: 820px) { .head { grid-template-columns: 1fr; } }

/* Hero */
.hero { padding-block: clamp(36px, 6vw, 84px) clamp(56px, 7vw, 100px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__grid > * { min-width: 0; }
.hero .lede { margin-top: 24px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 30px; font-size: var(--t-sm); color: var(--muted); }
.hero__facts span { display: inline-flex; gap: 8px; align-items: center; }
.hero__facts .ico { color: var(--blue); }
@media (max-width: 920px) { .hero__grid { grid-template-columns: 1fr; } }

/* Portada 3D */
.book-stage { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; }
.book { --rx: 4deg; --ry: -24deg; perspective: 1400px; width: min(260px, 52vw); aspect-ratio: 3 / 4.1; max-width: 100%; }
.book__body { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease); }
.book__front, .book__back, .book__spine, .book__pages { position: absolute; }
.book__front { inset: 0; border-radius: 3px 8px 8px 3px; background: linear-gradient(160deg, var(--cover) 0%, var(--cover-2) 100%); color: var(--on-cover); padding: 22px 20px; display: flex; flex-direction: column; transform: translateZ(14px); box-shadow: inset 7px 0 10px -6px rgba(0,0,0,.5), 3px 3px 0 #F1F0EA, 6px 6px 0 #DCDBD3, 9px 9px 0 var(--cover-2); overflow: hidden; }
.book__front { overflow: visible; }
.book__front::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 1px, transparent 1px 22px); pointer-events: none; }
.book__brand { font-family: var(--f-display); font-size: 1.05rem; opacity: .85; position: relative; }
.book__title { font-family: var(--f-display); font-size: clamp(1.5rem, 3.2vw, 2rem); line-height: 1.05; font-weight: 600; margin-top: auto; position: relative; }
.book__sub { font-size: .78rem; opacity: .85; margin-top: 10px; position: relative; line-height: 1.35; }
.book__year { position: absolute; top: 18px; right: 16px; }
.book__year.seal { --s: 62px; }
.book__bar { height: 6px; margin-top: 16px; background: var(--yellow); width: 46%; position: relative; }
.book__spine, .book__pages { display: none; }
.book__spine { top: 0; bottom: 0; left: 0; width: 28px; background: var(--cover-2); transform-origin: left; transform: rotateY(-90deg) translateX(-14px) translateZ(0); }
.book__pages { top: 6px; bottom: 6px; right: 0; width: 26px; background: repeating-linear-gradient(90deg, #F3F3EE 0 2px, #DEDDD6 2px 3px); transform-origin: right; transform: rotateY(90deg) translateX(13px); }
.book__back { inset: 0; background: var(--cover-2); transform: translateZ(-14px); border-radius: 3px 8px 8px 3px; box-shadow: 30px 30px 50px -20px rgba(10,18,40,.45); }
.book-stage:hover .book { --ry: -16deg; }
.toc-mini { font-size: var(--t-sm); min-width: 0; }
.toc-mini p { font-weight: 600; margin-bottom: 10px; }
.toc-mini ol { list-style: none; margin: 0; padding: 0; counter-reset: c; display: grid; }
.toc-mini li { counter-increment: c; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 6px; padding: 7px 0; border-top: 1px solid var(--rule); color: var(--muted); line-height: 1.35; }
.toc-mini li::before { content: counter(c); font-family: var(--f-display); font-weight: 600; color: var(--ink); }
@media (max-width: 560px) { .book-stage { grid-template-columns: 1fr; justify-items: start; } .book { width: 210px; } }
@media (prefers-reduced-motion: no-preference) {
  .book__body { animation: bookIn 1s .1s var(--ease) both; }
}
@keyframes bookIn { from { transform: rotateX(8deg) rotateY(-48deg) translateY(16px); opacity: .001; } }

/* Modelo de negocio */
.model { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 2px solid var(--ink); border-radius: var(--r-l); overflow: hidden; background: var(--paper); }
.model > div { padding: clamp(22px, 3vw, 34px); min-width: 0; display: grid; gap: 12px; align-content: start; }
.model > div + div { border-left: 1px solid var(--rule); }
.model h3 { font-size: 1.5rem; }
.model .big { font-family: var(--f-display); font-size: 3rem; font-weight: 700; line-height: 1; font-variant-numeric: lining-nums; }
.model ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: var(--t-sm); }
.model li::marker { color: var(--blue); }
.model p { font-size: var(--t-sm); color: var(--muted); }
.model__foot { grid-column: 1 / -1; border-top: 1px solid var(--rule); background: var(--surface); padding: 14px clamp(22px, 3vw, 34px) !important; display: flex !important; flex-wrap: wrap; gap: 10px 28px; font-size: var(--t-sm); }
.model__foot span { display: inline-flex; gap: 8px; align-items: center; }
.model__foot .ico { color: var(--good); }
@media (max-width: 860px) { .model { grid-template-columns: 1fr; } .model > div + div { border-left: 0; border-top: 1px solid var(--rule); } }

/* Test */
.quiz { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.quiz > * { min-width: 0; }
.quiz__box { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-l); padding: clamp(20px, 3vw, 34px); }
.quiz__progress { display: flex; gap: 6px; margin-bottom: 22px; }
.quiz__progress i { flex: 1; height: 5px; border-radius: 3px; background: var(--rule); transition: background .3s; }
.quiz__progress i.on { background: var(--yellow); }
.quiz__q { font-family: var(--f-display); font-size: 1.6rem; line-height: 1.2; }
.quiz__step { font-size: var(--t-xs); color: var(--muted); margin-bottom: 8px; }
.quiz__opts { display: grid; gap: 10px; margin-top: 20px; }
.quiz__opts button { text-align: left; font: inherit; font-size: var(--t-md); padding: 15px 18px; border-radius: var(--r); border: 1px solid var(--rule); background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s; display: flex; justify-content: space-between; gap: 12px; }
.quiz__opts button:hover { border-color: var(--ink); }
.quiz__opts button .k { font-weight: 700; color: var(--blue); }
.quiz__nav { display: flex; justify-content: space-between; margin-top: 18px; }
.quiz__nav button { font: 500 var(--t-sm)/1 var(--f-text); background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px 0; }
.quiz__nav button:hover { color: var(--ink); }
.result { display: grid; gap: 14px; }
.result__cat { display: flex; gap: 16px; align-items: center; }
.result h3 { font-size: var(--t-2xl); }
.result ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.result .note { margin-top: 4px; }
@media (max-width: 860px) { .quiz { grid-template-columns: 1fr; } }

/* Criterios (pesos) */
.weights { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.weights li { list-style: none; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 54px; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.weights { padding: 0; margin: 0; }
.weights strong { font-weight: 600; display: block; }
.weights span.d { font-size: var(--t-sm); color: var(--muted); }
.weights .bar { height: 12px; background: var(--surface); border-radius: 2px; overflow: hidden; }
.weights .bar i { display: block; height: 100%; background: var(--yellow); width: calc(var(--w) * 4%); }
.weights .pct { font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; text-align: right; font-variant-numeric: tabular-nums lining-nums; }
@media (max-width: 640px) { .weights li { grid-template-columns: minmax(0, 1fr) 54px; } .weights .bar { grid-column: 1 / -1; grid-row: 2; } }

/* Ficha */
.sheet { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-l); overflow: hidden; }
.sheet__flag { background: var(--yellow); color: var(--on-yellow); font-size: var(--t-xs); font-weight: 600; padding: 8px clamp(20px, 3vw, 30px); }
.sheet__top { display: flex; gap: 22px; align-items: center; padding: clamp(20px, 3vw, 30px); border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.sheet__top h3 { font-size: var(--t-2xl); }
.sheet__top p { color: var(--muted); font-size: var(--t-sm); margin-top: 4px; }
.sheet__top > div { min-width: 0; flex: 1 1 240px; }
.sheet__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sheet__grid > div { padding: clamp(20px, 3vw, 30px); min-width: 0; }
.sheet__grid > div + div { border-left: 1px solid var(--rule); }
.sub { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sub li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; font-size: var(--t-sm); }
.sub .bar { grid-column: 1 / -1; height: 6px; background: var(--surface); border-radius: 3px; overflow: hidden; }
.sub .bar i { display: block; height: 100%; width: calc(var(--v) * 10%); background: var(--blue); }
.sub b { font-variant-numeric: tabular-nums; }
.pc { display: grid; gap: 16px; font-size: var(--t-sm); }
.pc h4 { font-family: var(--f-text); font-size: var(--t-sm); font-weight: 700; margin-bottom: 6px; }
.pc ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; }
.pc .plus li::marker { content: "+  "; color: var(--good); font-weight: 700; }
.pc .minus li::marker { content: "–  "; color: var(--bad); font-weight: 700; }
@media (max-width: 760px) { .sheet__grid { grid-template-columns: 1fr; } .sheet__grid > div + div { border-left: 0; border-top: 1px solid var(--rule); } }

/* Guías */
.guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.guide { display: flex; flex-direction: column; gap: 12px; padding: 24px 24px 28px 0; text-decoration: none; min-width: 0; }
.guide + .guide { padding-left: 24px; border-left: 1px solid var(--rule); }
.guide__meta { font-size: var(--t-xs); color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.guide__meta b { color: var(--blue); font-weight: 600; }
.guide h3 { font-size: 1.5rem; transition: color .2s; }
.guide p { font-size: var(--t-sm); color: var(--muted); }
.guide:hover h3 { color: var(--blue); }
.guide__more { margin-top: auto; font-size: var(--t-sm); font-weight: 600; color: var(--blue); }
@media (max-width: 860px) { .guides { grid-template-columns: 1fr; } .guide, .guide + .guide { padding: 22px 0; border-left: 0; } .guide + .guide { border-top: 1px solid var(--rule); } }

/* Compra */
.buy { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.buy > * { min-width: 0; }
.price-box { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 92px); background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-l); padding: clamp(22px, 3vw, 32px); box-shadow: 8px 8px 0 var(--yellow); }
.price-box h3 { font-size: 1.5rem; }
.price-box .price { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; }
.price-box .price strong { font-family: var(--f-display); font-size: 4.2rem; line-height: 1; font-weight: 700; font-variant-numeric: lining-nums; }
.price-box .price span { color: var(--muted); font-size: var(--t-sm); }
.price-box .once { display: inline-block; margin-top: 10px; background: var(--blue-soft); color: var(--blue); font-weight: 600; font-size: var(--t-xs); padding: 6px 10px; border-radius: 4px; }
.price-box ul { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 9px; font-size: var(--t-sm); }
.price-box li { display: flex; gap: 10px; }
.price-box li .ico { color: var(--good); margin-top: 3px; }
.price-box .fine { margin-top: 14px; }
@media (max-width: 900px) { .buy { grid-template-columns: 1fr; } .price-box { position: static; } }

.chapters { list-style: none; padding: 0; margin: 0; counter-reset: ch; border-top: 2px solid var(--ink); }
.chapters li { counter-increment: ch; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.chapters li::before { content: counter(ch); font-family: var(--f-display); font-size: 2rem; font-weight: 600; line-height: 1; color: var(--blue); }
.chapters strong { display: block; font-weight: 600; }
.chapters span { font-size: var(--t-sm); color: var(--muted); }

/* Banda */
.band { background: var(--cover); color: var(--on-cover); border-radius: var(--r-l); padding: clamp(26px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; position: relative; overflow: hidden; }
.band > * { min-width: 0; position: relative; }
.band h2 { font-size: var(--t-2xl); max-width: 22ch; }
.band p { margin-top: 12px; max-width: 52ch; opacity: .86; }
.band__right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.band__right .meta { font-size: var(--t-xs); opacity: .85; }
.band .btn { background: var(--yellow); color: var(--on-yellow); border-color: var(--yellow); }
.band .btn:hover { box-shadow: 4px 4px 0 var(--on-cover); }
@media (max-width: 780px) { .band { grid-template-columns: 1fr; } }

/* FAQ */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; padding: 20px 0; font-family: var(--f-display); font-size: 1.3rem; font-weight: 600; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { margin-top: 4px; transition: transform .3s var(--ease); }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq details > div { padding: 0 0 22px; color: var(--muted); max-width: 66ch; }
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Cabecera de página */
.phead { padding-block: clamp(36px, 5vw, 80px) clamp(24px, 3vw, 44px); border-bottom: 1px solid var(--rule); }
.phead h1 { font-size: var(--t-3xl); max-width: 20ch; margin-top: 14px; }
.phead .lede { margin-top: 18px; max-width: 60ch; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: var(--t-xs); color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* Artículo */
.progress { position: fixed; left: 0; top: env(safe-area-inset-top, 0px); height: 3px; width: 100%; background: var(--yellow); transform-origin: 0 50%; transform: scaleX(0); z-index: 80; }
.art { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 64px; padding-block: 48px 96px; align-items: start; }
.art > * { min-width: 0; }
.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); font-size: var(--t-sm); }
.toc p { font-weight: 600; margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.toc a { display: block; text-decoration: none; color: var(--muted); padding: 6px 10px; border-left: 3px solid transparent; line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); border-left-color: var(--yellow); background: var(--surface); }
@media (max-width: 860px) { .art { grid-template-columns: 1fr; gap: 0; padding-top: 28px; } .toc { display: none; } }
.prose { max-width: 68ch; font-size: 1.125rem; line-height: 1.72; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--t-2xl); margin-top: 2em; scroll-margin-top: 100px; }
.prose h3 { font-size: 1.4rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--blue); font-weight: 600; }
.prose strong { font-weight: 600; }
.prose a { color: var(--blue); text-underline-offset: .2em; }
.brief { border: 2px solid var(--ink); border-radius: var(--r-l); padding: 20px 24px; font-size: var(--t-md); box-shadow: 6px 6px 0 var(--yellow); }
.brief p { font-weight: 700; margin-bottom: 8px; }
.brief ul { margin: 0; padding-left: 1.1em; }
.note { background: var(--blue-soft); border-radius: var(--r); padding: 16px 20px; font-size: var(--t-sm); line-height: 1.6; }
.note strong { color: var(--blue); }
.tbl { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r); margin-block: 1.4em; }
table { border-collapse: collapse; width: 100%; font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { background: var(--surface); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.sources { margin-top: 3em; padding-top: 1.2em; border-top: 1px solid var(--rule); font-size: var(--t-sm); color: var(--muted); }
.sources ul { padding-left: 1.1em; }
.art-meta { display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: var(--t-sm); color: var(--muted); margin-top: 20px; }
.art-meta b { color: var(--blue); font-weight: 600; }

/* Formularios */
.field { display: grid; gap: 6px; }
.field label { font-size: var(--t-sm); font-weight: 600; }
.input { font: inherit; font-size: var(--t-md); padding: 13px 15px; border-radius: var(--r); border: 1px solid var(--rule); background: var(--paper); color: var(--ink); width: 100%; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 22%, transparent); }
textarea.input { min-height: 150px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-sm); color: var(--muted); }
.check input { margin-top: 4px; width: 16px; height: 16px; flex: none; accent-color: var(--blue); }
.form-msg { font-size: var(--t-sm); padding: 12px 14px; border-radius: var(--r); background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good); }
.form-msg.is-err { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.contact { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(28px, 5vw, 72px); padding-block: 48px 96px; }
.contact > * { min-width: 0; }
.contact__email { font-family: var(--f-display); font-size: 1.7rem; user-select: all; overflow-wrap: anywhere; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }

/* Dialog */
dialog.checkout { border: 2px solid var(--ink); padding: 0; border-radius: var(--r-l); background: var(--paper); color: var(--ink); width: min(500px, calc(100vw - 32px)); box-shadow: 10px 10px 0 var(--yellow); }
dialog.checkout::backdrop { background: color-mix(in srgb, #0B1022 60%, transparent); }
.checkout__in { padding: 28px; display: grid; gap: 16px; position: relative; }
.checkout__row { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-block: 1px solid var(--rule); }
.checkout__row strong { font-family: var(--f-display); font-size: 1.5rem; }
.checkout__x { position: absolute; top: 12px; right: 12px; }

/* Legal */
.legal { max-width: 74ch; padding-block: 40px 96px; }
.legal h2 { font-size: 1.5rem; margin-top: 1.8em; }
.legal > * + * { margin-top: 1em; }
.legal ul { padding-left: 1.2em; }

/* Reglas (sobre nosotros) */
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.rules > div { padding: 24px 0; border-top: 1px solid var(--rule); display: grid; gap: 8px; min-width: 0; }
.rules h3 { font-size: 1.35rem; }
.rules p { color: var(--muted); font-size: var(--t-sm); }
@media (max-width: 760px) { .rules { grid-template-columns: 1fr; } }

/* Footer */
.foot { border-top: 2px solid var(--ink); background: var(--surface); }
.foot .wrap { padding-block: 56px calc(28px + env(safe-area-inset-bottom, 0px)); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
.foot__grid > * { min-width: 0; }
.foot h4 { font-family: var(--f-text); font-size: var(--t-sm); font-weight: 700; margin-bottom: 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: var(--t-sm); }
.foot ul a { color: var(--muted); text-decoration: none; }
.foot ul a:hover { color: var(--ink); }
.foot__legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--rule); display: grid; gap: 10px; }
.foot__legal p { font-size: var(--t-xs); color: var(--muted); max-width: 110ch; }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__grid > :first-child { grid-column: 1 / -1; } }

.cookie { position: fixed; z-index: 90; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: 420px; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-l); padding: 16px 18px; display: grid; gap: 12px; font-size: var(--t-sm); box-shadow: 6px 6px 0 var(--yellow); }
.cookie div { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie .btn { padding: .7em 1em; }

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