/* alboroto — estilos base
   Medidas tomadas del archivo de Figma (frame de 1512 × 982). */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Mono";
  src: url("../fonts/dm-mono-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Mono";
  src: url("../fonts/dm-mono-latin-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #fff;
  --black: #000;
  --yellow: #ffe100;
}

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

html,
body {
  margin: 0;
  background: var(--yellow);
  color: var(--black);
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
}

/* ---------- Hero ---------- */

.hero {
  /* --u = 1 px del diseño. Se ajusta a la altura de la pantalla y,
     en pantallas estrechas, a la anchura para que quepan las pegatinas. */
  --u: min(100vh / 982, 100vw / 860);
  --hero-h: 100vh;
  /* Ancho del logo: el del Figma (frame "hero 1": 852 de 1512), o casi todo el ancho
     en pantallas estrechas. */
  --logo-w: min(calc(var(--u) * 852), 94vw);
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: var(--yellow);
}

@supports (height: 100svh) {
  .hero {
    --u: min(100svh / 982, 100vw / 860);
    --hero-h: 100svh;
    height: 100svh;
  }
}

/* Logo de cabecera: solo para lectores de pantalla. El que se ve es el de la escena. */
.hero__logo {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--logo-w);
  margin: 0;
  opacity: 0;
  transform: translateX(-50%);
}

/* Lienzo de 1512 × 982 del diseño, centrado y pegado abajo. */
.hero__stage {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: calc(var(--u) * 1512);
  height: calc(var(--u) * 982);
  transform: translateX(-50%);
}

/* Escena: lo que se mueve con el cursor (el mono; el logo se queda quieto).
   --look-x / --look-y (-1 … 1) los actualiza main.js. */
.hero__scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  user-select: none;
  transform-origin: calc(var(--u) * 755.5) calc(var(--u) * 820);
  transform:
    translate(calc(var(--u) * 14 * var(--look-x, 0)), calc(var(--u) * 8 * var(--look-y, 0)))
    rotate(calc(1.5deg * var(--look-x, 0)));
  will-change: transform;
}

/* Logo del "hero 1" del Figma: centrado, arriba del lienzo y por detrás del mono, que
   le tapa la parte de abajo de las letras del centro. Va en coordenadas del lienzo
   (pegado al borde inferior), así que en pantallas altas y estrechas baja con el mono
   y sigue quedando detrás de su cabeza. */
.hero__logo-back {
  position: absolute;
  top: 0;
  left: calc(var(--u) * 756 - var(--logo-w) / 2);
  width: var(--logo-w);
  height: auto;
}

.hero__mono,
.hero__squish {
  position: absolute;
  top: calc(var(--u) * -96);
  left: calc(var(--u) * 351);
  width: calc(var(--u) * 809);
  height: calc(var(--u) * 1078);
  object-fit: cover;
}

/* Lienzo del efecto peluche (assets/js/squish.js). */
.hero__squish {
  visibility: hidden;
  pointer-events: auto;
  touch-action: none;
}

.hero.has-squish .hero__squish {
  visibility: visible;
}

.hero.has-squish .hero__mono {
  visibility: hidden;
}

/* En móvil las pegatinas de la portada son algo más pequeñas y el grupo se corre un
   poco a la izquierda, para que ninguna se salga de la pantalla. */
@media (max-width: 700px) {
  .hero .sticker {
    --s: 1.3;
    --shift: -48;
  }
}

/* En móvil el logo va en el centro de la pantalla, en horizontal y en vertical (sigue
   por detrás del mono). La cuenta pasa del centro de la pantalla a coordenadas del
   lienzo, que está pegado abajo. */
@media (max-width: 700px) {
  .hero__logo-back {
    top: calc(var(--u) * 982 - var(--hero-h) / 2 - var(--logo-w) * 507 / 1371 / 2);
  }
}

/* ---------- Pegatinas (button1) ---------- */

/* --s agranda las pegatinas respecto al Figma (1 = tamaño original). El grupo
   entero crece desde el centro del borde inferior, para conservar la composición.
   --tx / --ty es lo que el usuario la ha arrastrado (main.js). */
.sticker {
  --s: 1.5;
  position: absolute;
  top: calc(var(--u) * (982 - (982 - var(--y)) * var(--s)));
  left: calc(var(--u) * (756 + var(--shift, 0) + (var(--x) - 756) * var(--s)));
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--u) * var(--w) * var(--s));
  height: calc(var(--u) * var(--h) * var(--s));
  background: var(--white);
  color: var(--black);
  font-size: calc(var(--u) * 36 * var(--s));
  line-height: calc(var(--u) * 30 * var(--s));
  letter-spacing: -0.07em;
  text-decoration: none;
  white-space: nowrap;
  transform: translate(calc(-50% + var(--tx, 0px)), calc(-50% + var(--ty, 0px))) rotate(var(--r, 0deg));
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Vuelta a su sitio al pulsar "reset". */
.sticker.is-returning {
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.25, 1.1);
}

/* Botón de texto (mismo estilo "cta" del Figma que el "close" de las ventanas). */
.stickers-reset {
  position: fixed;
  z-index: 5;
  top: 16px;
  right: 16px;
  height: 44px;
  padding: 0 20px;
  background: var(--white);
  border: 0.7px solid var(--black);
  color: var(--black);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.stickers-reset[hidden] {
  display: none;
}

.stickers-reset:hover,
.stickers-reset:focus-visible {
  background: var(--black);
  color: var(--white);
  outline: none;
}

.sticker.is-dragging {
  z-index: 3;
  cursor: grabbing;
}

.sticker:hover,
.sticker:focus-visible {
  z-index: 2;
  background: var(--black);
  color: var(--white);
  outline: none;
}

/* ---------- Selector de color (esquina superior izquierda) ----------
   Mismo lenguaje que el resto de la web: blanco, línea negra fina, esquinas
   rectas, sin sombras y texto en DM Mono, como los botones "cta" del Figma. */

.picker {
  --picker-color: #ffe100;
  --picker-hue: hsl(53 100% 50%);
  position: fixed;
  z-index: 6;
  top: 16px;
  left: 16px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.picker__trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 16px 0 10px;
  background: var(--white);
  border: 0.7px solid var(--black);
  color: var(--black);
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.picker__trigger:hover,
.picker__trigger:focus-visible,
.picker.is-open .picker__trigger {
  background: var(--black);
  color: var(--white);
  outline: none;
}

.picker__chip {
  width: 24px;
  height: 24px;
  background: var(--picker-color);
  border: 0.7px solid var(--black);
}

.picker__trigger:hover .picker__chip,
.picker__trigger:focus-visible .picker__chip,
.picker.is-open .picker__chip {
  border-color: var(--white);
}

.picker__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 288px;
  max-width: calc(100vw - 32px);
  padding: 12px;
  background: var(--white);
  border: 0.7px solid var(--black);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.14s ease-out, transform 0.14s ease-out;
}

.picker__panel[hidden] {
  display: none;
}

.picker__panel.is-visible {
  opacity: 1;
  transform: none;
}

/* Cuadro de saturación (horizontal) y brillo (vertical) del tono elegido. */
.picker__area {
  position: relative;
  height: 160px;
  background: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, var(--picker-hue));
  border: 0.7px solid var(--black);
  cursor: crosshair;
  touch-action: none;
}

/* Tirador: cuadrado, como el de la barra del reproductor. */
.picker__thumb {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  background: var(--picker-color);
  border: 0.7px solid var(--black);
  box-shadow: 0 0 0 2px var(--white), 0 0 0 2.7px var(--black);
  transform: translate(-50%, -50%);
}

.picker__thumb:focus-visible {
  outline: 1px solid var(--black);
  outline-offset: 5px;
}

.picker__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.picker__dropper {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: var(--white);
  border: 0.7px solid var(--black);
  color: var(--black);
  cursor: pointer;
}

.picker__dropper[hidden] {
  display: none;
}

.picker__dropper:hover,
.picker__dropper:focus-visible {
  background: var(--black);
  color: var(--white);
  outline: none;
}

.picker__hue {
  position: relative;
  flex: 1;
  height: 14px;
  background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
  border: 0.7px solid var(--black);
  cursor: pointer;
  touch-action: none;
}

/* El carril va metido medio tirador por cada lado, para que no se salga de la barra. */
.picker__hue-rail {
  position: absolute;
  inset: 0 9px;
}

.picker__hue .picker__thumb {
  background: var(--picker-hue);
}

.picker__field {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 0 12px;
  border: 0.7px solid var(--black);
  color: var(--black);
}

.picker__field:focus-within {
  outline: 1px solid var(--black);
}

.picker__hex {
  width: 100%;
  min-width: 0;
  padding: 0;
  background: none;
  border: 0;
  color: var(--black);
  font: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
  outline: none;
}

.picker__hex.is-rejected {
  animation: picker-shake 0.3s;
}

@keyframes picker-shake {
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

.picker__swatch {
  flex: none;
  width: 36px;
  height: 36px;
  background: var(--picker-color);
  border: 0.7px solid var(--black);
}

.picker__presets {
  display: flex;
  justify-content: space-between;
}

.picker__preset {
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
  background: var(--c);
  border: 0.7px solid var(--black);
  cursor: pointer;
}

/* Marco del color seleccionado. */
.picker__preset[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 0.7px solid var(--black);
}

.picker__preset:focus-visible {
  outline: 1px solid var(--black);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .picker__panel {
    transition: none;
  }
}

/* ---------- Ventanas ---------- */

.window {
  position: fixed;
  z-index: 10;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  width: min(920px, 100vw - 48px);
  max-height: min(720px, 100vh - 48px);
  background: var(--white);
  border: 0.7px solid var(--black);
  transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px)));
}

.window[hidden] {
  display: none;
}

.window__bar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 12px 12px 20px;
  border-bottom: 0.7px solid var(--black);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.window.is-dragging .window__bar {
  cursor: grabbing;
}

.window__title {
  margin: 0;
  font-size: 36px;
  font-weight: 600;
  line-height: 30px;
  letter-spacing: -0.07em;
}

/* Botón de texto (estilo "cta" del Figma) */
.window__close {
  flex: none;
  height: 44px;
  padding: 0 20px;
  background: var(--white);
  border: 0.7px solid var(--black);
  color: var(--black);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.window__close:hover,
.window__close:focus-visible {
  background: var(--black);
  color: var(--white);
  outline: none;
}

/* Enlace "open page": lleva a la página propia de esa sección. */
.window__page {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 44px;
  margin-left: auto;
  padding: 0 16px;
  border: 0.7px solid var(--black);
  color: var(--black);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  -webkit-user-drag: none; /* que un clic con un poco de movimiento no se convierta en arrastrar el enlace */
}

.window__page:hover,
.window__page:focus-visible {
  background: var(--black);
  color: var(--white);
  outline: none;
}

.window__body {
  overflow-y: auto;
  padding: 20px;
  overscroll-behavior: contain;
}

.micro {
  margin: 0 0 8px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 300;
  line-height: 11px;
  letter-spacing: 0.03em;
}

.lead {
  max-width: 22em;
  margin: 0;
  font-size: 36px;
  line-height: 34px;
  letter-spacing: -0.07em;
}

/* Ventana mundo (portada): en ordenador, "wherever we go. we also like monkeys & good
   sound." va entero en una línea, sin dejar "sound." suelto abajo. En el móvil no cabe y
   se reparte normal. */
@media (min-width: 701px) {
  .lead--mundo {
    max-width: none;
  }

  .lead--mundo span {
    display: block;
    white-space: nowrap;
  }
}

/* Desplegable "+ about" de la ventana mundo (portada): una línea pequeña que se abre
   con el texto descriptivo. Sin el triángulo del navegador: el signo lo pone el CSS. */
/* Ocupa todo el ancho de la caja, como el texto grande de arriba. */
.about {
  margin-top: 20px;
}

.about summary {
  display: inline-block;
  margin: 0;
  cursor: pointer;
  list-style: none;
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.about summary::before {
  content: "+ ";
}

.about[open] summary::before {
  content: "– ";
}

.about p {
  clear: both; /* empieza debajo de los botones en / es, no a su lado */
  margin: 8px 0 0;
  line-height: 13px;
}

.about em {
  font-style: italic;
}

/* Botones "en" / "es": a la derecha de "– about", solo con el desplegable abierto.
   El idioma elegido va en negro con el texto en blanco, como la pegatina de la página actual. */
.about__langs {
  float: right;
  display: flex;
  gap: 4px;
  margin-top: -13px;
}

.about__langs button {
  margin: 0;
  padding: 2px 6px;
  border: 0.7px solid var(--black);
  background: var(--white);
  color: var(--black);
  cursor: pointer;
}

.about__langs button[aria-pressed="true"] {
  background: var(--black);
  color: var(--white);
}

/* ---------- Reproductor (ventana "music") ---------- */

.player__title {
  max-width: none;
  margin-top: 4px;
}

.player__artist {
  margin-top: 8px;
}

.player__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 24px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
}

/* Botón de texto (estilo "cta" del Figma). */
.cta {
  height: 44px;
  min-width: 72px;
  padding: 0 16px;
  background: var(--white);
  border: 0.7px solid var(--black);
  color: var(--black);
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.cta--wide {
  min-width: 96px;
}

.cta:hover:not(:disabled),
.cta:focus-visible {
  background: var(--black);
  color: var(--white);
  outline: none;
}

.cta:disabled {
  opacity: 0.4;
  cursor: default;
}

.player__time {
  margin-left: 8px;
}

/* Barra de progreso: una línea negra con un tirador cuadrado. */
.player__bar {
  flex: 1 1 160px;
  height: 44px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.player__bar:disabled {
  opacity: 0.4;
  cursor: default;
}

.player__bar::-webkit-slider-runnable-track {
  height: 1px;
  background: var(--black);
}

.player__bar::-moz-range-track {
  height: 1px;
  background: var(--black);
}

.player__bar::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  margin-top: -6px;
  background: var(--black);
  border: 0;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.player__bar::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: var(--black);
  border: 0;
  border-radius: 0;
}

.player__bar:focus-visible {
  outline: 1px solid var(--black);
  outline-offset: 2px;
}

.player__status {
  min-height: 11px;
  margin-top: 12px;
}

.player__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 16px 0 0;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.player__links a {
  color: inherit;
}

/* Reproductor oficial de SoundCloud: presente pero invisible. */
.player__frame {
  position: absolute;
  width: 1px;
  height: 1px;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

/* ---------- music + radio: dos pestañas y un reproductor sencillo ---------- */

.sound__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.sound__tab {
  padding: 4px 12px 6px;
  background: var(--white);
  border: 0.7px solid var(--black);
  color: var(--black);
  font: inherit;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.07em;
  cursor: pointer;
}

.sound__tab:nth-child(1) {
  transform: rotate(-2deg);
}

.sound__tab:nth-child(2) {
  transform: rotate(1.5deg);
}

.sound__tab[aria-selected="true"] {
  background: var(--black);
  color: var(--white);
}

.sound__tab:focus-visible {
  outline: 1px solid var(--black);
  outline-offset: 3px;
}

.sound__panel[hidden] {
  display: none;
}

/* Página: todo más grande. */
/* Sin relleno arriba: el título queda donde el de las demás páginas (24 px, 20 px). */
.sound--page {
  padding: 0 20px;
}

.sound--page .sound__tabs {
  gap: 14px;
  margin-bottom: 28px;
}

.sound--page .sound__tab {
  padding: 2px 20px 10px;
  padding: 4px 16px 9px;
  font-size: clamp(26px, 3.6vw, 52px);
  line-height: 1;
}

.sound__tab:nth-child(3) {
  transform: rotate(-1deg);
}

/* Mismo tamaño que el título del resto de páginas (.page__title). */
.sound__title {
  margin: 0 0 24px;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.07em;
}

/* alboroto sets: portadas de los vídeos, cada una enlaza a YouTube. */
.sets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.set {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  padding: 8px 8px 14px;
  background: var(--white);
  border: 0.7px solid var(--black);
  color: var(--black);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.set:hover,
.set:focus-visible {
  transform: rotate(-1deg) translateY(-4px);
  outline: none;
}

.sets li:nth-child(even) .set:hover,
.sets li:nth-child(even) .set:focus-visible {
  transform: rotate(1deg) translateY(-4px);
}

.set img {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 10px;
  border: 0.7px solid var(--black);
}

.set__name {
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.07em;
}

.set__info,
.set__watch {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.03em;
}

.set__info {
  grid-column: 1;
}

.set__watch {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  padding: 6px 10px;
  border: 0.7px solid var(--black);
}

.set:hover .set__watch,
.set:focus-visible .set__watch {
  background: var(--black);
  color: var(--white);
}

.player--big {
  max-width: 980px;
}

.player--big .player__main {
  min-width: 0;
  padding: 20px 20px 24px;
  background: var(--white);
  border: 0.7px solid var(--black);
}

.player--big .player__title {
  margin-top: 10px;
  font-size: clamp(30px, 4.2vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.07em;
  overflow-wrap: anywhere;
}

.player--big .player__status:empty {
  min-height: 0;
  margin: 0;
}

.player--big .player__controls {
  margin-top: 16px;
}

/* Lista de pistas. */
.player__tracks {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  border-top: 0.7px solid var(--black);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.player__tracks:empty {
  display: none;
}

.player__tracks button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 12px;
  width: 100%;
  padding: 11px 8px;
  background: none;
  border: 0;
  border-bottom: 0.7px solid var(--black);
  color: var(--black);
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
}

.player__track-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player__tracks button:hover,
.player__tracks button:focus-visible,
.player__tracks button[aria-current="true"] {
  background: var(--black);
  color: var(--white);
  outline: none;
}

@media (max-width: 700px) {
  .sound--page {
    padding: 0 12px;
  }

  .player--big .player__main {
    padding: 16px 14px 20px;
  }

  .sound--page .sound__tabs {
    gap: 8px;
    margin-bottom: 20px;
  }

  .sets {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
}

/* ---------- Newsletter (formulario de Brevo) ---------- */

/* La ventana se ajusta al ancho del formulario en vez de ocupar los 920 px. */
#win-newsletter {
  width: min(600px, 100vw - 48px);
}

.newsletter {
  display: block;
  width: 100%;
  max-width: 540px;
  /* El formulario es más alto que los 305 px del código de Brevo: se le da el alto
     que quepa en la ventana, y lo que sobre se desplaza dentro del propio formulario. */
  height: min(620px, 100vh - 190px);
  margin: 0 auto;
  border: 0;
}

@media (max-width: 700px) {
  #win-newsletter {
    width: calc(100vw - 16px);
  }

  .newsletter {
    height: calc(100vh - 130px);
  }
}

/* ---------- Artists: una vista por año, nombres de la A a la Z ---------- */

/* Recuento, debajo de la lista. */
.artists__count {
  margin: 40px 0 0;
  padding-top: 16px;
  border-top: 0.7px solid var(--black);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.03em;
}

.artists__count strong {
  display: block;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(64px, 9vw, 128px);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.window .artists__count strong {
  font-size: 56px;
}

/* Botones de año. */
.artists__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.artists__tabs label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* El año elegido queda en negro. */
.artists > input:nth-of-type(1):checked ~ .artists__tabs label:nth-of-type(1),
.artists > input:nth-of-type(2):checked ~ .artists__tabs label:nth-of-type(2),
.artists > input:nth-of-type(3):checked ~ .artists__tabs label:nth-of-type(3),
.artists > input:nth-of-type(4):checked ~ .artists__tabs label:nth-of-type(4),
.artists > input:nth-of-type(5):checked ~ .artists__tabs label:nth-of-type(5),
.artists > input:nth-of-type(6):checked ~ .artists__tabs label:nth-of-type(6) {
  background: var(--black);
  color: var(--white);
}

.artists > input:nth-of-type(1):focus-visible ~ .artists__tabs label:nth-of-type(1),
.artists > input:nth-of-type(2):focus-visible ~ .artists__tabs label:nth-of-type(2),
.artists > input:nth-of-type(3):focus-visible ~ .artists__tabs label:nth-of-type(3),
.artists > input:nth-of-type(4):focus-visible ~ .artists__tabs label:nth-of-type(4),
.artists > input:nth-of-type(5):focus-visible ~ .artists__tabs label:nth-of-type(5),
.artists > input:nth-of-type(6):focus-visible ~ .artists__tabs label:nth-of-type(6) {
  outline: 1px solid var(--black);
  outline-offset: 3px;
}

/* Solo se ve la lista del año elegido (el selector n-ésimo enseña la lista n-ésima). */
.artists__year {
  display: none;
}

.artists > input:nth-of-type(1):checked ~ .artists__year:nth-of-type(1),
.artists > input:nth-of-type(2):checked ~ .artists__year:nth-of-type(2),
.artists > input:nth-of-type(3):checked ~ .artists__year:nth-of-type(3),
.artists > input:nth-of-type(4):checked ~ .artists__year:nth-of-type(4),
.artists > input:nth-of-type(5):checked ~ .artists__year:nth-of-type(5),
.artists > input:nth-of-type(6):checked ~ .artists__year:nth-of-type(6) {
  display: block;
}

/* El título del año ya lo dicen los botones; se deja solo para lectores de pantalla. */
.artists__year h3 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

/* Los nombres, en grande y en columnas (se leen de arriba abajo, de la A a la Z). */
.artists__year ul {
  columns: 3 220px;
  column-gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* En la página, la tarjeta "next event" está arriba a la derecha: la lista le deja
   su hueco para que ningún nombre (p. ej. "miquel morales") quede tapado. */
@media (min-width: 701px) {
  .page__main .artists__year ul {
    margin-right: calc(clamp(150px, 18vw, 278px) + 20px);
  }
}

.artists__year li {
  break-inside: avoid;
  font-size: 36px;
  line-height: 36px;
  letter-spacing: -0.07em;
}

.artists__year a,
.artists__year span {
  color: var(--black);
  text-decoration: none;
}

/* Todos los nombres se invierten al pasar el ratón, como las pegatinas,
   tengan o no enlace a Instagram. */
.artists__year a:hover,
.artists__year a:focus-visible,
.artists__year span:hover {
  background: var(--black);
  color: var(--white);
  outline: none;
}

/* Veces que ha pinchado ese año, en pequeño junto al nombre. */
.artists__year li {
  position: relative;
}

.artists__year small {
  margin-left: 6px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.03em;
  vertical-align: top;
  line-height: 20px;
}

/* Botón ▶ de la entrevista "alboroto connects": cajita blanca, como las pegatinas. */
.artists__year a.artists__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 20px;
  margin-left: 6px;
  vertical-align: 10px;
  background: var(--white);
  border: 0.7px solid var(--black);
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0;
  transform: rotate(-6deg);
}

.artists__year a.artists__play:hover,
.artists__year a.artists__play:focus-visible {
  background: var(--black);
  color: var(--white);
}

/* Ventana del vídeo (assets/js/artists.js): caja blanca centrada sobre la página desenfocada. */
.video {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.video__box {
  width: min(960px, 100%, (100vh - 140px) * 16 / 9);
  padding: 14px;
  background: var(--white);
  border: 0.7px solid var(--black);
}

.video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--black);
}

.video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.video__bar .micro {
  margin: 0;
}

/* Fechas y ciudades: una cajita que sale al pasar el cursor (o al tocar el nombre). */
.artists__dates {
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 5;
  display: none;
  min-width: 190px;
  padding: 8px 10px 10px;
  background: var(--white);
  border: 0.7px solid var(--black);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.03em;
  white-space: nowrap;
  pointer-events: none;
}

.artists__dates i {
  display: block;
  margin-bottom: 4px;
  padding-bottom: 4px;
  border-bottom: 0.7px solid var(--black);
  font-style: normal;
}

.artists__dates b {
  display: block;
  font-weight: 400;
}

/* Sin JavaScript sale bajo el nombre; con él (assets/js/artists.js) va flotando junto
   al cursor, en .artists__float. */
.artists:not(.is-float) .artists__year li:hover .artists__dates,
.artists:not(.is-float) .artists__year li:focus-within .artists__dates {
  display: block;
}

.artists__float {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;
  min-width: 190px;
  padding: 8px 10px 10px;
  background: var(--white);
  border: 0.7px solid var(--black);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.03em;
  white-space: nowrap;
  pointer-events: none;
  transform: rotate(-2deg);
}

.artists__float[hidden] {
  display: none;
}

.artists__float i {
  display: block;
  margin-bottom: 4px;
  padding-bottom: 4px;
  border-bottom: 0.7px solid var(--black);
  font-style: normal;
}

.artists__float b {
  display: block;
  font-weight: 400;
}

@media (max-width: 700px) {
  .artists__year li {
    font-size: 28px;
    line-height: 30px;
  }
}

/* ---------- Tickets (próximos eventos) ---------- */

.tickets {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Una fila por evento: cartel, datos y botón de compra. */
.ticket {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 0.7px solid var(--black);
}

.ticket:first-child {
  padding-top: 0;
}

.ticket__poster {
  flex: none;
  width: 96px;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.ticket__info {
  flex: 1;
  min-width: 0;
}

.ticket__date,
.ticket__place {
  margin: 0;
  font-size: 36px;
  line-height: 32px;
  letter-spacing: -0.07em;
}

.ticket__place {
  margin-bottom: 10px;
}

.ticket__info .micro {
  margin: 4px 0 0;
}

/* Cartel: enlaza a las entradas. */
.ticket__flyer {
  flex: none;
  display: block;
  line-height: 0;
}

.ticket__flyer:hover .ticket__poster,
.ticket__flyer:focus-visible .ticket__poster {
  outline: 0.7px solid var(--black);
  outline-offset: 3px;
}

/* Día y hora: en letra de máquina, más grande que el texto pequeño. */
.ticket__when {
  margin: 6px 0 0;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.03em;
}

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

.ticket__lineup a:hover,
.ticket__lineup a:focus-visible {
  background: var(--black);
  color: var(--white);
  outline: none;
}

/* Line-up: misma letra que la sala y la ciudad, pero algo más pequeña. */
.ticket__lineup {
  margin: 8px 0 0;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.07em;
}

/* Botón de compra: un "cta" en forma de enlace. */
.cta--buy {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  height: 67px;
  padding: 0 28px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.cta--buy:hover {
  background: var(--black);
  color: var(--white);
}

.cta--buy.is-disabled {
  opacity: 0.4;
  cursor: default;
}

.tickets-empty {
  max-width: none;
}

.tickets-empty a {
  color: inherit;
}

@media (max-width: 700px) {
  .ticket {
    flex-wrap: wrap;
    gap: 12px 16px;
  }

  .ticket__poster {
    width: 72px;
  }

  .ticket__date,
  .ticket__place {
    font-size: 28px;
    line-height: 26px;
  }

  .ticket__lineup {
    font-size: 22px;
  }

  .cta--buy {
    width: 100%;
    height: 52px;
  }
}

/* Cuenta atrás de cada evento ("in 12 days"): una pegatina blanca torcida junto a la fecha. */
.ticket__count {
  display: inline-block;
  margin-left: 12px;
  padding: 2px 8px 4px;
  background: var(--white);
  font-size: 0.5em;
  line-height: 1.1;
  letter-spacing: -0.05em;
  vertical-align: middle;
  transform: rotate(-4deg);
}

.window .ticket__count {
  background: var(--black);
  color: var(--white);
}

/* ---------- Página tickets (page-content/tickets.html) ---------- */

.tix {
  position: relative;
  overflow-x: clip; /* la tira en movimiento no ensancha la página */
}

/* Franja que pasa de lado a lado con el próximo evento. */
.tix__marquee {
  margin: 0 -20px 32px;
  overflow: hidden;
  border-top: 0.7px solid var(--black);
  border-bottom: 0.7px solid var(--black);
}

.tix__marquee-track {
  display: flex;
  width: max-content;
  padding: 10px 0 14px;
  font-size: clamp(36px, 7vw, 96px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.07em;
  white-space: nowrap;
  animation: slider-scroll 60s linear infinite;
}

.tix__marquee-track span {
  margin-right: 0.5em;
}

/* Entre palabra y palabra, un punto grande. */
.tix__marquee-track span::after {
  content: "●";
  margin-left: 0.5em;
  font-size: 0.35em;
  vertical-align: middle;
  color: var(--black);
}

/* Cada palabra de la franja con un estilo distinto, en ciclo (tickets.js les pone
   tix__w--1…5): normal, pegatina blanca, caja negra, letra de máquina y color de los
   degradados de atardecer de la marca. */
.tix__marquee-track span {
  display: inline-flex;
  align-items: center;
}

.tix__w--2 b,
.tix__w--3 b {
  padding: 0 0.15em 0.08em;
  border: 0.7px solid var(--black);
  font-weight: inherit;
}

.tix__w--2 b {
  background: var(--white);
  transform: rotate(-2deg);
}

.tix__w--3 b {
  background: var(--black);
  color: var(--yellow);
  transform: rotate(1.5deg);
}

.tix__w--4 b {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.6em;
  font-weight: 400;
  letter-spacing: 0;
}

.tix__w--5 b {
  color: #d13c82;
}

.tix__w--5:nth-child(10n) b {
  color: #483dbb;
}

.tix__marquee-track b {
  font-weight: inherit;
}

/* La lista, en grande: cartel alto, fecha enorme y botón ancho, pegado a la derecha. */
.tickets--big {
  position: relative;
  z-index: 1;
}

.tickets--big .ticket {
  gap: 28px;
  padding: 24px 0;
}

.tickets--big .ticket__poster {
  width: clamp(120px, 16vw, 220px);
}

.tickets--big .ticket__date {
  font-size: clamp(56px, 9vw, 128px);
  line-height: 0.86;
}

.tickets--big .ticket__place {
  margin-top: 6px;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1;
}

.tickets--big .ticket__when {
  margin-top: 10px;
  font-size: clamp(15px, 1.5vw, 22px);
}

.tickets--big .ticket__lineup {
  margin-top: 10px;
  font-size: clamp(22px, 2.7vw, 36px);
}

.tickets--big .ticket__info .micro {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.tickets--big .cta--buy {
  height: 86px;
  padding: 0 40px;
}

.tix .player__links {
  position: relative;
  z-index: 1;
}

@media (max-width: 700px) {
  .tix__marquee {
    margin: 0 -12px 20px;
  }

  .tickets--big .ticket {
    gap: 12px 16px;
  }

  .tickets--big .ticket__poster {
    width: 96px;
  }

  .tickets--big .cta--buy {
    height: 56px;
  }

  /* En móvil el sol va pequeño, arriba a la derecha, para no pisar los textos. */
}

@media (prefers-reduced-motion: reduce) {
  .tix__marquee-track {
    animation: none;
  }
}

/* ---------- Crue (frame "mundo" del Figma: the crue) ---------- */

/* Cuerpo de ventana sin márgenes, para contenidos que llegan hasta el borde. */
.window__body--flush {
  padding: 0;
}

/* El contenido se dibuja a escala: --d es 1 px del frame de Figma (1512 de ancho). */
.crue {
  container-type: inline-size;
  background: var(--yellow);
  /* "clip" recorta igual que "hidden", pero deja que la barra blanca se quede pegada arriba. */
  overflow: clip;
}

.crue__inner {
  --d: calc(100cqw / 1512);
  position: relative;
}

.crue__heading {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: calc(var(--d) * 6) 0 0 calc(var(--d) * 20);
  font-size: max(calc(var(--d) * 64), 28px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.07em;
}

/* 813 en el Figma; algo más bajo desde que se quitó el dibujo de la evolución. */
.crue__stage {
  position: relative;
  height: calc(var(--d) * 760);
}

/* Persona del equipo como muñeco articulado (assets/js/puppet.js). La capa ocupa todo
   el escenario; solo las piezas del muñeco y su caja reciben el puntero. */
.puppet {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.puppet__part {
  position: absolute;
  top: 0;
  left: 0;
  background-repeat: no-repeat;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}

.puppet.is-grabbing .puppet__part {
  cursor: grabbing;
}

/* Etiqueta fija bajo cada persona: nombre pequeño y el cargo en una pegatina blanca. */
.puppet__tag {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0;
  transform: translateX(-50%);
  color: var(--black);
  text-decoration: none;
  pointer-events: auto;
}

.puppet__role {
  padding: 0.1em 0.4em 0.2em;
  background: var(--white);
  border: 0.7px solid var(--black);
  font-family: "Inter", sans-serif;
  /* Crece y encoge con el dibujo (en la ventana de la portada es más pequeño). */
  font-size: clamp(11px, calc(var(--d) * 20), 20px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.07em;
  white-space: nowrap;
  transform: rotate(-3deg);
}

.puppet:nth-of-type(even) .puppet__role {
  transform: rotate(3deg);
}

a.puppet__tag:hover .puppet__role,
a.puppet__tag:focus-visible .puppet__role {
  background: var(--black);
  color: var(--white);
}

a.puppet__tag:focus-visible {
  outline: none;
}

/* Nombre en la letra de los titulares, grande; crece y encoge con el dibujo. */
.puppet__name {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: clamp(15px, calc(var(--d) * 26), 26px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.07em;
  white-space: nowrap;
}

/* Cajas back / next para cambiar de persona: solo en móvil (las crea puppet.js). */
.puppet-nav {
  display: none;
}

@media (max-width: 700px) {
  /* En móvil se ve una persona cada vez, grande y centrada: el escenario se alarga y
     el muñeco usa un frame más estrecho (el mismo ancho que mobileWidth en puppet.js). */
  .crue__stage:has(.puppet) {
    height: calc(100cqw / 470 * 760);
  }

  .puppet,
  .puppet-nav {
    --d: calc(100cqw / 470);
  }

  .puppet-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    z-index: 4;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
  }
}

.puppet-nav__button {
  height: 32px;
  padding: 0 12px;
  background: var(--white);
  border: 0.7px solid var(--black);
  border-radius: 0;
  color: var(--black);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.03em;
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
}

.puppet-nav__button:hover,
.puppet-nav__button:focus-visible {
  background: var(--black);
  color: var(--white);
  outline: none;
}

/* Caja "get up": aparece cuando el muñeco se ha caído. */
.puppet__reset {
  position: absolute;
  transform: translateX(-50%);
  height: 32px;
  padding: 0 14px;
  background: var(--white);
  border: 0.7px solid var(--black);
  border-radius: 0;
  color: var(--black);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.03em;
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
}

.puppet__reset:hover,
.puppet__reset:focus-visible {
  background: var(--black);
  color: var(--white);
  outline: none;
}

/* Tarjeta "next event": abre la ventana tickets. */
.crue__next {
  position: absolute;
  z-index: 2;
  top: calc(var(--d) * 11);
  left: calc(var(--d) * 1226);
  display: flex;
  flex-direction: column;
  gap: calc(var(--d) * 5);
  width: calc(var(--d) * 278);
  padding: calc(var(--d) * 5) calc(var(--d) * 6) calc(var(--d) * 9);
  background: var(--white);
  color: var(--black);
  text-decoration: none;
}

.crue__next img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 266 / 182;
  object-fit: cover;
  object-position: 50% 47%; /* encuadra el logo y la fecha del flyer */
}

.crue__next span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: max(calc(var(--d) * 37), 22px);
  border: 0.7px solid var(--black);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: max(calc(var(--d) * 13), 9px);
  font-weight: 400;
  letter-spacing: 0.03em;
}

.crue__next:hover span,
.crue__next:focus-visible span {
  background: var(--black);
  color: var(--white);
}

.crue__news {
  position: relative;
  padding-bottom: calc(var(--d) * 220);
}

.crue__suns {
  position: absolute;
  top: calc(var(--d) * -212);
  left: calc(var(--d) * 682);
  width: calc(var(--d) * 1080);
  height: calc(var(--d) * 1440);
  pointer-events: none;
}

/* Bajo el título: qué recibe quien se suscribe y el botón para apuntarse. */
.news-intro {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px calc(var(--d) * 40);
  padding: calc(var(--d) * 8) calc(var(--d) * 20) calc(var(--d) * 36);
}

.news-intro__text {
  flex: 1 1 280px;
  max-width: 26em;
  margin: 0;
  font-size: max(calc(var(--d) * 36), 18px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.07em;
}

/* Tarjetas "pills": fila que se desplaza en horizontal. */
.pills {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: calc(var(--d) * 19);
  margin: 0;
  padding: calc(var(--d) * 4) calc(var(--d) * 20) calc(var(--d) * 12);
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.pill {
  flex: none;
  width: max(calc(var(--d) * 428), 200px);
}

.pill__title {
  display: flex;
  align-items: flex-end;
  min-height: 2em;
  margin: 0 0 calc(var(--d) * 8);
  font-size: max(calc(var(--d) * 36), 18px);
  font-weight: 600;
  line-height: 0.84;
  letter-spacing: -0.07em;
}

.pill img {
  display: block;
  width: 100%;
  height: auto;
}

.pill__meta {
  display: flex;
  justify-content: space-between;
  margin: calc(var(--d) * 8) 0 0;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 300;
  line-height: 11px;
  letter-spacing: 0.03em;
}

/* ---------- Gallery (segundo frame "mundo" del Figma) ---------- */

.gallery {
  position: relative;
  height: calc(var(--d) * 880);
  overflow: clip;
}

/* Página sin footer ni scroll (gallery.html): ocupa justo la pantalla. */
.page--fixed {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.page--fixed .page__main,
.page--fixed .page__main .gallery {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  padding: 0;
  box-sizing: border-box;
}

/* En su página, la galería ocupa la pantalla entera. */
.page__main .gallery {
  height: 100vh;
}

/* Archivo de fotos: lienzo sin fin que se mueve con la rueda o arrastrando
   (assets/js/gallery.js). Cada foto conserva su proporción. */
.archive {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  overscroll-behavior: contain;
}

.archive.is-dragging,
.archive.is-dragging .archive__item {
  cursor: grabbing;
}

/* Cada foto va en un marco blanco tipo polaroid, con el borde fino de la web:
   esquinas rectas y sin sombra. El grosor del marco y el alto de la franja de abajo
   se cambian en los ajustes de gallery.js (frame y caption). */
.archive__item {
  position: absolute;
  cursor: zoom-in;
  top: 0;
  left: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 8px 8px 0;
  background: #fff;
  border: 0.7px solid #000;
  will-change: transform;
}

.archive__item img {
  display: block;
  width: 100%;
  pointer-events: none;
  -webkit-user-drag: none;
}

.archive__item figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 30px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.03em;
}

/* Foto ampliada al pulsarla: la misma polaroid, grande y centrada, con el resto de
   la página ligeramente desenfocado detrás. Debajo, las cajas back / next / close. */
.zoom {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  transition: backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease;
}

.zoom.is-open {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.zoom__card {
  box-sizing: border-box;
  margin: 0;
  padding: 14px 14px 0;
  background: var(--white);
  border: 0.7px solid var(--black);
  transform-origin: 0 0;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s ease;
}

.zoom__box {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Cajas de debajo de la foto: back y next a la izquierda, close a la derecha. */
.zoom__bar {
  display: flex;
  gap: 8px;
  height: 44px;
  margin-top: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.zoom.is-open .zoom__bar {
  opacity: 1;
}

.zoom__button {
  flex: none;
  height: 44px;
  padding: 0 18px;
  background: var(--white);
  border: 0.7px solid var(--black);
  border-radius: 0;
  color: var(--black);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.zoom__button:hover,
.zoom__button:focus-visible {
  background: var(--black);
  color: var(--white);
  outline: none;
}

.zoom__button--close {
  margin-left: auto;
}

.zoom__card img {
  display: block;
  width: 100%;
  height: auto;
}

.zoom__card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.03em;
}

@media (prefers-reduced-motion: reduce) {
  .zoom,
  .zoom__card,
  .zoom__bar {
    transition: none;
  }
}

/* ---------- Flyer de evento abierto (assets/js/events.js) ----------
   Al pulsar un cartel crece hasta el centro y a su lado sale la ficha del evento, en
   una caja blanca con borde fino. Usa el mismo fondo desenfocado y las mismas cajas
   back / next / close que el zoom de la galería. */

.is-flyer {
  cursor: pointer;
}

.flyer__card {
  display: flex;
  align-items: stretch;
  gap: 8px;
  cursor: default;
}

.flyer__poster {
  display: block;
  width: auto;
  height: min(70vh, 640px);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transform-origin: 0 0;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s ease;
}

.flyer__info {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 300px;
  padding: 16px;
  background: var(--white);
  border: 0.7px solid var(--black);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.flyer.is-open .flyer__info {
  opacity: 1;
}

.flyer__date {
  margin: 0;
  font-size: 56px;
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.flyer__place {
  margin: 8px 0 0;
  font-size: 28px;
  font-weight: 600;
  line-height: 26px;
  letter-spacing: -0.07em;
}

.flyer__meta,
.flyer__label,
.flyer__lineup {
  margin: 8px 0 0;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.flyer__label {
  margin-top: 28px;
  font-size: 10px;
  font-weight: 300;
}

.flyer__lineup {
  margin-top: 4px;
  padding: 0;
  list-style: none;
}

.flyer__buy,
.flyer__status {
  margin-top: auto;
}

.flyer__buy {
  height: 52px;
  padding: 0 12px;
}

.flyer__status {
  padding-top: 12px;
  border-top: 0.7px solid var(--black);
}

@media (max-width: 700px) {
  .flyer__card {
    flex-direction: column;
    align-items: center;
  }

  .flyer__poster {
    height: auto;
    width: min(62vw, 46vh);
  }

  .flyer__info {
    width: min(92vw, 360px);
    padding: 12px;
  }

  .flyer__date {
    font-size: 40px;
  }

  .flyer__label {
    margin-top: 14px;
  }

  .flyer__buy,
  .flyer__status {
    margin-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flyer__poster,
  .flyer__info {
    transition: none;
  }
}

/* Sol verde: caja de 707 × 584 en x -179, y 458, con el recorte del Figma. */
.gallery__sun {
  position: absolute;
  top: calc(var(--d) * (458 - 584 * 1.1695));
  left: calc(var(--d) * (-179 - 707 * 0.3225));
  width: calc(var(--d) * 707 * 1.5276);
  height: calc(var(--d) * 584 * 2.4658);
  pointer-events: none;
}

/* ---------- Events (pop-up): cuadrícula de carteles ---------- */

.posters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.posters img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* ---------- Events (página): carrusel de carteles que se desplaza solo ---------- */

.slider {
  overflow: hidden;
  /* Los carteles se desvanecen al acercarse a los bordes. */
  -webkit-mask: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

/* La lista contiene los carteles dos veces; al llegar a la mitad vuelve a empezar
   sin que se note. Se para al pasar el ratón por encima. */
.slider__track {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 16px 0;
  list-style: none;
  animation: slider-scroll 45s linear infinite;
}

.slider:hover .slider__track,
.slider:focus-within .slider__track {
  animation-play-state: paused;
}

@keyframes slider-scroll {
  to {
    transform: translateX(-50%);
  }
}

/* La separación va como margen de cada cartel (no como "gap") para que las dos
   mitades midan exactamente lo mismo. */
.slider__track li {
  flex: none;
  width: clamp(180px, 24vw, 300px);
  margin-right: 8px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.slider__track li:hover {
  position: relative;
  z-index: 1;
  transform: scale(1.05);
  filter: brightness(1.1);
}

.slider__track img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* Sin animaciones: fila normal que se desplaza a mano. */
@media (prefers-reduced-motion: reduce) {
  .slider {
    overflow-x: auto;
    -webkit-mask: none;
    mask: none;
  }

  .slider__track {
    animation: none;
  }

  .slider__track li[aria-hidden="true"] {
    display: none;
  }
}

.contact {
  margin: 0;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.contact dt {
  margin-top: 16px;
}

.contact dt:first-child {
  margin-top: 0;
}

.contact dd {
  margin: 4px 0 0;
}

.contact a {
  color: inherit;
}

@media (max-width: 700px) {
  .window {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    --dx: 0px !important;
    --dy: 0px !important;
  }

  .window__bar {
    cursor: default;
  }

  .window__title,
  .lead {
    font-size: 28px;
    line-height: 26px;
  }
}

@supports (height: 100svh) {
  .window {
    max-height: min(720px, 100svh - 48px);
  }

  @media (max-width: 700px) {
    .window {
      max-height: calc(100svh - 16px);
    }
  }
}

/* ---------- Páginas sueltas (crue.html, gallery.html…) ----------
   Las genera tools/build_pages.py. Fondo amarillo, barra de cabecera blanca y
   footer negro, como en los frames del Figma. */

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Barra blanca: siempre presente, fija sobre el contenido mientras se hace scroll.
   En los frames del Figma (982 de alto) está a 857 del borde superior, es decir,
   en la parte baja de la pantalla, a 39 del borde inferior. */
.page__header {
  position: fixed;
  z-index: 5;
  right: 20px;
  bottom: calc(100vh * 39 / 982);
  left: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 20px 8px 30px;
  background: var(--white);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
}

/* El logo del proyecto es blanco; aquí va en negro, como en la barra del Figma. */
.page__logo {
  flex: none;
  margin-right: 16px;
}

.page__logo img {
  display: block;
  width: 200px;
  height: auto;
  filter: brightness(0);
}

.page__header .cta {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  height: 67px;
  text-decoration: none;
  white-space: nowrap;
}

.page__header .cta:hover {
  background: var(--black);
  color: var(--white);
}

.page__tickets {
  flex: 1 1 200px !important;
  max-width: 428px;
}

.page__chip {
  width: 129px;
}

.page__chip[hidden] {
  display: none;
}

.page__about {
  flex: 0 1 408px;
  margin: 0 0 0 16px;
}

/* Menú de secciones: pegatinas apoyadas sobre la barra blanca, como en el Figma.
   Cada una trae su posición en píxeles del frame (--x, --y: centro; --w, --h; --r: giro).
   --b es 1 px del frame, a la escala de la barra (1472 de ancho en el diseño). */
.page__header {
  container-type: inline-size;
}

/* Botón y fondo del menú del móvil: en pantallas grandes no existen. */
.page__menu,
.page__menu-veil {
  display: none;
}

.page__stickers {
  --b: calc(100cqw / 1472);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
}

.page__stickers a {
  position: absolute;
  top: calc(var(--b) * (var(--y) - 857));
  left: calc(var(--b) * (var(--x) - 20));
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--b) * var(--w));
  height: calc(var(--b) * var(--h));
  background: var(--white);
  color: var(--black);
  font-family: "Inter", system-ui, sans-serif;
  font-size: calc(var(--b) * 36);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.07em;
  text-decoration: none;
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(var(--r, 0deg));
}

.page__stickers a:hover,
.page__stickers a:focus-visible,
.page__stickers a[aria-current="page"] {
  z-index: 1;
  background: var(--black);
  color: var(--white);
  outline: none;
}

/* El contenido ocupa como mínimo una pantalla entera: el footer queda siempre
   por debajo y hay que hacer scroll para llegar a él.
   Sin ancho máximo: en pantallas más anchas que el Figma (1512) el contenido se estira
   hasta los bordes, con el mismo margen de 20 px, igual que la barra y las pegatinas.
   (Antes tenía un tope de 1512 px y quedaba centrado con huecos a los lados.) */
.page__main {
  flex: 1 0 auto;
  min-height: 100vh;
  width: 100%;
  position: relative;
  margin: 0 auto;
  /* El hueco de abajo es para la barra blanca y sus pegatinas: se quedan justo encima
     del footer, así que lo último de la página tiene que acabar antes. */
  padding: 24px 20px 260px;
}

/* Páginas hechas a partir de un frame del Figma: ocupan todo el ancho de la pantalla. */
.page__main--flush {
  max-width: none;
  padding: 24px 0 230px;
}

/* Tarjeta "next event" de las páginas normales: arriba a la derecha, lleva a tickets.
   Es la misma de crue y gallery, con medidas fijas. */
.page__next {
  position: absolute;
  z-index: 2;
  top: 24px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: clamp(150px, 18vw, 278px);
  padding: 5px 6px 9px;
  background: var(--white);
  color: var(--black);
  text-decoration: none;
}

.page__next img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 266 / 182;
  object-fit: cover;
  object-position: 50% 47%;
}

.page__next span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 37px;
  border: 0.7px solid var(--black);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.page__next:hover span,
.page__next:focus-visible span {
  background: var(--black);
  color: var(--white);
}

/* Título de página: "section heading h1" del Figma. */
.page__title {
  margin: 0 0 24px;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.07em;
}

/* Página 404 (la genera tools/build_pages.py, NOT_FOUND): "404" enorme con el sol de
   la marca girando en el 0, una frase y pegatinas para seguir navegando. */
.not-found {
  position: relative;
  min-height: 62vh;
}

.not-found__code {
  display: flex;
  align-items: center;
  margin: 0;
  font-size: clamp(170px, 36vw, 520px);
  font-weight: 600;
  line-height: 0.85;
  letter-spacing: -0.07em;
}

.not-found__zero {
  display: inline-block;
  width: 0.92em;
  height: 0.92em;
  margin: 0 -0.19em 0 -0.06em; /* pegado a los dos 4 */
}

.not-found__zero img {
  display: block;
  width: 100%;
  height: 100%;
  filter: invert(1); /* el sol es blanco: en negro, como los números */
  animation: not-found-spin 9s linear infinite;
}

@keyframes not-found-spin {
  to {
    transform: rotate(360deg);
  }
}

.not-found__line {
  margin: 20px 0 0;
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.07em;
}

.not-found__hint {
  margin: 24px 0 12px;
}

/* Pegatinas para seguir: cajas blancas torcidas, como el menú. */
.not-found__ways {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 8px;
  max-width: 640px;
}

.not-found__ways a {
  padding: 4px 12px 8px;
  background: var(--white);
  color: var(--black);
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.07em;
  text-decoration: none;
  transform: rotate(var(--r, 0deg));
  transition: transform 0.2s ease;
}

.not-found__ways a:hover,
.not-found__ways a:focus-visible {
  background: var(--black);
  color: var(--white);
  outline: none;
  transform: rotate(0deg) scale(1.06);
}

@media (max-width: 700px) {
  .not-found {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .not-found__zero img {
    animation: none;
  }
}

.page__main .newsletter {
  margin-left: 0;
  height: 720px;
}

/* Footer negro: columnas de enlaces arriba, el logo a todo el ancho y una línea legal.
   La barra blanca fija no entra aquí: se queda justo encima (assets/js/page.js). */
.page__footer {
  padding: 56px 20px 40px;
  background: var(--black);
  color: var(--white);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

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

.page__footer a:focus-visible {
  outline: none;
}

/* Al pasar el cursor, cada enlace de las columnas se convierte en una cajetilla blanca
   con el texto en negro, algo torcida, como las pegatinas del menú. */
.footer__col li a {
  display: inline-block;
  margin: -2px -6px;
  padding: 2px 6px;
  transition: transform 0.15s ease, background-color 0.1s ease, color 0.1s ease;
}

.footer__col li a:hover,
.footer__col li a:focus-visible {
  background: var(--white);
  color: var(--black);
  transform: rotate(-3deg) scale(1.06);
}

.footer__col li:nth-child(even) a:hover,
.footer__col li:nth-child(even) a:focus-visible {
  transform: rotate(2.5deg) scale(1.06);
}

.footer__col li:nth-child(3n) a:hover,
.footer__col li:nth-child(3n) a:focus-visible {
  transform: rotate(-1.5deg) scale(1.06);
}

.footer__cols {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 40px 32px;
}

.footer__col h2 {
  margin: 0 0 20px;
  font: inherit;
  opacity: 0.6;
}

.footer__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.footer__col li span {
  display: block;
  font-size: 10px;
  font-weight: 300;
  opacity: 0.6;
}

.footer__col p {
  margin: 0 0 12px;
}

/* Los enlaces a las secciones, en dos columnas. */
.footer__links {
  columns: 2;
  column-gap: 32px;
}

/* "home" solo sale en el footer del móvil. */
.footer__home {
  display: none;
}

/* Campo de correo del footer: caja con borde blanco y botón pegado. */
.footer__signup {
  max-width: 380px;
}

.footer__signup label {
  display: block;
  margin-bottom: 6px;
}

/* El correo arriba y el botón debajo, a todo el ancho, para que el ejemplo se lea entero. */
.footer__signup-row {
  display: flex;
  flex-direction: column;
  border: 0.7px solid var(--white);
}

.footer__signup input {
  width: 100%;
  box-sizing: border-box;
  height: 44px;
  padding: 0 12px;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--white);
  font: inherit;
  letter-spacing: inherit;
}

.footer__signup input::placeholder {
  color: var(--white);
  opacity: 0.5;
}

.footer__signup input:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: -2px;
}

.footer__signup button {
  flex: none;
  height: 44px;
  padding: 0 12px;
  white-space: nowrap;
  background: var(--white);
  border: 0;
  border-radius: 0;
  color: var(--black);
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.footer__signup button:hover,
.footer__signup button:focus-visible {
  transform: rotate(-2deg) scale(1.04);
  outline: none;
}

.footer__signup.has-error .footer__signup-row {
  border-width: 2px;
}

/* Símbolo grande que se transforma en el siguiente (assets/js/page.js). Los símbolos
   van apilados y solo se ve uno. Al cambiar, los dos se funden mientras la caja se
   desenfoca y se le sube el contraste: el blanco sobre negro se comporta entonces como
   una mancha líquida que pasa de una forma a la otra. */
.footer__morph {
  position: relative;
  display: block;
  height: clamp(220px, 32vw, 480px);
  margin: 56px 0 8px;
  background: var(--black);
}

.footer__morph img {
  position: absolute;
  top: 0;
  left: 50%;
  width: auto;
  height: 100%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 1.1s linear;
}

.footer__morph img.is-on {
  opacity: 1;
}

.footer__morph.is-morphing {
  animation: footer-morph 1.1s ease-in-out;
}

@keyframes footer-morph {
  0%, 100% { filter: blur(0) brightness(1) contrast(1); }
  25%, 75% { filter: blur(12px) brightness(1.7) contrast(40); }
}

@media (prefers-reduced-motion: reduce) {
  .footer__morph img {
    transition: none;
  }

  .footer__morph.is-morphing {
    animation: none;
  }
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  margin: 0;
  padding-top: 12px;
  border-top: 0.7px solid var(--white);
  font-size: 11px;
}

.footer__col a {
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .footer__cols {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .page__footer {
    padding: 40px 12px 28px;
  }

  /* En móvil, las secciones y los correos ocupan todo el ancho. */
  .footer__col--wide,
  .footer__col--wide + .footer__col,
  .footer__col:last-child {
    grid-column: 1 / -1;
  }

  .footer__morph {
    margin-top: 40px;
  }
}

@media (max-width: 900px) {
  .page__header {
    flex-wrap: wrap;
    gap: 8px;
    right: 8px;
    bottom: 8px;
    left: 8px;
    padding: 8px 12px;
  }

  .page__logo img {
    width: 140px;
  }

  .page__header .cta {
    height: 44px;
  }

  .page__chip {
    width: auto;
    padding: 0 12px;
  }

  .page__about {
    display: none;
  }

  /* En pantallas estrechas las pegatinas quedarían diminutas: pasan a ser una fila
     de etiquetas rectas, justo encima de la barra. */
  .page__stickers {
    top: auto;
    bottom: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    height: auto;
    padding-bottom: 6px;
  }

  .page__stickers a {
    position: static;
    width: auto;
    height: auto;
    padding: 0 2px;
    font-size: 18px;
    line-height: 20px;
    transform: none;
  }

  .page__main {
    padding-left: 12px;
    padding-right: 12px;
  }

  .page__main--flush {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Móvil: la barra fija se queda en una sola fila baja (logo, entradas y fecha) y el
   menú de secciones en una única tira que se desliza de lado, para que no tapen media
   pantalla y el contenido respire. */
@media (max-width: 700px) {
  .page__header {
    flex-wrap: nowrap;
    padding: 6px 8px;
  }

  .page__logo {
    margin-right: 0;
  }

  .page__logo img {
    width: 84px;
  }

  .page__header .cta {
    height: 38px;
    font-size: 12px;
  }

  .page__tickets {
    flex: 1 1 auto !important;
    min-width: 0;
  }

  /* La sala del próximo evento no cabe en la fila: se queda la fecha. */
  .page__chip[data-next-venue] {
    display: none;
  }

  /* Pegatinas sobre la barra: en varias filas, cada una con su giro, tocándose pero sin
     taparse el texto unas a otras (todas se leen enteras). */
  .page__stickers {
    flex-wrap: wrap-reverse;
    justify-content: flex-end;
    align-items: center;
    gap: 5px 3px;
    padding: 0 12px 14px 24px; /* aire entre el montón y la barra, y con el borde derecho */
  }

  .page__stickers a {
    flex: none;
    margin: 0;
    padding: 2px 6px 3px;
    border: 0.7px solid var(--black); /* para que se vean también sobre cajas blancas */
    font-size: 18px;
    line-height: 20px;
  }

  .page__stickers a:nth-child(7n + 1) { transform: rotate(-4deg); }
  .page__stickers a:nth-child(7n + 2) { transform: rotate(3deg) translateY(-1px); }
  .page__stickers a:nth-child(7n + 3) { transform: rotate(-2deg) translateY(1px); }
  .page__stickers a:nth-child(7n + 4) { transform: rotate(5deg); }
  .page__stickers a:nth-child(7n + 5) { transform: rotate(-3deg) translateY(-1px); }
  .page__stickers a:nth-child(7n + 6) { transform: rotate(2deg) translateY(1px); }
  .page__stickers a:nth-child(7n) { transform: rotate(-5deg); }

  .page__stickers a[aria-current="page"] {
    z-index: 2;
  }

  /* Crue: el dibujo de la evolución no tiene sitio junto a la persona, y la sección
     de newsletter empieza con más aire. */
  .crue__news {
    margin-top: 32px;
  }
}

/* ---------- Formulario de alta en la newsletter (assets/js/signup.js) ----------
   Campos con borde fino, esquinas rectas y texto pequeño en DM Mono, como el resto. */

.signup {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
  margin: 0 auto;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.signup__lead {
  margin: 0 0 4px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 26px;
  letter-spacing: -0.07em;
}

.signup__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.signup input[type="text"],
.signup input[type="email"],
.signup input[type="tel"] {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  background: var(--white);
  border: 0.7px solid var(--black);
  border-radius: 0;
  color: var(--black);
  font: inherit;
  letter-spacing: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.signup input::placeholder {
  color: var(--black);
  opacity: 0.35;
}

.signup input:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: -2px;
}

.signup__phone {
  display: flex;
  gap: 8px;
}

.signup__phone input:first-child {
  flex: none;
  width: 72px;
}

.signup__hint {
  margin: 0;
  font-size: 10px;
  font-weight: 300;
  line-height: 1.3;
}

.signup__check {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  cursor: pointer;
}

/* Casilla cuadrada con borde fino; marcada, se rellena de negro. */
.signup__check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  background: var(--white);
  border: 0.7px solid var(--black);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.signup__check input:checked {
  background: var(--black);
  box-shadow: inset 0 0 0 3px var(--white);
}

.signup__check .signup__error {
  flex-basis: 100%;
}

.signup__error {
  font-size: 11px;
}

.signup__error:empty {
  display: none;
}

.signup__field.has-error input {
  border-width: 2px;
}

.signup__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.signup__send {
  width: 100%;
  height: 52px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.signup__status {
  margin: 0;
  min-height: 1em;
}

.signup__status:empty {
  display: none;
}

.signup.is-sending {
  opacity: 0.6;
}

/* Alta hecha: desaparecen los campos y queda el mensaje, en grande. */
.signup.is-done > :not(.signup__status) {
  display: none;
}

.signup.is-done .signup__status {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 26px;
  letter-spacing: -0.07em;
}

/* ---------- Página newsletter (page-content/newsletter.html) ----------
   Arriba, una frase enorme y el formulario al lado; debajo, los dos correos del mes
   como dos cartas. */

.news-page__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px 48px;
}

.news-page__hello {
  flex: 1 1 420px;
  min-width: 0;
  margin: 0;
  font-size: clamp(52px, 9.5vw, 150px);
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: -0.07em;
}

/* "be part of it." en caja blanca torcida, como una pegatina. */
.news-page__hello span {
  display: inline-block;
  margin-top: 0.08em;
  padding: 0 0.1em 0.06em;
  background: var(--white);
  transform: rotate(-2deg);
}

/* Caja blanca del formulario, con el borde fino de la web. */
.news-page__form {
  flex: 0 1 460px;
  min-width: 0;
  padding: 24px;
  background: var(--white);
  border: 0.7px solid var(--black);
}

.news-page__question {
  margin-top: clamp(64px, 9vw, 140px);
}

/* Los dos correos, como dos cartas: papel blanco con borde fino, remite arriba, un sello
   de la marca en la esquina y lo que trae cada una. Van algo torcidas y se enderezan
   al pasar el cursor. */
.letters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding-top: 8px;
}

.letter {
  padding: 18px 20px 24px;
  background: var(--white);
  border: 0.7px solid var(--black);
  transform: rotate(-1.2deg);
  transition: transform 0.2s ease;
}

.letter:nth-child(2) {
  margin-top: 28px;
  transform: rotate(1.4deg);
}

.letter:hover {
  transform: rotate(0deg) translateY(-4px);
}

.letter__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 0.7px solid var(--black);
}

.letter__meta,
.letter__n,
.letter__list,
.letter__pills {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.03em;
}

.letter__meta {
  margin: 0;
}

/* Sello: un símbolo de la marca sobre un degradado de atardecer.
   Colores de la paleta del manual de marca (filosofía cromática, pág. 20):
   483dbb · d13c82 · de4c40 · e17236 · f2d232 · 1d1d1d · f2f2ed. */
.letter__stamp {
  position: relative;
  flex: none;
  display: block;
  width: clamp(72px, 7.5vw, 112px);
  aspect-ratio: 1;
  padding: 8px;
  border: 0.7px solid var(--black);
  transform: rotate(4deg);
  overflow: hidden;
}

.letter__stamp img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Grano suave, como la textura que llevan las creatividades. */
.letter__stamp::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  opacity: 0.7;
  pointer-events: none;
}

/* Mail 01: el sol todavía arriba. Símbolo oscuro. */
.letter__stamp--day {
  background: radial-gradient(circle at 35% 70%, #f2d232 0%, #f2d232 22%, #e17236 62%, #de4c40 100%);
}

.letter__stamp--day img {
  filter: brightness(0) invert(0.11); /* 1d1d1d */
}

/* Mail 02: el sol ya se ha ido. Símbolo claro. */
.letter__stamp--dusk {
  background: linear-gradient(200deg, #483dbb 0%, #d13c82 55%, #e17236 100%);
}

.letter__stamp--dusk img {
  filter: brightness(0) invert(0.95); /* f2f2ed */
}

.letter__n {
  margin: 20px 0 4px;
}

.letter__title {
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 76px);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.letter__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.letter__list li {
  padding: 8px 0;
  border-top: 0.7px solid var(--black);
}

.letter__list li:last-child {
  border-bottom: 0.7px solid var(--black);
}

/* Ejemplos de píldoras dentro de la segunda carta. */
.letter__pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 11px;
  line-height: 1.3;
}

.letter__pills img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  margin-bottom: 6px;
}

@media (max-width: 800px) {
  .letters {
    grid-template-columns: 1fr;
  }

  .letter:nth-child(2) {
    margin-top: 0;
  }
}

@media (max-width: 700px) {
  .news-page__form {
    flex-basis: 100%;
    padding: 16px;
  }
}


/* ---------- Página events: frame "events" del Figma, a escala (--d = 1 px del frame) ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.events-page {
  position: relative;
  /* 1739 en el Figma; se ha recortado para que haya menos scroll: acaba donde acaba roto. */
  height: calc(var(--d) * 1240);
}

/* Carrusel del Figma: carteles a 51 del borde superior, de lado a lado y sin desvanecer. */
.slider--events {
  position: absolute;
  top: calc(var(--d) * 51);
  right: 0;
  left: 0;
  -webkit-mask: none;
  mask: none;
}

.slider--events .slider__track {
  padding: 0;
}

/* Los carteles van más grandes que en el Figma (197 de ancho) para que se lean. */
.slider--events .slider__track {
  align-items: flex-start;
  transition: translate 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.slider--events .slider__track li {
  width: calc(var(--d) * 250);
  margin-right: calc(var(--d) * 4);
  transition: width 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.3s ease, filter 0.3s ease;
}

/* El carrusel lo mueve assets/js/events.js: va solo y además se puede arrastrar. */
.slider--events.is-js {
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.slider--events.is-js .slider__track {
  animation: none;
}

.slider--events.is-js img {
  -webkit-user-drag: none;
  pointer-events: none;
}

.slider--events.is-dragging {
  cursor: grabbing;
}

.slider--events.is-dragging .slider__track li:hover {
  transform: none;
  filter: none;
}

/* Flyer abierto dentro de la fila (assets/js/events.js): la fila se para, el cartel
   crece en su sitio y pasa por delante de los dibujos; los demás se quedan como están. */
.slider--events.is-open {
  z-index: 3;
  overflow: visible;
}

.slider--events.is-open .slider__track {
  animation-play-state: paused;
}

.slider--events .slider__track li.is-open {
  width: calc(var(--d) * 640);
}

.slider--events.is-open .slider__track li:hover {
  transform: none;
  filter: none;
}

/* Ficha del evento: a la izquierda del flyer abierto, encima del sol. */
.flyer-panel {
  position: absolute;
  z-index: 4;
  top: calc(var(--d) * 420);
  right: calc(100% - var(--d) * 544);
  width: 300px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}

.flyer-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.3s ease 0.15s, transform 0.3s ease 0.15s;
}

.flyer-panel .flyer__info {
  width: auto;
  min-height: 300px;
  opacity: 1;
}

.flyer-panel__bar {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.flyer-panel__bar .zoom__button {
  padding: 0 12px;
}

.events-page__sun,
.events-page__caution,
.events-page__mono {
  position: absolute;
  pointer-events: none;
}

/* Sol: imagen de 443 × 590 girada -17°, centrada en su caja (149, 293, 596 × 694).
   Subido respecto al Figma (293 → 190), más cerca de los carteles. */
.events-page__sun {
  top: calc(var(--d) * 190);
  left: calc(var(--d) * 149);
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--d) * 596);
  height: calc(var(--d) * 694);
}

.events-page__sun img {
  flex: none;
  width: calc(var(--d) * 442.65);
  height: calc(var(--d) * 590.2);
  object-fit: cover;
  transform: rotate(-17.03deg);
}

/* Texto manuscrito: caja (50, 943, 547 × 368) con el recorte del Figma. Subido a 720. */
.events-page__caution {
  top: calc(var(--d) * 720);
  left: calc(var(--d) * 50);
  width: calc(var(--d) * 547);
  height: calc(var(--d) * 368);
  overflow: hidden;
}

.events-page__caution img {
  position: absolute;
  top: -210.33%;
  left: -56.31%;
  width: 197.44%;
  height: 391.3%;
  max-width: none;
}

/* roto (imagen entera, 600 × 600): pegado al borde derecho, que es donde la imagen
   corta el humo. Su borde de abajo marca el final de la página (ver .events-page). */
.events-page__mono {
  z-index: 1;
  top: calc(var(--d) * 600);
  right: 0;
  width: calc(var(--d) * 600);
  height: calc(var(--d) * 600);
}

.events-page__mono img {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------- Página mundo (page-content/mundo.html) ---------- */

/* Manifiesto: las frases de la marca, una debajo de otra, enormes. */
.mundo__manifesto {
  margin: 8px 0 0;
}

.mundo__manifesto p {
  margin: 0;
  font-size: clamp(52px, 11.5vw, 176px);
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: -0.07em;
}

/* Cada frase arranca un poco más adentro que la anterior, como una escalera. */
.mundo__manifesto p:nth-child(2) { margin-left: 4%; }
.mundo__manifesto p:nth-child(3) { margin-left: 8%; }
.mundo__manifesto p:nth-child(4) { margin-left: 2%; }

/* "& good sound." va en caja blanca torcida, como una pegatina. */
.mundo__manifesto span {
  display: inline-block;
  padding: 0 0.12em 0.06em;
  background: var(--white);
  transform: rotate(-2deg);
}

.mundo__manifesto .mundo__since {
  margin: 28px 0 0;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.03em;
}

.mundo__block {
  margin-top: clamp(64px, 9vw, 140px);
}

.mundo__heading {
  margin: 0 0 20px;
  font-size: clamp(32px, 4.4vw, 64px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.07em;
}

/* Números: cifra enorme y, debajo, qué cuenta, separados por líneas finas. */
.mundo__numbers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 0.7px solid var(--black);
  border-bottom: 0.7px solid var(--black);
}

.mundo__numbers div {
  padding: 16px 0 18px 16px;
  border-left: 0.7px solid var(--black);
}

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

.mundo__numbers dt {
  font-size: clamp(64px, 12vw, 190px);
  font-weight: 600;
  line-height: 0.85;
  letter-spacing: -0.07em;
  font-variant-numeric: tabular-nums;
}

.mundo__numbers dd,
.mundo__note {
  margin: 8px 0 0;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
}

/* Ciudades como pegatinas: caja blanca, cada una con su giro; el numerito es cuántas
   fechas ha habido allí. */
.mundo__places {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 10px;
  margin: 0;
  padding: 8px 0 0;
  list-style: none;
}

.mundo__places a {
  display: block;
  padding: 2px 10px 6px;
  background: var(--white);
  color: var(--black);
  font-size: clamp(28px, 4.6vw, 64px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.07em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease;
}

.mundo__places sup {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.03em;
  vertical-align: top;
}

.mundo__places li:nth-child(4n + 1) a { transform: rotate(-3deg); }
.mundo__places li:nth-child(4n + 2) a { transform: rotate(2deg); }
.mundo__places li:nth-child(4n + 3) a { transform: rotate(-1deg); }
.mundo__places li:nth-child(4n) a { transform: rotate(4deg); }

.mundo__places li a:hover,
.mundo__places li a:focus-visible {
  background: var(--black);
  color: var(--white);
  transform: rotate(0deg) scale(1.06);
  outline: none;
}

/* Roto: título gigante y, montadas encima, dos fotos algo torcidas (la figura 3d y
   la versión real) como copias en papel tiradas sobre la mesa. Toda la zona se
   arrastra para girar al mono (assets/js/roto.js). */
.roto-show {
  position: relative;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.roto-show.is-dragging {
  cursor: grabbing;
}

.roto-show:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 8px;
}

/* El título cabe entero a la izquierda de las fotos, para que se lea. */
.roto-show {
  --roto-title: clamp(96px, 16vw, 250px);
}

.roto-show__title {
  margin: 0;
  font-size: var(--roto-title);
  font-weight: 600;
  line-height: 0.74;
  letter-spacing: -0.08em;
}

.roto-show__stage {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  /* Las fotos suben hasta la altura del título, que queda a su izquierda. */
  margin-top: calc(var(--roto-title) * -0.74);
  padding-right: 4%;
  pointer-events: none;
}

.roto-show__card {
  position: relative;
  flex: none;
  margin: 0;
  padding: 8px 8px 0;
  background: var(--white);
  border: 0.7px solid var(--black);
}

.roto-show__card img {
  display: block;
  width: auto;
  height: clamp(280px, 44vw, 620px);
  object-fit: cover;
  -webkit-user-drag: none;
}

.roto-show__card--3d img {
  aspect-ratio: 928 / 1152;
}

.roto-show__card--real img {
  aspect-ratio: 9 / 16;
}

/* Vista del otro lado: la misma imagen, en espejo. */
.roto-show__card img.is-flipped {
  transform: scaleX(-1);
}

.roto-show__card--3d {
  z-index: 1;
  transform: rotate(-4deg) translate(6%, -3%);
}

.roto-show__card--real {
  transform: rotate(3deg);
}

/* Pie de cada foto, como el de las polaroids de gallery. */
.roto-show__card figcaption {
  display: flex;
  align-items: center;
  height: 30px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.03em;
}

/* Enlace a la tienda en el pie de la figura 3d (la foto entera también lleva allí). */
.roto-show__card figcaption a {
  margin-left: auto;
  color: var(--black);
  pointer-events: auto;
}

.roto-show__card figcaption a:hover,
.roto-show__card figcaption a:focus-visible {
  background: var(--black);
  color: var(--white);
  text-decoration: none;
  outline: none;
}

.roto-show__text {
  max-width: 34em;
  margin-top: clamp(-150px, -8vw, 24px);
}

.roto-show__hint {
  margin: 14px 0 0;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.mundo__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

  .mundo__numbers div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .mundo__numbers div:nth-child(n + 3) {
    border-top: 0.7px solid var(--black);
  }

  .roto-show__stage {
    justify-content: center;
    margin-top: 20px; /* las fotos van debajo del título, sin taparlo */
    padding-right: 0;
  }

  .roto-show__card img {
    height: 56vw;
  }

  .roto-show__text {
    margin-top: 28px;
  }
  .mundo__links li,
  .mundo__links .cta--buy {
    width: 100%;
  }

  .mundo__links .cta--buy {
    height: 52px;
  }
}

/* ---------- Página contacto (page-content/contacto.html) ---------- */

.hi {
  position: relative;
}

/* Saludo enorme; el punto final va en una caja blanca torcida. */
.hi__hello {
  position: relative;
  z-index: 1;
  margin: 0 0 clamp(28px, 4vw, 64px);
  font-size: clamp(96px, 24vw, 380px);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.08em;
}

.hi__hello span {
  display: inline-block;
  margin-left: 0.04em;
  padding: 0 0.06em;
  background: var(--white);
  transform: rotate(8deg);
}

/* Símbolo de la marca, en negro, girando despacio detrás. */
.hi__symbol {
  position: absolute;
  z-index: 0;
  top: clamp(-20px, 2vw, 40px);
  right: 2%;
  width: clamp(180px, 30vw, 460px);
  height: auto;
  filter: invert(1);
  pointer-events: none;
  animation: tix-spin 50s linear infinite;
}

/* Cada correo en una fila: para qué es, el correo en grande y un botón para copiarlo. */
.hi__mails {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 0.7px solid var(--black);
}

.hi__mails li {
  display: grid;
  grid-template-columns: minmax(90px, 10%) minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 16px;
  padding: 14px 0 18px;
  border-bottom: 0.7px solid var(--black);
}

.hi__label {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.hi__mail {
  justify-self: start;
  padding: 0 0.12em 0.08em;
  margin-left: -0.12em;
  color: var(--black);
  font-size: clamp(22px, 5.4vw, 86px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.07em;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: transform 0.15s ease, background-color 0.1s ease, color 0.1s ease;
}

/* Al pasar el cursor, el correo se vuelve una cajetilla negra algo torcida. */
.hi__mail:hover,
.hi__mail:focus-visible {
  background: var(--black);
  color: var(--white);
  transform: rotate(-1.5deg);
  outline: none;
}

.hi__mails li:nth-child(even) .hi__mail:hover,
.hi__mails li:nth-child(even) .hi__mail:focus-visible {
  transform: rotate(1.5deg);
}

.hi__copy {
  height: 44px;
  min-width: 84px;
  padding: 0 16px;
  background: var(--white);
  border: 0.7px solid var(--black);
  border-radius: 0;
  color: var(--black);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.hi__copy:hover,
.hi__copy:focus-visible,
.hi__copy.is-done {
  background: var(--black);
  color: var(--white);
  outline: none;
}

.hi__heading {
  margin-top: clamp(48px, 7vw, 110px);
}

@media (max-width: 700px) {
  .hi__mails li {
    grid-template-columns: minmax(0, 1fr) auto;
  }

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

  /* Que el correo más largo quepa en una línea. */
  .hi__mail {
    font-size: 5.1vw;
  }

  .hi__copy {
    height: 36px;
    min-width: 0;
    padding: 0 10px;
  }

  .hi__symbol {
    top: -60px;
    right: -10px;
    width: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hi__symbol {
    animation: none;
  }
}

/* ---------- Página roto records (page-content/roto-records.html) ----------
   El sello tiene su propia marca (manual de roto records): negro #1c1c1c y blanco cálido
   #fcfbf0 en vez del amarillo, títulos en Arial bold, números y textos pequeños en mono
   entre corchetes, y color solo en el espectro, en las líneas de cada release y en los
   símbolos a rotulador. */

.rr {
  --rr-black: #1c1c1c;
  --rr-white: #fcfbf0;
  /* Sube hasta arriba del todo y llena también el hueco de abajo de la página. */
  margin: -24px 0 -230px;
  padding-bottom: 260px;
  background: var(--rr-black);
  color: var(--rr-white);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}

/* Cabecera: el espectro de luz a toda pantalla y el logo encima. */
/* Fuera del recuadro, la página de roto records es negra también: el iPhone pinta la
   franja de la hora y lo que queda bajo sus barras con el color del fondo. */
html:has(.rr),
html:has(.rr) body {
  background: #1c1c1c;
}

.rr__hero {
  position: relative;
  height: min(100vh, 900px);
  min-height: 420px;
  overflow: hidden;
}

.rr__spectrum {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.rr__brand {
  position: absolute;
  top: 46%;
  left: 50%;
  width: clamp(280px, 50vw, 700px); /* el archivo del logo mide 666 px: más grande se vería borroso */
  padding: 0 clamp(8px, 1.5vw, 24px);
  background: var(--rr-black);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* El logo es trazo blanco sobre fondo transparente (se sacó del escaneo en negro sobre
   papel): toma el gris del sello sin trucos de color. Antes se invertía con filter y
   mix-blend-mode, y el Safari del iPhone lo pintaba como una caja negra. */
.rr__logo {
  display: block;
  width: 100%;
  height: auto;
}

.rr__hint,
.rr__n,
.rr__freq {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.rr__hint {
  position: absolute;
  bottom: clamp(150px, 20vh, 220px);
  left: 20px;
  margin: 0;
  padding: 4px 8px;
  background: var(--rr-black);
}

.rr__block {
  position: relative;
  padding: clamp(64px, 9vw, 140px) 20px 0;
}

.rr__heading,
.rr__statement {
  margin: 0 0 24px;
  font-size: clamp(40px, 7.5vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.rr__statement {
  max-width: 9em;
  margin-bottom: clamp(32px, 5vw, 72px);
  font-size: clamp(52px, 11vw, 176px);
}

/* Los tres pasos: luz blanca, prisma, frecuencia. */
.rr__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 0.7px solid var(--rr-white);
}

.rr__steps li {
  padding: 16px 20px 0 16px;
  border-left: 0.7px solid var(--rr-white);
}

.rr__steps li:first-child {
  padding-left: 0;
  border-left: 0;
}

.rr__steps h2 {
  margin: 28px 0 10px;
  font-size: clamp(24px, 2.8vw, 42px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.rr__steps p {
  max-width: 26em;
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
}

/* Releases: una fila por lanzamiento, con su línea de color (su frecuencia). */
.rr__releases,
.rr__mails {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 0.7px solid var(--rr-white);
}

.rr__releases li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(70px, 10%) minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0 22px;
  border-bottom: 0.7px solid var(--rr-white);
  transition: padding-left 0.2s ease;
}

.rr__releases li::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  background: var(--f);
  transition: width 0.2s ease;
}

.rr__releases li:hover {
  padding-left: 28px;
}

.rr__releases li:hover::before {
  width: 12px;
}

.rr__title {
  font-size: clamp(28px, 5vw, 80px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.rr__releases li:hover .rr__title {
  color: var(--f);
}

/* Demos: los correos en grande, con botón para copiarlos. */
.rr__mails li {
  display: grid;
  grid-template-columns: minmax(70px, 10%) minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 16px;
  padding: 14px 0 18px;
  border-bottom: 0.7px solid var(--rr-white);
}

.rr__mail {
  justify-self: start;
  margin-left: -0.12em;
  padding: 0 0.12em 0.08em;
  color: var(--rr-white);
  font-size: clamp(22px, 5.2vw, 82px);
  line-height: 1;
  letter-spacing: -0.06em;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: transform 0.15s ease, background-color 0.1s ease, color 0.1s ease;
}

.rr__mail:hover,
.rr__mail:focus-visible {
  background: var(--rr-white);
  color: var(--rr-black);
  transform: rotate(-1.5deg);
  outline: none;
}

.rr__copy {
  height: 44px;
  min-width: 84px;
  padding: 0 16px;
  background: transparent;
  border: 0.7px solid var(--rr-white);
  border-radius: 0;
  color: var(--rr-white);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.rr__copy:hover,
.rr__copy:focus-visible,
.rr__copy.is-done {
  background: var(--rr-white);
  color: var(--rr-black);
  outline: none;
}

/* Símbolos a rotulador del manual: grandes, sueltos por toda la página, y se pueden
   arrastrar (assets/js/page.js). --x, --y: dónde empiezan; --r: giro. */
.rr__body {
  position: relative;
  overflow-x: clip; /* un dibujo llevado al borde no ensancha la página */
}

.rr__symbols {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.rr__symbol {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: clamp(130px, 19vw, 300px);
  height: auto;
  rotate: var(--r, 0deg);
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  transition: scale 0.15s ease;
}

.rr__symbol.is-dragging {
  z-index: 3;
  cursor: grabbing;
  scale: 1.08;
}

@media (max-width: 700px) {
  .rr {
    margin-bottom: -150px;
    padding-bottom: 190px;
  }

  /* En el móvil, la cabecera ocupa la pantalla entera, también lo que queda debajo de
     las barras flotantes de Safari (lvh: la altura de la pantalla sin descontarlas). */
  .rr__hero {
    height: 100vh;
    height: calc(100lvh + env(safe-area-inset-bottom));
  }

  /* Fundido: las líneas se disuelven en el gris del sello arriba y abajo, para que no
     haya un corte seco con las franjas de la hora y de la barra que pinta Safari (esas
     franjas no se pueden cubrir: son del navegador). */
  .rr__hero::before,
  .rr__hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    z-index: 1;
    height: 22%;
    pointer-events: none;
  }

  .rr__hero::before {
    top: 0;
    background: linear-gradient(#1c1c1c, rgba(28, 28, 28, 0.6) 35%, rgba(28, 28, 28, 0));
  }

  .rr__hero::after {
    bottom: 0;
    background: linear-gradient(rgba(28, 28, 28, 0), rgba(28, 28, 28, 0.6) 65%, #1c1c1c);
  }

  .rr__brand,
  .rr__hint {
    z-index: 2;
  }

  /* Esta página se dibuja de borde a borde del iPhone (viewport-fit=cover en
     build_pages.py): lo que va fijo abajo se aparta de la raya de inicio. */
  html:has(.rr) .page__header {
    bottom: calc(8px + env(safe-area-inset-bottom));
  }

  html:has(.rr) .cookies {
    bottom: calc(20px + env(safe-area-inset-bottom));
  }

  .rr__block {
    padding-left: 12px;
    padding-right: 12px;
  }

  .rr__hint {
    left: 12px;
  }

  .rr__steps {
    grid-template-columns: 1fr;
  }

  .rr__steps li {
    padding: 16px 0 24px;
    border-left: 0;
    border-bottom: 0.7px solid var(--rr-white);
  }

  .rr__steps h2 {
    margin-top: 12px;
  }

  .rr__releases li {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .rr__freq {
    display: none;
  }

  .rr__mails li {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .rr__mails .rr__n {
    grid-column: 1 / -1;
  }

  .rr__mail {
    font-size: 5.1vw;
  }

  .rr__copy {
    height: 36px;
    min-width: 0;
    padding: 0 10px;
  }
}

/* ---------- Shop: página de espera ---------- */

.shop {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 20px 40px;
  align-items: center;
  padding: 0 20px;
}

/* Los textos van siempre por delante de la liana, y arriba del todo: el título queda
   donde el de las demás páginas. */
.shop__text {
  position: relative;
  z-index: 1;
  align-self: start;
}

/* Mismo tamaño que el título del resto de páginas (.page__title). */
.shop__title {
  margin: 0;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.07em;
}

.shop__title span {
  display: inline-block;
  margin-top: 10px;
  padding: 0 14px 8px;
  background: var(--white);
  border: 0.7px solid var(--black);
  /* Mismo tamaño que tenía cuando el título era grande, aunque el título sea de 64 px. */
  font-size: clamp(32px, 5.5vw, 84px);
  line-height: 1;
  letter-spacing: -0.1em;
  transform: rotate(-3deg);
}

.shop__lead {
  max-width: 22em;
  margin: 32px 0 0;
}

.shop__form {
  max-width: 440px;
  margin-top: 28px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.shop__form label {
  display: block;
  margin-bottom: 6px;
}

.shop__form-row {
  display: flex;
  background: var(--white);
  border: 0.7px solid var(--black);
}

.shop__form input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 12px;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--black);
  font: inherit;
  letter-spacing: inherit;
}

.shop__form input:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: -2px;
}

.shop__form button {
  flex: none;
  height: 48px;
  padding: 0 18px;
  background: var(--black);
  border: 0;
  border-radius: 0;
  color: var(--white);
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.shop__form button:hover,
.shop__form button:focus-visible {
  transform: rotate(-2deg) scale(1.04);
  outline: none;
}

.shop__form.has-error .shop__form-row {
  border-width: 2px;
}

/* roto, colgado de una cuerda (assets/js/hang.js): gira solo y se balancea al tirar. */
.shop {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
}

.shop__roto {
  justify-self: center;
}

/* La liana: un SVG del tamaño de la zona, por detrás de los textos. */
.hang__rope {
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

/* Cuerda blanca retorcida. Capas, de abajo arriba: borde, fondo (las juntas), cabos
   en diagonal y una sombra a un lado que le da volumen. */
.hang__cord {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hang__cord--edge {
  stroke: #8f866f;
  stroke-width: 12.4;
}

.hang__cord--base {
  stroke: #b9b09a;
  stroke-width: 11;
}

.hang__cord--strands {
  stroke: #fbf8ef;
  stroke-width: 5;
}

.hang__cord--shade {
  stroke: rgba(92, 78, 48, 0.22);
  stroke-width: 4;
  stroke-linecap: butt;
}

/* Zona de roto. A un lado de la cabeza va escrito "roto" en blanco,
   con la tipografía de los titulares. */
.shop__roto {
  position: relative;
  --roto-h: clamp(320px, 62vh, 620px);
}

.shop__word {
  position: absolute;
  /* A un lado de la cabeza: sale por la izquierda y se mete un poco detrás de ella. */
  right: 58%;
  top: calc(var(--roto-h) * 0.1);
  z-index: -2; /* por detrás de la cuerda y de roto */
  margin: 0;
  color: var(--white);
  font-size: calc(var(--roto-h) * 0.34);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.07em;
  white-space: nowrap;
  pointer-events: none;
  filter: url("#roto-paint"); /* textura de pintura, definida en la propia página */
}

.shop__filters {
  position: absolute;
}

/* Capa de las etiquetas: del mismo tamaño que roto, encima de todo. */
.shop__roto .shop__hang--tags {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: calc(var(--roto-h) * 661 / 820);
  height: calc(var(--roto-h) * 0.935);
  cursor: auto;
  pointer-events: none;
}

/* Aviso de que se puede tirar de él: desaparece en cuanto se le toca. */
.shop__pull {
  position: absolute;
  right: -4%;
  top: 6%;
  z-index: 2;
  margin: 0;
  padding: 4px 9px 5px;
  background: var(--white);
  border: 0.7px solid var(--black);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.03em;
  transform: rotate(6deg);
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.shop__roto.is-touched .shop__pull {
  opacity: 0;
}

.shop__hang {
  position: relative;
  display: flow-root; /* para que el margen negativo de la imagen no arrastre la caja */
  transform-origin: 50% 0;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}

.shop__hang.is-grabbed {
  cursor: grabbing;
}

/* roto recortado, sin caja: la cuerda sale de lo alto de su cabeza. La imagen tiene
   un poco de aire por arriba, que se quita con el margen negativo. */
.shop__hang img {
  display: block;
  width: auto;
  height: var(--roto-h);
  margin-top: calc(var(--roto-h) * -0.065);
  aspect-ratio: 661 / 820;
  pointer-events: none;
  -webkit-user-drag: none;
}

.shop__hang img.is-flipped {
  transform: scaleX(-1);
}


/* Etiqueta de precio, colgada junto a su mano. */
.shop__tag {
  position: absolute;
  left: -10%;
  top: 58%;
  margin: 0;
  padding: 4px 12px 6px;
  background: var(--black);
  color: var(--white);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.07em;
  transform: rotate(-9deg);
  pointer-events: none;
}

/* Segunda etiqueta, blanca y pequeña, debajo del precio. */
.shop__tag--note {
  top: calc(58% + 44px);
  left: -8%;
  padding: 4px 9px 5px;
  background: var(--white);
  border: 0.7px solid var(--black);
  color: var(--black);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transform: rotate(4deg);
}

/* En pantallas medianas roto baja debajo del texto, para que ni la palabra "roto" ni
   las etiquetas pisen el titular. */
@media (max-width: 1000px) {
  .shop {
    grid-template-columns: minmax(0, 1fr);
  }

  .shop__roto {
    margin-top: 24px;
    margin-bottom: 24px;
  }
}

@media (max-width: 700px) {
  .shop {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 12px;
  }

  .shop__roto {
    margin-top: 16px;
  }

  .shop__roto {
    --roto-h: min(72vw, 320px);
    margin-bottom: 24px;
  }

  .shop__tag {
    font-size: 22px;
  }

  .shop__tag--note {
    top: calc(58% + 36px);
    font-size: 11px;
  }

  .shop__pull {
    right: -22%;
    top: -9%;
    font-size: 11px;
  }
}

/* ---------- Ajustes de móvil para las páginas (van al final para que manden) ---------- */
@media (max-width: 700px) {
  /* Hueco al final de las páginas para la barra, que en móvil es más baja. */
  .page__main {
    padding-bottom: 170px;
  }

  .page__main--flush {
    padding-bottom: 150px;
  }

  .page--fixed .page__main {
    padding-bottom: 0;
  }

  .page__next {
    top: 12px;
    right: 12px;
    width: 96px;
    padding: 3px 4px 5px;
    gap: 3px;
  }

  .page__next span {
    height: 20px;
    font-size: 9px;
  }
}

/* ---------- Arreglos de móvil de la auditoría ---------- */
@media (max-width: 700px) {
  /* Ningún texto por debajo de 11 px. */
  .micro,
  .pill__meta,
  .flyer__label,
  .footer__col li span,
  .signup__hint,
  .page__next span {
    font-size: 11px;
  }

  /* Enlaces del footer y de los reproductores: más altos, para acertar con el dedo. */
  .footer__col li {
    margin-bottom: 0;
  }

  .footer__col li a {
    margin: 0 -6px;
    padding: 9px 6px;
  }

  .player__links a {
    padding: 9px 0;
  }

  /* Menú: las pegatinas ya no flotan sobre la página. Están recogidas en un botón
     "menu" de cristal esmerilado apoyado sobre la barra; al abrirlo, la página se
     difumina y salen en grande. */
  .page__menu {
    position: absolute;
    right: 10px;
    bottom: calc(100% + 10px);
    z-index: 3;
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 16px 3px;
    background: rgba(255, 255, 255, 0.28);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 0.7px solid var(--black);
    border-radius: 0;
    color: var(--black);
    font-family: "Inter", system-ui, sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.07em;
    transform: rotate(-4deg);
    cursor: pointer;
  }

  .page__menu-veil {
    position: fixed;
    inset: 0;
    z-index: 4; /* debajo de la barra (5), encima de la página */
    display: block;
    -webkit-backdrop-filter: blur(9px);
    backdrop-filter: blur(9px);
  }

  .page__menu-veil[hidden] {
    display: none;
  }

  .page__stickers {
    display: none;
  }

  .page__header.is-open .page__stickers {
    display: flex;
    gap: 10px 8px;
    padding: 0 12px 72px 12px; /* hueco abajo para el botón */
  }

  .page__header.is-open .page__stickers a {
    padding: 8px 12px 10px;
    font-size: 28px;
    line-height: 28px;
  }

  /* Roto records: los dibujos arrastrables no asoman fuera del borde derecho. */
  .rr__symbol {
    left: min(var(--x), 54%);
  }
}

/* ---------- Events en móvil ----------
   En el móvil la página no se escala desde el Figma: los carteles van casi de dos en
   dos, y debajo el sol, la frase y roto, grandes y repartidos hacia abajo. Medidas en
   px pensadas para 375 de ancho; los anchos siguen al ancho de la pantalla (vw). */
@media (max-width: 700px) {
  .events-page {
    height: 930px;
  }

  .slider--events {
    top: 12px;
  }

  .slider--events .slider__track li {
    width: 46vw; /* dos carteles y un poco del tercero */
    margin-right: 6px;
  }

  .events-page__sun {
    top: 235px;
    left: -6vw;
    width: 80vw;
    height: 84vw;
  }

  .events-page__sun img {
    width: 64vw;
    height: 85vw;
  }

  .events-page__caution {
    top: 510px;
    left: 12px;
    width: 56vw;
    height: 37.7vw; /* misma proporción que en el Figma (547 × 368) */
  }

  .events-page__mono {
    top: 600px;
    right: -3vw;
    width: 76vw;
    height: 76vw;
  }
}

/* Footer del móvil, corto: en [explore] solo home, tickets, mundo y contacto (los que
   llevan .is-mobile, ver FOOTER_MOBILE en tools/build_pages.py) y, de las columnas, solo
   [crue]. [contact] y [follow] se quedan para el ordenador. */
@media (max-width: 700px) {
  .footer__col--desktop,
  .footer__links li:not(.is-mobile) {
    display: none;
  }

  .footer__home {
    display: list-item;
  }

  .footer__links {
    columns: 1;
  }
}

/* ---------- Pegatinas en tableta (701–900 px) ----------
   El mismo montón torcido del ordenador, con las posiciones del Figma, pero a una
   escala algo mayor (--b: 1 px del frame = 1/1000 del ancho de la barra) y pegado al
   borde derecho, para que se lean bien y no se convierta en una fila de etiquetas. */
@media (min-width: 701px) and (max-width: 900px) {
  .page__stickers {
    --b: calc(100cqw / 1000);
    top: 0;
    bottom: auto;
    display: block;
    height: 0;
    padding: 0;
  }

  .page__stickers a {
    position: absolute;
    top: calc(var(--b) * (var(--y) - 857));
    left: calc(100cqw - var(--b) * (1492 - var(--x)));
    width: calc(var(--b) * var(--w));
    height: calc(var(--b) * var(--h));
    padding: 0;
    font-size: calc(var(--b) * 36);
    line-height: 1;
    transform: translate(-50%, -50%) rotate(var(--r, 0deg));
  }
}

/* ---------- Móvil: zonas para el dedo y textos mínimos (repaso de la auditoría) ----------
   Lo que se ve no cambia: solo crece la zona que se puede tocar (unos 40 px de alto)
   y ningún texto baja de 11 px. */
@media (max-width: 700px) {
  /* Pegatinas de la portada: zona de toque invisible algo mayor que la pegatina. */
  .sticker::after {
    content: "";
    position: absolute;
    inset: -8px -3px;
  }

  .hi__mail,
  .rr__mail,
  .roto-show__card figcaption a {
    display: inline-block;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .ticket__lineup a {
    display: inline-block;
    padding: 7px 0;
  }

  .artists__year a.artists__play {
    width: 30px;
    height: 28px;
    font-size: 11px;
    vertical-align: 4px;
  }

  .puppet-nav__button {
    height: 44px;
  }

  .crue__next span {
    font-size: 11px;
  }
}

/* ---------- Aviso de cookies (assets/js/cookies.js) ----------
   Caja blanca abajo a la izquierda, por encima de todo, con dos botones iguales:
   rechazar pesa lo mismo que aceptar. */
.cookies {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 2000;
  width: min(380px, calc(100vw - 24px));
  padding: 16px;
  background: var(--white);
  border: 0.7px solid var(--black);
  color: var(--black);
  transform: rotate(-1deg);
}

.cookies[hidden] {
  display: none;
}

/* En las páginas, por encima de la barra blanca fija para no tapar el logo. */
.page .cookies {
  bottom: 170px;
}

.cookies__title {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.07em;
}

.cookies__text {
  margin: 0 0 14px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.cookies__text a {
  color: inherit;
}

.cookies__buttons {
  display: flex;
  gap: 8px;
}

.cookies__buttons .cta {
  flex: 1;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 13px;
}

/* Botón del reproductor para aceptar las cookies de SoundCloud ahí mismo. */
.player__allow {
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.footer__legal a {
  color: inherit;
}

@media (max-width: 700px) {
  .cookies,
  .page .cookies {
    left: 12px;
    bottom: 76px; /* encima de la barra baja del móvil */
    transform: none;
  }
}

/* ---------- Páginas legales (page-content/legal/) ----------
   Texto largo para leer: columna estrecha, letra de máquina y titulares de la web. */
.legal {
  max-width: 760px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.legal h2 {
  margin: 40px 0 12px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.07em;
}

.legal h3 {
  margin: 24px 0 8px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.05em;
}

.legal p,
.legal ul {
  margin: 0 0 12px;
}

.legal ul {
  padding-left: 20px;
}

.legal a {
  color: inherit;
}

.legal__date {
  font-size: 11px;
}

.legal__data {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 20px;
  margin: 0;
  padding: 14px 0;
  border-top: 0.7px solid var(--black);
  border-bottom: 0.7px solid var(--black);
}

.legal__data dt {
  font-size: 11px;
  line-height: 22px;
}

.legal__data dd {
  margin: 0;
}

/* Tablas de cookies: en el móvil se pueden desplazar de lado sin romper la página. */
.legal__table {
  display: block;
  overflow-x: auto;
  margin: 0 0 12px;
  border-collapse: collapse;
  font-size: 12px;
}

.legal__table th,
.legal__table td {
  padding: 8px 12px 8px 0;
  border-bottom: 0.7px solid var(--black);
  text-align: left;
  vertical-align: top;
}

.legal__table th {
  font-weight: 400;
  font-size: 11px;
}

.legal .cta {
  font-family: inherit;
}

.legal__see {
  margin-top: 40px !important;
}

/* Enlaces legales del footer, en la línea de abajo. */
.footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.signup__legal a,
.signup__check a {
  color: inherit;
}

@media (max-width: 700px) {
  /* Enlaces legales del footer: zona de toque de unos 40 px. */
  .footer__legal-links a {
    display: inline-block;
    padding: 11px 0;
  }
}
