/* Fuentes autoalojadas en el propio tema (nada de CDN). */
@font-face{font-family:'Unbounded';font-weight:800;font-style:normal;font-display:swap;src:url('../fonts/unbounded-latin-800-normal.woff2') format('woff2')}
@font-face{font-family:'Onest';font-weight:400;font-style:normal;font-display:swap;src:url('../fonts/onest-latin-400-normal.woff2') format('woff2')}
@font-face{font-family:'Onest';font-weight:500;font-style:normal;font-display:swap;src:url('../fonts/onest-latin-500-normal.woff2') format('woff2')}
:root{--font-display:'Unbounded';--font-text:'Onest'}

/* Desconsolados · sistema visual
   Dirección: «El nombre como monumento» (taste-skill, semilla 2006285948)
   Paleta tomada del robot DSC: hollín, blanco, lima de la pantalla del pecho,
   y el rojo/cian del desdoble anaglifo (solo en el nombre). */

:root {
  --bg: #0f0f0f;
  --surface: #1b1b1b;
  --surface-2: #262626;
  --ink: #ffffff;
  --muted: #a6a6a6;
  --accent: #dafa9c;
  --accent-ink: #0f0f0f;
  --paper: #ffffff;
  --paper-2: #f0f0ec;
  --paper-ink: #0f0f0f;
  --paper-muted: #4d4d4d;
  --red: #ff3b3b;
  --red-ink: #ff1f1f;
  /* Rojo del logo original (DSC en «DSCONSOLADOS»). */
  --brand-red: #d4282f;
  --cyan: #00ffff;
  --good: #1f7a3a;
  --bad: #b3261e;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-monument: clamp(2.5rem, 14.2vw, 15rem);
  --hero-sky: #d9dce6;

  --margin: clamp(16px, 2.2vw, 32px);
  --gap-section: clamp(96px, 12vw, 200px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text), system-ui, sans-serif;
  font-size: var(--step-body);
  line-height: 1.5;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}
ul[role='list'],
ol[role='list'] {
  list-style: none;
  padding: 0;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.on-paper :focus-visible,
.on-lime :focus-visible {
  outline-color: var(--paper-ink);
}
::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

.icon {
  flex: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: var(--margin);
  top: -100px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 12px 16px;
  font-weight: 500;
}
.skip:focus {
  top: 12px;
}

.display {
  font-family: var(--font-display), system-ui, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1;
}

.wrap {
  padding-inline: var(--margin);
}

/* ---------------------------------------------------------------- botones */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font: 500 var(--step-body) / 1.2 var(--font-text), sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms var(--ease-out),
    background-color 160ms;
}
.btn:hover {
  background: #e8ffbc;
}
.btn:active {
  transform: scale(0.97);
}
.btn .icon {
  transition: transform 200ms var(--ease-out);
}
.btn:hover .icon {
  transform: translateX(4px);
}
.btn--ghost {
  background: var(--surface-2);
  color: var(--ink);
}
.btn--ghost:hover {
  background: #333;
}
.btn--ink {
  background: var(--paper-ink);
  color: var(--paper);
}
.btn--ink:hover {
  background: #2b2b2b;
}

.link {
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  transition: color 160ms;
}
.link:hover {
  color: var(--accent);
}
.on-paper .link:hover,
.on-lime .link:hover {
  color: inherit;
  text-decoration-thickness: 0.16em;
}

/* --------------------------------------------------------------- cabecera */

.bar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--margin);
}
.bar--solid {
  position: sticky;
  top: 0;
  background: var(--bg);
}
.monogram {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--step-lead);
  text-decoration: none;
}
.bar__nav {
  display: none;
}
.bar__nav ul {
  display: flex;
  gap: clamp(20px, 3vw, 48px);
}
.bar__nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: var(--step-small);
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms;
}
.bar__nav a:hover,
.bar__nav a[aria-current='page'] {
  color: var(--accent);
}
.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: inherit;
  font: 500 var(--step-body) / 1 var(--font-text), sans-serif;
  cursor: pointer;
}
@media (min-width: 900px) {
  .bar__nav {
    display: block;
  }
  .menu-btn {
    display: none;
  }
}

.menu {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 18px var(--margin) 32px;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
}
.menu::backdrop {
  background: rgb(0 0 0 / 0.6);
}
.menu[open] {
  display: flex;
  flex-direction: column;
  animation: menu-in 320ms var(--ease-out);
}
.menu__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.menu ul {
  margin-top: auto;
  display: grid;
  gap: 4px;
}
.menu ul a {
  display: block;
  padding: 6px 0;
  font-size: clamp(2.25rem, 11vw, 4rem);
  text-decoration: none;
}
.menu form {
  margin-top: 32px;
}
@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

/* ---------------------------------------------------------------- nombre */

/* Letras planas: sin desdoble ni efecto 3D (petición del equipo). */
.ana {
  display: inline-block;
}
/* «DSC» en rojo, como en el logo de siempre. */
.dsc {
  color: var(--brand-red);
}

/* ------------------------------------------------------------------- hero */

/* Cabecera a sangre: la ilustración del robot DSC ocupa toda la portada (barra
   incluida) y el nombre, el lema y el buscador van encima, en las zonas de cielo
   y de suelo donde no hay personaje. */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--hero-sky, #d9dce6);
  color: var(--paper-ink);
  --hero-top: 150px;
  --hero-w: calc(100vw - 2 * var(--margin));
}
/* La ilustración se ve entera, bajo el título, y se funde con el color de su cielo. */
.hero__art {
  position: absolute;
  inset: var(--hero-top) 0 0 0;
  z-index: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 0;
}
.hero__art picture {
  display: contents;
}
.hero__art img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%); /* taste-skill-ignore: máscara que funde la ilustración con su cielo, no es un relleno */
  mask-image: linear-gradient(to bottom, transparent 0, #000 14%); /* taste-skill-ignore */
}
@media (min-width: 700px) {
  .hero {
    --hero-top: 200px;
  }
}
@media (min-width: 900px) {
  .hero {
    --hero-top: 290px;
  }
}
@media (min-width: 600px) {
  .hero__art img {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%), /* taste-skill-ignore */
      linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%); /* taste-skill-ignore */
    mask-image: linear-gradient(to bottom, transparent 0, #000 14%), /* taste-skill-ignore */
      linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%); /* taste-skill-ignore */
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  min-height: 100svh;
  padding: 84px var(--margin) 24px;
}
/* Título y lema, juntos y enteros, en una sola línea cada uno. */
.monument {
  font-size: min(calc(var(--hero-w) / 11), 10rem);
  letter-spacing: -0.03em;
  line-height: 0.9;
  white-space: nowrap;
  margin-inline: -0.02em;
}
.hero__tagline {
  margin-top: 0.6em;
  font-size: max(13px, min(calc(var(--hero-w) / 38), 2.25rem));
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
}
.hero__foot {
  grid-row: 4;
}
@media (min-width: 900px) {
  .hero__inner {
    padding: 96px var(--margin) 40px;
  }
  .hero__foot {
    justify-self: end;
    width: min(100%, 560px);
  }
}

/* Barra sobre la portada de papel */
.bar--paper {
  color: var(--paper-ink);
}
.bar--paper .bar__nav a:hover {
  color: var(--paper-ink);
  text-decoration: underline;
  text-decoration-thickness: 0.12em;
}
.bar--paper :focus-visible {
  outline-color: var(--paper-ink);
}

/* Buscador de portada */
.hsearch {
  position: relative;
  z-index: 5;
}
.hsearch__form {
  display: flex;
  gap: 8px;
}
.hsearch__form input {
  flex: 1;
  min-width: 0;
  min-height: 64px;
  padding: 14px 20px;
  border: 0;
  border-radius: 0;
  background: var(--paper);
  color: var(--paper-ink);
  font: 500 var(--step-lead) / 1.2 var(--font-text), sans-serif;
}
@media (max-width: 599px) {
  .hsearch__form input {
    font-size: var(--step-body);
  }
}
.hsearch__form input::placeholder {
  color: #5c5c5c;
}
.hsearch__form input:focus-visible {
  outline: 3px solid var(--paper-ink);
  outline-offset: 0;
}
.hsearch__form .btn {
  min-height: 64px;
  padding-inline: 24px;
}
.hsearch__form .btn span {
  display: none;
}
@media (min-width: 600px) {
  .hsearch__form .btn span {
    display: inline;
  }
}
.hsearch__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 6px);
  max-height: min(70svh, 560px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 8px 0;
  background: var(--paper);
  color: var(--paper-ink);
  box-shadow: 0 18px 48px rgb(0 0 0 / 0.22); /* taste-skill-ignore: panel flotante de resultados */
}
.hsearch__panel li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.hsearch__panel li a {
  flex: 1;
  min-width: 0;
  padding: 12px 20px;
  font-weight: 500;
  text-decoration: none;
}
.hsearch__panel li a:hover,
.hsearch__panel li a:focus-visible {
  background: var(--paper-2);
  outline-offset: -3px;
}
.hsearch__panel small {
  padding-right: 20px;
  color: var(--paper-muted);
  font-size: var(--step-small);
  white-space: nowrap;
}
.hsearch__empty {
  padding: 12px 20px;
  color: var(--paper-muted);
}
.hsearch__all {
  display: block;
  margin-top: 4px;
  padding: 14px 20px;
  background: var(--paper-2);
  font-weight: 500;
}

/* ---------------------------------------------------------- nota (chapa) */

.score {
  display: inline-grid;
  place-items: center;
  min-width: 1.6em;
  height: 1.6em;
  padding: 0 0.2em;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-display), sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.on-paper .score {
  background: var(--paper-ink);
  color: var(--paper);
}
.score--top {
  background: var(--accent);
  color: var(--accent-ink);
}

/* ------------------------------------------------------------- secciones */

.section {
  padding-block: var(--gap-section);
}
.section__head {
  font-size: clamp(1.75rem, 1rem + 3.6vw, 4rem);
  overflow-wrap: anywhere;
  letter-spacing: -0.035em;
  line-height: 1;
  max-width: 16ch;
}
.on-paper {
  background: var(--paper);
  color: var(--paper-ink);
}
.on-paper-2 {
  background: var(--paper-2);
  color: var(--paper-ink);
}
.on-lime {
  background: var(--accent);
  color: var(--accent-ink);
}
.on-surface {
  background: var(--surface);
}

/* Último análisis: sección propia */
.feature {
  padding-block: clamp(72px, 9vw, 140px);
}
.feature .section__head {
  margin-bottom: clamp(28px, 4vw, 56px);
}
.feature__grid {
  display: grid;
  gap: 32px;
}
.feature__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface);
}
.feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}
.feature__media:hover img {
  transform: scale(1.03);
}
.feature__body {
  display: grid;
  gap: 24px;
  align-content: start;
}
.feature__title {
  font-size: clamp(1.875rem, 1rem + 2.6vw, 3.5rem);
  text-transform: none;
  letter-spacing: -0.035em;
  line-height: 1;
}
.feature__title a {
  text-decoration: none;
}
.feature__title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
}
.feature .verdict .score {
  font-size: clamp(3rem, 1.6rem + 4vw, 5.5rem);
}
.feature__excerpt {
  font-size: var(--step-lead);
  line-height: 1.35;
  max-width: 40ch;
}
.feature__pros {
  padding: 20px 22px;
  background: var(--surface);
}
.feature__pros h4 {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: var(--step-body);
  font-weight: 500;
}
.feature__pros ul {
  display: grid;
  gap: 8px;
  padding-left: 1.1em;
}
@media (min-width: 900px) {
  .feature__grid {
    grid-template-columns: repeat(12, 1fr);
    column-gap: 24px;
    align-items: start;
  }
  .feature__media {
    grid-column: 1 / span 7;
    aspect-ratio: 4 / 3;
  }
  .feature__body {
    grid-column: 8 / -1;
  }
}

/* Últimos análisis: cuadrícula de 4 y lista hasta 10 */
.on-paper-2 .score {
  background: var(--paper-ink);
  color: var(--paper);
}
.on-paper-2 .score--top {
  background: var(--accent);
  color: var(--accent-ink);
}
.grid4 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 16px;
}
.grid4__card {
  display: grid;
  gap: 10px;
  text-decoration: none;
}
.grid4__img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper);
}
.grid4__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}
.grid4__img .score {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: var(--step-lead);
}
.grid4__card:hover img {
  transform: scale(1.04);
}
.grid4__card:hover h3 {
  text-decoration: underline;
}
.grid4 h3 {
  font-size: var(--step-body);
  font-weight: 500;
  line-height: 1.25;
}
.grid4 small {
  color: var(--paper-muted);
  font-size: var(--step-small);
}
@media (min-width: 1000px) {
  .grid4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }
}
.scores {
  display: grid;
  margin-top: clamp(40px, 5vw, 64px);
  padding: 0;
}
.scores a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 16px;
  padding: 12px 0;
  text-decoration: none;
}
.scores li:nth-child(odd) a {
  background: transparent;
}
.scores__title {
  font-size: var(--step-lead);
  font-weight: 500;
  line-height: 1.2;
}
.scores a:hover .scores__title {
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
}
.scores__meta {
  grid-column: 1;
  grid-row: 2;
  color: var(--paper-muted);
  font-size: var(--step-small);
}
.scores .score {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: var(--step-lead);
}
@media (min-width: 900px) {
  .scores {
    grid-template-columns: 1fr 1fr;
    column-gap: 64px;
  }
  .scores a {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 24px;
  }
  .scores__meta {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }
  .scores .score {
    grid-column: 3;
    grid-row: 1;
  }
}
.grid4-foot {
  margin-top: 40px;
}

/* Actualidad: estilo blog con chips y paginación */
.chiprow {
  margin: clamp(20px, 3vw, 32px) 0 clamp(32px, 4vw, 48px);
}
.chiprow ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  background: var(--paper-2);
  color: var(--paper-ink);
  font-weight: 500;
  font-size: var(--step-small);
  text-decoration: none;
  transition:
    background-color 160ms,
    color 160ms,
    transform 160ms var(--ease-out);
}
.chip-link:hover {
  background: #e2e2dc;
}
.chip-link:active {
  transform: scale(0.96);
}
.chip-link.is-on {
  background: var(--paper-ink);
  color: var(--paper);
}
.cat-count {
  margin-top: 12px;
  color: var(--paper-muted);
}
.blog {
  display: grid;
  gap: clamp(36px, 4vw, 56px);
}
.post {
  display: grid;
  gap: 16px;
}
.post__img {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper-2);
}
.post__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}
.post:hover .post__img img {
  transform: scale(1.03);
}
.post__body {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}
.post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: var(--paper-muted);
  font-size: var(--step-small);
}
.post__section {
  color: var(--paper-ink);
  font-weight: 500;
}
.post h3 {
  font-size: var(--step-lead);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.post h3 a {
  text-decoration: none;
}
.post h3 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.07em;
}
.post__excerpt {
  max-width: 62ch;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}
.post__by {
  color: var(--paper-muted);
  font-size: var(--step-small);
}
@media (min-width: 760px) {
  .post {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 32px;
    align-items: start;
  }
}
.ad {
  display: grid;
  place-items: center;
  margin: 48px 0 8px;
  min-height: 100px;
  background: var(--paper-2);
  color: var(--paper-muted);
  font-size: var(--step-small);
}
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
}
.pager__nums {
  display: flex;
  gap: 6px;
}
.pager__n {
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  min-height: 48px;
  background: var(--paper-2);
  color: var(--paper-ink);
  font-weight: 500;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
a.pager__n {
  padding-inline: 10px;
}
.pager__gap {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  color: var(--paper-muted);
}
a.pager__n:hover {
  background: #e2e2dc;
}
.pager__n.is-on {
  background: var(--paper-ink);
  color: var(--paper);
}
.on-paper .btn--ghost {
  background: var(--paper-2);
  color: var(--paper-ink);
}
.on-paper .btn:not(.btn--ghost):not(.btn--ink) {
  background: var(--paper-ink);
  color: var(--paper);
}

/* Colaboraciones: filas a tamaño de cartel */
.rows__label {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
}
.rows__label .icon {
  width: 0.8em;
  height: 0.8em;
}
.rows a,
.rows p {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  min-height: clamp(84px, 10.4vw, 150px);
  padding: 0 var(--margin) clamp(14px, 1.6vw, 24px);
  font-size: clamp(1.75rem, 6vw, 5.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.rows > :nth-child(odd) {
  background: var(--surface);
}
.rows > :nth-child(even) {
  background: var(--surface-2);
}
.rows a {
  transition:
    background-color 200ms,
    color 200ms;
}
.rows a:hover {
  color: var(--accent);
}
.rows a .icon {
  width: 0.6em;
  height: 0.6em;
  margin-bottom: 0.08em;
  transition: transform 240ms var(--ease-out);
}
.rows a:hover .icon {
  transform: translate(4px, -4px);
}
.rows .rows__hello {
  background: var(--accent);
  color: var(--accent-ink);
}
.rows .rows__hello:hover {
  color: var(--accent-ink);
}
.round {
  display: inline-grid;
  place-items: center;
  width: 0.9em;
  height: 0.9em;
  flex: none;
  border-radius: 50%;
  background: var(--accent-ink);
  color: var(--accent);
  transition: transform 240ms var(--ease-out);
}
.rows__hello:hover .round {
  transform: rotate(-45deg);
}
.round .icon {
  width: 0.5em !important;
  height: 0.5em !important;
}

/* ------------------------------------------------------------------- pie */

.page {
  position: relative;
  z-index: 1;
  background: var(--bg);
}
.footer {
  position: sticky;
  bottom: 0;
  z-index: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  padding: 40px var(--margin) 20px;
  background: var(--paper);
  color: var(--paper-ink);
}
.footer__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 24px;
  font-size: var(--step-body);
}
.footer__cols h2 {
  font-size: inherit;
  font-weight: 500;
  margin-bottom: 8px;
}
.footer__cols li a {
  display: inline-block;
  padding: 3px 0;
  color: var(--paper-muted);
  text-decoration: none;
}
.footer__cols li a:hover {
  color: var(--paper-ink);
  text-decoration: underline;
}
.footer__mark {
  align-self: end;
  margin-top: 20svh;
}
.footer__mark svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 20px;
  color: var(--paper-muted);
  font-size: var(--step-small);
}
.footer__legal a {
  color: inherit;
}
@media (min-width: 900px) {
  .footer__cols {
    grid-template-columns: repeat(12, 1fr);
  }
  .footer__cols > div {
    grid-column: span 3;
  }
  .footer__mark {
    margin-top: 0;
  }
}

/* -------------------------------------------------------------- artículo */

.art-hero {
  position: relative;
  padding: 0 var(--margin);
}
.art-hero__media {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 78svh;
  width: 100%;
  overflow: hidden;
  background: var(--surface);
}
.art-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.art-head {
  display: grid;
  gap: 24px;
  padding: 40px var(--margin) 0;
}
.art-head h1 {
  font-size: clamp(1.875rem, 1rem + 3.6vw, 4.75rem);
  text-transform: none;
  letter-spacing: -0.035em;
  line-height: 1;
  max-width: 22ch;
  text-wrap: balance;
}
.art-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  color: var(--muted);
  font-size: var(--step-small);
}
.art-head__meta strong {
  color: var(--ink);
  font-weight: 500;
}
.art-head__lede {
  max-width: 44ch;
  font-size: var(--step-lead);
  line-height: 1.35;
}
.verdict {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
}
.verdict .score {
  font-size: clamp(3.5rem, 2rem + 6vw, 7.5rem);
}
.verdict p {
  color: var(--muted);
  font-size: var(--step-small);
  max-width: 22ch;
}
.verdict strong {
  display: block;
  color: var(--ink);
  font-size: var(--step-body);
  font-weight: 500;
}
@media (min-width: 900px) {
  .art-head {
    grid-template-columns: 1fr auto;
    align-items: end;
    column-gap: 64px;
  }
  .art-head h1,
  .art-head__meta,
  .art-head__lede {
    grid-column: 1;
  }
  .art-head .verdict {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: start;
  }
}

.prose {
  overflow-wrap: anywhere;
  max-width: 68ch;
  margin: clamp(56px, 7vw, 112px) auto 0;
  padding-inline: var(--margin);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.62;
}
.prose > * + * {
  margin-top: 1.1em;
}
.prose h2,
.prose h3,
.prose h4 {
  margin-top: 2em;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.prose h2 {
  font-size: 1.6em;
}
.prose h3 {
  font-size: 1.3em;
}
.prose a {
  color: var(--accent);
}
.prose a:hover {
  text-decoration-thickness: 0.16em;
}
.prose strong {
  font-weight: 500;
  color: #fff;
}
.prose figure {
  margin-block: 2em;
}
.prose figure img {
  width: 100%;
}
.prose figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: var(--step-small);
}
.prose blockquote {
  padding-left: 1em;
  font-size: 1.2em;
  line-height: 1.4;
  background: none;
  border-left: 4px solid var(--accent);
}
.prose ul,
.prose ol {
  padding-left: 1.2em;
}
.prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9em;
}
.prose td,
.prose th {
  padding: 8px;
  border-bottom: 1px solid var(--surface-2);
  text-align: left;
}
.yt__link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  color: #fff;
  text-decoration: none;
}
.yt__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition:
    opacity 200ms,
    transform 600ms var(--ease-out);
}
.yt__link:hover img {
  opacity: 1;
  transform: scale(1.03);
}
.yt__label {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 12px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: var(--step-small);
  font-weight: 500;
}
.prose .yt__link {
  color: #fff;
}
.yt iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.balance {
  display: grid;
  gap: 2px;
  max-width: 1100px;
  margin: clamp(64px, 8vw, 120px) auto 0;
  padding-inline: var(--margin);
}
.balance > div {
  padding: clamp(24px, 3vw, 40px);
}
.balance h2 {
  font-size: var(--step-lead);
  font-weight: 500;
  margin-bottom: 16px;
}
.balance ul {
  display: grid;
  gap: 12px;
  padding-left: 1.1em;
}
.balance__pro {
  background: var(--accent);
  color: var(--accent-ink);
}
.balance__con {
  background: var(--surface-2);
}
@media (min-width: 760px) {
  .balance {
    grid-template-columns: 1fr 1fr;
  }
}

.facts {
  max-width: 1100px;
  margin: 48px auto 0;
  padding-inline: var(--margin);
}
.facts table {
  width: 100%;
  border-collapse: collapse;
}
.facts caption {
  text-align: left;
  font-size: var(--step-lead);
  font-weight: 500;
  margin-bottom: 12px;
}
.facts th,
.facts td {
  padding: 12px 0;
  border-bottom: 1px solid var(--surface-2);
  text-align: left;
  vertical-align: top;
}
.facts th {
  width: 34%;
  color: var(--muted);
  font-weight: 400;
}
.disclosure {
  max-width: 1100px;
  margin: 24px auto 0;
  padding-inline: var(--margin);
  color: var(--muted);
  font-size: var(--step-small);
}

.more {
  margin-top: var(--gap-section);
}

/* Listados */
.listing {
  display: grid;
  gap: 40px 24px;
}
.listing a {
  display: grid;
  gap: 12px;
  text-decoration: none;
}
.listing__img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface);
}
.listing__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}
.listing a:hover img {
  transform: scale(1.04);
}
.listing a:hover h2 {
  text-decoration: underline;
}
.listing h2 {
  font-size: var(--step-body);
  font-weight: 500;
  line-height: 1.3;
}
.listing small {
  color: var(--muted);
  font-size: var(--step-small);
}
.listing .score {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: var(--step-lead);
}
@media (min-width: 640px) {
  .listing {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .listing {
    grid-template-columns: repeat(3, 1fr);
  }
  .listing > li:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }
  .listing > li:first-child h2 {
    font-size: var(--step-lead);
  }
}
.page-head {
  display: grid;
  gap: 16px;
  padding: clamp(48px, 8vw, 120px) var(--margin) clamp(40px, 5vw, 72px);
}
.page-head h1 {
  /* «DESCONSOLADOS» son 13 letras anchas: el tamaño se calcula para que quepa en un móvil. */
  font-size: clamp(1.75rem, 7.2vw, 7rem);
  overflow-wrap: anywhere;
  letter-spacing: -0.045em;
  line-height: 0.9;
}
.page-head p {
  max-width: 52ch;
  color: var(--muted);
}
.pager {
  display: flex;
  gap: 12px;
  margin-top: 64px;
}
.searchbox {
  display: flex;
  gap: 8px;
  max-width: 640px;
}
.searchbox input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 12px 16px;
  border: 0;
  border-radius: 0;
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
}
.menu .searchbox input {
  background: rgb(15 15 15 / 0.1);
  color: var(--accent-ink);
}
.menu .searchbox input::placeholder {
  color: #3a3a3a;
}

/* ----------------------------------------------------------- consentimiento */

.consent {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100svh - 32px);
  padding: clamp(24px, 4vw, 40px);
  border: 0;
  background: var(--paper);
  color: var(--paper-ink);
  box-shadow: 0 24px 80px rgb(0 0 0 / 0.5); /* taste-skill-ignore: diálogo modal, flota de verdad */
}
.consent::backdrop {
  background: rgb(0 0 0 / 0.72);
}
.consent h2 {
  font-size: var(--step-lead);
  line-height: 1.1;
  margin-bottom: 12px;
}
.consent p {
  color: var(--paper-muted);
}
.consent p a {
  color: var(--paper-ink);
}
.consent__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 24px;
}
.consent__actions .btn {
  justify-content: center;
}

/* ---------------------------------------------------------------- motion */

@media (prefers-reduced-motion: no-preference) {
  .rise {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 700ms var(--ease-out),
      transform 700ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 75ms);
  }
  .rise.is-in {
    opacity: 1;
    transform: none;
  }
  .shutter {
    clip-path: inset(0 0 100% 0);
    animation: shutter 1.1s var(--ease-out) 0.25s forwards;
  }
  .shutter img {
    transform: scale(1.12);
    animation: settle 1.6s var(--ease-out) 0.25s forwards;
  }
  .drift img {
    animation: drift 24s ease-in-out infinite alternate;
  }
}
/* Sin JavaScript nada queda oculto. */
.no-js .rise {
  opacity: 1;
  transform: none;
}
@keyframes shutter {
  to {
    clip-path: inset(0 0 0 0);
  }
}
@keyframes settle {
  to {
    transform: scale(1);
  }
}
@keyframes drift {
  from {
    transform: scale(1.02) translate(0, 0);
  }
  to {
    transform: scale(1.1) translate(-2%, -1%);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Resultados de búsqueda: una lista a un solo tamaño */
.results {
  display: grid;
  margin-top: 24px;
  max-width: 900px;
}
.results li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 10px 0;
}
.results a {
  font-size: var(--step-lead);
  font-weight: 500;
  text-decoration: none;
}
.results a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.results small {
  color: var(--muted);
  font-size: var(--step-small);
  white-space: nowrap;
}

/* Web Interface Guidelines: toque, modales y titulares */
a,
button,
input,
label,
summary {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.menu,
.consent {
  overscroll-behavior: contain;
}
h1,
h2,
h3 {
  text-wrap: balance;
  overflow-wrap: break-word;
}
.bar {
  padding-left: max(var(--margin), env(safe-area-inset-left));
  padding-right: max(var(--margin), env(safe-area-inset-right));
}

/* Móviles muy estrechos (320 px): nada se sale ni empuja la página. */
.footer__cols > div,
.page-head > *,
.searchbox,
.consent {
  min-width: 0;
}
.footer__cols li a {
  overflow-wrap: anywhere;
}
.pager__nums {
  flex-wrap: wrap;
}
@media (max-width: 359px) {
  .hero__tagline {
    white-space: normal;
  }
  .pager {
    gap: 8px;
  }
}

/* Variante solo de escritorio: la cabecera mantiene la proporción de un monitor aunque la pantalla sea vertical. */

/* Variante solo de escritorio: el sitio ocupa como mucho 1440 px, centrado, sobre un fondo
   oscuro distinto del negro y del papel de las secciones, para que el borde se distinga. */
.desktop-only {
  --stage: #2a2f3a;
  --hero-w: calc(min(100vw, 1440px) - 2 * var(--margin));
  background: var(--stage);
}
.desktop-only body {
  background: var(--stage);
}
.desktop-only .page,
.desktop-only .footer {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
}
.desktop-only .hero {
  --hero-w: calc(min(100vw, 1440px) - 2 * var(--margin));
}
.desktop-only .hero,
.desktop-only .hero__inner {
  min-height: min(100svh, max(560px, 56.25vw), 810px);
}

/* ---- Tema WordPress: pequenos anadidos ---- */
.footer__cols li button.linklike{font:inherit;color:inherit;text-decoration:none;cursor:pointer;background:none;border:0;padding:0;display:inline-block}
.footer__cols li button.linklike:hover{text-decoration:underline;text-underline-offset:.18em}
.hsearch__panel[hidden]{display:none}
