/* VatioLibre · hoja de estilos
   Paleta: verde batería (datos, acciones) + ámbar solar (acento puntual).
   Tipos: Archivo expandida (titulares y UI), Source Serif 4 (lectura), JetBrains Mono (cifras). */

:root {
  --ground: #f2f5f1;
  --surface: #ffffff;
  --surface-2: #e6ece6;
  --ink: #12201b;
  --ink-2: #4a5b54;
  --ink-3: #6d7d76;
  --line: #d2dbd4;
  --teal: #0b6e5f;
  --teal-strong: #08574b;
  --teal-ink: #ffffff;
  --teal-soft: #d8ede7;
  --amber: #e29a12;
  --amber-soft: #fbecc8;
  --amber-ink: #6b4500;
  --good: #1f7a3f;
  --warn: #9a5b00;
  --bad: #b3261e;
  --bad-soft: #fbe1de;
  --shadow: 0 1px 2px rgb(18 32 27 / .06), 0 8px 24px -12px rgb(18 32 27 / .18);
  --deep: #10201a;
  --on-deep: #eef3ef;

  --f-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 10px;
  --header-h: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0c1411;
    --surface: #131e1a;
    --surface-2: #1a2722;
    --ink: #e3ebe6;
    --ink-2: #a3b4ad;
    --ink-3: #7d8f88;
    --line: #26352f;
    --teal: #3cc4a9;
    --teal-strong: #5fd6bd;
    --teal-ink: #05231d;
    --teal-soft: #11312a;
    --amber: #f2b53a;
    --amber-soft: #3a2c0e;
    --amber-ink: #f6cf7c;
    --good: #5fcf87;
    --warn: #f2b53a;
    --bad: #ff8a80;
    --bad-soft: #3b1714;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 30px -14px rgb(0 0 0 / .6);
    --deep: #07100d;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0c1411;
  --surface: #131e1a;
  --surface-2: #1a2722;
  --ink: #e3ebe6;
  --ink-2: #a3b4ad;
  --ink-3: #7d8f88;
  --line: #26352f;
  --teal: #3cc4a9;
  --teal-strong: #5fd6bd;
  --teal-ink: #05231d;
  --teal-soft: #11312a;
  --amber: #f2b53a;
  --amber-soft: #3a2c0e;
  --amber-ink: #f6cf7c;
  --good: #5fcf87;
  --warn: #f2b53a;
  --bad: #ff8a80;
  --bad-soft: #3b1714;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 10px 30px -14px rgb(0 0 0 / .6);
  --deep: #07100d;
  color-scheme: dark;
}

/* ------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-display);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--teal); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-strong); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; line-height: 1.1; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--ground); padding: 10px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }
main { display: block; padding-bottom: 72px; }

.eyebrow {
  display: inline-block;
  font: 600 .75rem/1.2 var(--f-display);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--teal);
}
.eyebrow--link { text-decoration: none; }
.dek { font: 400 1.15rem/1.55 var(--f-body); color: var(--ink-2); max-width: 62ch; }

/* ----------------------------------------------------------- botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 44px; padding: 10px 18px;
  border-radius: 8px; border: 1.5px solid transparent;
  font: 650 .95rem/1.2 var(--f-display); font-stretch: 105%;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--teal); color: var(--teal-ink); }
.btn--primary:hover { background: var(--teal-strong); color: var(--teal-ink); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn--buy { background: var(--amber); color: #2a1a00; }
.btn--buy:hover { background: #f0ac2b; color: #2a1a00; }

/* ----------------------------------------------------------- cabecera */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; line-height: 0; }

/* ---------- Logotipo VatioToGo (vector animable) */
:root { --lg-body: #1E4B3C; --lg-face: #173D31; --lg-vent: #2F6B56; --lg-ink: #1E4B3C; --lg-panel: #FFFFFF;
  --lg-c1: #1D5E47; --lg-c2: #4DB84F; --lg-c3: #EA962B; --lg-t1: var(--teal); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --lg-body: #3A8068; --lg-face: #2A6452; --lg-vent: #57A088; --lg-ink: #E4ECE7; --lg-t1: var(--teal); } }
:root[data-theme="dark"] { --lg-body: #3A8068; --lg-face: #2A6452; --lg-vent: #57A088; --lg-ink: #E4ECE7; --lg-t1: var(--teal); }
.site-footer { --lg-body: #3A8068; --lg-face: #2A6452; --lg-vent: #57A088; --lg-ink: #EEF3EF; --lg-t1: #3CC4A9; }
.brand-logo { height: 48px; width: auto; flex: none; overflow: visible; }
.brand-logo .lg-body, .brand-logo .lg-fill { fill: var(--lg-body); }
.brand-logo .lg-handle, .brand-logo .lg-cable { stroke: var(--lg-body); }
.brand-logo .lg-face { fill: var(--lg-face); }
.brand-logo .lg-vents rect { fill: var(--lg-vent); }
.brand-logo .lg-panel { fill: var(--lg-panel); }
.brand-logo .lg-c1 { fill: var(--lg-c1); }
.brand-logo .lg-c2 { fill: var(--lg-c2); }
.brand-logo .lg-c3 { fill: var(--lg-c3); }
.brand-logo .lg-text { fill: var(--lg-ink); font: 800 38px var(--f-display); font-stretch: 100%; letter-spacing: -.5px; }
/* En reposo el cable está recogido dentro de la batería y el enchufe, escondido junto a ella.
   Al pasar el ratón el cable se dibuja hasta su sitio llevando el enchufe en la punta; cuando llega,
   la batería empieza a descargarse. Al quitar el ratón, todo vuelve hacia atrás y desaparece. */
.brand-logo .lg-cable { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .7s cubic-bezier(.45, 0, .2, 1); }
.brand-logo .lg-plug { transform: translateX(-252px); transition: transform .7s cubic-bezier(.45, 0, .2, 1); }
.brand-logo .lg-plug-in { transform-box: fill-box; transform-origin: left center;
  transform: translate(-2px, -15px) scale(.35); opacity: 0;
  transition: transform .22s ease-in .5s, opacity .12s linear .62s; }
.brand:hover .lg-cable, .brand:focus-visible .lg-cable { stroke-dashoffset: 0; }
.brand:hover .lg-plug, .brand:focus-visible .lg-plug { transform: translateX(0); }
.brand:hover .lg-plug-in, .brand:focus-visible .lg-plug-in { transform: none; opacity: 1;
  transition: transform .22s ease-out, opacity .08s linear; }
.brand:hover .lg-c3, .brand:focus-visible .lg-c3 { animation: vtg-descarga 2.6s .75s infinite; }
.brand:hover .lg-c2, .brand:focus-visible .lg-c2 { animation: vtg-descarga 2.6s 1.15s infinite; }
.brand:hover .lg-c1, .brand:focus-visible .lg-c1 { animation: vtg-descarga 2.6s 1.55s infinite; }
.brand-logo .lg-t1 { fill: var(--lg-t1); }
/* «Vatio» en el verde de los botones principales y «ToGo» en el ámbar de «Empezar el test» */
.brand-logo .lg-t2, .brand-logo .lg-t3 { fill: var(--amber); }
/* Pie de página: cable largo que sale del logo, rodea los apartados y se enchufa en «Calcula tu capacidad» */
.site-footer { position: relative; }
.footer-cable { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; z-index: 1; }
.footer-cable .fc-cable { fill: none; stroke: var(--lg-body); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.footer-cable .fc-plug { fill: var(--lg-body); }
.site-footer.has-long-cable .brand .lg-cable, .site-footer.has-long-cable .brand .lg-plug { display: none; }
.site-footer.is-cabled .lg-c3 { animation: vtg-descarga 2.6s .75s infinite; }
.site-footer.is-cabled .lg-c2 { animation: vtg-descarga 2.6s 1.15s infinite; }
.site-footer.is-cabled .lg-c1 { animation: vtg-descarga 2.6s 1.55s infinite; }
.footer-brand .btn--ghost { transition: background-color .3s, color .3s, border-color .3s, box-shadow .3s, transform .15s; }
/* encendido: el texto se mantiene oscuro también con el ratón encima (antes se volvía ámbar sobre ámbar) */
.site-footer .footer-brand .btn--ghost.is-powered, .site-footer .footer-brand .btn--ghost.is-powered:hover {
  background: var(--amber); border-color: var(--amber); color: #2a1a00;
  animation: fc-clic .3s ease-out, fc-encendido 1.6s .3s ease-out infinite;
}
@keyframes fc-clic { 0% { transform: translateX(-3px); } 60% { transform: translateX(1px); } 100% { transform: none; } }
@keyframes fc-encendido { 0% { box-shadow: 0 0 0 0 rgb(242 181 58 / .55); } 70%, 100% { box-shadow: 0 0 0 12px rgb(242 181 58 / 0); } }

@keyframes vtg-descarga { 0%, 8% { opacity: 1; } 20%, 78% { opacity: .12; } 92%, 100% { opacity: 1; } }
/* al cargar la página, las celdas se encienden una a una */
.site-header .brand:not(:hover) .lg-cell { animation: vtg-carga .45s both; }
.site-header .brand:not(:hover) .lg-c2 { animation-delay: .15s; }
.site-header .brand:not(:hover) .lg-c3 { animation-delay: .3s; }
@keyframes vtg-carga { from { opacity: 0; } }
@media (max-width: 420px) { .brand-logo { height: 40px; } }
.brand:hover { color: var(--ink); text-decoration: none; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font: 550 .9rem/1 var(--f-display); padding: 10px 10px; border-radius: 6px; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--teal); border-radius: 0; }
.nav .nav-search { display: inline-flex; gap: 6px; align-items: center; }
.nav .nav-search svg { fill: none; stroke: currentColor; stroke-width: 2; }
.nav .nav-cta { margin-left: 8px; color: var(--teal-ink); padding: 10px 14px; }
.nav .nav-cta:hover { color: var(--teal-ink); background: var(--teal-strong); }
.nav-toggle { display: none; }

/* barra de carga = batería de lectura: empieza toda en verde oscuro y se descarga de izquierda a derecha;
   el color de toda la barra cambia con el nivel (verde → amarillo → rojo). */
.charge { height: 4px; background: var(--surface-2); }
.charge-fill {
  display: block; height: 100%; width: 100%;
  background: var(--charge-c, #17663A);
  transition: clip-path .12s linear, background-color .25s linear;
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 18px, transparent 18px 21px);
          mask: repeating-linear-gradient(90deg, #000 0 18px, transparent 18px 21px);
  clip-path: inset(0 0 0 var(--charge-cut, 0%));
}
.charge.is-charging .charge-fill { animation: carga-brillo .5s linear infinite; }
@keyframes carga-brillo { 50% { filter: brightness(1.35); } }

/* botón «Recargar»: aparece con la batería baja y vuelve arriba con una animación de carga */
.recharge {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 30;
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px 10px 12px; min-height: 44px;
  border: 0; border-radius: 999px; background: var(--deep); color: var(--on-deep); cursor: pointer;
  font: 650 .92rem/1 var(--f-display); box-shadow: 0 10px 28px -12px rgb(0 0 0 / .55);
  opacity: 0; transform: translateY(24px); pointer-events: none;
  transition: opacity .3s, transform .35s cubic-bezier(.2, .7, .2, 1);
}
.recharge.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.recharge.is-visible:hover { transform: translateY(-2px); }
.rc-batt { position: relative; display: block; width: 30px; height: 16px; padding: 2px; border: 2px solid currentColor; border-radius: 4px; margin-right: 3px; }
.rc-batt::after { content: ""; position: absolute; right: -6px; top: 3px; width: 3px; height: 6px; border-radius: 0 2px 2px 0; background: currentColor; }
.rc-batt i { display: block; height: 100%; width: var(--charge-lvl, 100%); min-width: 2px; border-radius: 1px; background: var(--charge-c, hsl(135 68% 46%)); transition: width .15s linear, background-color .15s; }
.rc-bolt { width: 10px; height: 15px; fill: #F2B53A; margin-left: -4px; }
.recharge.is-charging .rc-bolt { animation: rayo .45s ease-in-out infinite alternate; }
@keyframes rayo { from { opacity: .35; transform: scale(.85); } to { opacity: 1; transform: scale(1.15); } }
@media (max-width: 520px) { .recharge { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); } }

@media (max-width: 1040px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; margin-left: auto;
    min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 8px;
    background: var(--surface); color: var(--ink); font: 600 .9rem/1 var(--f-display); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 16px; height: 2px; background: currentColor; border-radius: 1px; position: relative;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -5px; }
  .nav-toggle-bars::after { top: 5px; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px var(--gutter) 16px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1rem; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--teal); padding-left: 12px; }
  .nav .nav-cta { margin: 12px 0 0; border-bottom: 0; border-radius: 8px; }
}

/* ----------------------------------------------------------- migas */
.crumbs { padding-top: 20px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0; padding: 0; font: 500 .82rem/1.4 var(--f-display); color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--teal); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-3); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ----------------------------------------------------------- miniaturas */
.thumb {
  position: relative; margin: 0; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 78% 30%, color-mix(in srgb, var(--amber) 28%, transparent) 0 18%, transparent 19%),
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--teal) 9%, transparent) 0 1px, transparent 1px 22px),
    var(--teal-soft);
  display: grid; place-items: center;
}
.thumb[data-cat="energia-solar"] { background:
    radial-gradient(circle at 70% 35%, color-mix(in srgb, var(--amber) 45%, transparent) 0 22%, transparent 23%),
    repeating-linear-gradient(0deg, color-mix(in srgb, var(--teal) 10%, transparent) 0 1px, transparent 1px 22px),
    var(--amber-soft); }
.thumb-glyph svg { width: 64px; height: 64px; fill: none; stroke: var(--teal); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb--hero { margin-top: 28px; aspect-ratio: 16 / 9; }
.thumb--hero .thumb-glyph svg { width: 96px; height: 96px; }

/* ----------------------------------------------------------- cabeceras */
.article-head { padding-top: 28px; display: grid; gap: 14px; max-width: 860px; }
.article-head h1, .hub-head h1 {
  font-size: clamp(2rem, 1.3rem + 3vw, 3.3rem);
  font-weight: 800; font-stretch: 112%; letter-spacing: -.025em; line-height: 1.02;
}
.article-head--page { padding-bottom: 12px; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 18px; font: 500 .85rem/1.4 var(--f-display); color: var(--ink-3); }
.byline a { color: var(--ink-2); }

/* ----------------------------------------------------------- artículo */
.article-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; margin-top: 40px; align-items: start; }
.article-side { position: sticky; top: calc(var(--header-h) + 28px); display: grid; gap: 20px; }
.toc-t { font: 700 .75rem/1 var(--f-display); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); counter-reset: toc; }
.toc li a {
  display: block; padding: 7px 0 7px 14px; margin-left: -2px; border-left: 2px solid transparent;
  color: var(--ink-2); text-decoration: none; font: 500 .88rem/1.35 var(--f-display);
}
.toc li a:hover { color: var(--ink); }
.toc li a.is-active { color: var(--teal); border-left-color: var(--teal); }
.side-cta { display: grid; gap: 4px; padding: 16px; border-radius: var(--radius); background: var(--teal-soft); text-decoration: none; color: var(--ink); }
.side-cta strong { font: 700 1rem/1.25 var(--f-display); }
.side-cta span:last-child { font: 600 .85rem/1.3 var(--f-display); color: var(--teal); }
.side-cta:hover { color: var(--ink); text-decoration: none; outline: 1.5px solid var(--teal); }

@media (max-width: 960px) {
  .article-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 28px; }
  .article-side { position: static; order: -1; }
  .toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
  .side-cta { display: none; }
}

/* ----------------------------------------------------------- prosa */
.prose { font: 400 1.125rem/1.72 var(--f-body); max-width: 70ch; min-width: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); font-weight: 750; font-stretch: 108%;
  letter-spacing: -.015em; margin-top: 2.2em; padding-top: .9em; border-top: 1px solid var(--line);
}
.prose h3 { font-size: 1.22rem; font-weight: 700; margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--teal); font-family: var(--f-display); font-weight: 700; }
.prose strong { font-weight: 650; }
.prose .lead { font-size: 1.22rem; line-height: 1.6; color: var(--ink); }
.prose code, .mono { font-family: var(--f-mono); font-size: .88em; }
.prose--page { margin-top: 24px; }

/* bloques de respuesta rápida y avisos */
.answer {
  border: 1.5px solid var(--teal); border-radius: var(--radius); padding: 18px 20px;
  background: var(--surface); font-size: 1.06rem;
}
.answer::before { content: "Respuesta rápida"; display: block; font: 700 .72rem/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.nota, .aviso { border-radius: var(--radius); padding: 16px 18px; font-size: 1rem; line-height: 1.6; }
.nota { background: var(--surface-2); }
.aviso { background: var(--amber-soft); color: var(--ink); }
.aviso strong:first-child, .nota strong:first-child { font-family: var(--f-display); }

/* cálculos a la vista */
.formula {
  font: 500 1.02rem/1.65 var(--f-display); font-variant-numeric: tabular-nums; letter-spacing: -.005em;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--teal);
  border-radius: 10px; padding: 16px 20px; box-shadow: var(--shadow); overflow-wrap: anywhere;
}
.formula b { color: var(--teal); font-weight: 800; }

/* tablas */
.table-wrap {
  overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius);
  /* sombras de desplazamiento: aparecen en el borde que tiene más tabla oculta */
  background:
    linear-gradient(to right, var(--surface) 30%, transparent) left center / 40px 100% no-repeat local,
    linear-gradient(to left, var(--surface) 30%, transparent) right center / 40px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgb(0 0 0 / .28), transparent) left center / 16px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgb(0 0 0 / .28), transparent) right center / 16px 100% no-repeat scroll,
    var(--surface);
}
.scroll-hint {
  display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-bottom: 6px !important;
  font: 600 .78rem/1 var(--f-display); color: var(--teal); letter-spacing: .02em;
  transition: opacity .3s;
}
.scroll-hint span { display: inline-block; animation: empuje 1.4s var(--ease-io, ease-in-out) infinite; }
@keyframes empuje { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
.scroll-hint.is-done { opacity: 0; }
.prose table, .compare { width: 100%; border-collapse: collapse; font: 450 .92rem/1.4 var(--f-display); }
.prose th, .prose td, .compare th, .compare td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th, .compare thead th { font-weight: 700; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); background: var(--surface-2); white-space: nowrap; }
.prose tbody tr:last-child > *, .compare tbody tr:last-child > * { border-bottom: 0; }
.compare tbody th { font-weight: 650; }
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.compare td.num, .compare th.num { text-align: right; }
.t-anchor { color: var(--ink); text-decoration: none; }
.t-anchor:hover { color: var(--teal); text-decoration: underline; }

/* tarjeta de producto */
.product {
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  padding: 22px; display: grid; gap: 16px; box-shadow: var(--shadow);
  font-family: var(--f-display); font-size: 1rem; line-height: 1.45;
}
.prose .product { margin-top: 1.6em; }
.product-badge {
  justify-self: start; display: inline-block; font: 700 .72rem/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 9px; border-radius: 4px; background: var(--amber-soft); color: var(--amber-ink); margin-bottom: 10px;
}
.product-name { font-size: 1.4rem; font-weight: 800; font-stretch: 108%; letter-spacing: -.01em; margin: 0 !important; }
.product-for { color: var(--ink-2); margin-top: 6px; }
.product-for span { font-weight: 700; color: var(--ink); }
.spec {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); margin: 0;
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
}
.spec > div { padding: 10px 12px; border-right: 1px solid var(--line); background: var(--ground); }
.spec > div:last-child { border-right: 0; }
.spec dt { font: 600 .68rem/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.spec dd { margin: 6px 0 0; font: 600 1.05rem/1.2 var(--f-mono); font-variant-numeric: tabular-nums; }
.spec dd small { font-size: .72em; color: var(--ink-3); font-weight: 500; }
.procon { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.procon-t { font: 700 .75rem/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.procon ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .95rem; }
.procon li { padding-left: 22px; position: relative; }
.procon li + li { margin-top: 0; }
.pros li::before, .cons li::before { position: absolute; left: 0; top: 0; font-weight: 800; font-family: var(--f-mono); }
.pros li::before { content: "+"; color: var(--good); }
.cons li::before { content: "−"; color: var(--bad); }
.product-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.price { color: var(--ink-2); font-size: .9rem; }
.price strong { display: block; color: var(--ink); font: 600 1.1rem/1.3 var(--f-mono); }
.product-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-bottom: 10px; }
.product-top .product-badge { margin-bottom: 0; }
.rating { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; margin-left: auto; }
.rating-n { font: 700 1.15rem/1 var(--f-mono); }
.rating-n small { font-size: .7em; color: var(--ink-3); font-weight: 500; }
.rating-stars { position: relative; display: inline-block; font-size: 1rem; line-height: 1; letter-spacing: 2px; color: var(--line); }
.rating-stars::before { content: "★★★★★"; }
.rating-stars::after { content: "★★★★★"; position: absolute; inset: 0; width: calc(var(--v) * 100%); overflow: hidden; color: var(--amber); white-space: nowrap; }
.rating-t { font: 600 .68rem/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.rating:hover .rating-t { color: var(--ink); text-decoration: underline; }
.buyers { display: grid; gap: 12px; padding: 14px 16px; border-radius: 10px; background: var(--ground); border: 1px solid var(--line); }
.buyers-t { font: 800 1rem/1.2 var(--f-display); margin: 0; }
.buyers .score-note { margin: 0; }
.buyers-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .95rem; }
.buyers-list li { padding-left: 22px; position: relative; }
.prose .buyers-list { margin: 0; padding: 0; }
.prose .buyers-list li { margin: 0; }
.product-btns { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 560px) {
  .procon { grid-template-columns: 1fr; } .product { padding: 18px; }
  .rating-t { display: none; }
  .product-btns, .product-btns .btn { width: 100%; justify-content: center; }
}

/* enlace en línea */
.inline-card {
  display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--radius); text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-family: var(--f-display);
}
.inline-card strong { font-size: 1.08rem; font-weight: 700; line-height: 1.3; }
.inline-card-d { color: var(--ink-2); font-size: .92rem; line-height: 1.45; }
.inline-card:hover { border-color: var(--teal); color: var(--ink); text-decoration: none; }
.inline-card:hover strong { color: var(--teal); }

/* siguiente paso */
.next-step {
  margin-top: 3em !important; padding: 24px; border-radius: 14px;
  background: var(--deep); color: var(--on-deep); display: grid; gap: 12px; justify-items: start;
  font-family: var(--f-display);
}
.next-step .eyebrow { color: var(--amber); }
.next-step-text { font: 600 1.25rem/1.35 var(--f-display); font-stretch: 105%; text-wrap: balance; }
.next-step .btn--primary { background: var(--amber); color: #2a1a00; white-space: normal; text-align: left; }
.next-step .btn--primary:hover { background: #f0ac2b; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { cursor: pointer; padding: 14px 18px; font: 650 1.02rem/1.35 var(--f-display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); color: var(--teal); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 18px 16px; font-size: 1.02rem; }

/* ----------------------------------------------------------- anuncios */
.ad-slot { margin-block: 28px; display: grid; justify-items: center; gap: 6px; min-height: 120px; }
.ad-label { font: 600 .66rem/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.ad-slot ins { width: 100%; }
.ad-slot--placeholder { place-content: center; border: 1.5px dashed var(--line); border-radius: var(--radius); background: repeating-linear-gradient(135deg, transparent 0 10px, color-mix(in srgb, var(--line) 35%, transparent) 10px 11px); }
.prose .ad-slot { margin-block: 2em; }

/* ----------------------------------------------------------- tarjetas */
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.section-head h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); font-weight: 780; font-stretch: 110%; letter-spacing: -.015em; display: flex; align-items: center; gap: 12px; }
.section-head > a { font: 600 .92rem/1.3 var(--f-display); text-decoration: none; }
.section-head > a:hover { text-decoration: underline; }
.section-g svg { width: 30px; height: 30px; fill: none; stroke: var(--teal); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; display: block; }
.section-lead { color: var(--ink-2); margin: -8px 0 18px; max-width: 70ch; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; color: var(--ink); text-decoration: none;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.card:hover { color: var(--ink); text-decoration: none; border-color: var(--teal); transform: translateY(-2px); box-shadow: var(--shadow); }
.card .thumb { border-radius: 0; }
.card .thumb-glyph svg { width: 52px; height: 52px; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; flex: 1; }
.card-t { font: 720 1.12rem/1.28 var(--f-display); letter-spacing: -.005em; text-wrap: balance; }
.card:hover .card-t { color: var(--teal); }
.card-d { color: var(--ink-2); font-size: .94rem; line-height: 1.5; }
.card-meta { margin-top: auto; padding-top: 6px; font: 500 .8rem/1.3 var(--f-mono); color: var(--ink-3); }

.related { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--line); }

/* ----------------------------------------------------------- hubs */
.hub-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: start; padding-block: 28px 12px; }
.hub-head .dek { margin-top: 14px; }
.hub-glyph { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 18px; background: var(--teal-soft); }
.hub-glyph svg { width: 52px; height: 52px; fill: none; stroke: var(--teal); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hub-count { margin-top: 12px; font: 500 .85rem/1 var(--f-mono); color: var(--ink-3); }
.card-grid--hub { margin-top: 28px; }
.hub-help {
  margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px; border-radius: 14px; background: var(--teal-soft);
}
.hub-help > div { max-width: 62ch; display: grid; gap: 8px; }
.other-hubs { margin-top: 48px; }
.other-hubs h2 { font-size: 1.25rem; font-weight: 750; margin-bottom: 14px; }
.hub-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.hub-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; min-height: 44px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--ink); text-decoration: none; font: 600 .95rem/1 var(--f-display);
}
.hub-chip:hover { border-color: var(--teal); color: var(--teal); text-decoration: none; }
.hub-chip-g svg { width: 22px; height: 22px; fill: none; stroke: var(--teal); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; display: block; }
@media (max-width: 560px) { .hub-head { grid-template-columns: 1fr; } .hub-glyph { width: 64px; height: 64px; } .hub-glyph svg { width: 40px; height: 40px; } }

/* ----------------------------------------------------------- portada */
.hero { padding-block: 44px 56px; border-bottom: 1px solid var(--line); background:
  linear-gradient(180deg, transparent, color-mix(in srgb, var(--teal-soft) 55%, transparent)); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 48px; align-items: start; }
.hero-copy { display: grid; gap: 20px; padding-top: 12px; }
.hero h1 {
  font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4rem); font-weight: 820; font-stretch: 118%;
  letter-spacing: -.035em; line-height: .98;
}
.hero h1 em { font-style: normal; color: var(--teal); background: linear-gradient(transparent 62%, var(--amber-soft) 62%); }
.hero-facts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 18px; }
.hero-facts li { display: grid; grid-template-columns: 5.2em 1fr; align-items: baseline; color: var(--ink-2); font-size: .98rem; }
.hero-facts strong { font: 600 1.05rem/1 var(--f-mono); color: var(--ink); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

.routes, .home-top, .home-start, .home-cat { margin-top: 64px; }
.route-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.route {
  display: grid; gap: 6px; align-content: start; padding: 20px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--line); color: var(--ink); text-decoration: none; position: relative; overflow: hidden;
}
.route::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: repeating-linear-gradient(90deg, var(--teal) 0 22px, transparent 22px 26px); opacity: .0; transition: opacity .2s; }
.route:hover { color: var(--ink); text-decoration: none; border-color: var(--teal); }
.route:hover::after { opacity: 1; }
.route-t { font: 700 1.1rem/1.2 var(--f-display); }
.route-n { font: 600 1.9rem/1.1 var(--f-mono); color: var(--teal); letter-spacing: -.02em; margin-top: 6px; }
.route-d { color: var(--ink-2); font-size: .9rem; }
.route-go { margin-top: 10px; font: 650 .9rem/1 var(--f-display); color: var(--teal); }

.method-strip {
  margin-top: 64px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding: 28px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
}
.method-strip > div { max-width: 70ch; display: grid; gap: 8px; color: var(--ink-2); }

/* ----------------------------------------------------------- calculadora */
.calc {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  font-family: var(--f-display); font-size: 1rem; line-height: 1.4; overflow: hidden; min-width: 0;
}
.prose .calc { margin-top: 1.6em; }
.calc-head { padding: 18px 20px 14px; display: grid; gap: 12px; border-bottom: 1px solid var(--line); }
.calc-title { font: 780 1.2rem/1.2 var(--f-display); font-stretch: 110%; letter-spacing: -.01em; }
.calc-scen { display: flex; flex-wrap: wrap; gap: 8px; }
.calc-scen button {
  min-height: 36px; padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--ground);
  color: var(--ink-2); font: 600 .85rem/1 var(--f-display); cursor: pointer;
}
.calc-scen button:hover { border-color: var(--teal); color: var(--ink); }
.calc-scen button[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--teal-ink); }
.calc-rows { padding: 6px 20px 4px; }
.calc-colhead, .calc-row { display: grid; grid-template-columns: minmax(0, 1fr) 76px 64px 52px 36px; gap: 8px; align-items: center; }
.calc-colhead { font: 600 .68rem/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 10px 0 6px; }
.calc-colhead span:not(:first-child) { text-align: center; }
.calc-row { padding: 6px 0; border-top: 1px solid var(--line); }
.calc-name { font-weight: 600; font-size: .94rem; line-height: 1.25; min-width: 0; overflow-wrap: anywhere; }
.calc-name small { display: block; color: var(--ink-3); font: 500 .75rem/1.3 var(--f-mono); margin-top: 2px; }
.calc input[type="number"], .calc select {
  width: 100%; min-height: 38px; padding: 6px 6px; border: 1.5px solid var(--line); border-radius: 6px;
  background: var(--ground); color: var(--ink); font: 500 .92rem/1 var(--f-mono); text-align: center;
}
.calc input[type="number"]:focus, .calc select:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 25%, transparent); }
.calc-del { width: 36px; height: 36px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-3); cursor: pointer; font: 500 1.2rem/1 var(--f-mono); }
.calc-del:hover { background: var(--bad-soft); color: var(--bad); }
.calc-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--ground); }
.calc-add select { text-align: left; font-family: var(--f-display); font-weight: 550; }
.calc-add button, .calc-days button { min-height: 38px; padding: 6px 14px; border-radius: 6px; border: 1.5px solid var(--teal); background: transparent; color: var(--teal); font: 650 .88rem/1 var(--f-display); cursor: pointer; }
.calc-add button:hover { background: var(--teal); color: var(--teal-ink); }
.calc-days { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); font-weight: 600; font-size: .92rem; }
.calc-days label { margin-right: 4px; }
.calc-days select { width: auto; min-width: 110px; font-family: var(--f-display); }

.calc-out { padding: 20px; border-top: 1px solid var(--line); display: grid; gap: 16px; background: var(--teal-soft); }
.calc-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.calc-fig { display: grid; gap: 4px; }
.calc-fig span { font: 600 .68rem/1.2 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.calc-fig strong { font: 600 clamp(1.25rem, 1rem + 1vw, 1.6rem)/1.1 var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.calc-fig strong small { font-size: .6em; color: var(--ink-2); margin-left: 2px; }
.calc-fig--key strong { color: var(--teal); }
.gauge { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; padding: 4px; border: 2px solid var(--ink); border-radius: 6px; position: relative; margin-right: 8px; }
.gauge::after { content: ""; position: absolute; right: -8px; top: 30%; width: 5px; height: 40%; background: var(--ink); border-radius: 0 2px 2px 0; }
.gauge i { height: 16px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 10%, transparent); transition: background-color .25s; }
.gauge i.on { background: var(--teal); }
.gauge i.over { background: var(--amber); }
.gauge-cap { display: flex; justify-content: space-between; font: 500 .75rem/1 var(--f-mono); color: var(--ink-2); margin-top: -8px; }
.calc-rec { display: grid; gap: 8px; }
.calc-rec-name { font: 780 1.2rem/1.2 var(--f-display); font-stretch: 108%; }
.calc-rec p { color: var(--ink-2); font-size: .94rem; }
.calc-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.calc-picks a { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 12px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 600 .88rem/1.2 var(--f-display); }
.calc-picks a small { font: 500 .75rem/1 var(--f-mono); color: var(--ink-3); }
.calc-picks a:hover { border-color: var(--teal); color: var(--teal); }
.calc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.calc-actions .btn { white-space: normal; text-align: left; }
.calc-warn { padding: 10px 12px; border-radius: 8px; background: var(--amber-soft); color: var(--ink); font-size: .9rem; }
.calc-note { font-size: .78rem; color: var(--ink-2); }
.calc-note a { color: inherit; }
@media (max-width: 520px) {
  .calc-head, .calc-rows, .calc-add, .calc-days, .calc-out { padding-inline: 14px; }
  .calc-colhead, .calc-row { grid-template-columns: minmax(0, 1fr) 62px 54px 44px 30px; gap: 5px; }
  .calc input[type="number"] { padding: 6px 2px; font-size: .85rem; }
  .calc-del { width: 30px; }
  .calc-figs { grid-template-columns: 1fr 1fr; }
  .calc-fig--key { grid-column: 1 / -1; }
}

/* página de la calculadora a ancho completo */
.page-wide { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: start; margin-top: 24px; }
.page-wide .calc { position: sticky; top: calc(var(--header-h) + 20px); }
.page-wide .prose { font-size: 1.05rem; }
@media (max-width: 960px) { .page-wide { grid-template-columns: minmax(0, 1fr); } .page-wide .calc { position: static; } }

/* ----------------------------------------------------------- buscador */
.search-form input {
  width: 100%; min-height: 56px; margin-top: 20px; padding: 12px 18px; border-radius: 12px; border: 2px solid var(--line);
  background: var(--surface); color: var(--ink); font: 500 1.15rem/1.2 var(--f-display);
}
.search-form input:focus { border-color: var(--teal); outline: none; }
.search-count { margin-top: 14px; font: 500 .85rem/1 var(--f-mono); color: var(--ink-3); }
.search-results { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; max-width: 820px; }
.search-results a { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; }
.search-results a:hover { border-color: var(--teal); }
.search-results strong { font: 700 1.08rem/1.3 var(--f-display); }
.search-results span { color: var(--ink-2); font-size: .94rem; }
.search-results .eyebrow { font-size: .68rem; }
.search-empty { margin-top: 20px; display: grid; gap: 14px; color: var(--ink-2); }

/* ----------------------------------------------------------- 404 */
.notfound { padding-block: 72px 24px; display: grid; gap: 18px; justify-items: start; }
.notfound-code { font: 600 clamp(3rem, 2rem + 6vw, 6rem)/1 var(--f-mono); color: var(--amber); letter-spacing: -.04em; }
.notfound h1 { font-size: clamp(1.8rem, 1.2rem + 2.5vw, 2.8rem); font-weight: 800; font-stretch: 112%; }
.notfound-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ----------------------------------------------------------- pie */
.site-footer { margin-top: 40px; background: var(--deep); color: color-mix(in srgb, var(--on-deep) 82%, transparent); padding-block: 56px 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
.footer-brand { display: grid; gap: 14px; justify-items: start; }
.footer-brand .btn--ghost { background: transparent; color: var(--on-deep); border-color: color-mix(in srgb, var(--on-deep) 30%, transparent); }
.footer-brand .btn--ghost:hover { border-color: var(--amber); color: var(--amber); }
.footer-t { font: 700 .72rem/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--amber); margin: 0 0 12px; }
.footer-t:not(:first-child) { margin-top: 22px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a:not(.btn):not(.brand) { color: color-mix(in srgb, var(--on-deep) 88%, transparent); text-decoration: none; }
.site-footer a:not(.btn):not(.brand):hover { color: var(--on-deep); text-decoration: underline; }
.footer-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid color-mix(in srgb, var(--on-deep) 16%, transparent); display: grid; gap: 8px; font-size: .82rem; color: color-mix(in srgb, var(--on-deep) 60%, transparent); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ================================================================ MOVIMIENTO
   Todo es sutil y se apaga con prefers-reduced-motion (bloque final).
   Los estados ocultos solo existen con la clase .js, así que sin JavaScript todo se ve. */

:root { --ease-out: cubic-bezier(.2, .7, .2, 1); --ease-io: cubic-bezier(.65, 0, .35, 1); }

/* Transición suave entre páginas (Chrome/Edge/Safari recientes) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; animation-timing-function: var(--ease-out); }
.site-header { view-transition-name: cabecera; }

/* Cabecera: gana sombra al hacer scroll */
.site-header { transition: box-shadow .3s, background-color .3s; }
.site-header.is-scrolled { box-shadow: 0 8px 24px -18px rgb(0 0 0 / .45); }

/* Imágenes: aparecen enfocándose y con un leve zoom de salida */
.thumb img { transition: opacity .7s ease, filter .8s ease, transform 1.4s var(--ease-out); will-change: transform; }
.js .thumb img:not(.is-loaded) { opacity: 0; filter: blur(12px); transform: scale(1.06); animation: mostrar-siempre 0s 3s forwards; }
@keyframes mostrar-siempre { to { opacity: 1; filter: none; transform: none; } }
.card .thumb img.is-loaded, .inline-card img { transform: scale(1.001); }
.card:hover .thumb img.is-loaded { transform: scale(1.06); transition-duration: .7s, .8s, 1.6s; }
.card .thumb::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgb(0 0 0 / .18)); opacity: 0; transition: opacity .4s;
}
.card:hover .thumb::after { opacity: 1; }

/* Imagen de cabecera del artículo: parallax suave (JS mueve --py) */
/* la foto de cabecera tiene la misma proporción que su marco (16:9): se ve entera, sin zoom ni recorte */
.thumb--hero img.is-loaded { transform: none; }
.thumb--hero { box-shadow: var(--shadow); }

/* Aparición al hacer scroll (JS añade .reveal solo a lo que está fuera de pantalla) */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity .7s ease var(--d, 0ms), transform .8s var(--ease-out) var(--d, 0ms);
}

/* Portada: entrada escalonada */
.js .hero-copy > * { animation: subir .8s var(--ease-out) both; }
.js .hero-copy > :nth-child(2) { animation-delay: .08s; }
.js .hero-copy > :nth-child(3) { animation-delay: .16s; }
.js .hero-copy > :nth-child(4) { animation-delay: .24s; }
.js .hero-copy > :nth-child(5) { animation-delay: .32s; }
.js .hero .calc { animation: subir .9s .2s var(--ease-out) both; }
@keyframes subir { from { opacity: 0; transform: translateY(18px); } }

/* Subrayado ámbar de «antes» que se dibuja al cargar */
.hero h1 em {
  background: linear-gradient(var(--amber-soft), var(--amber-soft)) no-repeat 0 90% / 100% 38%;
  animation: subrayar 1s .7s var(--ease-io) both;
}
@keyframes subrayar { from { background-size: 0% 38%; } }

/* Foto de portada: deriva lenta tipo Ken Burns + indicador de carga */
.hero-photo {
  position: relative; margin: 8px 0 0; border-radius: 16px; overflow: hidden; aspect-ratio: 1600 / 837; max-width: 100%;
  box-shadow: var(--shadow); background: var(--teal-soft);
}
/* Cinemagraph de la portada: la foto y sus brillos se acercan juntos muy despacio; solo se mueven las luces */
.hero-scene { position: absolute; inset: 0; animation: deriva 26s ease-in-out infinite alternate; transform-origin: 70% 55%; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cg { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); pointer-events: none; mix-blend-mode: screen; border-radius: 50%; }
/* farol: parpadeo cálido e irregular, como una llama suave; el reflejo en la mesa late con él porque es la misma luz */
.cg-lantern { width: 17%; aspect-ratio: 1; background: radial-gradient(circle, rgb(255 212 150 / .5) 0%, rgb(255 176 88 / .22) 38%, transparent 70%); animation: llama 3.4s linear infinite; }
.cg-spill { width: 30%; aspect-ratio: 2.4; background: radial-gradient(ellipse, rgb(255 184 104 / .26) 0%, transparent 68%); animation: llama 3.4s linear infinite; }
@keyframes llama {
  0% { opacity: .62; } 6% { opacity: .9; } 11% { opacity: .7; } 19% { opacity: 1; } 27% { opacity: .74; }
  36% { opacity: .92; } 44% { opacity: .66; } 53% { opacity: .95; } 61% { opacity: .72; } 70% { opacity: .88; }
  79% { opacity: .64; } 88% { opacity: .96; } 100% { opacity: .62; }
}
/* pantallas: latido verde lento, como el indicador de «cargando» */
.cg-phone { width: 5.5%; aspect-ratio: 2.2; background: radial-gradient(ellipse, rgb(110 255 170 / .6), transparent 70%); animation: respira 2.6s ease-in-out infinite; }
.cg-screen { width: 4.5%; aspect-ratio: 1.7; background: radial-gradient(ellipse, rgb(120 255 150 / .5), transparent 70%); animation: respira 3.2s ease-in-out -1s infinite; }
@keyframes respira { 0%, 100% { opacity: .15; } 50% { opacity: .85; } }
/* luces de la ciudad: cada una titila a su ritmo */
.cg-city { width: 1%; min-width: 5px; aspect-ratio: 1; opacity: .2;
  background: radial-gradient(circle, rgb(255 236 180 / .95) 0 18%, rgb(255 200 120 / .35) 45%, transparent 70%);
  animation: titila var(--t) var(--d) ease-in-out infinite; }
@keyframes titila { 0%, 100% { opacity: .15; } 40% { opacity: .95; } 55% { opacity: .45; } 70% { opacity: .8; } }
/* luz de la lámpara de pared (izquierda) */
.cg-wall { width: 42%; aspect-ratio: 1; background: radial-gradient(circle, rgb(255 196 120 / .32) 0%, rgb(255 170 90 / .12) 40%, transparent 70%); opacity: .9; }

/* ---------- Apagón en la portada: todo a oscuras y cada aparato se enciende al conectarle su cable */
.bo { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.bo-dark { fill: rgb(3 6 10); opacity: 0; transition: opacity .35s ease; }
.hero-photo.bo-run .bo-dark { opacity: .9; }
.hero-photo.bo-run.p-all .bo-dark { opacity: 0; transition: opacity 1.6s ease; }
.bo-hole { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.bo-h-screen, .p-lamp .bo-h-lamp, .p-phone .bo-h-phone, .p-room .bo-h-room { transform: scale(1); }
/* destellos de energía: viajan una sola vez de la estación al aparato y se desvanecen (sin cables visibles) */
.bo-spark { fill: none; stroke: #D8FFEC; stroke-width: 5; stroke-linecap: round; opacity: 0;
  stroke-dasharray: var(--dash) 3; stroke-dashoffset: var(--dash);
  filter: drop-shadow(0 0 5px rgb(124 245 184 / .95)) drop-shadow(0 0 14px rgb(124 245 184 / .55)); }
.c-lamp .bo-s-lamp { animation: chispa .7s var(--delay) cubic-bezier(.5, 0, .7, 1) forwards; }
.c-phone .bo-s-phone { animation: chispa .6s var(--delay) cubic-bezier(.5, 0, .7, 1) forwards; }
.c-room .bo-s-room { animation: chispa 1.25s var(--delay) cubic-bezier(.45, 0, .6, 1) forwards; }
@keyframes chispa { 0% { opacity: 1; stroke-dashoffset: var(--dash); } 88% { opacity: 1; } 100% { opacity: 0; stroke-dashoffset: -1; } }
/* fogonazo al llegar la energía al aparato */
.bo-burst { fill: none; stroke: #BFFFE0; stroke-width: 6; opacity: 0; transform-box: fill-box; transform-origin: center;
  filter: drop-shadow(0 0 8px rgb(124 245 184 / .9)); }
.p-lamp .bo-b-lamp, .p-phone .bo-b-phone, .p-room .bo-b-room { animation: fogonazo .8s ease-out forwards; }
@keyframes fogonazo { 0% { opacity: .95; transform: scale(.2); } 100% { opacity: 0; transform: scale(2.2); } }
/* mientras un aparato no tiene corriente, su luz está apagada */
.hero-photo.bo-run:not(.p-lamp) :is(.cg-lantern, .cg-spill),
.hero-photo.bo-run:not(.p-phone) .cg-phone,
.hero-photo.bo-run:not(.p-room) .cg-wall,
.hero-photo.bo-run:not(.p-all) .cg-city { opacity: 0 !important; animation: none; }
.hero-photo.bo-run .cg { transition: opacity .5s ease; }
.chip-off { display: none; }
.hero-photo.bo-run:not(.p-all) .chip-off { display: inline; }
.hero-photo.bo-run:not(.p-all) .chip-on { display: none; }
@keyframes deriva { from { transform: scale(1); } to { transform: scale(1.04); } }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgb(8 16 13 / .55)); pointer-events: none; }
.hero-chip {
  position: absolute; left: 14px; bottom: 14px; right: 14px; z-index: 1; display: flex; align-items: center; gap: 12px;
  width: fit-content; max-width: calc(100% - 28px); padding: 10px 14px; border-radius: 10px;
  background: rgb(10 20 16 / .72); color: #eef3ef; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font: 500 .88rem/1.3 var(--f-display);
}
.hero-chip strong { font: 600 .95rem/1 var(--f-mono); color: #f2b53a; margin-right: 4px; }
.chip-batt { display: grid; grid-template-columns: repeat(5, 5px); gap: 2px; padding: 3px; border: 1.5px solid #eef3ef; border-radius: 3px; position: relative; flex: none; }
.chip-batt::after { content: ""; position: absolute; right: -4px; top: 30%; width: 2px; height: 40%; background: #eef3ef; border-radius: 0 1px 1px 0; }
.chip-batt i { height: 10px; border-radius: 1px; background: #3cc4a9; animation: celda 2.6s infinite; }
.chip-batt i:nth-child(2) { animation-delay: .2s; }
.chip-batt i:nth-child(3) { animation-delay: .4s; }
.chip-batt i:nth-child(4) { animation-delay: .6s; }
.chip-batt i:nth-child(5) { animation-delay: .8s; }
@keyframes celda { 0%, 15% { opacity: .2; } 35%, 85% { opacity: 1; } 100% { opacity: .2; } }

/* Tarjetas de situación: la barra se «carga» al pasar el ratón */
.route::after { opacity: 1 !important; transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.route:hover::after, .route:focus-visible::after { transform: scaleX(1); }
.route { transition: border-color .2s, transform .3s var(--ease-out), box-shadow .3s; }
.route:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.route-go { transition: letter-spacing .3s var(--ease-out); }
.route:hover .route-go { letter-spacing: .02em; }

/* Flechas de los botones y enlaces que empujan hacia delante */
.btn span[aria-hidden] { display: inline-block; transition: transform .25s var(--ease-out); }
.btn:hover span[aria-hidden] { transform: translateX(4px); }
.section-head > a { transition: color .2s, transform .25s var(--ease-out); display: inline-block; }
.section-head > a:hover { transform: translateX(3px); }
.btn--primary, .btn--buy { position: relative; overflow: hidden; }
.btn--primary::after, .btn--buy::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .28) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn--primary:hover::after, .btn--buy:hover::after { transform: translateX(120%); transition: transform .8s var(--ease-out); }

/* Fichas de producto y bloques destacados */
.product { transition: transform .35s var(--ease-out), box-shadow .35s, border-color .2s; }
.product:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--teal) 45%, var(--line)); }
.spec > div { transition: background-color .25s; }
.spec > div:hover { background: var(--teal-soft); }
.hub-chip, .inline-card, .side-cta { transition: border-color .2s, color .2s, transform .3s var(--ease-out); }
.hub-chip:hover, .inline-card:hover { transform: translateY(-2px); }
.next-step { position: relative; overflow: hidden; }
.next-step::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: repeating-linear-gradient(90deg, var(--amber) 0 18px, transparent 18px 22px);
  animation: flujo 1.6s linear infinite;
}
@keyframes flujo { to { background-position: 22px 0; } }
.faq details { transition: border-color .2s; }
.faq details[open] { border-color: var(--teal); }
.faq details[open] > div { animation: subir .35s var(--ease-out); }

/* Calculadora: las celdas se encienden en cascada */
.gauge i { transition: background-color .35s ease calc(var(--i, 0) * 45ms); }
.calc-fig strong { transition: color .3s; }
.calc-row { animation: subir .35s var(--ease-out) both; }
.calc-scen button { transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease-out); }
.calc-scen button:active { transform: scale(.96); }

/* ================================================================ HERRAMIENTAS Y DETALLES (v3) */

/* Logo: las celdas se cargan al entrar y al pasar el ratón */

/* Franja de confianza */
.trust-band { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust-row { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; padding-block: 14px; }
.trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; flex: 1; }
.trust li { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--ink-2); line-height: 1.35; }
.trust strong { color: var(--ink); font-weight: 700; margin-right: 2px; }
.trust-ic { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--teal-soft); display: grid; place-items: center; }
.trust-ic svg { width: 14px; height: 14px; fill: none; stroke: var(--teal); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.trust-more { font: 600 .86rem/1 var(--f-display); text-decoration: none; white-space: nowrap; }
@media (max-width: 700px) { .trust { flex-direction: column; } .trust li span:last-child { font-size: .84rem; } }

/* Cinta de datos */
.ticker { background: var(--deep); color: var(--on-deep); overflow: hidden; border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-track { display: flex; width: max-content; animation: cinta 70s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
@keyframes cinta { to { transform: translateX(-50%); } }
.ticker-run { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker-run li { display: flex; align-items: center; }
.ticker-run li::after { content: ""; width: 5px; height: 5px; border-radius: 1px; background: var(--amber); margin-inline: 22px; }
.ticker-run a { color: color-mix(in srgb, var(--on-deep) 82%, transparent); text-decoration: none; padding-block: 12px;
  font: 500 .86rem/1 var(--f-mono); white-space: nowrap; }
.ticker-run a b { color: #3cc4a9; font-weight: 600; margin-right: 6px; }
.ticker-run a:hover { color: var(--on-deep); text-decoration: underline; }

/* Bandas de la portada: test y comparador */
.quiz-band, .cmp-band {
  margin-top: 64px; border-radius: 18px; padding: clamp(22px, 4vw, 40px);
  display: grid; gap: 28px; align-items: center; position: relative; overflow: hidden;
}
.quiz-band { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); background: var(--deep); color: var(--on-deep); }
.quiz-band h2, .cmp-band h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); font-weight: 800; font-stretch: 112%; letter-spacing: -.02em; margin-block: 8px 12px; }
.quiz-band .eyebrow { color: var(--amber); }
.quiz-band-copy p:not(.eyebrow) { color: color-mix(in srgb, var(--on-deep) 78%, transparent); max-width: 52ch; margin-bottom: 20px; }
.quiz-band .btn--primary { background: var(--amber); color: #2a1a00; }
.quiz-band-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: paso; }
.quiz-band-steps li {
  counter-increment: paso; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px;
  background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1); font: 600 .95rem/1.2 var(--f-display);
  animation: paso-luz 6s infinite;
}
.quiz-band-steps li::before {
  content: counter(paso); flex: none; width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center;
  background: #3cc4a9; color: #05231d; font: 700 .85rem/1 var(--f-mono);
}
.quiz-band-steps li:nth-child(2) { animation-delay: 1.5s; }
.quiz-band-steps li:nth-child(3) { animation-delay: 3s; }
.quiz-band-steps li:nth-child(4) { animation-delay: 4.5s; }
@keyframes paso-luz { 0%, 20% { border-color: rgb(242 181 58 / .9); background: rgb(242 181 58 / .1); } 30%, 100% { border-color: rgb(255 255 255 / .1); background: rgb(255 255 255 / .06); } }
.cmp-band { grid-template-columns: minmax(0, 1fr) auto; background: var(--teal-soft); }
.cmp-band p:not(.eyebrow) { color: var(--ink-2); max-width: 60ch; }
@media (max-width: 800px) { .quiz-band, .cmp-band { grid-template-columns: 1fr; } }

.home-slider { margin-top: 64px; }
.hub-help-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Puntuaciones en las fichas */
.scores { display: grid; gap: 8px; padding: 14px 16px; border-radius: 10px; background: var(--ground); border: 1px solid var(--line); }
.score-row { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) 2.2em; align-items: center; gap: 12px; }
.score-k { font: 600 .82rem/1.2 var(--f-display); color: var(--ink-2); }
.score-bar { height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 9%, transparent); overflow: hidden; }
.score-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--teal), color-mix(in srgb, var(--teal) 70%, var(--amber)));
  transform-origin: left; transform: scaleX(var(--v)); transition: transform 1s var(--ease-out); }
.js .scores:not(.is-on) .score-bar i { transform: scaleX(0); }
.scores.is-on .score-row:nth-child(2) .score-bar i { transition-delay: .1s; }
.scores.is-on .score-row:nth-child(3) .score-bar i { transition-delay: .2s; }
.scores.is-on .score-row:nth-child(4) .score-bar i { transition-delay: .3s; }
.score-n { font: 600 .9rem/1 var(--f-mono); text-align: right; font-variant-numeric: tabular-nums; }
.score-note { font-size: .76rem; color: var(--ink-3); margin-top: 2px !important; }
.score-note a { color: inherit; }

/* Veredicto */
.verdict { display: grid; gap: 8px; font-size: .95rem; line-height: 1.45; }
.verdict p { padding-left: 28px; position: relative; }
.verdict p::before { position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font: 700 .72rem/20px var(--f-mono); text-align: center; }
.verdict-yes::before { content: "✓"; background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good); }
.verdict-no::before { content: "✕"; background: var(--bad-soft); color: var(--bad); }
.verdict strong { font-weight: 700; }

/* Caja de autor (solo aparece con datos en config.json) */
.author-box { display: flex; gap: 18px; align-items: flex-start; padding: 20px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); font-family: var(--f-display); font-size: .95rem; margin-top: 2.4em !important; }
.author-photo { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex: none; }
.author-name { font: 750 1.15rem/1.2 var(--f-display); margin-top: 4px !important; }
.author-role { color: var(--ink-3); font-size: .85rem; }
.author-bio { color: var(--ink-2); margin-block: 8px !important; }

/* Contenedores de herramientas dentro de textos */
.quiz, .cmp, .slide { font-family: var(--f-display); font-size: 1rem; line-height: 1.45; }
.prose .quiz, .prose .cmp, .prose .slide { margin-top: 1.4em; }
.quiz h2, .cmp h2, .slide h2 { border: 0 !important; padding: 0 !important; margin: 0 !important; }

/* Deslizador */
.slide { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow); display: grid; gap: 14px; }
.slide-top { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.slide-read { display: grid; gap: 2px; }
.slide-label { font: 600 .72rem/1 var(--f-display); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.slide-out { font: 600 clamp(2rem, 1.4rem + 2.4vw, 3rem)/1 var(--f-mono); letter-spacing: -.03em; color: var(--teal); font-variant-numeric: tabular-nums; }
.slide-batt { flex: 1; min-width: 200px; display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; padding: 5px; border: 2.5px solid var(--ink); border-radius: 8px; position: relative; margin-right: 10px; }
.slide-batt::after { content: ""; position: absolute; right: -10px; top: 28%; width: 6px; height: 44%; background: var(--ink); border-radius: 0 3px 3px 0; }
.slide-batt i { height: 26px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 9%, transparent); transition: background-color .3s ease calc(var(--i) * 18ms); }
.slide-batt i.on { background: var(--teal); }
.slide-batt i.on:nth-last-child(-n+3) { background: var(--amber); }
.slide-range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; margin: 0; }
.slide-range::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--teal) var(--p, 20%), color-mix(in srgb, var(--ink) 12%, transparent) var(--p, 20%)); }
.slide-range::-moz-range-track { height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 12%, transparent); }
.slide-range::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--teal); }
.slide-range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); border: 3px solid var(--teal); margin-top: -10px; box-shadow: 0 2px 8px rgb(0 0 0 / .25); transition: transform .15s; }
.slide-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 3px solid var(--teal); box-shadow: 0 2px 8px rgb(0 0 0 / .25); }
.slide-range:active::-webkit-slider-thumb { transform: scale(1.15); }
.slide-range:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; border-radius: 8px; }
.slide-scale { display: flex; justify-content: space-between; font: 500 .74rem/1 var(--f-mono); color: var(--ink-3); margin-top: -8px; }
.slide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.slide-tile { display: grid; gap: 4px; padding: 12px 14px; border-radius: 10px; background: var(--ground); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .25s var(--ease-out); }
.slide-tile:hover { border-color: var(--teal); color: var(--ink); transform: translateY(-2px); }
.slide-n { font: 600 .86rem/1.2 var(--f-display); color: var(--ink-2); }
.slide-v { font: 600 1.35rem/1.1 var(--f-mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.slide-meter { height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 8%, transparent); overflow: hidden; }
.slide-meter i { display: block; height: 100%; background: var(--teal); transform-origin: left; transition: transform .35s var(--ease-out); }
.slide-d { font-size: .74rem; color: var(--ink-3); }
.slide-near { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .88rem; color: var(--ink-2); }
.slide-near a { padding: 7px 11px; border-radius: 6px; background: var(--teal-soft); color: var(--ink); text-decoration: none; font-weight: 600; }
.slide-near a small { font: 500 .74rem/1 var(--f-mono); color: var(--ink-2); margin-left: 4px; }
.slide-near a:hover { outline: 1.5px solid var(--teal); }

/* Test */
.quiz-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 4vw, 34px); box-shadow: var(--shadow); display: grid; gap: 14px; animation: subir .45s var(--ease-out) both; }
.quiz-prog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.quiz-prog i { height: 8px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 10%, transparent); transition: background-color .3s; }
.quiz-prog i.on { background: var(--teal); }
.quiz-prog i.now { background: var(--amber); animation: celda 1.6s infinite; }
.quiz-step { font: 600 .78rem/1 var(--f-mono); color: var(--ink-3); }
.quiz-q, .quiz-r-name { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem) !important; font-weight: 800; font-stretch: 110%; letter-spacing: -.02em; line-height: 1.1; outline: none; }
.quiz-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.quiz-opt { text-align: left; display: grid; gap: 4px; padding: 16px 18px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--ground); color: var(--ink); cursor: pointer;
  font: inherit; transition: border-color .2s, background-color .2s, transform .2s var(--ease-out); }
.quiz-opt strong { font: 700 1.02rem/1.25 var(--f-display); }
.quiz-opt span { font-size: .86rem; color: var(--ink-2); }
.quiz-opt:hover { border-color: var(--teal); transform: translateY(-2px); }
.quiz-opt.is-sel { border-color: var(--teal); background: var(--teal-soft); }
.quiz-back, .quiz-again { justify-self: start; background: none; border: 0; color: var(--teal); font: 600 .9rem/1 var(--f-display); cursor: pointer; padding: 8px 0; }
.quiz-result .product-badge { justify-self: start; margin: 0; }
.quiz-r-specs { display: flex; flex-wrap: wrap; gap: 8px; }
.quiz-r-specs span { padding: 6px 10px; border-radius: 6px; background: var(--ground); border: 1px solid var(--line); font: 600 .85rem/1 var(--f-mono); }
.quiz-why { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; color: var(--ink-2); font-size: .95rem; }
.quiz-why li::marker { color: var(--teal); }
.quiz-actions, .cmp-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.quiz-solar, .quiz-alt { padding: 14px 16px; border-radius: 10px; font-size: .94rem; display: grid; gap: 4px; }
.quiz-solar { background: var(--amber-soft); }
.quiz-alt { background: var(--ground); border: 1px solid var(--line); }
.quiz-vs { font-weight: 650; font-size: .9rem; text-decoration: none; }

/* Comparador */
.cmp { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(16px, 3vw, 28px); box-shadow: var(--shadow); display: grid; gap: 18px; }
.cmp-pick { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: end; }
.cmp-pick label { display: block; font: 600 .72rem/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.cmp-pick select { width: 100%; min-height: 44px; padding: 8px 10px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--ground); color: var(--ink); font: 600 .95rem/1.2 var(--f-display); }
.cmp-pick select:focus { border-color: var(--teal); outline: none; }
.cmp-swap { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--teal); font-size: 1.2rem; cursor: pointer; transition: transform .3s var(--ease-out), border-color .2s; }
.cmp-swap:hover { transform: rotate(180deg); border-color: var(--teal); }
.cmp-head, .cmp-row { display: grid; grid-template-columns: 9.5em minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: center; }
.cmp-head p { font: 750 .92rem/1.2 var(--f-display); }
.cmp-row { padding-block: 10px; border-top: 1px solid var(--line); }
.cmp-k { font: 600 .84rem/1.25 var(--f-display); color: var(--ink-2); }
.cmp-side { display: grid; gap: 5px; }
.cmp-v { font: 600 .98rem/1.2 var(--f-mono); font-variant-numeric: tabular-nums; }
.cmp-bar { height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 8%, transparent); overflow: hidden; }
.cmp-bar i { display: block; height: 100%; border-radius: 4px; background: color-mix(in srgb, var(--ink) 30%, transparent); transform-origin: left; transition: transform .6s var(--ease-out); }
.cmp-side.win .cmp-bar i { background: var(--teal); }
.cmp-side.win .cmp-v { color: var(--teal); }
.cmp-side.win .cmp-v::after { content: " ✓"; font-size: .85em; }
.cmp-summary { padding: 12px 14px; border-radius: 10px; background: var(--teal-soft); font-size: .95rem; }
.cmp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cmp-col { display: grid; gap: 10px; align-content: start; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--ground); }
.cmp-name { font: 800 1.1rem/1.2 var(--f-display); }
.cmp-for { font-size: .9rem; color: var(--ink-2); }
.cmp-for strong { color: var(--ink); }
@media (max-width: 640px) {
  .cmp-head, .cmp-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cmp-head span, .cmp-k { grid-column: 1 / -1; }
  .cmp-head span { display: none; }
  .cmp-cols { grid-template-columns: 1fr; }
  .cmp-pick { grid-template-columns: 1fr auto; }
  .cmp-pick > div:last-child { grid-column: 1 / -1; }
  .cmp-swap { grid-row: 1; grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
  .ticker-run[aria-hidden="true"] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
