@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/sourceserif4.woff2) format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/manrope.woff2) format("woff2");
}

/* ============ 1. Tokens ============ */
:root {
  --ink: #0c1b33;
  --ink-2: #1d2f4f;
  --text: #1b2740;
  --muted: #5a6780;
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #e9edf5;
  --line: #dde3ee;
  --line-2: #c8d1e0;
  --accent: #1d3f9e;
  --accent-2: #14307a;
  --on-accent: #ffffff;
  --accent-soft: #e4ebfb;
  --accent-line: #bccaf2;
  --accent-grad: #c8f53c;
  --lime: #c8f53c;
  --on-lime: #0c1b33;
  --amazon: #ffb31f;
  --amazon-2: #f2a40a;
  --star: #f5b82e;
  --star-off: #d9deea;
  --ok: #1f9d6b;
  --ok-soft: #e5f6ee;
  --ok-text: #14724e;
  --bad: #d64545;
  --bad-soft: #fde9e9;
  --bad-text: #b53030;
  --warn-soft: #fff4e0;
  --deep: #0c1b33;
  --header-bg: rgba(255, 255, 255, .9);
  --row-alt: #f8f9fd;
  --c1: #1d3f9e;
  --c2: #6fb300;
  --c3: #e0a100;
  --c4: #c2255c;
  --display: "Source Serif 4", 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(12, 27, 51, .06), 0 10px 30px -12px rgba(12, 27, 51, .2);
  --shadow-lg: 0 2px 4px rgba(12, 27, 51, .06), 0 24px 50px -20px rgba(12, 27, 51, .34);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 68px;
  --gutter: clamp(1rem, 4vw, 2rem);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eaf0fb; --ink-2: #c3cfe6; --text: #cfd8ea; --muted: #8fa0bd;
    --bg: #0a1220; --surface: #111b2e; --surface-2: #172338; --line: #22314a; --line-2: #2e4060;
    --accent: #7da2ff; --accent-2: #a9c0ff; --on-accent: #08122b; --accent-soft: #14244a; --accent-line: #243e7a;
    --star-off: #2d3b55; --ok-soft: #0f2c21; --ok-text: #6fd2a5; --bad-soft: #351a1c; --bad-text: #f19191;
    --warn-soft: #2f2410; --deep: #060b16; --header-bg: rgba(10, 18, 32, .9); --row-alt: #0f192b;
    --c1: #7da2ff; --c2: #a5e02f; --c4: #ff6b9a;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -12px rgba(0,0,0,.6);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 24px 50px -20px rgba(0,0,0,.75);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #eaf0fb; --ink-2: #c3cfe6; --text: #cfd8ea; --muted: #8fa0bd;
  --bg: #0a1220; --surface: #111b2e; --surface-2: #172338; --line: #22314a; --line-2: #2e4060;
  --accent: #7da2ff; --accent-2: #a9c0ff; --on-accent: #08122b; --accent-soft: #14244a; --accent-line: #243e7a;
  --star-off: #2d3b55; --ok-soft: #0f2c21; --ok-text: #6fd2a5; --bad-soft: #351a1c; --bad-text: #f19191;
  --warn-soft: #2f2410; --deep: #060b16; --header-bg: rgba(10, 18, 32, .9); --row-alt: #0f192b;
  --c1: #7da2ff; --c2: #a5e02f; --c4: #ff6b9a;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 24px 50px -20px rgba(0,0,0,.75);
  color-scheme: dark;
}

/* ============ 2. Base ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); 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; overflow-x: clip; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-2); text-underline-offset: 3px; }
:root[data-theme="dark"] a, :root:not([data-theme="light"]) a { }
a:hover { color: var(--accent); }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.15rem); }
h3 { font-size: 1.15rem; }
.display { font-family: var(--display); font-weight: 600; letter-spacing: -.015em; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: .5rem 1rem; border-radius: 8px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.muted { color: var(--muted); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .6rem; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ============ 3. Botones ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .78rem 1.25rem; border-radius: 999px; border: 1.5px solid transparent; font-weight: 800; font-size: .95rem; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s; white-space: nowrap; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn .ico { width: 1.2em; height: 1.2em; flex: none; }
.btn-amazon { background: var(--amazon); color: #1b1300; box-shadow: 0 6px 16px -8px rgba(242, 164, 10, .9); }
.btn-amazon:hover { background: var(--amazon-2); color: #1b1300; }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: var(--accent); color: var(--on-accent); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-2); color: var(--on-accent); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost.is-on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-2); }
.btn-sm { padding: .5rem .9rem; font-size: .85rem; }
.btn-lg { padding: 1rem 1.6rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-off { background: var(--surface-2); color: var(--muted); box-shadow: none; }
.link-arrow { font-weight: 800; text-decoration: none; color: var(--accent-2); }
.link-arrow::after { content: " →"; transition: margin .2s; }
.link-arrow:hover::after { margin-left: .2rem; }

/* ============ 4. Cabecera ============ */
.promo-bar { background: var(--deep); color: #e9edf0; font-size: .85rem; }
.promo-bar-inner { display: flex; align-items: center; gap: 1rem; justify-content: center; padding: .45rem 0; flex-wrap: wrap; }
.promo-bar a { color: #fff; font-weight: 700; }
.promo-bar a:hover { color: var(--amazon); }
.promo-bar .sep { opacity: .4; }
@media (max-width: 760px) {
  .promo-bar-inner > :not(:first-child) { display: none; }
  .stats { gap: 1.25rem; }
}
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 34px; height: 34px; flex: none; }
.logo b { color: var(--accent); font-weight: 800; }
.nav { margin-left: auto; }
.nav-list { display: flex; gap: .25rem; list-style: none; padding: 0; align-items: center; }
.nav-list > li { position: relative; }
.nav-list > li > a, .nav-list > li > button { display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .8rem; border-radius: 10px; font-weight: 700; font-size: .95rem; color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; }
.nav-list > li > a:hover, .nav-list > li > button:hover, .nav-list > li.is-current > a { background: var(--surface-2); color: var(--ink); }
.nav-list > li > a.nav-cta { background: var(--ink); color: var(--bg); border-radius: 999px; padding: .55rem 1.15rem; margin-left: .35rem; font-weight: 800; transition: background .2s, transform .2s var(--ease); }
.nav-list > li > a.nav-cta:hover, .nav-list > li > a.nav-cta:focus-visible { background: var(--accent); color: var(--on-accent); transform: translateY(-1px); }
.nav-list > li > a.nav-cta .ico { width: 1.1em; height: 1.1em; flex: none; }
.dd-chev { width: 12px; height: 12px; transition: transform .2s; }
.drop { position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: .5rem; list-style: none; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s var(--ease); }
.drop a { display: block; padding: .5rem .7rem; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .92rem; }
.drop a:hover { background: var(--surface-2); color: var(--ink); }
.drop .sep { height: 1px; background: var(--line); margin: .35rem .4rem; }
.has-drop:hover .drop, .has-drop:focus-within .drop, .has-drop.open .drop { opacity: 1; visibility: visible; transform: none; }
.has-drop:hover .dd-chev, .has-drop.open .dd-chev { transform: rotate(180deg); }
.header-actions { display: flex; gap: .4rem; align-items: center; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--ink); }
.icon-btn:hover { border-color: var(--line-2); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}
.nav-toggle { display: none; }
@media (max-width: 960px) {
  .nav-toggle { display: inline-grid; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); padding: 1rem var(--gutter) 6rem; overflow-y: auto; transform: translateX(100%); transition: transform .3s var(--ease); margin: 0; }
  .nav.open { transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li > a, .nav-list > li > button { width: 100%; justify-content: space-between; padding: .9rem .5rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .drop { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; padding: .25rem 0 .5rem .5rem; background: transparent; }
  .has-drop.open .drop { display: block; }
  .nav-list > li > a.nav-cta { justify-content: center; margin: 1.25rem 0 0; padding: .9rem 1.2rem; border-bottom: 0; width: 100%; }
  .has-drop:hover .drop { opacity: 1; }
  .header-inner { gap: .75rem; }
  .header-actions { margin-left: auto; }
}

/* ============ 5. Secciones ============ */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-tight { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--deep); color: #d6dde3; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lead { color: #aab6c0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-head > div { max-width: 680px; }
.section-head h2 { margin-bottom: .5rem; }
.page-head { padding: clamp(2rem, 5vw, 3.5rem) 0 1.5rem; }
.page-head h1 { margin: .4rem 0 .75rem; }
.breadcrumb { font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem); background: radial-gradient(1100px 500px at 85% -10%, var(--accent-soft), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 3.9rem); margin-bottom: 1.1rem; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-ctas { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1.75rem 0 2rem; }
.stats { display: flex; gap: 2rem; flex-wrap: wrap; list-style: none; padding: 0; }
.stats b { display: block; font-size: 1.75rem; color: var(--ink); font-weight: 800; line-height: 1.1; }
.stats span { font-size: .85rem; color: var(--muted); }
.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden; position: relative; }
.hero-card .ribbon { position: absolute; top: 14px; left: 14px; z-index: 2; }
.hero-card-media { aspect-ratio: 4 / 3; background: #fff; display: grid; place-items: center; padding: 1rem; }
.hero-card-media img { max-height: 100%; width: auto; object-fit: contain; }
.hero-card-body { padding: 1.25rem 1.4rem 1.4rem; border-top: 1px solid var(--line); }
.hero-card-body h3 { margin: .2rem 0 .6rem; }
.hero-card-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* ============ 6. Chips, notas, estrellas ============ */
.ribbon { display: inline-block; background: var(--lime); color: var(--on-lime); font-size: .75rem; font-weight: 800; padding: .3rem .65rem; border-radius: 999px; letter-spacing: .02em; }
.ribbon-dark { background: var(--ink); color: var(--bg); }
.ribbon-ok { background: var(--ok); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; }
.chip { display: inline-block; padding: .28rem .65rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: .8rem; font-weight: 700; color: var(--ink-2); text-decoration: none; }
a.chip:hover { border-color: var(--accent); color: var(--accent-2); }
.score { display: inline-flex; align-items: baseline; gap: .1rem; font-weight: 800; color: var(--ink); background: var(--accent-soft); border: 1px solid var(--accent-line); padding: .25rem .55rem; border-radius: 10px; font-size: 1rem; line-height: 1.2; }
.score small { font-size: .7em; color: var(--muted); font-weight: 700; }
.score-lg { font-size: 2.4rem; padding: .4rem .8rem; border-radius: 14px; }
.stars { display: inline-flex; align-items: center; gap: .35rem; font-size: .88rem; color: var(--muted); }
.stars-bar { --pct: 80%; position: relative; display: inline-block; width: 82px; height: 15px; background: linear-gradient(90deg, var(--star) var(--pct), var(--star-off) var(--pct)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 18'%3E%3Cpath id='s' d='M9 0l2.6 5.6 6.1.7-4.5 4.2 1.2 6L9 13.5 3.6 16.5l1.2-6L.3 6.3l6.1-.7z'/%3E%3Cuse href='%23s' x='20.5'/%3E%3Cuse href='%23s' x='41'/%3E%3Cuse href='%23s' x='61.5'/%3E%3Cuse href='%23s' x='82'/%3E%3C/svg%3E") 0 0 / 100% 100%; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 18'%3E%3Cpath id='s' d='M9 0l2.6 5.6 6.1.7-4.5 4.2 1.2 6L9 13.5 3.6 16.5l1.2-6L.3 6.3l6.1-.7z'/%3E%3Cuse href='%23s' x='20.5'/%3E%3Cuse href='%23s' x='41'/%3E%3Cuse href='%23s' x='61.5'/%3E%3Cuse href='%23s' x='82'/%3E%3C/svg%3E") 0 0 / 100% 100%; }
.stars b { color: var(--ink); }
.price { font-weight: 800; color: var(--ink); font-size: 1.15rem; }
.price-old { text-decoration: line-through; color: var(--muted); font-weight: 600; font-size: .9rem; margin-left: .35rem; }
.price-off { color: var(--ok-text); background: var(--ok-soft); font-size: .78rem; font-weight: 800; padding: .15rem .45rem; border-radius: 6px; margin-left: .35rem; }
.price-date { display: block; font-size: .75rem; color: var(--muted); font-weight: 500; }
.price-none { color: var(--muted); font-weight: 700; }

/* ============ 7. Tarjetas ============ */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.25rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s var(--ease), border-color .25s; position: relative; }
.card:hover { box-shadow: var(--shadow); border-color: var(--line-2); transform: translateY(-2px); }
.card-media { aspect-ratio: 1; background: #fff; display: grid; place-items: center; padding: 1rem; position: relative; }
.card-media img { max-height: 100%; width: auto; object-fit: contain; }
.card-media .ribbon { position: absolute; top: 10px; left: 10px; }
.card-media .score { position: absolute; top: 10px; right: 10px; background: var(--surface); }
.card-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; border-top: 1px solid var(--line); }
.card-kicker { font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card-title { font-size: 1.02rem; font-weight: 800; line-height: 1.3; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-title a:hover { color: var(--accent-2); }
.card-bullets { list-style: none; padding: 0; font-size: .86rem; color: var(--muted); display: grid; gap: .2rem; }
.card-bullets li::before { content: "✓ "; color: var(--ok); font-weight: 800; }
.card-foot { margin-top: auto; display: flex; flex-direction: column; gap: .6rem; padding-top: .4rem; }
.card-actions { display: flex; gap: .5rem; position: relative; z-index: 2; }
.card-actions .btn { flex: 1; }
.card-actions .btn-ghost { flex: 0 0 auto; }

.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.type-card { position: relative; display: flex; flex-direction: column; gap: .4rem; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: .25s var(--ease); }
.type-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.type-card h3 { font-size: 1.08rem; }
.type-card p { font-size: .88rem; color: var(--muted); }
.type-card .count { font-size: .8rem; font-weight: 800; color: var(--accent-2); margin-top: auto; }
.type-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.type-ico svg { width: 24px; height: 24px; }

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.info-card h3 { margin: .2rem 0 .5rem; }
.info-card p { color: var(--muted); font-size: .95rem; margin-bottom: .8rem; }
.section-dark .info-card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.section-dark .info-card p { color: #aab6c0; }
.info-num { font-family: var(--display); font-size: 2rem; color: var(--accent); line-height: 1; }
@media (max-width: 800px) { .info-grid { grid-template-columns: 1fr; } }

.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.guide-card { position: relative; display: flex; flex-direction: column; gap: .45rem; padding: 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.guide-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.guide-card h3 { font-size: 1.05rem; line-height: 1.35; }
.guide-card h3 a { color: var(--ink); text-decoration: none; }
.guide-card h3 a::after { content: ""; position: absolute; inset: 0; }
.guide-card p { font-size: .9rem; color: var(--muted); }
.guide-card .card-kicker { color: var(--accent-2); }

.brand-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; }

/* Ranking (top N) */
.ranking { list-style: none; padding: 0; display: grid; gap: 1rem; counter-reset: rk; }
.rank-item { display: grid; grid-template-columns: 56px 150px 1fr auto; gap: 1.25rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; position: relative; }
.rank-n { font-family: var(--display); font-size: 2.2rem; font-weight: 700; color: var(--accent); text-align: center; }
.rank-media { background: #fff; border-radius: 12px; aspect-ratio: 1; display: grid; place-items: center; padding: .5rem; }
.rank-media img { max-height: 100%; width: auto; object-fit: contain; }
.rank-info h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.rank-info h3 a { color: var(--ink); text-decoration: none; }
.rank-info h3 a:hover { color: var(--accent-2); }
.rank-info .best { font-size: .85rem; font-weight: 800; color: var(--accent-2); text-transform: uppercase; letter-spacing: .05em; }
.rank-info p { font-size: .92rem; color: var(--muted); margin-top: .3rem; }
.rank-buy { display: flex; flex-direction: column; gap: .5rem; align-items: stretch; min-width: 190px; text-align: center; }
@media (max-width: 860px) {
  .rank-item { grid-template-columns: 40px 90px 1fr; gap: .8rem; padding: .9rem; }
  .rank-n { font-size: 1.6rem; }
  .rank-buy { grid-column: 1 / -1; flex-direction: row; min-width: 0; align-items: center; justify-content: space-between; }
}

/* ============ 8. Ficha ============ */
.ficha-top { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; padding: 1.5rem 0 2.5rem; }
.ficha-top > *, .ficha-body > *, .guide-layout > * { min-width: 0; }
.gallery-main { background: #fff; border: 1px solid var(--line); border-radius: 22px; aspect-ratio: 1; display: grid; place-items: center; padding: 1.5rem; overflow: hidden; }
.gallery-main img { max-height: 100%; width: auto; object-fit: contain; }
.gallery-thumbs { display: flex; gap: .5rem; margin-top: .75rem; overflow-x: auto; padding-bottom: .25rem; }
.thumb { flex: 0 0 72px; height: 72px; border-radius: 12px; border: 2px solid var(--line); background: #fff; padding: 4px; cursor: pointer; display: grid; place-items: center; }
.thumb img { max-height: 100%; width: auto; }
.thumb.is-active, .thumb:hover { border-color: var(--accent); }
.ficha-info h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); margin: .3rem 0 .6rem; }
.ficha-info .tagline { color: var(--muted); font-size: 1.05rem; margin-bottom: 1rem; }
.ficha-rating { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.buybox { margin-top: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; display: grid; gap: .9rem; }
.buybox .price { font-size: 1.8rem; }
.buybox-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.buybox-actions .btn-amazon { flex: 1; }
.disclaimer { font-size: .78rem; color: var(--muted); }
.ficha-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 3rem; align-items: start; }
.ficha-aside { position: sticky; top: calc(var(--header-h) + 1.25rem); display: grid; gap: 1rem; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.toc h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .6rem; }
.toc ol { list-style: none; padding: 0; display: grid; gap: .15rem; }
.toc a { display: block; padding: .3rem .5rem; border-radius: 8px; text-decoration: none; color: var(--text); font-size: .9rem; font-weight: 600; }
.toc a:hover { background: var(--surface-2); color: var(--ink); }
.subsection { padding: 2.25rem 0; border-top: 1px solid var(--line); }
.subsection:first-child { border-top: 0; padding-top: 0; }
.subsection > h2 { font-size: 1.6rem; margin-bottom: 1.1rem; }
@media (max-width: 960px) {
  .ficha-top, .ficha-body { grid-template-columns: 1fr; }
  .ficha-aside { position: static; order: -1; }
  .ficha-aside .toc { display: none; }
}

.panel-score { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.bars { list-style: none; padding: 0; display: grid; gap: .7rem; }
.bars li { display: grid; grid-template-columns: 170px 1fr 34px; gap: .75rem; align-items: center; font-size: .9rem; font-weight: 700; }
.bar { height: 9px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-grad)); }
.bars b { text-align: right; color: var(--ink); }
@media (max-width: 700px) { .panel-score { grid-template-columns: 1fr; } .bars li { grid-template-columns: 1fr 1.2fr 30px; } }

.radar { width: 100%; max-width: 240px; margin: 0 auto; overflow: visible; }
.radar-ring { fill: none; stroke: var(--line); }
.radar-axis { stroke: var(--line); }
.radar-label { font-size: 8.5px; fill: var(--muted); font-weight: 700; font-family: var(--sans); }
.radar-series { fill-opacity: .18; stroke-width: 2; }

.spec-table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-table th, .spec-table td { text-align: left; padding: .7rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 42%; color: var(--muted); font-weight: 700; }
.spec-table td { color: var(--ink); font-weight: 600; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table tbody tr:nth-child(even) { background: var(--row-alt); }
.spec-table .group th { background: var(--surface-2); color: var(--ink); text-transform: uppercase; font-size: .75rem; letter-spacing: .1em; }
.yes { color: var(--ok-text); }
.no { color: var(--muted); font-weight: 500; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); -webkit-overflow-scrolling: touch; }

.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.25rem; }
.pros, .cons, .ideal { border-radius: var(--radius); padding: 1.2rem 1.3rem; border: 1px solid var(--line); background: var(--surface); }
.pros { border-top: 4px solid var(--ok); }
.cons { border-top: 4px solid var(--bad); }
.ideal { margin-top: 1rem; border-top: 4px solid var(--accent); }
.pros h3, .cons h3, .ideal h3 { font-size: 1rem; margin-bottom: .6rem; }
.pros ul, .cons ul, .ideal ul { padding-left: 1.1rem; display: grid; gap: .35rem; font-size: .95rem; }
.pros li::marker { content: "+  "; color: var(--ok); font-weight: 800; }
.cons li::marker { content: "–  "; color: var(--bad); font-weight: 800; }
@media (max-width: 700px) { .proscons { grid-template-columns: 1fr; } }

.reviews { display: grid; gap: .9rem; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.review h3 { font-size: 1rem; margin: .35rem 0; }
.review p { font-size: .94rem; }
.review-meta { font-size: .8rem; color: var(--muted); display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.verified { color: var(--ok-text); font-weight: 700; }

.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -15px rgba(0,0,0,.25); transform: translateY(110%); transition: transform .3s var(--ease); }
.buybar.show { transform: none; }
.buybar-inner { display: flex; align-items: center; gap: 1rem; padding: .65rem 0; }
.buybar img { width: 46px; height: 46px; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid var(--line); }
.buybar-name { font-weight: 800; color: var(--ink); font-size: .95rem; line-height: 1.25; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 600px) { .buybar .price { display: none; } .buybar .btn-ghost { display: none; } }

/* ============ 9. Prosa / guías ============ */
.prose { font-size: 1.05rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); margin-top: 2.2em; }
.prose h3 { font-size: 1.22rem; margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .35em; }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: .55rem .75rem; text-align: left; }
.prose th { background: var(--surface-2); color: var(--ink); }
.prose blockquote { border-left: 4px solid var(--accent); background: var(--surface); padding: 1rem 1.2rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink-2); }
.prose .callout, .callout { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--radius-sm); padding: 1rem 1.2rem; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 3rem; align-items: start; }
.guide-aside { position: sticky; top: calc(var(--header-h) + 1.25rem); display: grid; gap: 1rem; }
.byline { display: flex; gap: .75rem; align-items: center; font-size: .88rem; color: var(--muted); margin-top: 1rem; flex-wrap: wrap; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 800; }
.mini-pick { display: grid; grid-template-columns: 56px 1fr; gap: .7rem; align-items: center; padding: .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.mini-pick img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 8px; }
.mini-pick b { display: block; font-size: .85rem; line-height: 1.3; color: var(--ink); }
.mini-pick .btn { grid-column: 1 / -1; }
.prose .grid-cards, .prose .ranking, .prose .compare-wrap { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.prose .ranking { padding-left: 0; }
.prose .ranking li + li, .prose .card-bullets li + li { margin-top: 0; }
.prose .ranking h3 { margin-top: 0; }
.prose .rank-info p, .prose .card-body p { margin-top: .3rem; }
.prose .card-bullets { padding-left: 0; }
@media (max-width: 960px) { .guide-layout { grid-template-columns: 1fr; } .guide-aside { position: static; } }

/* FAQ */
.faq { display: grid; gap: .6rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 1.2rem; font-weight: 800; color: var(--ink); display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 1.2rem 1.1rem; color: var(--text); }
.faq-a > * + * { margin-top: .6em; }

/* ============ 10. Listados / filtros ============ */
.toolbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.filters button { border: 1px solid var(--line-2); background: var(--surface); padding: .45rem .85rem; border-radius: 999px; font-weight: 700; font-size: .85rem; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sort select { border: 1px solid var(--line-2); background: var(--surface); border-radius: 10px; padding: .45rem .7rem; font-weight: 700; font-size: .88rem; }
.toolbar-count { font-size: .88rem; color: var(--muted); }

/* ============ 11. Comparador ============ */
.compare-tray { position: fixed; z-index: 45; right: 16px; bottom: 16px; background: var(--ink); color: var(--bg); border-radius: 999px; padding: .5rem .5rem .5rem 1rem; display: none; align-items: center; gap: .75rem; box-shadow: var(--shadow-lg); font-weight: 800; font-size: .9rem; }
.compare-tray.show { display: flex; }
.compare-tray .btn { background: var(--accent); color: var(--on-accent); }
.compare-tray button.clear { background: none; border: 0; color: inherit; opacity: .7; cursor: pointer; font-size: .82rem; text-decoration: underline; }
body.has-buybar .compare-tray { bottom: 84px; }
.picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin-bottom: 1.5rem; }
.picker select { width: 100%; border: 1px solid var(--line-2); background: var(--surface); border-radius: 12px; padding: .7rem; font-weight: 700; font-size: .9rem; }
@media (max-width: 800px) { .picker { grid-template-columns: 1fr 1fr; } }
.compare-table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: .92rem; min-width: 640px; }
.compare-table th, .compare-table td { padding: .7rem .8rem; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.compare-table th[scope="row"] { text-align: left; color: var(--muted); font-weight: 700; width: 190px; position: sticky; left: 0; background: var(--surface); }
.compare-table thead th { vertical-align: top; }
.compare-table thead img { width: 110px; height: 110px; object-fit: contain; background: #fff; margin: 0 auto .5rem; border-radius: 10px; }
.compare-table thead a { color: var(--ink); font-weight: 800; text-decoration: none; font-size: .9rem; }
.compare-table .best { background: var(--ok-soft); color: var(--ok-text); font-weight: 800; }
.compare-table .group th { background: var(--surface-2); color: var(--ink); text-transform: uppercase; font-size: .72rem; letter-spacing: .1em; text-align: left; }
.compare-radar { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; align-items: center; margin-bottom: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.radar-legend { list-style: none; padding: 0; display: grid; gap: .4rem; font-weight: 700; font-size: .92rem; }
.radar-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: .5rem; vertical-align: -1px; }
@media (max-width: 700px) { .compare-radar { grid-template-columns: 1fr; } }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); }

/* ============ 12. Test ============ */
.quiz { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.25rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
.quiz-progress { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-bottom: 1.5rem; }
.quiz-progress i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .35s var(--ease); }
.quiz h2 { font-size: 1.45rem; margin-bottom: 1.1rem; }
.quiz-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .65rem; }
.quiz-opt { text-align: left; padding: 1rem 1.1rem; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--bg); cursor: pointer; font-weight: 700; transition: .15s; }
.quiz-opt small { display: block; font-weight: 500; color: var(--muted); margin-top: .2rem; }
.quiz-opt:hover { border-color: var(--accent); background: var(--accent-soft); }
.quiz-back { margin-top: 1.25rem; background: none; border: 0; color: var(--muted); cursor: pointer; font-weight: 700; text-decoration: underline; }
.quiz-results h2 { margin-bottom: .4rem; }

/* ============ 13. Pie ============ */
.site-footer { background: var(--deep); color: #b6c0c9; padding: 3.5rem 0 1.5rem; margin-top: 0; font-size: .92rem; }
.site-footer a { color: #e3e8ec; text-decoration: none; }
.site-footer a:hover { color: var(--amazon); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 2rem; }
.footer-grid h2 { font-size: .78rem; color: #fff; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .8rem; }
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: .4rem; }
.footer-grid .logo { color: #fff; margin-bottom: .8rem; }
.footer-claim { max-width: 34ch; }
.footer-small { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .8rem; display: grid; gap: .5rem; color: #8f9ba6; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

.transparency { background: var(--warn-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem 1rem; font-size: .85rem; color: var(--text); }
.legal h2 { font-size: 1.35rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---- Auditoría: títulos de tarjetas en h2 y objetivos táctiles >= 24 px ---- */
.info-card h2 { font-size: 1.15rem; margin: .2rem 0 .5rem; }
.guide-card h2 { font-size: 1.05rem; line-height: 1.35; }
.guide-card h2 a { color: var(--ink); text-decoration: none; }
.guide-card h2 a::after { content: ""; position: absolute; inset: 0; }
.breadcrumb a, .promo-bar a { display: inline-block; padding: .3rem .1rem; }
.link-arrow { display: inline-block; padding: .25rem 0; }
.card-title a, .rank-info h3 a { display: inline-block; padding: .15rem 0; }
.footer-grid a, .toc a { padding-block: .3rem; display: inline-block; }

.breadcrumb [aria-current] { display: inline-block; padding: .3rem .1rem; }
