/* TechWise CR · azul marino de tienda grande + botón ámbar para ir a Amazon (01/10, elegido por Roger). Sin fuentes externas. */
:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --ink: #111827;
  --muted: #4b5563;
  --line: #d9dee5;
  --brand: #1d4ed8;
  --brand-ink: #ffffff;
  --brand-soft: #e6edfb;
  --accent: #b45309;
  --cta: #f59e0b;
  --cta-ink: #111827;
  --cta-hover: #e08e00;
  --good: #1d6b3a;
  --good-bg: #e3f2e8;
  --bad: #8a3b12;
  --bad-bg: #fbeadf;
  --warn: #6f4a00;
  --warn-bg: #fff3d6;
  --top: #0f1b2d;
  --top-ink: #ffffff;
  --top-2: #1b2a41;
  --top-muted: #c3cbd8;
  --top-line: #33445e;
  --tile: #eef1f5;
  --ilus: #1b2a41;
  --ilus-fondo: #ffffff;
  --ilus-acento: #f59e0b;
  --tax-low: #1d6b3a;
  --tax-high: #8a3b12;
  --radius: 12px;
  --shadow: 0 1px 2px rgb(15 27 45 / 6%), 0 8px 24px rgb(15 27 45 / 6%);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --top: #0b1220; --top-ink: #e5e9f0; --top-2: #141f33; --top-muted: #a7b1c2; --top-line: #2b3a52; --tile: #172033; --ilus: #93b4f5; --ilus-fondo: #121a2a; --ilus-acento: #f5b13d; --tax-low: #7fd49a; --tax-high: #f2a47c;
    --bg: #0b111c; --surface: #121a2a; --surface-2: #18233a; --ink: #e5e9f0; --muted: #9aa6b8; --line: #26324a;
    --brand: #7ea6f7; --brand-ink: #0b1220; --brand-soft: #17284a; --accent: #f5b13d; --cta: #f59e0b; --cta-ink: #111827; --cta-hover: #fbbf24;
    --good: #7fd49a; --good-bg: #16301f; --bad: #f2a47c; --bad-bg: #36200f; --warn: #f0c566; --warn-bg: #2d2410;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 24px rgb(0 0 0 / 30%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --top: #0b1220; --top-ink: #e5e9f0; --top-2: #141f33; --top-muted: #a7b1c2; --top-line: #2b3a52; --tile: #172033; --ilus: #93b4f5; --ilus-fondo: #121a2a; --ilus-acento: #f5b13d; --tax-low: #7fd49a; --tax-high: #f2a47c;
  --bg: #0b111c; --surface: #121a2a; --surface-2: #18233a; --ink: #e5e9f0; --muted: #9aa6b8; --line: #26324a;
  --brand: #7ea6f7; --brand-ink: #0b1220; --brand-soft: #17284a; --accent: #f5b13d; --cta: #f59e0b; --cta-ink: #111827; --cta-hover: #fbbf24;
  --good: #7fd49a; --good-bg: #16301f; --bad: #f2a47c; --bad-bg: #36200f; --warn: #f0c566; --warn-bg: #2d2410;
  --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 24px rgb(0 0 0 / 30%);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font); }
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Texto */
main { padding: 24px 16px 56px; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem); line-height: 1.15; letter-spacing: -0.02em; margin: 8px 0 12px; text-wrap: balance; }
h2 { font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.65rem); line-height: 1.25; margin: 40px 0 12px; letter-spacing: -0.01em; text-wrap: balance; }
h3 { font-size: 1.15rem; margin: 24px 0 8px; }
.prose > p, .prose > ul, .prose > ol, .prose > h2, .prose > h3, .prose > .note, .prose > .disclosure-top, .prose > .byline, .prose > .crumbs, .prose > h1 { max-width: 72ch; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 64ch; }
.byline, .crumbs { color: var(--muted); font-size: 0.92rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }
.disclosure-top { background: var(--surface-2); border-radius: 10px; padding: 10px 14px; font-size: 0.92rem; }
.note { background: var(--brand-soft); border-left: 4px solid var(--brand); border-radius: 8px; padding: 12px 16px; }
.note.warn { background: var(--warn-bg); border-color: var(--warn); }
.src { color: var(--muted); font-size: 0.9rem; }
small { color: var(--muted); }
code { font-family: var(--mono); font-size: 0.9em; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }

/* Tablas */
.tablewrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
caption { text-align: left; padding: 12px 14px 4px; color: var(--muted); font-size: 0.88rem; }
th, td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { font-size: 0.85rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 16px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font-weight: 600; text-decoration: none; border: 1px solid var(--brand); cursor: pointer; font-size: 0.97rem; font-family: inherit; }
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-inline { min-height: 0; padding: 4px 10px; font-size: 0.92rem; }
.ext { font-size: 0.85em; }

/* Calculadora */
.hero { display: grid; gap: 8px; margin-bottom: 20px; }
.hero .kicker { color: var(--accent); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; margin: 0; }
.calc { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .calc { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); } .receipt { position: sticky; top: 16px; } }
.calc-form, .receipt { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field > label, legend, details summary { display: block; font-weight: 650; margin-bottom: 6px; }
details summary { cursor: pointer; color: var(--brand); }
details[open] summary { margin-bottom: 10px; }
input:not([type=radio]):not([type=checkbox]), select {
  width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; font-variant-numeric: tabular-nums;
}
input:focus, select:focus { border-color: var(--brand); outline: 2px solid var(--brand-soft); }
.help { margin: 6px 0 0; color: var(--muted); font-size: 0.88rem; line-height: 1.45; }
.row { display: flex; gap: 10px; }
.row input { flex: 1; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; flex: none; }
.seg label { display: grid; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: grid; place-items: center; min-width: 52px; min-height: 46px; cursor: pointer; color: var(--muted); font-weight: 600; }
.seg input:checked + span { background: var(--brand); color: var(--brand-ink); }
.seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: -3px; }
.cas-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cas { position: relative; }
.cas input { position: absolute; opacity: 0; }
.cas span { display: flex; align-items: center; min-height: 48px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 0.93rem; line-height: 1.3; }
.cas input:checked + span { border-color: var(--brand); background: var(--brand-soft); font-weight: 650; box-shadow: inset 0 0 0 1px var(--brand); }
.cas input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.grid4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid4 label { font-size: 0.88rem; color: var(--muted); display: grid; gap: 4px; }
@media (min-width: 520px) { .grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.check { display: flex; gap: 10px; align-items: center; margin: 0 0 18px; min-height: 44px; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); }

.receipt { border-top: 6px solid var(--brand); }
.receipt-title { margin: 0 0 12px; font-size: 1.1rem; color: var(--muted); font-weight: 650; }
.receipt .empty { color: var(--muted); margin: 0; }
.total { display: grid; gap: 2px; padding: 4px 0 16px; border-bottom: 2px dashed var(--line); margin-bottom: 12px; }
.total span { font-size: 0.9rem; color: var(--muted); }
.total strong { font-size: clamp(2rem, 1.5rem + 2.5vw, 2.7rem); line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.total em { font-style: normal; color: var(--accent); font-weight: 600; font-size: 0.95rem; }
.lines { font-size: 0.94rem; margin: 6px 0 10px; }
.lines caption { padding: 8px 0 4px; font-weight: 650; color: var(--ink); font-size: 0.9rem; }
.lines caption small { display: block; font-weight: 400; }
.lines th, .lines td { padding: 7px 0; border-bottom: 1px dotted var(--line); font-weight: 400; }
.lines th small { display: block; font-size: 0.8rem; }
.lines td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-family: var(--mono); font-size: 0.9rem; padding-left: 12px; }
.lines .sum th, .lines .sum td { font-weight: 700; border-bottom: 0; }
.nodata { color: var(--warn); font-family: var(--font); font-style: italic; }
.warn { background: var(--warn-bg); color: var(--ink); border-radius: 10px; padding: 10px 14px 10px 30px; font-size: 0.9rem; margin: 10px 0; }
.verdict-box { border-radius: 10px; padding: 10px 14px; margin: 0 0 12px; }
.verdict-box.good { background: var(--good-bg); }
.verdict-box.bad { background: var(--bad-bg); }
.fine { font-size: 0.85rem; color: var(--muted); }
/* Reparto del total y comparación de casilleros */
.split { margin: 4px 0 12px; }
.split-title { margin: 0 0 6px; font-weight: 650; font-size: 0.9rem; }
.split-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.split-legend { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 2px; font-size: 0.88rem; }
.split-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: 0; }
.s-producto { background: var(--brand); }
.s-casillero { background: var(--muted); }
.s-impuestos { background: var(--accent); }
.compare .current th, .compare .current td { font-weight: 700; }
/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 650; padding: 10px 0; min-height: 44px; }
.faq details > div { padding: 0 0 8px; }

/* Tarjetas de producto */
.picks { display: grid; gap: 16px; margin: 20px 0; }
@media (min-width: 900px) { .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pick { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; }
.pick header h3 { margin: 6px 0 10px; }
.badge { display: inline-block; background: var(--brand-soft); color: var(--brand); font-size: 0.8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.specs { margin: 0 0 12px; display: grid; gap: 6px; }
.specs div { display: grid; grid-template-columns: 11ch 1fr; gap: 10px; font-size: 0.93rem; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
.verdict { font-size: 0.95rem; }
.verdict p { margin: 0 0 8px; }
.buy { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 8px; padding-top: 8px; }
.listing { font-size: 0.8rem; color: var(--muted); margin: 0; overflow-wrap: anywhere; }

/* Tarjetas de guía y casilleros */
.cards { display: grid; gap: 14px; margin: 16px 0; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--ink); display: block; }
.card:hover { border-color: var(--brand); }
.card h3 { margin: 0 0 6px; color: var(--brand); }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.casbox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 18px 8px; margin: 14px 0; max-width: 80ch; }
.casbox ul { padding-left: 18px; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; margin: 0 0 14px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; }

/* Pie */
.site-foot { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 0.9rem; padding: 24px 0 32px; }
.site-foot .assoc { color: var(--ink); font-weight: 600; }
.site-foot .links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-foot a { color: var(--muted); }
.small { font-size: 0.85rem; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ═══════════════ Tienda (rediseño 01/10/2026) ═══════════════
   Estética: funcionalista (Dieter Rams): fondo gris claro, un verde de marca, el rosa orquídea solo en detalles.
   Producto primero: la cabecera es buscador + categorías; la calculadora es un servicio al lado. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hide-sm { display: none; }
@media (min-width: 720px) { .hide-sm { display: inline; } }

/* Cabecera */
.site-head { background: var(--top); color: var(--top-ink); }
.topbar { padding: 8px 0; }
.top-row { display: grid; grid-template-columns: auto 1fr auto auto; grid-template-areas: "brand . calc theme" "search search search search"; gap: 8px 10px; align-items: center; }
@media (min-width: 760px) { .top-row { grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "brand search calc theme"; gap: 16px; } }
.brand { grid-area: brand; display: inline-flex; align-items: center; gap: 9px; color: var(--top-ink); text-decoration: none; font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; min-height: 44px; }
.brand svg { color: var(--top-ink); }
.brand b { color: var(--top-muted); font-weight: 800; }
.search { grid-area: search; display: flex; min-width: 0; }
.search input { flex: 1; min-width: 0; min-height: 44px; border: 0; border-radius: 10px 0 0 10px; padding: 0 14px; font: inherit; font-size: 1rem; background: var(--surface); color: var(--ink); }
.search input:focus { outline: 3px solid var(--top-muted); outline-offset: 0; }
.search button { min-width: 52px; min-height: 44px; border: 0; border-radius: 0 10px 10px 0; background: var(--top-muted); color: var(--top); cursor: pointer; display: grid; place-items: center; }
.top-calc { grid-area: calc; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--top-ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; border: 1px solid var(--top-line); white-space: nowrap; }
.top-calc:hover, .top-calc[aria-current] { background: var(--top-2); }
.theme { grid-area: theme; background: none; border: 1px solid var(--top-line); color: var(--top-ink); width: 44px; height: 44px; border-radius: 10px; cursor: pointer; display: grid; place-items: center; }
.catbar { background: var(--top-2); }
.catbar-row { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.catbar-row::-webkit-scrollbar { display: none; }
.catbar a { white-space: nowrap; color: var(--top-ink); text-decoration: none; padding: 0 12px; min-height: 44px; display: inline-flex; align-items: center; font-size: 0.93rem; border-bottom: 3px solid transparent; }
.catbar a:hover { background: var(--top); }
.catbar a[aria-current="page"] { border-bottom-color: var(--top-muted); font-weight: 650; }
@media (max-width: 899px) { .catbar-row { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); padding-right: 28px; } }
.site-head :focus-visible { outline-color: var(--top-muted); }

main.store, main.wide { padding-top: 16px; }
.disclosure-top { font-size: 0.85rem; padding: 8px 12px; color: var(--muted); }

/* Botones de la tienda */
.btn-amz { background: var(--cta); border-color: var(--cta); color: var(--cta-ink); }
.btn-amz:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
.btn-sm { min-height: 40px; padding: 6px 12px; font-size: 0.9rem; }
.btn-lg { min-height: 50px; padding: 12px 18px; font-size: 1rem; }
.calc-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--brand); font-weight: 600; font-size: 0.92rem; }
.tax { display: inline-block; margin: 0; padding: 3px 9px; border-radius: 6px; font-size: 0.82rem; font-weight: 650; }
.tax-low { color: var(--tax-low); background: var(--good-bg); }
.tax-high { color: var(--tax-high); background: var(--bad-bg); }

/* Portada */
.home-top { display: grid; gap: 16px; margin: 4px 0 28px; }
@media (min-width: 900px) { .home-top { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 28px; } }
.home-intro h1 { font-size: clamp(1.6rem, 1.15rem + 2vw, 2.35rem); margin: 6px 0 10px; max-width: 24ch; }
.home-intro p { color: var(--muted); max-width: 60ch; margin: 0 0 12px; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-facts li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 0.88rem; }
.hero-facts li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); margin-right: 8px; vertical-align: 1px; }
.calc-card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 16px 18px; }
.calc-card h2 { margin: 0 0 4px; font-size: 1.2rem; }
.calc-card > p { margin: 0 0 12px; color: var(--muted); font-size: 0.92rem; }
.mini-calc { display: grid; gap: 6px; }
.mini-calc label { font-weight: 600; font-size: 0.9rem; }
.mini-calc .btn { margin-top: 8px; justify-content: center; }
.cats h2, .shelf h2, .why h2 { margin: 0; }
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0 32px; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cat-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.cat-tile { display: grid; gap: 2px; justify-items: center; text-align: center; padding: 12px 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.cat-tile:hover { border-color: var(--brand); }
.cat-ilus { width: 100%; max-width: 110px; aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--tile); border-radius: 10px; color: var(--ilus); }
.cat-ilus svg { width: 78%; height: auto; }
.cat-name { font-weight: 650; font-size: 0.95rem; margin-top: 6px; }
.cat-count { color: var(--muted); font-size: 0.82rem; }
.shelf { margin: 0 0 32px; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.shelf-head a { font-weight: 600; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.criterio { color: var(--muted); font-size: 0.88rem; margin: 2px 0 12px; max-width: 90ch; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 72%); gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 640px) { .rail { grid-auto-columns: minmax(220px, 40%); } }
@media (min-width: 1000px) { .rail { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; } }
.why { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 8px; }
.why-grid { display: grid; gap: 12px 24px; margin-top: 10px; }
@media (min-width: 900px) { .why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.why-grid p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.why-grid strong { color: var(--ink); }
.why-links, .links-row { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.why-links a, .links-row a { min-height: 44px; display: inline-flex; align-items: center; }

/* Tarjeta de producto */
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.pcard:hover { border-color: var(--brand); }
.pcard[hidden] { display: none; }
.pcard-media { display: grid; place-items: center; background: var(--tile); aspect-ratio: 4 / 3; color: var(--ilus); }
.ilus, .ilus-lg { width: 62%; height: auto; }
.ilus-img, .ilus-lg-img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.pcard-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard-brand { margin: 0; font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.pcard-name { margin: 0; font-size: 1rem; line-height: 1.3; font-weight: 650; }
.pcard-name a { color: var(--ink); text-decoration: none; }
.pcard-name a:hover { text-decoration: underline; }
.pcard-specs { margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.4; }
.pcard .tax { align-self: flex-start; }
.pcard-actions { margin-top: auto; padding-top: 6px; display: grid; gap: 2px; }
.pcard-actions .btn { justify-content: center; font-size: 0.92rem; }
.pcard-actions .calc-link { justify-content: center; text-align: center; }
.cmp { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; justify-content: center; font-size: 0.9rem; cursor: pointer; border-top: 1px solid var(--line); margin-top: 4px; }
.cmp input { width: 18px; height: 18px; accent-color: var(--brand); }

/* Categoría */
.cat-layout { display: grid; gap: 16px; margin-top: 12px; }
@media (min-width: 900px) { .cat-layout { grid-template-columns: 240px minmax(0, 1fr); align-items: start; } }
.filters { display: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.js .filters { display: block; }
.filters summary { min-height: 48px; display: flex; align-items: center; padding: 0 14px; font-weight: 650; color: var(--ink); margin: 0; }
@media (min-width: 900px) { .filters { position: sticky; top: 12px; } }
.filters-form { padding: 0 14px 14px; display: grid; gap: 14px; }
.filters fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.filters legend { font-weight: 650; font-size: 0.9rem; margin-bottom: 4px; }
.chk { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 0.93rem; cursor: pointer; }
.chk input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.cat-count-line { margin: 0 0 10px; color: var(--muted); font-size: 0.92rem; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1200px) { main.wide > .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 480px) { .grid .pcard-body { padding: 10px; } .grid .pcard-actions .btn { font-size: 0.85rem; padding: 8px 6px; } .grid .calc-link { font-size: 0.85rem; } .grid .pcard-name { font-size: 0.95rem; } }
.empty-state { background: var(--surface); border: 1px dashed var(--line); border-radius: 12px; padding: 16px; color: var(--muted); }
.cmp-bar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 12px 12px 0 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); box-shadow: var(--shadow); margin-top: 16px; }
.cmp-bar[hidden] { display: none; }
.cmp-bar p { margin: 0 auto 0 0; }
.cmp-bar .btn[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; }
.cat-table { margin-top: 32px; }
.cmp-table { font-size: 0.9rem; }
.cmp-table th[scope="row"] { font-weight: 600; min-width: 180px; }
.cmp-table td { min-width: 110px; }
.cmp-table tr.current { background: var(--brand-soft); }
.cmp-cols thead th { vertical-align: bottom; min-width: 160px; }
.cmp-cols thead th a { font-weight: 650; }
.cmp-cols thead th small { display: block; }
.cmp-cols td .btn { margin-bottom: 4px; }
.chips { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-size: 0.92rem; }
.chip:hover { border-color: var(--brand); }
.chip[aria-current] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.search-page { display: flex; gap: 8px; max-width: 640px; }
.search-page input { flex: 1; min-width: 0; }

/* Ficha de producto */
.pdp { display: grid; gap: 20px; margin: 8px 0 24px; }
@media (min-width: 900px) { .pdp { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px; align-items: start; } }
.pdp-media { background: var(--tile); border-radius: var(--radius); display: grid; place-items: center; aspect-ratio: 4 / 3; color: var(--ilus); position: relative; }
.pdp-media .ilus-lg { width: 58%; }
.media-note { position: absolute; left: 12px; right: 12px; bottom: 8px; margin: 0; font-size: 0.8rem; color: var(--muted); text-align: center; }
.pdp-brand { margin: 0; font-size: 0.9rem; color: var(--muted); }
.pdp-brand a { display: inline-flex; align-items: center; min-height: 44px; }
.pdp-info h1 { font-size: clamp(1.45rem, 1.1rem + 1.6vw, 2.1rem); margin: 0 0 10px; }
.pdp-para { margin: 0 0 12px; }
.pdp-key { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pdp-key li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
.pdp-key span { display: block; font-weight: 400; font-size: 0.8rem; color: var(--muted); }
.pdp-usos { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.pdp-usos a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); text-decoration: none; font-size: 0.88rem; font-weight: 600; }
.buybox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 8px; }
.buybox .tax { justify-self: start; }
.buybox-fine { margin: 0; color: var(--muted); font-size: 0.86rem; }
.buybox-actions { display: grid; gap: 8px; margin: 4px 0; }
@media (min-width: 520px) { .buybox-actions { grid-template-columns: 1fr 1fr; } }
.buybox-actions .btn { justify-content: center; text-align: center; }
.small-note { color: var(--muted); font-size: 0.88rem; margin: -4px 0 12px; }
.pros-cons { display: grid; gap: 12px; }
@media (min-width: 720px) { .pros-cons { grid-template-columns: 1fr 1fr; } }
.pros-cons > div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px 8px; }
.pros-cons h3 { font-size: 1rem; margin: 12px 0 6px; }
.pros h3 { color: var(--tax-low); }
.cons h3 { color: var(--tax-high); }
.pros-cons ul { padding-left: 18px; margin: 0 0 8px; }
.spec-table th { width: 40%; color: var(--muted); font-weight: 500; }
.sources ul { padding-left: 18px; color: var(--muted); font-size: 0.92rem; }
.sources li { margin-bottom: 6px; overflow-wrap: anywhere; }
.pick header h3 a { color: inherit; }

/* Calculadora: producto elegido */
.calc-producto { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 12px; padding: 10px 14px; margin: 0 0 16px; }
.calc-producto[hidden] { display: none; }
.calc-producto p { margin: 4px 0; }
.calc-producto-k { font-size: 0.8rem; color: var(--muted); font-weight: 600; margin-right: 6px; }
.calc-producto-paso { color: var(--muted); font-size: 0.92rem; }
.calc-producto-paso .btn { margin: 4px 6px; vertical-align: middle; }

/* Pie */
.foot-cats { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.site-foot .links a { min-height: 44px; display: inline-flex; align-items: center; }
/* Zonas tocables de 44 px en el teléfono (medidas a 390) */
@media (max-width: 899px) {
  .crumbs a, .cmp-table th a, .pick header h3 a { display: inline-flex; align-items: center; min-height: 44px; }
  .pcard-name a { display: block; min-height: 44px; }
  .skip { min-height: 44px; }
  .btn-sm { min-height: 44px; }
}
/* Portada más corta: el producto antes */
.calc-card-link { display: none; }
@media (max-width: 899px) {
  .calc-card { padding: 12px 14px; }
  .calc-card > p { margin-bottom: 8px; }
  .mini-calc { display: none; }
  .calc-card-link { display: flex; justify-content: center; }
  .hero-facts li:nth-child(n+2) { display: none; }
  .home-top { margin-bottom: 20px; }
  .cat-grid { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 104px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 24px; }
}
.cat-tile { padding: 10px 6px; }
.cat-ilus { max-width: 84px; }
@media (min-width: 900px) { .home-intro h1 { font-size: clamp(1.6rem, 1rem + 1.6vw, 2.1rem); max-width: 30ch; } .home-top { margin-bottom: 20px; } .cat-grid { margin-bottom: 24px; } }
.crumbs { align-items: center; }
@media (max-width: 899px) {
  .home-intro p, .hero-facts { display: none; }
  .home-intro h1 { font-size: 1.45rem; margin: 0; }
  .calc-card > p { display: none; }
  .calc-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .calc-card h2 { font-size: 1.05rem; }
  .calc-card-link { flex: none; }
  main.store { padding-top: 10px; }
  main.store .disclosure-top { margin: 0 0 10px; }
}
@media (max-width: 899px) { .cat-grid { grid-auto-columns: 92px; } .cat-ilus { max-width: 64px; } .cat-name { font-size: 0.88rem; margin-top: 4px; } }
