/* comparativa.css — negro, blanco y amarillo. */
:root { --ink: #0b0b0b; --paper: #f6f6f2; --card: #fff; --line: #e3e3dc; --muted: #62625b; --y: #ffd400; }
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { font: 400 1rem/1.55 "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--paper); color: var(--ink); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.dark :focus-visible { outline-color: var(--y); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
section { padding: 56px 0 8px; }
h1, h2, h3 { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 800; line-height: 1.02; letter-spacing: -.025em; }
h1 { font-size: clamp(2.6rem, 7vw, 5rem); max-width: 12ch; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 24px; }
h3 { font-size: 1.25rem; line-height: 1.15; }
.lead { font-size: 1.2rem; max-width: 46ch; margin-top: 18px; }
.meta { color: var(--muted); font-size: .84rem; max-width: 64ch; margin-top: 14px; }
.dark { background: var(--ink); color: #fff; }
.dark .meta { color: #8d8d86; }
.band { margin-top: 56px; padding: 56px 0 48px; }

/* Cabecera y pie */
.top { background: var(--ink); color: #fff; border-bottom: 1px solid #262626; }
.top__in { display: flex; justify-content: space-between; align-items: center; height: 60px; }
.logo { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.2rem; text-decoration: none; }
.top nav { display: flex; gap: 22px; }
.top nav a { text-decoration: none; color: #b5b5ad; padding: 4px 0; }
.top nav a[aria-current] { color: #fff; box-shadow: inset 0 -4px var(--y); }
.foot { margin-top: 64px; padding: 28px 0 90px; background: var(--ink); color: #bdbdb5; font-size: .85rem; }
.foot p { max-width: 80ch; }

/* Botones */
.btn { display: block; text-align: center; text-decoration: none; padding: 13px 18px; border-radius: 99px; font-weight: 700; border: 2px solid currentColor; transition: background .15s, color .15s; }
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--main { background: var(--y); border-color: var(--ink); color: var(--ink); }
.btn--main:hover { background: var(--ink); color: var(--y); }
.btn--sm { display: inline-block; padding: 8px 16px; font-size: .88rem; }

/* Círculos de puntuación */
.ring { --p: 80; --size: 56px; --fill: var(--ink); --track: #e6e6df; --inner: #fff; width: var(--size); height: var(--size); flex: none; border-radius: 50%; display: grid; place-items: center; position: relative; color: var(--ink); background: conic-gradient(var(--fill) calc(var(--p) * 1%), var(--track) 0); }
.ring::before { content: ""; position: absolute; inset: calc(var(--size) * .12); border-radius: 50%; background: var(--inner); }
.ring span { position: relative; font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: calc(var(--size) * .32); }
.ring--sm { --size: 44px; } .ring--lg { --size: 84px; }
.dark .ring { --fill: var(--y); --track: #333; --inner: var(--ink); color: #fff; }
.spot .ring, .cat .ring { --fill: var(--ink); --track: #e6e6df; --inner: #fff; color: var(--ink); }
.gauges { display: flex; justify-content: space-between; gap: 6px; }
.gauge { display: grid; justify-items: center; gap: 4px; font-size: .7rem; color: var(--muted); }

/* Imagen que sale de la caja */
.media { position: relative; display: grid; place-items: center; background: var(--y); overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: contain; padding: 16px 22px; transform: rotate(-8deg) scale(1.08); filter: drop-shadow(0 16px 12px rgba(0, 0, 0, .25)); }
.ph { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 8rem; line-height: 1; color: var(--ink); transform: rotate(-8deg); }
.tag { position: absolute; left: 14px; top: 14px; z-index: 1; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 600; padding: 4px 13px; border-radius: 99px; }

/* Hero */
.hero { padding: 56px 0 64px; }
.hero__in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.hero .lead { color: #cfcfc6; }
.spot { background: #fff; color: var(--ink); border-radius: 28px; overflow: hidden; }
.spot__media { height: 250px; }
.spot__body { padding: 22px; display: grid; gap: 16px; }
.spot__row { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.spot h2 { font-size: 1.9rem; margin: 0; }

/* Fichas por categoría */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat { background: #fff; border: 2px solid var(--ink); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.cat__media { height: 170px; }
.cat__body { padding: 16px; display: grid; gap: 14px; flex: 1; align-content: start; }
.cat__price { display: flex; justify-content: space-between; align-items: baseline; }
.cat__price b { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.6rem; }
.cat__price span { color: var(--muted); font-size: .85rem; }
.cat__more { text-align: center; font-size: .9rem; font-weight: 600; text-underline-offset: 4px; }

/* Matriz de comparación */
.matrix-wrap { overflow-x: auto; border: 1px solid #2a2a2a; border-radius: 20px; }
.matrix { min-width: 920px; }
.mrow { display: grid; grid-template-columns: 2.4fr .9fr repeat(4, 1fr) 1.3fr .9fr 1.1fr; gap: 12px; align-items: center; padding: 14px 18px; border-top: 1px solid #262626; scroll-margin-top: 20px; }
.mrow:target { background: #1d1b0a; }
.mhead { border-top: 0; font-size: .78rem; color: #9a9a92; font-weight: 600; }
.m-name { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.thumb { width: 56px; height: 56px; flex: none; border-radius: 14px; background: var(--y); display: grid; place-items: center; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.thumb span { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--ink); }
.dotcell { display: grid; place-items: center; height: 54px; }
.bub { display: grid; place-items: center; width: var(--d); height: var(--d); border-radius: 50%; background: var(--y); color: var(--ink); font-weight: 700; font-size: .78rem; }
.wbar { display: grid; gap: 4px; font-size: .85rem; }
.wbar i { display: block; height: 8px; border-radius: 8px; background: #2c2c2c; position: relative; overflow: hidden; }
.wbar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); background: #fff; border-radius: 8px; }

/* Gráfica */
.viz { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
.chart { background: #fff; border: 2px solid var(--ink); border-radius: 22px; padding: 14px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart text { fill: var(--muted); font: 12px "Instrument Sans", system-ui, sans-serif; }
.chart .grid { stroke: var(--ink); stroke-opacity: .09; }
.chart .zone { fill: var(--y); fill-opacity: .25; }
.chart .zl { fill: var(--ink); font-weight: 600; }
.chart .pt circle { fill: var(--y); stroke: var(--ink); stroke-width: 2.5; transition: fill .15s; }
.chart .pt text { fill: var(--ink); font-weight: 800; font-size: 13px; text-anchor: middle; pointer-events: none; }
.chart a:hover circle, .chart a:focus circle { fill: var(--ink); }
.chart a:hover text, .chart a:focus text { fill: var(--y); }
.legend { list-style: none; padding: 0; display: grid; gap: 10px; }
.legend li { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; }
.legend li > span:nth-child(2) { flex: 1; display: grid; line-height: 1.25; }
.legend small { color: var(--muted); }
.num { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--ink); color: var(--y); display: grid; place-items: center; font-weight: 800; font-size: .9rem; }

/* Vista de categoría */
.cat-head { padding-top: 44px; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.winner { display: grid; grid-template-columns: 230px 1fr 250px; background: #fff; border: 2px solid var(--ink); border-radius: 24px; overflow: hidden; scroll-margin-top: 20px; }
.winner__media { background: var(--y); display: grid; place-items: center; }
.winner__media span { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 7rem; }
.winner__media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transform: rotate(-8deg); filter: drop-shadow(0 14px 10px rgba(0, 0, 0, .25)); }
.winner__body { padding: 26px 28px; display: grid; gap: 12px; align-content: start; }
.badge { justify-self: start; background: var(--ink); color: var(--y); font-weight: 600; font-size: .85rem; padding: 3px 12px; border-radius: 99px; }
.winner h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.why { font-size: 1.05rem; max-width: 50ch; }
.ojo { font-size: .92rem; }
.specs { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: .92rem; }
.buy { padding: 26px; display: flex; flex-direction: column; justify-content: center; gap: 10px; background: var(--ink); color: #fff; }
.buy .btn:not(.btn--main) { color: #fff; }
.buy .btn--main:hover { background: #fff; color: var(--ink); }
.price { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 2.3rem; line-height: 1; }
.note { font-size: .78rem; text-align: center; opacity: .7; }
.alts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.alt { background: #fff; border: 2px solid var(--ink); border-radius: 22px; padding: 22px; display: grid; gap: 10px; align-content: start; scroll-margin-top: 20px; }
.alt__rank { color: var(--muted); font-size: .88rem; font-weight: 600; }
.alt__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; padding-top: 14px; border-top: 1px dashed var(--line); }
.price--sm { font-size: 1.5rem; margin-right: auto; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips a { display: block; padding: 8px 16px; border: 2px solid var(--ink); border-radius: 99px; text-decoration: none; background: #fff; transition: background .15s; }
.chips a:hover { background: var(--y); }
.sticky { display: none; }

@media (max-width: 1100px) { .cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .hero__in, .viz { grid-template-columns: 1fr; }
  .winner { grid-template-columns: 1fr; }
  .winner__media { min-height: 150px; }
  .buy { padding-top: 0; background: transparent; color: var(--ink); }
  .buy .btn:not(.btn--main) { color: var(--ink); }
  .sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 2px solid var(--ink); font-size: .9rem; }
  .sticky b { display: block; }
}
@media (max-width: 560px) { .cats { grid-template-columns: 1fr; } .gauges { justify-content: space-around; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .chart .pt circle, .chips a { transition: none; } }

/* Fotos con fondo blanco: sobre el amarillo el blanco desaparece */
.media img, .thumb img, .winner__media img { mix-blend-mode: multiply; }
