/* =============================================================
   RobotsAspiradores.es — comparativas de robots aspiradores (Amazon.es)
   styles.css — hoja unica, organizada por secciones
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* superficies — crema calido en vez de blanco puro, y borde/sombra con
     un toque del gris-lavanda del fondo animado (silk.js) para que las
     tarjetas no queden pegadas encima como una capa aparte */
  --bg:          #000000;
  --bg-alt:      #f7f4ee;
  --bg-sunken:   #e5ddc9;
  --card:        #f7f4ee;
  --border:      #cec2ba;
  --border-soft: #e2d9d2;

  /* texto */
  --ink:         #17181a;
  --ink-soft:    #565a52;
  --ink-faint:   #7d8175;
  --cream:       #f7f4ee;

  /* texto sobre el fondo oscuro de pagina (fuera de tarjetas) */
  --ink-on-dark:      rgba(255,255,255,.94);
  --ink-soft-on-dark: rgba(255,255,255,.68);

  /* marca */
  --accent:      #0e6f5c;
  --accent-dark: #0a5347;
  --accent-soft: #e3efe9;
  --accent-ink:  #ffffff;

  /* semantico */
  --gold:        #b5872c;
  --gold-soft:   #f6ecd7;
  --danger:      #b5432f;
  --danger-soft: #f8e6e1;
  --ok:          #2f7a4d;

  /* radar overlay palette (comparador) */
  --s1: #0e6f5c;
  --s2: #b5432f;
  --s3: #2d5aa8;
  --s4: #b5872c;

  /* tipografia */
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --geist: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* forma */
  --radius-s: 8px;
  --radius:   14px;
  --radius-l: 22px;
  --shadow-s: 0 2px 6px rgba(45,38,50,.12);
  --shadow:   0 14px 36px -12px rgba(45,38,50,.30);
  --shadow-l: 0 28px 70px -18px rgba(45,38,50,.40);

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; overflow-x: clip; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.01em; font-family: var(--serif); font-weight: 600; }
/* h1/h2 se usan siempre como titulares sueltos sobre el fondo de pagina (nunca
   dentro de una tarjeta); h3/h4 si se usan dentro de tarjetas y mantienen --ink. */
h1, h2 { color: var(--ink-on-dark); }
::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 1rem; background: var(--ink); color: var(--cream);
  z-index: 9999; border-radius: 8px; font-weight: 600; font-size: .9rem;
}
.skip-link:focus { top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee, .pulse { animation: none !important; }
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section-head { max-width: 640px; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.section-head p { color: var(--ink-soft-on-dark); font-size: 1.05rem; margin-top: .75rem; }
.center { text-align: center; margin-inline: auto; }
.stack { display: flex; flex-direction: column; gap: 1rem; }

/* --- Leyenda de indicadores (ofertas.html) --- */
.ofertas-header-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.ofertas-leyenda {
  background: rgba(20,24,24,.55);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 1.1rem 1.3rem;
  max-width: 340px; flex: none; margin-left: auto;
}
.ofertas-leyenda-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-on-dark); margin-bottom: .8rem; }
.ofertas-leyenda-row { display: flex; align-items: center; gap: .7rem; margin-bottom: .6rem; font-size: .82rem; color: var(--ink-soft-on-dark); }
.ofertas-leyenda-row:last-child { margin-bottom: 0; }
.ofertas-leyenda-row b { color: var(--ink-on-dark); }
.ofertas-leyenda-swatch { flex: none; min-width: 44px; text-align: center; font-weight: 700; font-size: .68rem; padding: .18rem .5rem; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; }
.ofertas-leyenda-swatch svg { width: 12px; height: 12px; }
.ofertas-leyenda-swatch-discount { background: #ff3b30; color: #fff; font-family: var(--mono); }
.ofertas-leyenda-swatch-top { background: #e8b84b; color: #2b1f08; }
.ofertas-leyenda-swatch-flash { background: #000; border: 1px solid #ffd75e; color: #ffd75e; }
@media (max-width: 719px) {
  .ofertas-header-row { flex-direction: column; }
  .ofertas-leyenda { max-width: none; width: 100%; }
}
.hr { height: 1px; background: var(--border); border: 0; margin-block: 3rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* =============================================================
   4. Typography
   ============================================================= */
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.prose { max-width: 72ch; color: var(--ink-on-dark); font-size: 1.02rem; }
.prose p { margin-bottom: 1.1em; }
.prose h2 { margin-top: 2.2em; margin-bottom: .6em; }
.prose h3 { margin-top: 1.6em; margin-bottom: .5em; }
.prose ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1.1em; }
.prose li { margin-bottom: .4em; }
.prose a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

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

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: .96rem;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .25s var(--ease-out), color .25s var(--ease-out);
  white-space: nowrap;
}
.btn-primary, .btn-primary:hover { color: var(--accent-ink); }
.btn-primary { background: var(--accent); box-shadow: var(--shadow-s); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: var(--bg-alt); border: 1px solid var(--border); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-outline { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-sm { padding: .6rem 1.1rem; font-size: .86rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.btn-amazon {
  background: #14161a; color: #fff;
}
.btn-amazon:hover { background: var(--accent); color: #fff; }
.btn-amazon svg { width: 1.05em; height: 1.05em; flex: none; }

/* --- Badges / chips --- */
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .7rem; border-radius: 999px; font-size: .74rem; font-weight: 700;
  letter-spacing: .02em;
}
.badge-new   { background: var(--accent-soft); color: var(--accent-dark); }
.badge-editor{ background: #e8b84b; color: #2b1f08; padding: .3rem .7rem; border-radius: 6px; }
.badge-editor svg { width: 13px; height: 13px; flex: none; }
.badge-muted { background: var(--bg-sunken); color: var(--ink-soft); }
.badge-flash-box {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px;
  background: #000; border: 1px solid #ffd75e; border-radius: 8px;
  padding: .4rem .8rem;
}
.badge-flash-label {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .06em;
  text-transform: uppercase; color: #ffd75e; opacity: .85;
}
.badge-flash-days { font-family: var(--mono); font-size: .82rem; font-weight: 700; color: #fff; }

.badge-ribbon { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.badge-ribbon-fold {
  position: absolute; top: 0; right: 0; width: 0; height: 0;
  border-style: solid; border-width: 0 54px 54px 0;
  border-color: transparent #a32020 transparent transparent;
}
.badge-ribbon-label {
  position: absolute; top: 14px; right: -34px; display: block;
  transform: rotate(45deg); background: #ff3b30; color: #fff;
  font-family: var(--mono); font-weight: 700; font-size: 16px; letter-spacing: .02em;
  padding: .34rem 2.6rem;
}

.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg-alt); font-size: .84rem; font-weight: 600; color: var(--ink-soft);
  transition: all .25s var(--ease-out); cursor: pointer;
}
.chip.is-active, .chip:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-soft); }
.chip svg { width: 1em; height: 1em; flex: none; }

/* --- Stars --- */
.stars { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; color: var(--ink-soft); }
.stars-icons { display: inline-flex; gap: 1px; color: var(--gold); }
.stars-icons svg { width: 15px; height: 15px; flex: none; }
.stars b { color: var(--ink); }
.ficha-rating .stars { color: var(--ink-soft-on-dark); }
.ficha-rating .stars b { color: var(--ink-on-dark); }

/* --- Cards: product (mismo look de cristal oscuro que la tarjeta del hero) --- */
.card-product {
  position: relative; display: flex; flex-direction: column;
  background: rgba(20,20,24,.55);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-l); color: #fff;
  overflow: hidden; transition: transform .3s var(--ease-out);
  height: 100%;
}
.card-product:hover { transform: translateY(-6px); }
.card-product-media { position: relative; aspect-ratio: 1/1; background: rgba(255,255,255,.04); overflow: hidden; }
.card-product-media img { width: 100%; height: 100%; object-fit: contain; padding: 1.4rem; transition: transform .6s var(--ease-out); }
.card-product:hover .card-product-media img { transform: scale(1.05); }
.card-product-badges { position: absolute; top: .5rem; left: .5rem; display: flex; flex-direction: column; gap: .4rem; z-index: 2; }
.card-product-body { padding: 1.3rem 1.3rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.card-product-brand { font-size: .78rem; color: var(--ink-soft-on-dark); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.card-product-name { font-size: 1.08rem; line-height: 1.3; }
.card-product-name a { color: var(--ink-on-dark); transition: color .2s; }
.card-product-name a:hover { color: #7fe0c0; }
.card-product .stars { color: var(--ink-soft-on-dark); }
.card-product .stars b { color: var(--ink-on-dark); }
.card-product-specs { display: flex; flex-wrap: wrap; gap: .4rem .7rem; font-size: .8rem; color: var(--ink-soft-on-dark); margin-top: .1rem; }
.card-product-specs span { display: inline-flex; align-items: center; gap: .3rem; }
.card-product-specs svg { width: 14px; height: 14px; flex: none; color: #7fe0c0; }
.card-product-foot { margin-top: auto; padding-top: .8rem; display: flex; align-items: flex-end; justify-content: space-between; gap: .8rem; }
.card-product-price { display: flex; flex-direction: column; }
.price-now { font-family: var(--mono); font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.price-before { font-size: .82rem; color: var(--ink-faint); text-decoration: line-through; }
.card-product .price-now { color: #7fe0c0; }
.card-product .price-before { color: rgba(255,255,255,.45); }
.card-product-actions { display: flex; gap: .5rem; }
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px; flex: none;
  border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #fff;
  transition: all .25s var(--ease-out);
}
.btn-icon svg { width: 18px; height: 18px; flex: none; }
.btn-icon:hover, .btn-icon.is-active { border-color: #7fe0c0; color: #7fe0c0; background: rgba(127,224,192,.12); }

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

/* --- Nav --- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(18,20,17,.82); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
@supports not (backdrop-filter: blur(1px)) { .site-nav { background: var(--ink); } }
.site-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .9rem; }
.logo { display: flex; align-items: center; gap: .55rem; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; color: #fff; white-space: nowrap; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; color: #fff; flex: none; }
.logo-mark svg { width: 17px; height: 17px; }
.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a { font-size: .92rem; font-weight: 600; color: #b9bcb4; transition: color .25s var(--ease-out); position: relative; }
.nav-links a:hover { color: #fff; }
.nav-links a.is-current { color: #7fe0c0; }
.nav-cta-wrap { display: flex; align-items: center; gap: .9rem; }
.nav-links a.nav-cta, .nav-links a.nav-cta:hover { color: var(--accent-ink); background: var(--accent); padding: .55rem 1.1rem; border-radius: 999px; }
.nav-compare-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding-inline: 4px;
  border-radius: 999px; background: var(--ink); color: var(--cream); font-size: .68rem; font-weight: 700; margin-left: .4rem;
}
.nav-links a.nav-cta .nav-compare-count { background: var(--accent-ink); color: var(--accent-dark); }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.16); color: #fff; }

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--ink); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
  padding: .5rem; margin-top: .6rem; display: flex; flex-direction: column; min-width: 260px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s var(--ease-out), transform .2s var(--ease-out);
  box-shadow: 0 16px 32px rgba(0,0,0,.4);
}
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a { padding: .6rem .8rem; border-radius: 8px; white-space: nowrap; font-size: .88rem; }
.nav-dropdown-menu a:hover { background: rgba(255,255,255,.07); }
.nav-toggle svg { width: 20px; height: 20px; }

/* --- Footer --- */
.site-footer {
  background: rgba(23,24,26,.55); color: var(--cream); padding-block: 3.5rem 2rem; margin-top: 5rem;
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand p { color: #b9bcb4; font-size: .92rem; margin-top: .8rem; max-width: 34ch; }
.footer-col h4 { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: #9a9d94; margin-bottom: 1rem; font-weight: 700; }
.footer-col ul { display: flex; flex-direction: column; gap: .65rem; }
.footer-col a { color: #d7d9d1; font-size: .92rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.8rem; border-top: 1px solid #33352f; color: #8d9086; font-size: .82rem; }
.aviso-afiliados {
  background: var(--bg-sunken); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.3rem; font-size: .84rem; color: var(--ink-soft); line-height: 1.55;
}
.site-footer .aviso-afiliados { background: #21231e; border-color: #33352f; color: #b9bcb4; }

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

/* --- Hero --- */
.hero {
  position: relative; padding-block: clamp(3.5rem, 9vw, 6.5rem) clamp(3rem, 7vw, 5rem);
  overflow: visible; background: transparent; color: var(--cream);
  text-shadow: 0 2px 20px rgba(0,0,0,.75);
}
.hero-halo { display: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero .eyebrow { color: #7fe0c0; }
.hero .eyebrow::before { background: #7fe0c0; }
.hero .eyebrow-pill {
  border: 1px solid rgba(255,255,255,.16); background: rgba(0,0,0,.35);
  padding: .5rem .9rem; border-radius: 999px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero h1 {
  color: #fff; margin-bottom: 1.1rem; font-family: var(--geist), var(--serif);
  letter-spacing: -0.03em; font-weight: 600;
}
.hero h1 em { font-style: italic; color: #7fe0c0; }
.hero .lede { color: #c9cdc2; }

/* --- Reveal letra a letra (solo hero h1) --- */
.letter { display: inline-block; opacity: 0; animation: letterUp .55s var(--ease-out) forwards; }
@keyframes letterUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .letter { animation: none; opacity: 1; }
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }
.hero-stats { display: flex; gap: 2.2rem; margin-top: 2.4rem; padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,.12); }
.hero-stat b { display: block; font-family: var(--geist), var(--serif); letter-spacing: -.02em; font-size: 1.8rem; color: #fff; }
.hero-stat span { font-size: .8rem; color: #9a9d94; }

/* --- Hero: producto estrella --- */
.hero-visual-star { position: relative; padding: 1.5rem 0 1.5rem; }
.hero-star-card {
  position: relative; z-index: 1; display: flex; flex-direction: column;
  background: rgba(20,20,24,.55);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255,255,255,.12); color: #fff; text-decoration: none;
  overflow: hidden; transition: transform .3s var(--ease-out);
}
.hero-star-card:hover { transform: translateY(-6px); }
.hero-star-img-wrap { position: relative; aspect-ratio: 1/1; padding: 2.2rem 2.2rem 1rem; }
.hero-star-img-wrap img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,.35));
}
.hero-star-badges { position: absolute; top: 1rem; left: 1rem; z-index: 2; display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.hero-star-info { padding: 0 1.6rem 1.8rem; }
.hero-star-kicker { display: flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #7df9ff; margin-bottom: .5rem; }
.hero-star-kicker svg { width: 13px; height: 13px; }
.hero-star-name { display: block; font-family: var(--serif); font-size: 1.3rem; margin-bottom: .45rem; color: #fff; }
.hero-star-price { display: block; font-family: var(--mono); font-size: 1.1rem; margin-bottom: .8rem; }
.hero-star-price b { color: #7fe0c0; }
.hero-star-price s { color: rgba(255,255,255,.45); font-weight: 400; margin-left: .4rem; }
.hero-star-cta { display: flex; align-items: center; gap: .35rem; font-size: .88rem; font-weight: 600; color: rgba(255,255,255,.85); }
.hero-star-cta svg { width: 15px; height: 15px; }

/* --- Como elegimos / trust --- */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.trust-card {
  background: rgba(20,20,24,.55);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-l); padding: 1.6rem;
}
.trust-card .ico { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.08); color: #9adfca; display: grid; place-items: center; margin-bottom: 1rem; }
.trust-card .ico svg { width: 22px; height: 22px; }
.trust-card h3 { font-size: 1.02rem; margin-bottom: .45rem; color: var(--ink-on-dark); }
.trust-card p { font-size: .88rem; color: var(--ink-soft-on-dark); }

/* --- Category entry cards --- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.cat-card {
  position: relative; border-radius: var(--radius-l); overflow: hidden; min-height: 220px;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 1.8rem;
  background: rgba(20,20,24,.55);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255,255,255,.12);
  transition: transform .4s var(--ease-out);
}
.cat-card:hover { transform: translateY(-4px); }
.cat-card-halo {
  position: absolute; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(127,224,192,.22), transparent 70%);
}
.cat-card-body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .6rem; color: #fff; }
.cat-card-body h3 { color: #fff; font-size: 1.3rem; margin: 0; }

/* --- Bocadillo de precio (categorias) --- */
.price-pill {
  position: relative; display: inline-flex; align-items: center; gap: .4rem;
  background: var(--accent); color: #fff; font-weight: 700; font-size: .88rem;
  padding: .5rem 1.1rem; border-radius: 999px 999px 999px 4px;
  box-shadow: var(--shadow-s); letter-spacing: .01em; white-space: nowrap;
}
.price-pill::after {
  content: ""; position: absolute; left: 18px; bottom: -6px;
  width: 12px; height: 12px; background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.price-pill svg { width: 15px; height: 15px; flex: none; }
.section-head .price-pill { color: #fff; font-size: .88rem; margin-top: 0; }

.cat-card-price {
  background: #7fe0c0; color: #0a2b21; font-family: var(--mono); font-weight: 700;
  font-size: 1rem; padding: .5rem 1.2rem; border-radius: 999px; white-space: nowrap;
}
.cat-card-count { color: #9a9d94; font-size: .8rem; }

/* --- Brand cards (marcas.html): color propio + icono minimalista, sin logos ni fotos --- */
.brand-card {
  position: relative; border-radius: var(--radius-l); overflow: hidden; min-height: 210px;
  display: flex; align-items: flex-end; padding: 1.8rem; color: #fff; box-shadow: var(--shadow-s);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.brand-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-l); }
.brand-card-icon {
  position: absolute; top: -12%; right: -10%; width: 65%; aspect-ratio: 1/1;
  opacity: .18; pointer-events: none; transition: transform .5s var(--ease-out), opacity .5s var(--ease-out);
}
.brand-card:hover .brand-card-icon { transform: scale(1.08) rotate(4deg); opacity: .26; }
.brand-card-icon svg { width: 100%; height: 100%; }
.brand-card-body { position: relative; z-index: 1; }
.brand-card-body h3 { color: #fff; font-size: 1.55rem; margin-bottom: .6rem; letter-spacing: -.01em; }
.brand-card-body .price-pill, .brand-card-body .price-pill::after { background: rgba(255,255,255,.18); }
.brand-card-body .price-pill { color: #fff; border: 1px solid rgba(255,255,255,.28); }

/* --- Guides strip --- */
.guide-card {
  display: flex; flex-direction: column; gap: .8rem;
  background: rgba(20,20,24,.55);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-l); padding: 1.8rem;
  transition: transform .35s var(--ease-out);
}
.guide-card:hover { transform: translateY(-4px); }
.guide-card .eyebrow { color: #9adfca; }
.guide-card .eyebrow::before { background: #9adfca; }
.guide-card h3 { font-size: 1.15rem; color: var(--ink-on-dark); }
.guide-card p { color: var(--ink-soft-on-dark); font-size: .92rem; }
.guide-card .link-arrow { margin-top: auto; }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--accent); font-size: .9rem; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* =============================================================
   FICHA (product page)
   ============================================================= */
.ficha-top { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.ficha-breadcrumb { font-size: .82rem; color: var(--ink-faint); margin-bottom: 1.4rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.ficha-breadcrumb a:hover { color: var(--accent); }

.ficha-galeria { position: sticky; top: 90px; }
.ficha-img-main-wrap {
  position: relative;
  background: rgba(20,20,24,.55);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 1/1;
}
.ficha-img-main { width: 100%; height: 100%; object-fit: contain; padding: 2rem; }
.ficha-thumbs { display: flex; gap: .7rem; margin-top: .9rem; flex-wrap: wrap; }
.ficha-thumbs button {
  width: 68px; height: 68px; border-radius: var(--radius-s); overflow: hidden; flex: none; transition: border-color .2s;
  border: 2px solid rgba(255,255,255,.14);
  background: rgba(20,20,24,.55);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.ficha-thumbs button.is-active, .ficha-thumbs button:hover { border-color: #7fe0c0; }
.ficha-thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }

.ficha-marca { font-size: .84rem; color: #7fe0c0; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .5rem; }
.ficha-nombre { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: .7rem; }
.ficha-rating { margin-bottom: 1.2rem; }
.ficha-precio {
  background: rgba(20,20,24,.55);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 1.3rem 1.4rem; margin-bottom: 1.3rem;
  color: #fff;
}
.ficha-precio-row { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; }
.ficha-precio .precio-actual { font-family: var(--mono); font-size: 2rem; font-weight: 700; color: #7fe0c0; }
.ficha-precio .precio-antes { font-size: 1.05rem; color: rgba(255,255,255,.45); text-decoration: line-through; }
.ficha-precio-nota { font-size: .78rem; color: rgba(255,255,255,.5); margin-top: .5rem; }
.ficha-oferta-flash {
  display: flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.08); color: #ffd75e;
  font-size: .82rem; font-weight: 700; padding: .6rem 1rem; border-radius: var(--radius-s);
  margin-bottom: 1rem;
}
.ficha-oferta-flash svg { width: 16px; height: 16px; flex: none; }
.ficha-oferta-flash strong { color: #fff; }
.ficha-precio-financiacion {
  display: flex; align-items: flex-start; gap: .55rem;
  margin-top: .8rem; padding-top: .8rem; border-top: 1px dashed rgba(255,255,255,.18);
}
.ficha-precio-financiacion svg { width: 18px; height: 18px; flex: none; color: #7fe0c0; margin-top: .15rem; }
.fin-principal { display: block; font-size: .95rem; font-weight: 500; color: #fff; line-height: 1.4; }
.fin-principal strong { font-weight: 700; color: #7fe0c0; font-family: var(--mono); }
.fin-legal { display: block; font-size: .72rem; color: rgba(255,255,255,.5); margin-top: .2rem; line-height: 1.4; }
.ficha-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.ficha-highlights { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin-bottom: 1.6rem; }
.ficha-highlight {
  display: flex; gap: .7rem; align-items: flex-start; border-radius: var(--radius-s); padding: .8rem .9rem;
  background: rgba(20,20,24,.55);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255,255,255,.12); color: #fff;
}
.ficha-highlight svg { width: 19px; height: 19px; color: #7fe0c0; flex: none; margin-top: 1px; }
.ficha-highlight b { display: block; font-size: .86rem; }
.ficha-highlight span { font-size: .76rem; color: rgba(255,255,255,.68); }
.ficha-destacado { border-left: 3px solid var(--gold); background: var(--gold-soft); padding: .9rem 1.1rem; border-radius: 0 var(--radius-s) var(--radius-s) 0; font-size: .92rem; color: #6b511f; }

.ficha-radar {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem; align-items: center; padding: clamp(1.5rem, 3vw, 2.5rem);
  background: rgba(20,20,24,.55);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-l); color: #fff;
}
.ficha-radar figure { display: grid; place-items: center; }
.radar-legend { display: flex; flex-direction: column; gap: .55rem; }
.radar-legend-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .88rem; }
.radar-legend-item .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.radar-legend-name { display: flex; align-items: center; gap: .55rem; color: var(--ink-soft); }
.radar-legend-val { font-family: var(--mono); font-weight: 700; }
.radar-note { font-size: .78rem; color: rgba(255,255,255,.5); margin-top: 1rem; grid-column: 1/-1; }
.ficha-radar .radar-legend-name { color: rgba(255,255,255,.68); }

.specs-table-wrap {
  overflow-x: auto; border-radius: var(--radius); color: #fff;
  background: rgba(20,20,24,.55);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255,255,255,.12);
}
table.specs-table { min-width: 100%; }
.specs-table caption { text-align: left; font-weight: 700; padding: .8rem 1.2rem; background: rgba(255,255,255,.06); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: rgba(255,255,255,.68); }
.specs-table tr { border-top: 1px solid rgba(255,255,255,.12); }
.specs-table tr:first-child { border-top: none; }
.specs-table th, .specs-table td { text-align: left; padding: .75rem 1.2rem; font-size: .92rem; }
.specs-table th { font-weight: 500; color: rgba(255,255,255,.68); width: 45%; }
.specs-table td { font-weight: 600; color: #fff; }
.specs-extra summary { cursor: pointer; font-weight: 600; padding: 1rem 1.2rem; color: #7fe0c0; font-size: .9rem; }
.specs-extra[open] summary { border-bottom: 1px solid rgba(255,255,255,.14); }
.specs-extra-body { padding: .8rem 1.2rem 1.2rem; display: grid; gap: .5rem; font-size: .88rem; }
.specs-extra-body div { display: flex; justify-content: space-between; gap: 1rem; color: rgba(255,255,255,.68); }
.specs-extra-body b { color: #fff; font-weight: 600; }

.pros-contras { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin: 1.6rem 0; }
.pc-col {
  border-radius: var(--radius); padding: 1.3rem 1.4rem; color: #fff;
  background: rgba(20,20,24,.55);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255,255,255,.12);
}
.pc-col.pros { border-color: rgba(127,224,192,.35); }
.pc-col.contras { border-color: rgba(255,138,117,.35); }
.pc-col h3 { font-size: .95rem; display: flex; align-items: center; gap: .5rem; margin-bottom: .8rem; }
.pc-col h3 svg { width: 1.15em; height: 1.15em; flex: none; }
.pc-col.pros h3 { color: #7fe0c0; }
.pc-col.contras h3 { color: #ff8a75; }
.pc-col li { display: flex; gap: .55rem; font-size: .9rem; margin-bottom: .55rem; align-items: flex-start; }
.pc-col li svg { width: 1.05em; height: 1.05em; flex: none; margin-top: 2px; }
.pc-col.pros li svg { color: #7fe0c0; }
.pc-col.contras li svg { color: #ff8a75; }
.ideal-para { background: var(--accent-soft); border-radius: var(--radius-s); padding: 1rem 1.2rem; font-size: .92rem; color: var(--accent-dark); }

.resenas-resumen { font-size: 1rem; color: var(--ink-soft-on-dark); margin-bottom: 1.4rem; }
.resena {
  border-radius: var(--radius); padding: 1.2rem 1.3rem; margin-bottom: 1rem; color: #fff;
  background: rgba(20,20,24,.55);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255,255,255,.12);
}
.resena .stars { color: rgba(255,255,255,.68); }
.resena .stars b { color: #fff; }
.resena-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; flex-wrap: wrap; gap: .5rem; }
.resena-autor { font-weight: 700; font-size: .9rem; }
.resena-verificada { font-size: .74rem; color: #7fe0c0; font-weight: 600; display: inline-flex; align-items: center; gap: .3rem; }
.resena-verificada svg { width: 1em; height: 1em; flex: none; }
.resena-titulo { font-weight: 700; margin-bottom: .3rem; font-size: .95rem; }
.resena-texto { font-size: .9rem; color: rgba(255,255,255,.68); }

.similares-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem; }

/* =============================================================
   COMPARADOR
   ============================================================= */
.comparador-picker {
  background: rgba(20,20,24,.55);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-l); padding: 1.6rem; margin-bottom: 2rem;
}
.comparador-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.comparador-picker-head h3 { color: var(--ink-on-dark); }
.comparador-search { position: relative; margin-bottom: 1rem; }
.comparador-search input {
  width: 100%; padding: .85rem 1.1rem .85rem 2.7rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06); font-size: .94rem; color: var(--ink-on-dark);
}
.comparador-search input::placeholder { color: var(--ink-soft-on-dark); }
.comparador-search svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-soft-on-dark); }
.comparador-checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .6rem; max-height: 340px; overflow-y: auto; padding-right: .3rem; }
.comparador-check {
  display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; border-radius: var(--radius-s);
  border: 1px solid rgba(255,255,255,.12); cursor: pointer; transition: all .2s var(--ease-out); background: rgba(255,255,255,.04);
}
.comparador-check:hover { border-color: #7fe0c0; }
.comparador-check.is-checked { border-color: #7fe0c0; background: rgba(127,224,192,.14); }
.comparador-check img { width: 42px; height: 42px; object-fit: contain; background: rgba(255,255,255,.06); border-radius: 6px; flex: none; }
.comparador-check .name { font-size: .84rem; font-weight: 600; flex: 1; color: var(--ink-on-dark); }
.comparador-check input { width: 17px; height: 17px; accent-color: #7fe0c0; }

.comparador-empty { text-align: center; padding: 4rem 1rem; color: var(--ink-soft-on-dark); }
.comparador-empty svg { width: 48px; height: 48px; color: var(--ink-soft-on-dark); margin: 0 auto 1rem; }

.comparador-cols { display: grid; gap: 1.2rem; margin-bottom: 2rem; }
.comparador-col {
  background: rgba(20,20,24,.55);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-l);
  padding: 1.3rem; display: flex; flex-direction: column; gap: .7rem; position: relative;
}
.comparador-col img { aspect-ratio: 1/1; object-fit: contain; background: rgba(255,255,255,.06); border-radius: var(--radius-s); padding: .8rem; }
.comparador-col h4 { font-size: .96rem; line-height: 1.3; color: var(--ink-on-dark); }
.comparador-col .price-now { font-size: 1.15rem; color: var(--ink-on-dark); }
.comparador-remove {
  position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-s);
}
.comparador-remove svg { width: 14px; height: 14px; }

.comparador-radar-wrap {
  background: rgba(20,20,24,.55);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-l); padding: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 2rem; display: grid; grid-template-columns: 1fr .55fr; gap: 2rem; align-items: center; color: #fff;
}
.comparador-radar-wrap figure { display: grid; place-items: center; }
.comparador-radar-wrap h3 { color: var(--ink-on-dark); }
.comparador-radar-wrap .radar-legend-name { color: rgba(255,255,255,.68); }

.comparador-table-wrap {
  overflow-x: auto; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
  background: rgba(20,20,24,.55);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
}
table.comparador-table { min-width: 640px; }
.comparador-table th, .comparador-table td { padding: .75rem 1rem; text-align: left; font-size: .88rem; border-top: 1px solid rgba(255,255,255,.1); vertical-align: middle; color: var(--ink-on-dark); }
.comparador-table thead th { background: rgba(255,255,255,.05); position: sticky; top: 0; border-top: none; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-soft-on-dark); }
.comparador-table th.row-label { font-weight: 600; color: var(--ink-soft-on-dark); background: rgba(20,20,24,.7); position: sticky; left: 0; }
.comparador-table td.is-best { background: rgba(127,224,192,.14); font-weight: 700; color: #7fe0c0; position: relative; }
.comparador-table td.is-best::after { content: "✓ mejor"; display: block; font-size: .68rem; font-weight: 700; color: #7fe0c0; margin-top: 2px; }
.comparador-table .group-row td { background: rgba(255,255,255,.05); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft-on-dark); padding-block: .5rem; }

/* =============================================================
   OFERTAS / listado con filtros
   ============================================================= */
.filters-bar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1.8rem; }
.filters-sep { width: 1px; height: 24px; background: var(--border); margin-inline: .4rem; }
.sort-select { padding: .6rem 1rem; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-alt); font-size: .84rem; font-weight: 600; }

/* =============================================================
   GUIAS / FAQ
   ============================================================= */
.guide-hero {
  background: rgba(23,24,26,.5); color: var(--cream); padding-block: clamp(3rem, 7vw, 5rem);
  border-radius: var(--radius-l); margin-bottom: 3rem; text-align: center;
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.guide-hero .eyebrow { color: #9adfca; margin-inline: auto; }
.guide-hero .eyebrow::before { background: #9adfca; }
.guide-hero h1 {
  color: #fff; margin-bottom: .8rem; font-family: var(--sans);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; letter-spacing: -0.01em;
}
.guide-hero p { color: #cfd2c9; max-width: 60ch; margin-inline: auto; }
.guide-toc { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem 1.6rem; margin-bottom: 2.5rem; }
.guide-toc h2 { font-size: 1rem; margin-bottom: .8rem; color: var(--ink); }
.guide-toc ol { list-style: decimal; padding-left: 1.3rem; display: grid; gap: .4rem; font-size: .9rem; }
.guide-toc a { color: var(--accent); font-weight: 600; }

.pick-card {
  display: grid; grid-template-columns: 140px 1fr; gap: 1.3rem;
  background: rgba(20,20,24,.55);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-l); padding: 1.3rem; margin-bottom: 1.3rem; align-items: center;
}
.pick-card img { aspect-ratio: 1/1; object-fit: contain; background: rgba(255,255,255,.06); border-radius: var(--radius-s); padding: .6rem; }
.pick-card .pick-label { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #9adfca; margin-bottom: .3rem; }
.pick-card h3 { font-size: 1.05rem; margin-bottom: .35rem; color: var(--ink-on-dark); }
.pick-card .pick-price { font-family: var(--mono); font-size: 1.15rem; font-weight: 700; color: #7fe0c0; margin-bottom: .35rem; }
.pick-card p { font-size: .87rem; color: var(--ink-soft-on-dark); margin-bottom: .7rem; }

/* --- Rankings ("Los 5 mejores...") --- */
.rank-list { display: flex; flex-direction: column; gap: 1rem; margin-block: 2rem; }
.rank-item {
  position: relative; display: grid; grid-template-columns: 64px 76px 1fr 130px auto; gap: 1.2rem; align-items: center;
  border-radius: var(--radius-l); padding: 1.2rem 1.4rem; color: #fff;
  background: rgba(20,20,24,.55);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255,255,255,.12);
}
.rank-item:first-child { border-color: var(--gold); }
.rank-num {
  font-family: var(--serif); font-size: 3.6rem; font-weight: 700; color: rgba(255,255,255,.5); text-align: center; line-height: 1;
}
.rank-item:first-child .rank-num { color: var(--gold); }
.rank-item img { width: 76px; height: 76px; object-fit: contain; background: rgba(255,255,255,.06); border-radius: var(--radius-s); padding: .5rem; }
.rank-item .stars { color: rgba(255,255,255,.68); }
.rank-item .stars b { color: #fff; }
.rank-body h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.rank-body h3 a { color: var(--ink-on-dark); transition: color .2s; }
.rank-body h3 a:hover { color: #7fe0c0; }
.rank-body p { font-size: 1.02rem; color: rgba(255,255,255,.68); margin-top: .4rem; }
.rank-stat { text-align: center; padding-inline: 1rem; border-left: 1px solid rgba(255,255,255,.14); border-right: 1px solid rgba(255,255,255,.14); }
.rank-stat b { display: block; font-family: var(--mono); font-size: 2.6rem; color: #7fe0c0; line-height: 1; }
.rank-stat span { font-size: .85rem; color: rgba(255,255,255,.5); }
.rank-actions { display: flex; flex-direction: column; gap: .5rem; align-items: flex-end; }

.faq-item { border-top: 1px solid var(--border-soft); }
.faq-item:last-child { border-bottom: 1px solid var(--border-soft); }
.faq-item summary { padding: 1.1rem 0; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 1rem; list-style: none; color: var(--ink-on-dark); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--ink-soft-on-dark); flex: none; display: grid; place-items: center; position: relative; }
.faq-item summary .plus::before, .faq-item summary .plus::after { content:""; position: absolute; background: var(--ink-on-dark); }
.faq-item summary .plus::before { width: 9px; height: 1.5px; }
.faq-item summary .plus::after { width: 1.5px; height: 9px; transition: transform .25s var(--ease-out); }
.faq-item[open] summary .plus::after { transform: scaleY(0); }
.faq-item-body { padding-bottom: 1.2rem; color: var(--ink-soft-on-dark); font-size: .93rem; max-width: 68ch; }

/* =============================================================
   LEGAL
   ============================================================= */
.legal-page .prose h2 { font-size: 1.3rem; }

/* =============================================================
   OFERTA DEL DIA / banner
   ============================================================= */
.deal-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  background: rgba(20,30,24,.5); color: #fff;
  border-radius: var(--radius-l); padding: 1.8rem 2.2rem; margin-bottom: 2.5rem;
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.deal-banner-left { display: flex; align-items: center; gap: 1.2rem; }
.deal-banner img { width: 80px; height: 80px; object-fit: contain; background: rgba(255,255,255,.08); border-radius: var(--radius-s); padding: .6rem; }
.deal-banner h3 { color: #fff; font-size: 1.15rem; margin-bottom: .25rem; }
.deal-banner .price-now { color: #9adfca; }
.deal-banner .price-before { color: #9a9d94; }

/* =============================================================
   7. Effects
   ============================================================= */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* radar chart: cada serie crece desde el centro al aparecer */
.radar-series { animation: radarGrow .8s cubic-bezier(.16,1,.3,1) both; transform-box: fill-box; }
@keyframes radarGrow { from { transform: scale(0.15); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .radar-series { animation: none; } }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .5s; animation-timing-function: var(--ease-out); }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (max-width: 959px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; width: 100%; max-width: 420px; margin-inline: auto; }
  .ficha-top { grid-template-columns: 1fr; }
  .ficha-galeria { position: static; }
  .comparador-radar-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-wheel-block { grid-template-columns: 1fr; min-height: 0; }
  .brand-wheel { min-height: 240px; }
}

@media (max-width: 719px) {
  .nav-links { position: fixed; inset: 64px 0 0 0; background: var(--ink); flex-direction: column; align-items: flex-start;
    padding: 1.5rem var(--gutter); gap: 1.3rem; transform: translateX(100%); transition: transform .4s var(--ease-out);
    overflow-y: auto; border-top: 1px solid rgba(255,255,255,.1); }
  .nav-links.is-open { transform: translateX(0); }
  .nav-toggle { display: grid; place-items: center; }
  .nav-links a.nav-cta { width: 100%; text-align: center; }
  .nav-dropdown { display: flex; flex-direction: column; gap: .8rem; width: 100%; }
  .nav-dropdown-menu {
    position: static; opacity: 1; visibility: visible; pointer-events: auto; transform: none;
    box-shadow: none; border: none; background: transparent; padding: 0 0 0 1rem; margin: 0; gap: .9rem;
  }
  .nav-dropdown-menu a { padding: 0; color: #9a9d94; }
  .cat-grid { grid-template-columns: 1fr; }
  .pros-contras { grid-template-columns: 1fr; }
  .rank-item { grid-template-columns: 48px 60px 1fr; }
  .rank-num { font-size: 2.2rem; }
  .rank-stat, .rank-actions { grid-column: 1 / -1; }
  .rank-stat { border: none; padding-inline: 0; text-align: left; }
  .rank-actions { flex-direction: row; align-items: center; justify-content: space-between; }
  .ficha-highlights { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .pick-card { grid-template-columns: 90px 1fr; }
  .deal-banner { flex-direction: column; align-items: flex-start; }
  .comparador-checklist { grid-template-columns: 1fr; }
  .brand-wheel-item { left: 24px; }
}

@media (max-width: 539px) {
  .hero-stats { gap: 1.3rem; flex-wrap: wrap; }
  .trust-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
}

/* =============================================================
   9. Reduced motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .card-product, .cat-card, .guide-card, .btn { transition: none; }
}

/* =============================================================
   10. Brand wheel (selector de marcas animado, home)
   ============================================================= */
.brand-wheel-block {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) 1.2fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
  min-height: 320px;
}
.brand-wheel {
  position: relative;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: none;
  outline: none;
  min-height: 320px;
}
.brand-wheel:active { cursor: grabbing; }
.brand-wheel:focus-visible { outline: none; }
.brand-wheel:focus-visible .brand-wheel-item.is-selected { text-shadow: 0 0 24px rgba(255,255,255,.35); }
.brand-wheel-item {
  position: absolute;
  top: 50%;
  left: 52px;
  white-space: nowrap;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  font-weight: 500;
  line-height: 1;
  transform-origin: left center;
  cursor: pointer;
  will-change: transform, opacity, filter;
  color: color-mix(in srgb, var(--ink-on-dark) calc(var(--bw-p, 0) * 100%), var(--ink-soft-on-dark));
}
.brand-wheel-item.is-selected { font-weight: 600; text-shadow: 0 0 30px rgba(255,255,255,.22); }
.brand-wheel-panel-wrap { position: relative; }
.brand-wheel-panel {
  display: none;
  flex-direction: column;
  gap: .9rem;
  align-items: flex-start;
  height: 100%;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: rgba(20,20,24,.55);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-radius: var(--radius-l);
  border: 1px solid rgba(255,255,255,.12);
  animation: bwFadeIn .4s var(--ease-out);
}
.brand-wheel-panel.is-active { display: flex; }
.brand-wheel-panel-icon {
  width: 52px; height: 52px; border-radius: 14px; flex: none;
  display: grid; place-items: center; color: #fff;
}
.brand-wheel-panel-icon svg { width: 24px; height: 24px; }
.brand-wheel-panel h3 { margin: 0; font-size: 1.5rem; color: var(--ink-on-dark); }
.brand-wheel-panel-count {
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: #9adfca; margin: 0;
}
.brand-wheel-panel-desc { color: var(--ink-soft-on-dark); margin: 0; flex: 1; }
@keyframes bwFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .brand-wheel-panel { animation: none; }
}

/* =============================================================
   11. Silk — fondo animado fijo (detras de toda la web)
   ============================================================= */
#silk-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
#silk-bg canvas { display: block; width: 100%; height: 100%; }

/* =============================================================
   13. Electric border — tarjeta de la mejor oferta
   ============================================================= */
.electric-border {
  --electric-light-color: oklch(from var(--electric-border-color) l c h);
  position: relative;
  border-radius: inherit;
  overflow: visible;
  isolation: isolate;
}
.grid-products .electric-border { height: 100%; }
.eb-canvas-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
}
.eb-canvas { display: block; }
.eb-content { position: relative; border-radius: inherit; z-index: 1; height: 100%; }
.eb-layers { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0; }
.eb-glow-1, .eb-glow-2, .eb-background-glow {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-sizing: border-box;
}
.eb-glow-1 { border: 2px solid oklch(from var(--electric-border-color) l c h / 0.6); filter: blur(1px); }
.eb-glow-2 { border: 2px solid var(--electric-light-color); filter: blur(4px); }
.eb-background-glow {
  z-index: -1; transform: scale(1.1); filter: blur(32px); opacity: 0.3;
  background: linear-gradient(-30deg, var(--electric-light-color), transparent, var(--electric-border-color));
}

/* =============================================================
   14. Aviso de cookies
   ============================================================= */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 300;
  max-width: 560px; margin: 0 auto;
  background: rgba(20,20,24,.92);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-l);
  padding: 1.2rem 1.4rem; color: #fff; box-shadow: var(--shadow-l);
  display: flex; flex-direction: column; gap: 1rem;
}
.cookie-banner p { font-size: .86rem; color: rgba(255,255,255,.82); margin: 0; line-height: 1.5; }
.cookie-banner p a { color: #7fe0c0; text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: .7rem; justify-content: flex-end; }
@media (max-width: 539px) {
  .cookie-banner { left: .6rem; right: .6rem; bottom: .6rem; }
  .cookie-banner-actions .btn { flex: 1; }
}
