/* =============================================================
   FLICKList — hoja de estilo unica
   1. Tokens   2. Reset/base   3. Utilidades   4. Tipografia
   5. Componentes   6. Secciones   7. Ficha   8. Comparador
   9. Efectos   10. Responsive   11. Reduced-motion
   ============================================================= */

/* ============ 1. Tokens ===================================== */
:root {
  --celeste-50:  #f2f9fd;
  --celeste-100: #e2f1fa;
  --celeste-200: #c3e3f3;
  --celeste-300: #93cfe8;
  --celeste-400: #57b4d9;
  --celeste-500: #3ba9d4;
  --celeste-600: #2b87ac;
  --celeste-700: #226d8c;

  --gris-25:  #fbfcfd;
  --gris-50:  #f5f7f9;
  --gris-100: #eef1f4;
  --gris-200: #e0e5ea;
  --gris-300: #cdd5dd;
  --gris-400: #9aa6b2;
  --gris-500: #6b7885;
  --gris-700: #3f4a55;
  --gris-900: #1f272e;

  --bg:        #eef6fb;              /* fondo de pagina con un velo celeste */
  --bg-alt:    #e0eef8;              /* bandas y pie, celeste algo mas visible */
  --bg-tint:   #f4fafd;              /* zonas intermedias muy suaves */
  --surface:   #ffffff;             /* tarjetas: blancas, contrastan y ganan profundidad */
  --ink:       var(--gris-900);
  --ink-soft:  var(--gris-500);
  --line:      #d3e2ee;             /* lineas con matiz celeste */
  --accent:    var(--celeste-500);
  --accent-strong: var(--celeste-600);
  --accent-ink: #ffffff;
  --accent-wash: var(--celeste-50);
  --shadow-celeste: 0 10px 30px rgba(43, 135, 172, .14), 0 2px 8px rgba(43, 135, 172, .08);

  --good: #2f8f6b;
  --bad:  #c2536b;

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

  --wrap: 1160px;
  --gutter: clamp(1.1rem, 4vw, 2.4rem);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(34, 109, 140, .07), 0 3px 10px rgba(34, 109, 140, .06);
  --shadow-md: 0 8px 24px rgba(34, 109, 140, .12), 0 2px 6px rgba(34, 109, 140, .07);
  --shadow-lg: 0 24px 55px rgba(34, 109, 140, .18);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.25, .46, .45, .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;
  scroll-padding-top: 88px;
}
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; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.12; letter-spacing: -0.015em; font-weight: 600; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ============ 3. Utilidades ================================ */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(2.6rem, 6vw, 4.6rem); }
.band { background: var(--bg-alt); border-block: 1px solid var(--line); }
.muted { color: var(--ink-soft); }
.small { font-size: .86rem; }
.lead-narrow { max-width: 62ch; font-size: 1.06rem; color: var(--gris-700); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--ink); color: #fff;
  border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.empty { padding: 2rem 0; }

/* ============ 4. Tipografia ================================ */
h1 { font-family: var(--serif); font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 500; letter-spacing: -0.02em; }
h2 { font-family: var(--serif); font-size: clamp(1.4rem, 3.2vw, 2rem); font-weight: 500; }
h3 { font-size: 1.06rem; }
.prose p, .prose-page p { margin-block: .9em; max-width: 68ch; }
.prose h2, .prose-page h2 { margin-top: 1.8em; }
.prose-page ul { margin: 1em 0; padding-left: 1.2em; }
.prose-page li { margin-block: .35em; }

/* ============ 5. Componentes ============================== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.15rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; line-height: 1;
  border: 1px solid transparent;
  transition: transform .18s var(--ease-out), background .18s var(--ease-out),
              box-shadow .18s var(--ease-out), border-color .18s var(--ease-out);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn-buy { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.btn-buy:hover { background: var(--accent-strong); box-shadow: var(--shadow-md); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent-300, var(--celeste-300)); background: var(--accent-wash); }
.btn-lg { padding: .95rem 1.5rem; font-size: 1rem; }
.btn-sm { padding: .5rem .85rem; font-size: .82rem; }
.btn-ico { display: inline-flex; opacity: .8; }

.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .5rem; border-radius: 6px;
  font-size: .74rem; font-weight: 700; letter-spacing: .02em;
}
.badge-oferta { background: var(--accent-wash); color: var(--accent-strong); }

.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip {
  display: inline-flex; align-items: center;
  padding: .2rem .55rem; border-radius: 999px;
  font-size: .74rem; font-weight: 600; letter-spacing: .01em;
  border: 1px solid var(--line);
}
.chip-good { background: #eaf6f0; color: var(--good); border-color: #bfe4d3; }
.chip-neutral { background: var(--gris-100); color: var(--gris-700); }

.card-cat {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .01em;
  color: var(--accent-strong); text-transform: none;
}
.card-cat svg { width: 1.05rem; height: 1.05rem; flex: none; }
.card-cat-lg { font-size: .95rem; }
.card-cat-lg svg { width: 1.3rem; height: 1.3rem; }

.stars { display: inline-flex; align-items: center; gap: .12rem; color: var(--celeste-500); font-size: .9rem; }
.stars svg { width: 1rem; height: 1rem; flex: none; }
.stars .star { color: var(--gris-300); display: inline-flex; }
.stars .star.full { color: var(--celeste-500); }
.stars .star.half { position: relative; color: var(--gris-300); }
.stars .star.half::after {
  content: ""; position: absolute; inset: 0; width: 50%; overflow: hidden;
  background: var(--celeste-500);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.5l2.6 5.3 5.9.9-4.3 4.1 1 5.8L12 16.9 6.8 19.6l1-5.8L3.5 9.7l5.9-.9z'/%3E%3C/svg%3E") no-repeat 0 / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.5l2.6 5.3 5.9.9-4.3 4.1 1 5.8L12 16.9 6.8 19.6l1-5.8L3.5 9.7l5.9-.9z'/%3E%3C/svg%3E") no-repeat 0 / contain;
}
.stars b { margin-left: .3rem; color: var(--ink); font-size: .86rem; }
.rating-count { color: var(--ink-soft); font-weight: 400; font-size: .8rem; margin-left: .3rem; }

.price { margin: .2rem 0 .1rem; }
.price-now { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--ink); }
.price-was { color: var(--ink-soft); text-decoration: line-through; font-size: .95rem; margin-left: .35rem; }
.price-now.price-na { font-family: var(--sans); font-size: .95rem; font-weight: 600; color: var(--accent-strong); }
.price-note { display: block; margin-top: .25rem; }

.yn { display: inline-flex; align-items: center; gap: .28rem; font-weight: 600; }
.yn svg { width: 1.05em; height: 1.05em; flex: none; }
.yn.yes { color: var(--good); }
.yn.no { color: var(--gris-400); }

.sample-note {
  margin-top: .9rem; padding: .6rem .8rem;
  background: var(--accent-wash); border: 1px dashed var(--celeste-300);
  border-radius: var(--radius-sm); color: var(--accent-strong);
}
.card-flag {
  position: absolute; top: .6rem; left: .6rem;
  padding: .18rem .5rem; border-radius: 6px;
  background: rgba(255, 255, 255, .92); color: var(--accent-strong);
  font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(239, 247, 252, .85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
@supports not (backdrop-filter: blur(1px)) { .site-header { background: #eef6fb; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; }
.brand-mark {
  display: grid; place-items: center; width: 30px; height: 30px;
  background: var(--accent); color: #fff; border-radius: 9px;
  font-family: var(--serif); font-size: 1.05rem; line-height: 1;
}
.brand-name { font-size: 1.12rem; letter-spacing: -0.02em; }

.nav { display: flex; align-items: center; }
.nav-menu { list-style: none; display: flex; align-items: center; gap: .3rem; }
.nav-menu a {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .7rem; border-radius: 9px;
  font-size: .92rem; font-weight: 500; color: var(--gris-700);
  transition: background .16s var(--ease-out), color .16s var(--ease-out);
}
.nav-menu a:hover { background: var(--gris-100); color: var(--ink); }
.nav-menu a.is-active { color: var(--ink); font-weight: 600; }
.nav-cta-li { margin-left: .3rem; }
.nav-menu a.nav-cta,
.nav-menu a.nav-cta:hover {
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.nav-menu a.nav-cta svg { width: 1.05em; height: 1.05em; flex: none; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface);
  padding: 10px;
}
.nav-toggle span:not(.sr-only) {
  display: block; height: 2px; background: var(--ink); border-radius: 2px;
  margin: 3px 0; transition: transform .2s var(--ease-out), opacity .2s var(--ease-out);
}

/* ============ 6. Secciones =============================== */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.section-head h2 { position: relative; padding-left: .85rem; }
.section-head h2::before {
  content: ""; position: absolute; left: 0; top: .12em; bottom: .12em; width: 4px;
  border-radius: 4px; background: linear-gradient(var(--celeste-400), var(--celeste-600));
}
.section-link, .section-head a {
  display: inline-flex; align-items: center; gap: .3rem;
  font-weight: 600; font-size: .9rem; color: var(--accent-strong);
}
.section-link svg { width: 1em; height: 1em; }

/* Hero */
.hero {
  background:
    radial-gradient(70% 130% at 88% -15%, var(--celeste-200), transparent 62%),
    radial-gradient(60% 120% at -5% 0%, #dbeafc, transparent 58%),
    radial-gradient(40% 90% at 50% 120%, var(--celeste-100), transparent 70%),
    linear-gradient(180deg, #f6fbfe, var(--bg));
  border-bottom: 1px solid var(--line);
}
.hero-inner { padding-block: clamp(3rem, 9vw, 6rem); max-width: 46rem; }
.hero-kicker { font-weight: 600; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-strong); }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.7rem); margin: .5rem 0 .7rem; }
.hero-sub { font-size: clamp(1.02rem, 2.2vw, 1.22rem); color: var(--gris-700); max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }

/* Category grid */
.cat-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.cat-card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: .5rem 1rem; padding: 1.2rem 1.3rem;
  background: linear-gradient(155deg, #ffffff 55%, var(--celeste-50));
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), border-color .2s var(--ease-out);
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-celeste); border-color: var(--celeste-400); }
.cat-ico {
  grid-row: 1 / span 2; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--accent-wash); color: var(--accent-strong);
}
.cat-ico svg { width: 1.7rem; height: 1.7rem; }
.cat-name { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; align-self: end; }
.cat-name svg { display: inline-block; width: .8em; height: .8em; opacity: .45; vertical-align: baseline; }
.cat-meta { grid-column: 2; align-self: start; }
.cat-go { grid-row: 1 / span 2; color: var(--gris-400); }
.cat-go svg { width: 1.3rem; height: 1.3rem; }

/* Cards grid */
.grid.cards { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), border-color .2s var(--ease-out);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-celeste); border-color: var(--celeste-400); }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; background: linear-gradient(160deg, var(--celeste-50), #eef1f4); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: .5rem; padding: 1.1rem 1.15rem 1.2rem; }
.card-title { font-family: var(--serif); font-size: 1.08rem; font-weight: 600; line-height: 1.25; }
.card-title a:hover { color: var(--accent-strong); }
.card-desc { color: var(--gris-700); font-size: .92rem; }
.card-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .2rem; }
.cmp-add {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: .5rem; font-size: .85rem; color: var(--ink-soft); font-weight: 500;
  cursor: pointer;
}
.cmp-add input { accent-color: var(--accent); width: 1rem; height: 1rem; }
.cmp-add-lg { margin-top: .9rem; font-size: .92rem; }

/* Guides */
.guide-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.guide-card {
  display: flex; flex-direction: column; gap: .45rem;
  padding: 1.3rem 1.3rem 1.3rem 1.5rem; border-radius: var(--radius);
  background: linear-gradient(150deg, #ffffff 60%, var(--celeste-50));
  border: 1px solid var(--line); border-left: 4px solid var(--celeste-400);
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), border-color .2s var(--ease-out);
}
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-celeste); border-left-color: var(--celeste-600); }
.guide-kicker { color: var(--accent-strong); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.guide-title { font-family: var(--serif); font-size: 1.16rem; font-weight: 600; }
.guide-go { color: var(--accent-strong); font-weight: 600; display: inline-flex; align-items: center; gap: .3rem; }
.guide-go svg { width: 1em; height: 1em; }

/* ============ 7. Ficha ================================= */
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; padding-top: 1.4rem; font-size: .85rem; color: var(--ink-soft); }
.crumbs a:hover { color: var(--accent-strong); }
.crumbs svg { width: .95em; height: .95em; opacity: .6; }

.ficha { padding-block: 1.6rem 4rem; }
.ficha-top { display: grid; grid-template-columns: 1fr; gap: 1.6rem; margin-bottom: 2.4rem; }

.gallery-main { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: var(--gris-100); border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: .6rem; margin-top: .7rem; flex-wrap: wrap; }
.thumb { width: 66px; height: 66px; border-radius: 10px; overflow: hidden; border: 2px solid var(--line); background: var(--gris-100); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--accent); }

.ficha-head h1 { margin: .35rem 0 .3rem; }
.ficha-brand { margin-bottom: .5rem; }
.ficha-lead { margin: .8rem 0 1rem; color: var(--gris-700); font-size: 1.02rem; max-width: 52ch; }
.ficha-head .btn-buy { margin-top: 1rem; }

.ficha-section { padding-top: 2.2rem; margin-top: 2.2rem; border-top: 1px solid var(--line); }
.ficha-section h2 { margin-bottom: .7rem; }

.valo-grid { display: grid; grid-template-columns: 1fr; gap: 1.4rem; align-items: center; margin-top: 1rem; }
.valo-chart { display: flex; justify-content: center; }

/* Radar */
.radar { width: min(100%, 380px); height: auto; overflow: visible; }
.radar-ring { fill: none; stroke: var(--line); stroke-width: 1; }
.radar-spoke { stroke: var(--gris-200); stroke-width: 1; }
.radar-label { font-size: 10.5px; font-weight: 600; fill: var(--gris-500); font-family: var(--sans); }
.radar-area { fill-opacity: .16; stroke-width: 2; stroke-linejoin: round; }

.score-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.score-list li { display: grid; grid-template-columns: 9.5rem 1fr 1.8rem; align-items: center; gap: .6rem; font-size: .88rem; }
.score-k { color: var(--gris-700); }
.score-bar { height: 8px; border-radius: 999px; background: var(--gris-100); overflow: hidden; }
.score-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--celeste-300), var(--celeste-500)); border-radius: inherit; }
.score-v { text-align: right; font-weight: 700; color: var(--ink); }

/* Spec table */
.spec-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin-top: .6rem; }
.spec-table th[colspan] {
  text-align: left; padding: 1rem .2rem .4rem; font-family: var(--serif);
  font-size: .95rem; font-weight: 600; color: var(--accent-strong);
}
.spec-table tbody tr:not(.spec-group) { border-top: 1px solid var(--line); }
.spec-table th[scope="row"] { text-align: left; font-weight: 500; color: var(--gris-700); padding: .6rem 1rem .6rem .2rem; width: 46%; vertical-align: top; }
.spec-table td { padding: .6rem .2rem; }

/* Pros / cons */
.proscons { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 1.4rem 0; }
.pc-col { padding: 1.1rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.pc-col h3 { display: flex; align-items: center; gap: .45rem; margin-bottom: .6rem; font-family: var(--serif); font-weight: 600; }
.pc-col h3 svg { width: 1.15em; height: 1.15em; flex: none; }
.pc-pros h3 { color: var(--good); }
.pc-cons h3 { color: var(--bad); }
.pc-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.pc-col li { display: flex; gap: .5rem; font-size: .92rem; }
.pc-col li svg { width: 1.05em; height: 1.05em; flex: none; margin-top: .18em; }
.pc-pros li svg { color: var(--good); }
.pc-cons li svg { color: var(--bad); }
.ideal { padding: .9rem 1.1rem; background: var(--accent-wash); border-radius: var(--radius-sm); border-left: 3px solid var(--accent); }
.affiliate-inline { margin-top: 2rem; padding-top: 1rem; border-top: 1px dashed var(--line); }

/* FAQs */
.faqs { display: flex; flex-direction: column; gap: .5rem; margin: 1rem 0 1.6rem; }
.faq { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.faq summary { padding: .85rem 1rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; color: var(--accent-strong); font-weight: 700; }
.faq[open] summary::after { content: "\2013"; }
.faq p { padding: 0 1rem 1rem; color: var(--gris-700); }

/* Rank list (guias) */
.rank-list { display: flex; flex-direction: column; gap: 1.1rem; margin: 1.6rem 0 2.4rem; }
.rank-item {
  display: grid; grid-template-columns: auto 1fr; gap: .6rem 1rem;
  padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.rank-num { grid-row: 1 / span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-family: var(--serif); }
.rank-media { display: none; }
.rank-body h3 { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; margin: .2rem 0; }
.rank-body h3 a:hover { color: var(--accent-strong); }
.rank-body .card-actions { margin-top: .6rem; }

/* ============ 8. Comparador =========================== */
.cmp-layout { display: grid; grid-template-columns: 1fr; gap: 1.6rem; margin-top: 1.6rem; }
.cmp-picker { align-self: start; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.cmp-niche + .cmp-niche { margin-top: 1rem; }
.cmp-niche h3 { display: flex; align-items: center; gap: .45rem; font-family: var(--serif); font-weight: 600; margin-bottom: .5rem; }
.cmp-niche h3 svg { width: 1.15em; height: 1.15em; flex: none; }
.cmp-picklist { list-style: none; display: flex; flex-direction: column; gap: .35rem; }
.cmp-picklist label { display: flex; gap: .5rem; align-items: flex-start; font-size: .88rem; cursor: pointer; }
.cmp-picklist input { accent-color: var(--accent); margin-top: .2rem; }
.cmp-picker .btn { margin-top: 1rem; }

.cmp-overlay-wrap { display: flex; flex-direction: column; align-items: center; gap: .8rem; margin-bottom: 1.6rem; }
.cmp-legend { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.cmp-legend span { display: inline-flex; align-items: center; gap: .4rem; font-size: .84rem; font-weight: 600; }
.cmp-legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }

.cmp-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); }
.cmp-table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .88rem; }
.cmp-table th, .cmp-table td { padding: .7rem .8rem; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
.cmp-table thead th { border-top: 0; background: var(--celeste-50); position: sticky; top: 0; }
.cmp-table thead th.cmp-prod { min-width: 150px; }
.cmp-table tbody th { font-weight: 500; color: var(--gris-700); background: var(--bg-tint); white-space: nowrap; }
.cmp-table td.is-best { background: var(--accent-wash); font-weight: 700; color: var(--accent-strong); }
.cmp-table .cmp-buy-row td { background: var(--surface); }
.cmp-prod-head { display: flex; flex-direction: column; gap: .3rem; }
.cmp-prod-head img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }
.cmp-prod-head strong { font-family: var(--serif); font-weight: 600; font-size: .92rem; line-height: 1.2; }
.cmp-remove { align-self: flex-start; font-size: .76rem; color: var(--bad); font-weight: 600; }
.cmp-block + .cmp-block { margin-top: 2.6rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.cmp-block h2 { margin-bottom: 1rem; }
.cmp-table .cmp-group th {
  background: var(--gris-100); font-family: var(--serif); font-weight: 600;
  color: var(--accent-strong); font-size: .9rem;
}
.cmp-count {
  display: inline-grid; place-items: center; min-width: 1.25rem; height: 1.25rem;
  padding: 0 .3rem; margin-left: .1rem; border-radius: 999px;
  background: var(--accent-ink); color: var(--accent-strong);
  font-size: .72rem; font-weight: 800; line-height: 1;
}

/* ============ 9. Efectos ============================== */
[data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
  animation: revealSafety .01s linear 3s forwards;   /* red de seguridad: el contenido nunca queda oculto */
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
@keyframes revealSafety { to { opacity: 1; transform: none; } }
.js [data-reveal]:where(.no-anim, .no-anim *) { opacity: 1; transform: none; }

/* Footer */
.site-footer { margin-top: 3rem; border-top: 3px solid var(--celeste-400); background: linear-gradient(180deg, var(--bg-alt), #d3e6f4); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; padding-block: 2.4rem 1.4rem; }
.footer-brand p { color: var(--ink-soft); font-size: .9rem; margin-top: .4rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.footer-links a { font-size: .9rem; color: var(--gris-700); font-weight: 500; }
.footer-links a:hover { color: var(--accent-strong); }
.footer-disclosure { max-width: 60ch; }
.footer-disclosure a { color: var(--accent-strong); font-weight: 600; }
.footer-legal { padding-block: 1rem 2rem; border-top: 1px solid var(--line); }

.cat-toolbar { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.1rem 0 1.4rem; }
.list-controls { margin-bottom: 1.2rem; }

/* Grupo (categoría del usuario) */
.cat-card-grupo { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; }
.cat-card-main { display: flex; flex-direction: column; gap: .35rem; width: 100%; }
.cat-card-grupo .cat-go { position: static; }
.cat-tipos { display: flex; flex-wrap: wrap; gap: .4rem; }
.tipo-tag {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .3rem .6rem; border-radius: 999px;
  background: var(--accent-wash); color: var(--accent-strong);
  font-size: .78rem; font-weight: 600; border: 1px solid var(--celeste-200);
}
.tipo-tag:hover { background: var(--celeste-100); }
.tipo-tag svg { width: 1em; height: 1em; flex: none; }

.tipo-intro { list-style: none; display: flex; flex-direction: column; gap: .7rem; margin: 1.4rem 0; }
.tipo-intro li { padding-left: 0; color: var(--gris-700); font-size: .95rem; scroll-margin-top: 96px; }
.tipo-intro li a { display: inline-flex; align-items: center; gap: .35rem; color: var(--accent-strong); }
.tipo-intro li a svg { width: 1.05em; height: 1.05em; flex: none; }

.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0 1rem; }
.filter-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .85rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: .85rem; font-weight: 600; color: var(--gris-700);
  transition: background .16s var(--ease-out), border-color .16s var(--ease-out), color .16s var(--ease-out);
}
.filter-chip svg { width: 1.05em; height: 1.05em; flex: none; }
.filter-chip:hover { border-color: var(--celeste-300); }
.filter-chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.filter-chip .fc-n { opacity: .7; font-weight: 700; }
.filter-chip.is-active .fc-n { opacity: .85; }

.cmp-grupo-h {
  display: flex; align-items: center; gap: .4rem;
  font-family: var(--serif); font-weight: 600; font-size: 1rem;
  margin: 1.2rem 0 .4rem; color: var(--ink);
}
.cmp-grupo-h:first-child { margin-top: 0; }
.cmp-grupo-h svg { width: 1.1em; height: 1.1em; flex: none; color: var(--accent-strong); }
.list-controls select { font: inherit; padding: .4rem .6rem; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); margin-left: .4rem; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; margin: 1rem 0; }

/* Texto SEO + FAQ de portada */
.seo-body .prose p { max-width: 68ch; }
.faqs-section { padding-block: clamp(2rem, 5vw, 3.4rem); }
.faqs-section .faqs { max-width: 720px; }

/* ============ Publicidad — huecos vacíos marcados ===== */
.ad-slot {
  display: flex; align-items: center; justify-content: center; position: relative;
  margin: 1.6rem auto; padding: .9rem;
  border: 1px dashed var(--celeste-300); border-radius: var(--radius-sm);
  background: repeating-linear-gradient(-45deg, var(--celeste-50) 0 10px, #ffffff 10px 20px);
  color: var(--accent-strong);
}
.ad-slot .ad-tag {
  font-size: .68rem; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent-strong); opacity: .7;
}
.ad-horizontal { width: 100%; max-width: 970px; min-height: 90px; }
.ad-rect { width: 100%; max-width: 336px; min-height: 250px; }
.ad-in-modal { width: 300px; max-width: 100%; min-height: 250px; margin: .6rem auto; }

/* Pop-up tras la descarga */
.ad-interstitial {
  border: 0; padding: 0; border-radius: var(--radius);
  width: min(92vw, 360px); max-width: 92vw; box-shadow: var(--shadow-lg);
  background: var(--surface); color: var(--ink);
  margin: auto; /* centrado del <dialog> modal */
}
.ad-interstitial:not([open]) { display: none; }
.ad-interstitial::backdrop { background: rgba(15, 33, 43, .55); backdrop-filter: blur(2px); }
.ad-interstitial-inner { position: relative; padding: 2.2rem 1.4rem 1.4rem; text-align: center; }
.ad-tag-lg { font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-strong); opacity: .65; margin-bottom: .4rem; }
.ad-x {
  position: absolute; top: .55rem; right: .7rem; width: 34px; height: 34px;
  font-size: 1.4rem; line-height: 1; border-radius: 999px; color: var(--gris-500);
}
.ad-x:hover { background: var(--gris-100); color: var(--ink); }
.ad-interstitial .btn { margin-top: .4rem; }

/* Aviso pequeño en una esquina */
.ad-toast {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 120;
  display: flex; align-items: center; gap: .6rem;
  width: min(92vw, 300px); min-height: 96px; padding: .7rem .9rem;
  border: 1px dashed var(--celeste-300); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-md);
  transform: translateY(140%); transition: transform .45s var(--ease-out);
}
.ad-toast.is-in { transform: translateY(0); }
.ad-toast .ad-tag { font-size: .64rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-strong); opacity: .7; }
.ad-toast-body { flex: 1; }
.ad-toast-x {
  align-self: flex-start; width: 26px; height: 26px; font-size: 1.05rem; line-height: 1;
  border-radius: 999px; color: var(--gris-500);
}
.ad-toast-x:hover { background: var(--gris-100); color: var(--ink); }

/* Botón de descargar comparativa */
.cmp-download { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: .2rem 0 1rem; }
.cmp-download .btn-pdf svg { width: 1.05em; height: 1.05em; }
.cmp-download .is-busy { opacity: .7; pointer-events: none; }

/* ============ Asistente de IA ========================== */
.ai-widget { position: fixed; left: 1rem; bottom: 1rem; z-index: 130; }
.ai-fab {
  display: flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem;
  border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700;
  box-shadow: var(--shadow-md); border: 0; transition: transform .18s var(--ease-out);
}
.ai-fab:hover { transform: translateY(-2px); }
.ai-fab-ico { font-size: 1.05em; }
.ai-panel {
  position: absolute; left: 0; bottom: calc(100% + .6rem);
  width: min(92vw, 340px); max-height: min(70vh, 520px);
  display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); overflow: hidden;
}
.ai-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: .8rem 1rem; background: var(--celeste-50); border-bottom: 1px solid var(--line);
}
.ai-panel-title { font-weight: 700; color: var(--accent-strong); }
.ai-panel-close {
  width: 28px; height: 28px; border-radius: 999px; font-size: 1.1rem; line-height: 1;
  color: var(--gris-500);
}
.ai-panel-close:hover { background: var(--gris-100); color: var(--ink); }
.ai-messages { flex: 1; overflow-y: auto; padding: .9rem 1rem; display: flex; flex-direction: column; gap: .6rem; }
.ai-msg { max-width: 90%; padding: .55rem .8rem; border-radius: var(--radius-sm); font-size: .9rem; line-height: 1.4; }
.ai-msg-bot { align-self: flex-start; background: var(--celeste-50); color: var(--ink); }
.ai-msg-user { align-self: flex-end; background: var(--accent); color: #fff; }
.ai-msg-error { align-self: flex-start; background: #fdecec; color: #a33; }
.ai-msg-typing { align-self: flex-start; opacity: .6; font-style: italic; }
.ai-msg-products { display: flex; flex-direction: column; gap: .4rem; margin-top: .3rem; }
.ai-product-card {
  display: flex; align-items: center; gap: .55rem; padding: .45rem .55rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
}
.ai-product-card img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; flex: none; }
.ai-product-card .ai-pc-name { font-size: .82rem; font-weight: 600; line-height: 1.25; }
.ai-product-card .ai-pc-price { font-size: .78rem; color: var(--accent-strong); font-weight: 700; }
.ai-quick { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1rem .6rem; }
.ai-chip {
  padding: .32rem .7rem; border-radius: 999px; border: 1px solid var(--celeste-300);
  background: var(--celeste-50); color: var(--accent-strong); font-size: .78rem; font-weight: 600;
}
.ai-chip:hover { background: var(--celeste-100, var(--celeste-50)); }
.ai-form { display: flex; gap: .5rem; padding: 0 1rem .7rem; }
.ai-input {
  flex: 1; padding: .55rem .7rem; border-radius: var(--radius-sm); border: 1px solid var(--line);
  font: inherit; background: var(--bg-tint, var(--surface));
}
.ai-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.ai-send {
  width: 38px; height: 38px; flex: none; border-radius: var(--radius-sm); background: var(--accent);
  color: #fff; font-size: 1rem; border: 0;
}
.ai-send:hover { background: var(--accent-strong); }
.ai-disclaimer { padding: 0 1rem .8rem; }
@media (max-width: 480px) {
  .ai-widget { left: .6rem; bottom: .6rem; }
  .ai-panel { width: calc(100vw - 1.2rem); }
}

/* ============ 10. Responsive ========================== */
@media (min-width: 540px) {
  .grid.cards { grid-template-columns: repeat(2, 1fr); }
  .rank-media { display: block; }
  .rank-item { grid-template-columns: auto 120px 1fr; }
  .rank-media img { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; }
  .rank-num { grid-row: 1 / span 2; }
}
@media (min-width: 720px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-card { grid-template-columns: 1fr; text-align: left; gap: .5rem; }
  .cat-ico { grid-row: auto; }
  .cat-go { position: absolute; top: 1.2rem; right: 1.2rem; grid-row: auto; }
  .cat-card { position: relative; }
  .guide-grid { grid-template-columns: repeat(3, 1fr); }
  .proscons { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr; }
  .footer-disclosure { grid-column: 1 / -1; }
  .valo-grid { grid-template-columns: 380px 1fr; }
}
@media (min-width: 960px) {
  .grid.cards { grid-template-columns: repeat(3, 1fr); }
  .ficha-top { grid-template-columns: 440px 1fr; align-items: start; }
  .cmp-layout { grid-template-columns: 260px 1fr; }
  .page-guide .rank-item { grid-template-columns: auto 150px 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; top: calc(100% + 1px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .1rem;
    padding: .6rem var(--gutter) 1rem;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-menu a { padding: .8rem .6rem; border-radius: 8px; }
  .nav-cta-li { margin: .4rem 0 0; }
  .nav-menu a.nav-cta { justify-content: center; }
  .nav.is-open .nav-menu { display: flex; }
  .no-js .nav-menu { display: flex; position: static; box-shadow: none; padding-inline: 0; }
}
@media (min-width: 1180px) {
  .grid.cards { gap: 1.5rem; }
}

/* ============ 11. Reduced-motion (solo intrusivo) ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { transition: none; opacity: 1; transform: none; }
}
