/* ==========================================================================
   The Sibarist — Home
   Propuesta de rediseño editorial y minimalista. CSS sin dependencias.
   ========================================================================== */

/* ---------- Tipografías (autoalojadas, OFL) ---------- */
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #f3eee6;
  --paper-2: #ebe4d9;
  --paper-3: #e0d7c9;
  --ink: #161412;
  --ink-2: #48433d;
  --ink-3: #857d72;
  --rule: rgba(22, 20, 18, 0.16);
  --night: #1a1613;
  --cream: #efe8dc;
  --cream-2: rgba(239, 232, 220, 0.7);
  --cream-rule: rgba(239, 232, 220, 0.2);
  --accent: #9a4b2e;
  --accent-soft: #c98a68;

  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --pad: clamp(16px, 4vw, 56px);
  --gap: clamp(12px, 1.6vw, 24px);
  --max: 1680px;
  --header-h: 60px;
  --brand-w: 128px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.7, 0, 0.2, 1);
}

@media (min-width: 1024px) {
  :root {
    --header-h: 72px;
    --brand-w: 176px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  /* Con el desplazamiento con inercia, JS mueve la página fotograma a fotograma */
  html.has-smooth {
    scroll-behavior: auto;
  }
}

html.menu-open {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

h1,
h2,
h3,
p,
figure,
blockquote,
ol,
ul,
dl,
dd,
address {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 400;
}

ol,
ul {
  list-style: none;
  padding: 0;
}

em {
  font-style: italic;
}

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

:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease-out);
}

.skip-link:focus {
  transform: none;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- Tipografía editorial ---------- */
.eyebrow {
  font-size: 11px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- Enlaces ---------- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
}

.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.8s var(--ease-out);
}

.link-arrow:hover {
  animation: wipe 1.3s var(--ease-in-out);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

@keyframes wipe {
  0% { background-size: 100% 1px; background-position: 100% 100%; }
  50% { background-size: 0 1px; background-position: 100% 100%; }
  50.1% { background-size: 0 1px; background-position: 0 100%; }
  100% { background-size: 100% 1px; background-position: 0 100%; }
}

/* ---------- Marcos de imagen ---------- */
.frame {
  position: relative;
  overflow: hidden;
  background: var(--paper-3);
}

.frame > img,
.frame > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Cabecera + cabecera-logotipo (nameplate)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--header-h);
  color: var(--cream);
  transition: color 0.5s var(--ease-out), transform 0.7s var(--ease-out);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out), background-color 0.5s var(--ease-out), border-color 0.5s;
}

.site-header.is-solid {
  color: var(--ink);
}

.site-header.is-solid::before {
  opacity: 1;
}

.site-header.is-solid.is-dark {
  color: var(--cream);
}

.site-header.is-solid.is-dark::before {
  background: var(--night);
  border-color: var(--cream-rule);
}

.site-header.is-hidden {
  transform: translateY(-101%);
}

.menu-open .site-header,
.menu-open .site-header.is-solid.is-dark {
  color: var(--ink);
  transform: none;
}

.menu-open .site-header::before {
  opacity: 0;
}

.site-header__inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-nav {
  display: none;
  align-items: center;
  gap: clamp(18px, 2.1vw, 34px);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav a,
.lang a {
  position: relative;
  padding: 6px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-header__right {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.1vw, 34px);
  margin-left: auto;
}

.lang {
  display: none;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.lang a:not([aria-current]) {
  opacity: 0.5;
  transition: opacity 0.3s;
}

.lang a:not([aria-current]):hover {
  opacity: 1;
}

@media (min-width: 1024px) {
  .site-nav,
  .lang {
    display: flex;
  }
}

.index-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.index-toggle__icon {
  position: relative;
  display: block;
  width: 22px;
  height: 10px;
}

.index-toggle__icon i {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  transition: transform 0.5s var(--ease-out), top 0.5s var(--ease-out);
}

.index-toggle__icon i:first-child { top: 2px; }
.index-toggle__icon i:last-child { top: 8px; }

.index-toggle[aria-expanded="true"] .index-toggle__icon i:first-child {
  top: 5px;
  transform: rotate(45deg);
}

.index-toggle[aria-expanded="true"] .index-toggle__icon i:last-child {
  top: 5px;
  transform: rotate(-45deg);
}

/* Logotipo: en reposo vive en el centro de la cabecera.
   En la portada, JS lo escala a todo el ancho y lo encoge con el scroll. */
.brand {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: var(--brand-w);
  transform: translate(-50%, -50%);
  transform-origin: 50% 50%;
}

.brand__logo {
  width: 100%;
  height: auto;
  fill: currentColor;
  overflow: hidden;
}

.brand__logo path {
  transform-box: fill-box;
  transition: transform 1.25s var(--ease-out);
  transition-delay: calc(0.3s + var(--i) * 55ms);
}

.is-entering .brand__logo path {
  transform: translateY(118%);
}

.site-header__inner > :not(.brand) {
  transition: opacity 1s var(--ease-out) 0.9s;
}

.is-entering .site-header__inner > :not(.brand) {
  opacity: 0;
}

/* ==========================================================================
   Menú a pantalla completa
   ========================================================================== */
.index-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  overflow-y: auto;
  background: var(--paper);
  color: var(--ink);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.9s var(--ease-in-out), visibility 0s linear 0.9s;
}

.index-menu.is-open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path 0.9s var(--ease-in-out), visibility 0s;
}

.index-menu__inner {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 28px;
  padding-top: calc(var(--header-h) + 28px);
  padding-bottom: 28px;
}

.index-menu__eyebrow {
  color: var(--ink-3);
}

.index-menu__list {
  align-self: center;
}

.index-menu__list li {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.6s var(--ease-out), transform 0.9s var(--ease-out);
}

.index-menu.is-open .index-menu__list li {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.35s + var(--i, 0) * 45ms);
}

.index-menu__list a {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 1px 0;
  font-family: var(--serif);
  font-size: min(clamp(2.4rem, 1.4rem + 4.4vw, 5.6rem), 7.2vh);
  line-height: 1.02;
  letter-spacing: -0.015em;
  transition: opacity 0.4s var(--ease-out), transform 0.6s var(--ease-out);
}

.index-menu__list a span {
  flex: none;
  width: 28px;
  padding-top: 0.6em;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1;
  color: var(--ink-3);
}

.index-menu__list:hover a {
  opacity: 0.32;
}

.index-menu__list a:hover,
.index-menu__list a:focus-visible {
  opacity: 1;
  transform: translateX(12px);
}

.index-menu__preview {
  display: none;
}

.index-menu__foot {
  display: grid;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
}

.index-menu__foot .eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-3);
}

.lang--menu {
  display: flex;
  align-items: end;
  gap: 16px;
}

@media (min-width: 640px) {
  .index-menu__foot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .index-menu__inner {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
  }

  .index-menu__eyebrow,
  .index-menu__foot {
    grid-column: 1 / -1;
  }

  .index-menu__list {
    grid-column: 1 / span 7;
  }

  .index-menu__preview {
    position: relative;
    display: block;
    grid-column: 9 / span 4;
    align-self: center;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--paper-3);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease-out) 0.5s, transform 1.2s var(--ease-out) 0.5s;
  }

  .index-menu.is-open .index-menu__preview {
    opacity: 1;
    transform: none;
  }

  .index-menu__preview img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s var(--ease-out), transform 1.4s var(--ease-out);
  }

  .index-menu__preview img.is-leaving {
    opacity: 0;
    transform: scale(1.06);
  }

  .index-menu__foot {
    grid-template-columns: repeat(4, auto);
    justify-content: space-between;
  }
}

/* ==========================================================================
   01 · Portada
   ========================================================================== */
.cover {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  overflow: clip; /* recorta igual, pero nunca se desplaza al enfocar algo de dentro */
  isolation: isolate;
  color: var(--cream);
  background: var(--night);
}

.cover__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  transform-origin: 50% 60%;
  transition: transform 2.8s var(--ease-out), filter 2.8s var(--ease-out);
}

.is-entering .cover__media {
  transform: scale(1.08);
  filter: brightness(0.55);
}

/* Capas de imagen. La visible (.is-active) queda debajo y opaca; la entrante
   (.is-incoming, z-index en línea) se funde por encima y se asienta despacio,
   así nunca baja el brillo. Las ocultas esperan sin transición, algo ampliadas.
   Las duraciones coinciden con FADE_MS y OUT_MS de main.js. */
.cover__slide {
  position: absolute;
  inset: 0;
  overflow: hidden; /* el vídeo ampliado no crea desbordamiento desplazable en la portada */
  opacity: 0;
}

.cover__slide.is-active {
  z-index: 1;
  opacity: 1;
}

.cover__slide.is-incoming {
  opacity: 1;
  transition: opacity 2.6s cubic-bezier(0.45, 0, 0.55, 1);
}

/* Capa a medio fundir que se retira por encima (saltos rápidos) */
.cover__slide.is-outgoing {
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.45, 0, 0.55, 1);
}

.cover__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.07);
}

.cover__slide.is-active .cover__video,
.cover__slide.is-incoming .cover__video,
.cover__slide.is-outgoing .cover__video {
  transform: none;
  transition: transform 5.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.cover__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(14, 11, 9, 0.55) 0%, rgba(14, 11, 9, 0.16) 24%, rgba(14, 11, 9, 0) 40%),
    linear-gradient(0deg, rgba(14, 11, 9, 0.74) 0%, rgba(14, 11, 9, 0.36) 34%, rgba(14, 11, 9, 0) 64%),
    linear-gradient(90deg, rgba(14, 11, 9, 0.34) 0%, rgba(14, 11, 9, 0) 55%);
}

.cover__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 22px;
  align-items: end;
  padding-bottom: calc(60px + clamp(22px, 4vh, 48px) + env(safe-area-inset-bottom, 0px));
}

.cover__stories {
  display: grid;
}

/* Texto saliente: se apaga en calma (0,7 s) y sus piezas vuelven a
   su sitio ya ocultas. El entrante espera a que el saliente haya desaparecido
   (0,9 s) y acompaña el asentamiento de la imagen: titular, antetítulo,
   entradilla y enlace. Nunca hay dos titulares legibles a la vez. */
.cover__story {
  grid-area: 1 / 1;
  align-self: end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.6, 1), visibility 0s linear 0.7s;
}

.cover__story.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s var(--ease-out), visibility 0s;
}

.cover__story > :not(.cover__title) {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0s linear 0.7s, transform 0s linear 0.7s;
}

.cover__story.is-active > :not(.cover__title) {
  opacity: 1;
  transform: none;
  transition: opacity 1.4s var(--ease-out) 1.6s, transform 1.9s var(--ease-out) 1.6s;
}

.cover__story.is-active > .cover__kicker {
  transition-delay: 1s;
}

.cover__story.is-active > .link-arrow {
  transition-delay: 1.9s;
}

.is-entering .cover__story.is-active > :not(.cover__title) {
  opacity: 0;
  transform: translateY(14px);
}

.cover__kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 18px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cover__kicker span + span {
  color: var(--cream-2);
}

.cover__title {
  max-width: 13.5ch;
  font-family: var(--serif);
  font-size: min(clamp(2.6rem, 1.1rem + 5vw, 6.6rem), 10.5vh);
  line-height: 0.95;
  letter-spacing: -0.016em;
  text-wrap: balance;
}

.cover__dek {
  max-width: 46ch;
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(239, 232, 220, 0.86);
}

.cover__story .link-arrow {
  margin-top: 22px;
}

/* Mayor especificidad que las reglas genéricas de [data-split] */
.js .cover .cover__story .w__i {
  transform: translate3d(0, 110%, 0);
  transition: transform 0s linear 0.7s;
}

.js .cover .cover__story.is-active .w__i {
  transform: none;
  transition: transform 1.9s var(--ease-out);
  transition-delay: calc(0.9s + var(--i) * 70ms);
}

.js.is-entering .cover .cover__story.is-active .w__i {
  transform: translate3d(0, 110%, 0);
}

/* Paginador mínimo, igual en todas las pantallas: una línea de 1px por
   historia (con su progreso) a lo ancho de la retícula y, debajo, contador
   y pausa. 25px + 35px + 12px de aire (más el área segura inferior). */
.cover__foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 25px 35px;
  align-items: center;
  column-gap: 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-2);
}

.cover__segments {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
}

.cover__segments li {
  flex: 1;
}

.cover__segments button {
  display: block;
  width: 100%;
  padding: 12px 0;
}

.cover__segments i {
  position: relative;
  display: block;
  height: 1px;
  overflow: hidden;
  background: var(--cream-rule);
  transition: background-color 0.4s var(--ease-out);
}

.cover__segments button:hover i {
  background: rgba(239, 232, 220, 0.42);
}

.cover__segments i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cream);
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
}

.cover__count {
  font-variant-numeric: tabular-nums;
}

.cover__count-now {
  display: inline-block;
  color: var(--cream);
}

.cover__pause {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  letter-spacing: inherit;
  text-transform: inherit;
  transition: color 0.3s;
}

.cover__pause:hover {
  color: var(--cream);
}

.cover__pause svg {
  width: 14px;
  height: 14px;
}

.cover__foot > * {
  transition: opacity 1s var(--ease-out) 1.2s;
}

.is-entering .cover__foot > * {
  opacity: 0;
}

@media (min-width: 1024px) {
  .cover__content {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
  }

  .cover__stories {
    grid-column: 1 / -1;
  }

  .cover__segments {
    gap: 8px;
  }
}

/* Pantallas bajas (portátiles 1366×657…): se prioriza el titular */
@media (min-width: 1024px) and (max-height: 760px) {
  .cover__dek {
    display: none;
  }
}

/* Escritorio: titular a la izquierda; entradilla y enlace a la derecha,
   alineados con el final del titular */
@media (min-width: 1024px) {
  .cover__story {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
    grid-template-areas:
      "kicker ."
      "title dek"
      "title link";
    column-gap: clamp(40px, 7vw, 140px);
    align-items: end;
  }

  .cover__kicker {
    grid-area: kicker;
  }

  .cover__title {
    grid-area: title;
    max-width: 20ch;
    font-size: min(clamp(2.4rem, 1rem + 3.6vw, 5rem), 8.4vh);
    line-height: 0.98;
  }

  .cover__dek {
    grid-area: dek;
    margin-top: 0;
  }

  .cover__story .link-arrow {
    grid-area: link;
    justify-self: start;
    margin: 20px 0 0.5em;
  }
}

/* Reducción de movimiento: sin barras de progreso; la historia actual se marca entera */
.cover.is-static .cover__segments i::after {
  display: none;
}

.cover.is-static .cover__segments [aria-current] i {
  background: var(--cream);
}

/* ==========================================================================
   Cabeceras de sección: centradas, como la apertura de una revista
   ========================================================================== */
.block {
  position: relative;
  padding-top: clamp(88px, 9vw, 150px);
}

.head {
  display: grid;
  justify-items: center;
  gap: 24px;
  margin-bottom: clamp(44px, 5vw, 84px);
  text-align: center;
}

.head__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink-2);
}

.head__eyebrow::before,
.head .head__eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.head__title {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 1.2rem + 3.6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.head__title em {
  display: block;
}

.head__aside {
  display: grid;
  justify-items: center;
  gap: 26px;
}

.head__text {
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
}

[data-theme="dark"] .head__eyebrow,
[data-theme="dark"] .head__text {
  color: var(--cream-2);
}

/* Antetítulos de fichas */
.panel__kicker,
.news__kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.panel__kicker span + span {
  color: var(--cream-2);
}

.news__kicker span + span {
  color: var(--ink-3);
}

.panel__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding-bottom: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
}

.panel__cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.8s var(--ease-out);
}

a:hover .panel__cta svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Destacados: paneles verticales a sangre que se abren al pasar
   ========================================================================== */
.panels {
  display: flex;
  gap: 3px;
  height: clamp(560px, 86vh, 940px);
  height: clamp(560px, 86svh, 940px);
}

/* Paso del crema al negro: los huecos entre paneles se oscurecen hacia abajo
   y el pie de cada foto se funde con el negro de Selecciones */
@media (min-width: 768px) {
  .panels {
    background: linear-gradient(180deg, var(--paper) 40%, var(--night));
  }
}

.panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  background: var(--night);
  transition: flex-grow 1.6s var(--ease-out);
}

.panel:first-child {
  flex-grow: 1.35;
}

.panel a {
  position: absolute;
  inset: 0;
  display: block;
  color: var(--cream);
}

.panel a::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(26, 22, 19, 0.74) 0%, rgba(26, 22, 19, 0.36) 16%, rgba(26, 22, 19, 0.12) 32%, rgba(26, 22, 19, 0) 48%),
    linear-gradient(180deg, rgba(14, 11, 9, 0.16) 0%, rgba(14, 11, 9, 0) 14%);
  pointer-events: none;
}

.panel a:focus-visible {
  outline: 1px solid var(--cream);
  outline-offset: -10px;
}

.panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  transform: scale(1.1);
  transition: transform 3.2s var(--ease-out);
}

/* Las fotos con parallax van en su propia capa: moverlas no repinta la página */
[data-parallax] {
  will-change: transform;
}

.panel a:hover img {
  transform: scale(1.05);
}

.panel__num {
  position: absolute;
  top: clamp(18px, 2vw, 30px);
  left: clamp(20px, 2.4vw, 40px);
  z-index: 1;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  font-variant-numeric: tabular-nums;
  color: var(--cream-2);
}

.panel__text,
.culture__text {
  text-shadow: 0 1px 28px rgba(14, 11, 9, 0.35);
}

.panel__text {
  position: absolute;
  left: clamp(20px, 2.4vw, 40px);
  right: clamp(20px, 2.4vw, 40px);
  bottom: clamp(24px, 3vw, 48px);
  z-index: 1;
}

.panel__title {
  max-width: 15ch;
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 1.1rem + 1.7vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

@media (hover: hover) and (pointer: fine) and (min-width: 768px) {
  .panels:hover .panel,
  .panels:focus-within .panel {
    flex-grow: 0.8;
  }

  .panels .panel:hover,
  .panels .panel:focus-within {
    flex-grow: 1.8;
  }
}

@media (max-width: 767px) {
  .panels {
    flex-direction: column;
    height: auto;
  }

  .panel,
  .panel:first-child {
    flex: none;
    height: 72svh;
    min-height: 440px;
  }
}

/* ==========================================================================
   Selecciones: índice oscuro a todo el ancho, como Urbanizaciones en Abeto.
   Cada fila lleva número, nombre, categoría y flecha; en escritorio la foto
   de la fila señalada sigue al cursor.
   ========================================================================== */
.selections {
  padding-block: clamp(64px, 7.2vw, 120px);
  background: var(--night);
  color: var(--cream);
}

/* Título a dos tonos */
.selections .head__title em {
  color: var(--cream-2);
}

/* Cabecera alineada a la izquierda */
.head--left {
  justify-items: start;
  margin-bottom: clamp(32px, 4vw, 56px);
  text-align: left;
}

.head--left .head__eyebrow::after {
  content: none;
}

/* Título a la izquierda y entradilla a la derecha, alineados abajo */
.head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px clamp(32px, 6vw, 112px);
}

.head--split .head__text {
  max-width: 40ch;
}

.selections__list {
  border-top: 1px solid var(--cream-rule);
}

.selections__list a {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 76px;
  grid-template-areas:
    "num name thumb"
    "num facts thumb";
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 8px 14px;
  padding: 22px 0;
  border-bottom: 1px solid var(--cream-rule);
  transition: opacity 0.9s var(--ease-out);
}

.selections__num {
  grid-area: num;
  padding-top: 0.55em;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  font-variant-numeric: tabular-nums;
  color: rgba(239, 232, 220, 0.45);
}

.selections__name {
  grid-area: name;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 1.1rem + 2.2vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
  transition: transform 1.2s var(--ease-out);
}

.selections__facts {
  grid-area: facts;
  max-width: 46ch;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--cream-2);
}

.selections__cat {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
}

.selections__thumb {
  grid-area: thumb;
  width: 76px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
}

.selections__go {
  display: none;
}

@media (min-width: 1024px) {
  .selections__list a {
    grid-template-columns: 4rem minmax(0, 2fr) minmax(0, 1fr) 52px;
    grid-template-areas: "num name facts go";
    grid-template-rows: auto;
    align-items: center;
    column-gap: clamp(20px, 2.4vw, 40px);
    padding: clamp(20px, 2.2vw, 34px) 0;
  }

  .selections__num {
    padding-top: 0;
  }

  .selections__thumb {
    display: none;
  }

  .selections__go {
    display: grid;
    grid-area: go;
    place-items: center;
    justify-self: end;
    width: 52px;
    height: 52px;
    border: 1px solid var(--cream-rule);
    border-radius: 50%;
    transition: background-color 0.7s var(--ease-out), border-color 0.7s var(--ease-out), color 0.7s var(--ease-out);
  }

  .selections__go svg {
    width: 16px;
    height: 16px;
    transform: rotate(-45deg);
    transition: transform 0.9s var(--ease-out);
  }
}

/* Foto que sigue al cursor: solo con ratón o trackpad, en escritorio */
.sel-cursor {
  display: none;
}

@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .selections__list:hover a {
    opacity: 0.32;
  }

  .selections__list a:hover,
  .selections__list a:focus-visible {
    opacity: 1;
  }

  .selections__list a:hover .selections__name,
  .selections__list a:focus-visible .selections__name {
    transform: translateX(1.2rem);
  }

  .selections__list a:hover .selections__go,
  .selections__list a:focus-visible .selections__go {
    background-color: var(--cream);
    border-color: var(--cream);
    color: var(--night);
  }

  .selections__list a:hover .selections__go svg,
  .selections__list a:focus-visible .selections__go svg {
    transform: none;
  }

  .sel-cursor {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 50;
    display: block;
    width: clamp(240px, 20vw, 340px);
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: clamp(14px, 1.4vw, 22px);
    background: #241f1b;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    scale: 0.6;
    transition: opacity 0.5s var(--ease-out), scale 0.7s var(--ease-out), visibility 0s linear 0.5s;
  }

  .sel-cursor.is-on {
    opacity: 1;
    visibility: visible;
    scale: 1;
    transition: opacity 0.7s var(--ease-out), scale 0.9s var(--ease-out), visibility 0s;
  }

  .sel-cursor img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.18);
    transition: opacity 0.55s var(--ease-out), transform 1.1s var(--ease-out);
  }

  .sel-cursor img.is-active {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Novedades: galería anclada que avanza en horizontal al bajar
   ========================================================================== */
.news {
  --edge: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
  position: relative;
  padding-block: clamp(80px, 8.5vw, 136px) clamp(56px, 6vw, 96px);
}

.news__intro {
  margin-bottom: clamp(32px, 4vw, 56px);
}

.news__intro .head__title {
  margin-top: 20px;
}

.news__intro .head__text {
  margin-top: 22px;
}

.news__viewport {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.news__viewport::-webkit-scrollbar {
  display: none;
}

.news__track {
  display: flex;
  gap: clamp(16px, 2.4vw, 44px);
  width: max-content;
  padding-inline: var(--pad);
}

.news__card {
  flex: none;
  width: min(76vw, 360px);
  scroll-snap-align: start;
  scroll-margin-left: var(--pad);
}

.news__card a {
  display: block;
}

.news__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-3);
}

.news__media img {
  position: absolute;
  top: 0;
  left: -8%;
  width: 116%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
}

.news__kicker {
  margin-top: 18px;
}

.news__title {
  max-width: 22ch;
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 1rem + 0.9vw, 1.9rem);
  line-height: 1.06;
  text-wrap: balance;
}

.news__card a:hover .news__title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.news__foot {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: clamp(28px, 3vw, 44px);
}

.news__count {
  flex: none;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
}

.news__count span {
  color: var(--ink);
}

.news__bar {
  position: relative;
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.news__bar i {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform-origin: 0 50%;
  transform: scaleX(var(--hs, 0.2));
}

/* Escritorio: la sección se ancla y las tarjetas pasan al bajar */
.has-hscroll .news {
  height: var(--pin-h, auto);
  padding: 0;
}

.has-hscroll .news__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.has-hscroll .news__intro {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin: 0 auto;
  padding-top: calc(var(--header-h) + 4vh);
  pointer-events: none;
}

.has-hscroll .news__intro > * {
  max-width: min(30vw, 520px);
}

.has-hscroll .news__viewport {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: flex-start;
  padding-top: calc(var(--header-h) + 4vh);
  overflow: visible;
  scroll-snap-type: none;
}

.has-hscroll .news__track {
  align-items: flex-start;
  padding-left: calc(var(--edge) + min(36vw, 600px));
  padding-right: var(--edge);
  will-change: transform;
}

.has-hscroll .news__card {
  width: clamp(240px, calc((100svh - 360px) * 0.8), 26vw);
}

.has-hscroll .news__card:nth-child(even) {
  transform: translateY(7vh);
}

.has-hscroll .news__foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(24px, 4.5vh, 52px);
  z-index: 2;
  margin: 0 auto;
}

/* ==========================================================================
   Cultura para este otoño: composición por capas
   ========================================================================== */
.culture {
  padding-bottom: clamp(80px, 8.5vw, 136px);
}

.culture__stage {
  display: grid;
  gap: 40px;
}

.culture__lead a {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  color: var(--cream);
  background: var(--night);
}

.culture__lead a::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(14, 11, 9, 0.66) 0%, rgba(14, 11, 9, 0.24) 32%, rgba(14, 11, 9, 0) 52%),
    linear-gradient(90deg, rgba(14, 11, 9, 0.16) 0%, rgba(14, 11, 9, 0) 45%);
  pointer-events: none;
}

.culture__lead img,
.culture__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform 3.2s var(--ease-out);
}

.culture__lead a:hover img,
.culture__aside a:hover img {
  transform: scale(1.05);
}

.culture__text {
  position: absolute;
  left: clamp(20px, 3vw, 48px);
  right: clamp(20px, 3vw, 48px);
  bottom: clamp(24px, 3.4vw, 56px);
  z-index: 1;
}

.culture__title {
  max-width: 16ch;
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(2rem, 1.1rem + 2.4vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.culture__dek {
  max-width: 44ch;
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--cream-2);
}

.culture__aside a {
  display: block;
}

.culture__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-3);
}

.culture__aside .news__kicker {
  margin-top: 18px;
}

.culture__title--sm {
  max-width: 20ch;
  margin-top: 10px;
  font-size: clamp(1.5rem, 1.05rem + 1vw, 2.1rem);
  line-height: 1.06;
}

.culture__aside .culture__dek {
  color: var(--ink-2);
}

@media (min-width: 1024px) {
  .culture__stage {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: start;
  }

  .culture__lead {
    grid-column: 1 / span 9;
    grid-row: 1;
  }

  .culture__lead a {
    aspect-ratio: 4 / 3;
  }

  .culture__aside {
    grid-column: 9 / span 4;
    grid-row: 1;
    z-index: 1;
    margin-top: clamp(96px, 10vw, 200px);
    padding: 18px 18px 28px;
    background: var(--paper);
  }

  .culture__aside .culture__media {
    aspect-ratio: 1;
  }
}

/* ==========================================================================
   Cita: una pausa tipográfica, como en una revista
   ========================================================================== */
.quote {
  padding-block: clamp(64px, 7vw, 120px) clamp(24px, 3vw, 56px);
  text-align: center;
}

.quote__inner {
  display: grid;
  justify-items: center;
  gap: 34px;
}

.quote__text {
  max-width: 21ch;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 1.1rem + 3vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -0.016em;
  text-wrap: balance;
}

.quote__cite {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.quote__cite::before,
.quote__cite::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

/* ==========================================================================
   Suscripción
   ========================================================================== */
.subscribe {
  padding-block: clamp(80px, 8vw, 128px);
  border-top: 1px solid var(--rule);
}

.subscribe__grid {
  display: grid;
  gap: 40px;
  align-items: end;
}

.subscribe__title {
  max-width: 12ch;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 1.4rem + 4.4vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.subscribe__lead {
  max-width: 40ch;
  font-size: 16px;
  color: var(--ink-2);
}

.field {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  border-bottom: 1px solid var(--ink);
}

.field input {
  flex: 1;
  min-width: 0;
  padding: 16px 0;
  font: inherit;
  font-size: 18px;
  color: var(--ink);
  background: none;
  border: 0;
  border-radius: 0;
  outline: none;
}

.field input::placeholder {
  color: var(--ink-3);
}

.field:focus-within {
  border-bottom-color: var(--accent);
}

.field__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.field__btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.5s var(--ease-out);
}

.field__btn:hover svg {
  transform: translateX(4px);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-3);
  cursor: pointer;
}

.check input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  display: grid;
  place-content: center;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  border: 1px solid var(--ink-2);
  border-radius: 0;
  cursor: pointer;
}

.check input::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--ink);
  transform: scale(0);
  transition: transform 0.25s var(--ease-out);
}

.check input:checked::before {
  transform: scale(1);
}

.check a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.subscribe__legal {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-3);
}

.subscribe__legal summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  cursor: pointer;
}

.subscribe__legal summary::-webkit-details-marker {
  display: none;
}

.subscribe__legal summary::before {
  content: "+";
  width: 16px;
  text-align: center;
  font-size: 15px;
  line-height: 1;
}

.subscribe__legal[open] summary::before {
  content: "−";
}

.subscribe__legal summary:hover {
  color: var(--ink);
}

.subscribe__legal p {
  max-width: 62ch;
  margin-top: 10px;
  padding-left: 26px;
}

.subscribe__msg {
  min-height: 1.5em;
  margin-top: 16px;
  font-size: 14px;
}

.subscribe__msg.is-error {
  color: #9b2c2c;
}

.subscribe__msg.is-ok {
  color: #2f5d3a;
}

@media (min-width: 1024px) {
  .subscribe__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
  }

  .subscribe__title {
    grid-column: 1 / span 7;
  }

  .subscribe__form {
    grid-column: 8 / span 5;
  }
}

/* ==========================================================================
   Colofón
   ========================================================================== */
.colophon {
  padding-top: clamp(72px, 8vw, 128px);
  background: var(--night);
  color: var(--cream);
}

.colophon__top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px var(--gap);
  font-size: 14px;
  line-height: 1.7;
}

.colophon .eyebrow {
  margin-bottom: 14px;
  color: rgba(239, 232, 220, 0.48);
}

.colophon address {
  font-style: normal;
}

.colophon__col a {
  display: block;
  width: fit-content;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.6s var(--ease-out);
}

.colophon__col a:hover {
  background-size: 100% 1px;
}

.colophon__brand {
  margin-top: clamp(72px, 9vw, 150px);
}

.colophon__brand svg {
  width: 100%;
  height: auto;
  fill: var(--cream);
}

.colophon__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 40px;
  margin-top: 28px;
  padding-block: 24px 28px;
  border-top: 1px solid var(--cream-rule);
  font-size: 12px;
  color: rgba(239, 232, 220, 0.55);
}

.colophon__bottom nav {
  display: flex;
  gap: 22px;
}

.colophon__bottom a:hover {
  color: var(--cream);
}

@media (min-width: 1024px) {
  .colophon__top {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ==========================================================================
   Animaciones de aparición (solo con JS)
   ========================================================================== */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-block: 0.14em;
  margin-block: -0.14em;
}

em .w {
  padding-right: 0.08em;
  margin-right: -0.08em;
}

.w__i {
  display: inline-block;
}

.js [data-split] .w__i {
  transform: translate3d(0, 110%, 0);
  transition: transform 1.9s var(--ease-out);
  transition-delay: calc(var(--i) * 65ms + var(--d, 0ms));
}

.js [data-split].is-in .w__i {
  transform: none;
}

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 48px, 0);
  transition: opacity 1.8s var(--ease-out), transform 2.2s var(--ease-out);
  transition-delay: var(--d, 0ms);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Las imágenes grandes aparecen con una cortina de abajo arriba. Se recortan
   los hijos y no el elemento observado: Chrome descuenta el recorte propio al
   decidir si algo está a la vista, y en móvil la cortina no llegaría a abrirse. */
.js [data-reveal="wipe"] {
  opacity: 1;
  transform: none;
}

.js [data-reveal="wipe"] > * {
  clip-path: inset(26% 0 0 0);
  transition: clip-path 2.4s var(--ease-out);
}

.js [data-reveal="wipe"] > :nth-child(2) {
  transition-delay: 0.16s;
}

.js [data-reveal="wipe"] > :nth-child(3) {
  transition-delay: 0.32s;
}

.js [data-reveal="wipe"].is-in > * {
  clip-path: inset(0 0 0 0);
}

/* Los paneles conservan su apertura al pasar; el escalonado solo afecta a la cortina */
.js .panels[data-reveal="wipe"] > .panel {
  transition: flex-grow 1.6s var(--ease-out), clip-path 2.4s var(--ease-out);
}

.js .panels[data-reveal="wipe"] > .panel:nth-child(2) {
  transition-delay: 0s, 0.16s;
}

.js .panels[data-reveal="wipe"] > .panel:nth-child(3) {
  transition-delay: 0s, 0.32s;
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal="wipe"] > * {
    clip-path: none;
  }
}

/* ---------- Cursor (como en Abeto): punto blanco en modo diferencia, que se
   ve negro sobre claro y blanco sobre oscuro y crece sobre enlaces ---------- */
.cursor {
  display: none;
}

.has-cursor,
.has-cursor * {
  cursor: none !important;
}

.has-cursor .cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 300;
  display: block;
  width: 0;
  height: 0;
  pointer-events: none;
  mix-blend-mode: difference;
}

.cursor__dot {
  position: absolute;
  left: -4px;
  top: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.3s;
}

.cursor.is-visible .cursor__dot {
  opacity: 1;
}

.cursor.is-hover .cursor__dot {
  transform: scale(1.8);
}

.cursor.is-down .cursor__dot {
  transform: scale(0.7);
}

.cursor.is-hover.is-down .cursor__dot {
  transform: scale(1.4);
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .js [data-reveal],
  .js [data-split] .w__i,
  .js .cover .cover__story .w__i,
  .cover__story > :not(.cover__title) {
    opacity: 1;
    transform: none;
  }

  .cover__story:not(.is-active) > :not(.cover__title) {
    opacity: 0;
  }

}
