@font-face {
  font-family: "Archivo";
  src: 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.982 0.009 85);           /* Papel arena muy claro */
  --surface: oklch(0.948 0.016 82);      /* Superficie piedra cálida */
  --ink: oklch(0.20 0.028 155);          /* Tinta pino muy oscuro */
  --muted: oklch(0.40 0.025 150);
  --primary: oklch(0.32 0.085 152);      /* Verde bosque overlanding */
  --primary-ink: oklch(0.975 0.01 85);
  --accent: oklch(0.82 0.155 78);        /* Ámbar / ocre brújula */
  --accent-ink: oklch(0.20 0.04 70);
  --up: oklch(0.38 0.125 148);
  --down: oklch(0.44 0.16 28);
  --line: oklch(0.20 0.028 155 / 0.18);
  --rule: oklch(0.20 0.028 155);
  --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: condensed;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  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.01em;
  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.88rem;
  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.01em;
}

.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 {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  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;
  min-height: 40px;
  padding: 6px 11px;
  font: inherit;
  font-size: 0.88rem;
  border: 1px solid oklch(0.97 0.012 55 / 0.42);
  border-radius: 0;
  background: oklch(0.23 0.065 152);
  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: 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.88rem;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qr-nota {
  font-stretch: 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.88rem;
  text-decoration: none;
  text-align: center;
}

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

.qr-empty {
  padding: 12px;
  font-size: 0.88rem;
  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.88rem;
  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(60vh, 600px);
  background: var(--ink);
}

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

.lead-foto {
  position: absolute;
  inset: 0;
  background: oklch(0.16 0.025 155);
  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 155 / 0.82) 0%, oklch(0.13 0.025 155 / 0.18) 40%),
    linear-gradient(0deg, oklch(0.13 0.025 155 / 0.94) 0%, oklch(0.13 0.025 155 / 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.01em;
}

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

.lead-body {
  position: relative;
  min-height: min(58vh, 560px);
  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.88rem;
  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: condensed;
  font-weight: 800;
  font-size: clamp(2.15rem, 5.2vw, 4.4rem);
  letter-spacing: -0.01em;
  line-height: 0.96;
  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: 240px;
  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 155);
  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 155 / 0.58) 0%, transparent 40%),
    linear-gradient(0deg, oklch(0.13 0.025 155 / 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.88rem;
  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: condensed;
  font-weight: 800;
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  letter-spacing: -0.01em;
  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;
}

.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: 0.88rem; font-stretch: condensed; }
.stamp .delta { font-size: 1.32rem; }
.stamp-hoy {
  font-stretch: condensed;
  font-size: 1.45rem;
  line-height: 1;
}
.stamp-hoy small { font-size: 0.72em; }
.lead .stamp,
.rail .stamp {
  color: var(--accent-ink);
  background: var(--accent);
  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 155);
  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.88rem;
  font-weight: 800;
  color: var(--accent);
}

.brief h3 {
  font-stretch: condensed;
  font-weight: 800;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  letter-spacing: -0.01em;
  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: condensed;
  font-weight: 800;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  letter-spacing: -0.01em;
  margin: 0;
  padding: 8px 10px 7px;
  background: var(--ink);
  color: var(--primary-ink);
}

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

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

.clasif ol 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 ol a::before {
  content: counter(n, decimal-leading-zero);
  font-stretch: condensed;
  font-weight: 800;
  color: var(--muted);
}

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

.clasif ol 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: 20px 0 22px;
  scroll-margin-top: 150px;
  border-top: 3px solid var(--accent);
}

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

.mesa-heading {
  min-width: 0;
  max-width: 100%;
}

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

.mesa-sub {
  margin-top: 5px;
  color: oklch(0.90 0.015 55);
  font-size: 0.88rem;
}

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

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

.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);
  max-width: 100%;
  text-overflow: ellipsis;
}

.indice input { flex: 2 1 220px; min-width: 0; }
.indice select { flex: 1 1 160px; min-width: 0; }
.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; margin: 0 0 8px; }

.home-directory {
  margin-top: clamp(30px, 5vw, 52px);
  border-top: 3px solid var(--rule);
}

.home-directory:has(#marcas[hidden]) { display: none; }

.home-directory summary,
.seo-modelos summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 18px 0;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.home-directory summary::-webkit-details-marker,
.seo-modelos summary::-webkit-details-marker { display: none; }

.home-directory summary::after,
.seo-modelos summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--primary);
  font-size: 1.4rem;
}

.home-directory[open] summary::after,
.seo-modelos[open] summary::after { content: "−"; }

.home-directory summary > span:first-child {
  font-stretch: condensed;
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  letter-spacing: -0.01em;
}

.home-directory summary > span:nth-child(2),
.seo-modelos summary > span:nth-child(2) {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.home-directory summary:hover,
.seo-modelos summary:hover { color: var(--primary); }

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

.marcas-letter {
  break-inside: avoid;
  font-stretch: condensed;
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.01em;
  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: condensed;
  font-size: 2.5rem;
  font-weight: 800;
  color: oklch(0.20 0.03 155 / 0.16);
}

.ficha-title {
  font-stretch: condensed;
  font-weight: 800;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  letter-spacing: -0.01em;
  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.88rem;
  margin-top: 8px;
  font-weight: 600;
}

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

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

.score-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin: 16px 0 12px;
  padding: 14px 0;
  border-top: 2px solid var(--rule);
  border-bottom: 1px solid var(--line);
}

.score-today {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-right: 16px;
  border-right: 1px solid var(--line);
}

.score-today > span {
  max-width: 17ch;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
}

.score-today strong {
  font-stretch: condensed;
  font-size: 2.55rem;
  line-height: 1;
  letter-spacing: -0.01em;
}

.score-today small {
  margin-left: 2px;
  color: var(--muted);
  font-size: 0.95rem;
}

.score-evolution {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.score-evolution strong { font-size: 1rem; line-height: 1.3; }
.score-evolution span { color: var(--muted); font-size: 0.88rem; line-height: 1.4; }
.score-banner.up .score-evolution strong { color: var(--up); }
.score-banner.down .score-evolution strong { color: var(--down); }

.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.88rem;
  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: 16px 18px 15px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.55;
  border: 1px solid var(--rule);
  border-top: 4px solid var(--ink);
}

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

.resumen-linea {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px 32px;
  margin: 8px 0 20px;
}

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

.checklist-jump {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-height: 64px;
  padding: 12px 18px;
  background: var(--primary);
  color: var(--primary-ink);
  text-decoration: none;
}

.checklist-jump span { font-size: 0.88rem; color: oklch(0.90 0.015 55); }
.checklist-jump strong { font-size: 0.96rem; }
.checklist-jump:hover { background: var(--ink); color: var(--accent); }

.editorial-note {
  max-width: 74ch;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.9rem;
}

.ficha-updated { margin-bottom: 8px; font-size: 0.88rem; }

.ficha-metodo {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ficha-metodo summary {
  padding: 10px 0;
  color: var(--ink);
  cursor: pointer;
  font-weight: 750;
}

.ficha-metodo > div { padding: 0 0 12px; }
.ficha-metodo p { margin-bottom: 8px; line-height: 1.55; }
.ficha-metodo p:last-child { margin-bottom: 0; }
.ficha-metodo a { color: var(--primary); font-weight: 750; }

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

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

ul { list-style: none; }

.pros,
.contras,
.problemas { border-top: 2px solid var(--rule); }
.pros { border-top-color: var(--up); }
.contras,
.problemas { border-top-color: var(--down); }

.pros li,
.contras li,
.problemas li {
  position: relative;
  padding: 12px 0 12px 24px;
  line-height: 1.55;
  border-bottom: 1px solid var(--line);
}

.pros li::before,
.contras li::before,
.problemas li::before {
  position: absolute;
  left: 0;
  top: 12px;
  font-weight: 800;
}

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

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

.problemas li { font-weight: 560; }

.problemas li::before {
  content: "▲";
  font-size: 0.78em;
  color: var(--down);
  top: 15px;
}

.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.88rem;
  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.88rem;
}

.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.88rem;
  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.88rem;
  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.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

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

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

.legal h2 {
  font-stretch: condensed;
  font-weight: 800;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  letter-spacing: -0.01em;
  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.88rem;
  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(56vh, 520px); }
  .lead-body { min-height: min(56vh, 520px); }
  .rail { border-left: 0; border-top: 3px solid var(--accent); flex-direction: row; }
  .rail-story { min-height: 240px; 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 {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0 12px;
    padding: 6px var(--pad) 0;
    border-bottom-width: 2px;
  }
  .masthead-inner,
  .masthead-bar {
    display: contents;
  }
  .issue,
  .folio {
    display: none;
  }
  .brand {
    grid-column: 1;
    grid-row: 1;
    gap: 7px;
  }
  .brand-mark {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 1rem;
    border-width: 1.5px;
  }
  .brand-name {
    font-size: 1.55rem;
  }
  .masthead-search {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    min-width: 0;
  }
  .masthead-search input {
    width: 100%;
    min-height: 34px;
    padding: 4px 10px;
    font-size: 0.85rem;
  }
  .masthead-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 14px;
    padding: 2px 0 4px;
    margin-top: 4px;
    border-top: 1px solid oklch(0.97 0.012 55 / 0.18);
    scrollbar-width: none;
  }
  .masthead-nav::-webkit-scrollbar { display: none; }
  .masthead-nav a {
    min-height: 30px;
    font-size: 0.83rem;
  }
  .mesa,
  .checklist-box {
    scroll-margin-top: 90px;
  }
  .mesa-inner { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ficha {
    grid-template-columns: 136px minmax(0, 1fr);
    align-items: start;
    gap: 12px 16px;
  }
  .ficha .stamp { grid-column: 2; justify-self: start; }
  .ficha .ficha-nota {
    grid-column: 2;
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    text-align: left;
    gap: 10px;
    min-width: 0;
  }
  .ficha .nota-hoy {
    font-size: 2rem;
  }
  .detail-head { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .detail-info { order: -1; }
  .resumen-linea { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .checklist-jump { justify-self: start; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .alternativas { grid-template-columns: minmax(0, 1fr); }
  .marcas-list { columns: 2; }
  .segmentos-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .indice input,
  .indice select,
  .reset-btn {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }
  .ficha {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .ficha .ficha-foto {
    aspect-ratio: 16/9;
    max-height: 200px;
  }
  .ficha .ficha-nota {
    grid-column: 1;
    padding-top: 6px;
    border-top: 1px solid var(--line);
    width: 100%;
  }
}

@media (max-width: 520px) {
  .titular { grid-template-columns: minmax(0, 1fr); }
  .titular dt { padding-bottom: 2px; border-bottom: 0; }
  .titular dd { padding-top: 2px; }
  .lead { min-height: 430px; }
  .lead-body { min-height: 430px; }
  .lead-dek {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .spec-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 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: minmax(0, 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: minmax(0, 1fr); }
  .share-btn,
  .checklist-reset,
  .checklist-print,
  .checklist-counter { min-height: 44px; }
  .ficha-pills a.pill { min-height: 44px; }
  .home-directory summary,
  .seo-modelos summary { flex-wrap: wrap; }
  .home-directory summary > span:nth-child(2),
  .seo-modelos summary > span:nth-child(2) {
    flex-basis: 100%;
    margin-left: 0;
    padding-right: 24px;
  }
  .score-banner { gap: 12px; }
  .score-today { padding-right: 12px; }
  .score-today strong { font-size: 2.2rem; }
  .checklist-jump { justify-self: stretch; }
  .checklist-box,
  .sim-box,
  .calc-box { padding: 14px; scroll-margin-top: 90px; }
  .sim-controls { padding: 12px; gap: 12px; }
  .sim-stage { padding: 6px; }
  .checklist-actions { width: 100%; }
  .rel-row { flex-wrap: wrap; gap: 6px 12px; }
}

@media (prefers-reduced-motion: no-preference) {
  .ficha-title,
  .lead-link,
  .marcas-list a,
  .segmentos-list a,
  .clasif ol 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.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  margin: 0;
}
.seo-intro h1 {
  font-stretch: condensed;
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.01em;
  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(36px, 6vw, 56px) 0 24px;
  border-top: 3px solid var(--rule);
}
.seo-modelos-title {
  font-stretch: condensed;
  font-weight: 800;
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  letter-spacing: -0.01em;
}
.seo-modelos[open] summary { margin-bottom: 10px; }
.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.88rem; }
.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.88rem;
  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.88rem;
  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: condensed;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  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: condensed;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
  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.88rem;
  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: condensed;
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.05;
}

.saga-meta {
  display: block;
  font-size: 0.88rem;
  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: 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: 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.88rem;
  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: condensed;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--accent);
}

.ficha-buscador form {
  display: flex;
  gap: 8px;
  flex: 1 1 260px;
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
}

.ficha-buscador input {
  flex: 1 1 180px;
  min-width: 0;
  max-width: 100%;
  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: 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: 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.88rem;
  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: condensed;
  font-weight: 800;
  font-size: clamp(2rem, 4.8vw, 3.3rem);
  letter-spacing: -0.01em;
  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.88rem;
  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: condensed;
  font-weight: 800;
  font-size: 1.15rem;
}

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

.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: 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: minmax(0, 1fr);
  }
  .comparador-vs-badge { display: none; }
  .vs-cols { grid-template-columns: minmax(0, 1fr); }
  .vs-tabla {
    table-layout: fixed;
    font-size: 0.88rem;
  }
  .vs-tabla th,
  .vs-tabla td {
    padding: 8px 6px;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .vs-tabla thead th {
    font-size: 0.98rem;
  }
  .vs-tabla tbody th {
    width: 26%;
    font-size: 0.8rem;
  }
  .vs-tabla td {
    width: 37%;
  }
}


.ficha-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}
.ficha-pills .pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid var(--rule);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  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;
  min-height: 40px;
  padding: 7px 12px;
  font: inherit;
  font-stretch: condensed;
  font-weight: 800;
  font-size: 0.88rem;
  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);
  scroll-margin-top: 150px;
}
.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-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 10px;
  background: var(--bg);
  border: 1px solid var(--rule);
  font-stretch: condensed;
  font-weight: 800;
  font-size: 0.88rem;
}
.checklist-counter.is-complete {
  background: var(--up);
  color: var(--primary-ink);
  border-color: var(--up);
}
.checklist-reset {
  min-height: 40px;
  padding: 6px 10px;
  font: inherit;
  font-stretch: condensed;
  font-weight: 800;
  font-size: 0.88rem;
  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 {
  min-height: 40px;
  padding: 6px 12px;
  font: inherit;
  font-stretch: condensed;
  font-weight: 800;
  font-size: 0.88rem;
  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;
  min-height: 56px;
  padding: 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.35rem;
  height: 1.35rem;
  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.88rem;
  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: 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: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 12px;
  margin-bottom: 14px;
}
.calc-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
}
.calc-field span {
  font-stretch: condensed;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.calc-field input,
.calc-field select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 11px;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  text-overflow: ellipsis;
}
.calc-breakdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 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;
  min-width: 0;
}
.calc-breakdown dt {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.25;
}
.calc-breakdown dd {
  font-stretch: condensed;
  font-weight: 800;
  font-size: 1.2rem;
  margin-top: 6px;
  color: var(--ink);
  overflow-wrap: break-word;
}
.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: minmax(0, 1fr); }
  .calc-breakdown { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .calc-breakdown { grid-template-columns: minmax(0, 1fr); }
}

@media print {
  .masthead,
  .volver,
  .share-bar,
  .leads-box,
  .ficha-buscador,
  .checklist-jump,
  .editorial-note,
  .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: 16px 28px;
}
.lead-card {
  border-top: 1px solid var(--line);
  padding: 14px 0 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.lead-card strong {
  display: block;
  font-stretch: 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; }
}

/* ==========================================================================
   HERRAMIENTAS INTERACTIVAS DE CAMPER 95:
   1. Semáforo Mecánico (Motor a buscar vs Motor a evitar)
   2. Simulador SVG Doble Vista (Alzado trasero + Planta L1/L2/L3)
   3. Tabla y Calculadora de Homologación ITV (3100 vs 3148 vs 2448)
   ========================================================================== */

.semaforo-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0 28px;
}

.semaforo-card {
  padding: 16px 18px;
  background: var(--surface);
  border: 2px solid var(--rule);
  border-top-width: 5px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.semaforo-card.semaforo-ok {
  border-top-color: var(--up);
  background: oklch(0.38 0.125 148 / 0.07);
}

.semaforo-card.semaforo-bad {
  border-top-color: var(--down);
  background: oklch(0.44 0.16 28 / 0.07);
}

.semaforo-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-stretch: condensed;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.semaforo-ok .semaforo-kicker { color: var(--up); }
.semaforo-bad .semaforo-kicker { color: var(--down); }

.semaforo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  background: currentColor;
}

.semaforo-card h2 {
  font-stretch: condensed;
  font-weight: 800;
  font-size: clamp(1.18rem, 2vw, 1.4rem);
  line-height: 1.15;
  color: var(--ink);
  margin: 0;
}

.semaforo-card p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 2px 0 0;
  line-height: 1.4;
}

/* Simulador SVG Doble Vista de Caja y Cama */
.sim-box {
  margin: 28px 0 32px;
  padding: 20px 22px;
  background: var(--surface);
  border: 2px solid var(--rule);
  border-top: 5px solid var(--primary);
}

.sim-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px 24px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.sim-head h2.sec {
  margin: 0 0 4px;
}

.sim-sub {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 68ch;
  margin: 0;
}

.sim-ref-badge {
  display: inline-block;
  padding: 5px 10px;
  background: var(--ink);
  color: var(--accent);
  font-stretch: condensed;
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
}

.sim-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1.35fr) auto;
  gap: 14px 18px;
  align-items: center;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  margin-bottom: 16px;
}

.sim-variant-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-stretch: condensed;
  font-weight: 800;
  font-size: 0.88rem;
  min-width: 0;
  max-width: 100%;
}

.sim-variant-field select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 6px 10px;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  text-overflow: ellipsis;
}

.sim-range {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-stretch: condensed;
  font-weight: 800;
  font-size: 0.95rem;
  min-width: 0;
  max-width: 100%;
}

.sim-range output {
  color: var(--primary);
  font-size: 1.15rem;
}

.sim-range input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
  cursor: pointer;
}

.sim-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.35;
  cursor: pointer;
  min-width: 0;
  max-width: 100%;
}

.sim-check input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 2px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.sim-reset {
  min-height: 40px;
  padding: 7px 14px;
  font: inherit;
  font-stretch: condensed;
  font-weight: 800;
  font-size: 0.88rem;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--rule);
  cursor: pointer;
}

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

.sim-stage {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 12px;
  margin-bottom: 14px;
}

.sim-stage svg {
  width: 100%;
  height: auto;
  display: block;
}

.sim-verdicts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sim-verdict {
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 4px solid var(--up);
  font-size: 0.93rem;
  line-height: 1.45;
}

.sim-verdict.is-warn {
  border-left-color: var(--down);
}

.sim-verdict strong {
  display: block;
  font-stretch: condensed;
  font-size: 1.05rem;
  margin-bottom: 3px;
}

/* Tabla ITV 3100 vs 3148 vs 2448 */
.itv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 12px 0 16px;
}

.itv-card {
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 3px solid var(--rule);
}

.itv-card.itv-best {
  border-top-color: var(--up);
  background: oklch(0.38 0.125 148 / 0.06);
}

.itv-code {
  display: inline-block;
  padding: 2px 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font-stretch: condensed;
  font-weight: 800;
  font-size: 0.82rem;
  margin-bottom: 5px;
}

.itv-card strong {
  display: block;
  font-stretch: condensed;
  font-weight: 800;
  font-size: 1.08rem;
  margin-bottom: 4px;
}

.itv-card p {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}

.calc-controls-camper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

@media (max-width: 980px) {
  .sim-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .semaforo-box,
  .sim-verdicts,
  .itv-grid,
  .calc-controls-camper {
    grid-template-columns: minmax(0, 1fr);
  }
  .sim-controls {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================
   Integración SSR (lib/page.js): listado, ficha, hubs, parque y comparador
   ========================================================== */

.kicker {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}

.foto { position: relative; margin: 0; }
.foto img { display: block; }
.foto figcaption {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 4px;
}
.foto figcaption a { color: inherit; font-weight: 700; }

/* Listado: fila .ficha (es el propio enlace) */
.cards { display: flex; flex-direction: column; }
.ficha .ficha-foto figcaption { display: none; }
.ficha-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ficha-motor { font-size: 0.92rem; color: var(--muted); line-height: 1.4; }
.ficha-motor strong { color: var(--ink); }
.ficha-nota {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 2px;
  min-width: 96px;
}
.nota-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.nota-hoy {
  font-stretch: condensed;
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 0.9;
  color: var(--primary);
}
.nota-dif { font-size: 0.88rem; font-weight: 800; }
.nota-dif.up { color: var(--up); }
.nota-dif.down { color: var(--down); }

/* Portada: rankings y rail */
.clasif > .clasif-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  padding: 0;
}
.clasif > .clasif-grid > div { padding: 0; border: 0; }
.clasif-col h3 {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.clasif-val { color: var(--muted); font-weight: 700; font-size: 0.88rem; }
.clasif-more { margin-top: 18px; font-size: 0.92rem; }
.clasif-more a { color: var(--primary); font-weight: 700; }
.clasif-title {
  font-stretch: condensed;
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.05;
  margin-bottom: 18px;
}
.rail-nota { font-size: 0.9rem; font-weight: 700; opacity: 0.92; }

/* Cabeceras de hub, parque y listas */
.list-page { padding-top: 8px; padding-bottom: 24px; }
.hub-head {
  padding: 28px 0 18px;
  border-bottom: 3px solid var(--rule);
  margin-bottom: 14px;
}
.hub-head h1 {
  font-stretch: condensed;
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.hub-head .kicker { margin-bottom: 10px; }
.dek {
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 62ch;
  margin-top: 10px;
}
.hub-head .count { margin-top: 10px; }
.section-title {
  font-stretch: condensed;
  font-weight: 800;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.1;
  margin: 28px 0 12px;
}
.crossnav {
  margin: 56px 0 24px;
  padding-top: 18px;
  border-top: 3px solid var(--rule);
}
.crossnav h2 {
  font-stretch: condensed;
  font-weight: 800;
  font-size: 1.4rem;
  margin-bottom: 14px;
}
.crossnav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px 28px;
}
.crossnav-grid h3 {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.crossnav-grid p { font-size: 0.92rem; line-height: 1.6; }
.crossnav-grid a { color: var(--primary); font-weight: 700; text-decoration: none; }
.crossnav-grid a:hover { text-decoration: underline; }

.parque-orden { margin: 6px 0 16px; font-weight: 700; font-size: 0.92rem; }
.parque-orden a { color: var(--primary); }
.parque-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 96px 120px;
  gap: 14px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  list-style: none;
}
.parque-row a { font-weight: 800; text-decoration: none; color: var(--ink); }
.parque-row a:hover { color: var(--primary); }
.parque-n { color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.parque-seg { font-size: 0.85rem; color: var(--muted); }
.parque-nota {
  font-stretch: condensed;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
  text-align: right;
}
.parque-precio { font-size: 0.9rem; color: var(--muted); text-align: right; }

/* Comparador */
.comp-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin: 18px 0 8px;
}
.comp-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 0.9rem; }
.comp-form select {
  font: inherit;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
}
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 800;
  padding: 11px 18px;
  background: var(--primary);
  color: var(--primary-ink);
  border: 0;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--ink); color: var(--accent); }
.duel-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.duel-list a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
  background: var(--bg);
}
.duel-list a:hover { border-color: var(--primary); color: var(--primary); }
.comp-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 18px 0;
}
.comp-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--bg);
}
.comp-card:hover { border-color: var(--primary); }
.comp-card h2 {
  font-stretch: condensed;
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.1;
  padding: 12px 14px 4px;
}
.comp-card p { padding: 0 14px 14px; color: var(--muted); font-size: 0.95rem; }
.comp-foto { aspect-ratio: 16/10; overflow: hidden; background: var(--surface); }
.comp-foto img { width: 100%; height: 100%; object-fit: cover; }
.comp-foto figcaption { display: none; }
.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin-top: 8px;
}
.comp-table th,
.comp-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.comp-table thead th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.pair-motivo { color: var(--muted); font-size: 1rem; margin-top: 10px; max-width: 64ch; }
.veredicto { list-style: none; display: grid; gap: 10px; }
.veredicto li {
  padding: 12px 16px;
  border-left: 5px solid var(--accent);
  background: var(--surface);
  line-height: 1.5;
}

/* Ficha de detalle (.ficha-detalle) */
.ficha-wrap { padding-top: 6px; padding-bottom: 40px; }
.ficha-detalle { padding-top: 4px; }
.crumbs { font-size: 0.86rem; color: var(--muted); margin: 14px 0 10px; }
.crumbs a { color: inherit; font-weight: 700; text-decoration: none; }
.crumbs a:hover { color: var(--primary); text-decoration: underline; }
.ficha-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 440px);
  gap: 28px;
  align-items: end;
  padding-bottom: 22px;
  border-bottom: 3px solid var(--rule);
}
.ficha-head h1 {
  font-stretch: condensed;
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.ficha-title .kicker, .ficha-head .kicker { margin-bottom: 8px; }
.ficha-anos { color: var(--muted); font-weight: 700; margin-top: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pill {
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid var(--line);
  padding: 3px 9px;
  background: var(--bg);
}
.pill-dgt { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.ficha-head .foto img { width: 100%; height: auto; }
.ficha-head .ficha-foto figcaption { display: block; }
.score {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.score > div { display: flex; flex-direction: column; }
.score-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.score > div strong {
  font-stretch: condensed;
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 0.9;
  color: var(--primary);
}
.score-den { font-size: 0.9rem; color: var(--muted); font-weight: 700; }
.score-arrow { font-size: 2rem; color: var(--muted); }
.score-diff { width: 100%; font-weight: 800; }
.score-diff.up { color: var(--up); }
.score-diff.down { color: var(--down); }
.ficha-block {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.ficha-block h2 {
  font-stretch: condensed;
  font-weight: 800;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.1;
  margin-bottom: 10px;
}
.ficha-block p { max-width: 70ch; line-height: 1.6; }
.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0 20px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}
.specs > div { padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.specs dt {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.specs dd { font-weight: 700; margin-top: 2px; }
.alts-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.alt { border: 1px solid var(--line); padding: 16px; background: var(--bg); }
.alt-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: baseline; }
.alt-head a { color: var(--ink); text-decoration: none; }
.alt-head a:hover { color: var(--primary); }
.alt-tipo {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
}
.alt p { margin-top: 8px; font-size: 0.95rem; }
.vs-btn {
  display: inline-block;
  margin-top: 10px;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
}
.checklist-list { list-style: none; margin-top: 14px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { font-weight: 800; cursor: pointer; }
.faq details p { margin-top: 8px; }
.fuente { font-size: 0.86rem; color: var(--muted); margin-top: 28px; max-width: 72ch; line-height: 1.55; }
.leads-note { font-size: 0.8rem; color: var(--muted); margin-top: 10px; }

.hub-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 14px 0 8px;
}
.hub-toolbar-label {
  font-stretch: condensed;
  font-weight: 800;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-right: 4px;
}
.hub-sort-btn {
  padding: 6px 11px;
  font: inherit;
  font-stretch: condensed;
  font-weight: 800;
  font-size: 0.86rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  cursor: pointer;
}
.hub-sort-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.hub-sort-btn.is-active {
  background: var(--ink);
  color: var(--accent);
  border-color: var(--ink);
}
.ficha-fit {
  display: inline-block;
  align-self: flex-start;
  margin-top: 4px;
  padding: 2px 8px;
  font-stretch: condensed;
  font-weight: 800;
  font-size: 0.82rem;
  background: var(--surface);
  color: var(--ink);
  border-left: 3px solid var(--accent);
}
.ficha-fit.is-ok {
  background: oklch(0.38 0.125 148 / 0.1);
  color: var(--up);
  border-left-color: var(--up);
}

.quick-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 12px;
}
.qpill {
  padding: 7px 12px;
  font: inherit;
  font-stretch: condensed;
  font-weight: 800;
  font-size: 0.88rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--rule);
  cursor: pointer;
}
.qpill:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.qpill.is-active {
  background: var(--primary);
  color: var(--primary-ink);
  border-color: var(--primary);
}
.calc-weight-note {
  margin-top: 10px;
  padding: 9px 12px;
  background: var(--bg);
  border-left: 4px solid var(--primary);
  font-size: 0.9rem;
  line-height: 1.45;
}
.elec-box {
  margin-top: 16px;
}
.elec-box .calc-breakdown dd {
  font-size: 1.05rem;
}

.kit-camper-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.kit-card {
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 3px solid var(--primary);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.kit-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.kit-card-kicker {
  font-stretch: condensed;
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.kit-card-price {
  display: inline-block;
  padding: 2px 7px;
  background: var(--accent);
  color: var(--accent-ink);
  font-stretch: condensed;
  font-weight: 800;
  font-size: 0.86rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.kit-card-body {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.kit-card-media {
  width: 88px;
  height: 88px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.kit-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.kit-card-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kit-card-info strong {
  font-stretch: condensed;
  font-weight: 800;
  font-size: 1.12rem;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}
.kit-card p.kit-card-desc {
  font-size: 0.86rem;
  line-height: 1.42;
  color: var(--muted);
  margin: 0;
}
.kit-card p.kit-card-why {
  margin: 0;
  padding: 8px 10px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--ink);
}
.kit-card p.kit-card-why strong {
  display: inline;
  font-stretch: condensed;
  font-weight: 800;
  font-size: 0.86rem;
  color: var(--primary);
  margin: 0;
}
.kit-card-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}
.kit-amz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 13px;
  background: var(--primary);
  color: var(--primary-ink) !important;
  font-stretch: condensed;
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none !important;
  border: 1px solid var(--ink);
  align-self: stretch;
}
.kit-amz-btn:hover {
  background: var(--ink);
  color: var(--accent) !important;
}
.kit-amz-sub {
  font-stretch: condensed;
  font-weight: 700;
  font-size: 0.83rem;
  color: var(--primary) !important;
  text-decoration: none;
  line-height: 1.3;
}
.kit-amz-sub:hover {
  text-decoration: underline !important;
}

@media (max-width: 800px) {
  .kit-camper-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 440px) {
  .kit-card-body {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 10px;
  }
  .kit-card-media {
    width: 74px;
    height: 74px;
  }
}

.ficha-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.ficha-nav a {
  padding: 6px 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-stretch: condensed;
  font-weight: 800;
  font-size: 0.86rem;
  color: var(--ink);
  text-decoration: none;
}
.ficha-nav a:hover {
  border-color: var(--primary);
  color: var(--primary);
}
#que-comprar,
#simulador,
#pros-averias,
#revision,
#costes,
#alternativas-ficha {
  scroll-margin-top: 120px;
}

@media (max-width: 820px) {
  .ficha-head { grid-template-columns: minmax(0, 1fr); }
  .comp-cards { grid-template-columns: minmax(0, 1fr); }
  .parque-row { grid-template-columns: 36px minmax(0, 1fr) 84px; }
  .parque-precio { display: none; }
  .clasif > .clasif-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Página de Gadgets e Imprescindibles Camper (/gadgets) */
.gadgets-home-strip {
  margin: 0 0 18px;
}
.gadgets-home-strip a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  padding: 13px 18px;
  background: var(--ink);
  color: var(--primary-ink);
  border-top: 3px solid var(--accent);
  text-decoration: none;
}
.gadgets-home-strip strong {
  font-stretch: condensed;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--accent);
}
.gadgets-home-strip span {
  font-size: 0.9rem;
  line-height: 1.45;
  color: oklch(0.90 0.015 55);
}
.gadgets-home-strip a:hover strong {
  color: var(--primary-ink);
}

.gadgets-page .hub-head h1 {
  max-width: 22ch;
}
.gadget-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 26px;
}
.gadget-toc a {
  padding: 8px 13px;
  background: var(--surface);
  border: 1px solid var(--rule);
  font-stretch: condensed;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--ink);
  text-decoration: none;
}
.gadget-toc a:hover {
  background: var(--primary);
  color: var(--primary-ink);
  border-color: var(--primary);
}
.gadget-group {
  margin-bottom: 38px;
}
.gadget-group-head {
  border-top: 3px solid var(--rule);
  padding-top: 18px;
  margin-bottom: 18px;
}
.gadget-group-head h2 {
  font-stretch: condensed;
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.1;
  margin-bottom: 8px;
}
.gadget-group-head p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 76ch;
}
.gadget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 16px;
}
.gadget-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 3px solid var(--primary);
  min-width: 0;
}
.gadget-media {
  width: 108px;
  height: 108px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: flex-start;
}
.gadget-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.gadget-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.gadget-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.gadget-head h3 {
  font-stretch: condensed;
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.18;
  margin: 0;
  color: var(--ink);
}
.gadget-price {
  display: inline-block;
  padding: 3px 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-stretch: condensed;
  font-weight: 800;
  font-size: 0.86rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.gadget-why {
  margin: 0;
  padding: 8px 10px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  font-size: 0.88rem;
  line-height: 1.48;
  color: var(--ink);
}
.gadget-why strong,
.gadget-para strong {
  font-stretch: condensed;
  font-weight: 800;
  color: var(--primary);
}
.gadget-para {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--muted);
}
.gadget-amz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 9px 13px;
  background: var(--primary);
  color: var(--primary-ink) !important;
  font-stretch: condensed;
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none !important;
  border: 1px solid var(--ink);
  align-self: stretch;
}
.gadget-amz-btn:hover {
  background: var(--ink);
  color: var(--accent) !important;
}
#gadgets-aislamiento-clima,
#gadgets-electricidad-autonomia,
#gadgets-agua-ducha-wc,
#gadgets-exterior-carga,
#gadgets-seguridad-mantenimiento {
  scroll-margin-top: 110px;
}
.gadget-card[id^="gadget-"] {
  scroll-margin-top: 110px;
}

@media (max-width: 760px) {
  .gadget-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 440px) {
  .gadget-card {
    flex-direction: column;
    gap: 12px;
  }
  .gadget-media {
    width: 100%;
    height: 150px;
  }
  .gadget-head {
    flex-wrap: wrap;
    gap: 6px 10px;
  }
}