/* =============================================================
   Casa Clara — styles.css · diseño cercano y de confianza
   Estructura: tokens · base · utilidades · componentes · cabecera/pie
   · portada · tarjetas · ficha · comparador · calculadora · páginas
   · responsive · movimiento reducido
   ============================================================= */

/* Tokens --------------------------------------------------------- */
:root {
  --bg: #ffffff;
  --bg-alt: #f8f4ef;
  --surface: #ffffff;
  --ink: #16201e;
  --ink-2: #3e4a47;
  --muted: #6b7774;
  --line: #ebe4dc;
  --brand: #7a4a2b;
  --brand-2: #8d5733;
  --brand-soft: #f4ebe2;
  --buy: #ffd23f;
  --buy-hover: #f7c51d;
  --buy-ink: #1b1a14;
  --star: #f2a100;
  --good: #17803d;
  --good-bg: #eaf6ee;
  --bad: #b4442a;
  --bad-bg: #fcefeb;
  --offer: #d64521;
  --s0: #7a4a2b;
  --s1: #2f7a8a;
  --s2: #3b6fd8;
  --s3: #b48a0e;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(22, 32, 30, .05), 0 10px 30px -14px rgba(22, 32, 30, .18);
  --shadow-lg: 0 2px 6px rgba(22, 32, 30, .06), 0 24px 50px -22px rgba(22, 32, 30, .28);
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
  padding-bottom: var(--tray-h, 0px);
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
select, input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; font-weight: 700; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; }
ul, ol { padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--buy); color: var(--buy-ink); }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }

/* Utilidades ----------------------------------------------------- */
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-left: var(--gutter); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 820px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--brand); color: #fff; z-index: 9999; border-radius: 10px; }
.skip-link:focus { top: 1rem; }
.muted { color: var(--muted); }
.mt { margin-top: 2.5rem; margin-bottom: 1rem; }
html:not(.js) .needs-js { display: none !important; }
[hidden] { display: none !important; }
.ic { width: 18px; height: 18px; flex: none; }
.lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: var(--ink-2); max-width: 58ch; margin-top: .9rem; }
.nota { font-size: .85rem; color: var(--muted); margin-top: .8rem; }
.nota a, .prose a, .aviso-inline a, .footer-legal a, .destaca-nota a { text-decoration: underline; text-underline-offset: 2px; }
.prose > * + * { margin-top: 1rem; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul { list-style: disc; padding-left: 1.3rem; }
.prose ul li + li { margin-top: .4rem; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-2); margin-bottom: .6rem; }
.byline { font-size: .88rem; color: var(--muted); margin-top: .6rem; }
.byline a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }

/* Botones -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .7rem 1.3rem; border-radius: 999px; font-weight: 700; font-size: 1rem; line-height: 1.2;
  border: 2px solid transparent; transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, border-color .2s;
  text-align: center;
}
.btn .ic { width: 18px; height: 18px; }
.btn-sm { min-height: 40px; padding: .55rem 1rem; font-size: .93rem; }
.btn-sm .ic { width: 16px; height: 16px; }
.btn-lg { min-height: 54px; padding: .9rem 1.6rem; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-buy { background: var(--buy); color: var(--buy-ink); box-shadow: 0 2px 0 rgba(0, 0, 0, .08); }
.btn-buy:hover { background: var(--buy-hover); transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgba(160, 110, 0, .7); }
.btn-buy.is-disabled { background: var(--bg-alt); color: var(--muted); box-shadow: none; transform: none; cursor: default; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-outline { background: var(--surface); color: var(--brand); border-color: var(--brand); }
.btn-ghost[aria-pressed="true"], .btn-outline[aria-pressed="true"] { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.link-btn { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--brand); }
.link-btn .ic { width: 15px; height: 15px; }
.link-btn:hover span { text-decoration: underline; text-underline-offset: 3px; }
.link-btn[aria-pressed="true"] { color: var(--good); }
.link-btn-center { justify-self: center; min-height: 40px; }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--brand); }
.link-arrow .ic { width: 16px; height: 16px; }

/* Piezas pequeñas ------------------------------------------------ */
.chip { display: inline-block; font-size: .78rem; font-weight: 600; padding: .2rem .65rem; border-radius: 999px; background: var(--bg-alt); color: var(--ink-2); }
.chip-nota { display: inline-grid; place-items: center; min-width: 2.3rem; height: 1.6rem; padding: 0 .45rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: .85rem; font-weight: 700; vertical-align: middle; }
.badge-oferta { display: inline-block; background: var(--offer); color: #fff; font-size: .78rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; }
.precio { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .6rem; }
.precio-actual { font-size: 1.35rem; font-weight: 800; }
.precio-lg .precio-actual { font-size: 2rem; }
.precio-antes { color: var(--muted); }
.precio-nota { font-size: .8rem; color: var(--muted); }
.stars { position: relative; display: inline-block; color: #dcdfe0; letter-spacing: 1px; font-size: 1.05rem; line-height: 1; }
.stars::before { content: "★★★★★"; position: absolute; inset: 0; width: var(--pct); overflow: hidden; color: var(--star); }
.rating { display: inline-flex; align-items: center; gap: .5rem; font-size: .92rem; color: var(--ink-2); font-weight: 600; }
a.rating:hover span:last-child { text-decoration: underline; }
.vacio { padding: 2.5rem 1.5rem; text-align: center; color: var(--muted); background: var(--bg-alt); border-radius: var(--radius); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .3rem; font-size: .85rem; color: var(--muted); margin-bottom: 1.2rem; }
.breadcrumbs li + li::before { content: "›"; margin-right: .3rem; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.aviso-inline { margin: 2rem 0 0; font-size: .85rem; color: var(--muted); text-align: center; }
.aviso-ejemplo { padding: .9rem 1.1rem; margin-bottom: 1.2rem; background: #fff6d6; color: #5c4400; border-radius: var(--radius-sm); font-size: .92rem; }

/* Cabecera ------------------------------------------------------- */
.topbar { background: var(--brand); color: rgba(255, 255, 255, .92); font-size: .82rem; font-weight: 600; }
.topbar-inner { display: flex; justify-content: center; gap: 1.6rem; padding-block: .45rem; }
.topbar span { display: inline-flex; align-items: center; gap: .4rem; }
.topbar .ic { width: 15px; height: 15px; color: var(--buy); }
.topbar-extra { display: none !important; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.5) blur(12px); } }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; }
.logo-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--brand); color: var(--buy); }
.logo-mark .ic { width: 18px; height: 18px; }
.nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; }
.nav-toggle .ic { width: 22px; height: 22px; }
.nav-links { display: none; }
html:not(.js) .nav-links { display: flex; flex-wrap: wrap; gap: .25rem 1rem; padding-block: .5rem; }
.nav-links a { display: inline-flex; align-items: center; gap: .4rem; font-size: .97rem; font-weight: 600; color: var(--ink-2); padding: .45rem .15rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--brand); }
.nav-links a.nav-cta { color: var(--brand); padding: .45rem 1rem; border: 2px solid var(--brand); border-radius: 999px; }
.nav-links a.nav-cta:hover, .nav-links a.nav-cta[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
.nav-count { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; border-radius: 999px; background: var(--buy); color: var(--buy-ink); font-size: .75rem; font-weight: 800; }

/* Pie ------------------------------------------------------------ */
.site-footer { margin-top: clamp(3rem, 6vw, 5rem); background: var(--bg-alt); color: var(--ink-2); padding-top: 3rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 2rem; padding-bottom: 2rem; }
.logo-footer { margin-bottom: .7rem; color: var(--ink); }
.footer-claim { font-size: .95rem; max-width: 34ch; }
.footer-title { font-weight: 800; color: var(--ink); margin-bottom: .6rem; }
.site-footer nav li + li { margin-top: .4rem; }
.site-footer nav a { font-size: .95rem; }
.site-footer nav a:hover { color: var(--brand); text-decoration: underline; }
.footer-legal { padding-block: 1.4rem 2rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }

/* Secciones ------------------------------------------------------ */
.section { padding-block: clamp(2.6rem, 6vw, 4.5rem); }
.section-sm { padding-block: clamp(1.8rem, 4vw, 2.8rem); }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; margin-bottom: 1.5rem; }
.page-hero { padding-top: clamp(1.4rem, 4vw, 2.4rem); padding-bottom: .4rem; }

/* Portada -------------------------------------------------------- */
.hero { padding-block: clamp(2rem, 6vw, 4.5rem); background: linear-gradient(180deg, var(--brand-soft), var(--bg) 85%); }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.hero-ctas .btn { flex: 1 1 210px; }
@media (min-width: 540px) { .hero-ctas .btn { max-width: 280px; } }
.trust { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1.6rem; font-size: .92rem; font-weight: 600; color: var(--ink-2); }
.trust li { display: inline-flex; align-items: center; gap: .45rem; }
.trust .ic { color: var(--good); }
.hero-foto { position: relative; display: block; background: #fff; border-radius: 28px; box-shadow: var(--shadow-lg); padding: .6rem; }
.hero-foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.hero-foto-tag { position: absolute; top: 1rem; left: 1rem; background: var(--buy); color: var(--buy-ink); font-weight: 800; font-size: .85rem; padding: .3rem .8rem; border-radius: 999px; }
.usos { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 1.4rem; }
.uso { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.2rem; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); transition: border-color .2s, transform .25s var(--ease), box-shadow .2s; }
.uso:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.uso strong { display: block; font-size: 1.05rem; }
.uso span span { font-size: .9rem; color: var(--muted); }
.uso-ic { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); flex: none; }
.uso-ic .ic { width: 24px; height: 24px; }
.como { display: grid; gap: 1.2rem; }
.como-item { display: flex; gap: .9rem; align-items: flex-start; }
.como-item > .ic { width: 22px; height: 22px; color: var(--brand); margin-top: .2rem; }
.como-item p { color: var(--ink-2); font-size: .95rem; }
.como-item a { text-decoration: underline; }
.section-cta { padding-top: 0; }
.cta-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; padding: clamp(1.6rem, 4vw, 2.4rem); background: var(--brand); color: #fff; border-radius: 26px; }
.cta-box p { color: rgba(255, 255, 255, .85); margin-top: .3rem; }

/* Tarjetas ------------------------------------------------------- */
.grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; background: #fff; overflow: hidden; border-bottom: 1px solid var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: .6rem; transition: transform .5s var(--ease); }
.card:hover .card-media img { transform: scale(1.03); }
.card-badge { position: absolute; top: .8rem; left: .8rem; z-index: 1; background: var(--buy); color: var(--buy-ink); font-weight: 800; font-size: .8rem; padding: .28rem .75rem; border-radius: 999px; }
.card-body { display: flex; flex-direction: column; gap: .45rem; flex: 1; padding: 1.1rem 1.15rem 1.2rem; }
.card-brand { font-size: .82rem; color: var(--muted); font-weight: 600; }
.card-title { font-size: 1.2rem; }
.card-title a:hover { color: var(--brand); }
.card-ideal { font-size: .93rem; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-specs { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .2rem; }
.card-specs li { display: inline-flex; align-items: center; gap: .35rem; font-size: .86rem; padding: .3rem .65rem; background: var(--bg-alt); border-radius: 999px; color: var(--ink); white-space: nowrap; }
.card-specs .ic { width: 16px; height: 16px; color: var(--brand); }
.card-specs strong { color: var(--ink); }
.card-actions { margin-top: auto; padding-top: .7rem; display: grid; gap: .7rem; }
.card-links { display: flex; justify-content: space-between; align-items: center; font-size: .93rem; }
.card-links .link-btn { min-height: 40px; }
.card.is-filtered { display: none; }

/* Categorías, filtros, rankings, guías -------------------------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: .8rem 1.2rem; margin-bottom: 1.4rem; font-size: .9rem; font-weight: 600; }
.toolbar label { display: grid; gap: .3rem; flex: 1 1 220px; max-width: 320px; }
.toolbar select { width: 100%; }
.lead-link { margin-top: .8rem; }
.lead-link a { font-weight: 700; color: var(--brand); }
.lead-link a:hover { text-decoration: underline; }
.toolbar select, .picker select { padding: .6rem 2rem .6rem .85rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); min-width: 200px; }
.toolbar-count { margin-left: auto; color: var(--muted); }
.cat-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cat-card { position: relative; display: grid; gap: .3rem; padding: 1.2rem; border: 2px solid var(--line); border-radius: var(--radius); }
.cat-card:hover { border-color: var(--brand); }
.cat-name { font-family: var(--display); font-size: 1.3rem; font-weight: 700; }
.cat-count { font-size: .85rem; font-weight: 700; color: var(--brand); }
.cat-desc { font-size: .92rem; color: var(--ink-2); padding-right: 2rem; }
.cat-go { position: absolute; right: 1rem; bottom: 1rem; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: var(--buy); color: var(--buy-ink); }
.cat-go .ic { width: 18px; height: 18px; }
.ranking { display: grid; gap: .6rem; }
.rank-row { display: grid; grid-template-columns: 2rem 1fr; gap: .3rem .9rem; align-items: center; padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.rank-pos { grid-row: span 2; font-family: var(--display); font-size: 1.5rem; font-weight: 700; color: var(--brand); }
.rank-name { font-weight: 700; }
.rank-name:hover { text-decoration: underline; }
.rank-bar { grid-column: 2; display: block; height: 10px; background: var(--bg-alt); border-radius: 999px; overflow: hidden; }
.rank-bar span { display: block; height: 100%; background: var(--brand); border-radius: inherit; }
.rank-val { grid-column: 2; font-size: .88rem; color: var(--ink-2); }
.guia-lista { display: grid; gap: 1.1rem; margin: 1rem 0; }
.guia-item { display: grid; gap: 1rem; padding: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.guia-item-media { border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.guia-item-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.guia-pos { font-size: .8rem; font-weight: 800; color: var(--brand); text-transform: uppercase; letter-spacing: .04em; }
.guia-item h3 { font-size: 1.25rem; margin: .3rem 0 .4rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.guia-specs { font-size: .88rem; margin-top: .4rem; }
.guia-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .6rem; }
.faq { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary, details.mas > summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after, details.mas > summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); }
.faq[open] summary::after, details.mas[open] > summary::after { content: "−"; }
.faq summary::-webkit-details-marker, details.mas > summary::-webkit-details-marker { display: none; }
.faq p { margin-top: .5rem; color: var(--ink-2); }
.lista-simple { display: grid; gap: .4rem; }
.lista-simple a { text-decoration: underline; }
.buscar-grid { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.sel-link { padding: .9rem 1rem; border: 2px solid var(--line); border-radius: var(--radius-sm); font-weight: 700; }
.sel-link:hover { border-color: var(--brand); }
.calc-cta { position: relative; grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; padding: 1.2rem 4rem 1.2rem 1.2rem; background: var(--brand); color: #fff; border-radius: var(--radius); }
.calc-cta .muted { color: rgba(255, 255, 255, .8); }
.calc-cta-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--buy); color: var(--buy-ink); flex: none; }
.calc-cta .cat-go { top: 50%; transform: translateY(-50%); bottom: auto; }

/* Ficha ---------------------------------------------------------- */
.ficha { padding-top: clamp(1rem, 3vw, 1.8rem); }
.ficha-top { display: grid; gap: clamp(1.4rem, 4vw, 3rem); }
.ficha-top > *, .destaca > *, .pros-contras > * { min-width: 0; }
.galeria-main { position: relative; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.galeria-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: .55rem; margin-top: .7rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; }
.thumbs a { display: block; width: 64px; flex: none; border-radius: 10px; overflow: hidden; border: 2px solid var(--line); background: #fff; }
.thumbs a[aria-current="true"] { border-color: var(--brand); }
.foto-fuente { font-size: .78rem; color: var(--muted); margin-top: .4rem; }
.ficha-head { display: flex; flex-direction: column; gap: .7rem; }
.ficha-marca { font-size: .9rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.ideal { display: flex; gap: .55rem; align-items: flex-start; padding: .85rem 1rem; background: var(--good-bg); border-radius: var(--radius-sm); font-size: .98rem; }
.ideal .ic { color: var(--good); margin-top: .2rem; }
.claves { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.claves li { display: grid; grid-template-columns: auto 1fr; column-gap: .6rem; align-items: center; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.claves .ic { grid-row: span 2; width: 22px; height: 22px; color: var(--brand); }
.claves strong { font-size: 1.05rem; line-height: 1.2; }
.claves span { font-size: .82rem; color: var(--muted); }
.buy-box { display: grid; gap: .65rem; padding: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.garantia { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.2rem; font-size: .86rem; color: var(--ink-2); }
.garantia li { display: flex; gap: .45rem; align-items: center; }
.garantia .ic { width: 16px; height: 16px; color: var(--good); }
.bloque { margin-top: clamp(2rem, 5vw, 3.2rem); }
.bloque > h2 { margin-bottom: 1rem; }
.pros-contras { display: grid; gap: 1rem; }
.pc-col { padding: 1.3rem; border-radius: var(--radius); }
.pc-col h2 { font-size: 1.25rem; margin-bottom: .8rem; }
.pc-pros { background: var(--good-bg); }
.pc-contras { background: var(--bad-bg); }
.pc-col li { display: flex; gap: .6rem; align-items: flex-start; font-size: 1rem; }
.pc-col li + li { margin-top: .55rem; }
.pc-col li .ic { margin-top: .2rem; }
.pc-pros .ic { color: var(--good); }
.pc-contras .ic { color: var(--bad); }
.destaca { display: grid; gap: 1.1rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); }
.destaca-nota { font-size: .92rem; color: var(--muted); margin-top: .3rem; }
.destaca-nota strong { color: var(--brand); font-size: 1.1rem; }
.barras { display: grid; gap: .6rem; }
.barras li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-weight: 600; font-size: .95rem; max-width: 420px; }
.barra { display: inline-flex; gap: 5px; }
.barra i { width: 26px; height: 9px; border-radius: 999px; background: var(--line); }
.barra i.on { background: var(--brand); }
.resenas { display: grid; gap: .8rem; margin-top: 1rem; }
.resena { padding: 1rem 1.1rem; background: var(--bg-alt); border-radius: var(--radius-sm); }
.resena-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .3rem; }
.resena-autor { font-size: .84rem; color: var(--muted); margin-top: .4rem; }
.resenas-resumen { font-size: 1.02rem; color: var(--ink-2); }
details.mas { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.2rem; }
details.mas + details.mas { margin-top: .7rem; }
details.mas[open] > summary { margin-bottom: .9rem; }
.bloque details.mas { margin-top: .9rem; }
.specs th, .specs td { text-align: left; padding: .55rem .2rem; border-bottom: 1px solid var(--line); font-size: .95rem; vertical-align: top; }
.specs th[scope="row"] { font-weight: 500; color: var(--ink-2); width: 55%; }
.specs td { font-weight: 600; }
.specs td.nulo { color: var(--muted); font-weight: 400; }
.spec-group th { padding-top: 1.1rem; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); }
.buy-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: clamp(2rem, 5vw, 3rem); padding: 1.2rem 1.4rem; background: var(--brand); color: #fff; border-radius: var(--radius); }
.buy-strip > div { display: grid; }
@media (max-width: 539.98px) { .buy-strip .btn { width: 100%; } }
.buy-strip span { font-size: .88rem; color: rgba(255, 255, 255, .8); }
.vs-list { display: grid; gap: .5rem; }
.vs-list a { display: block; padding: .85rem 1rem; border: 2px solid var(--line); border-radius: var(--radius-sm); font-weight: 700; }
.vs-list a:hover { border-color: var(--brand); }
.vs-sep { font-weight: 500; color: var(--muted); padding: 0 .2em; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; display: flex; align-items: center; gap: .8rem; padding: .65rem max(16px, env(safe-area-inset-right, 0px)) calc(.65rem + env(safe-area-inset-bottom, 0px)) var(--gutter); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(22, 32, 30, .45); }
.sticky-buy-info { display: grid; min-width: 0; font-size: .86rem; line-height: 1.3; }
.sticky-buy-info strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy-info span { color: var(--muted); }
.sticky-buy .btn { margin-left: auto; flex: none; }
body.has-sticky .compare-tray { bottom: var(--sticky-h, 0px); }
body.has-sticky { padding-bottom: calc(var(--tray-h, 0px) + var(--sticky-h, 0px)); }

/* Bandeja del comparador ---------------------------------------- */
.compare-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(22, 32, 30, .4); padding-block: .7rem calc(.7rem + env(safe-area-inset-bottom, 0px)); }
.tray-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.tray-slots { display: flex; gap: .7rem; padding: 8px 8px 0 0; overflow: visible; min-width: 0; }
.slot-wrap { position: relative; }
.slot-thumb { width: 56px; height: 42px; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.slot-thumb img { width: 100%; height: 100%; object-fit: contain; }
.slot-remove { position: absolute; top: -8px; right: -8px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .9rem; line-height: 1; }
.slot-empty { width: 56px; height: 42px; border-radius: 10px; border: 2px dashed var(--line); }
.tray-actions { display: flex; gap: .5rem; flex: none; }

/* Comparador ----------------------------------------------------- */
.picker { padding: 1.1rem 1.2rem; background: var(--bg-alt); border-radius: var(--radius); }
.picker label { font-weight: 700; }
.picker-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .5rem; }
.picker select { flex: 1 1 240px; }
.picker-hint { font-size: .88rem; margin-top: .5rem; min-height: 1.3em; }
.cmp-empty { margin-top: 1.4rem; }
.cmp-radar { display: grid; gap: 1rem; align-items: center; margin-top: 1.6rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); }
.cmp-radar .radar { max-width: 360px; margin-inline: auto; }
.cmp-legend { display: grid; gap: .5rem; }
.cmp-legend li { display: flex; align-items: center; gap: .55rem; font-weight: 700; }
.cmp-legend .sw { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.cmp-legend .nota-l { margin-left: auto; }
.cmp-scroll { margin-top: 1.4rem; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.cmp-table { min-width: 620px; }
.cmp-table th, .cmp-table td { padding: .65rem .85rem; border-bottom: 1px solid var(--line); text-align: left; font-size: .93rem; vertical-align: top; }
.cmp-table thead th { vertical-align: bottom; background: var(--surface); }
.cmp-table tbody th { font-weight: 500; color: var(--ink-2); width: 190px; }
.cmp-table td { font-weight: 600; }
.cmp-table td.best { background: var(--good-bg); color: var(--good); }
.cmp-table .btn { white-space: nowrap; }
@media (max-width: 539.98px) { .cmp-table tbody th { width: 120px; } .cmp-table { min-width: 520px; } }
.cmp-table td.best::after { content: " ✓"; }
.cmp-table tr.spec-group th { font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); padding-top: 1rem; background: var(--bg-alt); }
.cmp-col-head { display: grid; gap: .45rem; min-width: 160px; }
.cmp-col-head img { width: 100%; max-width: 170px; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 10px; background: #fff; }
.cmp-col-head a.cmp-name { font-weight: 800; font-size: .98rem; line-height: 1.25; }
.cmp-swatch { display: inline-block; width: 100%; height: 4px; border-radius: 999px; }
.cmp-remove { font-size: .82rem; color: var(--muted); text-decoration: underline; justify-self: start; }
.cmp-table tfoot td { border-bottom: 0; padding-block: 1rem; }
.radar { width: 100%; max-width: 360px; height: auto; overflow: visible; }
.radar-grid { fill: none; stroke: var(--line); stroke-width: 1; }
.radar-axis { stroke: var(--line); stroke-width: 1; }
.radar-area { fill-opacity: .16; stroke-width: 2.2; stroke-linejoin: round; }
.radar-dot { stroke: #fff; stroke-width: 1.5; }
.radar-label { font-size: 11.5px; font-weight: 700; fill: var(--ink-2); font-family: var(--sans); }
.radar-val { fill: var(--brand); }
.s0 { fill: var(--s0); stroke: var(--s0); }
.s1 { fill: var(--s1); stroke: var(--s1); }
.s2 { fill: var(--s2); stroke: var(--s2); }
.s3 { fill: var(--s3); stroke: var(--s3); }
.vs-radar { margin-top: 0; }
.vs-table { table-layout: fixed; }
.vs-table thead th:first-child, .vs-table tbody th { width: 30%; }
.vs-head { display: grid; gap: .5rem; font-weight: 800; }
.vs-head img { width: 100%; max-width: 220px; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; border-radius: 10px; border: 1px solid var(--line); }
.vs-picks { display: grid; gap: 1rem; margin: 2rem 0 1rem; }
.vs-pick { display: flex; flex-direction: column; gap: .6rem; padding: 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); }
.vs-pick .btn { align-self: flex-start; }
.sel-table th a { text-decoration: underline; text-underline-offset: 2px; font-weight: 700; }
.js [data-cmp-out] { min-height: 100vh; }

/* Calculadora ---------------------------------------------------- */
.calc { padding: 1.2rem; background: var(--bg-alt); border-radius: var(--radius); }
.calc-grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.calc label { display: grid; gap: .35rem; font-size: .95rem; font-weight: 700; }
.calc input[type=number], .calc select { padding: .65rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.calc .calc-check { display: flex; align-items: center; gap: .5rem; align-self: end; padding-bottom: .65rem; }
.calc-check input { width: 20px; height: 20px; accent-color: var(--brand); }
.calc-out { margin-top: 1.2rem; }
.calc-res { padding: 1.2rem 1.3rem; background: var(--brand); color: #fff; border-radius: var(--radius); }
.calc-res strong { color: var(--buy); }
.calc-big { font-family: var(--display); font-size: 2rem; font-weight: 700; color: var(--buy); }
.calc-big small { font-family: var(--sans); font-size: .95rem; color: rgba(255, 255, 255, .85); font-weight: 600; }
.calc-list { display: grid; gap: .6rem; }
.calc-row { display: grid; grid-template-columns: 96px 1fr; gap: .8rem; align-items: center; padding: .75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.calc-row img { border-radius: 8px; background: #fff; }
.calc-row .btn { grid-column: 1 / -1; justify-self: stretch; }
.calc-name { font-weight: 800; }
.calc-row p { font-size: .9rem; color: var(--ink-2); }
.calc-ok { color: var(--good); font-weight: 700; }
.calc-justo { color: #a8840d; font-weight: 700; }
.calc-no { color: var(--bad); font-weight: 700; }

/* Responsive ----------------------------------------------------- */
@media (max-width: 959.98px) {
  .js .nav-links { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: .5rem var(--gutter) 1rem; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .js .nav-links.is-open { display: flex; }
  .js .nav-links a { padding: .75rem 0; width: 100%; }
  .js .nav-links a.nav-cta { width: auto; margin-top: .5rem; }
  .site-header .nav { position: relative; }
  .tray-actions .btn-ghost { display: none; }
}
@media (max-width: 539.98px) {
  .tray-slots { gap: .5rem; }
  .slot-empty { display: none; }
  .slot-thumb { width: 46px; height: 35px; }
  .tray-inner { gap: .6rem; }
}
@media (min-width: 540px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .claves { grid-template-columns: repeat(4, 1fr); }
  .claves li { grid-template-columns: 1fr; text-align: center; justify-items: center; row-gap: .2rem; }
  .claves .ic { grid-row: auto; }
  .guia-item { grid-template-columns: 200px 1fr; align-items: start; }
  .topbar-extra { display: inline-flex !important; }
}
@media (min-width: 720px) {
  .pros-contras { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .cmp-radar { grid-template-columns: 1.2fr 1fr; }
  .como { grid-template-columns: repeat(3, 1fr); }
  .destaca { grid-template-columns: 1fr 1.4fr; align-items: center; }
  .vs-picks { grid-template-columns: 1fr 1fr; }
  .vs-list { grid-template-columns: 1fr 1fr; }
  .calc-row { grid-template-columns: 96px 1fr auto; }
  .calc-row .btn { grid-column: auto; }
}
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav-links, html.js .nav-links { display: flex; align-items: center; gap: 1.4rem; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: 1.1fr 1fr; }
  .ficha-top { grid-template-columns: 1.15fr 1fr; align-items: start; }
  .galeria { position: sticky; top: 90px; }
  .sticky-buy { display: none !important; }
}

/* Movimiento reducido ------------------------------------------- */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .card-media img, .btn, .uso { transition: none; }
  @view-transition { navigation: none; }
}

/* Accesorios ----------------------------------------------------- */
.acc-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.acc { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.acc-media { position: relative; display: grid; place-items: center; height: 150px; background: var(--brand-soft); color: var(--brand); }
.acc-media .ilustra { width: 96px; height: 96px; }
.acc-body { display: flex; flex-direction: column; gap: .5rem; flex: 1; padding: 1.1rem 1.15rem 1.2rem; }
.acc-body .btn { margin-top: auto; }
.acc-resumen { font-size: .95rem; color: var(--ink-2); }
.acc-puntos { display: grid; gap: .35rem; margin: .2rem 0 .5rem; font-size: .92rem; }
.acc-puntos li { display: flex; gap: .45rem; align-items: flex-start; }
.acc-puntos .ic { width: 16px; height: 16px; color: var(--good); margin-top: .2rem; }
.acc-lead { margin: -.4rem 0 1.2rem; font-size: 1.02rem; }
.acc-compacta { flex-direction: row; }
.acc-compacta .acc-media { height: auto; width: 30%; min-width: 96px; }
.acc-compacta .acc-media .ilustra { width: 72px; height: 72px; }
.acc-compacta .card-badge { display: none; }
.acc-compacta .acc-resumen { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .9rem; }

/* Sin foto oficial: ilustración propia ----------------------------- */
.sin-foto { display: grid; place-items: center; align-content: center; gap: .4rem; width: 100%; height: 100%; min-height: 140px; background: var(--brand-soft); color: var(--brand); text-align: center; }
.sin-foto .ilustra { width: 38%; height: auto; max-width: 140px; }
.sin-foto small { font-size: .78rem; color: var(--muted); }
.guia-item-media .sin-foto { aspect-ratio: 4 / 3; }
.sin-foto-sm { min-height: 0; aspect-ratio: 4 / 3; max-width: 220px; border-radius: 10px; }
.sin-foto-sm .ilustra { width: 64px; }

/* Cuatro tarjetas: 2 + 2 o 4 en fila, nunca una huérfana */
@media (min-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1120px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
