/* =============================================================================
   Domoteca — hoja de estilos única, organizada por secciones.
   1. Tokens · 2. Reset · 3. Utilidades · 4. Tipografía · 5. Componentes
   6. Cabecera/nav · 7. Secciones · 8. Ficha · 9. Comparador · 10. Guía/Legal
   11. Pie · 12. Responsive · 13. Reduced-motion
   ========================================================================== */

/* ============================ 1. TOKENS ================================== */
:root {
  --ink:        #16181d;
  --ink-soft:   #494d58;
  --ink-faint:  #7b8090;
  --bg:         #faf8f3;
  --bg-alt:     #f2eee4;
  --surface:    #ffffff;
  --line:       #e7e1d3;
  --line-soft:  #efeae0;

  --accent:      #4338ca;
  --accent-deep: #322aa0;
  --accent-ink:  #ffffff;
  --accent-soft: #eef0ff;

  --good: #1c9c5f;
  --good-bg: #e7f6ee;
  --bad:  #d13b52;
  --bad-bg: #fdecef;
  --warn: #b9741a;
  --gold: #d9a441;

  --radius:   14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(20,20,30,.05), 0 2px 8px rgba(20,20,30,.05);
  --shadow-md: 0 4px 14px rgba(20,20,30,.07), 0 14px 40px rgba(20,20,30,.08);
  --shadow-lg: 0 10px 30px rgba(20,20,30,.10), 0 30px 70px rgba(20,20,30,.12);

  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.25, .46, .45, .94);

  --wrap: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.6rem);
  --nav-h: 68px;
}

/* ============================ 2. RESET =================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  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; }
input, select { font: inherit; color: inherit; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.12; letter-spacing: -.015em; font-weight: 600; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ============================ 3. UTILIDADES ============================= */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 999;
  padding: .6rem 1rem; background: var(--ink); color: #fff;
  border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.na, .specs .na { color: var(--ink-faint); }
.nota { font-size: .85rem; color: var(--ink-faint); margin-top: .6rem; }
.empty { color: var(--ink-faint); padding: 2rem 0; }
.is-hidden { display: none !important; }

/* ============================ 4. TIPOGRAFÍA ============================ */
h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 5vw, 3.15rem); font-optical-sizing: auto; }
h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.05rem); }
h3 { font-size: 1.06rem; }
.prose { max-width: 68ch; }
.prose p { margin-top: 1rem; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; margin-bottom: .3rem; }
.prose ul, .prose ol { margin: 1rem 0 1rem 1.2rem; }
.prose li { margin-top: .35rem; }

/* ============================ 5. COMPONENTES ========================== */
.btn {
  --_bg: var(--surface); --_fg: var(--ink); --_bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: .1rem;
  padding: .72rem 1.15rem; border-radius: var(--radius-sm);
  background: var(--_bg); color: var(--_fg);
  border: 1px solid var(--_bd);
  font-weight: 600; font-size: .93rem; letter-spacing: -.01em;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out),
              background .2s var(--ease-out), border-color .2s var(--ease-out);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn--primary, .btn--buy { --_bg: var(--accent); --_fg: var(--accent-ink); --_bd: var(--accent); }
.btn--primary:hover, .btn--buy:hover { --_bg: var(--accent-deep); --_bd: var(--accent-deep); }
.btn--ghost { --_bg: transparent; --_fg: var(--ink); --_bd: var(--line); }
.btn--ghost:hover { --_bd: var(--ink); }
.btn--lg { padding: .95rem 1.5rem; font-size: 1rem; width: 100%; }
.btn--sm { padding: .5rem .8rem; font-size: .82rem; }
.btn__amz { font-weight: 700; }

.rating { display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; }
.rating__stars { color: var(--gold); letter-spacing: .06em; }
.rating__num { font-weight: 700; }
.rating__count { color: var(--ink-faint); font-weight: 500; }

.precio { margin: .9rem 0; }
.precio__actual { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.precio__actual--na { font-size: 1.05rem; font-family: var(--sans); color: var(--accent); }
.precio__antes { margin-left: .5rem; color: var(--ink-faint); text-decoration: line-through; font-size: .95rem; }
.precio__badge {
  margin-left: .5rem; padding: .15rem .5rem; border-radius: 6px;
  background: var(--bad-bg); color: var(--bad); font-weight: 700; font-size: .8rem;
}
.precio__nota { display: block; margin-top: .3rem; font-size: .76rem; color: var(--ink-faint); }

/* --- Card --- */
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.6rem); }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-soft); }
.card__ribbon {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: .28rem .6rem; border-radius: 6px;
  background: var(--ink); color: #fff; font-size: .72rem; font-weight: 700;
  letter-spacing: .02em; max-width: calc(100% - 24px);
}
.card__media { display: block; aspect-ratio: 4 / 3; background: var(--bg-alt); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; transition: transform .5s var(--ease-out); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; gap: .5rem; padding: 1.1rem 1.15rem 1.25rem; flex: 1; }
.card__cat { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); }
.card__title { font-size: 1.02rem; line-height: 1.3; }
.card__title a:hover { color: var(--accent); }
.card__desc { font-size: .88rem; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__actions { display: flex; gap: .5rem; margin-top: auto; }
.card__actions .btn { flex: 1; padding-inline: .6rem; }
.card__compare {
  display: flex; align-items: center; gap: .5rem; margin-top: .3rem;
  font-size: .82rem; color: var(--ink-soft); cursor: pointer;
}
.card__compare input { width: 16px; height: 16px; accent-color: var(--accent); }

/* ============================ 6. CABECERA / NAV ====================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); background: color-mix(in srgb, var(--bg) 96%, transparent); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.14rem; letter-spacing: -.02em; }
.brand__mark { color: var(--accent); font-size: 1.15rem; }
.brand__name { font-family: var(--serif); font-weight: 600; }
.brand--footer { color: #fff; }
.brand--footer .brand__mark { color: #b9b2ff; }

.nav { display: flex; align-items: center; }
.nav__list { display: flex; align-items: center; gap: .3rem; list-style: none; }
.nav__list > li > a {
  display: inline-block; padding: .5rem .7rem; border-radius: 8px;
  font-size: .92rem; font-weight: 600; color: var(--ink-soft);
  transition: color .2s, background .2s;
}
.nav__list > li > a:hover { color: var(--ink); background: var(--bg-alt); }
.nav__list > li > a[aria-current="page"] { color: var(--accent); }
.nav__cta, .nav__list > li > a.nav__cta {
  margin-left: .4rem; padding: .55rem .95rem;
  background: var(--accent); color: var(--accent-ink);
  border-radius: var(--radius-sm); font-weight: 700;
}
.nav__list > li > a.nav__cta:hover { background: var(--accent-deep); color: #fff; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }

/* ============================ 7. SECCIONES =========================== */
.section { padding-block: clamp(2.6rem, 7vw, 5rem); }
.section--alt { background: var(--bg-alt); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.section__link { font-weight: 700; font-size: .9rem; color: var(--accent); white-space: nowrap; }
.section__link:hover { text-decoration: underline; }

.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(3rem, 9vw, 6.5rem);
  background:
    radial-gradient(60% 55% at 12% 0%, var(--accent-soft), transparent 70%),
    radial-gradient(50% 60% at 100% 100%, #fff4e6, transparent 65%),
    var(--bg);
}
.hero__inner { max-width: 40rem; }
.hero__kicker { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.hero__title { margin-top: .7rem; font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.04; }
.hero__title em { font-style: italic; color: var(--accent); }
.hero__lead { margin-top: 1.1rem; font-size: clamp(1.02rem, 2vw, 1.16rem); color: var(--ink-soft); max-width: 34rem; }
.hero__actions { margin-top: 1.8rem; display: flex; gap: .8rem; flex-wrap: wrap; }
.hero__meta { margin-top: 1.6rem; font-size: .82rem; color: var(--ink-faint); }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; }
.cat-card {
  display: flex; flex-direction: column; gap: .35rem; align-items: flex-start;
  padding: 1.3rem 1.2rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.cat-card__emoji { font-size: 1.7rem; }
.cat-card__name { font-weight: 700; letter-spacing: -.01em; }
.cat-card__count { font-size: .8rem; color: var(--ink-faint); }

.trust__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.6rem; }
.trust__item h3 { color: var(--accent); margin-bottom: .4rem; }
.trust__item p { font-size: .92rem; color: var(--ink-soft); }

.breadcrumb { padding-block: 1.1rem .2rem; font-size: .83rem; color: var(--ink-faint); }
.breadcrumb a:hover { color: var(--accent); }
.page-head { padding-block: 1.6rem 2rem; max-width: 52rem; }
.page-head__kicker { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.page-head h1 { margin-top: .5rem; }
.page-head__lead { margin-top: .9rem; font-size: 1.06rem; color: var(--ink-soft); }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.toolbar label { font-size: .86rem; font-weight: 600; color: var(--ink-soft); display: flex; gap: .5rem; align-items: center; }
.toolbar select { padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.toolbar__count { font-size: .85rem; color: var(--ink-faint); }

.cta-compare { text-align: center; max-width: 40rem; margin-inline: auto; }
.cta-compare h2 { margin-bottom: .5rem; }
.cta-compare p { color: var(--ink-soft); margin-bottom: 1.3rem; }

/* ============================ 8. FICHA ============================== */
.ficha { padding-block: 1rem 3rem; }
.ficha__top { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.gallery__main {
  aspect-ratio: 1 / 1; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; display: grid; place-items: center;
}
.gallery__main img { width: 100%; height: 100%; object-fit: contain; padding: 1.6rem; }
.gallery__thumbs { display: flex; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }
.gallery__thumb {
  width: 62px; height: 62px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface); padding: 4px;
  transition: border-color .2s, transform .2s;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumb:hover { transform: translateY(-2px); }
.gallery__thumb.is-active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }

.ficha__buy {
  position: sticky; top: calc(var(--nav-h) + 16px);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.ficha__cat { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); }
.ficha__brand { margin-top: .5rem; font-size: .85rem; color: var(--ink-soft); font-weight: 600; }
.ficha__name { font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 3vw, 1.9rem); margin: .15rem 0 .6rem; }
.ficha__destacado {
  display: inline-block; margin: .5rem 0; padding: .3rem .7rem;
  background: var(--accent-soft); color: var(--accent-deep);
  border-radius: 7px; font-size: .82rem; font-weight: 700;
}
.ficha__compare { display: flex; align-items: center; gap: .5rem; margin-top: .9rem; font-size: .85rem; color: var(--ink-soft); cursor: pointer; }
.ficha__compare input { width: 16px; height: 16px; accent-color: var(--accent); }
.ficha__disclosure { margin-top: .8rem; font-size: .74rem; color: var(--ink-faint); }

.ficha__section { margin-top: 2.6rem; }
.ficha__section > h2 { margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }

/* Radar */
.radar { display: grid; place-items: center; padding: 1rem 0; }
.radar svg { width: min(100%, 460px); height: auto; overflow: visible; }
.radar-axis-label { font-size: 11px; font-weight: 600; fill: var(--ink-soft); }
.radar-grid { fill: none; stroke: var(--line); }
.radar-spoke { stroke: var(--line); }
.radar-poly { stroke-width: 2; }
.radar-legend { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: .8rem; font-size: .82rem; }
.radar-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.radar-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* Specs table */
.specs { width: 100%; border-collapse: collapse; font-size: .9rem; }
.specs th, .specs td { text-align: left; padding: .62rem .7rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.specs th[scope="row"] { color: var(--ink-soft); font-weight: 600; width: 42%; }
.specs__group th { background: var(--bg-alt); font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); border-bottom: none; }
.specs .yes { color: var(--good); font-weight: 700; }
.specs .no { color: var(--ink-faint); }
.specs-extra { margin-top: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .3rem 1rem; }
.specs-extra summary { cursor: pointer; font-weight: 700; padding: .6rem 0; font-size: .9rem; }

/* Editorial */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1.8rem; }
.proscons__col { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.proscons__col h3 { display: flex; align-items: center; gap: .45rem; margin-bottom: .6rem; }
.proscons__col--pro { background: var(--good-bg); border-color: #cbe9d8; }
.proscons__col--pro h3::before { content: "✓"; color: var(--good); font-weight: 900; }
.proscons__col--con { background: var(--bad-bg); border-color: #f6d5db; }
.proscons__col--con h3::before { content: "✕"; color: var(--bad); font-weight: 900; }
.proscons ul { list-style: none; display: flex; flex-direction: column; gap: .45rem; }
.proscons li { font-size: .9rem; padding-left: 1rem; position: relative; }
.proscons li::before { content: "–"; position: absolute; left: 0; color: var(--ink-faint); }
.ideal-para { margin-top: 1.6rem; padding: 1rem 1.2rem; background: var(--accent-soft); border-radius: var(--radius); font-size: .95rem; }
.ideal-para strong { color: var(--accent-deep); }
.ficha__editorial .btn--lg { margin-top: 2rem; max-width: 22rem; }

/* Reviews */
.reviews { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.review { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; background: var(--surface); }
.review__head { display: flex; align-items: center; gap: .7rem; margin-bottom: .4rem; font-size: .84rem; }
.review__stars { color: var(--gold); }
.review__author { font-weight: 700; }
.review__verified { color: var(--good); font-weight: 600; font-size: .78rem; }
.review__text { font-size: .9rem; color: var(--ink-soft); }
.review--empty { color: var(--ink-faint); font-size: .9rem; }
.resenas-resumen { font-size: 1rem; color: var(--ink); max-width: 62ch; margin-bottom: 1.2rem; }
.aviso-afiliados { margin-top: 2.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .78rem; color: var(--ink-faint); }

/* ============================ 9. COMPARADOR ======================== */
.comparador { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
.comparador__pick { position: sticky; top: calc(var(--nav-h) + 16px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; max-height: calc(100vh - var(--nav-h) - 40px); overflow-y: auto; }
.comparador__pick-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.comparador__pick-head h2 { font-size: 1.1rem; font-family: var(--sans); font-weight: 700; }
.comparador__hint { font-size: .78rem; color: var(--ink-faint); margin-bottom: 1rem; }
.picker__group { margin-bottom: 1rem; }
.picker__group h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); margin-bottom: .4rem; }
.picker__opt { display: flex; gap: .5rem; align-items: flex-start; font-size: .85rem; padding: .3rem 0; cursor: pointer; }
.picker__opt input { margin-top: .15rem; width: 15px; height: 15px; accent-color: var(--accent); flex: none; }
.picker__opt.is-disabled { opacity: .38; cursor: not-allowed; }

.comparador__empty { color: var(--ink-faint); padding: 3rem 1rem; text-align: center; border: 2px dashed var(--line); border-radius: var(--radius); }
.cmp-table-wrap { overflow-x: auto; overflow-y: visible; padding-bottom: .5rem; }
.cmp-table { border-collapse: collapse; width: 100%; min-width: 520px; }
.cmp-table th, .cmp-table td { padding: .7rem .8rem; border-bottom: 1px solid var(--line-soft); text-align: left; font-size: .88rem; vertical-align: top; }
.cmp-table thead th { position: sticky; top: 0; background: var(--bg); z-index: 1; vertical-align: bottom; }
.cmp-col-head { display: flex; flex-direction: column; gap: .5rem; min-width: 150px; }
.cmp-col-head img { width: 100%; height: 96px; object-fit: contain; background: var(--bg-alt); border-radius: 8px; padding: 6px; }
.cmp-col-head strong { font-size: .9rem; line-height: 1.25; }
.cmp-row-label { color: var(--ink-soft); font-weight: 600; background: var(--bg); }
.cmp-group td { background: var(--bg-alt); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); font-weight: 700; }
.cmp-best { background: var(--good-bg); font-weight: 700; }
.cmp-best::after { content: " ★"; color: var(--gold); }
.cmp-remove { align-self: flex-start; font-size: .76rem; color: var(--bad); font-weight: 700; }
.cmp-remove:hover { text-decoration: underline; }
.cmp-radar { margin: 2rem 0; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.cmp-radar h2 { margin-bottom: 1rem; }

.cmp-veredicto { margin: 2rem 0 0; padding: 1.5rem 1.6rem; background: var(--accent-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.cmp-veredicto h2 { margin-bottom: .6rem; }
.cmp-veredicto > p { margin: 0 0 .8rem; line-height: 1.6; }
.cmp-veredicto__list { margin: .4rem 0 0; padding-left: 1.1rem; display: grid; gap: .5rem; }
.cmp-veredicto__list li { line-height: 1.55; }
.cmp-veredicto__list em { color: var(--accent-deep); font-style: normal; font-weight: 700; }
.cmp-veredicto__nota { font-size: .78rem; color: var(--ink-faint); margin: 1rem 0 0; }

/* Barra flotante de comparación (en páginas que no son el comparador) */
.compare-bar {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%) translateY(140%);
  z-index: 90; display: flex; align-items: center; gap: 1rem;
  padding: .7rem .8rem .7rem 1.2rem; border-radius: 999px;
  background: var(--ink); color: #fff; box-shadow: var(--shadow-lg);
  transition: transform .4s var(--ease-out);
}
.compare-bar.is-visible { transform: translateX(-50%) translateY(0); }
.compare-bar__count { font-weight: 700; font-size: .9rem; }
.compare-bar__count b { color: #b9b2ff; }
.compare-bar .btn { padding: .5rem 1rem; }
.compare-bar__clear { color: #c9c6e8; font-size: .82rem; }
.compare-bar__clear:hover { color: #fff; }

/* ============================ 10. GUÍA / LEGAL ==================== */
.guia { padding-block: 1rem 3rem; max-width: 780px; }
.guia__head { margin-bottom: 2rem; }
.guia__lead { margin-top: 1rem; font-size: 1.08rem; color: var(--ink-soft); }
.guia__ranking { margin-top: 2.5rem; }
.guia-item { display: grid; grid-template-columns: 44px 1fr; gap: 1.1rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.guia-item__rank { font-family: var(--serif); font-size: 1.7rem; color: var(--accent); font-weight: 600; }
.guia-item__body h3 { font-size: 1.15rem; }
.guia-item__body h3 a:hover { color: var(--accent); }
.guia-item__tag { color: var(--accent-deep); font-weight: 600; font-size: .88rem; margin: .2rem 0 .5rem; }
.guia-item__body p { font-size: .92rem; color: var(--ink-soft); }
.guia-item__foot { display: flex; align-items: center; gap: 1rem; margin-top: .9rem; flex-wrap: wrap; }
.faq { margin-top: 2.5rem; }
.faq__item { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.faq__item h3 { margin-bottom: .3rem; }
.faq__item p { font-size: .92rem; color: var(--ink-soft); }
.legal { padding-block: 2rem 4rem; max-width: 720px; }
.legal h2 { margin-top: 2rem; margin-bottom: .5rem; font-size: 1.3rem; }
.legal p, .legal li { color: var(--ink-soft); margin-top: .7rem; }
.legal ol { margin-left: 1.2rem; }

/* ============================ 11. PIE ============================ */
.site-footer { background: var(--ink); color: #c9c8d2; margin-top: 4rem; padding-block: 3rem 2rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h3 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .8rem; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: .45rem; }
.site-footer a { font-size: .88rem; color: #a9a8b6; }
.site-footer a:hover { color: #fff; }
.site-footer__tag { font-size: .88rem; margin-top: .6rem; max-width: 24rem; }
.site-footer__legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); }
.site-footer__legal p { font-size: .76rem; color: #8f8e9d; max-width: 70ch; }
.site-footer__copy { margin-top: .6rem; }

/* ============================ 12. RESPONSIVE ==================== */
@media (max-width: 960px) {
  .ficha__top { grid-template-columns: 1fr; }
  .ficha__buy { position: static; }
  .comparador { grid-template-columns: 1fr; }
  .comparador__pick { position: static; max-height: none; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav__toggle { display: flex; }
  .nav__list {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: .6rem var(--gutter) 1.2rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-140%); transition: transform .35s var(--ease-out);
  }
  .nav__list.is-open { transform: translateY(0); }
  .nav__list > li > a { display: block; padding: .8rem .4rem; border-radius: 0; border-bottom: 1px solid var(--line-soft); }
  .nav__cta, .nav__list > li > a.nav__cta { margin: .7rem 0 0; text-align: center; }
  .proscons { grid-template-columns: 1fr; }
  .section__head { flex-direction: column; align-items: flex-start; gap: .4rem; }
}
@media (max-width: 460px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .card__actions { flex-direction: column; }
  .hero__actions .btn { flex: 1; }
}

/* ============================ 13. REDUCED MOTION =============== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card:hover .card__media img { transform: none; }
}

/* Reveal (functional fade — not gated by reduced-motion, per skill gotcha A.2) */
[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; }
