/* =============================================================
   AspiraLab — hoja de estilos única
   1. Variables  2. Base  3. Utilidades  4. Tipografía
   5. Componentes  6. Secciones y páginas  7. Comparador
   8. Efectos  9. Responsive  10. Movimiento reducido
   ============================================================= */

/* 1. Variables ------------------------------------------------ */
:root {
  --bg: #f5f3ee;
  --surface: #ffffff;
  --ink: #14161a;
  --ink-2: #2b2e35;
  --muted: #646a74;
  --line: #e2ded4;
  --line-2: #ece9e1;
  --accent: #c6f432;          /* lima: acciones principales */
  --accent-ink: #14161a;
  --blue: #2747ff;            /* enlaces y serie 1 */
  --amz: #ffb21e;             /* botones de compra */
  --amz-hover: #ffa000;
  --best-bg: #ecf9c4;
  --best-ink: #2f5b00;
  --ex-bg: #fff1cc;
  --ex-ink: #7a4f00;
  --good: #1f8a4c;
  --bad: #c2412d;

  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "Noto Serif", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 22, 26, .05), 0 8px 28px -12px rgba(20, 22, 26, .18);
  --shadow-lg: 0 2px 4px rgba(20, 22, 26, .06), 0 24px 60px -24px rgba(20, 22, 26, .35);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: 16px;
  --maxw: 1200px;
}

/* 2. Base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: 90px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
table { border-collapse: collapse; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

/* 3. Utilidades ----------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 720px; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--ink); color: #fff; z-index: 9999; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.muted { color: var(--muted); }
.js-only { display: none !important; }
html.js .js-only { display: revert !important; }
html.js .filters.js-only { display: grid !important; }
html.js .cmp-tools.js-only { display: flex !important; }
html.js .no-js-only { display: none; }
.ico { width: 1.1em; height: 1.1em; flex: none; display: inline-block; vertical-align: -.18em; }

/* 4. Tipografía ----------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.35rem); }
h3 { font-size: 1.25rem; }
.h-small { font-family: var(--sans); font-size: 1rem; font-weight: 650; letter-spacing: 0; }
.eyebrow { font: 650 .74rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem; }
.eyebrow-light { color: rgba(255, 255, 255, .62); }
.lead { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--ink-2); max-width: 62ch; margin-top: 1rem; }
.prose { max-width: 70ch; font-size: 1.06rem; }
.prose-wide { max-width: 860px; }
.wrap.prose { max-width: var(--maxw); }
.wrap.prose > * { max-width: 70ch; }
.wrap.prose-wide > * { max-width: 860px; }
.wrap.prose > .method-grid { max-width: none; }
.prose p + p, .prose p + ul, .prose ul + p, .prose ol + p { margin-top: 1em; }
.prose h2 { margin: 2.2rem 0 .8rem; font-size: clamp(1.4rem, 3vw, 1.85rem); }
.prose h3 { margin: 1.4rem 0 .5rem; }
.prose a, .link-inline { color: var(--blue); text-underline-offset: 3px; }
.prose ul:not([class]) { list-style: disc; padding-left: 1.3rem; }
.prose ul:not([class]) li + li { margin-top: .35rem; }
.prose strong { color: var(--ink); }

/* 5. Componentes ---------------------------------------------- */
/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .7rem 1.15rem; border-radius: 999px;
  font: 650 .95rem/1.1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease-out), color .2s, border-color .2s, transform .2s var(--ease-out), box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 38px; padding: .5rem .9rem; font-size: .88rem; }
.btn-lg { min-height: 52px; padding: .9rem 1.5rem; font-size: 1.02rem; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #b6e81c; box-shadow: 0 8px 24px -10px rgba(140, 190, 0, .7); }
.btn-amz { background: var(--amz); color: var(--ink); }
.btn-amz:hover { background: var(--amz-hover); box-shadow: 0 8px 22px -10px rgba(255, 150, 0, .8); }
.btn-line { border: 1.5px solid var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-line.is-on { background: var(--ink); color: #fff; }
.btn-ghost { background: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: var(--line); }
.btn-ghost-light { border: 1.5px solid rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-flag { font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: rgba(20, 22, 26, .14); padding: .2rem .45rem; border-radius: 999px; }

/* Insignias */
.badge-ejemplo {
  display: inline-flex; align-items: center; gap: .3rem;
  font: 750 .66rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ex-ink); background: var(--ex-bg); border: 1.5px dashed #e0a800;
  padding: .32rem .5rem; border-radius: 6px; vertical-align: middle; white-space: nowrap;
}
.badge-ejemplo.on-media { position: absolute; top: 12px; left: 12px; z-index: 2; }
.badge-off { font: 700 .78rem/1 var(--sans); background: var(--bad); color: #fff; padding: .25rem .45rem; border-radius: 6px; }
.score-pill {
  display: inline-flex; align-items: baseline; gap: 1px; flex: none;
  font: 750 1.15rem/1 var(--sans); background: var(--ink); color: var(--accent);
  padding: .5rem .65rem; border-radius: 12px; font-variant-numeric: tabular-nums;
}
.score-pill small { font-size: .7rem; color: rgba(255, 255, 255, .6); font-weight: 600; }

/* Precio */
.price { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.price-now { font: 750 1.5rem/1.1 var(--sans); font-variant-numeric: tabular-nums; }
.price-old { color: var(--muted); }
.price-empty { font: 650 1.05rem/1.2 var(--sans); color: var(--ink-2); }
.price-note { font-size: .78rem; color: var(--muted); margin-top: .3rem; line-height: 1.4; }

/* Barra de transparencia y aviso de demo */
.disclosure-bar { background: var(--ink); color: rgba(255, 255, 255, .78); font-size: .8rem; line-height: 1.45; }
.disclosure-bar p { display: flex; gap: .5rem; align-items: flex-start; padding-block: .55rem; }
.disclosure-bar strong { color: #fff; }
.disclosure-bar a { color: var(--accent); }
.disclosure-bar .ico { margin-top: .12rem; color: var(--accent); }
.demo-bar { background: var(--ex-bg); color: var(--ex-ink); font-size: .82rem; padding-block: .5rem; border-bottom: 1px solid #f0d78a; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245, 243, 238, .92); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(10px)) {
  .site-header { background: rgba(245, 243, 238, .78); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); }
}
.header-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .4rem 1rem; padding-block: .6rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font: 700 1.2rem/1 var(--serif); text-decoration: none; color: var(--ink); letter-spacing: -.01em; }
.brand-mark { color: var(--ink); --bg: var(--bg); }
.nav { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.nav::-webkit-scrollbar { display: none; }
.nav ul { display: flex; gap: .25rem; }
.nav a { display: block; padding: .45rem .75rem; border-radius: 999px; font-size: .9rem; font-weight: 550; text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.nav a:hover { background: var(--line-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.site-header a.nav-cta, .site-header a.nav-cta:hover { color: var(--accent-ink); }
.nav-cta { min-height: 40px; padding: .55rem 1rem; }
.nav-cta[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--ink); }
.cmp-count { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; padding: 0 .3rem; border-radius: 999px; background: var(--ink); color: var(--accent); font-size: .75rem; font-weight: 750; }

/* Migas */
.crumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; font-size: .82rem; color: var(--muted); padding-top: 1.1rem; }
.crumbs li + li::before { content: "/"; margin-right: .35rem; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* Tarjetas de producto */
.grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #e9e6df; }
.card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--ease-out); }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; gap: .55rem; padding: 1.1rem 1.15rem 1.15rem; flex: 1; }
.card-brand { font: 650 .72rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card-title { font-size: 1.4rem; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.card-tag { color: var(--ink-2); font-size: .95rem; }
.card-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin-top: .2rem; }
.card-specs li { background: var(--bg); border-radius: 10px; padding: .5rem .55rem; min-width: 0; }
.card-specs span { display: block; font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.card-specs strong { display: block; font-size: .86rem; line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.card-foot { display: flex; align-items: flex-start; gap: .8rem; margin-top: auto; padding-top: .5rem; }
.card-price .price-now { font-size: 1.2rem; }
.card-actions { display: flex; gap: .5rem; flex-wrap: wrap; position: relative; z-index: 1; }
.card-actions .btn { flex: 1; }
.card-amz { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .4rem; font-weight: 650; font-size: .9rem; color: var(--ink); text-decoration-color: var(--amz); text-decoration-thickness: 2px; text-underline-offset: 4px; align-self: flex-start; }
.card-amz:hover { color: #b06d00; }
.card .badge-ejemplo, .card .btn, .card .card-amz { position: relative; z-index: 1; }
.card .badge-ejemplo.on-media { position: absolute; }

/* Secciones genéricas */
.sec { padding-block: clamp(3rem, 7vw, 5.5rem); }
.sec-tight { padding-block: 1.5rem 3.5rem; }
.sec-tint { background: var(--surface); border-block: 1px solid var(--line); }
.sec-head { margin-bottom: 1.6rem; max-width: 72ch; }
.sec-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; max-width: none; flex-wrap: wrap; }
.sec-sub { color: var(--muted); margin-top: .6rem; }
.link-more { display: inline-flex; align-items: center; gap: .35rem; font-weight: 650; color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.page-hero { padding-block: 1.6rem 1.8rem; }
.note-box { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: var(--radius-sm); padding: 1.2rem 1.3rem; }
.note-box h2 { font-size: 1.3rem; margin-bottom: .6rem; }
.note-box ul { display: grid; gap: .4rem; }
.note-box a { color: var(--blue); }
.note-inline { display: flex; gap: .5rem; align-items: flex-start; font-size: .9rem; color: var(--ex-ink); background: var(--ex-bg); padding: .7rem .9rem; border-radius: var(--radius-sm); margin-bottom: 1rem; }
.empty-state { padding: 2rem; text-align: center; color: var(--muted); }
.empty-big { background: var(--surface); border: 1.5px dashed var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 5vw, 3.5rem); text-align: center; display: grid; justify-items: center; gap: .8rem; }
.empty-big p:not(.eyebrow) { max-width: 56ch; color: var(--ink-2); }

/* 6. Secciones y páginas -------------------------------------- */
/* Hero de inicio */
.hero {
  position: relative; color: #fff; background: var(--ink); overflow: hidden;
  background-image:
    radial-gradient(60% 80% at 85% 20%, rgba(198, 244, 50, .16), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
}
.hero-grid { display: grid; gap: 2.2rem; padding-block: clamp(2.6rem, 8vw, 5.5rem); align-items: center; }
.hero-title { font-size: clamp(2.4rem, 7.4vw, 4.6rem); line-height: 1.02; max-width: 15ch; }
.hero-title em { font-style: italic; color: var(--accent); }
.hero-lead { color: rgba(255, 255, 255, .78); font-size: clamp(1.05rem, 2vw, 1.2rem); max-width: 54ch; margin-top: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.hero-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 1.6rem; margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .14); }
.hero-stats strong { display: block; font: 600 2rem/1 var(--serif); color: #fff; }
.hero-stats span { font-size: .8rem; color: rgba(255, 255, 255, .6); }
.hero-picks { display: grid; gap: .7rem; }
.hero-pick {
  display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: .9rem;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius);
  padding: .9rem; text-decoration: none; color: #fff; transition: background .3s, transform .4s var(--ease-out);
}
.hero-pick:hover { background: rgba(255, 255, 255, .1); transform: translateY(-2px); }
.hero-pick img { border-radius: 12px; aspect-ratio: 1; object-fit: cover; }
.hero-pick .eyebrow { color: rgba(255, 255, 255, .55); margin-bottom: .3rem; }
.hero-pick-name { font: 600 1.25rem/1.15 var(--serif); }
.hero-pick-tag { color: rgba(255, 255, 255, .7); font-size: .9rem; margin-top: .25rem; }

/* Banda del comparador en inicio */
.compare-band { display: grid; gap: 2rem; align-items: center; }
.compare-copy p:not(.eyebrow) { color: var(--ink-2); margin: .9rem 0 1.5rem; max-width: 52ch; }
.compare-visual { background: var(--bg); border-radius: var(--radius); padding: 1rem; }

/* Radar */
.radar { width: 100%; height: auto; overflow: visible; }
.r-ring { fill: none; stroke: var(--line); stroke-width: 1; }
.r-axis { stroke: var(--line); stroke-width: 1; }
.r-label { font: 600 12px var(--sans); fill: var(--ink-2); }
.r-shape { fill: var(--c); fill-opacity: .16; stroke: var(--c); stroke-width: 2.2; stroke-linejoin: round; }
.r-dot { fill: var(--surface); stroke: var(--c); stroke-width: 2; }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; justify-content: center; font-size: .85rem; font-weight: 600; margin-top: .4rem; }
.legend li { display: inline-flex; align-items: center; gap: .4rem; }
.legend li::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--c); }
.radar-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1rem 1.1rem; }
.radar-card figcaption { font-size: .8rem; color: var(--muted); text-align: center; margin-top: .6rem; }
.radar-card figcaption a { color: var(--blue); }
.radar-note { display: flex; gap: .45rem; align-items: flex-start; font-size: .85rem; color: var(--ex-ink); margin-top: 1rem; }

/* Categorías y guías */
.cat-grid, .guide-grid { display: grid; gap: 1rem; }
.cat-card, .guide-card {
  display: flex; flex-direction: column; gap: .5rem; padding: 1.4rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; transition: transform .35s var(--ease-out), box-shadow .35s;
}
.cat-card:hover, .guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cat-card h3, .guide-card h3, .guide-card h2 { font-size: 1.45rem; }
.cat-card p, .guide-card p:not(.eyebrow) { color: var(--ink-2); font-size: .95rem; }
.cat-n { font: 700 .72rem/1 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--best-ink); background: var(--best-bg); padding: .35rem .5rem; border-radius: 6px; align-self: flex-start; }
.cat-card-empty { background: transparent; border-style: dashed; }
.cat-card-empty:hover { transform: none; box-shadow: none; }
.cat-n-empty { color: var(--muted); background: var(--line-2); }
.cat-go { display: inline-flex; align-items: center; gap: .35rem; margin-top: auto; padding-top: .5rem; font-weight: 650; }

/* Bloque de confianza */
.trust { display: grid; gap: 2rem; background: var(--ink); color: #fff; border-radius: calc(var(--radius) + 6px); padding: clamp(1.6rem, 5vw, 3.2rem); }
.trust .eyebrow { color: rgba(255, 255, 255, .55); }
.trust-intro p:not(.eyebrow) { color: rgba(255, 255, 255, .72); margin: .9rem 0 1.2rem; }
.trust .link-more { color: var(--accent); }
.trust-list { display: grid; gap: 1rem; counter-reset: t; }
.trust-list li { counter-increment: t; position: relative; padding: 1rem 1rem 1rem 3.4rem; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; color: rgba(255, 255, 255, .75); }
.trust-list li::before { content: counter(t, decimal-leading-zero); position: absolute; left: 1rem; top: 1rem; font: 600 1rem/1.5 var(--serif); color: var(--accent); }
.trust-list strong { color: #fff; display: block; }

/* Filtros */
.filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin-bottom: 1.3rem; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.filters label { display: grid; gap: .3rem; font-size: .75rem; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.filters select { font: 500 .95rem var(--sans); color: var(--ink); min-height: 44px; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.filters-count { grid-column: 1 / -1; font-size: .88rem; color: var(--muted); }

/* Ficha de producto */
.ficha-top { display: grid; gap: 1.6rem; padding-block: 1.2rem 2.4rem; }
.gallery { min-width: 0; }
.g-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius); background: #ebe8e1; }
.g-track::-webkit-scrollbar { display: none; }
.g-slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 1; }
.g-slide img { width: 100%; height: 100%; object-fit: cover; }
.g-thumbs { display: flex; gap: .5rem; margin-top: .6rem; }
.g-thumb { width: 72px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; opacity: .7; transition: opacity .2s, border-color .2s; }
.g-thumb:hover, .g-thumb.is-active { opacity: 1; border-color: var(--ink); }
.g-note { font-size: .78rem; color: var(--muted); margin-top: .6rem; }
.ficha-kicker { display: flex; align-items: center; gap: .6rem; font: 650 .78rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ficha-title { margin-top: .6rem; }
.ficha-tag { font: italic 500 1.2rem/1.35 var(--serif); color: var(--ink-2); margin-top: .5rem; }
.ficha-desc { margin-top: .9rem; color: var(--ink-2); }
.ficha-score { display: flex; align-items: center; gap: 1rem; margin-top: 1.3rem; padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.score-big { display: flex; align-items: baseline; background: var(--ink); color: var(--accent); padding: .6rem .8rem; border-radius: 14px; }
.score-big strong { font: 750 2rem/1 var(--sans); font-variant-numeric: tabular-nums; }
.score-big span { color: rgba(255, 255, 255, .55); font-weight: 600; margin-left: 2px; }
.score-cap { font-weight: 700; }
.score-sub { font-size: .84rem; color: var(--muted); }
.score-sub a { color: var(--blue); }
.amz-rating { margin-top: .8rem; font-size: .9rem; display: flex; align-items: center; gap: .4rem; }
.stars { --pct: calc(var(--v) / 5 * 100%); width: 5.4em; height: 1em; background: linear-gradient(90deg, var(--amz) var(--pct), var(--line) var(--pct)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20'%3E%3Cpath d='M10 1l2.6 5.8 6.2.6-4.7 4.2 1.4 6.2L10 14.6 4.5 17.8l1.4-6.2L1.2 7.4l6.2-.6zM30 1l2.6 5.8 6.2.6-4.7 4.2 1.4 6.2L30 14.6l-5.5 3.2 1.4-6.2-4.7-4.2 6.2-.6zM50 1l2.6 5.8 6.2.6-4.7 4.2 1.4 6.2L50 14.6l-5.5 3.2 1.4-6.2-4.7-4.2 6.2-.6zM70 1l2.6 5.8 6.2.6-4.7 4.2 1.4 6.2L70 14.6l-5.5 3.2 1.4-6.2-4.7-4.2 6.2-.6zM90 1l2.6 5.8 6.2.6-4.7 4.2 1.4 6.2L90 14.6l-5.5 3.2 1.4-6.2-4.7-4.2 6.2-.6z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20'%3E%3Cpath d='M10 1l2.6 5.8 6.2.6-4.7 4.2 1.4 6.2L10 14.6 4.5 17.8l1.4-6.2L1.2 7.4l6.2-.6zM30 1l2.6 5.8 6.2.6-4.7 4.2 1.4 6.2L30 14.6l-5.5 3.2 1.4-6.2-4.7-4.2 6.2-.6zM50 1l2.6 5.8 6.2.6-4.7 4.2 1.4 6.2L50 14.6l-5.5 3.2 1.4-6.2-4.7-4.2 6.2-.6zM70 1l2.6 5.8 6.2.6-4.7 4.2 1.4 6.2L70 14.6l-5.5 3.2 1.4-6.2-4.7-4.2 6.2-.6zM90 1l2.6 5.8 6.2.6-4.7 4.2 1.4 6.2L90 14.6l-5.5 3.2 1.4-6.2-4.7-4.2 6.2-.6z'/%3E%3C/svg%3E") center / contain no-repeat; }
.amz-rating-note { display: flex; gap: .4rem; align-items: flex-start; font-size: .8rem; color: var(--ex-ink); margin-top: .35rem; }
.key-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: 1rem; }
.key-specs li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .65rem .7rem; }
.key-specs span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.key-specs strong { font-variant-numeric: tabular-nums; }
.buy-box { display: grid; gap: .7rem; margin-top: 1.2rem; padding: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.buy-box .price-note { margin-top: -.3rem; }

.ficha-nav { position: sticky; top: var(--header-h, 104px); z-index: 20; background: var(--bg); border-block: 1px solid var(--line); }
.ficha-nav .wrap { display: flex; gap: .2rem; overflow-x: auto; scrollbar-width: none; }
.ficha-nav .wrap::-webkit-scrollbar { display: none; }
.ficha-nav a { padding: .7rem .8rem; font-size: .88rem; font-weight: 600; color: var(--ink-2); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.ficha-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.ficha-sec { padding-block: 2.6rem; border-bottom: 1px solid var(--line); }
.ficha-sec:last-child { border-bottom: 0; }

.score-grid { display: grid; gap: 1.4rem; align-items: center; }
.bars { display: grid; gap: .75rem; }
.bars li { display: grid; grid-template-columns: 7.5rem 1fr 2.5rem; align-items: center; gap: .7rem; font-size: .92rem; }
.bar { height: 10px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--ink), #3d4250); border-radius: 999px; transform-origin: left; }
.bars strong { text-align: right; font-variant-numeric: tabular-nums; }
.ajustes { display: grid; gap: .5rem; margin-top: 1rem; font-size: .86rem; color: var(--ink-2); }
.ajustes li { display: flex; gap: .45rem; align-items: flex-start; }

.spec-grid { display: grid; gap: 1rem; }
.spec-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .4rem 1.1rem .6rem; }
.spec { width: 100%; font-size: .93rem; }
.spec caption { text-align: left; font: 600 1.1rem/1.2 var(--serif); padding: .8rem 0 .5rem; }
.spec th, .spec td { padding: .62rem 0; border-top: 1px solid var(--line-2); vertical-align: top; text-align: left; }
.spec th { font-weight: 500; color: var(--muted); width: 52%; padding-right: 1rem; }
.spec td { font-weight: 650; font-variant-numeric: tabular-nums; }
.spec tr.is-empty td { color: #a8a399; font-weight: 500; }
.spec-note { display: block; font-size: .76rem; font-weight: 400; color: var(--muted); margin-top: .2rem; line-height: 1.4; }
.cite { font-size: .68rem; margin-left: .2rem; }
.cite a { color: var(--blue); text-decoration: none; font-weight: 700; }

.pc-grid { display: grid; gap: 1rem; margin-top: 2rem; }
.pc-col { border-radius: var(--radius); padding: 1.2rem 1.3rem; border: 1px solid var(--line); background: var(--surface); }
.pc-col h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.2rem; margin-bottom: .8rem; }
.pc-col ul { display: grid; gap: .6rem; }
.pc-col li { display: flex; gap: .55rem; align-items: flex-start; }
.pc-col li .ico { margin-top: .2rem; }
.pc-pros { border-top: 4px solid var(--good); }
.pc-pros .ico { color: var(--good); }
.pc-cons { border-top: 4px solid var(--bad); }
.pc-cons .ico { color: var(--bad); }
.ideal { display: flex; gap: .8rem; align-items: flex-start; margin-top: 1rem; padding: 1.1rem 1.3rem; background: var(--best-bg); color: var(--best-ink); border-radius: var(--radius); font-size: 1.02rem; }
.ideal .ico { width: 1.4em; height: 1.4em; margin-top: .05rem; }
.ideal strong { color: var(--ink); }

.opinion-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; max-width: 820px; }
.opinion-label { font-size: .8rem; color: var(--muted); margin-bottom: .7rem; }
.opinion-text { font: 500 1.15rem/1.6 var(--serif); }
.ext-list { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: 1rem; }
.ext-list a { display: inline-flex; align-items: center; gap: .3rem; color: var(--blue); font-weight: 600; font-size: .92rem; }

.cta-band { display: grid; gap: 1.2rem; align-items: center; margin-block: 2.6rem; padding: clamp(1.4rem, 4vw, 2.4rem); border-radius: calc(var(--radius) + 6px); background: var(--ink); color: #fff; }
.cta-band .eyebrow { color: rgba(255, 255, 255, .55); }
.cta-title { font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin-bottom: .7rem; }
.cta-band .price-note { color: rgba(255, 255, 255, .6); }
.cta-band .price-empty { color: #fff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

.sources { display: grid; gap: .55rem; font-size: .92rem; }
.sources a { color: var(--blue); }
.src-n { font-weight: 700; color: var(--ink); }
.src-date { color: var(--muted); }

/* Guías y ranking */
.h-list { font-size: 1.5rem; margin-bottom: 1rem; }
.rank { display: grid; gap: 1rem; margin-bottom: 1.2rem; }
.rank-item { display: grid; grid-template-columns: auto 1fr; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; position: relative; }
.rank-n { font: 600 2.2rem/1 var(--serif); color: var(--ink); min-width: 2.2rem; }
.rank-media { display: none; }
.rank-body { min-width: 0; display: grid; gap: .45rem; }
.rank-body h3 { font-size: 1.45rem; }
.rank-body h3 a { text-decoration: none; }
.rank-why { color: var(--ink-2); font-size: .96rem; }
.rank-side { grid-column: 1 / -1; display: grid; gap: .5rem; justify-items: start; padding-top: .8rem; border-top: 1px solid var(--line-2); min-width: 0; }
.rank-side .btn { white-space: normal; max-width: 100%; text-align: center; flex-wrap: wrap; }
.guide-body { padding-block: 1rem 1rem; }
.guide-sec + .guide-sec { margin-top: .5rem; }
.steps { counter-reset: s; display: grid; gap: .9rem; }
.steps li { counter-increment: s; position: relative; padding-left: 2.6rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: .05rem; width: 1.8rem; height: 1.8rem; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--accent); font: 700 .9rem/1 var(--sans); }
.ticks { display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.7rem; }
.ticks li::before { content: ""; position: absolute; left: .2rem; top: .45rem; width: .8rem; height: .45rem; border-left: 2.5px solid var(--good); border-bottom: 2.5px solid var(--good); transform: rotate(-45deg); }
.faq { display: grid; gap: .6rem; margin-top: 1.2rem; max-width: 860px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 1.1rem; }
.faq-item summary { cursor: pointer; font-weight: 650; padding: 1rem 2rem 1rem 0; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: .8rem; font-size: 1.4rem; line-height: 1; transition: transform .3s var(--ease-out); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 1rem; color: var(--ink-2); }

/* Metodología y legales */
.method-grid { display: grid; gap: .8rem; margin: 1.2rem 0; }
.method-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; }
.method-card h3 { margin: 0 0 .35rem; font-size: 1.15rem; }
.method-card p { font-size: .95rem; color: var(--ink-2); }
.legal h2 { font-size: 1.35rem; }
.fill { background: #ffe58a; padding: .05rem .3rem; border-radius: 4px; color: var(--ink); }

/* Pie */
.site-footer { margin-top: 3rem; background: var(--ink); color: rgba(255, 255, 255, .7); padding-block: 3rem 2rem; font-size: .92rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand-mark { color: #fff; --bg: var(--ink); }
.footer-grid { display: grid; gap: 2rem; }
.footer-brand p { margin-top: .8rem; max-width: 34ch; }
.footer-h { font: 650 .75rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-bottom: .9rem; }
.site-footer ul { display: grid; gap: .5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-legal { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .12); display: grid; gap: .7rem; font-size: .82rem; color: rgba(255, 255, 255, .58); }
.footer-legal strong { color: rgba(255, 255, 255, .85); }
.footer-legal a { color: var(--accent); }

/* 7. Comparador ------------------------------------------------ */
.cmp-picker { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.cmp-picker-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.cmp-tools { gap: .4rem; }
.pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.pick { position: relative; display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: .6rem; padding: .45rem .6rem .45rem .45rem; border: 1.5px solid var(--line); border-radius: 12px; text-decoration: none; font-size: .88rem; font-weight: 600; line-height: 1.2; background: var(--bg); transition: border-color .2s, background .2s; cursor: pointer; }
.pick img { border-radius: 8px; aspect-ratio: 1; object-fit: cover; }
.pick .badge-ejemplo { grid-column: 2; justify-self: start; font-size: .58rem; padding: .2rem .35rem; }
.pick:hover { border-color: var(--ink); }
.pick.is-on { border-color: var(--ink); background: var(--best-bg); box-shadow: inset 0 0 0 1px var(--ink); }
.pick.is-on::after { content: "✓"; position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--accent); font-size: .75rem; font-weight: 800; }
.cmp-radar-sec { padding-block: 1.2rem; }
.radar-card-wide { max-width: 640px; margin-inline: auto; }

.cmp-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 1rem; }
.cmp-table { width: 100%; min-width: calc(150px + var(--cols) * 170px); font-size: .9rem; }
.cmp-table th, .cmp-table td { padding: .65rem .8rem; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.cmp-table tbody th[scope="row"], .cmp-corner { position: sticky; left: 0; z-index: 2; background: var(--surface); font-weight: 500; color: var(--muted); width: 150px; min-width: 130px; box-shadow: 1px 0 0 var(--line-2); }
.cmp-table td { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 160px; }
.cmp-corner { vertical-align: bottom !important; font-size: .76rem; }
.cmp-corner span { display: block; }
.cmp-legend { display: inline-block !important; margin-top: .3rem; padding: .15rem .45rem; border-radius: 6px; }
.cmp-col-head { border-top: 4px solid var(--c) !important; background: var(--surface); min-width: 170px; }
.cmp-head-link { display: grid; gap: .2rem; text-decoration: none; margin-bottom: .5rem; }
.cmp-head-link img { width: 88px; border-radius: 12px; aspect-ratio: 1; object-fit: cover; margin-bottom: .3rem; }
.cmp-head-brand { font-size: .7rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cmp-head-name { font: 600 1.1rem/1.2 var(--serif); color: var(--ink); }
.cmp-head-link:hover .cmp-head-name { text-decoration: underline; }
.cmp-head-price { margin: .5rem 0 .6rem; }
.cmp-head-price .price-now { font-size: 1.15rem; }
.cmp-head-price .price-empty { font-size: .9rem; }
.cmp-col-head .btn-flag { display: none; }
.cmp-remove { font-size: .78rem; color: var(--muted); text-decoration: underline; margin-top: .5rem; display: inline-block; }
.cmp-group th { background: var(--bg) !important; font: 600 1rem/1.2 var(--serif) !important; color: var(--ink) !important; padding-top: 1rem !important; position: static !important; }
.cmp-group th { box-shadow: none !important; }
td.is-best, .cmp-legend.is-best { background: var(--best-bg); color: var(--best-ink); }
td.is-best::before { content: "★ "; font-size: .8em; }
.cmp-score { font-size: 1.15rem; }
.cmp-buy-row td, .cmp-buy-row th { border-bottom: 0; padding-block: 1rem; }
.cmp-empty { padding: 2rem 1rem; text-align: center; color: var(--muted); background: var(--surface); border: 1.5px dashed var(--line); border-radius: var(--radius); }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 999px; font-size: .9rem; font-weight: 600; z-index: 80; box-shadow: var(--shadow-lg); }

/* Bandeja flotante del comparador */
.cmp-tray {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 70;
  width: min(560px, calc(100% - 24px)); display: flex; align-items: center; gap: .7rem;
  background: var(--ink); color: #fff; border-radius: 20px; padding: .6rem .6rem .6rem .9rem; box-shadow: var(--shadow-lg);
  animation: trayIn .45s var(--ease-out);
}
.tray-label { font-size: .82rem; color: rgba(255, 255, 255, .7); white-space: nowrap; }
.tray-items { display: flex; gap: .55rem; flex: 1; padding: 8px 8px 0 0; }
.tray-slot { position: relative; }
.tray-thumb { width: 40px; height: 40px; border-radius: 10px; overflow: hidden; background: #333; }
.tray-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tray-x { position: absolute; top: -8px; right: -8px; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: var(--ink); font-size: .8rem; font-weight: 800; line-height: 20px; text-align: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.cmp-tray .btn { flex: none; }

/* 8. Efectos --------------------------------------------------- */
@keyframes trayIn { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
html.js .reveal.is-in { opacity: 1; transform: none; }
@view-transition { navigation: auto; }

/* 9. Responsive ----------------------------------------------- */
.swipe-hint { font-size: .8rem; color: var(--muted); margin: 0 0 .5rem; }
@media (max-width: 539px) {
  .cmp-table { font-size: .84rem; min-width: calc(104px + var(--cols) * 142px); }
  .cmp-table th, .cmp-table td { padding: .55rem .6rem; }
  .cmp-table tbody th[scope="row"], .cmp-corner { width: 104px; min-width: 104px; }
  .cmp-table td, .cmp-col-head { min-width: 142px; }
  .cmp-head-link img { width: 64px; }
  .cmp-head-name { font-size: 1rem; }
}
@media (min-width: 960px) { .swipe-hint { display: none; } }
@media (min-width: 540px) {
  :root { --gutter: 22px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rank-item { grid-template-columns: auto 120px 1fr; }
  .rank-media { display: block; border-radius: 14px; overflow: hidden; align-self: start; }
  .rank-media img { aspect-ratio: 1; object-fit: cover; width: 100%; }
  .rank-side { grid-column: 2 / -1; }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .pc-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 720px) {
  .cat-grid, .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-grid { grid-template-columns: repeat(2, 1fr); align-items: start; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr auto; }
  .trust { grid-template-columns: .9fr 1.1fr; align-items: start; }
}
@media (min-width: 960px) {
  :root { --gutter: 32px; }
  .header-inner { grid-template-columns: auto 1fr auto; padding-block: .8rem; }
  .nav { grid-column: 2; grid-row: 1; margin: 0; padding: 0; overflow: visible; justify-self: center; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: 1.25fr .75fr; }
  .compare-band { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .ficha-top { grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: start; }
  .ficha-info { position: sticky; top: 120px; }
  .score-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; }
  .rank-item { grid-template-columns: auto 140px 1fr 250px; align-items: center; }
  .rank-side { grid-column: auto; border-top: 0; padding-top: 0; padding-left: 1.2rem; border-left: 1px solid var(--line-2); }
  .method-grid { grid-template-columns: repeat(3, 1fr); }
  .cmp-table tbody th[scope="row"], .cmp-corner { width: 200px; }
  :root { --header-h: 69px; }
}
@media (min-width: 1280px) {
  .hero-title { font-size: 4.8rem; }
}

/* 10. Movimiento reducido (solo efectos intrusivos) ----------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cmp-tray { animation: none; }
}
