﻿/* =============================================================
   irrigadordentalmax.es · styles.css
   1. Tokens · 2. Reset · 3. Utilidades · 4. Tipografía · 5. Componentes
   6. Cabecera/pie · 7. Secciones · 8. Ficha · 9. Comparador
   10. Efectos · 11. Responsive · 12. Reduced motion
   ============================================================= */

/* 1. Tokens ---------------------------------------------------- */
:root {
  --ink: #0b2a3a;
  --ink-2: #143a4d;
  --text: #1c2b33;
  --muted: #5d6d77;
  --bg: #f5f8fa;
  --surface: #ffffff;
  --surface-2: #eef4f6;
  --line: #dfe7eb;
  --line-2: #cbd7dd;
  --accent: #0c9fae;
  --accent-2: #0b8290;
  --accent-ink: #063a41;
  --accent-soft: #e1f4f6;
  --mint: #8ae4d8;
  --coral: #ff6a45;
  --coral-soft: #ffe9e3;
  --amazon: #ffb31f;
  --amazon-2: #f2a40a;
  --star: #f5b82e;
  --star-off: #dde3e7;
  --ok: #1f9d6b;
  --ok-soft: #e4f6ee;
  --warn: #d98a12;
  --warn-soft: #fff3df;
  --bad: #d64545;
  --bad-soft: #fde8e8;
  --c1: #0c9fae;
  --c2: #ff6a45;
  --c3: #7c5cff;
  --c4: #f5b82e;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(11, 42, 58, .06), 0 10px 30px -12px rgba(11, 42, 58, .18);
  --shadow-lg: 0 2px 4px rgba(11, 42, 58, .06), 0 24px 50px -20px rgba(11, 42, 58, .32);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 72px;
  --gutter: clamp(1rem, 4vw, 2rem);
}

/* 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); overflow-x: clip; }
body {
  font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-2); }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.1; letter-spacing: -.02em; font-family: var(--display); font-weight: 600; color: var(--ink); }
ul, ol { padding-left: 0; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
input, select { font: inherit; color: inherit; }
summary { cursor: pointer; }
[hidden] { display: none !important; }

/* 3. Utilidades ------------------------------------------------ */
.container { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.container.narrow { width: min(800px, 100% - 2 * var(--gutter)); }
.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(--ink); color: #fff; z-index: 9999; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.small { font-size: .85rem; }
.muted { color: var(--muted); }
.ico { display: inline-flex; width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico.sm { width: 1em; height: 1em; }
.notice { padding: 1rem 1.25rem; background: var(--warn-soft); border-radius: var(--radius-sm); margin: 1rem 0; }

/* 4. Tipografía ------------------------------------------------ */
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); margin: 2.5rem 0 1rem; }
h3 { font-size: 1.2rem; margin: 1.75rem 0 .75rem; font-family: var(--sans); font-weight: 700; letter-spacing: -.01em; }
.lead { font-size: 1.125rem; color: var(--ink-2); line-height: 1.65; }
.kicker { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); margin-bottom: .6rem; }
.page-head { max-width: 860px; margin-bottom: 2rem; }
.page-head .lead { margin-top: .9rem; }
.prose p { margin: 0 0 1.1rem; }
.prose h2 { margin-top: 2.25rem; }
.prose ul, .prose ol { margin: 0 0 1.2rem 1.4rem; }
.prose li { margin: .35rem 0; }
.prose a { color: var(--accent-2); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose .lead { font-size: 1.15rem; }

/* 5. Componentes ----------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.15rem; border-radius: 999px;
  font-weight: 700; font-size: .95rem; line-height: 1; border: 1.5px solid transparent; transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary, .btn-primary:hover { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); box-shadow: var(--shadow); }
.btn-secondary, .btn-secondary:hover { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-ghost, .btn-ghost:hover { background: transparent; color: var(--ink-2); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-amazon, .btn-amazon:hover { background: var(--amazon); color: #1a1a1a; }
.btn-amazon:hover { background: var(--amazon-2); box-shadow: 0 10px 24px -10px rgba(242, 164, 10, .7); }
.btn-lg { padding: .95rem 1.5rem; font-size: 1.02rem; }
.btn-sm { padding: .5rem .9rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-icon { padding: .65rem; border-color: var(--line-2); background: var(--surface); color: var(--ink-2); }
.btn-icon > span:not(.ico) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.btn-icon .ico { width: 1.2em; height: 1.2em; }
.js-compare.is-active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }

.chip, .chips a { display: inline-flex; align-items: center; padding: .5rem 1rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .92rem; transition: border-color .2s, transform .25s var(--ease-out); }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chips a:hover { border-color: var(--accent); transform: translateY(-1px); color: var(--ink); }

.stars { display: inline-flex; gap: 1px; }
.rating { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 600; }
.rating-val { color: var(--ink); }
.rating-count { color: var(--muted); font-weight: 500; }
.score-badge { display: inline-flex; align-items: baseline; gap: 1px; padding: .3rem .6rem; border-radius: 9px; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.05rem; line-height: 1; }
.score-badge small { font-size: .65rem; opacity: .7; font-weight: 600; }

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .45rem .6rem; }
.price-now { font-family: var(--display); font-size: 1.55rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: .95rem; }
.price-off { font-size: .78rem; font-weight: 800; color: #fff; background: var(--coral); padding: .15rem .45rem; border-radius: 6px; }
.price-note { flex-basis: 100%; font-size: .78rem; color: var(--muted); }
.price-none .price-now { font-size: 1.1rem; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; position: relative; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.grid.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; }
.product-card { display: flex; flex-direction: column; }
.card-media { display: block; aspect-ratio: 1; background: #fff; padding: 1.25rem; }
.card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease-out); }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; gap: .6rem; padding: 1.1rem 1.25rem 1.25rem; border-top: 1px solid var(--line); flex: 1; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.card-brand { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card-title { font-size: 1.3rem; margin: 0; }
.card-title a:hover { color: var(--accent-2); }
.card-desc { font-size: .93rem; color: var(--ink-2); }
.card-why { font-size: .9rem; padding: .6rem .8rem; background: var(--accent-soft); border-radius: var(--radius-sm); color: var(--accent-ink); }
.card-chips { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; }
.card-chips li { font-size: .78rem; font-weight: 700; padding: .3rem .6rem; border-radius: 7px; background: var(--surface-2); color: var(--ink-2); }
.card-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .4rem; }
.card-meta .price-now { font-size: 1.3rem; }
.card-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; align-items: stretch; }
.card-actions .btn { min-width: 0; padding-inline: .8rem; font-size: .9rem; }
.card-actions .btn-amazon { grid-column: 1; grid-row: 1; }
.card-actions .btn-icon { grid-column: 2; grid-row: 1; position: relative; width: 44px; }
.card-actions .btn-secondary { grid-column: 1 / -1; grid-row: 2; }
.card-rank { position: absolute; top: 12px; left: 12px; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center; background: var(--ink); color: #fff; border-radius: 10px; font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.card-off { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--coral); color: #fff; font-weight: 800; font-size: .8rem; padding: .3rem .55rem; border-radius: 8px; }
.empty { text-align: center; padding: 3rem 1.5rem; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); display: grid; gap: .9rem; justify-items: center; color: var(--muted); }
.empty .ico { width: 2.2rem; height: 2.2rem; color: var(--accent); }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 1.75rem; }
.section-head.compact { margin-bottom: 1rem; }
.section-title { margin: 0; }
.section-sub { color: var(--muted); margin-top: .5rem; max-width: 60ch; }
.section-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--accent-2); white-space: nowrap; padding-bottom: .3rem; }
.section-link:hover .ico { transform: translateX(3px); }
.section-link .ico { transition: transform .25s var(--ease-out); }

.disclosure { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.2rem; margin-top: 2.5rem; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); font-size: .88rem; color: var(--ink-2); }
.disclosure .ico { width: 1.4rem; height: 1.4rem; color: var(--accent); margin-top: .1rem; }
.disclosure a { color: var(--accent-2); text-decoration: underline; }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .6rem; }
.faq summary { padding: 1rem 3rem 1rem 1.2rem; font-weight: 700; list-style: none; position: relative; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.1rem; top: .8rem; font-size: 1.4rem; color: var(--accent); transition: transform .25s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 1.2rem 1.1rem; color: var(--ink-2); }

.crumbs { width: min(1200px, 100% - 2 * var(--gutter)); margin: 1rem auto 0; font-size: .85rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--line-2); }
.crumbs a:hover { color: var(--accent-2); }

.filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 0 0 1.5rem; padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.filters label { display: inline-flex; align-items: center; gap: .5rem; font-size: .88rem; font-weight: 600; color: var(--muted); }
.filters select, .filter-search input { padding: .55rem .8rem; border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface); color: var(--ink); font-weight: 600; }
.filter-search { flex: 1 1 220px; position: relative; }
.filter-search .ico { position: absolute; left: .8rem; color: var(--muted); }
.filter-search input { width: 100%; padding-left: 2.2rem; }
.filter-count { margin-left: auto; font-size: .85rem; color: var(--muted); }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.tile { display: grid; gap: .3rem; padding: 1.4rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .2s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); color: var(--ink); }
.tile-ico { width: 2rem; height: 2rem; color: var(--accent); margin-bottom: .4rem; display: inline-flex; }
.tile-ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile strong { font-size: 1.1rem; color: var(--ink); }
.tile span { font-size: .85rem; color: var(--muted); }

.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.trust-item { padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.trust-item .ico { width: 2rem; height: 2rem; color: var(--accent); margin-bottom: .6rem; }
.trust-item h3 { margin: .25rem 0 .4rem; }
.trust-item p { font-size: .95rem; color: var(--ink-2); }

.guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.guide-card { display: grid; gap: .5rem; align-content: start; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); color: var(--text); }
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.guide-card .ico { width: 1.8rem; height: 1.8rem; color: var(--accent); }
.guide-card h3 { margin: .2rem 0; font-family: var(--display); font-weight: 600; font-size: 1.25rem; }
.guide-card p { font-size: .93rem; color: var(--ink-2); }
.guide-card .link { display: inline-flex; align-items: center; gap: .3rem; color: var(--accent-2); font-weight: 700; font-size: .9rem; margin-top: .3rem; }
.guide-cta { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; padding: 1.2rem 1.4rem; background: var(--accent-soft); border-radius: var(--radius); }
.guide-cta .ico { width: 1.8rem; height: 1.8rem; color: var(--accent-2); }
.guide-cta strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-2); }
.guide-cta a { font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.more-guides { margin-top: 2rem; padding: 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.more-guides h3 { margin: 0 0 .6rem; }
.more-guides ul { list-style: none; display: grid; gap: .4rem; }
.more-guides a { color: var(--accent-2); font-weight: 600; }
.guide-body .grid.products { margin: 1.5rem 0 2rem; }
.guide-body h2 { margin-top: 2.5rem; }

.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.brand-card { display: grid; gap: .2rem; padding: 1.4rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s var(--ease-out), border-color .2s; }
.brand-card:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--text); }
.brand-card strong { font-family: var(--display); font-size: 1.35rem; color: var(--ink); }
.brand-card span { font-size: .85rem; color: var(--muted); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.specs th, .specs td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .95rem; }
.specs th[scope="row"] { width: 40%; font-weight: 600; color: var(--ink-2); background: var(--bg); }
.specs tr.group th { background: var(--ink); color: #fff; font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: .01em; }
.specs tbody:last-child tr:last-child th, .specs tbody:last-child tr:last-child td { border-bottom: 0; }
.fuentes { margin-top: .9rem; font-size: .88rem; }
.fuentes summary { color: var(--accent-2); font-weight: 700; }
.fuentes ul { margin: .5rem 0 0 1.2rem; }
.fuentes a { color: var(--ink-2); text-decoration: underline; }

/* Radar */
.radar { width: 100%; height: auto; max-width: 480px; margin-inline: auto; }
.radar-ring { fill: none; stroke: var(--line-2); stroke-width: 1; }
.radar-ring:last-of-type { stroke: var(--line-2); }
.radar-axis { stroke: var(--line-2); stroke-width: 1; }
.radar-label { font-family: var(--sans); font-size: 11px; font-weight: 700; fill: var(--ink-2); letter-spacing: .02em; }
.radar-poly { fill: var(--col); fill-opacity: .18; stroke: var(--col); stroke-width: 2.5; stroke-linejoin: round; transition: fill-opacity .25s; }
.radar-poly:hover { fill-opacity: .35; }
.radar-dot { fill: var(--col); }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; justify-content: center; margin-top: .75rem; font-size: .88rem; font-weight: 700; }
.legend li { display: inline-flex; align-items: center; gap: .45rem; }
.legend li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--col); }
.scores { list-style: none; display: grid; gap: .6rem; }
.scores li { display: grid; grid-template-columns: 130px 1fr 28px; align-items: center; gap: .8rem; font-size: .92rem; font-weight: 600; color: var(--ink-2); }
.scores .bar { height: 9px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.scores .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--mint)); border-radius: 999px; transition: width .8s var(--ease-out); }
.scores b { text-align: right; color: var(--ink); font-family: var(--display); font-size: 1.05rem; }
.ajustes { margin-top: 1rem; font-size: .85rem; color: var(--ink-2); }
.ajustes summary { font-weight: 700; color: var(--accent-2); }
.ajustes ul { margin: .5rem 0 0 1.1rem; }

/* Pros / contras / casos / reseñas */
.pc { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.pc-col { padding: 1.3rem 1.4rem; border-radius: var(--radius); }
.pc-pros { background: var(--ok-soft); }
.pc-cons { background: var(--bad-soft); }
.pc-col h3 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .8rem; font-size: 1.05rem; }
.pc-col h3 .ico { width: 1.3em; height: 1.3em; }
.pc-pros h3 { color: var(--ok); }
.pc-cons h3 { color: var(--bad); }
.pc-col ul { list-style: none; display: grid; gap: .5rem; }
.pc-col li { display: flex; gap: .6rem; font-size: .95rem; color: var(--ink); }
.pc-col li .ico { width: 1.1rem; height: 1.1rem; margin-top: .2rem; flex: none; }
.pc-pros li .ico { color: var(--ok); }
.pc-cons li .ico { color: var(--bad); }
.ideal { display: flex; gap: 1rem; align-items: flex-start; padding: 1.3rem 1.4rem; background: var(--accent-soft); border-radius: var(--radius); margin: 1.5rem 0; }
.ideal .ico { width: 1.8rem; height: 1.8rem; color: var(--accent-2); flex: none; margin-top: .1rem; }
.ideal strong { display: block; color: var(--accent-ink); margin-bottom: .2rem; }
.ideal p { color: var(--ink); }
.casos { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; margin: 1rem 0 1.5rem; }
.caso { padding: 1.1rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); border-top: 4px solid var(--line-2); }
.caso-ideal { border-top-color: var(--ok); }
.caso-apto { border-top-color: var(--accent); }
.caso-con-reservas { border-top-color: var(--warn); }
.caso-no-recomendado { border-top-color: var(--bad); }
.caso-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.caso-head strong { color: var(--ink); }
.veredicto { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: .25rem .55rem; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); }
.caso-ideal .veredicto { background: var(--ok-soft); color: var(--ok); }
.caso-apto .veredicto { background: var(--accent-soft); color: var(--accent-ink); }
.caso-con-reservas .veredicto { background: var(--warn-soft); color: var(--warn); }
.caso-no-recomendado .veredicto { background: var(--bad-soft); color: var(--bad); }
.caso p { font-size: .92rem; color: var(--ink-2); }
.reviews { list-style: none; display: grid; gap: .9rem; margin: 1rem 0 .6rem; }
.review { padding: 1.2rem 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.review-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .5rem; color: var(--ink); }
.review p { font-size: .95rem; color: var(--ink-2); }
.review-meta { margin-top: .6rem; font-size: .82rem; color: var(--muted); }
.verified { color: var(--ok); font-weight: 700; margin-left: .3rem; }
.cta-inline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.2rem 1.4rem; margin: 2rem 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.cta-inline strong { display: block; font-family: var(--display); font-size: 1.2rem; color: var(--ink); }
.cta-inline .price-now { font-size: 1.2rem; }

/* 6. Cabecera y pie -------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
@supports (backdrop-filter: blur(12px)) { .site-header { background: rgba(255, 255, 255, .78); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); } }
.site-header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(11, 42, 58, .3); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--display); font-weight: 600; font-size: 1.35rem; color: var(--ink); letter-spacing: -.02em; }
.logo:hover { color: var(--ink); }
.logo-mark { display: inline-flex; width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--mint)); color: #fff; }
.logo-mark svg { width: 100%; height: 100%; fill: currentColor; stroke: none; }
.logo-text b { color: var(--accent-2); font-weight: 600; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span:not(.sr-only) { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-list { display: flex; align-items: center; gap: .25rem; list-style: none; }
.nav-list > li { position: relative; }
.nav-list > li > a { display: inline-flex; align-items: center; gap: .35rem; padding: .6rem .85rem; border-radius: 10px; font-weight: 700; font-size: .95rem; color: var(--ink-2); }
.nav-list > li > a:hover { background: var(--surface-2); color: var(--ink); }
.has-sub > a::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: .15rem; opacity: .6; }
.sub { position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px; padding: .5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); list-style: none; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .25s var(--ease-out), visibility .2s; z-index: 5; }
.sub-wide { min-width: 300px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: flex; align-items: center; gap: .5rem; padding: .55rem .75rem; border-radius: 8px; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.sub a:hover { background: var(--surface-2); color: var(--ink); }
.sub a .ico { color: var(--accent); }
.nav-cta-wrap { margin-left: .5rem; }
.nav-list a.nav-cta, .nav-list a.nav-cta:hover { background: var(--ink); color: #fff; padding: .6rem 1rem; position: relative; }
.nav-list a.nav-cta:hover { background: var(--ink-2); }
.nav-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--amazon); color: #1a1a1a; font-size: .72rem; font-weight: 800; }

.site-footer { margin-top: 4rem; padding: 3.5rem 0 2rem; background: var(--ink); color: rgba(255, 255, 255, .8); }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .8rem; }
.site-footer ul { list-style: none; display: grid; gap: .4rem; font-size: .9rem; }
.site-footer a:hover { color: var(--mint); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2rem; }
.footer-brand .logo { color: #fff; margin-bottom: .8rem; }
.footer-brand .logo-text b { color: var(--mint); }
.footer-brand p { font-size: .92rem; margin-bottom: .7rem; }
.footer-brand .small { font-size: .8rem; color: rgba(255, 255, 255, .6); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; color: rgba(255, 255, 255, .55); }

/* Barra flotante del comparador */
.compare-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -12px 40px -20px rgba(11, 42, 58, .4); transform: translateY(110%); transition: transform .4s var(--ease-out); }
.compare-bar.is-visible { transform: none; }
.compare-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.compare-slots { display: flex; gap: .6rem; padding: 6px 6px 0 0; }
.slot { position: relative; width: 54px; height: 54px; }
.slot .thumb-box { width: 100%; height: 100%; border-radius: 10px; border: 1px solid var(--line); background: #fff; overflow: hidden; padding: 4px; }
.slot img { width: 100%; height: 100%; object-fit: contain; }
.slot-remove { position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .8rem; line-height: 1; display: grid; place-items: center; }
.slot-empty { border: 1.5px dashed var(--line-2); border-radius: 10px; }
.compare-bar-actions { display: flex; gap: .5rem; align-items: center; }
body.has-compare-bar { padding-bottom: 80px; }

/* 7. Secciones ------------------------------------------------- */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section + .section { padding-top: 0; }
.section-alt { background: var(--surface-2); padding-top: clamp(2.5rem, 6vw, 4.5rem) !important; }
.section-alt + .section { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.section-dark { background: var(--ink); color: rgba(255, 255, 255, .85); padding-top: clamp(2.5rem, 6vw, 4.5rem) !important; }
.section-dark h2 { color: #fff; }
.section-dark .kicker { color: var(--mint); }
.section-dark + .section { padding-top: clamp(2.5rem, 6vw, 4.5rem); }

.hero { position: relative; padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 4rem); overflow: clip; background: radial-gradient(60% 80% at 100% 0%, var(--accent-soft), transparent 70%), radial-gradient(40% 50% at 0% 100%, #e8f8f5, transparent 70%); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 600; margin: .5rem 0 1.2rem; max-width: 16ch; }
.hero h1 em { font-style: italic; color: var(--accent-2); }
.hero .lead { max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-actions.center { justify-content: center; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2rem; list-style: none; margin-top: 2.25rem; }
.hero-stats strong { display: block; font-family: var(--display); font-size: 2rem; color: var(--ink); line-height: 1; }
.hero-stats span { font-size: .85rem; color: var(--muted); }
.hero-visual { position: relative; display: grid; justify-items: center; }
.hero-card { display: grid; width: min(100%, 380px); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden; transition: transform .4s var(--ease-out); color: var(--text); }
.hero-card:hover { transform: translateY(-4px); color: var(--text); }
.hero-card img { aspect-ratio: 1; object-fit: contain; padding: 1.5rem; background: #fff; }
.hero-card-tag { position: absolute; top: 14px; left: 14px; z-index: 2; background: var(--ink); color: #fff; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; padding: .4rem .7rem; border-radius: 8px; }
.hero-card-body { padding: 1rem 1.25rem 1.25rem; border-top: 1px solid var(--line); display: grid; gap: .25rem; }
.hero-card-body strong { font-family: var(--display); font-size: 1.35rem; color: var(--ink); }
.hero-card-meta { display: flex; align-items: center; gap: .7rem; margin-top: .3rem; }
.hero-radar { position: absolute; right: -10px; bottom: -20px; width: 230px; padding: .5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); display: grid; justify-items: center; }
.hero-radar .radar { max-width: 215px; }
.hero-radar .radar-label { font-size: 12px; }
.hero-radar-label { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding-bottom: .3rem; }

.compare-teaser-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.compare-teaser h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: .3rem 0 1rem; }
.compare-teaser p { margin-bottom: 1.5rem; max-width: 52ch; }
.compare-teaser-visual { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 24px; padding: 1.5rem; }
.compare-teaser-visual .radar-label { fill: rgba(255, 255, 255, .8); }
.compare-teaser-visual .radar-ring, .compare-teaser-visual .radar-axis { stroke: rgba(255, 255, 255, .18); }
.compare-teaser-visual .legend { color: #fff; }

/* 8. Ficha ----------------------------------------------------- */
.ficha-top { padding: 1.5rem 0 0; }
.ficha-top-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.5rem; align-items: start; }
.gallery { display: grid; gap: .75rem; }
.gallery-main { position: relative; aspect-ratio: 1; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; transition: opacity .25s; }
.gallery-thumbs { display: flex; gap: .5rem; overflow-x: auto; overflow-y: visible; padding: 4px 2px 8px; scrollbar-width: thin; }
.thumb { flex: 0 0 72px; width: 72px; height: 72px; padding: 5px; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .2s, transform .25s var(--ease-out); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb:hover { transform: translateY(-2px); }
.thumb.is-active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ficha-panel { display: grid; gap: .9rem; align-content: start; }
.ficha-panel h1 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); margin: 0; }
.ficha-panel .card-brand a:hover { color: var(--accent-2); }
.ficha-tagline { font-size: 1.1rem; color: var(--ink-2); font-family: var(--display); font-style: italic; }
.ficha-rating { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.2rem; }
.ficha-rating a { color: var(--accent-2); display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; }
.key-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.key-chips li { display: inline-flex; align-items: center; gap: .35rem; padding: .5rem .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: .88rem; color: var(--ink-2); }
.key-chips li b { color: var(--ink); font-weight: 800; }
.key-chips .ico { color: var(--accent); }
.ficha-buy { display: grid; gap: .75rem; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.ficha-buy .price-now { font-size: 2rem; }
.ficha-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 3rem; align-items: start; }
.ficha-main h2 { margin-top: 2.75rem; }
.ficha-main h2:first-child { margin-top: 0; }
.ficha-side .sticky { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 1rem; }
.toc { padding: 1.2rem 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: .92rem; }
.toc strong { display: block; margin-bottom: .5rem; color: var(--ink); }
.toc ol { list-style: none; display: grid; gap: .3rem; }
.toc a { color: var(--ink-2); font-weight: 600; }
.toc a:hover, .toc a.is-active { color: var(--accent-2); }
.side-cta { display: grid; gap: .6rem; justify-items: start; padding: 1.2rem 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.side-cta img { width: 100px; height: 100px; object-fit: contain; justify-self: center; }
.side-cta strong { font-family: var(--display); font-size: 1.15rem; color: var(--ink); }
.side-cta .price-now { font-size: 1.25rem; }
.radar-panel { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.5rem; align-items: center; padding: 1.5rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1rem; }
.radar-side .radar { max-width: none; }
.ficha-main > .lead { margin-bottom: 1.2rem; }
.radar-scores h2 { margin: 0 0 1rem; display: flex; align-items: center; gap: .6rem; font-size: 1.5rem; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem var(--gutter); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -12px 40px -20px rgba(11, 42, 58, .4); transform: translateY(110%); transition: transform .35s var(--ease-out); }
.sticky-buy.is-visible { transform: none; }
body.has-compare-bar .sticky-buy { display: none; }
.sticky-buy strong { display: block; font-size: .9rem; color: var(--ink); }
.sticky-buy .price-now { font-size: 1.05rem; }
.sticky-buy .price-old { font-size: .8rem; }

/* 9. Comparador ------------------------------------------------ */
.picker { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; margin-bottom: 2rem; }
.picker-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.picker-head .filter-search { flex: 1 1 240px; }
.picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .6rem; max-height: 340px; overflow-y: auto; padding: 4px; }
.pick { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .2s, background .2s; }
.pick:hover { border-color: var(--line-2); background: var(--bg); }
.pick.is-checked { border-color: var(--accent); background: var(--accent-soft); }
.pick.is-disabled { opacity: .45; cursor: not-allowed; }
.pick input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.pick img { width: 48px; height: 48px; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid var(--line); flex: none; }
.pick span { display: grid; line-height: 1.25; min-width: 0; }
.pick strong { font-size: .95rem; color: var(--ink); }
.pick small { font-size: .78rem; color: var(--muted); }
.pick[hidden] { display: none; }
.compare-empty { display: grid; justify-items: center; gap: .75rem; padding: 3rem 1rem; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.compare-empty .ico { width: 2.4rem; height: 2.4rem; color: var(--accent); }
.compare-cards { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.ccard { display: grid; gap: .5rem; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--col); border-radius: var(--radius); text-align: center; justify-items: center; position: relative; }
.ccard img { width: 110px; height: 110px; object-fit: contain; }
.ccard strong { font-family: var(--display); font-size: 1.1rem; color: var(--ink); }
.ccard .score-badge { font-size: .95rem; }
.ccard .btn { width: 100%; }
.ccard-remove { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); color: var(--ink); display: grid; place-items: center; font-size: 1rem; }
.ccard-remove:hover { background: var(--bad-soft); color: var(--bad); }
.compare-radar-wrap { padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1.5rem; }
.compare-radar-wrap .radar { max-width: 420px; }
.compare-table th:first-child { position: sticky; left: 0; z-index: 1; min-width: 160px; }
.compare-table td { min-width: 150px; text-align: center; }
.compare-table td.best { background: var(--accent-soft); font-weight: 800; color: var(--accent-ink); }
.compare-table td .score-mini { display: inline-block; min-width: 2.2rem; padding: .2rem .5rem; border-radius: 7px; background: var(--surface-2); font-weight: 800; }
.compare-table tr.group th { text-align: left; }
.compare-table thead th { background: var(--bg); text-align: center; font-weight: 800; color: var(--ink); }
.compare-table thead th:first-child { text-align: left; }

/* 10. Efectos -------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease-out), transform .7s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
@view-transition { navigation: auto; }

/* 11. Responsive ----------------------------------------------- */
@media (max-width: 1279px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; }
}
@media (max-width: 959px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { justify-items: start; padding-bottom: 1.5rem; }
  .hero-radar { right: 0; }
  .compare-teaser-inner { grid-template-columns: 1fr; gap: 2rem; }
  .ficha-top-inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .ficha-body { grid-template-columns: 1fr; gap: 2rem; }
  .ficha-side { display: none; }
  .radar-panel { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .nav-toggle { display: inline-flex; }
  .site-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--surface); overflow-y: auto; padding: 1rem var(--gutter) 6rem; transform: translateX(100%); transition: transform .35s var(--ease-out); z-index: 99; }
  .site-nav.is-open { transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li > a { padding: .9rem .5rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .has-sub > a::after { display: none; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: .3rem 0 .6rem .8rem; display: grid; grid-template-columns: 1fr 1fr; gap: .1rem; min-width: 0; }
  .nav-cta-wrap { margin: 1rem 0 0; }
  .nav-list a.nav-cta { width: 100%; justify-content: center; padding: .9rem; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 719px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .hero-stats { gap: 1.25rem; }
  .hero-radar { width: 180px; bottom: -10px; }
  .hero-radar .radar { max-width: 165px; }
  .scores li { grid-template-columns: 105px 1fr 26px; font-size: .85rem; }
  .specs th[scope="row"] { width: 45%; }
  .cta-inline { flex-direction: column; align-items: stretch; text-align: center; }
  .compare-bar-inner { flex-direction: column; align-items: stretch; gap: .6rem; }
  .compare-bar-actions { justify-content: space-between; }
  body.has-compare-bar { padding-bottom: 130px; }
  .compare-cards { grid-template-columns: repeat(var(--n, 2), minmax(140px, 1fr)); overflow-x: auto; }
  .ccard { padding: .8rem .6rem; }
  .ccard img { width: 70px; height: 70px; }
  .ccard .btn { font-size: .8rem; padding: .55rem .5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .card-actions .btn-secondary { display: none; }
}
@media (max-width: 539px) {
  .hero h1 { font-size: 2.25rem; }
  .hero-visual { display: none; }
  .filters label:not(.filter-search) { flex: 1 1 45%; }
  .filters select { flex: 1; min-width: 0; }
  .filter-count { flex-basis: 100%; margin: 0; }
}
@media (min-width: 960px) {
  .sticky-buy { display: none; }
}

/* 12. Reduced motion (solo lo intrusivo) ------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
