/* Electrician License Exam Prep · la web
   Sale del icono de la app: un código rojo con pestañas amarillas sobre carbón.
   Letras de la app (Barlow y Barlow Condensed, OFL). Cuadrícula de plano, cinta de obra,
   el directorio de un tablero para los exámenes. Claro y oscuro. */

@font-face { font-family: "Barlow"; src: url(/fonts/barlow-400.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/fonts/barlow-500.woff) format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/fonts/barlow-600.woff) format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/fonts/barlow-700.woff) format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/fonts/barlow-condensed-700.woff) format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/fonts/barlow-condensed-800.woff) format("woff"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/fonts/barlow-condensed-900.woff) format("woff"); font-weight: 900; font-display: swap; }

:root {
  --carbon: #16181A;
  --carbon-2: #212528;
  --carbon-line: #2F3438;
  --red: #B3121D;          /* rojo del NEC, el de la app */
  --red-deep: #6E0B12;
  --red-hot: #D42530;
  --tab: #F5AB00;          /* las pestañas del icono */
  --tab-soft: #FFE7A8;
  --cream: #F3EFE8;
  --paper: #FBFBFC;
  --paper-2: #F2F3F5;
  --sheet: #FFFFFF;
  --ink: #16181A;
  --ink-2: #4E555C;
  --line: #D8DBDF;
  --grid: rgba(22, 24, 26, .045);
  --ok: #2E7D32;
  --link: #A3101A;
  --shadow: 0 1px 2px rgba(22,24,26,.06), 0 12px 32px -12px rgba(22,24,26,.22);
  --r: 14px;
  --wrap: 1180px;
  --cond: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --sans: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E1012; --paper-2: #16191C; --sheet: #1B1E21; --ink: #E8EAEC; --ink-2: #AAB0B6;
    --line: #2F3438; --grid: rgba(232, 234, 236, .035); --link: #FF8A80; --cream: #23272B;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 40px -16px rgba(0,0,0,.7); --ok: #66BB6A; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0E1012; --paper-2: #16191C; --sheet: #1B1E21; --ink: #E8EAEC; --ink-2: #AAB0B6;
  --line: #2F3438; --grid: rgba(232, 234, 236, .035); --link: #FF8A80; --cream: #23272B;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 40px -16px rgba(0,0,0,.7); --ok: #66BB6A; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.62 var(--sans);
  font-feature-settings: "lnum", "kern"; overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--tab); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--cond); line-height: 1.02; letter-spacing: -.005em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-weight: 900; font-size: clamp(2.6rem, 6.4vw, 5.2rem); text-transform: uppercase; }
h2 { font-weight: 800; font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-weight: 700; font-size: 1.45rem; line-height: 1.1; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 99; background: var(--tab); color: var(--carbon); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }

/* Etiqueta tipo artículo del NEC */
.kicker, .card__kicker, .eyebrow {
  font: 700 .82rem/1 var(--cond); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: .6em; margin: 0 0 1.1rem;
}
.kicker::before, .eyebrow::before {
  content: attr(data-art); content: ""; width: 26px; height: 14px; border-radius: 3px; background: var(--tab);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.12);
}
.art { font: 800 .8rem/1 var(--cond); letter-spacing: .08em; background: var(--tab); color: var(--carbon); padding: .32em .55em .28em; border-radius: 4px; text-transform: uppercase; white-space: nowrap; }

/* ── Cabecera ─────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 50; background: rgba(22,24,26,.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); color: #E8EAEC; border-bottom: 1px solid #2a2e32; }
.top__in { max-width: var(--wrap); margin: 0 auto; padding: 10px clamp(16px, 4vw, 40px); display: flex; align-items: center; gap: 18px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.logo__mark { width: 36px; height: 36px; flex: none; }
.logo__word { display: flex; flex-direction: column; line-height: 1; }
.logo__word b { font: 900 1.32rem/1 var(--cond); text-transform: uppercase; letter-spacing: .01em; }
.logo__word small { font: 600 .72rem/1.2 var(--cond); letter-spacing: .1em; text-transform: uppercase; color: var(--tab); margin-top: 3px; }
.top__nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__link { color: #D7DADD; text-decoration: none; font: 600 .98rem/1 var(--sans); padding: 10px 12px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; list-style: none; }
.nav__link::-webkit-details-marker { display: none; }
.nav__link:hover, .nav__link[aria-current] { color: #fff; background: #262a2e; }
.nav__link[aria-current] { box-shadow: inset 0 -2px 0 var(--tab); }
.nav__link svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.mega { position: relative; }
.mega__panel { position: absolute; top: calc(100% + 10px); left: -160px; width: 620px; background: var(--sheet); color: var(--ink); border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mega__item { display: flex; gap: 12px; padding: 12px; border-radius: 10px; color: inherit; text-decoration: none; }
.mega__item:hover, .mega__item[aria-current] { background: var(--paper-2); }
.mega__item b { display: block; font: 700 1.08rem/1.15 var(--cond); }
.mega__item small { color: var(--ink-2); font-size: .86rem; line-height: 1.35; }
.mega__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 12px 12px 4px; margin-top: 4px; font-weight: 600; }
.mega__foot a { text-decoration: none; }
.ico { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--red); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.top__tools { display: flex; align-items: center; gap: 8px; }
.top__lang { color: #D7DADD; font: 700 .85rem/1 var(--cond); letter-spacing: .1em; text-decoration: none; border: 1px solid #3a3f44; border-radius: 6px; padding: 7px 8px; }
.top__lang:hover { border-color: var(--tab); color: #fff; }
.top__theme { width: 36px; height: 36px; border-radius: 8px; border: 1px solid #3a3f44; background: none; cursor: pointer; display: grid; place-items: center; }
.top__theme span { width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(90deg, var(--tab) 50%, transparent 50%); border: 2px solid var(--tab); }
.top__menu { display: none; }
.top__menu summary { list-style: none; width: 42px; height: 38px; display: grid; place-items: center; cursor: pointer; border-radius: 8px; border: 1px solid #3a3f44; }
.top__menu summary::-webkit-details-marker { display: none; }
.top__menu summary span, .top__menu summary span::before, .top__menu summary span::after { display: block; width: 18px; height: 2px; background: #fff; 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__sheet { position: fixed; left: 0; right: 0; top: 59px; bottom: 0; background: var(--carbon); padding: 18px clamp(16px, 4vw, 40px) 40px; overflow: auto; }
.top__sheet-k { font: 700 .8rem/1 var(--cond); letter-spacing: .12em; text-transform: uppercase; color: var(--tab); margin: 6px 0 12px; }
.top__sheet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.top__sheet-grid a { background: #212528; color: #fff; text-decoration: none; border-radius: 12px; padding: 12px; font: 700 1rem/1.15 var(--cond); display: flex; flex-direction: column; gap: 8px; }
.top__sheet-grid .ico { stroke: var(--tab); }
.top__sheet-main { display: flex; flex-direction: column; margin: 18px 0; border-top: 1px solid #2f3438; }
.top__sheet-main a { color: #fff; text-decoration: none; padding: 14px 2px; border-bottom: 1px solid #2f3438; font: 700 1.3rem/1 var(--cond); }

/* ── Botones ─────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 700 1rem/1 var(--sans); border-radius: 12px; padding: 14px 20px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn--store { background: #000; color: #fff; border-color: #000; padding: 10px 18px 10px 14px; }
.btn--store span { display: flex; flex-direction: column; align-items: flex-start; font: 600 1.25rem/1 var(--sans); letter-spacing: -.01em; }
.btn--store small { font: 500 .7rem/1.2 var(--sans); letter-spacing: .01em; }
.btn--store .btn__apple { width: 22px; height: 26px; }
.btn--sm { padding: 7px 12px 7px 10px; border-radius: 9px; border-color: #3a3f44; }
.btn--sm span { font-size: .95rem; }
.btn--sm .btn__apple { width: 15px; height: 18px; }
.btn--lg { padding: 12px 22px 12px 16px; }
.btn--ghost { color: var(--ink); border-color: var(--line); background: var(--sheet); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--red { background: var(--red); color: #fff; }
.on-dark .btn--ghost { background: transparent; color: #fff; border-color: #4a5056; }
.on-dark .btn--ghost:hover { border-color: var(--tab); }
.on-dark .btn--store { border-color: #3a3f44; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ── Cinta de obra ───────────────────────────────────── */
.hazard { height: 14px; background: repeating-linear-gradient(-45deg, var(--tab) 0 18px, var(--carbon) 18px 36px); }

/* ── Portada ─────────────────────────────────────────── */
.on-dark { background: var(--carbon); color: #E8EAEC; }
.on-dark a:not(.btn) { color: var(--tab); }
.plan { background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 28px 28px; }
.on-dark.plan { --grid: rgba(255,255,255,.045); }
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 92px) 0 0; }
.hero__in { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 56px); align-items: end; }
.hero h1 { color: #fff; margin-bottom: .32em; }
.hero h1 em { font-style: normal; color: var(--tab); }
.hero .kicker { color: #AAB0B6; }
.hero__lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: #C9CDD1; max-width: 36em; margin-bottom: 1.6rem; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 clamp(32px, 5vw, 64px); padding: 0; list-style: none; color: #AAB0B6; font: 600 .95rem/1.3 var(--sans); }
.hero__facts b { color: #fff; font: 800 1.45rem/1 var(--cond); margin-right: 4px; }
.hero__art { position: relative; align-self: end; display: flex; justify-content: center; min-height: 420px; }
.hero__art .phone { width: min(330px, 78vw); margin-bottom: -60px; transform: rotate(-3deg); }
.gauge { position: absolute; left: -6px; top: 26px; width: 150px; background: var(--sheet); color: var(--ink); border-radius: 16px; padding: 12px; box-shadow: var(--shadow); text-align: center; transform: rotate(2deg); }
.gauge svg { width: 100%; height: auto; }
.gauge__track { fill: none; stroke: var(--line); stroke-width: 10; }
.gauge__fill { fill: none; stroke: var(--red); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 0 999; transition: stroke-dasharray 1.4s cubic-bezier(.2,.8,.2,1); }
.gauge__line { stroke: var(--tab); stroke-width: 3; }
.gauge b { display: block; font: 900 2rem/1 var(--cond); margin-top: -46px; }
.gauge small { display: block; font: 700 .72rem/1.25 var(--cond); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin-top: 26px; }
.clock { position: absolute; right: -4px; bottom: 120px; background: var(--tab); color: var(--carbon); border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow); font: 900 1.9rem/1 var(--cond); font-variant-numeric: tabular-nums; transform: rotate(-2deg); }
.clock small { display: block; font: 700 .66rem/1.2 var(--cond); letter-spacing: .1em; text-transform: uppercase; }

/* Teléfono con la captura real */
.phone { margin: 0; background: #0b0c0d; border-radius: 44px; padding: 10px; box-shadow: 0 30px 60px -24px rgba(0,0,0,.55), inset 0 0 0 2px #2a2e32; }
.phone__screen { border-radius: 34px; overflow: hidden; background: #fff; }
.phone img { width: 100%; height: auto; }

/* Banda de cifras oficiales */
.stats { padding: clamp(44px, 6vw, 80px) 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--line); border: 2px solid var(--line); border-radius: 18px; overflow: hidden; }
.stat { background: var(--sheet); padding: 22px 20px 20px; }
.stat__n { font: 900 clamp(2.6rem, 5vw, 3.8rem)/1 var(--cond); color: var(--red); font-variant-numeric: tabular-nums; }
.stat__n small { font-size: .5em; }
.stat p { margin: 8px 0 0; color: var(--ink-2); font-size: .95rem; line-height: 1.4; }
.stat p b { color: var(--ink); }
.source { font-size: .84rem; color: var(--ink-2); margin-top: 14px; }

/* Secciones */
.section { padding: clamp(52px, 7vw, 100px) 0; }
.section--tight { padding-top: 0; }
.section__head { max-width: 760px; margin-bottom: clamp(26px, 4vw, 44px); }
.section__head p { color: var(--ink-2); font-size: 1.12rem; }
.on-dark .section__head p { color: #B9BEC3; }
.on-dark .kicker { color: #AAB0B6; }
.on-dark h2 { color: #fff; }

/* El código con pestañas (funciones) */
.book { display: grid; grid-template-columns: 300px 1fr; gap: 0; align-items: stretch; }
.book__cover { position: relative; background: linear-gradient(140deg, var(--red-hot), var(--red) 55%, #8f0d17); border-radius: 22px 8px 8px 22px; min-height: 100%; box-shadow: var(--shadow); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.book__spine { position: absolute; left: 0; top: 0; bottom: 0; width: 46px; background: var(--red-deep); }
.book__cover .bolt { width: 110px; height: 165px; margin-left: 30px; }
.book__label { position: absolute; left: 66px; bottom: 22px; color: rgba(255,255,255,.86); font: 800 .95rem/1 var(--cond); letter-spacing: .14em; }
.book__tabs { list-style: none; margin: 0; padding: 12px 0; background: var(--cream); border-radius: 0 6px 6px 0; display: flex; flex-direction: column; gap: 8px; border-left: 10px solid var(--cream); }
.book__tab { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: baseline; padding: 14px 20px; margin-right: -18px; background: var(--tab); color: var(--carbon); text-decoration: none; border-radius: 0 12px 12px 0; box-shadow: inset 0 -4px 0 rgba(0,0,0,.1); transition: transform .2s, background .2s; }
.book__tab b { font: 800 1.3rem/1.05 var(--cond); text-transform: uppercase; }
.book__tab small { font-size: .98rem; line-height: 1.35; color: #3b3220; }
.book__tab:hover { transform: translateX(10px); background: #ffbd1f; }
[data-reveal] .book__tabs li { opacity: 0; transform: translateX(-24px); transition: opacity .5s, transform .5s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i) * 70ms); }
[data-reveal].is-in .book__tabs li { opacity: 1; transform: none; }

/* Escaparate de pantallas */
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 36px); align-items: start; }
.screen { margin: 0; }
.screen .phone { max-width: 300px; margin: 0 auto; }
.screen figcaption { margin-top: 18px; text-align: center; color: var(--ink-2); font-size: .98rem; }
.screen figcaption b { display: block; color: var(--ink); font: 800 1.3rem/1.1 var(--cond); margin-bottom: 4px; }
.screen:nth-child(2) { margin-top: 48px; }

/* El tablero de exámenes */
.panel { background: #23272b; border-radius: 18px; padding: 18px; color: #E8EAEC; box-shadow: var(--shadow); border: 1px solid #33383d; position: relative; }
.panel::before { content: ""; position: absolute; inset: 8px; border: 1px dashed #3a3f44; border-radius: 12px; pointer-events: none; }
.panel__head, .panel__row { display: grid; grid-template-columns: 46px 34px 1fr 90px 80px 104px; gap: 12px; align-items: center; }
.panel__head { font: 700 .74rem/1 var(--cond); letter-spacing: .12em; text-transform: uppercase; color: #8C949B; padding: 8px 12px 12px; }
.panel__head span:nth-child(2) { grid-column: 2 / 4; }
.panel__head span:nth-child(n+3) { text-align: right; }
.panel__head span:nth-child(3) { grid-column: 4; }
.panel__rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.panel__row { background: #2c3135; border-radius: 10px; padding: 12px; position: relative; }
.panel__row[data-par="j"], .panel__row[data-par="m"] { box-shadow: inset 4px 0 0 var(--tab); }
.panel__n { font: 800 1rem/1 var(--cond); color: #8C949B; font-variant-numeric: tabular-nums; }
.panel__breaker { width: 30px; height: 18px; border-radius: 4px; background: #15181a; position: relative; box-shadow: inset 0 0 0 1px #3c4247; }
.panel__breaker i { position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 3px; background: #6b7278; transition: left .35s cubic-bezier(.3,1.6,.5,1), background .3s; }
.panel.is-in .panel__breaker i { left: 15px; background: var(--tab); }
.panel__name { font: 700 1.12rem/1.15 var(--cond); }
.panel__name small, .panel__fee small { display: block; font: 500 .78rem/1.3 var(--sans); color: #9AA1A7; margin-top: 2px; }
.panel__v { text-align: right; font-size: .82rem; color: #9AA1A7; }
.panel__v b { display: block; font: 800 1.35rem/1 var(--cond); color: #fff; font-variant-numeric: tabular-nums; }
.panel__foot { margin: 14px 12px 4px; font-size: .84rem; color: #9AA1A7; }

/* Pasos, tarjetas, columnas */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 8px; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 20px 22px; text-decoration: none; color: var(--ink); position: relative; transition: transform .18s, box-shadow .18s, border-color .18s; }
.card::after { content: ""; position: absolute; right: -1px; top: 18px; width: 8px; height: 26px; background: var(--tab); border-radius: 4px 0 0 4px; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card__kicker { margin: 0; font-size: .74rem; }
.card__title { font: 800 1.4rem/1.08 var(--cond); }
.card__text { color: var(--ink-2); font-size: .97rem; line-height: 1.45; }
.tag { font: 700 .7rem/1 var(--cond); background: var(--paper-2); border: 1px solid var(--line); border-radius: 4px; padding: 3px 5px; vertical-align: middle; letter-spacing: .06em; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.cols--2 { grid-template-columns: 1fr 1fr; }
.point { border-top: 3px solid var(--ink); padding-top: 16px; }
.point h3 { margin-bottom: .4em; }
.point p { color: var(--ink-2); margin: 0; }
.point .art { margin-bottom: 12px; display: inline-block; }

/* Página de función */
.fhero { padding: clamp(18px, 3vw, 36px) 0 clamp(36px, 5vw, 64px); }
.fhero__in { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.fhero h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
.fhero .lede { font-size: 1.22rem; color: var(--ink-2); max-width: 34em; }
.fhero .phone { width: min(320px, 76vw); margin: 0 auto; transform: rotate(2deg); }
.lede { font-size: 1.2rem; color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 2px solid var(--line); border-radius: 16px; overflow: hidden; margin: 28px 0; }
.facts > div { background: var(--sheet); padding: 16px 18px; }
.facts b { display: block; font: 900 2.2rem/1 var(--cond); color: var(--red); }
.facts span { color: var(--ink-2); font-size: .93rem; }

/* Artículos */
.article__head { background: var(--carbon); color: #E8EAEC; padding: clamp(18px, 3vw, 30px) 0 clamp(36px, 5vw, 56px); position: relative; }
.article__head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: repeating-linear-gradient(-45deg, var(--tab) 0 14px, var(--carbon) 14px 28px); }
.article__head h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.9rem); max-width: 15em; }
.article__head .kicker { color: #AAB0B6; }
.article__head .lede { color: #C9CDD1; max-width: 40em; }
.article__head .crumbs a { color: #C9CDD1; }
.article__head .crumbs li { color: #8C949B; }
.byline { font-size: .9rem; color: #9AA1A7; margin: 0; }
.article__grid { display: grid; grid-template-columns: 230px minmax(0, 720px); gap: clamp(24px, 4vw, 64px); padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(40px, 6vw, 72px); }
.toc { position: sticky; top: 96px; align-self: start; font-size: .92rem; }
.toc h2 { font: 700 .78rem/1 var(--cond); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0 0 0 12px; border-left: 3px solid var(--line); }
.toc li { margin: 0 0 10px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--red); }
.prose { font-size: 1.1rem; line-height: 1.7; min-width: 0; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); margin: 1.8em 0 .5em; }
.prose h3 { margin: 1.5em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--red); font-weight: 700; }
.prose strong { font-weight: 700; }
.short { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px 6px 26px; margin: 0 0 2em; position: relative; box-shadow: var(--shadow); }
.short::before { content: ""; position: absolute; left: -1px; top: 18px; bottom: 18px; width: 6px; background: var(--tab); border-radius: 0 4px 4px 0; }
.short h2 { font: 800 .86rem/1 var(--cond) !important; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 12px !important; color: var(--red); }
.note { border-left: 4px solid var(--red); background: var(--paper-2); padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 1.4em 0; font-size: 1rem; }
.layer { font: 700 .7rem/1 var(--cond); letter-spacing: .08em; text-transform: uppercase; border-radius: 4px; padding: 3px 6px; vertical-align: 2px; margin-right: 4px; border: 1px solid currentColor; color: var(--ink-2); white-space: nowrap; }
.layer--law { color: var(--red); }
.layer--own { color: var(--ok); }
.tablewrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--line); border-radius: 12px; background: var(--sheet); }
table { border-collapse: collapse; width: 100%; font-size: .97rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 700 .8rem/1.2 var(--cond); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); background: var(--paper-2); }
tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; white-space: nowrap; }
.low { color: var(--red); font-weight: 700; }
.sources { font-size: .9rem; color: var(--ink-2); border-top: 2px solid var(--line); margin-top: 2.4em; padding-top: 1em; }
.sources h2 { font-size: 1.2rem !important; margin: 0 0 .6em !important; color: var(--ink); }
.sources li { margin: .4em 0; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 0 54px !important; margin: 0 0 1.2em !important; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 38px; height: 38px; border-radius: 10px; background: var(--carbon); color: var(--tab); font: 900 1.25rem/38px var(--cond); text-align: center; }
.calc { background: var(--carbon); color: #E8EAEC; border-radius: 14px; padding: 18px 20px; margin: 1.2em 0; font-variant-numeric: tabular-nums; }
.calc p { margin: .3em 0; }
.calc code { font: 600 1rem/1.5 ui-monospace, "SF Mono", Menlo, monospace; color: var(--tab); }
.calc b { color: #fff; }

/* Examen de práctica en la web */
.quiz { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; max-width: 860px; }
.q { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; position: relative; }
.q::before { content: ""; position: absolute; left: -1px; top: 20px; width: 6px; height: 28px; background: var(--tab); border-radius: 0 4px 4px 0; }
.q__area { font: 700 .78rem/1 var(--cond); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); margin: 0 0 10px; }
.q__text { font: 700 1.18rem/1.35 var(--sans); margin: 0 0 12px; text-wrap: pretty; }
.q__opts { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.q__opts li { border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; display: flex; gap: 10px; align-items: baseline; }
.q__opts b { font: 800 1rem/1 var(--cond); color: var(--red); }
.q__ans summary { cursor: pointer; font-weight: 700; color: var(--link); }
.q__ans p { margin: 10px 0 0; color: var(--ink-2); }
.q__ans p b { color: var(--ink); }
.q__ref { font: 700 .82rem/1.3 var(--cond); letter-spacing: .06em; text-transform: uppercase; }

/* FAQ */
.faqs { max-width: 820px; }
details.faq { border-bottom: 1px solid var(--line); padding: 4px 0; }
details.faq summary { cursor: pointer; list-style: none; font: 700 1.25rem/1.25 var(--cond); padding: 16px 40px 16px 0; position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: ""; position: absolute; right: 6px; top: 22px; width: 12px; height: 12px; border-right: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(45deg); transition: transform .2s; }
details.faq[open] summary::after { transform: rotate(225deg); top: 28px; }
details.faq p { color: var(--ink-2); margin: 0 0 16px; }

/* Precios */
.prices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.price { background: var(--sheet); border: 1px solid var(--line); border-radius: 18px; padding: 24px 22px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.price--pick { border: 2px solid var(--red); box-shadow: var(--shadow); }
.price__flag { position: absolute; top: -12px; left: 20px; background: var(--red); color: #fff; font: 800 .74rem/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; padding: 6px 9px; border-radius: 6px; }
.price h3 { margin: 0; }
.price__n { font: 900 3rem/1 var(--cond); }
.price__per { color: var(--ink-2); font-size: .92rem; }
.price ul { padding-left: 1.1em; margin: 6px 0 0; color: var(--ink-2); font-size: .97rem; }
.price li { margin: .3em 0; }

/* Comparativa */
.compare td:first-child { font-weight: 600; }
.yes { color: var(--ok); font-weight: 700; }
.no { color: var(--ink-2); }

/* Cierre con botón */
.getapp { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; background: var(--carbon); color: #E8EAEC; border-radius: 22px; padding: 26px 30px; margin-bottom: clamp(44px, 6vw, 80px); }
.getapp .bolt { width: 46px; height: 70px; }
.getapp h2 { color: #fff; font-size: 1.8rem; margin: 0 0 .2em; }
.getapp p { margin: 0; color: #B9BEC3; }
.getapp .btn--store { border-color: #3a3f44; }
.related { padding-bottom: clamp(30px, 4vw, 50px); }
.related h2 { font-size: 1.8rem; }

/* Rayo: se «carga» al entrar */
.bolt path { fill: #fff; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.getapp .bolt path { fill: var(--tab); stroke: var(--tab); }
.js .bolt path { fill-opacity: 0; stroke-dasharray: 1; stroke-dashoffset: 1; animation: carga 1.1s .2s cubic-bezier(.6,.1,.3,1) forwards; }
@keyframes carga { 60% { stroke-dashoffset: 0; fill-opacity: 0; } 100% { stroke-dashoffset: 0; fill-opacity: 1; } }

/* Migas y pie */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 18px 0 0; margin: 0 0 18px; font-size: .88rem; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.foot { background: var(--carbon); color: #B9BEC3; margin-top: 0; }
.foot__in { max-width: var(--wrap); margin: 0 auto; padding: 48px clamp(16px, 4vw, 40px) 24px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr .7fr; gap: 28px; }
.foot__brand .logo { color: #fff; margin-bottom: 12px; }
.foot__brand p { font-size: .94rem; max-width: 30em; }
.foot a { color: #D7DADD; text-decoration: none; }
.foot a:hover { color: var(--tab); }
.foot h2 { font: 700 .8rem/1 var(--cond); letter-spacing: .12em; text-transform: uppercase; color: var(--tab); margin: 6px 0 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; font-size: .94rem; }
.foot li { margin: 0 0 9px; }
.foot__lang { display: flex; gap: 8px; }
.foot__lang a { border: 1px solid #3a3f44; border-radius: 6px; padding: 5px 9px; font-size: .86rem; }
.foot__lang a[aria-current] { border-color: var(--tab); color: #fff; }
.foot__base { max-width: var(--wrap); margin: 0 auto; padding: 18px clamp(16px, 4vw, 40px) 40px; border-top: 1px solid #2a2e32; font-size: .8rem; color: #8C949B; }

/* Página sencilla (legal, soporte, prensa) */
.plain { padding-bottom: clamp(48px, 7vw, 90px); }
.plain h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.plain .prose { max-width: 760px; }
.e404 { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.e404 .breaker-big { width: 120px; height: 180px; margin: 0 auto 26px; background: #23272b; border-radius: 16px; position: relative; box-shadow: var(--shadow); }
.e404 .breaker-big::after { content: "OFF"; position: absolute; left: 30px; right: 30px; top: 96px; height: 56px; background: var(--red); border-radius: 8px; color: #fff; font: 900 1.2rem/56px var(--cond); }

/* Aparecer al bajar */
.js [data-up] { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s cubic-bezier(.2,.8,.2,1); }
.js [data-up].is-in { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .top__nav { display: none; }
  .top__menu { display: block; }
  .top__tools { margin-left: auto; }
  .top__get { display: none; }
  .foot__in { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero__in, .fhero__in { grid-template-columns: 1fr; }
  .hero__art { min-height: 0; margin-top: 10px; }
  .hero__art .phone { width: min(300px, 74vw); }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .book { grid-template-columns: 1fr; }
  .book__cover { min-height: 170px; border-radius: 22px 22px 6px 6px; }
  .book__cover .bolt { width: 64px; height: 96px; }
  .book__tabs { border-radius: 0 0 6px 6px; border-left: 0; padding: 12px 18px 12px 0; }
  .book__tab { grid-template-columns: 1fr; gap: 4px; margin-right: 0; }
  .screens { grid-template-columns: 1fr; }
  .screen:nth-child(2) { margin-top: 0; }
  .cols, .cols--2, .prices, .facts { grid-template-columns: 1fr; }
  .article__grid { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .toc--empty { display: none; }
  .getapp { grid-template-columns: 1fr; text-align: left; }
  .panel__head { display: none; }
  .panel__row { grid-template-columns: 30px 1fr auto auto; grid-template-areas: "n name name name" "b v1 v2 fee"; row-gap: 10px; }
  .panel__n { grid-area: n; display: none; }
  .panel__breaker { grid-area: b; }
  .panel__name { grid-column: 1 / -1; grid-row: 1; }
  .panel__v { text-align: left; }
}
@media (max-width: 520px) {
  body { font-size: 1rem; }
  .gauge { width: 118px; left: -4px; }
  .gauge b { font-size: 1.6rem; margin-top: -38px; }
  .clock { font-size: 1.5rem; bottom: 90px; }
  .stats__grid { grid-template-columns: 1fr; }
  .logo__word small { display: none; }
  .btn--store span { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-up], [data-reveal] .book__tabs li { opacity: 1 !important; transform: none !important; }
  .js .bolt path { fill-opacity: 1; stroke-dashoffset: 0; }
}
@media print {
  .top, .foot, .getapp, .toc, .related { display: none; }
  .article__head { background: none; color: #000; }
  .article__head h1 { color: #000; }
}
