/* scrubcert.com
   El mundo de la app: el icono son tres tubos de extracción (tapa celeste de citrato, dorada de gel,
   lavanda de EDTA) sobre azul noche, y se lee como un gráfico de barras. La web hace lo mismo: los
   tubos son el gráfico del diagnóstico, las tapas dan el color a cada familia de exámenes y el orden
   de extracción es la cinta del pie. Las etiquetas imitan la de un tubo de muestra.
   Letras: Archivo ancha para titulares, Atkinson Hyperlegible para leer (hecha para baja visión) y
   su versión mono para las etiquetas. Verde y rojo NO son color de marca: en la app significan
   acierto y fallo. */

@font-face { font-family: "Archivo"; src: url(/fonts/archivo.woff) format("woff"); font-weight: 600 900; font-stretch: 100% 125%; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url(/fonts/atkinson.woff) format("woff"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Atkinson Mono"; src: url(/fonts/atkinson-mono.woff) format("woff"); font-weight: 400 700; font-display: swap; }

:root {
  --ok: #0F7A45; --ok-soft: #DDF3E7; --bad: #B42318; --bad-soft: #FDE7E5;
  --bg: #F5F7FA; --paper: #FFFFFF; --paper-2: #EEF2F7; --ink: #121821; --ink-2: #4A5668; --ink-3: #6B7686;
  --line: #D9E0E9; --line-2: #C3CDDA;
  --brand: #0A6E9B; --brand-2: #08587D; --brand-ink: #FFFFFF; --brand-soft: #DCEFFA;
  --cap-blue: #69BDE9; --cap-gold: #E9B23A; --cap-lav: #A981EC; --cap-rose: #EE8FB4; --cap-orange: #F0954A; --cap-gray: #9AA3AF;
  --gold-ink: #7A5200; --lav-ink: #5B3A9E;
  --night: #1B2232; --night-2: #131927; --night-ink: #EEF3F9; --night-ink-2: #A9B6C8; --night-line: #2D3850;
  --glass: rgba(220, 232, 245, .16); --glass-line: rgba(220, 232, 245, .5);
  --store-bg: #0B0F16; --store-ink: #FFFFFF;
  --shadow: 0 1px 2px rgba(18, 24, 33, .06), 0 8px 28px rgba(18, 24, 33, .08);
  --r: 18px; --r-sm: 12px;
  --w: 1180px; --gut: clamp(16px, 4vw, 40px);
  --f-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Atkinson", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Atkinson Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --ok: #5FD394; --ok-soft: #0F3524; --bad: #FF8A80; --bad-soft: #3E1714;
  --bg: #0F141D; --paper: #161D2A; --paper-2: #1C2433; --ink: #E8EDF4; --ink-2: #A8B3C3; --ink-3: #8592A5;
  --line: #273144; --line-2: #34405A;
  --brand: #79CBF2; --brand-2: #A3DBF6; --brand-ink: #00202F; --brand-soft: #0E3A52;
  --gold-ink: #F1C766; --lav-ink: #C9AEF6;
  --night: #121826; --night-2: #0C111B; --night-line: #26314A;
  --store-bg: #F4F7FB; --store-ink: #0B0F16;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ok: #5FD394; --ok-soft: #0F3524; --bad: #FF8A80; --bad-soft: #3E1714;
    --bg: #0F141D; --paper: #161D2A; --paper-2: #1C2433; --ink: #E8EDF4; --ink-2: #A8B3C3; --ink-3: #8592A5;
    --line: #273144; --line-2: #34405A;
    --brand: #79CBF2; --brand-2: #A3DBF6; --brand-ink: #00202F; --brand-soft: #0E3A52;
    --gold-ink: #F1C766; --lav-ink: #C9AEF6;
    --night: #121826; --night-2: #0C111B; --night-line: #26314A;
    --store-bg: #F4F7FB; --store-ink: #0B0F16;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.62 var(--f-body); overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--brand); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--cap-blue); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--f-head); font-stretch: 112%; line-height: 1.08; letter-spacing: -.015em; margin: 0 0 .5em; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-weight: 850; font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-stretch: 118%; }
h2 { font-weight: 800; font-size: clamp(1.55rem, 3.2vw, 2.3rem); }
h3 { font-weight: 750; font-size: 1.2rem; font-stretch: 106%; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 var(--gut); }
.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; background: var(--brand); color: var(--brand-ink); padding: 10px 16px; border-radius: 10px; z-index: 50; }
.skip:focus { top: 12px; }

/* La etiqueta de tubo de muestra: código de barras + texto mono */
.label { display: inline-flex; align-items: center; gap: .6em; font: 600 .76rem/1.2 var(--f-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 .9em; }
.label--tag::before { content: ""; width: 26px; height: 13px; flex: none; opacity: .8;
  background: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 3px, currentColor 3px 5px, transparent 5px 6px, currentColor 6px 7px, transparent 7px 9px); }

/* ── Cabecera ── */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.top__in { max-width: var(--w); margin: 0 auto; padding: 0 var(--gut); height: 64px; display: flex; align-items: center; gap: 22px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 1.22rem/1 var(--f-head); font-stretch: 116%; letter-spacing: -.02em; }
.logo__word b { color: var(--brand); font-weight: 800; }
.logo__mark { display: inline-flex; align-items: flex-end; gap: 3px; height: 24px; padding: 3px 5px; background: var(--night); border-radius: 7px; }
.logo__mark i { width: 5px; border-radius: 2px 2px 3px 3px; background: linear-gradient(var(--c) 0 34%, rgba(220,232,245,.4) 34%); }
.logo__mark i:nth-child(1) { height: 10px; --c: var(--cap-blue); }
.logo__mark i:nth-child(2) { height: 14px; --c: var(--cap-gold); }
.logo__mark i:nth-child(3) { height: 18px; --c: var(--cap-lav); }
.top__nav { display: flex; gap: 4px; margin-left: 10px; }
.nav__link { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .96rem; padding: 8px 12px; border-radius: 10px; }
.nav__link:hover { color: var(--ink); background: var(--paper-2); }
.nav__link[aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
.top__tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.top__lang { font: 700 .8rem/1 var(--f-mono); letter-spacing: .06em; color: var(--ink-2); text-decoration: none; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; }
.top__lang:hover { color: var(--ink); border-color: var(--line-2); }
.top__theme { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--ink-2); }
.top__theme span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.top__menu { display: none; }
.top__menu summary { list-style: none; cursor: pointer; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); }
.top__menu summary::-webkit-details-marker { display: none; }
.top__menu summary span, .top__menu summary span::before, .top__menu summary span::after { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; display: block; position: relative; transition: transform .2s; }
.top__menu summary span::before, .top__menu summary span::after { content: ""; position: absolute; }
.top__menu summary span::before { top: -6px; } .top__menu summary span::after { top: 6px; }
.top__menu[open] summary span { background: transparent; }
.top__menu[open] summary span::before { transform: translateY(6px) rotate(45deg); }
.top__menu[open] summary span::after { transform: translateY(-6px) rotate(-45deg); }
/* .top lleva backdrop-filter, que vuelve a .top el bloque contenedor de lo fijo: por eso la hoja no usa bottom:0 sino un alto explícito. */
.sheet { position: fixed; left: 0; right: 0; top: 64px; height: calc(100vh - 64px); height: calc(100dvh - 64px); overflow-y: auto; background: var(--bg); padding: 20px var(--gut) 40px; border-top: 1px solid var(--line); }
.sheet__exams { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 22px; }
.sheet__exams a { display: flex; flex-direction: column; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); text-decoration: none; color: var(--ink); background: var(--paper); }
.sheet__exams small { color: var(--ink-3); font-size: .78rem; }
.sheet__feats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 22px; }
.sheet__feats a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--r-sm); background: var(--paper-2); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .93rem; }
.sheet__main { display: flex; flex-direction: column; margin-bottom: 24px; }
.sheet__main a { padding: 13px 2px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.08rem; }

/* ── Botones ── */
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; border-radius: 14px; }
.btn--store { background: var(--store-bg); color: var(--store-ink); border: 1px solid color-mix(in srgb, var(--store-ink) 18%, transparent); }
.btn--store small { display: block; font: 500 .7rem/1 var(--f-body); opacity: .85; margin-bottom: 2px; }
.btn--store span { display: block; font: 700 1.2rem/1 var(--f-body); letter-spacing: -.01em; }
.btn--lg { padding: 11px 22px 11px 18px; min-height: 58px; }
.btn--lg .btn__apple { width: 24px; }
.btn--sm { padding: 8px 14px; min-height: 38px; border-radius: 10px; }
.btn--sm span { font-size: .92rem; } .btn--sm .btn__apple { width: 15px; }
.btn--store:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--ghost { padding: 14px 20px; border: 1px solid var(--line-2); color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 26px 0 0; }
.cta-row__note { margin: 0; color: var(--ink-3); font-size: .9rem; max-width: 30ch; }

/* ── Portada ── */
.hero { background: radial-gradient(120% 90% at 85% 10%, #26324A 0%, var(--night) 45%, var(--night-2) 100%); color: var(--night-ink); overflow: hidden; position: relative; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--night-line); }
.hero__in { max-width: var(--w); margin: 0 auto; padding: clamp(40px, 7vw, 92px) var(--gut) clamp(48px, 7vw, 96px); display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero .label { color: var(--night-ink-2); }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--cap-blue); }
.hero__lede { font-size: clamp(1.08rem, 1.6vw, 1.24rem); color: var(--night-ink-2); max-width: 40ch; }
.hero .btn--store { background: #fff; color: #0B0F16; }
.hero .cta-row__note { color: var(--night-ink-2); }
.hero__exams { display: flex; flex-wrap: wrap; gap: 6px; margin: 26px 0 0; padding: 0; list-style: none; }
.hero__exams a { font: 600 .78rem/1 var(--f-mono); letter-spacing: .05em; color: var(--night-ink); text-decoration: none; padding: 8px 10px; border: 1px solid var(--night-line); border-radius: 999px; background: rgba(255,255,255,.03); }
.hero__exams a:hover { border-color: var(--cap-blue); }
.hero__art { position: relative; min-height: 540px; }
.hero__art .phone { position: absolute; right: 0; top: 0; width: 248px; transform: rotate(4deg); }
.hero__art .rack { position: relative; z-index: 2; width: min(460px, 86%); margin-top: 190px; background: rgba(23, 30, 45, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 30px 60px -25px rgba(0,0,0,.7); }

/* El estante de tubos: el diagnóstico como gráfico */
.rack { margin: 0; padding: 20px 20px 16px; border-radius: 22px; background: rgba(255,255,255,.04); border: 1px solid var(--night-line); color: var(--night-ink); }
.rack__head .label { color: var(--night-ink-2); margin-bottom: 14px; }
.rack__row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; align-items: end; }
.rack__tube { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.rack__cap { width: 72%; max-width: 46px; height: 20px; border-radius: 7px 7px 3px 3px; background: var(--cap-blue); box-shadow: inset 0 -3px 0 rgba(0,0,0,.18), inset 0 2px 0 rgba(255,255,255,.35); position: relative; z-index: 1; }
.rack__glass { width: 60%; max-width: 38px; height: 150px; margin-top: -3px; border: 1.5px solid var(--glass-line); border-top: 0; border-radius: 0 0 20px 20px; background: linear-gradient(90deg, rgba(255,255,255,.12), rgba(255,255,255,.02) 40%, rgba(255,255,255,.1)); position: relative; overflow: hidden; }
.rack__blood { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--fill) * 1%); background: linear-gradient(180deg, color-mix(in srgb, var(--cap-blue) 80%, white) 0 4px, color-mix(in srgb, var(--cap-blue) 55%, transparent) 4px); animation: llenar 1.4s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(.25s + var(--i) * .12s); transform-origin: bottom; }
.rack__tube--weak .rack__cap { background: var(--cap-gold); }
.rack__tube--weak .rack__blood { background: linear-gradient(180deg, #F6D58A 0 4px, rgba(233,178,58,.6) 4px); }
.rack__tube--weak .rack__glass { border-color: var(--cap-gold); box-shadow: 0 0 0 4px rgba(233,178,58,.14); }
.rack__pct { font: 800 1.05rem/1 var(--f-head); font-stretch: 112%; margin-top: 10px; font-variant-numeric: tabular-nums; }
.rack__tube--weak .rack__pct { color: var(--cap-gold); }
.rack__name { font-size: .74rem; line-height: 1.2; color: var(--night-ink); margin-top: 6px; min-height: 2.4em; }
.rack__weight { font: 500 .66rem/1.2 var(--f-mono); color: var(--night-ink-2); margin-top: 4px; }
.rack__foot { font-size: .76rem; color: var(--night-ink-2); margin: 14px 0 0; line-height: 1.4; }
@keyframes llenar { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Marco de iPhone en CSS para las capturas reales */
.phone { margin: 0; position: relative; width: 100%; max-width: 300px; padding: 9px; border-radius: 46px; background: linear-gradient(145deg, #3A4253, #12161F 50%, #2A303C); box-shadow: 0 30px 60px -20px rgba(5, 10, 20, .55), 0 0 0 1px rgba(255,255,255,.06) inset; }
.phone__glass { border-radius: 38px; overflow: hidden; background: #000; position: relative; }
.phone__glass::before { content: ""; position: absolute; top: 9px; left: 50%; width: 30%; height: 22px; transform: translateX(-50%); background: #000; border-radius: 20px; z-index: 1; }
.phone__shot img { width: 100%; height: auto; padding-top: 38px; background: #fff; }
.phone--tilt { transform: rotate(-2.5deg); }

/* ── Secciones de la portada y de las funciones ── */
.band { padding: clamp(56px, 8vw, 104px) 0; }
.band--paper { background: var(--paper); border-block: 1px solid var(--line); }
.band__head { max-width: 760px; margin-bottom: clamp(26px, 4vw, 44px); }
.band__head p { color: var(--ink-2); font-size: 1.1rem; }
.band .wrap > h2:not(:first-child) { margin-top: 1.7em; }
.split__text h2:not(:first-child) { margin-top: 1.4em; }
.split { display: grid; grid-template-columns: 1fr minmax(240px, 320px); gap: clamp(28px, 6vw, 80px); align-items: center; }
.split--flip { grid-template-columns: minmax(240px, 320px) 1fr; }
.split--flip > :first-child { order: 2; }
.split__text { max-width: 600px; }
.split__text p { color: var(--ink-2); }
.split__text p strong { color: var(--ink); }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 16px; height: 18px; border-radius: 4px 4px 7px 7px; border: 1.5px solid var(--line-2); background: linear-gradient(transparent 55%, var(--cap-blue) 55%); }
.ticks li strong { color: var(--ink); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 0; }
.stats div { background: var(--paper); padding: 22px 20px; }
.stats dt { font: 850 clamp(1.8rem, 3.6vw, 2.6rem)/1 var(--f-head); font-stretch: 118%; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stats dd { margin: 8px 0 0; color: var(--ink-2); font-size: .92rem; line-height: 1.35; }
.stats-src { font-size: .8rem; color: var(--ink-3); margin-top: 10px; }

.exam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.exam-card { position: relative; display: flex; flex-direction: column; padding: 34px 20px 20px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s; }
.exam-card__cap { position: absolute; top: -1px; left: 20px; width: 64px; height: 16px; border-radius: 0 0 6px 6px; background: var(--c, var(--cap-blue)); transition: transform .45s cubic-bezier(.3,1.6,.5,1); }
.exam-card--gold { --c: var(--cap-gold); } .exam-card--lav { --c: var(--cap-lav); } .exam-card--blue { --c: var(--cap-blue); }
.exam-card--rose { --c: var(--cap-rose); } .exam-card--orange { --c: var(--cap-orange); } .exam-card--gray { --c: var(--cap-gray); }
.exam-card__kicker { font: 600 .72rem/1.2 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.exam-card__title { font: 800 1.45rem/1.1 var(--f-head); font-stretch: 114%; margin: 8px 0 8px; }
.exam-card__facts { color: var(--ink-2); font-size: .92rem; line-height: 1.4; }
.exam-card:hover { border-color: var(--c); transform: translateY(-2px); }
.exam-card:hover .exam-card__cap { transform: rotate(-6deg) translateY(-1px); }

.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feat-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .2s; }
.feat-card:hover { border-color: var(--brand); }
.feat-card__title { font: 800 1.12rem/1.2 var(--f-head); font-stretch: 108%; }
.feat-card__text { color: var(--ink-2); font-size: .94rem; line-height: 1.45; }
.ico { width: 26px; height: 26px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.card:hover { border-color: var(--brand); }
.card__kicker { font: 600 .72rem/1.2 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.card__title { font: 800 1.1rem/1.22 var(--f-head); font-stretch: 106%; }
.card__text { color: var(--ink-2); font-size: .93rem; line-height: 1.45; }
.tag { font: 700 .66rem/1 var(--f-mono); padding: 3px 5px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--ink-3); vertical-align: middle; }

.quote-box { border-left: 4px solid var(--cap-blue); padding: 6px 0 6px 18px; color: var(--ink-2); }

/* Precios */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; }
.price { position: relative; display: flex; flex-direction: column; padding: 30px 22px 22px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.price--free { background: var(--paper-2); }
.price--top { border: 2px solid var(--brand); }
.price__cap { position: absolute; top: -1px; left: 22px; width: 58px; height: 14px; border-radius: 0 0 6px 6px; background: var(--c, var(--cap-blue)); }
.price__name { font: 800 1.15rem/1.2 var(--f-head); font-stretch: 108%; margin: 0 0 6px; }
.price__amount { font: 850 2.5rem/1 var(--f-head); font-stretch: 118%; letter-spacing: -.03em; margin: 10px 0 4px; font-variant-numeric: tabular-nums; }
.price__amount small { font: 500 .9rem var(--f-body); color: var(--ink-3); letter-spacing: 0; }
.price ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; color: var(--ink-2); font-size: .95rem; }
.price li { padding-left: 22px; position: relative; }
.price li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 6px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.price-note { color: var(--ink-3); font-size: .86rem; margin-top: 14px; }

/* ── Páginas de lectura (examen, artículo, método, legal) ── */
.crumbs-wrap { padding-top: 22px; }
.crumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.read-head { background: var(--paper); border-bottom: 1px solid var(--line); padding: 26px 0 34px; position: relative; }
.read-head::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--c, linear-gradient(90deg, var(--cap-blue), var(--cap-gold), var(--cap-lav))); }
.read-head--blue { --c: var(--cap-blue); } .read-head--gold { --c: var(--cap-gold); } .read-head--lav { --c: var(--cap-lav); }
.read-head--rose { --c: var(--cap-rose); } .read-head--orange { --c: var(--cap-orange); } .read-head--gray { --c: var(--cap-gray); }
.read-head h1 { max-width: 22ch; font-size: clamp(2rem, 4.6vw, 3.1rem); }
.read-head .lede { font-size: 1.16rem; color: var(--ink-2); max-width: 62ch; }
.byline { color: var(--ink-3); font-size: .88rem; margin: 0; }
.read-grid { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: clamp(28px, 5vw, 64px); padding-top: 36px; padding-bottom: 64px; }
.read-grid:not(:has(.toc)) { grid-template-columns: minmax(0, 760px); }
.toc { position: sticky; top: 88px; align-self: start; font-size: .88rem; max-height: calc(100vh - 110px); overflow: auto; }
.toc ol { list-style: none; margin: 0; padding: 0 0 0 12px; border-left: 2px solid var(--line); display: grid; gap: 8px; }
.toc a { color: var(--ink-2); text-decoration: none; display: block; line-height: 1.3; }
.toc a:hover, .toc a.on { color: var(--brand); }
.prose { min-width: 0; }
.prose > * { max-width: 70ch; }
.prose h2 { margin-top: 1.8em; font-size: clamp(1.45rem, 2.7vw, 1.9rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--brand); }
.prose strong { font-weight: 700; color: var(--ink); }
.prose .src, .src { font: 500 .78rem/1.45 var(--f-mono); color: var(--ink-3); margin-top: -.3em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--cap-blue); color: var(--ink-2); }
.table-wrap { overflow-x: auto; margin: 1.2em 0 1em; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); max-width: none !important; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table-wrap th, .table-wrap td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-wrap thead th { font: 700 .74rem/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); background: var(--paper-2); }
.table-wrap tbody tr:last-child > * { border-bottom: 0; }
.table-wrap .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-wrap .total td { font-weight: 700; background: var(--paper-2); }
.table-wrap--facts table { font-size: 1rem; }
.table-wrap--facts th { width: 42%; color: var(--ink-2); font-weight: 600; background: var(--paper-2); }
.table-wrap--facts td { font-weight: 700; }
.chip { display: inline-block; width: .9em; height: .9em; border-radius: 3px; vertical-align: -.08em; margin-right: .45em; border: 1px solid rgba(0,0,0,.2); background: var(--c); }
.short { background: var(--brand-soft); border-radius: var(--r); padding: 18px 22px; margin: 0 0 1.6em; max-width: 70ch; }
.short .label { color: var(--brand-2); margin-bottom: .5em; }
.short p:last-child, .short ul:last-child { margin-bottom: 0; }
:root[data-theme="dark"] .short .label { color: var(--brand); }
.note { border: 1px dashed var(--line-2); border-radius: var(--r-sm); padding: 14px 18px; color: var(--ink-2); font-size: .95rem; }
.steps { counter-reset: paso; list-style: none; padding: 0 !important; }
.steps > li { counter-increment: paso; position: relative; padding: 0 0 0 52px; margin-bottom: 1.1em; }
.steps > li::before { content: counter(paso); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 10px 10px 14px 14px; display: grid; place-items: center; font: 800 1rem/1 var(--f-head); background: var(--paper); border: 1.5px solid var(--line-2); color: var(--brand); }
.faqs { display: grid; gap: 10px; margin: 1em 0; }
.faq { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); padding: 0 18px; }
.faq summary { cursor: pointer; list-style: none; padding: 15px 30px 15px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq p { color: var(--ink-2); }
.plate { margin: 1.4em 0; max-width: 520px !important; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.plate img { width: 100%; }
.plate__dark { display: none; }
:root[data-theme="dark"] .plate__light { display: none; }
:root[data-theme="dark"] .plate__dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .plate__light { display: none; } :root:not([data-theme="light"]) .plate__dark { display: block; } }
.prose .phone { max-width: 260px; margin: 1.6em 0; }
.related { padding-bottom: 56px; }
.related h2 { font-size: 1.4rem; }

/* Comparativa */
.compare td:first-child, .compare th:first-child { font-weight: 700; min-width: 150px; }
.compare td.us { background: color-mix(in srgb, var(--brand-soft) 60%, transparent); }
.yes { color: var(--brand); font-weight: 700; }

/* Banda final y pie */
.endband { background: var(--night); color: var(--night-ink); padding: clamp(44px, 6vw, 72px) 0; }
.endband__in { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: center; }
.endband h2 { color: #fff; margin-bottom: .3em; }
.endband p { color: var(--night-ink-2); margin: 0; max-width: 52ch; }
.endband .cta-row { margin: 0; }
.endband .btn--store { background: #fff; color: #0B0F16; }
.endband .cta-row__note { color: var(--night-ink-2); }
.draw-strip { display: grid; grid-template-columns: repeat(9, 1fr); height: 8px; }
.draw-strip i:nth-child(1) { background: #E5B22B; } .draw-strip i:nth-child(2) { background: #8ECBEA; } .draw-strip i:nth-child(3) { background: #D7443E; }
.draw-strip i:nth-child(4) { background: #D9A441; } .draw-strip i:nth-child(5) { background: #1E7A46; } .draw-strip i:nth-child(6) { background: #7FC49A; }
.draw-strip i:nth-child(7) { background: #9B73CF; } .draw-strip i:nth-child(8) { background: #EFE196; } .draw-strip i:nth-child(9) { background: #969BA0; }
.foot { background: var(--paper); border-top: 1px solid var(--line); font-size: .93rem; }
.foot__in { max-width: var(--w); margin: 0 auto; padding: 48px var(--gut) 28px; display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 28px; }
.foot__brand p { color: var(--ink-2); max-width: 36ch; }
.foot__col h2 { font: 700 .74rem/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 6px 0 12px; }
.foot__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.foot__col a { color: var(--ink-2); text-decoration: none; }
.foot__col a:hover { color: var(--brand); }
.foot__lang { display: flex; gap: 8px; }
.foot__lang a { color: var(--ink-2); text-decoration: none; padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px; font-size: .85rem; }
.foot__lang a[aria-current] { border-color: var(--brand); color: var(--ink); }
.foot__base { max-width: var(--w); margin: 0 auto; padding: 18px var(--gut) 40px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .8rem; }
.foot__disclaimer { max-width: 110ch; }

/* 404 */
.lost { padding: 80px 0 100px; text-align: left; }
.lost h1 { max-width: 16ch; }

/* Aparición al bajar (solo con JS y si no se pidió menos movimiento) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 1020px) {
  .top__nav { display: none; }
  .top__menu { display: block; }
  .top__get { display: none; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .foot__in { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
  .read-grid { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 860px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__art { max-width: 560px; min-height: 0; padding-top: 0; }
  .hero__art .phone { width: 210px; right: -10px; top: -10px; }
  .hero__art .rack { margin-top: 150px; }
  .split, .split--flip { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
  .split .phone, .split--flip .phone { max-width: 250px; margin: 0 auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .prices { grid-template-columns: 1fr; }
  .endband__in { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 1.03rem; }
  .top__theme { display: none; }
  .feat-grid { grid-template-columns: 1fr; }
  .hero__art .phone { display: none; }
  .hero__art .rack { width: 100%; margin-top: 8px; }
  .rack { padding: 16px 12px 12px; }
  .rack__row { gap: 6px; }
  .rack__glass { height: 120px; }
  .rack__name { font-size: .68rem; }
  .rack__weight { font-size: .6rem; }
  .sheet__exams, .sheet__feats { grid-template-columns: 1fr; }
  .foot__in { grid-template-columns: 1fr 1fr; gap: 22px; }
  .table-wrap th, .table-wrap td { padding: 9px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Ajustes tras mirar las páginas armadas (5 nov) */
.split__text h1, .band__head h1 { font-size: clamp(2rem, 4.2vw, 3.05rem); }
.price__amount small { display: block; margin-top: 4px; }
.price__amount + .price__amount { margin-top: 14px; }
@media (max-width: 560px) {
  .exam-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .exam-card { padding: 28px 14px 14px; }
  .exam-card__title { font-size: 1.12rem; }
  .exam-card__facts { font-size: .8rem; }
  .exam-card__cap { left: 14px; width: 48px; height: 12px; }
}

/* Prueba de 5 preguntas (3 dic 2026) */
.quiz { margin: 2.2em 0; padding: clamp(18px, 3vw, 30px); border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); }
.quiz h2 { margin-top: 0; }
.quiz__sub { color: var(--ink-2); }
.quiz__lista { list-style: none; padding: 0; margin: 1.2em 0 0; display: grid; gap: 22px; }
.quiz__q { border-top: 1px solid var(--line); padding-top: 18px; }
.quiz__n { font: 700 .78rem/1 var(--f-body); letter-spacing: .06em; color: var(--ink-3); margin: 0 0 6px; }
.quiz__p { font-weight: 700; margin: 0 0 12px; }
.quiz__ops { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.quiz__op { width: 100%; display: flex; gap: 12px; align-items: flex-start; text-align: left; font: inherit; color: var(--ink); background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.quiz__op b { flex: none; width: 1.6em; height: 1.6em; display: grid; place-items: center; border-radius: 50%; background: var(--paper); border: 1px solid var(--line-2); font-size: .85rem; }
.quiz__op:hover:not(:disabled) { border-color: var(--brand); }
.quiz__op:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.quiz__op:disabled { cursor: default; }
.quiz__op.ok { background: var(--ok-soft); border-color: var(--ok); }
.quiz__op.ok b { background: var(--ok); color: var(--paper); border-color: var(--ok); }
.quiz__op.mal { background: var(--bad-soft); border-color: var(--bad); }
.quiz__op.mal b { background: var(--bad); color: var(--paper); border-color: var(--bad); }
.quiz__exp { margin-top: 10px; }
.quiz__exp summary { cursor: pointer; color: var(--brand); font-weight: 700; }
.quiz__q.hecha .quiz__exp summary { display: none; }
.quiz__exp p { color: var(--ink-2); margin: .5em 0; }
.quiz__src { font-size: .85rem; color: var(--ink-3); }
.quiz__fin { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 18px; }
.quiz__nota { font: 700 1.25rem/1.2 var(--f-head); color: var(--brand); margin: 0 0 6px; }
.prose .quiz__lista, .prose .quiz__ops { padding-left: 0; margin-left: 0; list-style: none; }
.prose .quiz__lista > li, .prose .quiz__ops > li { margin: 0; padding-left: 0; }
.prose .quiz__lista > li::before, .prose .quiz__ops > li::before { content: none; }
.quiz__mas { font-weight: 700; margin: 0 0 10px; }
