@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2"),
       url("/fonts/archivo.ttf") format("truetype");
  font-weight: 400 800;
  font-stretch: 62.5% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: oklch(0.985 0.006 55);
  --surface: oklch(0.952 0.014 55);
  --ink: oklch(0.19 0.025 35);
  --muted: oklch(0.40 0.022 35);
  --primary: oklch(0.36 0.135 28);
  --primary-ink: oklch(0.98 0.008 55);
  --accent: oklch(0.85 0.165 84);
  --accent-ink: oklch(0.20 0.04 75);
  --up: oklch(0.40 0.13 148);
  --down: oklch(0.45 0.165 26);
  --line: oklch(0.19 0.025 35 / 0.18);
  --rule: oklch(0.19 0.025 35);
  --font: "Archivo", "Segoe UI", sans-serif;
  --z-sticky: 20;
  --z-skip: 30;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-optical-sizing: auto;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.5;
  font-size: 1.0625rem;
  overflow-x: clip;
  font-variant-numeric: tabular-nums;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

[hidden] { display: none !important; }
a { color: inherit; }

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

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 12px;
  font-weight: 700;
  z-index: var(--z-skip);
}

.skip:focus { top: 12px; }

/* Cabecera de diario */
.masthead {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--primary);
  color: var(--primary-ink);
  padding: 0 var(--pad);
  border-bottom: 3px solid var(--accent);
}

.masthead-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px 20px;
  align-items: center;
  padding: 14px 0 12px;
  border-bottom: 1px solid oklch(0.97 0.012 55 / 0.24);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-stretch: extra-condensed;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1;
  flex-shrink: 0;
}

.brand-name {
  font-stretch: extra-condensed;
  font-weight: 800;
  font-size: clamp(2.35rem, 5.8vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 0.88;
  text-wrap: balance;
}

.issue {
  font-size: 0.92rem;
  font-weight: 500;
  max-width: 38ch;
  opacity: 0.92;
}

.folio {
  text-align: right;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  color: oklch(0.94 0.015 55);
}

.folio time {
  display: block;
  font-stretch: condensed;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.masthead-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0 8px;
}

.masthead-nav {
  display: flex;
  align-items: center;
  gap: 6px 18px;
  flex-wrap: wrap;
  font-stretch: condensed;
  font-size: 0.88rem;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.masthead-nav a {
  color: oklch(0.96 0.012 55);
  text-decoration: none;
  white-space: nowrap;
}

.masthead-nav a:hover {
  color: var(--accent);
}

.masthead-search {
  position: relative;
  margin: 0;
  flex-shrink: 0;
}

.masthead-search input {
  width: 260px;
  padding: 6px 11px;
  font: inherit;
  font-size: 0.84rem;
  border: 1px solid oklch(0.97 0.012 55 / 0.42);
  border-radius: 0;
  background: oklch(0.24 0.085 28);
  color: var(--primary-ink);
}

.masthead-search input::placeholder {
  color: oklch(0.88 0.02 55);
  opacity: 1;
}

.masthead-search input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--ink);
}

.quick-results {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: min(420px, 92vw);
  background: var(--bg);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-top: 4px solid var(--accent);
  z-index: 40;
}

.qr-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.qr-item:hover,
.qr-item.is-active {
  background: var(--surface);
}

.qr-thumb {
  width: 56px;
  height: 36px;
  object-fit: cover;
  background: var(--surface);
  display: block;
}

.qr-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.qr-body strong {
  font-stretch: extra-condensed;
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qr-body small {
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qr-nota {
  font-stretch: extra-condensed;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary);
  padding-left: 4px;
}

.qr-more {
  display: block;
  padding: 9px 12px;
  background: var(--ink);
  color: var(--accent);
  font-stretch: condensed;
  font-weight: 800;
  font-size: 0.84rem;
  text-decoration: none;
  text-align: center;
}

.qr-more:hover {
  color: var(--primary-ink);
}

.qr-empty {
  padding: 12px;
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 600;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--pad);
}

.page-end { padding-bottom: 80px; }

.dateline {
  padding: 10px var(--pad);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: var(--ink);
  color: var(--primary-ink);
  border-bottom: 3px solid var(--accent);
}

.portada {
  display: grid;
  grid-template-columns: 1.85fr 1fr;
  min-height: min(78vh, 720px);
  background: var(--ink);
}

.lead {
  position: relative;
  display: block;
  min-height: min(74vh, 680px);
  background: oklch(0.16 0.025 35);
  color: var(--primary-ink);
  overflow: hidden;
  text-decoration: none;
}

.lead-foto {
  position: absolute;
  inset: 0;
  background: oklch(0.16 0.025 35);
  overflow: hidden;
}

.lead-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.08) saturate(0.88);
  opacity: 0;
}

.lead-foto img.is-on { opacity: 1; }

.lead-foto::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, oklch(0.13 0.025 35 / 0.82) 0%, oklch(0.13 0.025 35 / 0.18) 40%),
    linear-gradient(0deg, oklch(0.13 0.025 35 / 0.94) 0%, oklch(0.13 0.025 35 / 0.16) 54%);
  pointer-events: none;
}

.lead-foto .foto-fallback {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: clamp(22px, 4vw, 40px);
  gap: 0;
  color: oklch(0.97 0.012 55 / 0.14);
  font-size: clamp(3.2rem, 8vw, 6rem);
  line-height: 0.8;
  letter-spacing: -0.035em;
}

.lead-foto .poster-marca,
.lead-foto .poster-modelo {
  display: block;
  font-stretch: extra-condensed;
  font-weight: 800;
}

.lead-body {
  position: relative;
  min-height: min(74vh, 680px);
  z-index: 1;
  padding: clamp(20px, 3.8vw, 38px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.lead-top,
.lead-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  max-width: 40rem;
}

.lead-kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 4px 8px 3px;
}

.lead-marca {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--accent);
  text-shadow: 0 1px 8px oklch(0.10 0.02 35 / 0.9);
}

.lead h2 {
  font-stretch: extra-condensed;
  font-weight: 800;
  font-size: clamp(2.15rem, 5.2vw, 4.4rem);
  letter-spacing: -0.03em;
  line-height: 0.88;
  text-wrap: balance;
  color: var(--primary-ink);
  text-shadow: 0 2px 12px oklch(0.10 0.02 35 / 0.85);
}

.lead-dek {
  font-size: 1.02rem;
  line-height: 1.45;
  max-width: 42ch;
  color: oklch(0.94 0.012 55);
}

.lead-meta {
  font-size: 0.88rem;
  font-weight: 600;
  color: oklch(0.80 0.02 55);
}

.rail {
  display: flex;
  flex-direction: column;
  border-left: 1px solid oklch(0.97 0.012 55 / 0.22);
  background: var(--ink);
}

.rail-story {
  position: relative;
  flex: 1;
  display: block;
  min-height: 260px;
  text-decoration: none;
  color: var(--primary-ink);
  overflow: hidden;
  border-bottom: 1px solid oklch(0.97 0.012 55 / 0.14);
}

.rail-story:last-child { border-bottom: 0; }

.rail-foto {
  position: absolute;
  inset: 0;
  background: oklch(0.20 0.025 35);
  overflow: hidden;
}

.rail-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  filter: contrast(1.06) saturate(0.88);
  opacity: 0;
}

.rail-foto img.is-on { opacity: 1; }

.rail-foto::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, oklch(0.13 0.025 35 / 0.58) 0%, transparent 40%),
    linear-gradient(0deg, oklch(0.13 0.025 35 / 0.92) 0%, transparent 52%);
  pointer-events: none;
}

.rail-body {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
}

.rail-kicker {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 3px 7px 2px;
  align-self: flex-start;
}

.rail-marca {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--accent);
}

.rail-body h3 {
  font-stretch: extra-condensed;
  font-weight: 800;
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 0.92;
  text-wrap: balance;
}

.rail-body p {
  font-size: 0.88rem;
  line-height: 1.35;
  color: oklch(0.90 0.015 55);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rail .stamp {
  color: var(--accent);
  background: transparent;
  border-color: var(--accent);
}

.stamp {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 11px;
  font-weight: 800;
  line-height: 1.05;
  border: 2px solid currentColor;
}

.stamp.up { color: var(--up); background: oklch(0.38 0.125 145 / 0.08); }
.stamp.down { color: var(--down); background: oklch(0.44 0.155 28 / 0.08); }
.stamp.flat { color: var(--muted); background: var(--surface); }
.stamp .fromto { font-size: 1.02rem; font-stretch: condensed; }
.stamp .delta { font-size: 1.32rem; }
.lead .stamp {
  color: var(--accent);
  background: transparent;
  border-color: var(--accent);
  align-self: flex-start;
}

/* Clasificación */
.segunda {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--ink);
  color: var(--primary-ink);
  border-top: 3px solid var(--accent);
}

.brief {
  display: grid;
  grid-template-rows: 168px 1fr;
  text-decoration: none;
  color: inherit;
  border-right: 1px solid oklch(0.97 0.012 55 / 0.14);
  min-width: 0;
}

.brief:last-child { border-right: 0; }

.brief-foto {
  position: relative;
  background: oklch(0.20 0.025 35);
  overflow: hidden;
}

.brief-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  filter: contrast(1.05) saturate(0.88);
  opacity: 0;
}

.brief-foto img.is-on { opacity: 1; }

.brief-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
}

.brief-kicker {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent);
}

.brief h3 {
  font-stretch: extra-condensed;
  font-weight: 800;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  letter-spacing: -0.025em;
  line-height: 0.95;
  text-wrap: balance;
}

.brief-nota {
  font-stretch: condensed;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--accent);
}

.brief-body p:last-child {
  font-size: 0.88rem;
  line-height: 1.35;
  color: oklch(0.90 0.015 55);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.brief:hover h3 { color: var(--accent); }

.clasif-band {
  background: var(--surface);
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  padding: clamp(22px, 4vw, 36px) 0;
}

.clasif-band:has(#rankings[hidden]) { display: none; }

.clasif {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  margin: 0;
  padding: 0;
}

.clasif > div {
  padding: 0 22px;
  border-left: 1px solid var(--line);
}

.clasif > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.clasif > div:last-child { padding-right: 0; }

.clasif h2 {
  font-stretch: extra-condensed;
  font-weight: 800;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  letter-spacing: -0.02em;
  margin: 0;
  padding: 8px 10px 7px;
  background: var(--ink);
  color: var(--primary-ink);
}

.clasif-kicker {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
  margin: 8px 0 4px;
}

.clasif ol { list-style: none; counter-reset: n; }
.clasif li { counter-increment: n; }

.clasif a {
  display: grid;
  grid-template-columns: 1.7rem 1fr auto;
  gap: 10px;
  align-items: baseline;
  padding: 11px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  font-weight: 650;
}

.clasif a::before {
  content: counter(n, decimal-leading-zero);
  font-stretch: condensed;
  font-weight: 800;
  color: var(--muted);
}

.clasif a span small {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 2px;
}

.clasif a:hover { color: var(--primary); }
.clasif .delta { font-stretch: condensed; font-weight: 800; }
.clasif .suben .delta { color: var(--up); }
.clasif .bajan .delta { color: var(--down); }
.clasif .salen .delta { color: var(--ink); }

/* Mesa de búsqueda */
.mesa {
  background: var(--ink);
  color: var(--primary-ink);
  padding: 18px 0 20px;
}

.mesa-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px 28px;
  align-items: center;
}

.mesa-label {
  font-stretch: extra-condensed;
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 0.9;
  color: var(--accent);
}

.indice {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
  align-items: stretch;
  padding: 0;
  border: 0;
}

.indice input,
.indice select {
  padding: 13px 14px;
  font: inherit;
  font-size: 1rem;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--bg);
  color: var(--ink);
}

.indice input { flex: 2; min-width: 200px; }
.indice select { flex: 1; min-width: 160px; }
.indice input::placeholder { color: var(--muted); opacity: 1; }
.indice input:focus,
.indice select:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent);
}

.reset-btn {
  padding: 13px 16px;
  font: inherit;
  font-stretch: condensed;
  font-weight: 800;
  font-size: 0.95rem;
  background: var(--accent);
  color: var(--accent-ink);
  border: 2px solid var(--ink);
  cursor: pointer;
  white-space: nowrap;
}

.reset-btn:hover {
  background: var(--primary);
  color: var(--primary-ink);
}

.count {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 700;
}

#marcas,
#list-head { margin: clamp(28px, 5vw, 48px) 0 8px; }

#marcas { scroll-margin-top: 96px; }

#marcas h2,
#list-head h2,
h2.sec {
  font-stretch: extra-condensed;
  font-weight: 800;
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.marcas-letter {
  break-inside: avoid;
  font-stretch: extra-condensed;
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--primary);
  margin: 20px 0 2px;
  padding-top: 10px;
  border-top: 2px solid var(--rule);
}

.marcas-list > .marcas-letter:first-child {
  margin-top: 0;
  padding-top: 8px;
}

.marcas-list {
  columns: 3;
  column-gap: clamp(24px, 4vw, 56px);
  border-top: 3px solid var(--rule);
  padding-top: 6px;
}

.marcas-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  break-inside: avoid;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-weight: 750;
}

.marcas-list a span:last-child {
  color: var(--muted);
  font-weight: 600;
}

.marcas-list a:hover { color: var(--primary); }

.segmentos-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(16px, 3vw, 40px);
  border-top: 3px solid var(--rule);
  padding-top: 6px;
  margin-bottom: 36px;
}

.segmentos-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-weight: 750;
}

.segmentos-list a span:last-child {
  color: var(--muted);
  font-weight: 600;
}

.segmentos-list a:hover { color: var(--primary); }

.relacionados-mas {
  margin: 10px 0 0;
}

.relacionados-mas a {
  font-weight: 750;
  text-decoration: none;
}

.relacionados-mas a:hover { color: var(--primary); }

#list-head { margin: 12px 0 4px; }

#catalog { display: flex; flex-direction: column; }

.ficha {
  display: grid;
  grid-template-columns: 176px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}

.ficha:first-child { border-top: 3px solid var(--rule); }
.ficha:hover .ficha-title { color: var(--primary); }

.ficha-foto {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--surface);
  overflow: hidden;
}

.ficha-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.04) saturate(0.92);
}

.foto-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-stretch: extra-condensed;
  font-size: 2.5rem;
  font-weight: 800;
  color: oklch(0.20 0.03 35 / 0.16);
}

.ficha-title {
  font-stretch: extra-condensed;
  font-weight: 800;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-wrap: balance;
}

.ficha-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 5px;
  font-weight: 600;
}

.ficha-compra {
  margin-top: 8px;
  font-size: 0.98rem;
  line-height: 1.4;
  max-width: 52ch;
}

.vacio {
  color: var(--muted);
  padding: 48px 0;
  text-align: center;
  max-width: 42ch;
  margin: 0 auto;
}

.vacio a { color: var(--primary); font-weight: 700; }

/* Ficha */
.volver {
  display: inline-block;
  margin: 28px 0 20px;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
}

.volver:hover { text-decoration: underline; }

.detail-head {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 32px;
}

.detail-foto {
  position: relative;
  background: var(--surface);
  aspect-ratio: 16/10;
  overflow: hidden;
}

.detail-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.9);
}

.foto-credito {
  display: inline-block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 8px;
  font-weight: 600;
}

.detail-head h1 {
  font-stretch: extra-condensed;
  font-weight: 800;
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 0.92;
  text-wrap: balance;
}

.detail-head .card-sub {
  color: var(--muted);
  margin-top: 6px;
  font-weight: 650;
}

.score-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--rule);
}

.score-banner .stamp {
  flex-shrink: 0;
}

.veredicto {
  font-weight: 750;
  font-size: 0.98rem;
  line-height: 1.35;
  margin: 0;
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 12px 0 14px;
  background: var(--line);
  border: 2px solid var(--rule);
}

.spec-cell {
  background: var(--bg);
  padding: 9px 12px;
}

.spec-cell.spec-price {
  background: var(--surface);
}

.spec-cell.spec-wide {
  grid-column: 1 / -1;
}

.spec-cell dt {
  font-stretch: condensed;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.spec-cell dd {
  font-stretch: condensed;
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--ink);
  margin-top: 2px;
  line-height: 1.25;
}

.spec-cell.spec-price dd {
  font-size: 1.18rem;
  color: var(--primary);
}

.compra-box {
  margin-top: 14px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 14px 16px 13px;
  font-weight: 750;
  font-size: 0.96rem;
  line-height: 1.42;
  border: 1px solid var(--rule);
  border-top: 4px solid var(--ink);
}

.compra-box .albaran {
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  margin-bottom: 5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.resumen {
  font-size: 1.14rem;
  line-height: 1.55;
  max-width: 68ch;
  margin: 8px 0 32px;
  text-wrap: pretty;
}

h2.sec { margin: 32px 0 12px; }

.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

ul { list-style: none; }

.pros li,
.contras li,
.problemas li {
  padding: 12px 14px;
  line-height: 1.45;
  margin-bottom: 8px;
}

.pros li {
  background: oklch(0.38 0.125 148 / 0.08);
  border: 1px solid oklch(0.40 0.13 148 / 0.25);
  border-top: 2px solid var(--up);
}

.pros li::before {
  content: "+ ";
  font-weight: 800;
  color: var(--up);
}

.contras li {
  background: oklch(0.44 0.155 28 / 0.08);
  border: 1px solid oklch(0.45 0.165 26 / 0.25);
  border-top: 2px solid var(--down);
}

.contras li::before {
  content: "− ";
  font-weight: 800;
  color: var(--down);
}

.problemas li {
  background: oklch(0.84 0.155 92 / 0.20);
  border: 1px solid oklch(0.45 0.165 26 / 0.30);
  border-top: 2px solid var(--down);
  font-weight: 560;
}

.problemas li::before {
  content: "▲ ";
  font-size: 0.78em;
  font-weight: 800;
  color: var(--down);
  margin-right: 4px;
}

.envejecido {
  line-height: 1.6;
  max-width: 65ch;
  text-wrap: pretty;
}

.segmento-intro {
  max-width: 68ch;
  color: var(--muted);
  line-height: 1.55;
  margin: 8px 0 22px;
}

.alternativas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.alternativas > a,
.alt-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
}

.alternativas > a:hover,
.alt-card:hover { border-color: var(--primary); }

.alt-main {
  display: block;
  text-decoration: none;
  color: inherit;
}

.alt-vs {
  display: inline-block;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
}

.alt-vs:hover { text-decoration: underline; }

.alternativas strong,
.alternativas small,
.alternativas em {
  display: block;
}

.alternativas strong { color: var(--ink); }
.alternativas small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
}

.alternativas em {
  margin-top: 10px;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.4;
  font-style: normal;
}

.relacionados {
  display: flex;
  flex-direction: column;
  border-top: 3px solid var(--rule);
}

.relacionados > a,
.rel-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-weight: 750;
}

.rel-row a {
  text-decoration: none;
}

.rel-row a:hover,
.relacionados > a:hover { color: var(--primary); }
.relacionados .delta { font-stretch: condensed; font-weight: 800; }

.rel-actions {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-shrink: 0;
}

.rel-vs {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
}

.rel-vs:hover { text-decoration: underline; }

footer {
  margin-top: 72px;
  padding-top: 16px;
  border-top: 3px solid var(--rule);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
  max-width: 70ch;
}

footer strong { color: var(--ink); }
footer a { color: var(--primary); font-weight: 700; text-decoration: none; }
footer a:hover { text-decoration: underline; }

.legal {
  max-width: 72ch;
}

.legal .kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.legal h1 {
  font-stretch: extra-condensed;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 8px 0 12px;
}

.legal .updated {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.legal h2 {
  font-stretch: extra-condensed;
  font-weight: 800;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 28px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.legal h2:first-of-type {
  border-top: 3px solid var(--rule);
}

.legal p {
  max-width: 65ch;
  margin-bottom: 14px;
  text-wrap: pretty;
}

.legal a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.legal a:hover { text-decoration: underline; }

.legal ul {
  list-style: disc;
  max-width: 65ch;
  margin: 0 0 14px 1.15em;
}

.legal li {
  margin-bottom: 6px;
}

.legal .compra-box {
  max-width: 65ch;
  margin: 8px 0 28px;
}

.titular {
  display: grid;
  grid-template-columns: 11rem 1fr;
  max-width: 65ch;
  margin: 8px 0 24px;
  border: 3px solid var(--rule);
}

.titular dt,
.titular dd {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.titular dt {
  background: var(--surface);
  font-size: 0.78rem;
  font-weight: 800;
  font-stretch: condensed;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.titular dd { font-weight: 650; }

.titular dt:nth-last-of-type(1),
.titular dd:nth-last-of-type(1) { border-bottom: 0; }

.titular .pendiente {
  color: var(--muted);
  font-weight: 600;
}

.legal-nav {
  display: flex;
  gap: 18px;
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-weight: 800;
}

.legal footer { margin-top: 48px; }

@media (max-width: 980px) {
  .portada { grid-template-columns: 1fr; min-height: 0; }
  .lead { min-height: min(68vh, 560px); }
  .lead-body { min-height: min(68vh, 560px); }
  .rail { border-left: 0; border-top: 3px solid var(--accent); flex-direction: row; }
  .rail-story { min-height: 260px; border-bottom: 0; border-right: 1px solid oklch(0.97 0.012 55 / 0.14); }
  .rail-story:last-child { border-right: 0; }
  .segunda { grid-template-columns: 1fr 1fr; }
  .brief:nth-child(2) { border-right: 0; }
  .brief:nth-child(1),
  .brief:nth-child(2) { border-bottom: 1px solid oklch(0.97 0.012 55 / 0.14); }
  .clasif { grid-template-columns: 1fr; }
  .clasif > div {
    padding: 0 0 22px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  .clasif > div:last-child { padding-bottom: 0; border-bottom: 0; }
}

@media (max-width: 820px) {
  .masthead-inner {
    grid-template-columns: 1fr auto;
    padding: 10px 0 8px;
  }
  .issue { display: none; }
  .masthead-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 6px 0 8px;
  }
  .masthead-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 14px;
    scrollbar-width: none;
  }
  .masthead-nav::-webkit-scrollbar { display: none; }
  .masthead-search { display: block; }
  .masthead-search input { width: 100%; }
  .mesa-inner { grid-template-columns: 1fr; gap: 10px; }
  .ficha {
    grid-template-columns: 108px 1fr;
    align-items: start;
    gap: 12px;
  }
  .ficha .stamp { grid-column: 2; justify-self: start; }
  .detail-head { grid-template-columns: 1fr; gap: 20px; }
  .cols { grid-template-columns: 1fr; }
  .alternativas { grid-template-columns: 1fr; }
  .marcas-list { columns: 2; }
  .segmentos-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .titular { grid-template-columns: 1fr; }
  .titular dt { padding-bottom: 2px; border-bottom: 0; }
  .titular dd { padding-top: 2px; }
  .lead { min-height: 480px; }
  .lead-body { min-height: 480px; }
  .lead-dek {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .spec-grid { grid-template-columns: 1fr; }
  .rail { flex-direction: column; }
  .rail-story { border-right: 0; border-bottom: 1px solid oklch(0.97 0.012 55 / 0.14); }
  .segunda { grid-template-columns: 1fr; }
  .brief { border-right: 0; border-bottom: 1px solid oklch(0.97 0.012 55 / 0.14); }
  .brief:last-child { border-bottom: 0; }
  .marcas-list { columns: 1; }
  .segmentos-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  .ficha-title,
  .lead-link,
  .marcas-list a,
  .segmentos-list a,
  .clasif a,
  .relacionados a,
  .relacionados-mas a {
    transition: color 180ms var(--ease), border-color 180ms var(--ease);
  }
  .lead-foto img,
  .rail-foto img,
  .brief-foto img {
    transition: transform 700ms var(--ease), opacity 280ms var(--ease);
  }
  .lead:hover .lead-foto img.is-on,
  .rail-story:hover .rail-foto img.is-on,
  .brief:hover .brief-foto img.is-on {
    transform: scale(1.035);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

.seo-home {
  padding: 8px var(--pad) 0;
  background: var(--ink);
  color: var(--accent);
}
.seo-home h1 {
  font-stretch: condensed;
  font-weight: 800;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  margin: 0;
}
.seo-intro h1 {
  font-stretch: extra-condensed;
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0 0 12px;
}
.seo-intro p,
#list-head p {
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 8px;
}
.seo-modelos {
  margin: clamp(40px, 7vw, 72px) 0 24px;
  padding-top: 28px;
  border-top: 3px solid var(--rule);
}
.seo-modelos > h2 {
  font-stretch: extra-condensed;
  font-weight: 800;
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.seo-grid {
  columns: 3;
  column-gap: clamp(24px, 4vw, 56px);
}
.seo-marca {
  break-inside: avoid;
  margin-bottom: 18px;
}
.seo-marca h2 {
  font-size: 1.05rem;
  margin: 0 0 6px;
  border: 0;
  padding: 0;
}
.seo-marca h2 a { color: var(--ink); text-decoration: none; }
.seo-marca h2 a:hover { color: var(--primary); }
.seo-marca ul { list-style: none; margin: 0; padding: 0; }
.seo-marca li { margin: 0; }
.seo-marca a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
  color: inherit;
  text-decoration: none;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--line);
}
.seo-marca a span { color: var(--muted); font-size: 0.82rem; }
.seo-marca a:hover { color: var(--primary); }
.clasif-mas {
  grid-column: 1 / -1;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-weight: 800;
}
.clasif-mas a { text-decoration: none; }
.clasif-mas a:hover { color: var(--primary); }

.parque-ord {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 14px 0 0;
  font-weight: 800;
}
.parque-ord a { text-decoration: none; color: var(--muted); }
.parque-ord a[aria-current="page"] { color: var(--ink); }
.parque-ord a:hover { color: var(--primary); }

.parque-list {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
}
.parque-list a {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) auto auto;
  gap: 10px 16px;
  align-items: baseline;
  padding: 11px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  font-weight: 650;
}
.parque-n {
  font-stretch: condensed;
  font-weight: 800;
  color: var(--muted);
}
.parque-list small {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 2px;
}
.parque-notas {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}
.parque-list .delta { font-stretch: condensed; font-weight: 800; }
.parque-list .delta.up { color: var(--up); }
.parque-list .delta.down { color: var(--down); }
.parque-list strong {
  font-stretch: extra-condensed;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  min-width: 2.6rem;
  text-align: right;
}
.parque-list a:hover { color: var(--primary); }

@media (max-width: 640px) {
  .parque-list a {
    grid-template-columns: 2.4rem 1fr auto;
  }
  .parque-notas { display: none; }
}

#list-head h1 {
  font-stretch: extra-condensed;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0 0 10px;
}
@media (max-width: 980px) {
  .seo-grid { columns: 2; }
}
@media (max-width: 640px) {
  .seo-grid { columns: 1; }
}

/* Sagas y generaciones */
.saga-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.saga-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.saga-card.is-current {
  border: 2px solid var(--ink);
  background: var(--bg);
}

.saga-main {
  text-decoration: none;
  color: inherit;
  display: block;
}

.saga-main:hover strong { color: var(--primary); }

.saga-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 6px;
  background: var(--accent);
  color: var(--accent-ink);
  margin-bottom: 6px;
}

.saga-main strong {
  display: block;
  font-stretch: extra-condensed;
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.05;
}

.saga-meta {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: 4px;
}

.saga-nota {
  display: inline-block;
  margin-top: 8px;
  font-stretch: condensed;
  font-weight: 800;
  font-size: 0.9rem;
}

.saga-nota.up { color: var(--up); }
.saga-nota.down { color: var(--down); }

.saga-vs {
  display: inline-block;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
}

.saga-vs:hover { text-decoration: underline; }

/* Preguntas frecuentes de la ficha */
.ficha-faqs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-width: 72ch;
}

.ficha-faq {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--rule);
}

.ficha-faq h3 {
  font-stretch: extra-condensed;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
  color: var(--ink);
}

.ficha-faq p {
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--ink);
}

/* Resumen de marca y hubs */
.marca-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 14px 0 18px;
  padding: 12px 16px;
  background: var(--surface);
  border-top: 2px solid var(--rule);
  font-size: 0.9rem;
}

.marca-stats span strong {
  font-stretch: condensed;
  font-weight: 800;
  color: var(--ink);
}

.marca-stats a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.marca-stats a:hover { text-decoration: underline; }

/* Comparador cara a cara */
.comparador-box {
  margin: 18px 0 28px;
  padding: 18px 20px;
  background: var(--surface);
  border-top: 3px solid var(--rule);
}

.comparador-box h2 {
  font-stretch: extra-condensed;
  font-weight: 800;
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.comparador-form {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  gap: 10px;
  align-items: end;
}

.comp-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.comp-filter {
  width: 100%;
  padding: 7px 10px;
  font: inherit;
  font-size: 0.84rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--bg);
  color: var(--ink);
}

.comp-filter:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--accent);
}

.comparador-form select {
  width: 100%;
  padding: 12px 12px;
  font: inherit;
  font-size: 0.95rem;
  border: 2px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
}

.ficha-buscador {
  margin-top: 36px;
  padding: 16px 18px;
  background: var(--ink);
  color: var(--primary-ink);
  border-top: 3px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  flex-wrap: wrap;
}

.ficha-buscador strong {
  font-stretch: extra-condensed;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--accent);
}

.ficha-buscador form {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 260px;
}

.ficha-buscador input {
  flex: 1;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.95rem;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--bg);
  color: var(--ink);
}

.ficha-buscador button {
  padding: 10px 16px;
  font: inherit;
  font-stretch: condensed;
  font-weight: 800;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  cursor: pointer;
}

.comparador-vs-badge {
  font-stretch: extra-condensed;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--muted);
  padding: 0 4px;
}

.comparador-btn {
  padding: 12px 18px;
  font: inherit;
  font-stretch: condensed;
  font-weight: 800;
  font-size: 1rem;
  background: var(--primary);
  color: var(--primary-ink);
  border: 2px solid var(--ink);
  cursor: pointer;
  white-space: nowrap;
}

.comparador-btn:hover {
  background: var(--ink);
}

.duelos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 10px;
  margin: 12px 0 32px;
}

.duelo-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
}

.duelo-card:hover {
  border-color: var(--primary);
}

.duelo-card strong {
  font-stretch: extra-condensed;
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.05;
  color: var(--ink);
}

.duelo-card small {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.duelo-card .duelo-notas {
  display: inline-block;
  margin-top: 8px;
  font-stretch: condensed;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--primary);
}

.vs-head h1 {
  font-stretch: extra-condensed;
  font-weight: 800;
  font-size: clamp(2rem, 4.8vw, 3.3rem);
  letter-spacing: -0.03em;
  line-height: 0.92;
  margin: 6px 0 14px;
  text-wrap: balance;
}

.vs-veredicto {
  margin: 14px 0 26px;
  padding: 16px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  border-top: 4px solid var(--ink);
  font-weight: 700;
  line-height: 1.48;
  max-width: 78ch;
}

.vs-veredicto .albaran {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.vs-tabla {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 32px;
  border-top: 3px solid var(--rule);
  font-size: 0.95rem;
}

.vs-tabla th,
.vs-tabla td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.vs-tabla thead th {
  background: var(--surface);
  font-stretch: extra-condensed;
  font-weight: 800;
  font-size: 1.15rem;
}

.vs-tabla tbody th {
  width: 22%;
  color: var(--muted);
  font-weight: 750;
  font-size: 0.86rem;
}

.vs-tabla td {
  width: 39%;
  font-weight: 650;
}

.vs-win {
  color: var(--up);
  font-weight: 800;
}

.vs-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.vs-col-head {
  font-stretch: extra-condensed;
  font-weight: 800;
  font-size: 1.45rem;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--rule);
}

.vs-col-head a {
  text-decoration: none;
}

.vs-col-head a:hover {
  color: var(--primary);
}

@media (max-width: 820px) {
  .comparador-form {
    grid-template-columns: 1fr;
  }
  .comparador-vs-badge { display: none; }
  .vs-cols { grid-template-columns: 1fr; }
  .vs-tabla tbody th { width: 28%; }
}


.ficha-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}
.ficha-pills .pill {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid var(--rule);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
}
.ficha-pills a.pill:hover {
  border-color: var(--primary);
  filter: brightness(0.95);
}
.ficha-pills .pill-dgt-0 {
  background: oklch(0.55 0.14 235);
  color: oklch(0.99 0.005 235);
}
.ficha-pills .pill-dgt-c {
  background: oklch(0.46 0.14 148);
  color: oklch(0.99 0.005 148);
}
.ficha-pills .pill-dgt-b {
  background: oklch(0.86 0.17 90);
  color: oklch(0.18 0.03 80);
}
.ficha-pills .pill-dgt-h {
  background: var(--surface);
  color: var(--ink);
}

/* Botones de compartir por WhatsApp y copiar enlace */
.share-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  font: inherit;
  font-stretch: condensed;
  font-weight: 800;
  font-size: 0.84rem;
  border: 1px solid var(--rule);
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.share-btn.share-wa {
  background: oklch(0.42 0.135 148);
  color: oklch(0.99 0.005 148);
  border-color: oklch(0.32 0.11 148);
}
.share-btn:hover {
  background: var(--ink);
  color: var(--primary-ink);
}

/* Checklist interactivo pre-compra */
.checklist-box {
  margin: 28px 0 32px;
  padding: 20px 22px;
  background: var(--surface);
  border: 2px solid var(--rule);
  border-top: 5px solid var(--primary);
}
.checklist-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.checklist-head h2.sec {
  margin: 0 0 4px;
}
.checklist-sub {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 62ch;
}
.checklist-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.checklist-counter {
  display: inline-block;
  padding: 6px 10px;
  background: var(--bg);
  border: 1px solid var(--rule);
  font-stretch: condensed;
  font-weight: 800;
  font-size: 0.86rem;
}
.checklist-counter.is-complete {
  background: var(--up);
  color: var(--primary-ink);
  border-color: var(--up);
}
.checklist-reset {
  padding: 6px 10px;
  font: inherit;
  font-stretch: condensed;
  font-weight: 800;
  font-size: 0.84rem;
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--line);
  cursor: pointer;
}
.checklist-reset:hover {
  color: var(--down);
  border-color: var(--down);
}
.checklist-print {
  padding: 6px 12px;
  font: inherit;
  font-stretch: condensed;
  font-weight: 800;
  font-size: 0.86rem;
  background: var(--ink);
  color: var(--primary-ink);
  border: 1px solid var(--ink);
  cursor: pointer;
}
.checklist-print:hover {
  background: var(--primary);
  border-color: var(--primary);
}
.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  cursor: pointer;
  line-height: 1.45;
  font-size: 0.96rem;
}
.check-item:hover {
  border-color: var(--primary);
}
.check-item input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 3px;
  accent-color: var(--up);
  flex-shrink: 0;
  cursor: pointer;
}
.check-tag {
  display: inline-block;
  padding: 1px 6px;
  margin-right: 4px;
  background: var(--accent);
  color: var(--accent-ink);
  font-stretch: condensed;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.check-item.is-checked {
  background: oklch(0.38 0.125 148 / 0.08);
  border-color: var(--up);
}
.check-item.is-checked .check-body {
  text-decoration: line-through;
  color: var(--muted);
}

/* Calculadora de gastos reales de compra e ITP */
.calc-box {
  margin: 0 0 18px;
  padding: 16px 18px;
  background: var(--surface);
  border: 2px solid var(--rule);
}
.calc-head h3 {
  font-stretch: extra-condensed;
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 4px;
}
.calc-head p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.calc-controls {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 12px;
  margin-bottom: 14px;
}
.calc-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.calc-field span {
  font-stretch: condensed;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.calc-field input,
.calc-field select {
  padding: 9px 11px;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
}
.calc-breakdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--rule);
}
.calc-breakdown > div {
  padding: 10px 12px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.calc-breakdown dt {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.25;
}
.calc-breakdown dd {
  font-stretch: extra-condensed;
  font-weight: 800;
  font-size: 1.2rem;
  margin-top: 6px;
  color: var(--ink);
}
.calc-breakdown .calc-total {
  background: var(--accent);
  color: var(--accent-ink);
}
.calc-breakdown .calc-total dt {
  color: var(--accent-ink);
  font-weight: 800;
  text-transform: uppercase;
}
.calc-breakdown .calc-total dd {
  font-size: 1.4rem;
  color: var(--primary);
}

@media (max-width: 800px) {
  .calc-controls { grid-template-columns: 1fr; }
  .calc-breakdown { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .calc-breakdown { grid-template-columns: 1fr; }
}

@media print {
  .masthead,
  .volver,
  .share-bar,
  .leads-box,
  .ficha-buscador,
  .checklist-reset,
  .checklist-print,
  footer {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .checklist-box {
    break-inside: avoid;
    border: 2px solid #000 !important;
  }
}

.leads-box {
  margin: 24px 0 12px;
  padding-top: 14px;
  border-top: 3px solid var(--rule);
}
.leads-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.lead-card {
  border: 1px solid var(--line);
  border-top: 2px solid var(--rule);
  background: var(--surface);
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.lead-card strong {
  display: block;
  font-stretch: extra-condensed;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.lead-card p {
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0 0 10px;
  color: var(--muted);
}
.lead-card a {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--primary);
  text-decoration: none;
}
.lead-card a:hover { text-decoration: underline; }
@media (max-width: 800px) {
  .leads-grid { grid-template-columns: 1fr; }
}
