/* =============================================================
   CASA MODERNA — decoración de hogar, comparativas y guías
   styles.css — hoja única, organizada por secciones (ver índice)

   1. Tokens
   2. Reset & base
   3. Utilities
   4. Typography
   5. Components (botones, chips, nav, tarjetas)
   6. Sections (hero, categorías, ficha, comparador, guías)
   7. Effects (hover, reveal, radar)
   8. Responsive
   9. Reduced motion
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* paleta — hogar cálido: crema, terracota, oliva, carbón */
  --bg: #faf6f0;
  --bg-alt: #f1e8da;
  --bg-card: #fffdf9;
  --ink: #2b241d;
  --ink-soft: #6a5f52;
  --ink-faint: #9b8f7f;
  --line: #e6dac6;
  --line-soft: #efe6d6;
  --accent: #ab5a30;
  --accent-ink: #fff8f1;
  --accent-soft: #f3e3d6;
  --olive: #6c7a52;
  --olive-soft: #e7ebdd;
  --gold: #c69a4a;
  --danger: #a83a3a;
  --ok: #4c7a4f;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --gutter: clamp(1.1rem, 4vw, 2.4rem);
  --container: 1240px;
  --shadow-sm: 0 1px 3px rgba(43, 36, 29, 0.08);
  --shadow: 0 10px 30px -12px rgba(43, 36, 29, 0.22);
  --shadow-lg: 0 24px 60px -20px rgba(43, 36, 29, 0.3);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--serif); text-wrap: balance; line-height: 1.12; letter-spacing: -0.01em; font-weight: 600; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--accent); color: var(--accent-ink); }

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

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1.1rem; background: var(--ink); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 600; transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.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;
}
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section-tight { padding-block: clamp(2rem, 4vw, 3.2rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); font-weight: 700;
}
.stack { display: flex; flex-direction: column; }
.center-head { text-align: center; max-width: 46rem; margin-inline: auto; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }
.muted { color: var(--ink-soft); }
.hide-no-js { display: none; }
.js-ready .hide-no-js { display: block; }
.js-ready .no-js-only { display: none; }
.divider { height: 1px; background: var(--line); border: 0; margin-block: 0; }

/* =============================================================
   4. Typography
   ============================================================= */
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--ink-soft); max-width: 42em; }
.prose p { margin-bottom: 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); }

/* =============================================================
   5. Components
   ============================================================= */

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: .96rem;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .2s var(--ease-out);
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); background: #9a4d27; }
.btn-ghost { background: var(--bg-card); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline-light { background: transparent; color: var(--accent-ink); border: 1.5px solid rgba(255,255,255,.55); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-sm { padding: .55rem 1.05rem; font-size: .84rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* Chips / badges */
.chip {
  display: inline-flex; align-items: center; gap: .35em;
  padding: .3rem .75rem; border-radius: 999px; font-size: .78rem; font-weight: 700;
  background: var(--olive-soft); color: var(--olive);
}
.chip-gold { background: #f7ecd6; color: #8a6a22; }
.chip-accent { background: var(--accent-soft); color: var(--accent); }
.badge-oferta {
  position: absolute; top: .85rem; left: .85rem; z-index: 2;
  background: var(--danger); color: #fff; font-size: .72rem; font-weight: 800;
  padding: .3rem .65rem; border-radius: 999px; letter-spacing: .02em;
}
.badge-envio {
  display: inline-flex; align-items: center; gap: .4em; font-size: .78rem; font-weight: 700;
  color: var(--olive);
}
.badge-envio svg { width: 1.1em; height: 1.1em; flex: none; }

/* Estrellas / rating */
.rating { display: inline-flex; align-items: center; gap: .5em; font-size: .92rem; }
.rating-stars { display: inline-flex; gap: .1em; color: var(--gold); font-size: 1.05em; letter-spacing: .05em; }
.rating-count { color: var(--ink-soft); font-size: .88em; }

/* Nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .9rem;
}
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-weight: 700; font-size: 1.25rem; }
.brand-mark {
  width: 2.1rem; height: 2.1rem; border-radius: 8px;
  background: linear-gradient(155deg, var(--accent), var(--gold));
  display: grid; place-items: center; color: #fff; font-size: 1.05rem; flex: none;
}
.nav-links { display: none; align-items: center; gap: 1.6rem; font-weight: 600; font-size: .95rem; }
.nav-links a { color: var(--ink-soft); transition: color .2s var(--ease-out); position: relative; }
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-links a.nav-cta, .nav-links a.nav-cta:hover {
  background: var(--olive); color: #fff; padding: .55rem 1.1rem; border-radius: 999px;
}
.nav-toggle {
  display: inline-flex; width: 2.4rem; height: 2.4rem; align-items: center; justify-content: center;
  border-radius: 8px; border: 1px solid var(--line);
}
.nav-toggle svg { width: 1.2rem; height: 1.2rem; }
.nav-mobile {
  display: none; flex-direction: column; gap: .2rem; padding: .5rem var(--gutter) 1.2rem;
  border-top: 1px solid var(--line);
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a { padding: .7rem 0; font-weight: 600; border-bottom: 1px solid var(--line-soft); }
.nav-mobile a:last-child { border-bottom: 0; }

/* Footer */
.site-footer { background: var(--ink); color: #efe7d9; padding-block: clamp(2.6rem, 5vw, 4rem) 1.8rem; }
.footer-grid { display: grid; gap: 2.2rem; grid-template-columns: 1fr; }
.footer-col h4 { font-family: var(--sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: #c9bda3; margin-bottom: .9rem; }
.footer-col a, .footer-col p { color: #d9d0bd; font-size: .92rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .55rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  font-size: .82rem; color: #b8ac93;
}
.disclosure-banner {
  background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: .85rem; color: var(--ink-soft); text-align: center; padding: .7rem var(--gutter);
}
.disclosure-banner a { text-decoration: underline; color: var(--ink); }
.disclosure-box {
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.4rem; font-size: .88rem; color: var(--ink-soft); margin-top: 2rem;
}

/* Tarjeta de producto */
.card-product {
  background: var(--bg-card); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; position: relative;
  box-shadow: var(--shadow-sm); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
  height: 100%;
}
.card-product:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 4/3.3; overflow: hidden; background: var(--bg-alt); }
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease-out), filter .6s var(--ease-out);
}
.card-product:hover .card-media img, .card-media.is-hover img { transform: scale(1.08) rotate(-0.6deg); }
.card-cat { position: absolute; bottom: .7rem; left: .7rem; z-index: 2; }
.card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card-brand { font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.card-title { font-size: 1.04rem; line-height: 1.28; }
.card-title a { transition: color .2s var(--ease-out); }
.card-title a:hover { color: var(--accent); }
.card-price-row { display: flex; align-items: baseline; gap: .6rem; margin-top: auto; }
.card-price { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; }
.card-price-note { font-size: .72rem; color: var(--ink-faint); }
.card-actions { display: flex; flex-direction: column; gap: .55rem; margin-top: .4rem; }
.card-actions .btn { width: 100%; }
.card-compare-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em; font-size: .82rem; font-weight: 600;
  color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; padding: .5rem .9rem; width: 100%;
  transition: all .2s var(--ease-out);
}
.card-compare-toggle svg { width: 1em; height: 1em; flex: none; }
.card-compare-toggle.is-active { background: var(--olive); color: #fff; border-color: var(--olive); }

.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.4rem; }

/* Filtros de categoría */
.filters-bar {
  display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between;
  background: var(--bg-card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 1rem 1.2rem; margin-bottom: 1.8rem;
}
.filters-group { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.filters-group label { font-size: .82rem; font-weight: 700; color: var(--ink-soft); }
.select {
  border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1rem; background: var(--bg);
  font-size: .86rem; font-weight: 600; color: var(--ink);
}
.results-count { font-size: .85rem; color: var(--ink-soft); }

/* =============================================================
   6. Sections
   ============================================================= */

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  padding-block: clamp(3.2rem, 8vw, 6.5rem);
}
.hero-grid { display: grid; gap: 2.4rem; align-items: center; }
.hero-copy .eyebrow { margin-bottom: 1rem; }
.hero-copy h1 { margin-bottom: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 2.2rem; }
.hero-stat b { display: block; font-family: var(--serif); font-size: 1.6rem; }
.hero-stat span { font-size: .8rem; color: var(--ink-soft); }
.hero-media { position: relative; }
.hero-collage { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.hero-collage img {
  border-radius: var(--radius-lg); aspect-ratio: 1/1; object-fit: cover; box-shadow: var(--shadow);
  transition: transform .6s var(--ease-out);
}
.hero-collage a:nth-child(2) img, .hero-collage a:nth-child(3) img { margin-top: 1.8rem; }
.hero-collage img:hover { transform: translateY(-6px) scale(1.02); }
.trust-strip { display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem; justify-content: center; padding-block: 1.4rem; }
.trust-item { display: flex; align-items: center; gap: .6rem; font-size: .88rem; font-weight: 600; color: var(--ink-soft); }
.trust-item svg { width: 1.3rem; height: 1.3rem; color: var(--olive); flex: none; }

/* Cómo elegimos */
.metodologia { background: var(--bg-alt); border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 3rem); }
.metodo-grid { display: grid; gap: 1.4rem; margin-top: 1.8rem; }
.metodo-item { display: flex; gap: 1rem; }
.metodo-num {
  flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-family: var(--serif); font-weight: 700;
}
.metodo-item h4 { font-family: var(--sans); font-size: 1rem; margin-bottom: .3rem; }
.metodo-item p { font-size: .92rem; color: var(--ink-soft); }

/* Categorías (home) */
.grid-categorias { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem; }
.cat-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1/1.05;
  box-shadow: var(--shadow-sm); transition: box-shadow .3s var(--ease-out);
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.cat-card:hover img { transform: scale(1.07); }
.cat-card:hover { box-shadow: var(--shadow); }
.cat-card-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.1rem;
  background: linear-gradient(180deg, rgba(43,36,29,0) 40%, rgba(43,36,29,.82) 100%);
}
.cat-card-overlay h3 { color: #fff; font-size: 1.05rem; }
.cat-card-overlay span { color: #eadfc9; font-size: .78rem; }

/* Sección genérica con fondo alterno */
.section-alt { background: var(--bg-alt); }

/* Ficha de producto */
.breadcrumbs { font-size: .82rem; color: var(--ink-faint); margin-bottom: 1.4rem; }
.breadcrumbs a:hover { color: var(--accent); }
.ficha { display: grid; gap: clamp(1.8rem, 4vw, 3rem); }
.ficha-galeria { display: flex; flex-direction: column; gap: .8rem; position: sticky; top: 5.5rem; align-self: start; }
.ficha-img-main-wrap {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-alt);
  aspect-ratio: 1/1; cursor: zoom-in; position: relative;
}
.ficha-img-main { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.ficha-img-main-wrap:hover .ficha-img-main { transform: scale(1.05); }
.ficha-thumbs { display: flex; gap: .6rem; flex-wrap: wrap; }
.ficha-thumbs li { width: 4.6rem; height: 4.6rem; border-radius: 10px; overflow: hidden; border: 2px solid transparent; cursor: pointer; }
.ficha-thumbs li.is-active { border-color: var(--accent); }
.ficha-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.ficha-head { display: flex; flex-direction: column; gap: .7rem; }
.ficha-marca { font-size: .82rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); }
.ficha-nombre { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.ficha-precio { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; margin-top: .3rem; }
.precio-actual { font-family: var(--serif); font-size: 2.1rem; font-weight: 700; }
.precio-antes { text-decoration: line-through; color: var(--ink-faint); font-size: 1.1rem; }
.precio-nota { display: block; width: 100%; font-size: .78rem; color: var(--ink-faint); margin-top: .2rem; }
.ficha-envio { margin-top: .2rem; }
.ficha-cta { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .8rem; }

.ficha-radar { border-top: 1px solid var(--line); padding-top: 2rem; }
.radar-wrap { display: grid; gap: 1.6rem; grid-template-columns: 1fr; align-items: center; }
.radar-figure { display: grid; place-items: center; }
.radar-figure canvas { max-width: 100%; }
.radar-legend { display: flex; flex-direction: column; gap: .5rem; }
.radar-legend-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .88rem; }
.radar-legend-dot { width: .7rem; height: .7rem; border-radius: 50%; flex: none; }
.radar-legend-bar { flex: 1; height: 6px; border-radius: 999px; background: var(--line-soft); overflow: hidden; margin-inline: .6rem; }
.radar-legend-bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

.ficha-specs { border-top: 1px solid var(--line); padding-top: 2rem; }
.specs-table { font-size: .92rem; }
.specs-table tr { border-bottom: 1px solid var(--line-soft); }
.specs-table th, .specs-table td { text-align: left; padding: .65rem .4rem; }
.specs-table th { color: var(--ink-soft); font-weight: 600; width: 45%; }
.specs-table td { font-weight: 600; }
.specs-extra { margin-top: 1rem; font-size: .88rem; }
.specs-extra summary { cursor: pointer; font-weight: 700; color: var(--accent); }
.specs-extra-grid { display: grid; gap: .5rem; margin-top: .8rem; }
.specs-extra-grid div { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px dashed var(--line); }

.ficha-editorial { border-top: 1px solid var(--line); padding-top: 2rem; }
.pros-contras { display: grid; gap: 1.4rem; margin-top: 1.4rem; }
.pros, .contras {
  border-radius: var(--radius); padding: 1.1rem 1.2rem; font-size: .92rem;
}
.pros { background: var(--olive-soft); }
.contras { background: #f6e9e2; }
.pros li, .contras li { display: flex; gap: .6rem; margin-bottom: .55rem; align-items: flex-start; }
.pros li:last-child, .contras li:last-child { margin-bottom: 0; }
.pros li svg, .contras li svg { width: 1.15em; height: 1.15em; flex: none; margin-top: .1em; }
.pros li svg { color: var(--olive); }
.contras li svg { color: var(--danger); }
.ideal-para {
  margin-top: 1.4rem; background: var(--accent-soft); border-radius: var(--radius);
  padding: 1rem 1.2rem; font-size: .94rem;
}

.ficha-resenas { border-top: 1px solid var(--line); padding-top: 2rem; }
.resenas-resumen { font-size: 1rem; }
.resenas-lista { margin-top: 1.2rem; display: grid; gap: .9rem; }
.resena-item { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: .9rem 1.1rem; font-size: .88rem; }
.resena-item .rating-stars { font-size: .95rem; }

.ficha-comparar { border-top: 1px solid var(--line); padding-top: 2rem; display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.similares { margin-top: 2.2rem; }
.similares-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-top: 1rem; }

/* Comparador */
.comparador-picker {
  background: var(--bg-card); border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: 1.4rem; margin-bottom: 2rem;
}
.comparador-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; margin-top: 1rem; }
.slot-wrap { position: relative; padding-top: .6rem; padding-right: .6rem; }
.slot { border: 1.5px dashed var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); aspect-ratio: 1/1.05; display: flex; flex-direction: column; }
.slot.is-filled { border-style: solid; background: var(--bg-card); }
.slot-empty { display: grid; place-items: center; height: 100%; color: var(--ink-faint); font-size: .82rem; text-align: center; padding: .6rem; }
.slot img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.slot-name { font-size: .8rem; font-weight: 700; padding: .4rem .5rem; line-height: 1.2; }
.remove-badge {
  position: absolute; top: -6px; right: -6px; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .8rem; box-shadow: var(--shadow-sm);
}
.comparador-picker-search { margin-top: 1.2rem; }
.comparador-picker-list { margin-top: .8rem; display: grid; gap: .5rem; max-height: 16rem; overflow-y: auto; }
.picker-row {
  display: flex; align-items: center; gap: .8rem; padding: .5rem .6rem; border-radius: 10px; border: 1px solid var(--line-soft);
  font-size: .88rem;
}
.picker-row img { width: 2.6rem; height: 2.6rem; border-radius: 8px; object-fit: cover; flex: none; }
.picker-row .picker-name { flex: 1; font-weight: 600; }
.comparador-empty { text-align: center; padding: 3rem 1rem; color: var(--ink-soft); }
.comparador-radar-wrap { display: flex; justify-content: center; margin-bottom: 2rem; }
.comparador-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line-soft); }
table.compare-table { min-width: 640px; }
.compare-table th, .compare-table td { padding: .8rem 1rem; border-bottom: 1px solid var(--line-soft); text-align: left; font-size: .9rem; }
.compare-table thead th { background: var(--bg-alt); position: sticky; top: 0; }
.compare-table th:first-child { width: 190px; color: var(--ink-soft); font-weight: 600; }
.compare-table td.is-best { background: var(--olive-soft); font-weight: 700; }
.compare-col-head { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.compare-col-head img { width: 4.4rem; height: 4.4rem; border-radius: 10px; object-fit: cover; }

/* Guías / Ofertas / Legal */
.guide-hero { background: var(--bg-alt); }
.guide-list { display: grid; gap: 1.4rem; margin-top: 2rem; }
.guide-rank {
  display: grid; grid-template-columns: 1fr; gap: 1.2rem; background: var(--bg-card);
  border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 1.2rem; align-items: center;
}
.guide-rank-num { font-family: var(--serif); font-size: 2rem; color: var(--accent); font-weight: 700; }
.guide-rank img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.guide-rank-grid { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; align-items: center; }
.guide-rank > div[style] { flex-direction: row !important; justify-content: space-between; align-items: center !important; }
.faq-list { margin-top: 2rem; display: grid; gap: .8rem; }
.faq-item { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1rem 1.2rem; background: var(--bg-card); }
.faq-item summary { font-weight: 700; cursor: pointer; }
.faq-item p { margin-top: .6rem; color: var(--ink-soft); font-size: .92rem; }
.legal-body h2 { margin-top: 2rem; font-size: 1.3rem; }
.legal-body p, .legal-body li { color: var(--ink-soft); margin-top: .8rem; }
.legal-body li { margin-left: 1.2rem; list-style: disc; }

.oferta-card { position: relative; }
.oferta-pct {
  position: absolute; top: .85rem; right: .85rem; z-index: 2; background: var(--ink); color: #fff;
  font-weight: 800; font-size: .78rem; padding: .35rem .6rem; border-radius: 999px;
}

/* =============================================================
   7. Effects
   ============================================================= */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
[data-reveal].is-revealed { opacity: 1; transform: none; }
[data-reveal-stagger] > * { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
[data-reveal-stagger].is-revealed > * { opacity: 1; transform: none; }
[data-reveal-stagger].is-revealed > *:nth-child(1) { transition-delay: .02s; }
[data-reveal-stagger].is-revealed > *:nth-child(2) { transition-delay: .08s; }
[data-reveal-stagger].is-revealed > *:nth-child(3) { transition-delay: .14s; }
[data-reveal-stagger].is-revealed > *:nth-child(4) { transition-delay: .2s; }
[data-reveal-stagger].is-revealed > *:nth-child(n+5) { transition-delay: .24s; }

/* tilt en imágenes (efecto hover ligero solicitado) */
[data-tilt] { transform-style: preserve-3d; will-change: transform; transition: transform .35s var(--ease-out); }

.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(20, 16, 12, .92);
  display: none; align-items: center; justify-content: center; padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(94vw, 900px); max-height: 84vh; border-radius: var(--radius); object-fit: contain; }
.lightbox-close {
  position: absolute; top: 1.2rem; right: 1.2rem; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; font-size: 1.2rem;
}
.lightbox-nav {
  position: absolute; top: 50%; translate: 0 -50%; width: 2.8rem; height: 2.8rem; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center;
}
.lightbox-prev { left: 1rem; } .lightbox-next { right: 1rem; }

.toast {
  position: fixed; bottom: 1.4rem; left: 50%; translate: -50% 0; z-index: 210;
  background: var(--ink); color: #fff; padding: .8rem 1.3rem; border-radius: 999px; font-size: .88rem;
  opacity: 0; pointer-events: none; transition: opacity .25s var(--ease-out), translate .25s var(--ease-out);
}
.toast.is-visible { opacity: 1; translate: -50% -.4rem; }

.compare-fab {
  position: fixed; bottom: 1.4rem; right: 1.4rem; z-index: 60;
  display: none; align-items: center; gap: .6rem; background: var(--ink); color: #fff;
  padding: .85rem 1.2rem; border-radius: 999px; box-shadow: var(--shadow-lg); font-weight: 700; font-size: .9rem;
}
.compare-fab.is-visible { display: inline-flex; }
.compare-fab-count {
  background: var(--accent); width: 1.5rem; height: 1.5rem; border-radius: 50%; display: grid; place-items: center; font-size: .78rem;
}

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 720px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .ficha { grid-template-columns: minmax(280px, 420px) 1fr; }
  .radar-wrap { grid-template-columns: 1fr 1fr; }
  .pros-contras { grid-template-columns: 1fr 1fr; }
  .guide-rank { grid-template-columns: 1fr auto; }
  .guide-rank > div[style] { flex-direction: column !important; align-items: flex-start !important; }
}
@media (min-width: 960px) {
  .grid-products { grid-template-columns: repeat(3, 1fr); }
  .grid-categorias { grid-template-columns: repeat(3, 1fr); }
  .metodo-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
@media (min-width: 1280px) {
  .grid-products { grid-template-columns: repeat(4, 1fr); }
}

/* =============================================================
   9. Reduced motion — solo lo intrusivo
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-tilt] { transition: none; }
  .hero-collage img { transition: none; }
}
