/* ==========================================================================
   Comparamóvil — hoja de estilos única
   Secciones: 1 tokens · 2 base · 3 layout · 4 cabecera · 5 hero · 6 tarjetas
   7 ficha · 8 radar · 9 comparador · 10 filtros · 11 guías · 12 pie
   13 utilidades · 14 responsive · 15 impresión
   ========================================================================== */

/* 1 ── TOKENS ───────────────────────────────────────────────────────────── */
:root {
  --bg:        #0A0C11;
  --bg-2:      #10131B;
  --bg-3:      #171C28;
  --bg-4:      #1F2534;
  --line:      rgba(255,255,255,.08);
  --line-2:    rgba(255,255,255,.14);
  --txt:       #E9EDF5;
  --txt-2:     #98A2B7;
  --txt-3:     #6B7488;
  --accent:    #5B8CFF;
  --accent-so: #7BA4FF;
  --accent-dim: rgba(91,140,255,.14);
  --good:      #2DD4A7;
  --good-dim:  rgba(45,212,167,.13);
  --warn:      #FFB020;
  --hot:       #FF5C7A;

  --r-s: 8px; --r-m: 14px; --r-l: 22px; --r-xl: 30px;
  --sp: clamp(1rem, 4vw, 2rem);
  --maxw: 1200px;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 18px 40px -22px rgba(0,0,0,.9);
  --font-d: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-b: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* 2 ── BASE ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {                                   /* halo de fondo, muy sutil */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60rem 40rem at 12% -10%, rgba(91,140,255,.10), transparent 60%),
    radial-gradient(50rem 36rem at 92% 4%, rgba(45,212,167,.07), transparent 62%);
}
h1, h2, h3, h4 { font-family: var(--font-d); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.45rem); }
p  { margin: 0 0 1em; }
a  { color: var(--accent-so); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul, ol { padding-left: 1.15em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* 3 ── LAYOUT ───────────────────────────────────────────────────────────── */
.wrap { width: min(100% - 2rem, var(--maxw)); margin-inline: auto; position: relative; z-index: 1; }
.wrap--narrow { width: min(100% - 2rem, 800px); }
main { display: block; padding-bottom: 4rem; }
section { margin: clamp(2.5rem, 7vw, 5rem) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.section-head p { color: var(--txt-2); margin: .2rem 0 0; max-width: 60ch; }
.eyebrow {
  font-family: var(--font-d); font-size: .74rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent-so);
  display: block; margin-bottom: .5rem;
}
.lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--txt-2); max-width: 66ch; }

/* 4 ── CABECERA ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10,12,17,.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__in { display: flex; align-items: center; gap: 1rem; height: 66px; }
.logo { display: flex; align-items: center; gap: .55rem; font-family: var(--font-d); font-weight: 700; font-size: 1.13rem; color: var(--txt); letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo__mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: linear-gradient(145deg, var(--accent), #8E6BFF);
  display: grid; place-items: center; font-size: .85rem; color: #fff;
  box-shadow: 0 4px 14px rgba(91,140,255,.35);
}
.nav { margin-left: auto; display: flex; align-items: center; gap: .3rem; }
.nav a {
  color: var(--txt-2); font-size: .92rem; font-weight: 500;
  padding: .5rem .7rem; border-radius: var(--r-s); transition: color .2s, background .2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--txt); background: var(--bg-3); text-decoration: none; }
.nav__cta { background: var(--accent) !important; color: #06080d !important; font-weight: 650; padding: .5rem .95rem !important; }
.nav__cta:hover { background: var(--accent-so) !important; }
.nav-toggle {
  margin-left: auto; display: none; background: var(--bg-3); border: 1px solid var(--line);
  color: var(--txt); width: 42px; height: 38px; border-radius: var(--r-s); cursor: pointer;
  font-size: 1.05rem; line-height: 1;
}

/* 5 ── HERO ─────────────────────────────────────────────────────────────── */
.hero { padding: clamp(2.5rem, 8vw, 5.5rem) 0 clamp(2rem, 5vw, 3rem); }
.hero__grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--accent-so), var(--good)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 1.8rem; margin-top: 2.2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.hero__stat b { font-family: var(--font-d); font-size: 1.5rem; display: block; line-height: 1.1; }
.hero__stat span { font-size: .8rem; color: var(--txt-3); }
.hero__panel {
  background: linear-gradient(170deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(1.2rem, 3vw, 1.8rem); box-shadow: var(--shadow);
}
.hero__panel h3 { font-size: 1rem; margin-bottom: 1rem; color: var(--txt-2); font-weight: 600; }

/* 6 ── BOTONES Y ETIQUETAS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-b); font-weight: 650; font-size: .95rem;
  padding: .78rem 1.35rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s var(--ease), background .2s, border-color .2s;
  text-align: center; line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--amazon { background: linear-gradient(180deg, #FFB84D, #F79400); color: #221500; box-shadow: 0 8px 22px -10px rgba(247,148,0,.8); }
.btn--amazon:hover { background: linear-gradient(180deg, #FFC66B, #FFA318); }
.btn--primary { background: var(--accent); color: #06080d; }
.btn--primary:hover { background: var(--accent-so); }
.btn--ghost { background: var(--bg-3); color: var(--txt); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--bg-4); }
.btn--block { display: flex; width: 100%; }
.btn--sm { padding: .5rem .9rem; font-size: .85rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }

.tag {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .72rem; font-weight: 650; letter-spacing: .04em;
  padding: .25rem .6rem; border-radius: 999px; border: 1px solid var(--line-2);
  color: var(--txt-2); background: var(--bg-3); white-space: nowrap;
}
.tag--offer { color: #05130f; background: var(--good); border-color: transparent; }
.tag--demo  { color: var(--warn); border-color: rgba(255,176,32,.4); background: rgba(255,176,32,.10); }
.tag--best  { color: #05130f; background: var(--good); border-color: transparent; }
.tag--brand { color: var(--accent-so); border-color: rgba(91,140,255,.35); background: var(--accent-dim); }

/* 7 ── TARJETAS DE PRODUCTO ─────────────────────────────────────────────── */
.grid-cards { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-l);
  overflow: hidden; transition: transform .25s var(--ease), border-color .25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.card__media { position: relative; aspect-ratio: 4 / 3; background: var(--bg-3); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; transition: transform .4s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__flags { position: absolute; top: .7rem; left: .7rem; display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; z-index: 2; }
.card__body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; flex: 1; gap: .55rem; }
.card__brand { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--txt-3); font-weight: 600; }
.card__title { font-family: var(--font-d); font-size: 1.06rem; font-weight: 650; margin: 0; line-height: 1.25; }
.card__title a { color: var(--txt); }
.card__claim { font-size: .87rem; color: var(--txt-2); margin: 0; }
.card__rating { display: flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--txt-2); }
.card__specs { display: flex; flex-wrap: wrap; gap: .3rem; margin: .1rem 0; }
.card__specs span { font-size: .74rem; color: var(--txt-2); background: var(--bg-3); border: 1px solid var(--line); padding: .18rem .5rem; border-radius: 6px; }
.card__foot { margin-top: auto; padding-top: .7rem; display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.card__actions { display: flex; gap: .45rem; width: 100%; }
.card__actions .btn { flex: 1; }

.price { display: flex; align-items: baseline; gap: .45rem; flex-wrap: wrap; }
.price__now { font-family: var(--font-d); font-size: 1.3rem; font-weight: 700; }
.price__was { font-size: .88rem; color: var(--txt-3); text-decoration: line-through; }
.price__off { font-size: .74rem; font-weight: 700; color: var(--good); }
.price__note { font-size: .7rem; color: var(--txt-3); display: block; margin-top: .1rem; }

.stars { color: var(--warn); letter-spacing: .06em; font-size: .85rem; }

/* 8 ── FICHA ────────────────────────────────────────────────────────────── */
.crumbs { font-size: .8rem; color: var(--txt-3); margin: 1.2rem 0 1.4rem; }
.crumbs a { color: var(--txt-2); }
.crumbs span { margin: 0 .35rem; opacity: .5; }

.ficha__top { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.gallery__main {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-l);
  aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden;
}
.gallery__main img { width: 100%; height: 100%; object-fit: contain; padding: 1.5rem; }
.gallery__thumbs { display: flex; gap: .6rem; margin-top: .7rem; flex-wrap: wrap; }
.gallery__thumbs button {
  width: 68px; height: 68px; padding: .3rem; cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-m);
  transition: border-color .2s;
}
.gallery__thumbs button[aria-selected="true"] { border-color: var(--accent); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }

.ficha__headline h1 { margin-bottom: .3em; }
.ficha__meta { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.buybox {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-l);
  padding: 1.2rem; margin: 1.2rem 0;
}
.buybox .price__now { font-size: 2rem; }
.buybox__actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.buybox__actions .btn { flex: 1 1 190px; }
.buybox__legal { font-size: .74rem; color: var(--txt-3); margin: .9rem 0 0; }

.panel {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-l); padding: clamp(1.1rem, 3vw, 1.8rem);
}
.panel + .panel { margin-top: 1.2rem; }
.panel > h2, .panel > h3 { margin-top: 0; }

.spec-group { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1.2rem; }
.spec-group:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.spec-group h3 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-so); margin-bottom: .7rem; }
.spec-list { display: grid; grid-template-columns: 1fr; gap: 0; }
.spec-list div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.spec-list div:last-child { border-bottom: 0; }
.spec-list dt, .spec-list .k { color: var(--txt-2); }
.spec-list dd, .spec-list .v { margin: 0; font-weight: 600; text-align: right; }
.spec-list .v--empty { color: var(--txt-3); font-weight: 400; }

.proscons { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.proscons ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.proscons li { display: flex; gap: .6rem; font-size: .93rem; align-items: flex-start; }
.proscons li::before { flex: none; font-weight: 700; line-height: 1.5; }
.pros li::before { content: "+"; color: var(--good); }
.contras li::before { content: "−"; color: var(--hot); }
.proscons h3 { font-size: .95rem; margin-bottom: .7rem; }

.ideal {
  border-left: 3px solid var(--accent); background: var(--accent-dim);
  padding: .9rem 1.1rem; border-radius: 0 var(--r-m) var(--r-m) 0; margin: 1.2rem 0 0;
}
.ideal strong { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-so); margin-bottom: .25rem; }
.ideal p { margin: 0; }

.editorial p { color: #C9D2E2; }
.editorial p:last-child { margin-bottom: 0; }

.empty-state {
  border: 1px dashed var(--line-2); border-radius: var(--r-m);
  padding: 1.1rem; color: var(--txt-2); font-size: .9rem; text-align: center;
}

/* 9 ── RADAR ────────────────────────────────────────────────────────────── */
.radar { position: relative; }
.radar canvas { width: 100%; height: auto; display: block; }
.radar__legend { display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: center; margin-top: .6rem; font-size: .82rem; }
.radar__legend span { display: inline-flex; align-items: center; gap: .4rem; color: var(--txt-2); }
.radar__legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.radar__note { font-size: .74rem; color: var(--txt-3); text-align: center; margin: .5rem 0 0; }
.scorebars { display: grid; gap: .55rem; margin-top: 1rem; }
.scorebar { display: grid; grid-template-columns: 7.5rem 1fr 2rem; gap: .6rem; align-items: center; font-size: .85rem; }
.scorebar .track { height: 6px; border-radius: 999px; background: var(--bg-4); overflow: hidden; }
.scorebar .fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--good)); width: 0; transition: width .8s var(--ease); }
.scorebar b { font-family: var(--font-d); text-align: right; }

/* 10 ── COMPARADOR ──────────────────────────────────────────────────────── */
.cmp-picker { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-bottom: 1.5rem; }
.cmp-slot {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-m);
  padding: .85rem; display: flex; flex-direction: column; gap: .6rem; min-height: 132px;
}
.cmp-slot--empty { border-style: dashed; align-items: center; justify-content: center; color: var(--txt-3); text-align: center; }
.cmp-slot__head { display: flex; gap: .7rem; align-items: center; }
.cmp-slot__head img { width: 46px; height: 46px; object-fit: contain; flex: none; background: var(--bg-3); border-radius: 8px; }
.cmp-slot__name { font-size: .9rem; font-weight: 650; line-height: 1.25; }
.cmp-remove { background: none; border: 0; color: var(--txt-3); cursor: pointer; font-size: 1.1rem; line-height: 1; padding: .2rem; margin-left: auto; }
.cmp-remove:hover { color: var(--hot); }

.cmp-search { position: relative; margin-bottom: 1.2rem; }
.cmp-search input, .filters input, .filters select {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--txt);
  border-radius: var(--r-m); padding: .78rem 1rem; font-family: var(--font-b); font-size: .95rem;
}
.cmp-search input::placeholder { color: var(--txt-3); }
.cmp-results {
  position: absolute; top: calc(100% + .4rem); left: 0; right: 0; z-index: 30;
  background: var(--bg-3); border: 1px solid var(--line-2); border-radius: var(--r-m);
  max-height: 300px; overflow-y: auto; box-shadow: var(--shadow); display: none;
}
.cmp-results.is-open { display: block; }
.cmp-results button {
  display: flex; gap: .7rem; align-items: center; width: 100%; text-align: left;
  background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--txt);
  padding: .6rem .8rem; cursor: pointer; font-size: .9rem; font-family: var(--font-b);
}
.cmp-results button:hover { background: var(--bg-4); }
.cmp-results button:disabled { opacity: .45; cursor: not-allowed; }
.cmp-results img { width: 34px; height: 34px; object-fit: contain; flex: none; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--bg-2); -webkit-overflow-scrolling: touch; }
table.cmp { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .9rem; }
table.cmp th, table.cmp td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.cmp thead th { position: sticky; top: 0; background: var(--bg-3); z-index: 5; font-family: var(--font-d); font-size: .88rem; }
table.cmp thead th:first-child { z-index: 6; }
table.cmp tbody th { font-weight: 500; color: var(--txt-2); position: sticky; left: 0; background: var(--bg-2); min-width: 160px; }
table.cmp td { font-weight: 600; }
table.cmp tr.group-row th { background: var(--bg-3); color: var(--accent-so); font-family: var(--font-d); font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; }
table.cmp td.is-best { color: var(--good); position: relative; }
table.cmp td.is-best::after { content: "mejor"; font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; margin-left: .4rem; opacity: .8; }
table.cmp td.is-empty { color: var(--txt-3); font-weight: 400; }
.cmp-head-card { display: flex; flex-direction: column; gap: .45rem; min-width: 165px; }
.cmp-head-card img { width: 100%; max-width: 110px; height: 78px; object-fit: contain; }

.compare-tray {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: rgba(16,19,27,.95); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-2); padding: .7rem 0;
  transform: translateY(105%); transition: transform .3s var(--ease);
}
.compare-tray.is-visible { transform: translateY(0); }
.compare-tray__in { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.compare-tray__items { display: flex; gap: .5rem; flex: 1; flex-wrap: wrap; }
.compare-tray__chip { display: flex; align-items: center; gap: .4rem; background: var(--bg-3); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .5rem .3rem .3rem; font-size: .8rem; }
.compare-tray__chip img { width: 26px; height: 26px; object-fit: contain; border-radius: 50%; background: var(--bg-4); }

/* 11 ── FILTROS Y LISTADOS ──────────────────────────────────────────────── */
.filters { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.5rem; }
.filters label { font-size: .82rem; color: var(--txt-3); display: flex; flex-direction: column; gap: .3rem; }
.filters select, .filters input { min-width: 160px; padding: .55rem .7rem; }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.chips a {
  font-size: .85rem; padding: .45rem .9rem; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--txt-2); background: var(--bg-2);
}
.chips a:hover, .chips a[aria-current="page"] { color: var(--txt); border-color: var(--accent); background: var(--accent-dim); text-decoration: none; }
.count { font-size: .85rem; color: var(--txt-3); }

/* 12 ── GUÍAS / ARTÍCULO ────────────────────────────────────────────────── */
.article { font-size: 1.03rem; }
.article h2 { margin-top: 2.2rem; }
.article ul.datos-titular { list-style: none; padding: 1rem 1.15rem; margin: 1.2rem 0;
  display: grid; gap: .5rem; border: 1px solid var(--line);
  background: var(--bg-2); border-radius: var(--r-m); }
.article ul.datos-titular > li { display: flex; flex-wrap: wrap; gap: .15rem .6rem; }
.article ul.datos-titular strong { flex: 0 0 auto; color: var(--txt-2); font-weight: 600; }
@media (min-width: 620px) { .article ul.datos-titular strong { flex-basis: 9.5em; } }
.article ol.ranking { list-style: none; padding: 0; counter-reset: r; display: grid; gap: 1.1rem; }
.article ol.ranking > li { counter-increment: r; }
.rank-item {
  display: grid; gap: 1rem; grid-template-columns: 1fr; align-items: center;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-l); padding: 1.1rem;
}
.rank-item__num {
  font-family: var(--font-d); font-size: 1.05rem; font-weight: 700; color: #06080d;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--accent-so), var(--good)); flex: none;
}
.rank-item img { width: 100%; max-width: 130px; height: 110px; object-fit: contain; margin-inline: auto; }
.rank-item h3 { margin: 0 0 .3rem; display: flex; align-items: center; gap: .6rem; }
.rank-item p { margin: 0 0 .7rem; color: var(--txt-2); font-size: .92rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-m); padding: .9rem 1.1rem; background: var(--bg-2); margin-bottom: .7rem; }
.faq summary { cursor: pointer; font-weight: 650; font-family: var(--font-d); }
.faq details[open] summary { margin-bottom: .6rem; }
.faq p { margin: 0; color: var(--txt-2); }

.cat-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.cat-card {
  display: block; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--r-l); padding: 1.2rem; transition: border-color .2s, transform .2s var(--ease);
}
.cat-card:hover { border-color: var(--accent); transform: translateY(-3px); text-decoration: none; }
.cat-card h3 { font-size: 1.05rem; margin-bottom: .3rem; color: var(--txt); }
.cat-card p { font-size: .85rem; color: var(--txt-2); margin: 0; }
.cat-card span { font-size: .75rem; color: var(--txt-3); }

/* 13 ── AVISOS / PIE ────────────────────────────────────────────────────── */
.disclosure {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r-m);
  padding: .8rem 1rem; font-size: .82rem; color: var(--txt-2); margin: 1.5rem 0;
}
.disclosure strong { color: var(--txt); }
.demo-banner {
  background: rgba(255,176,32,.10); border: 1px solid rgba(255,176,32,.35);
  color: #FFD489; border-radius: var(--r-m); padding: .8rem 1rem; font-size: .86rem; margin: 1.2rem 0;
}
.demo-banner strong { color: var(--warn); }

.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 3rem 0 2rem; margin-top: 4rem; position: relative; z-index: 1; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.site-footer h4 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--txt-3); margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer a { color: var(--txt-2); font-size: .9rem; }
.site-footer a:hover { color: var(--txt); }
.footer-legal { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.5rem; font-size: .8rem; color: var(--txt-3); }
.footer-legal p { margin: 0 0 .5rem; }

/* 14 ── ANIMACIÓN Y UTILIDADES ──────────────────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(18px); }
.is-ready [data-reveal] { transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.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; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-dim { color: var(--txt-2); }
.hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* 15 ── RESPONSIVE ──────────────────────────────────────────────────────── */
@media (min-width: 620px) {
  .proscons { grid-template-columns: 1fr 1fr; }
  .spec-list { grid-template-columns: 1fr 1fr; column-gap: 2rem; }
  .rank-item { grid-template-columns: 150px 1fr; }
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.15fr .85fr; }
  .ficha__top { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg-2); border-bottom: 1px solid var(--line-2); padding: .6rem; gap: .1rem;
    max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); margin-left: 0;
  }
  .nav.is-open { max-height: 70vh; overflow-y: auto; }
  .nav a { padding: .75rem .8rem; }
  .nav__cta { margin-top: .4rem; }
}
@media (max-width: 520px) {
  .card__actions { flex-direction: column; }
  .hero__stats { gap: 1.1rem; }
  .buybox__actions .btn { flex: 1 1 100%; }
}

/* 16 ── IMPRESIÓN ───────────────────────────────────────────────────────── */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .compare-tray, .btn { display: none !important; }
  .panel, .card { border-color: #ccc; }
}

/* ── comparativas cara a cara ───────────────────────────────────────────── */
.vs-sep { color: var(--accent); font-weight: 700; }
.vs-cards { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem;
  align-items: stretch; margin-top: 1.8rem; }
.vs-card { display: flex; flex-direction: column; gap: .6rem; text-align: center;
  padding: 1.3rem; }
.vs-card img { width: 100%; max-width: 210px; margin: 0 auto; height: auto;
  border-radius: var(--r-m); background: #fff; }
.vs-card h2 { font-size: 1.15rem; margin: 0; }
.vs-card__nota { color: var(--accent-so); font-weight: 600; margin: 0; }
.vs-card p { margin: 0; color: var(--txt-2); font-size: .95rem; }
.vs-card .btn { margin-top: auto; }
.vs-mid { align-self: center; font-family: var(--fuente-display, inherit);
  font-weight: 700; font-size: 1.4rem; color: var(--txt-3);
  border: 1px solid var(--line); border-radius: 999px; padding: .55rem .8rem; }
@media (max-width: 720px) {
  .vs-cards { grid-template-columns: 1fr; }
  .vs-mid { justify-self: center; }
}
.lista-versus { list-style: none; padding: 0; display: grid; gap: .55rem; }
.lista-versus > li { padding: .8rem 1rem; border: 1px solid var(--line);
  border-radius: var(--r-m); background: var(--bg-2); }
.lista-versus a { font-weight: 600; }

/* ── aviso de cookies ───────────────────────────────────────────────────── */
.cookie-aviso { position: fixed; inset: auto 0 0 0; z-index: 60; padding: 1rem;
  display: flex; justify-content: center; }
.cookie-aviso[hidden] { display: none; }
.cookie-aviso__caja { width: min(720px, 100%); background: var(--bg-2);
  border: 1px solid var(--line-2); border-radius: var(--r-l); padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow); }
.cookie-aviso h2 { font-size: 1.05rem; margin: 0 0 .5rem; }
.cookie-aviso p { margin: 0 0 1rem; color: var(--txt-2); font-size: .92rem; line-height: 1.55; }
.cookie-aviso__botones { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.cookie-aviso__mas { font-size: .88rem; color: var(--txt-2); margin-left: auto; }
.link-boton { background: none; border: 0; padding: 0; color: var(--txt-2);
  font: inherit; text-decoration: underline; cursor: pointer; }
.link-boton:hover { color: var(--accent-so); }
@media (max-width: 520px) {
  .cookie-aviso__mas { margin-left: 0; width: 100%; }
}

/* ── la foto del móvil lleva a su ficha ─────────────────────────────────── */
.media-enlace { display: block; cursor: pointer; }
.media-enlace img { transition: transform .35s ease; }
.card:hover .media-enlace img,
.media-enlace:hover img { transform: scale(1.04); }
.media-enlace:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px;
  border-radius: var(--r-m); }
.rank-item .media-enlace img,
.vs-card .media-enlace img { border-radius: var(--r-m); }
.cmp-head-card .media-enlace { margin: 0 auto; }
@media (prefers-reduced-motion: reduce) {
  .media-enlace img { transition: none; }
  .card:hover .media-enlace img,
  .media-enlace:hover img { transform: none; }
}
