/* =============================================================
   PIELOTECA — hoja de estilos única
   1. Tokens · 2. Reset · 3. Utilidades · 4. Tipografía
   5. Componentes · 6. Secciones · 7. Efectos · 8. Responsive
   9. Reduced-motion
   ============================================================= */

/* =============================================================
   1. TOKENS
   ============================================================= */
:root {
  /* Color */
  --bg:          #faf6f3;
  --bg-alt:      #f3ece7;
  --surface:     #ffffff;
  --surface-2:   #fdfaf8;
  --ink:         #241d1c;
  --ink-2:       #4b4240;
  --muted:       #857771;
  --line:        #e9ded7;
  --line-2:      #f2eae5;

  --accent:      #b1465f;
  --accent-dark: #8e3049;
  --accent-soft: #fbeef1;
  --accent-ink:  #ffffff;

  --sage:        #5a7d6d;
  --sage-soft:   #eaf1ed;
  --gold:        #ab8146;
  --gold-soft:   #f7efe2;

  --ok:          #3f7d5c;
  --warn:        #b4632a;

  /* Radar / comparador — series accesibles y distinguibles */
  --s1: #b1465f;
  --s2: #3f6f8e;
  --s3: #5a7d6d;
  --s4: #a3742a;

  /* Tipografía */
  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Medidas */
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --maxw: 1240px;
  --maxw-narrow: 760px;
  --radius: 14px;
  --radius-lg: 22px;
  --nav-h: 68px;

  /* Sombras */
  --sh-1: 0 1px 2px rgba(36, 29, 28, .04), 0 4px 14px rgba(36, 29, 28, .05);
  --sh-2: 0 2px 6px rgba(36, 29, 28, .06), 0 14px 34px rgba(36, 29, 28, .09);
  --sh-3: 0 24px 60px rgba(36, 29, 28, .14);

  /* Easings */
  --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; }

/* `hidden` debe ganar siempre: varios componentes declaran display flex/grid */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink-2);
  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; }
p { text-wrap: pretty; }
table { border-collapse: collapse; width: 100%; }

::selection { background: var(--accent); color: #fff; }

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

/* Vista previa de transición entre páginas */
@view-transition { navigation: auto; }

/* =============================================================
   3. UTILIDADES
   ============================================================= */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow { max-width: var(--maxw-narrow); }

.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;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--ink); color: #fff;
  border-radius: 8px; font-weight: 600; font-size: .9rem;
}
.skip-link:focus { top: 1rem; }

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-tight { padding-block: clamp(2.2rem, 5vw, 3.5rem); }
.section-alt { background: var(--bg-alt); }

.eyebrow {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: .7rem;
}
.eyebrow-sage { color: var(--sage); }

.section-head { max-width: 62ch; margin-bottom: clamp(1.6rem, 3.5vw, 2.6rem); }
.section-head p { color: var(--muted); margin-top: .7rem; font-size: 1.02rem; }

/* Enlaces dentro de texto corrido fuera de `.prose` */
.section-head a, .callout a, .price-note a, .hero-copy p a {
  color: var(--accent); text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.section-head a:hover, .callout a:hover { color: var(--accent-dark); }

.head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.2rem; flex-wrap: wrap;
  margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
}
.head-row .section-head { margin-bottom: 0; }

.text-muted { color: var(--muted); }
.divider { height: 1px; background: var(--line); border: 0; margin-block: 2.5rem; }

/* =============================================================
   4. TIPOGRAFÍA
   ============================================================= */
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); line-height: 1.04; }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
h4 { font-size: 1.02rem; line-height: 1.3; }

.display {
  font-size: clamp(2.4rem, 6.6vw, 4.6rem);
  line-height: .98;
  letter-spacing: -0.03em;
}

.lede {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--ink-2);
  line-height: 1.65;
}

.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.1rem; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { margin-top: 2.4rem; margin-bottom: .9rem; }
.prose h3 { margin-top: 1.8rem; margin-bottom: .6rem; }
.prose ul, .prose ol { margin: 0 0 1.2rem 1.1rem; }
.prose li { margin-bottom: .45rem; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--accent-dark); }
.prose strong { color: var(--ink); font-weight: 600; }

/* =============================================================
   5. COMPONENTES
   ============================================================= */

/* ---------- 5.1 Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .78rem 1.35rem;
  border-radius: 999px;
  font-size: .93rem; font-weight: 600; letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: background .28s var(--ease-out), color .28s var(--ease-out),
              border-color .28s var(--ease-out), transform .28s var(--ease-out),
              box-shadow .28s var(--ease-out);
  text-align: center;
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn-amazon,
a.btn-amazon,
a.btn-amazon:hover {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 2px 10px rgba(177, 70, 95, .22);
}
.btn-amazon:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(177, 70, 95, .3); }

.btn-ghost,
a.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: var(--surface); }

.btn-dark, a.btn-dark, a.btn-dark:hover { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-1px); }

.btn-sm { padding: .55rem 1rem; font-size: .85rem; }
.btn-lg { padding: .95rem 1.7rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- 5.2 Chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .38rem;
  padding: .3rem .68rem;
  border-radius: 999px;
  font-size: .76rem; font-weight: 600; line-height: 1.4;
  background: var(--bg-alt); color: var(--ink-2);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.chip svg { width: 1.05em; height: 1.05em; flex: none; }
.chip-accent { background: var(--accent-soft); color: var(--accent-dark); border-color: #f2dbe1; }
.chip-sage   { background: var(--sage-soft); color: var(--sage); border-color: #dce7e1; }
.chip-gold   { background: var(--gold-soft); color: var(--gold); border-color: #ece0cb; }
.chip-plain  { background: transparent; }

.badge-off {
  display: inline-flex; align-items: center;
  padding: .22rem .55rem;
  border-radius: 7px;
  background: var(--accent); color: #fff;
  font-size: .76rem; font-weight: 700; letter-spacing: -0.01em;
}

.chip-row { display: flex; flex-wrap: wrap; gap: .45rem; }

/* ---------- 5.3 Estrellas (relleno exacto, no redondeado) ---------- */
.stars { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; color: var(--muted); }
.stars-ico { position: relative; display: inline-block; width: 74px; height: 14px; flex: none; }
.stars-row { position: absolute; left: 0; top: 0; display: flex; gap: 1px; }
.stars-row svg { width: 14px; height: 14px; flex: none; }
.stars-bg { color: #e2d7cf; }
.stars-fg { overflow: hidden; color: var(--gold); }
.stars b { color: var(--ink); font-weight: 600; }

/* ---------- 5.4 Precio ---------- */
.price { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.price-now { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.price-was { font-size: .9rem; color: var(--muted); text-decoration: line-through; }
.price-unit { font-size: .78rem; color: var(--muted); }
.price-note { font-size: .74rem; color: var(--muted); margin-top: .3rem; line-height: 1.4; }

/* ---------- 5.5 Tarjeta de producto ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2.2vw, 1.5rem);
}

.pcard {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s var(--ease-out);
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: #ddcec5; }

.pcard-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, var(--surface-2) 0%, var(--bg-alt) 100%);
  overflow: hidden;
}
.pcard-media img {
  width: 100%; height: 100%; object-fit: contain;
  padding: 12%;
  transition: transform .6s var(--ease-out);
}
.pcard:hover .pcard-media img { transform: scale(1.045); }

.pcard-flags {
  position: absolute; top: .8rem; left: .8rem; right: .8rem;
  display: flex; gap: .4rem; flex-wrap: wrap; align-items: flex-start;
  pointer-events: none;
}
.pcard-flags .chip { background: rgba(255,255,255,.92); backdrop-filter: blur(6px); }

.pcard-body { padding: 1.1rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.pcard-brand { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.pcard-title { font-size: 1.1rem; line-height: 1.22; }
.pcard-title a:hover { color: var(--accent); }
.pcard-desc { font-size: .88rem; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-foot { margin-top: auto; padding-top: .85rem; display: flex; flex-direction: column; gap: .75rem; }
.pcard-actions { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }

.pcard-scores { display: flex; flex-direction: column; gap: .3rem; padding-top: .2rem; }
.pcard-score { display: grid; grid-template-columns: 88px 1fr 22px; align-items: center; gap: .5rem; font-size: .74rem; color: var(--muted); }
.pcard-score b { color: var(--ink-2); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

.meter { height: 5px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.meter-sage span { background: var(--sage); }

/* Casilla comparar */
.cmp-toggle {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .8rem; font-weight: 600; color: var(--muted);
  padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface);
  transition: all .25s var(--ease-out);
  white-space: nowrap;
}
.cmp-toggle svg { width: 1em; height: 1em; flex: none; }
.cmp-toggle:hover { border-color: var(--ink); color: var(--ink); }
.cmp-toggle[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- 5.6 Tabla de especificaciones ---------- */
.spec-block + .spec-block { margin-top: 1.6rem; }
.spec-block h3 {
  font-family: var(--sans); font-size: .76rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  margin-bottom: .6rem;
}
.spec-table { font-size: .92rem; }
.spec-table tr { border-bottom: 1px solid var(--line-2); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table th {
  text-align: left; font-weight: 500; color: var(--muted);
  padding: .62rem .8rem .62rem 0; width: 46%; vertical-align: top;
}
.spec-table td { padding: .62rem 0; color: var(--ink); font-weight: 500; vertical-align: top; }
.spec-null { color: #b8aaa3 !important; font-weight: 400 !important; }

.spec-grid { display: grid; gap: 1.6rem; align-items: start; }
.spec-grid .spec-block + .spec-block { margin-top: 0; }

/* ---------- 5.7 Radar ---------- */
.radar-wrap { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.radar { width: 100%; max-width: 460px; height: auto; }
.radar-note { font-size: .74rem; color: var(--muted); text-align: center; }

.radar-legend { display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: center; margin-top: .3rem; }
.radar-legend span { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.radar-legend i { width: 11px; height: 11px; border-radius: 3px; flex: none; }

/* ---------- 5.8 Pros / contras ---------- */
.pc-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.pc-col {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem 1.2rem;
}
.pc-col h3 {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: .75rem;
}
.pc-col h3 svg { width: 1.15em; height: 1.15em; flex: none; }
.pc-pros h3 { color: var(--ok); }
.pc-cons h3 { color: var(--warn); }
.pc-col ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.pc-col li { display: flex; gap: .55rem; font-size: .91rem; line-height: 1.5; }
.pc-col li svg { width: 1.05em; height: 1.05em; flex: none; margin-top: .28em; }
.pc-pros li svg { color: var(--ok); }
.pc-cons li svg { color: var(--warn); }

/* ---------- 5.9 Cita / destacado ---------- */
.callout {
  background: var(--accent-soft);
  border: 1px solid #f2dbe1;
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  display: flex; gap: .85rem; align-items: flex-start;
}
.callout svg { width: 1.3rem; height: 1.3rem; flex: none; color: var(--accent); margin-top: .1rem; }
.callout p { font-size: .95rem; color: var(--ink); }
.callout strong { display: block; font-weight: 700; margin-bottom: .15rem; }
.callout-sage { background: var(--sage-soft); border-color: #dce7e1; }
.callout-sage svg { color: var(--sage); }
.callout-plain { background: var(--surface); border-color: var(--line); }
.callout-plain svg { color: var(--muted); }

/* ---------- 5.10 Reseñas ---------- */
.rev-grid { display: grid; grid-template-columns: 1fr; gap: .9rem; }
.rev {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem 1.1rem;
}
.rev-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .5rem; }
.rev-author { font-weight: 600; font-size: .9rem; color: var(--ink); }
.rev-date { font-size: .78rem; color: var(--muted); }
.rev h4 { font-family: var(--sans); font-size: .93rem; font-weight: 700; color: var(--ink); margin-bottom: .35rem; }
.rev p { font-size: .89rem; color: var(--ink-2); line-height: 1.55; }
.rev-verified { display: inline-flex; align-items: center; gap: .28rem; font-size: .72rem; color: var(--ok); font-weight: 600; }
.rev-verified svg { width: 1em; height: 1em; flex: none; }

/* ---------- 5.11 Navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 500;
  background: rgba(250, 246, 243, .82);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease-out), background .3s var(--ease-out);
}
@supports (backdrop-filter: blur(14px)) {
  .nav { background: rgba(250, 246, 243, .72); backdrop-filter: blur(14px) saturate(160%); }
}
.nav.is-stuck { box-shadow: 0 1px 16px rgba(36, 29, 28, .07); }

.nav-inner {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

.logo { display: inline-flex; align-items: baseline; gap: .5rem; }
.logo-mark {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 600;
  color: var(--ink); letter-spacing: -0.02em;
}
.logo-mark em { font-style: normal; color: var(--accent); }
.logo-sub { font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; color: #a2938c; font-weight: 600; }

.nav-links { display: none; align-items: center; gap: .35rem; list-style: none; }
.nav-links > li > a {
  display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap;
  padding: .5rem .7rem; border-radius: 8px;
  font-size: .89rem; font-weight: 500; color: var(--ink-2);
  transition: color .25s var(--ease-out), background .25s var(--ease-out);
}
.nav-links > li > a:hover { color: var(--ink); background: rgba(36,29,28,.045); }
.nav-links > li > a[aria-current="page"] { color: var(--accent); font-weight: 600; }

/* El CTA del menú necesita ganar en especificidad a `.nav-links > li > a` */
.nav-links > li > a.nav-cta,
.nav-links > li > a.nav-cta:hover {
  background: var(--ink); color: #fff; border-radius: 999px;
  padding: .55rem 1rem; font-weight: 600;
}
.nav-links > li > a.nav-cta:hover { background: #000; }
.nav-cta .cmp-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px;
  background: var(--accent); color: #fff;
  font-size: .7rem; font-weight: 700; line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* Desplegable de categorías — <details> para que funcione sin JS */
.nav-has-drop { position: relative; }
.nav-drop > summary {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .5rem .7rem; border-radius: 8px;
  font-size: .89rem; font-weight: 500; color: var(--ink-2);
  cursor: pointer; list-style: none; white-space: nowrap;
  transition: color .25s var(--ease-out), background .25s var(--ease-out);
}
.nav-drop > summary::-webkit-details-marker { display: none; }
.nav-drop > summary:hover { color: var(--ink); background: rgba(36,29,28,.045); }
.nav-drop > summary[aria-current="page"] { color: var(--accent); font-weight: 600; }
.nav-drop > summary svg { width: .9em; height: .9em; flex: none; transition: transform .25s var(--ease-out); }
.nav-drop[open] > summary svg { transform: rotate(180deg); }

.nav-drop-panel {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 60;
  min-width: 232px; padding: .45rem;
  list-style: none; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--sh-2);
}
.nav-drop-panel li { display: block; }
.nav-drop-panel a {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  padding: .52rem .7rem; border-radius: 9px;
  font-size: .89rem; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  transition: background .2s var(--ease-out), color .2s var(--ease-out);
}
.nav-drop-panel a:hover { background: var(--bg-alt); color: var(--ink); }
.nav-drop-panel a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.cat-count {
  font-size: .72rem; font-weight: 600; color: var(--muted);
  background: var(--bg-alt); border-radius: 999px; padding: .08rem .4rem;
  font-variant-numeric: tabular-nums;
}
.nav-drop-panel a:hover .cat-count { background: var(--surface); }

/* En el cajón móvil el mismo marcado se muestra como lista normal */
.nav-drawer .cat-count { float: right; background: var(--bg-alt); }

.nav-burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface);
}
.nav-burger svg { width: 20px; height: 20px; flex: none; }

.nav-drawer {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: .8rem var(--gutter) 1.3rem;
}
.nav-drawer.is-open { display: block; }
.nav-drawer ul { list-style: none; display: flex; flex-direction: column; }
.nav-drawer a {
  display: block; padding: .72rem .2rem;
  font-size: 1rem; font-weight: 500; color: var(--ink-2);
  border-bottom: 1px solid var(--line-2);
}
.nav-drawer a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.nav-drawer .btn { margin-top: 1rem; }

/* ---------- 5.12 Pie ---------- */
.footer { background: var(--ink); color: #cfc4bf; padding-block: clamp(2.6rem, 5vw, 4rem) 2rem; margin-top: clamp(3rem, 6vw, 5rem); }
.footer a { color: #cfc4bf; }
.footer a:hover { color: #fff; }
.footer .logo-mark { color: #fff; }
.footer .logo-sub { color: #9b8d87; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.footer h4 { font-family: var(--sans); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: .8rem; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; font-size: .9rem; }
.footer-tag { font-size: .9rem; margin-top: .8rem; max-width: 34ch; line-height: 1.6; }
.footer-legal {
  margin-top: 2.4rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12);
  font-size: .8rem; line-height: 1.65; color: #a89b95;
  display: flex; flex-direction: column; gap: .7rem;
}

/* ---------- 5.13 Aviso de afiliados ---------- */
.aff-note {
  display: flex; gap: .6rem; align-items: flex-start;
  font-size: .78rem; line-height: 1.55; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 12px; padding: .8rem .95rem;
}
.aff-note svg { width: 1.05rem; height: 1.05rem; flex: none; color: var(--gold); margin-top: .12rem; }
.aff-note a { text-decoration: underline; text-underline-offset: 2px; }


/* ---------- 5.14 Migas ---------- */
.crumbs { font-size: .8rem; color: var(--muted); padding-top: 1.2rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.crumbs a:hover { color: var(--accent); }
.crumbs li + li::before { content: "›"; margin-right: .4rem; color: #c4b6ae; }

/* =============================================================
   6. SECCIONES
   ============================================================= */

/* ---------- 6.1 Hero ---------- */
.hero { position: relative; padding-top: clamp(2.2rem, 5vw, 4rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% 20% -10%;
  background:
    radial-gradient(38% 30% at 22% 42%, rgba(177, 70, 95, .13), transparent 70%),
    radial-gradient(34% 28% at 78% 30%, rgba(90, 125, 109, .12), transparent 72%);
  filter: blur(60px);
  pointer-events: none; z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.hero-copy .lede { margin-top: 1.1rem; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.7rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }

.hero-panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--sh-2);
  padding: 1.1rem;
}
.hero-panel-label {
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; color: var(--accent); margin-bottom: .8rem;
}
.hero-pick { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; align-items: center; }
.hero-pick-media {
  aspect-ratio: 1/1; border-radius: 12px; overflow: hidden;
  background: linear-gradient(160deg, var(--surface-2), var(--bg-alt));
}
.hero-pick-media img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.hero-pick h3 { font-size: 1.05rem; line-height: 1.2; margin-bottom: .3rem; }
.hero-pick .price-now { font-size: 1.3rem; }
.hero-panel-foot { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line-2); display: grid; gap: .55rem; }

/* ---------- 6.2 Cifras / metodología ---------- */
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--surface); padding: 1.1rem 1rem; }
.stat b { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--ink); line-height: 1; margin-bottom: .3rem; }
.stat span { font-size: .8rem; color: var(--muted); line-height: 1.4; display: block; }

.method-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.method {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem 1.3rem 1.4rem;
}
.method-ico {
  width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
  margin-bottom: .85rem;
}
.method-ico svg { width: 19px; height: 19px; flex: none; }
.method h3 { font-size: 1.05rem; margin-bottom: .45rem; }
.method p { font-size: .89rem; color: var(--muted); line-height: 1.55; }

/* ---------- 6.3 Categorías ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.cat {
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.4rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.05rem 1.1rem; min-height: 118px;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s var(--ease-out);
}
a.cat:hover { transform: translateY(-2px); box-shadow: var(--sh-1); border-color: #ddcec5; }
.cat h3 { font-size: 1.02rem; }
.cat-meta { font-size: .76rem; color: var(--muted); display: flex; align-items: center; gap: .35rem; }
.cat-meta svg { width: 1em; height: 1em; flex: none; }
.cat-soon { opacity: .58; }

/* ---------- 6.4 Guías ---------- */
.guide-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.guide {
  display: flex; flex-direction: column; gap: .55rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.3rem 1.35rem 1.45rem;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s var(--ease-out);
}
a.guide:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: #ddcec5; }
.guide h3 { font-size: 1.14rem; line-height: 1.24; }
.guide p { font-size: .88rem; color: var(--muted); line-height: 1.5; }
.guide-more { margin-top: auto; padding-top: .6rem; font-size: .82rem; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: .35rem; }
.guide-more svg { width: 1em; height: 1em; flex: none; transition: transform .3s var(--ease-out); }
a.guide:hover .guide-more svg { transform: translateX(3px); }

/* ---------- 6.5 Ficha de producto ---------- */
.ficha-top { display: grid; grid-template-columns: 1fr; gap: clamp(1.6rem, 3.5vw, 3rem); padding-top: 1.4rem; }

.gallery { display: flex; flex-direction: column; gap: .7rem; }
.gallery-main {
  aspect-ratio: 1/1; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(160deg, var(--surface-2), var(--bg-alt));
  border: 1px solid var(--line);
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 7%; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; }
.gallery-thumb {
  aspect-ratio: 1/1; border-radius: 10px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  padding: 0; transition: border-color .25s var(--ease-out), transform .25s var(--ease-out);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.gallery-thumb:hover { border-color: #c9b8b0; transform: translateY(-1px); }
.gallery-thumb[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

.ficha-head h1 { margin-block: .5rem .7rem; }
.ficha-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.ficha-lede { margin-top: 1rem; color: var(--ink-2); font-size: 1rem; line-height: 1.6; }

.buy-box {
  margin-top: 1.4rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.15rem 1.2rem;
  box-shadow: var(--sh-1);
}
.buy-box .price-now { font-size: 2rem; }
.buy-box .btn { margin-top: .9rem; }
.buy-box .aff-note { margin-top: .8rem; }

.quick-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 1.2rem; }
.qf { background: var(--surface); padding: .8rem .9rem; }
.qf span { display: block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.qf b { font-size: .95rem; color: var(--ink); font-weight: 600; }

.score-panel { display: grid; grid-template-columns: 1fr; gap: 1.6rem; align-items: center; }
.score-list { display: flex; flex-direction: column; gap: .85rem; }
.score-row { display: grid; grid-template-columns: 1fr auto; gap: .3rem .8rem; }
.score-row .meter { grid-column: 1 / -1; }
.score-name { font-size: .88rem; font-weight: 600; color: var(--ink); }
.score-val { font-size: .88rem; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.score-desc { grid-column: 1 / -1; font-size: .77rem; color: var(--muted); line-height: 1.45; }

.similar-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }

/* ---------- 6.6 Comparador ---------- */
.cmp-picker {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.1rem 1.15rem 1.25rem;
}
.cmp-search {
  width: 100%; padding: .7rem .95rem; font-size: .95rem;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2);
  color: var(--ink); margin-bottom: .9rem;
}
.cmp-search:focus { outline: 2px solid var(--accent); outline-offset: 1px; background: #fff; }

.cmp-options { display: grid; grid-template-columns: 1fr; gap: .5rem; max-height: 340px; overflow-y: auto; }
.cmp-opt {
  display: grid; grid-template-columns: 46px 1fr auto; gap: .7rem; align-items: center;
  padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); text-align: left; width: 100%;
  transition: border-color .25s var(--ease-out), background .25s var(--ease-out);
}
.cmp-opt:hover { border-color: #c9b8b0; }
.cmp-opt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.cmp-opt img { width: 46px; height: 46px; object-fit: contain; border-radius: 8px; background: var(--bg-alt); padding: 3px; }
.cmp-opt-name { font-size: .88rem; font-weight: 600; color: var(--ink); line-height: 1.25; }
.cmp-opt-meta { font-size: .76rem; color: var(--muted); }
.cmp-opt-tick { width: 22px; height: 22px; border-radius: 999px; border: 1.5px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: transparent; flex: none; }
.cmp-opt-tick svg { width: 12px; height: 12px; flex: none; }
.cmp-opt[aria-pressed="true"] .cmp-opt-tick { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Los huecos seleccionados NO llevan overflow para que la ✕ pueda sobresalir */
.cmp-slots {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem;
  overflow: visible; padding: .55rem .55rem 0;
}
.slot-wrap { position: relative; overflow: visible; }
.slot {
  display: flex; flex-direction: column; gap: .4rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: .6rem;
}
.slot-thumb { aspect-ratio: 1/1; border-radius: 10px; overflow: hidden; background: var(--bg-alt); }
.slot-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.slot-name { font-size: .78rem; font-weight: 600; color: var(--ink); line-height: 1.25; }
.slot-empty {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 130px; border: 1.5px dashed var(--line);
  border-radius: 14px; color: #b5a69f; font-size: .8rem; padding: .8rem;
}
.slot-remove {
  position: absolute; top: -7px; right: -7px; z-index: 3;
  width: 24px; height: 24px; border-radius: 999px;
  background: var(--ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.22);
  transition: background .25s var(--ease-out), transform .25s var(--ease-out);
}
.slot-remove svg { width: 11px; height: 11px; flex: none; }
.slot-remove:hover { background: var(--accent); transform: scale(1.08); }

.cmp-empty {
  text-align: center; padding: clamp(2.5rem, 6vw, 4rem) 1.2rem;
  background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius-lg);
}
.cmp-empty svg { width: 34px; height: 34px; margin: 0 auto .8rem; color: #cbbcb4; }

.cmp-scroll { overflow-x: auto; overflow-y: visible; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.cmp-table { min-width: 620px; font-size: .89rem; }
.cmp-table th, .cmp-table td { padding: .72rem .85rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); }
.cmp-table thead th { position: sticky; top: 0; background: var(--surface); z-index: 2; border-bottom: 1px solid var(--line); }
.cmp-table tbody th { font-weight: 500; color: var(--muted); width: 190px; background: var(--surface-2); }
.cmp-table td { color: var(--ink); font-weight: 500; }
.cmp-table tr.cmp-group th {
  background: var(--bg-alt); color: var(--accent); font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
}
.cmp-best { background: #f2f8f4; }
.cmp-best::after { content: "mejor"; display: inline-block; margin-left: .45rem; font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ok); vertical-align: middle; }
.cmp-head-cell { display: flex; flex-direction: column; gap: .45rem; min-width: 160px; }
.cmp-head-cell img { width: 62px; height: 62px; object-fit: contain; background: var(--bg-alt); border-radius: 10px; padding: 4px; }
.cmp-head-cell strong { font-size: .92rem; line-height: 1.25; color: var(--ink); }

/* ---------- 6.7 Ofertas ---------- */
.deal-strip {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  background: var(--ink); color: #f5efec;
  border-radius: var(--radius-lg); padding: 1.1rem 1.3rem;
}
.deal-strip svg { width: 1.2rem; height: 1.2rem; flex: none; color: #f0a5b6; }
.deal-strip p { font-size: .93rem; }
.deal-strip strong { color: #fff; }
.deal-strip .btn { margin-left: auto; }

/* ---------- 6.8 Página legal ---------- */
.legal-head { padding-top: clamp(1.6rem, 4vw, 2.6rem); }
.legal-updated { font-size: .82rem; color: var(--muted); margin-top: .6rem; }

/* ---------- 6.9 Estado vacío / listado ---------- */
.list-tools { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1.4rem; }
.list-tools label { font-size: .82rem; color: var(--muted); font-weight: 600; }
.select {
  padding: .5rem .8rem; font-size: .86rem; font-weight: 500;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink);
}
.filter-btn {
  padding: .45rem .85rem; font-size: .82rem; font-weight: 600;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2);
  transition: all .25s var(--ease-out);
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* =============================================================
   7. EFECTOS
   ============================================================= */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
[data-reveal].is-revealed { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .07s; }
[data-reveal][data-delay="2"] { transition-delay: .14s; }
[data-reveal][data-delay="3"] { transition-delay: .21s; }

/* Sin JS todo debe verse: el propio JS marca el documento */
html:not(.js) [data-reveal] { opacity: 1; transform: none; }

.radar-poly { transition: opacity .4s var(--ease-out); }

/* =============================================================
   8. RESPONSIVE (mobile-first)
   ============================================================= */
@media (min-width: 540px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .pc-grid { grid-template-columns: repeat(2, 1fr); }
  .rev-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(4, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .cmp-slots { grid-template-columns: repeat(4, 1fr); }
  .similar-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 720px) {
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .method-grid { grid-template-columns: repeat(3, 1fr); }
  .quick-facts { grid-template-columns: repeat(4, 1fr); }
  .cmp-options { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1120px) {
  .nav-links { display: flex; }
  .nav-burger { display: none; }
  .nav-drawer { display: none !important; }
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
  .ficha-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .guide-grid { grid-template-columns: repeat(3, 1fr); }
  .score-panel { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 2.5rem; }
  .similar-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px) {
  .cat-grid { grid-template-columns: repeat(6, 1fr); }
}

/* Ficha: la columna derecha se queda fija en pantallas grandes */
@media (min-width: 1024px) {
  .ficha-sticky { position: sticky; top: calc(var(--nav-h) + 20px); }
}

/* =============================================================
   9. REDUCED MOTION — solo lo intrusivo
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { transition-duration: .01ms; opacity: 1; transform: none; }
}

/* Impresión */
@media print {
  .nav, .footer, .btn, .cmp-picker { display: none !important; }
  body { background: #fff; }
}
