/* =============================================================
   PatinetesComparados — styles.css
   Comparativa de patinetes eléctricos. Sitio estático, sin build.
   Secciones:
     1. Tokens            6. Secciones
     2. Reset & base       7. Efectos
     3. Utilidades         8. Responsive
     4. Tipografía         9. Reduced motion
     5. Componentes
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* color */
  --bg: #f6f4ee;
  --bg-alt: #ffffff;
  --bg-raised: #ffffff;
  --ink: #171f2e;
  --ink-mute: #4c5568;
  --ink-faint: #7b8496;
  --line: #e3e0d5;
  --line-strong: #cfccbf;

  --accent: #1c3fae;
  --accent-ink: #ffffff;
  --accent-soft: #e8edfb;
  --accent-2: #d6762a;
  --accent-2-soft: #fbeadb;

  --good: #227a4a;
  --good-soft: #e4f3ea;
  --bad: #b5392f;
  --bad-soft: #fbe8e6;
  --star: #d6762a;

  --card-shadow: 0 1px 2px rgba(23, 31, 46, 0.05), 0 8px 24px -12px rgba(23, 31, 46, 0.18);
  --card-shadow-hover: 0 24px 48px -18px rgba(23, 31, 46, 0.28), 0 4px 12px -4px rgba(23, 31, 46, 0.14);

  /* type */
  --serif: "Fraunces", "Iowan Old Style", "Georgia", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* layout */
  --container-w: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --gutter: 1.25rem;
  --nav-h: 68px;

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  overflow-x: clip;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
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; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.01em; font-family: var(--serif); font-weight: 600; }
::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* =============================================================
   3. Utilidades
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .7rem 1.1rem; background: var(--ink); color: #fff;
  z-index: 9999; border-radius: 8px; font-weight: 600;
  transition: top .25s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
}

.muted { color: var(--ink-mute); }
.faint { color: var(--ink-faint); }

.stack { display: flex; flex-direction: column; gap: 1rem; }
.cluster { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* =============================================================
   4. Tipografía
   ============================================================= */
h1 { font-size: clamp(2rem, 4.2vw + 1rem, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2.15rem); margin-bottom: .9rem; }
h3 { font-size: clamp(1.15rem, 1vw + .9rem, 1.4rem); margin-bottom: .5rem; }
p { max-width: 68ch; }
.lede { font-size: 1.15rem; color: var(--ink-mute); max-width: 60ch; }

/* =============================================================
   5. Componentes
   ============================================================= */

/* --- Botones --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(23,31,46,.08), 0 1px 3px rgba(23,31,46,.06);
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background-color .3s var(--ease-out), color .3s var(--ease-out);
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-hover); }
.btn:active { transform: translateY(-1px); transition-duration: .12s; }

.btn-comprar,
.btn-comprar:hover {
  background: var(--accent-2);
  color: #fff;
}
.btn-comprar::after { content: "→"; transition: transform .3s var(--ease-out); }
.btn-comprar:hover::after { transform: translateX(3px); }

.btn-secondary, .btn-secondary:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.btn-ghost, .btn-ghost:hover {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
  box-shadow: none;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }
.btn-sm { padding: .55rem 1.1rem; font-size: .85rem; }

/* --- Insignias / chips --- */
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .75rem;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.badge svg { width: 1em; height: 1em; flex: none; }
.badge-ejemplo { background: var(--bad-soft); color: var(--bad); }
.badge-offer { background: var(--good-soft); color: var(--good); }
.badge-featured { background: var(--accent-soft); color: var(--accent); }

.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .85rem;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-mute);
}
.chip svg { width: 1.1em; height: 1.1em; flex: none; }

/* --- Sample-product callout banner (used on ficha) --- */
.ejemplo-banner {
  display: flex; align-items: flex-start; gap: .75rem;
  background: var(--bad-soft);
  border: 1px solid rgba(181,57,47,.25);
  color: var(--bad);
  padding: .9rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: .92rem;
  font-weight: 600;
}
.ejemplo-banner svg { width: 1.3em; height: 1.3em; flex: none; margin-top: .05em; }

/* --- Header / nav --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 244, 238, 0.92);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(10px)) {
  .site-header { backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%); }
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--nav-h);
  gap: 1rem;
}
.nav-brand { display: flex; align-items: center; gap: .55rem; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--ink); }
.nav-brand-mark { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.nav-links { display: none; align-items: center; gap: 1.6rem; }
.nav-link {
  position: relative; padding: .3rem 0; font-weight: 600; font-size: .95rem; color: var(--ink-mute);
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav-link:hover, .nav-link.is-active { color: var(--ink); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }

/* E.2 — a .btn living inside .nav-links must re-assert its own color/bg */
.nav-links a.nav-cta,
.nav-links a.nav-cta:hover {
  color: var(--accent-ink);
  background: var(--accent);
  padding: .55rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
}
.nav-links a.nav-cta::after { content: none; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--line-strong);
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-mobile {
  position: fixed; top: var(--nav-h); right: 0; bottom: 0; left: 0; z-index: 90;
  background: var(--bg-alt);
  padding: 1.5rem var(--gutter) 2rem;
  display: flex; flex-direction: column; gap: .25rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .5s var(--ease-soft);
  overflow-y: auto;
}
.nav-mobile[data-open="true"] { clip-path: inset(0 0 0 0); }
.nav-mobile a {
  padding: .95rem .25rem; font-weight: 600; font-size: 1.05rem;
  border-bottom: 1px solid var(--line);
}
.nav-mobile a.nav-cta {
  margin-top: .75rem; text-align: center; border-radius: 999px; border-bottom: none;
  background: var(--accent); color: #fff;
}

/* --- Footer --- */
.site-footer {
  background: var(--ink);
  color: #dfe3ec;
  padding-block: 3rem 2rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
}
.footer-brand { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: #fff; }
.footer-tagline { color: #a7aec2; max-width: 42ch; margin-top: .5rem; font-size: .92rem; }
.footer-col h4 { font-family: var(--sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: #a7aec2; margin-bottom: .8rem; }
.footer-col a, .footer-col p { display: block; color: #dfe3ec; font-size: .92rem; padding-block: .3rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: space-between;
  font-size: .82rem; color: #a7aec2;
}
.footer-disclosure {
  font-size: .82rem; color: #a7aec2; max-width: 78ch; line-height: 1.55;
  padding: 1rem 1.1rem; background: rgba(255,255,255,.05); border-radius: var(--radius-sm);
  margin-top: 1.5rem;
}
.footer-disclosure a { color: #fff; text-decoration: underline; }

/* --- Cards de producto --- */
.product-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: 1fr;
}
.product-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft);
  display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: var(--card-shadow-hover); }
.product-card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--accent-soft); }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-soft); }
.product-card:hover .product-card-media img { transform: scale(1.05); }
.product-card-badges { position: absolute; top: .7rem; right: .7rem; z-index: 2; display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; }
.product-card-body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.product-card-cat { font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.product-card-title { font-size: 1.12rem; line-height: 1.25; }
.product-card-title a { color: var(--ink); }
.product-card-title a:hover { color: var(--accent); }
.product-card-specs { display: flex; flex-wrap: wrap; gap: .4rem .6rem; font-size: .82rem; color: var(--ink-mute); }
.product-card-price { margin-top: auto; display: flex; align-items: baseline; gap: .55rem; padding-top: .5rem; }
.product-card-footer { display: flex; align-items: center; gap: .75rem; margin-top: .35rem; }

/* --- Precio --- */
.price-actual { font-size: 1.35rem; font-weight: 800; font-family: var(--serif); color: var(--ink); }
.price-before { font-size: .95rem; color: var(--ink-faint); text-decoration: line-through; }
.price-note { font-size: .74rem; color: var(--ink-faint); display: block; margin-top: .15rem; }
.discount-pill {
  display: inline-flex; align-items: center; padding: .18rem .55rem; border-radius: 999px;
  background: var(--good-soft); color: var(--good); font-size: .74rem; font-weight: 800;
}

/* --- Star rating --- */
.stars { display: inline-flex; align-items: center; gap: .3rem; }
.stars svg { width: 16px; height: 16px; }
.stars .star-fill { color: var(--star); }
.stars .star-empty { color: var(--line-strong); }
.stars-count { font-size: .82rem; color: var(--ink-faint); }

/* --- Score / valoración editorial mini --- */
.score-pill {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .55rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: .78rem; font-weight: 800;
}

/* --- Hero --- */
.hero {
  padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(2rem, 4vw, 3.5rem);
}
.hero-inner { display: grid; gap: 2.5rem; align-items: center; }
.hero-title { max-width: 16ch; margin-inline: 0; }
.hero-title em { font-style: italic; color: var(--accent); }
.hero-sub { margin-top: 1.1rem; }
.hero-ctas { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-trust { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; }
.hero-trust-item { display: flex; align-items: center; gap: .5rem; font-size: .86rem; color: var(--ink-mute); font-weight: 600; }
.hero-trust-item svg { width: 1.2em; height: 1.2em; color: var(--accent); flex: none; }
.hero-figure {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--card-shadow);
  border: 1px solid var(--line);
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* --- Bloque de confianza / cómo elegimos --- */
.trust-block { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 3rem; }
.trust-grid { display: grid; gap: 1.6rem; grid-template-columns: 1fr; margin-top: 1.6rem; }
.trust-item { display: flex; gap: 1rem; }
.trust-item-icon {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
}
.trust-item-icon svg { width: 22px; height: 22px; }
.trust-item h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.trust-item p { font-size: .92rem; color: var(--ink-mute); }

/* --- Secciones genéricas --- */
.section { padding-block: clamp(2.4rem, 5vw, 4rem); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.section-head .section-title-wrap { max-width: 62ch; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* --- Category entry cards (home) --- */
.category-cards { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
.category-card {
  position: relative; padding: 1.6rem 1.4rem; border-radius: var(--radius-lg);
  background: var(--bg-alt); border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  transition: transform .5s var(--ease-soft), box-shadow .5s var(--ease-soft);
  display: flex; flex-direction: column; gap: .5rem;
}
.category-card:hover { box-shadow: var(--card-shadow-hover); }
.category-card-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.category-card-icon svg { width: 22px; height: 22px; }
.category-card h3 { font-size: 1.15rem; }
.category-card p { font-size: .9rem; color: var(--ink-mute); }
.category-card-count { font-size: .78rem; font-weight: 700; color: var(--accent); }

/* --- Ficha de producto --- */
.ficha { padding-block: 2rem 3rem; }
.ficha-crumbs { font-size: .82rem; color: var(--ink-faint); margin-bottom: 1.2rem; }
.ficha-crumbs a { color: var(--ink-mute); }
.ficha-crumbs a:hover { color: var(--accent); }

.ficha-top { display: grid; gap: 2rem; }

.ficha-galeria { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--accent-soft); }
.ficha-img-main { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.ficha-thumbs { display: flex; gap: .5rem; padding: .6rem; background: var(--bg-alt); overflow-x: auto; overflow-y: visible; }
.ficha-thumbs li { flex: none; }
.ficha-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; }
.ficha-thumbs img.is-active { border-color: var(--accent); }

.ficha-head { display: flex; flex-direction: column; gap: .65rem; }
.ficha-marca { font-size: .82rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.ficha-nombre { font-size: clamp(1.5rem, 2.4vw + 1rem, 2.15rem); }
.ficha-rating { display: flex; align-items: center; gap: .6rem; }
.ficha-precio { margin-top: .3rem; padding: 1rem 1.1rem; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-md); }
.ficha-precio .price-actual { font-size: 2rem; }
.ficha-cta-group { margin-top: .6rem; display: flex; flex-direction: column; gap: .55rem; }

.ficha-section { padding-block: 2.2rem; border-top: 1px solid var(--line); }

/* --- Radar chart --- */
.radar-figure { display: flex; flex-wrap: wrap; gap: 1.6rem; align-items: center; justify-content: center; }
.radar-figure svg { width: 100%; max-width: 360px; height: auto; }
.radar-axis-label { font-size: 10.5px; fill: var(--ink-mute); font-family: var(--sans); }
.radar-legend { display: flex; flex-direction: column; gap: .5rem; min-width: 180px; }
.radar-legend-item { display: flex; align-items: center; gap: .55rem; font-size: .86rem; font-weight: 600; }
.radar-legend-swatch { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.radar-legend-value { margin-left: auto; color: var(--ink-faint); font-weight: 700; font-variant-numeric: tabular-nums; }
.radar-fallback-list { font-size: .88rem; color: var(--ink-mute); }
.radar-fallback-list li { display: flex; justify-content: space-between; padding: .3rem 0; border-bottom: 1px dashed var(--line); }

/* --- Tabla de specs --- */
.specs-table { font-size: .92rem; }
.specs-table caption { text-align: left; font-weight: 700; padding-block: .6rem; color: var(--ink); font-family: var(--serif); font-size: 1.02rem; }
.specs-table tr { border-bottom: 1px solid var(--line); }
.specs-table th, .specs-table td { text-align: left; padding: .65rem .5rem; vertical-align: top; }
.specs-table th { font-weight: 600; color: var(--ink-mute); width: 46%; }
.specs-table td { font-weight: 700; }
.specs-group + .specs-group { margin-top: 1.6rem; }
.specs-extra summary { cursor: pointer; font-weight: 700; padding: .8rem 0; color: var(--accent); }
.specs-extra[open] summary { margin-bottom: .4rem; }

/* --- Editorial --- */
.editorial-cuerpo p + p { margin-top: 1rem; }
.editorial-cuerpo { color: var(--ink); }
.pros-contras { display: grid; gap: 1.2rem; margin-top: 1.6rem; grid-template-columns: 1fr; }
.pc-col { padding: 1.2rem 1.3rem; border-radius: var(--radius-md); }
.pc-col.pros { background: var(--good-soft); }
.pc-col.contras { background: var(--bad-soft); }
.pc-col h3 { display: flex; align-items: center; gap: .5rem; font-size: 1rem; }
.pc-col h3 svg { width: 1.15em; height: 1.15em; flex: none; }
.pc-col.pros h3 { color: var(--good); }
.pc-col.contras h3 { color: var(--bad); }
.pc-col ul { margin-top: .7rem; display: flex; flex-direction: column; gap: .5rem; }
.pc-col li { display: flex; gap: .55rem; font-size: .92rem; }
.pc-col li svg { width: 1.15em; height: 1.15em; flex: none; margin-top: .15em; }
.pc-col.pros li svg { color: var(--good); }
.pc-col.contras li svg { color: var(--bad); }

.ideal-para {
  margin-top: 1.4rem; padding: 1rem 1.2rem; border-left: 4px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .96rem;
}

/* --- Reseñas --- */
.resenas-resumen { font-size: 1rem; color: var(--ink-mute); margin-bottom: 1.4rem; }
.resena-list { display: flex; flex-direction: column; gap: 1rem; }
.resena-item { padding: 1rem 1.2rem; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-md); }
.resena-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .4rem; }
.resena-autor { font-weight: 700; font-size: .9rem; }
.resena-texto { font-size: .92rem; color: var(--ink-mute); }
.resenas-nota { margin-top: 1rem; font-size: .8rem; color: var(--ink-faint); }

/* --- Similares --- */
.similares-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1rem; }

/* --- Aviso de afiliados --- */
.aviso-afiliados {
  font-size: .84rem; color: var(--ink-faint); padding: 1rem 1.1rem;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-top: 1.5rem;
}

/* --- Bloque de anuncio (AdSense) --- */
.ad-slot {
  margin-block: 2.5rem;
  padding: .6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  text-align: center;
  min-height: 100px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
}
.ad-slot-label {
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-faint);
}
.ad-slot .adsbygoogle { width: 100%; }

/* --- Comparador --- */
.comparador-picker {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.4rem; margin-bottom: 2rem;
}
.comparador-picker-grid { display: grid; gap: .8rem; grid-template-columns: 1fr; margin-top: 1rem; }
.comparador-pick-item {
  display: flex; align-items: center; gap: .8rem; padding: .8rem .9rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-md);
  cursor: pointer; transition: border-color .3s var(--ease-out), background .3s var(--ease-out);
}
.comparador-pick-item:hover { border-color: var(--accent); }
.comparador-pick-item.is-checked { border-color: var(--accent); background: var(--accent-soft); }
.comparador-pick-item input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.comparador-pick-thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; }
.comparador-pick-name { font-weight: 700; font-size: .92rem; }
.comparador-pick-cat { font-size: .78rem; color: var(--ink-faint); }

.comparador-empty { padding: 2.5rem 1.5rem; text-align: center; color: var(--ink-mute); background: var(--bg-alt); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }

.comparador-table-wrap { overflow-x: auto; overflow-y: visible; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--bg-alt); }
.comparador-table { min-width: 640px; font-size: .9rem; }
.comparador-table th, .comparador-table td { padding: .8rem .9rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparador-table thead th { background: var(--bg); position: sticky; top: 0; z-index: 2; }
.comparador-table th.row-label { font-weight: 600; color: var(--ink-mute); position: sticky; left: 0; background: var(--bg-alt); z-index: 1; min-width: 160px; }
.comparador-col-head { min-width: 190px; }
.comparador-col-head img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; margin-bottom: .5rem; }
.comparador-col-head .btn { margin-top: .6rem; }
.comparador-cell-best { background: var(--good-soft); font-weight: 800; color: var(--good); border-radius: 6px; }
.comparador-remove {
  width: 22px; height: 22px; border-radius: 999px; background: var(--ink); color: #fff;
  display: inline-grid; place-items: center; font-size: .7rem; margin-left: .4rem;
}

.comparador-radar-wrap { margin-block: 2rem; padding: 1.6rem; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-lg); }

/* --- Guía de compra / rankings --- */
.guide-hero { padding-block: 2.5rem 1.5rem; }
.guide-shortlist { display: flex; flex-direction: column; gap: 1.4rem; margin-top: 1.4rem; }
.guide-item {
  display: grid; gap: 1.2rem; grid-template-columns: 1fr;
  padding: 1.4rem; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}
.guide-item-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-md); }
.guide-item-rank { font-family: var(--serif); font-size: 1.6rem; color: var(--accent); font-weight: 700; }
.guide-item-why { margin-top: .5rem; font-size: .92rem; color: var(--ink-mute); }
.guide-faq { margin-top: 1rem; }
.guide-faq details { border-bottom: 1px solid var(--line); padding-block: .9rem; }
.guide-faq summary { cursor: pointer; font-weight: 700; }
.guide-faq p { margin-top: .6rem; color: var(--ink-mute); font-size: .93rem; }

/* --- Ofertas --- */
.ofertas-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
.oferta-card { position: relative; }
.oferta-discount {
  position: absolute; top: .7rem; right: .7rem; z-index: 2;
  background: var(--accent-2); color: #fff; font-weight: 800; font-size: .8rem;
  padding: .3rem .65rem; border-radius: 999px;
}

/* --- Legal / static pages --- */
.legal { padding-block: 2.5rem 4rem; }
.legal h2 { margin-top: 2rem; }
.legal p, .legal li { color: var(--ink-mute); font-size: .96rem; }
.legal ul { list-style: disc; padding-left: 1.4rem; margin-top: .5rem; }
.legal li { padding-block: .2rem; }

/* --- Empty state --- */
.empty-state {
  padding: 3rem 1.5rem; text-align: center; background: var(--bg-alt);
  border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); color: var(--ink-mute);
}
.empty-state svg { width: 40px; height: 40px; color: var(--ink-faint); margin: 0 auto 1rem; }

/* --- Formularios (metodología / newsletter simple, si se usan) --- */
.field { position: relative; }
.field input, .field select {
  width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm); background: var(--bg-alt); color: inherit; font: inherit;
}
.field label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: .35rem; color: var(--ink-mute); }

/* --- Sort/filter bar (category pages) --- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .8rem; align-items: end; margin-bottom: .9rem; }
.filter-bar .field { min-width: 170px; flex: 1 1 170px; }
.filter-bar .field-checkbox {
  flex: 0 0 auto; min-width: 0; display: flex; align-items: center; gap: .5rem;
  padding: .75rem .9rem; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--bg-alt); cursor: pointer; font-size: .9rem; font-weight: 600;
}
.filter-bar .field-checkbox input { width: auto; accent-color: var(--accent); }
.filter-bar [data-filter-reset] { flex: 0 0 auto; align-self: center; }
[data-filter-count] { margin-bottom: 1rem; }

.field-range { min-width: 240px; flex: 1 1 240px; }
.field-range-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .35rem; }
.field-range-head label { margin-bottom: 0; }
.range-value { font-size: .82rem; font-weight: 700; color: var(--accent); white-space: nowrap; }
.range-row { display: flex; align-items: center; gap: .7rem; }
.range-row input[type="range"] {
  flex: 1 1 auto; width: auto; padding: 0; height: 1.4rem; appearance: none; background: transparent; border: none;
}
.range-row input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 999px; background: var(--line-strong);
}
.range-row input[type="range"]::-moz-range-track {
  height: 4px; border-radius: 999px; background: var(--line-strong);
}
.range-row input[type="range"]::-webkit-slider-thumb {
  appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg-alt); box-shadow: 0 0 0 1px var(--accent);
  margin-top: -7px; cursor: pointer;
}
.range-row input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--bg-alt);
  background: var(--accent); box-shadow: 0 0 0 1px var(--accent); cursor: pointer;
}
.range-row .range-number { flex: 0 0 90px; width: 90px; padding: .5rem .55rem; text-align: right; }

/* =============================================================
   6. Secciones — variantes de fondo
   ============================================================= */
.bg-ink { background: var(--ink); color: #fff; }

/* =============================================================
   7. Efectos
   ============================================================= */

/* Reveal on scroll — universal, non-intrusive */
[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s var(--ease-soft), transform .7s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* Subtle card tilt (fine pointer only, gated in JS by hover:hover) */
.has-tilt {
  --rx: 0deg; --ry: 0deg;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease-soft);
}
.has-tilt:hover { transition-duration: .15s; }

/* Radar draw-in (signature effect) */
.radar-poly {
  stroke-dasharray: var(--len, 1000);
  stroke-dashoffset: var(--len, 1000);
  transition: stroke-dashoffset 1.1s var(--ease-soft), fill-opacity .8s var(--ease-soft) .3s;
  fill-opacity: 0;
}
.radar-poly.is-drawn { stroke-dashoffset: 0; fill-opacity: .22; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .pros-contras { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .category-cards { grid-template-columns: repeat(2, 1fr); }
  .ofertas-grid { grid-template-columns: repeat(2, 1fr); }
  .similares-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-item { grid-template-columns: 220px 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 720px) {
  .hero-inner { grid-template-columns: 1.1fr .9fr; }
  .ficha-top { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none; }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .category-cards { grid-template-columns: repeat(4, 1fr); }
  .ofertas-grid { grid-template-columns: repeat(3, 1fr); }
  .similares-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .comparador-picker-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px) {
  .container { padding-inline: 2rem; }
}

@media (min-width: 1600px) {
  .container { max-width: 1360px; }
}

/* =============================================================
   9. Reduced motion — solo lo intrusivo
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transition-duration: .01s; }
  .radar-poly { transition-duration: .01s; }
  /* Hovers, tilts, underlines y fades NO se desactivan */
}
