/* KeepLights — hoja de estilos del sitio.
   Sale del handoff de Claude Design (tokens.css v1.0 + Pages.dc.html), implementado tal cual.
   REGLAS QUE NO SE ROMPEN (handoff/DESIGN.md):
   - Solo esta paleta. Ningun tono entre 250° y 340° (ni en sombras ni en brillos).
   - UN elemento ambar por pantalla: el boton de Amazon o la luz.
   - Movimiento: 200 / 400 / 800 ms y una sola curva.
   Notas de maquetado (lecciones de otros proyectos de Samuel):
   - Las cajas con proporcion van con relleno porcentual, no con aspect-ratio (Safari lo mide mal en rejillas).
   - Todo hijo de rejilla o de fila flexible lleva min-width:0 (si no, ensancha la pagina en telefono). */

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700 800; font-display: swap; src: url("../fonts/manrope.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/inter.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/plex-mono-500.woff2") format("woff2"); }

:root {
  --kl-paper: #FBF7EF; --kl-surface: #FFFFFF; --kl-ink: #10292B; --kl-soft: #44605F; --kl-line: #E4DDCC;
  --kl-mist: #E3F3F0; --kl-sun: #FFF2D6; --kl-lagoon: #0F766E; --kl-deep: #0B5D57; --kl-enough: #1B7F4B;
  --kl-not-enough: #C23B3B;
  --kl-btn: #0F766E; --kl-btnh: #0B5D57; --kl-btnfg: #FFFFFF; --kl-onlag: #FFFFFF;
  --kl-lamp: #FFB020; --kl-lamp-deep: #E08A00;
  --kl-sbthumb: #0F766E; --kl-sbhover: #0B5D57; --kl-sbtrack: #E3F3F0;
  --kl-display: "Manrope", system-ui, sans-serif;
  --kl-body: "Inter", system-ui, sans-serif;
  --kl-mono: "IBM Plex Mono", ui-monospace, monospace;
  --kl-gutter: clamp(20px, 8.3vw, 120px);
  --kl-e: cubic-bezier(0.2, 0.7, 0.2, 1);
  --kl-fast: 200ms; --kl-slow: 400ms; --kl-scene: 800ms;
  --kl-sombra: 0 10px 30px rgba(16, 41, 43, 0.08);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --kl-paper: #0B2530; --kl-surface: #123541; --kl-ink: #EAF4F2; --kl-soft: #A9C7C4; --kl-line: #1F4552;
  --kl-mist: #1F4552; --kl-sun: #1B3A3F; --kl-lagoon: #A9C7C4; --kl-deep: #A9C7C4; --kl-enough: #A9C7C4;
  --kl-not-enough: #F0A3A3;
  --kl-btn: #EAF4F2; --kl-btnh: #E3F3F0; --kl-btnfg: #0B2530; --kl-onlag: #0B2530;
  --kl-sbthumb: #A9C7C4; --kl-sbhover: #EAF4F2; --kl-sbtrack: #123541;
  color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) {
  :root { --kl-fast: 0ms; --kl-slow: 0ms; --kl-scene: 0ms; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@keyframes kl-amz-breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,176,32,0), 0 6px 16px rgba(255,176,32,0.18); } 50% { box-shadow: 0 0 0 8px rgba(255,176,32,0.20), 0 10px 28px rgba(255,176,32,0.42); } }
@keyframes kl-amz-shine { 0% { transform: translateX(-160%) skewX(-20deg); } 20%, 100% { transform: translateX(560%) skewX(-20deg); } }
@keyframes kl-amz-nudge { 0%, 18%, 32%, 100% { transform: translate(0, 0); } 25% { transform: translate(3px, -3px); } }
@keyframes kl-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes kl-fade { from { opacity: 0; } to { opacity: 1; } }

/* ------------------------------------------------------------------ base */
html { scrollbar-width: thin; scrollbar-color: var(--kl-sbthumb) var(--kl-sbtrack); -webkit-text-size-adjust: 100%; }
* { scrollbar-width: thin; scrollbar-color: var(--kl-sbthumb) var(--kl-sbtrack); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: var(--kl-sbtrack); }
::-webkit-scrollbar-thumb { background: var(--kl-sbthumb); border-radius: 999px; border: 2px solid var(--kl-sbtrack); }
::-webkit-scrollbar-thumb:hover { background: var(--kl-sbhover); }
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; font-family: var(--kl-body); font-size: 18px; line-height: 1.6; color: var(--kl-ink); background: var(--kl-paper);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color var(--kl-slow), color var(--kl-slow);
}
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--kl-lagoon); }
a:hover { color: var(--kl-deep); }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
:focus-visible { outline: 2px solid var(--kl-lagoon); outline-offset: 2px; }
[hidden] { display: none !important; }

.kl-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kl-saltar { position: absolute; left: 12px; top: -80px; z-index: 50; display: flex; align-items: center; height: 48px; padding: 0 18px; border-radius: 999px; background: var(--kl-btn); color: var(--kl-btnfg); font-weight: 600; text-decoration: none; }
.kl-saltar:focus { top: 12px; color: var(--kl-btnfg); }

.kl-mono { font: 500 15px var(--kl-mono); }
.kl-mono--12 { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--kl-soft); }
.kl-mono--13 { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--kl-soft); }
.kl-mono--14 { font-size: 14px; color: var(--kl-soft); }
.kl-mono--22 { font-size: 22px; }
.kl-deep { color: var(--kl-deep); }
.kl-soft { color: var(--kl-soft); }
.kl-ink { color: var(--kl-ink); }
.kl-lagoon { color: var(--kl-lagoon); }
.kl-enough { color: var(--kl-enough); }
.kl-x { color: var(--kl-not-enough); font-weight: 700; }

.kl-h1 { font-family: var(--kl-display); font-weight: 800; font-size: clamp(36px, 4.4vw, 64px); line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
.kl-h2s { font-family: var(--kl-display); font-weight: 800; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; letter-spacing: -0.02em; }
.kl-h3 { font-family: var(--kl-display); font-weight: 700; font-size: 24px; line-height: 1.2; }
.kl-p { font-size: 18px; line-height: 1.6; color: var(--kl-soft); }
.kl-p b { color: var(--kl-ink); font-weight: 600; }
.kl-p--17 { font-size: 17px; }
.kl-lema { font-family: var(--kl-display); font-weight: 700; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.45; }
.kl-nota { font-size: 15px; line-height: 1.5; color: var(--kl-soft); }
.kl-nota--13 { font-size: 13px; }
.kl-nota--14 { font-size: 14px; }
.kl-nota a { font-weight: 600; }
.kl-vacio { padding: 32px; border-radius: 24px; border: 1.5px dashed var(--kl-line); color: var(--kl-soft); font-size: 18px; }

.kl-link { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; font-weight: 600; font-size: 17px; color: var(--kl-lagoon); text-decoration: none; }
.kl-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.kl-link--44 { min-height: 44px; font-size: 16px; }

.kl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--kl-btn); color: var(--kl-btnfg); font: 700 18px var(--kl-display); text-decoration: none; white-space: nowrap; transition: background-color var(--kl-fast); }
.kl-btn:hover { background: var(--kl-btnh); color: var(--kl-btnfg); }
.kl-btn:focus-visible { outline-offset: 3px; }
.kl-btn--sm { height: 48px; padding: 0 20px; font-size: 16px; }
.kl-btn--lg { align-self: flex-start; }
.kl-btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.kl-ibtn { width: 48px; height: 48px; flex: none; display: grid; place-items: center; padding: 0; border: 1px solid var(--kl-line); border-radius: 999px; background: var(--kl-surface); color: var(--kl-ink); transition: background-color var(--kl-slow), border-color var(--kl-slow); }
.kl-ibtn:hover { border-color: var(--kl-lagoon); }
.kl-ibtn--plain { border: 0; background: transparent; color: inherit; }
.kl-ibtn--plain:hover { background: rgba(15, 118, 110, 0.10); }

/* --------------------------------------------------------------- cabecera */
.kl-top { position: relative; z-index: 5; display: flex; align-items: center; gap: clamp(8px, 2vw, 28px); height: clamp(64px, 5.6vw, 80px); padding: 0 var(--kl-gutter); border-bottom: 1px solid var(--kl-line); background: var(--kl-paper); transition: background-color var(--kl-slow), border-color var(--kl-slow); }
.kl-logo { margin-right: auto; display: flex; align-items: center; gap: 10px; min-height: 48px; text-decoration: none; color: inherit; }
.kl-logo:hover { color: inherit; }
.kl-logo__dot { position: relative; width: 22px; height: 22px; display: grid; place-items: center; }
.kl-logo__dot span:first-child { position: absolute; inset: 0; border-radius: 999px; border: 1.5px solid var(--kl-lagoon); opacity: 0.45; }
.kl-logo__dot span:last-child { width: 10px; height: 10px; border-radius: 999px; background: var(--kl-lagoon); }
.kl-logo__t { font-family: var(--kl-display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.kl-top__wide { display: flex; align-items: center; gap: 28px; }
.kl-nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); }
.kl-nav a { display: flex; align-items: center; min-height: 48px; font-size: 16px; font-weight: 500; white-space: nowrap; text-decoration: none; color: var(--kl-soft); box-shadow: inset 0 -2px 0 transparent; }
.kl-nav a:hover { color: var(--kl-ink); }
.kl-nav a[aria-current="page"] { color: var(--kl-ink); box-shadow: inset 0 -2px 0 var(--kl-lagoon); }
.kl-top__menu { display: none; }
.kl-menu-ic-cerrar, [aria-expanded="true"] > .kl-menu-ic-abrir { display: none; }
[aria-expanded="true"] > .kl-menu-ic-cerrar { display: block; }
.kl-tema-sol, [data-theme="dark"] .kl-tema-luna { display: none; }
[data-theme="dark"] .kl-tema-sol { display: block; }
.kl-son-off, [data-kl-sonido][aria-pressed="false"] .kl-son-on { display: none; }
[data-kl-sonido][aria-pressed="false"] .kl-son-off { display: block; }
.kl-menu { position: relative; z-index: 4; display: flex; flex-direction: column; padding: 8px var(--kl-gutter) 16px; background: var(--kl-surface); border-bottom: 1px solid var(--kl-line); box-shadow: var(--kl-sombra); }
.kl-menu a { display: flex; align-items: center; min-height: 56px; font-size: 18px; font-weight: 500; text-decoration: none; color: var(--kl-ink); border-bottom: 1px solid var(--kl-line); }
.kl-menu a:last-child { border-bottom: 0; }
.kl-menu a[aria-current="page"] { font-weight: 600; color: var(--kl-lagoon); }
@media (max-width: 899px) {
  .kl-top__wide { display: none; }
  .kl-top__menu { display: grid; }
}
@media (min-width: 900px) { .kl-menu { display: none !important; } }

/* -------------------------------------------------------------------- pie */
.kl-foot { padding: 32px var(--kl-gutter) 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; font-size: 15px; color: var(--kl-soft); border-top: 1px solid var(--kl-line); }
.kl-foot__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; }
.kl-foot__nav a { display: flex; align-items: center; min-height: 48px; color: inherit; text-decoration: none; white-space: nowrap; }
.kl-foot__nav a:hover { text-decoration: underline; }
.kl-foot__logo { gap: 8px; color: var(--kl-ink) !important; font-family: var(--kl-display); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.kl-foot__logo span { width: 8px; height: 8px; border-radius: 9px; background: var(--kl-lagoon); }

/* --------------------------------------------------------- AmazonButton */
.kl-amz-g { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.kl-pago { font-size: 12px; line-height: 1.3; color: var(--kl-soft); }
.kl-amz { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 28px; border-radius: 999px; background: #FFB020; color: #10292B; font: 700 18px var(--kl-display); text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform var(--kl-fast) var(--kl-e), background-color var(--kl-fast); animation: kl-amz-breathe 4000ms ease-in-out 1200ms infinite; }
.kl-amz:hover { background: #E08A00; color: #10292B; transform: translateY(-2px) scale(1.02); }
.kl-amz:active { transform: translateY(0) scale(0.97); }
.kl-amz:focus-visible { outline: 2px solid var(--kl-lagoon); outline-offset: 3px; }
.kl-amz__luz { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; z-index: -1; }
/* El brillo espera FUERA del boton (el mismo sitio que el primer cuadro de su animacion): sin esto se veia una franja
   blanca quieta en el borde izquierdo los 2 s que tarda en arrancar, y para siempre con «menos movimiento». */
.kl-amz__luz span { position: absolute; top: -30%; bottom: -30%; left: 0; width: 20%; background: rgba(255, 242, 214, 0.8); filter: blur(5px); transform: translateX(-160%) skewX(-20deg); animation: kl-amz-shine 4000ms var(--kl-e) 2000ms infinite backwards; }
.kl-amz__t { position: relative; }
.kl-amz__f { flex: none; animation: kl-amz-nudge 4000ms var(--kl-e) 2000ms infinite; }
.kl-amz--xl { height: 60px; font-size: 19px; padding: 0 20px; }
.kl-amz--barra, .kl-amz--52 { height: 52px; }
/* El boton pequeño de filas, tarjetas y riel: el mismo ambar (ambar = Amazon), sin latido ni brillo para que
   muchos juntos no se muevan a la vez. */
.kl-amz--mini { height: 44px; padding: 0 18px; gap: 8px; font-size: 15px; animation: none; box-shadow: none; }
.kl-amz--mini .kl-amz__luz { display: none; }
.kl-amz--mini .kl-amz__f { animation: none; }
.kl-amz-g--izq { align-items: flex-start; }
.kl-amz--52 { padding: 0 24px; font-size: 17px; }
.kl-afil { font-size: 14px; color: var(--kl-soft); text-align: center; }
.kl-afil--12 { font-size: 12px; }

/* ------------------------------------------------------------------ sellos */
.kl-sello { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 8px; border: 1.5px solid var(--kl-lagoon); color: var(--kl-lagoon); font: 500 12px var(--kl-mono); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.kl-sello--measured { border-color: var(--kl-ink); background: var(--kl-ink); color: var(--kl-paper); }
.kl-sello--outage { border-style: dashed; border-color: var(--kl-ink); color: var(--kl-ink); }
.kl-sello--g { height: 40px; padding: 0 14px; font-size: 13px; }
.kl-sellos { display: flex; flex-wrap: wrap; gap: 8px; }

/* ------------------------------------------------------------------- fotos */
.kl-foto { position: relative; min-width: 0; border-radius: 20px; background: #E3F3F0; overflow: hidden; }
.kl-foto::before { content: ""; display: block; padding-top: var(--r, 75%); }
.kl-foto img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; mix-blend-mode: multiply; }
.kl-foto--vacia { background: var(--kl-mist); display: block; }
.kl-caja { position: absolute; left: 50%; top: 54%; width: 34%; max-width: 110px; transform: translate(-50%, -50%); border-radius: 12px; border: 2px solid var(--kl-soft); }
.kl-caja::before { content: ""; display: block; padding-top: 75%; }
.kl-caja::after { content: ""; position: absolute; left: 22%; right: 22%; top: -12px; height: 8px; border-radius: 4px 4px 0 0; background: var(--kl-soft); }
.kl-caja span { position: absolute; left: 14%; bottom: 16%; width: 12%; padding-top: 12%; border-radius: 9px; border: 2px solid var(--kl-soft); }

/* ---------------------------------------------------------------- pagina */
.kl-main { display: flex; flex-direction: column; gap: clamp(24px, 3vw, 44px); padding: clamp(32px, 4.4vw, 72px) var(--kl-gutter) clamp(72px, 8.9vw, 128px); }
.kl-main > * { min-width: 0; }
.kl-cab { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.kl-cab--s { gap: 6px; }
.kl-cab--680 { max-width: 680px; }
.kl-cab--760 { max-width: 760px; gap: 14px; }
.kl-cab-fila { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.kl-sec { display: flex; flex-direction: column; gap: 16px; }
.kl-sec > * { min-width: 0; }
.kl-migas { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; color: var(--kl-soft); }
.kl-migas a { color: var(--kl-lagoon); font-weight: 600; text-decoration: none; }
.kl-migas a:hover { text-decoration: underline; }
.kl-solo-movil { display: none; }
@media (max-width: 899px) { .kl-solo-ancho { display: none; } .kl-solo-movil { display: inline; } }

/* Segmentos (pestañas de necesidad y de tema): nunca mas de 3 + «All». */
.kl-seg { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--kl-surface); border: 1px solid var(--kl-line); max-width: 100%; }
.kl-seg button { flex: 1; height: 48px; padding: 0 clamp(12px, 1.6vw, 22px); border: 0; border-radius: 999px; background: transparent; color: var(--kl-soft); font: 600 16px var(--kl-body); white-space: nowrap; transition: background-color var(--kl-fast), color var(--kl-fast); }
.kl-seg button[aria-selected="true"] { background: var(--kl-ink); color: var(--kl-paper); }
.kl-seg--auto button { flex: none; }
@media (max-width: 420px) { .kl-seg button { padding: 0 10px; font-size: 15px; } }

/* Tablas de datos. */
.kl-tabla-wrap { overflow-x: auto; border-radius: 24px; border: 1px solid var(--kl-line); background: var(--kl-surface); }
.kl-tabla { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.kl-tabla th, .kl-tabla td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--kl-line); }
.kl-tabla tr:last-child > * { border-bottom: 0; }
.kl-tabla thead th { font: 500 12px var(--kl-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--kl-soft); background: var(--kl-paper); white-space: nowrap; }
.kl-tabla tbody th { font-weight: 600; min-width: 150px; }
.kl-tabla td.kl-mono { white-space: nowrap; }
.kl-tabla a { font-weight: 600; text-decoration: none; }
.kl-tabla a:hover { text-decoration: underline; }
.kl-tabla--datos tbody th { width: 46%; font-weight: 500; color: var(--kl-soft); }
/* Tabla que en telefono se vuelve fichas: cada fila es una tarjeta y cada dato lleva su nombre delante.
   (Pedido de Samuel, 5 oct 2026: en telefono las tablas anchas se aplastaban.) */
.kl-tabla--fichas td, .kl-tabla--fichas tbody th { vertical-align: middle; }
.kl-tabla__amz { text-align: right; white-space: nowrap; }
.kl-tabla__amz .kl-amz-g { align-items: flex-end; }
.kl-tabla tr[hidden] { display: none; }
@media (max-width: 759px) {
  .kl-tabla--fichas, .kl-tabla--fichas tbody, .kl-tabla--fichas tr, .kl-tabla--fichas tbody th, .kl-tabla--fichas td { display: block; }
  .kl-tabla--fichas thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .kl-tabla--fichas tr { padding: 14px 16px; border-bottom: 1px solid var(--kl-line); }
  .kl-tabla--fichas tr:last-child { border-bottom: 0; }
  .kl-tabla--fichas tbody th, .kl-tabla--fichas td { padding: 3px 0; border: 0; min-width: 0; white-space: normal; }
  .kl-tabla--fichas tbody th { font-size: 18px; padding-bottom: 6px; }
  .kl-tabla--fichas td[data-l]::before { content: attr(data-l) ": "; font: 500 12px var(--kl-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--kl-soft); }
  .kl-tabla--fichas td.kl-mono { white-space: normal; }
  .kl-tabla--fichas .kl-tabla__amz { text-align: left; padding-top: 10px; }
  .kl-tabla--fichas .kl-tabla__amz .kl-amz-g { align-items: flex-start; }
  .kl-tabla--fichas .kl-tabla__amz:empty { display: none; }
}
/* Seccion plegable (el catalogo de Best Picks). */
.kl-plegable { display: flex; flex-direction: column; }
.kl-plegable__s { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; cursor: pointer; list-style: none; border-radius: 16px; }
.kl-plegable__s::-webkit-details-marker { display: none; }
.kl-plegable__s:focus-visible { outline: 2px solid var(--kl-lagoon); outline-offset: 4px; }
.kl-plegable__n { font: 500 16px var(--kl-mono); color: var(--kl-soft); }
.kl-plegable__ic { flex: none; color: var(--kl-soft); transition: transform var(--kl-fast) var(--kl-e); }
.kl-plegable[open] > .kl-plegable__s .kl-plegable__ic { transform: rotate(180deg); }
.kl-plegable__c { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; }
/* Filtros de una lista: una fila de botones por cada cosa que se puede filtrar. */
.kl-filtros { display: flex; flex-direction: column; gap: 10px; }
.kl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kl-chip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--kl-line); background: var(--kl-surface); color: var(--kl-soft); font: 600 15px var(--kl-body); white-space: nowrap; transition: background-color var(--kl-fast), color var(--kl-fast), border-color var(--kl-fast); }
.kl-chip:hover { border-color: var(--kl-lagoon); color: var(--kl-ink); }
.kl-chip[aria-pressed="true"] { background: var(--kl-ink); border-color: var(--kl-ink); color: var(--kl-paper); }
/* Caja de busqueda (Guides, y el elegir de Compare). */
.kl-busca { display: flex; align-items: center; gap: 10px; min-height: 52px; max-width: 520px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--kl-line); background: var(--kl-surface); color: var(--kl-soft); }
.kl-busca:focus-within { border-color: var(--kl-lagoon); }
.kl-busca svg { flex: none; }
.kl-busca input { flex: 1; min-width: 0; height: 48px; border: 0; padding: 0; background: transparent; color: var(--kl-ink); font: 500 17px var(--kl-body); outline: none; -webkit-appearance: none; appearance: none; }
.kl-busca input::placeholder { color: var(--kl-soft); opacity: 1; }
.kl-tabla--datos td { font: 500 16px var(--kl-mono); color: var(--kl-ink); }
.kl-tabla--datos td.kl-soft { color: var(--kl-soft); }

/* Texto largo (analisis de fichas, guias, paginas). Sin estilos propios: el servidor los quita. */
.kl-prosa { max-width: 720px; font-size: 18px; line-height: 1.7; }
.kl-prosa > * + * { margin-top: 20px; }
.kl-prosa h2 { margin-top: 36px; font-family: var(--kl-display); font-weight: 800; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.2; letter-spacing: -0.02em; scroll-margin-top: 24px; }
.kl-prosa h3 { margin-top: 28px; font-family: var(--kl-display); font-weight: 700; font-size: 21px; line-height: 1.3; }
.kl-prosa ul, .kl-prosa ol { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.kl-prosa a { font-weight: 600; text-underline-offset: 3px; overflow-wrap: break-word; }
.kl-prosa blockquote { margin: 20px 0 0; padding: 18px 22px; border-radius: 20px; background: var(--kl-mist); }
.kl-prosa p.formula { padding: 20px 24px; border-radius: 20px; background: var(--kl-surface); border: 1px solid var(--kl-line); font: 500 clamp(15px, 1.4vw, 19px) var(--kl-mono); line-height: 1.8; }
.kl-prosa p.formula b { color: var(--kl-deep); }
.kl-prosa p.note { font-size: 15px; color: var(--kl-soft); }
.kl-prosa table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; border-radius: 20px; border: 1px solid var(--kl-line); background: var(--kl-surface); font-size: 16px; line-height: 1.45; }
.kl-prosa th, .kl-prosa td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--kl-line); }
.kl-prosa thead th { font: 500 12px var(--kl-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--kl-soft); background: var(--kl-paper); }
.kl-prosa tr:last-child > * { border-bottom: 0; }
.kl-prosa code { font: 500 0.9em var(--kl-mono); }

/* Hueco de anuncio: 280 px fijos, reservados (la pagina no salta cuando llega el anuncio). */
.kl-ad { height: 280px; display: flex; flex-direction: column; gap: 6px; border-radius: 16px; overflow: hidden; }
.kl-ad__t { font: 500 11px var(--kl-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--kl-soft); }

/* Barras que crecen (800 ms). Sin JavaScript se ven llenas desde el principio. */
[data-kl-crece] { width: var(--w, 0%); }
.kl-js [data-kl-crece] { width: 0; transition: width var(--kl-scene) var(--kl-e) var(--d, 0ms); }
.kl-js.kl-listo [data-kl-crece] { width: var(--w, 0%); }

/* ------------------------------------------------------------- Best Picks */
.kl-need { display: flex; flex-direction: column; gap: clamp(28px, 3vw, 44px); }
.kl-top-pick { display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 48px); align-items: center; padding: clamp(16px, 2vw, 28px); border-radius: 28px; background: var(--kl-surface); border: 2px solid var(--kl-lagoon); box-shadow: 0 18px 40px rgba(16, 41, 43, 0.10); }
.kl-top-pick__foto { flex: 1 1 360px; }
.kl-top-pick__t { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.kl-top-pick__n { display: flex; flex-direction: column; gap: 2px; }
.kl-top-pick__n span { font-size: 16px; color: var(--kl-soft); }
.kl-top-pick__n h2 { font-family: var(--kl-display); font-weight: 800; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.1; letter-spacing: -0.02em; }
.kl-top-pick__cta { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 24px; }
.kl-top-pick__cta .kl-link { min-height: 56px; white-space: nowrap; }
.kl-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kl-duo > div { min-width: 0; padding: 12px 14px; border-radius: 14px; background: var(--kl-paper); }
.kl-duo span { display: block; }
.kl-duo span + span { font-size: 14px; line-height: 1.4; color: var(--kl-soft); }
.kl-also { display: flex; flex-direction: column; gap: 16px; }
.kl-also__lista { display: flex; flex-wrap: wrap; gap: 16px; }
.kl-mini { flex: 1 1 320px; min-width: 0; display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: 24px; background: var(--kl-surface); border: 1px solid var(--kl-line); transition: transform var(--kl-slow) var(--kl-e), box-shadow var(--kl-slow); }
.kl-mini:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(16, 41, 43, 0.10); }
.kl-mini__foto { width: 112px; flex: none; border-radius: 16px; --r: 100%; }
.kl-mini__t { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.kl-mini__t .kl-amz-g { margin-top: 6px; }
.kl-mini__n { font-family: var(--kl-display); font-weight: 700; font-size: 20px; line-height: 1.25; }
.kl-mini--art { margin-top: 20px; }
.kl-todas { display: flex; flex-direction: column; gap: 16px; margin-top: clamp(24px, 3vw, 44px); }

/* ------------------------------------------------------------------ ficha */
.kl-main--ficha { padding-top: clamp(24px, 3vw, 48px); gap: clamp(28px, 3.3vw, 48px); }
.kl-ficha { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 64px); align-items: flex-start; }
.kl-ficha__fotos { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.kl-ficha__foto { border-radius: 24px; --r: 100%; }
.kl-galeria { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kl-galeria button { position: relative; min-width: 0; padding: 0 0 100%; height: 0; border-radius: 14px; border: 2px solid transparent; background: #E3F3F0; overflow: hidden; }
.kl-galeria button[aria-pressed="true"] { border-color: var(--kl-lagoon); }
.kl-galeria img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; }
.kl-ficha__t { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
/* El H1 de la ficha lleva la marca dentro (antes iba en un <span> fuera y el H1 decia solo «C300»): se ve igual,
   la marca pequeña arriba y el modelo grande debajo, pero el titulo de la pagina dice «Anker SOLIX C300». */
.kl-ficha__n { display: flex; flex-direction: column; gap: 4px; font-family: var(--kl-display); font-weight: 800; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.05; letter-spacing: -0.03em; }
.kl-ficha__n span { font-family: var(--kl-body); font-weight: 400; font-size: 17px; line-height: 1.4; letter-spacing: normal; color: var(--kl-soft); }
.kl-take { padding: 20px; border-radius: 20px; background: var(--kl-mist); display: flex; flex-direction: column; gap: 6px; }
.kl-take p { font-size: 18px; line-height: 1.6; }
.kl-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kl-specs > div { min-width: 0; padding: 14px 16px; border-radius: 16px; background: var(--kl-surface); border: 1px solid var(--kl-line); }
.kl-specs dt { font-size: 20px; }
.kl-specs dd { margin-top: 4px; font-size: 14px; line-height: 1.4; color: var(--kl-soft); }
.kl-specs dd b { color: var(--kl-ink); font-weight: 600; }
.kl-ficha__cta { display: flex; flex-direction: column; gap: 12px; }
.kl-runs { display: flex; flex-direction: column; border-radius: 24px; background: var(--kl-surface); border: 1px solid var(--kl-line); overflow: hidden; }
.kl-run { display: flex; align-items: center; gap: 16px; min-height: 60px; padding: 0 20px; border-bottom: 1px solid var(--kl-line); }
.kl-run:last-child { border-bottom: 0; }
.kl-run__ic { flex: none; color: var(--kl-lagoon); }
.kl-run__l { flex: 0 0 clamp(110px, 16vw, 200px); font-size: 16px; font-weight: 500; line-height: 1.3; }
.kl-run__barra { flex: 1; min-width: 0; height: 10px; border-radius: 999px; background: var(--kl-mist); overflow: hidden; }
.kl-run__barra span { display: block; height: 100%; border-radius: 999px; background: var(--kl-lagoon); }
.kl-run__h { flex: 0 0 72px; text-align: right; }
.kl-duo-cajas { flex-direction: row; flex-wrap: wrap; }
.kl-caja-t { flex: 1 1 300px; min-width: 0; padding: clamp(20px, 2.2vw, 28px); border-radius: 24px; display: flex; flex-direction: column; gap: 8px; }
.kl-caja-t--mist { background: var(--kl-mist); }
.kl-caja-t--sun { background: var(--kl-sun); }
.kl-caja-t h3 { display: flex; align-items: center; gap: 8px; font-family: var(--kl-display); font-weight: 700; font-size: 20px; }
.kl-caja-t p { font-size: 17px; line-height: 1.55; }
.kl-acciones { display: flex; flex-wrap: wrap; gap: 4px 32px; }
.kl-barra { display: none; }
@media (max-width: 899px) {
  .kl-ficha__cta { display: none; }
  /* StickyAmazonBar: nombre en una linea, Wh · W, boton ambar y aviso. */
  .kl-barra { position: sticky; bottom: 0; z-index: 4; margin: 0 calc(-1 * var(--kl-gutter)) calc(-1 * clamp(72px, 8.9vw, 128px)); padding: 12px 16px 20px; display: flex; flex-direction: column; gap: 8px; background: var(--kl-surface); border-top: 1px solid var(--kl-line); box-shadow: 0 -10px 30px rgba(16, 41, 43, 0.08); }
  .kl-barra__t { display: flex; flex-direction: column; min-width: 0; }
  .kl-barra__t span:first-child { font-weight: 600; font-size: 16px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .kl-barra__t .kl-mono { font-size: 13px; color: var(--kl-soft); }
  .kl-run { gap: 12px; padding: 0 14px; }
  .kl-run__h { flex-basis: 60px; }
}

/* ---------------------------------------------------------------- Compare */
/* Sin `overflow: hidden`: la lista para elegir caja sale por debajo de la cabecera. Las esquinas redondas las
   llevan la primera y la ultima franja. */
.kl-cmp { border-radius: 28px; background: var(--kl-surface); border: 1px solid var(--kl-line); }
.kl-cmp__cab, .kl-cmp__fila { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); border-bottom: 1px solid var(--kl-line); }
.kl-cmp--3 .kl-cmp__cab, .kl-cmp--3 .kl-cmp__fila { grid-template-columns: minmax(0, 0.9fr) repeat(3, minmax(0, 1fr)); }
.kl-cmp__cab { background: var(--kl-paper); border-radius: 27px 27px 0 0; }
.kl-cmp__row { padding: 16px clamp(12px, 2vw, 24px); align-self: end; }
.kl-cmp__col { position: relative; min-width: 0; padding: 16px clamp(10px, 2vw, 24px); display: flex; flex-direction: column; gap: 8px; border-left: 1px solid var(--kl-line); }
.kl-cmp__foto { border-radius: 14px; max-height: 140px; }
.kl-cmp__foto::before { padding-top: min(75%, 140px); }
.kl-cmp__sel { position: relative; display: flex; flex-direction: column; gap: 2px; min-height: 48px; padding: 6px 34px 6px 12px; border-radius: 12px; border: 1.5px solid var(--kl-line); background: var(--kl-surface); font: 600 15px var(--kl-body); line-height: 1.3; }
.kl-cmp__sel:hover, .kl-cmp__sel:focus-within { border-color: var(--kl-lagoon); }
.kl-cmp__sel::after { content: "▾"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.kl-cmp__sel select { width: 100%; min-width: 0; border: 0; padding: 0; margin: 0; background: transparent; color: var(--kl-ink); font: inherit; -webkit-appearance: none; appearance: none; cursor: pointer; text-overflow: ellipsis; outline: none; }
.kl-cmp__sel select option { color: #10292B; background: #FFFFFF; }
.kl-cmp__lab { min-width: 0; padding: 16px clamp(12px, 2vw, 24px); display: flex; flex-direction: column; gap: 2px; }
.kl-cmp__lab span:first-child { font-weight: 600; font-size: 16px; }
.kl-cmp__lab span:last-child { font-size: 14px; line-height: 1.4; color: var(--kl-soft); }
.kl-cmp__val { min-width: 0; padding: 16px clamp(10px, 2vw, 24px); border-left: 1px solid var(--kl-line); display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.kl-cmp__val .kl-mono { font-size: clamp(15px, 1.3vw, 18px); }
.kl-cmp__barra { height: 8px; border-radius: 999px; background: var(--kl-lagoon); }
.kl-cmp__barra--b { background: var(--kl-soft); }
.kl-cmp__barra--c { background: var(--kl-ink); opacity: 0.45; }
.kl-cmp__barra--no { visibility: hidden; height: 0; }
.kl-cmp__veredicto { padding: clamp(16px, 2vw, 28px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--kl-mist); border-radius: 0 0 27px 27px; }
/* El elegir propio (compare.js lo monta sobre el <select>, que se queda para quien no tenga JavaScript). */
.kl-cmp__sel--propio { padding: 0; border: 0; background: transparent; min-height: 0; gap: 6px; }
.kl-cmp__sel--propio::after { content: none; }
.kl-cmp__sel--propio select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.kl-elegir-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 48px; padding: 6px 12px; border-radius: 12px; border: 1.5px solid var(--kl-line); background: var(--kl-surface); color: var(--kl-ink); font: 600 15px var(--kl-body); line-height: 1.3; text-align: left; transition: border-color var(--kl-fast); }
.kl-elegir-btn:hover, .kl-elegir-btn[aria-expanded="true"] { border-color: var(--kl-lagoon); }
.kl-elegir-btn__n { min-width: 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.kl-elegir-btn svg { flex: none; color: var(--kl-soft); transition: transform var(--kl-fast) var(--kl-e); }
.kl-elegir-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.kl-elegir { position: absolute; z-index: 20; top: calc(100% - 8px); left: clamp(10px, 2vw, 24px); width: max(100% - 2 * clamp(10px, 2vw, 24px), 300px); max-width: calc(100vw - 32px); display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 20px; background: var(--kl-surface); border: 1.5px solid var(--kl-lagoon); box-shadow: 0 18px 40px rgba(16, 41, 43, 0.18); }
.kl-cmp__col:last-of-type .kl-elegir, .kl-cmp__col[data-col="c"] .kl-elegir { left: auto; right: clamp(10px, 2vw, 24px); }
.kl-elegir__busca { max-width: none; min-height: 48px; }
.kl-elegir__busca input { height: 44px; font-size: 16px; }
.kl-elegir__lista { max-height: min(50vh, 340px); overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.kl-elegir__marca { padding: 10px 10px 4px; font: 500 12px var(--kl-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--kl-soft); }
.kl-elegir__o { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 6px 10px; border-radius: 10px; font: 500 16px var(--kl-body); color: var(--kl-ink); cursor: pointer; }
.kl-elegir__o .kl-mono { flex: none; font-size: 13px; color: var(--kl-soft); }
.kl-elegir__o:hover, .kl-elegir__o--activa { background: var(--kl-mist); }
.kl-elegir__o[aria-selected="true"] { font-weight: 700; box-shadow: inset 3px 0 0 var(--kl-lagoon); }
.kl-elegir__o[aria-disabled="true"] { opacity: 0.5; cursor: default; background: transparent; }
.kl-elegir__nada { padding: 12px 10px; color: var(--kl-soft); font-size: 15px; }
.kl-cmp__quitar { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; border: 0; background: transparent; color: var(--kl-soft); font: 500 14px var(--kl-body); text-decoration: underline; text-underline-offset: 3px; }
.kl-cmp__quitar:hover { color: var(--kl-ink); }
.kl-btn--borde { background: transparent; color: var(--kl-ink); box-shadow: inset 0 0 0 1.5px var(--kl-line); }
.kl-btn--borde:hover { background: var(--kl-mist); color: var(--kl-ink); box-shadow: inset 0 0 0 1.5px var(--kl-lagoon); }
.kl-cmp__veredicto > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kl-cmp__frase { font-family: var(--kl-display); font-weight: 700; font-size: 22px; line-height: 1.3; }
@media (max-width: 899px) {
  .kl-cmp__cab, .kl-cmp__fila { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .kl-cmp--3 .kl-cmp__cab, .kl-cmp--3 .kl-cmp__fila { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kl-cmp--3 .kl-cmp__col { padding: 12px 8px; }
  .kl-cmp--3 .kl-cmp__val { padding: 10px 8px 14px; }
  .kl-cmp--3 .kl-cmp__val .kl-mono { font-size: 14px; }
  .kl-cmp--3 .kl-elegir-btn { padding: 6px 8px; font-size: 13px; }
  .kl-cmp--3 .kl-elegir-btn svg { display: none; }
  .kl-cmp__quitar span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  /* En telefono la lista para elegir sube desde abajo, a todo el ancho: en una columna de 120 px no cabe. */
  .kl-elegir, .kl-cmp__col:last-of-type .kl-elegir, .kl-cmp__col[data-col="c"] .kl-elegir { position: fixed; top: auto; left: 12px; right: 12px; bottom: 12px; width: auto; max-width: none; }
  .kl-elegir__lista { max-height: 46vh; }
  .kl-cmp__row { display: none; }
  .kl-cmp__col { border-left: 0; }
  .kl-cmp__lab { grid-column: 1 / -1; padding-bottom: 0; }
  .kl-cmp__val { padding: 10px 14px 16px; border-left: 0; }
  .kl-cmp__val + .kl-cmp__val { border-left: 1px solid var(--kl-line); }
}

/* ---------------------------------------------------------- Plug-in Solar */
.kl-solar { display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 48px); align-items: flex-start; }
.kl-solar__mapa { flex: 1.4 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: clamp(14px, 2vw, 28px); border-radius: 28px; background: var(--kl-surface); border: 1px solid var(--kl-line); }
.kl-solar__select { display: none; flex-direction: column; gap: 8px; font-size: 16px; font-weight: 600; }
.kl-solar__select select { height: 56px; padding: 0 16px; border-radius: 16px; border: 1.5px solid var(--kl-lagoon); background: var(--kl-surface); color: var(--kl-ink); font: 500 18px var(--kl-body); }
.kl-tiles { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: clamp(3px, 0.4vw, 6px); }
.kl-tile { position: relative; min-width: 0; height: 0; padding: 0 0 100%; border-radius: clamp(4px, 0.6vw, 8px); border: 2px solid transparent; background: var(--kl-mist); color: var(--kl-soft); font: 500 clamp(8px, 0.9vw, 13px) var(--kl-mono); transition: background-color var(--kl-slow) var(--kl-e) var(--d, 0ms), border-color var(--kl-fast); }
.kl-tile span { position: absolute; inset: 0; display: grid; place-items: center; }
.kl-tile--si { background: var(--kl-lagoon); color: var(--kl-onlag); }
.kl-tile:hover, .kl-tile[aria-pressed="true"] { border-color: var(--kl-ink); }
/* La ola: las fichas empiezan apagadas y se encienden por diagonales (60 ms cada una). */
.kl-js:not(.kl-listo) .kl-tile { background: var(--kl-paper); }
.kl-leyenda { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; color: var(--kl-soft); }
.kl-leyenda > span { display: flex; align-items: center; gap: 8px; }
.kl-leyenda__si, .kl-leyenda__no { width: 14px; height: 14px; border-radius: 4px; background: var(--kl-lagoon); }
.kl-leyenda__no { background: var(--kl-mist); border: 1px solid var(--kl-line); }
.kl-estado { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: clamp(20px, 2.2vw, 32px); border-radius: 28px; background: var(--kl-surface); border: 1px solid var(--kl-line); box-shadow: var(--kl-sombra); }
.kl-estado h2 { font-family: var(--kl-display); font-weight: 800; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.1; letter-spacing: -0.02em; }
.kl-estado .kl-amz-g { align-items: stretch; }
.kl-estado .kl-pago { text-align: center; }
.kl-estado__det { padding-left: 20px; font-size: 16px; line-height: 1.5; color: var(--kl-soft); }
.kl-estado__fuente { font-size: 14px; line-height: 1.5; color: var(--kl-soft); }
.kl-pill { align-self: flex-start; display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 14px; border-radius: 999px; background: var(--kl-paper); color: var(--kl-soft); border: 1.5px solid var(--kl-line); font-weight: 600; font-size: 15px; line-height: 1.3; }
.kl-pill--si { background: var(--kl-mist); color: var(--kl-enough); border-color: var(--kl-enough); }
/* La lista de estados (pedido de Samuel, 5 oct 2026): cada situacion con su color, renglones alternos y la fila
   del estado elegido en el mapa resaltada. Nada en ambar: ambar es solo para lo que lleva a Amazon. */
.kl-tabla--estados tbody tr:nth-child(even) { background: var(--kl-paper); }
.kl-tabla--estados tbody th { box-shadow: inset 4px 0 0 var(--kl-line); }
.kl-est__r { display: inline-block; padding: 3px 12px; border-radius: 999px; border: 1.5px solid var(--kl-line); background: var(--kl-surface); color: var(--kl-soft); font-weight: 600; font-size: 14px; line-height: 1.4; white-space: nowrap; }
.kl-est--legal_now th { box-shadow: inset 4px 0 0 var(--kl-enough); }
.kl-est--legal_now .kl-est__r { background: var(--kl-mist); border-color: var(--kl-enough); color: var(--kl-enough); }
.kl-est--passed_starts_soon th { box-shadow: inset 4px 0 0 var(--kl-lagoon); }
.kl-est--passed_starts_soon .kl-est__r { border-color: var(--kl-lagoon); color: var(--kl-lagoon); }
.kl-est--bills_in_progress th { box-shadow: inset 4px 0 0 var(--kl-soft); }
.kl-est--bills_in_progress .kl-est__r { border-style: dashed; border-color: var(--kl-soft); color: var(--kl-ink); }
.kl-est--unverified .kl-est__r, .kl-est--not_yet .kl-est__r { font-weight: 500; }
.kl-tabla--estados tbody tr[aria-current="true"] { background: var(--kl-mist); outline: 2px solid var(--kl-lagoon); outline-offset: -2px; }
.kl-tabla--estados tbody tr[aria-current="true"] th { box-shadow: inset 6px 0 0 var(--kl-lagoon); }
.kl-tabla--estados tbody tr { scroll-margin-top: 24px; }
@media (max-width: 759px) {
  .kl-tabla--estados tbody th { box-shadow: none; padding-left: 12px; border-left: 4px solid var(--kl-line); }
  .kl-est--legal_now th { border-left-color: var(--kl-enough); box-shadow: none; }
  .kl-est--passed_starts_soon th { border-left-color: var(--kl-lagoon); box-shadow: none; }
  .kl-est--bills_in_progress th { border-left-color: var(--kl-soft); box-shadow: none; }
  .kl-tabla--estados tbody tr[aria-current="true"] th { border-left-color: var(--kl-lagoon); box-shadow: none; }
  .kl-tabla--estados td { padding-left: 16px; }
  .kl-est__r { white-space: normal; }
}
@media (max-width: 899px) {
  .kl-solar__select { display: flex; }
  /* En telefono el mapa es solo vista general: se elige con el select. */
  .kl-tiles { pointer-events: none; }
}

/* ----------------------------------------------------------------- Guides */
.kl-guias { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.kl-guia { min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 14px; border-radius: 24px; background: var(--kl-surface); border: 1px solid var(--kl-line); text-decoration: none; color: var(--kl-ink); transition: transform var(--kl-slow) var(--kl-e), box-shadow var(--kl-slow); animation: kl-rise 400ms var(--kl-e) var(--d, 0ms) both; }
.kl-guia:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(16, 41, 43, 0.10); color: var(--kl-ink); }
.kl-guia__ic { height: 150px; border-radius: 16px; background: var(--kl-mist); display: grid; place-items: center; color: var(--kl-lagoon); }
.kl-guia__ic--sun { background: var(--kl-sun); }
.kl-guia__t { padding: 0 6px 6px; display: flex; flex-direction: column; gap: 6px; }
.kl-guia__n { font-family: var(--kl-display); font-weight: 700; font-size: 21px; line-height: 1.25; }
.kl-guia__s { font-size: 16px; line-height: 1.5; color: var(--kl-soft); }

/* ----------------------------------------------------------- ArticleLayout */
.kl-progreso { position: sticky; top: 0; z-index: 6; height: 3px; background: var(--kl-line); }
.kl-progreso span { display: block; height: 100%; width: 0; background: var(--kl-lagoon); }
/* Centrado (decision de Samuel, 5 oct 2026): el articulo y su indice van juntos en el centro, no pegados a la izquierda. */
.kl-main--art { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: clamp(32px, 5vw, 80px); padding-top: clamp(28px, 4vw, 64px); }
.kl-art { flex: 1 1 560px; min-width: 0; max-width: 720px; display: flex; flex-direction: column; gap: 24px; font-size: 18px; line-height: 1.7; }
.kl-art__h1 { font-family: var(--kl-display); font-weight: 800; font-size: clamp(34px, 4vw, 56px); line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
.kl-art__meta { line-height: 1.6; }
.kl-respuesta { padding: 22px 24px; border-radius: 20px; background: var(--kl-mist); display: flex; flex-direction: column; gap: 6px; scroll-margin-top: 24px; }
.kl-respuesta p { font-family: var(--kl-display); font-weight: 700; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.4; }
.kl-prosa--art > :first-child { margin-top: 0; }
.kl-pick { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; padding: 16px; border-radius: 24px; background: var(--kl-surface); border: 2px solid var(--kl-lagoon); }
.kl-pick__foto { width: 120px; flex: none; border-radius: 16px; --r: 100%; }
.kl-pick__t { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.kl-pick__n { font-family: var(--kl-display); font-weight: 700; font-size: 20px; line-height: 1.3; color: var(--kl-ink); text-decoration: none; }
.kl-pick__n:hover { text-decoration: underline; color: var(--kl-ink); }
.kl-pick .kl-amz-g { align-items: flex-start; }
.kl-toc { flex: 0 1 280px; position: sticky; top: 32px; display: flex; flex-direction: column; gap: 4px; padding-top: 72px; }
.kl-toc > span { margin-bottom: 8px; }
.kl-toc a { display: flex; align-items: center; min-height: 44px; padding-left: 14px; box-shadow: inset 2px 0 0 var(--kl-line); color: var(--kl-soft); text-decoration: none; font-size: 16px; line-height: 1.35; }
.kl-toc a:hover { color: var(--kl-ink); }
.kl-toc a[aria-current="true"] { box-shadow: inset 2px 0 0 var(--kl-lagoon); font-weight: 600; color: var(--kl-ink); }
.kl-toc .kl-toc__cta { min-height: 48px; margin-top: 20px; padding-left: 0; box-shadow: none; font-weight: 600; color: var(--kl-lagoon); }
@media (max-width: 899px) { .kl-toc { display: none; } }
.kl-mas { display: flex; flex-direction: column; gap: 20px; padding: 0 var(--kl-gutter) clamp(72px, 8.9vw, 128px); }
.kl-art--pagina { width: 100%; max-width: 760px; }
.kl-main--pagina { align-items: center; }

/* ------------------------------------------------------------ How we test */
.kl-main--test { gap: clamp(40px, 5vw, 80px); }
.kl-sello-cards { display: flex; flex-wrap: wrap; gap: 16px; }
.kl-sello-card { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: clamp(20px, 2.2vw, 32px); border-radius: 28px; background: var(--kl-surface); border: 1px solid var(--kl-line); }
.kl-sello-card h2 { font-family: var(--kl-display); font-weight: 700; font-size: 22px; line-height: 1.3; }
.kl-sello-card p { font-size: 17px; line-height: 1.6; color: var(--kl-soft); }
.kl-test-duo { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 64px); }
.kl-test-duo__a { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.kl-test-duo__b { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: clamp(20px, 2.2vw, 32px); border-radius: 28px; background: var(--kl-sun); }
.kl-test-duo__b h2 { font-family: var(--kl-display); font-weight: 800; font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -0.02em; }
.kl-test-duo__b ul { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 17px; line-height: 1.55; }
.kl-test-duo__b li { display: flex; gap: 10px; }
.kl-pasos { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.kl-pasos li { display: flex; gap: 16px; align-items: flex-start; }
.kl-pasos li > span:first-child { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 999px; background: var(--kl-btn); color: var(--kl-btnfg); font-size: 16px; }
.kl-pasos li > span:last-child { font-size: 17px; line-height: 1.6; padding-top: 6px; }

/* ----------------------------------------------------------------- errores */
.kl-main--error { min-height: 60vh; justify-content: center; }
.kl-error__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
