/* estilos de la web en un solo archivo: variables, base y un bloque por componente,
   mobile first (768 / 1024). el login va en login.css */

/* tipografía */
@font-face {
  font-family: "OT Miniature";
  src: url("../type/OTMiniature-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../type/Inter-VariableFont.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../type/Inter-Italic-VariableFont.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}


/* variables */
:root {
  /* colores */
  --naranja: #FD5014;
  --naranja-press: #D93A1F;
  --azul: #183876;
  --azul-ink: #1C3166;
  --azul-40: #A3AFC8;
  --azul-20: #D1D7E4;
  --azul-10: #E8EBF1;
  --blanco: #FFFFFF;

  /* z-index */
  --z-header: 100;
  --z-buybar: 102;
  --z-footer: 101;

  /* font */
  --font-display: "OT Miniature", "Georgia", serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* font sizes */
  --fs-148: 9.25rem;
  --fs-120: 7.5rem;
  --fs-88: 5.5rem;
  --fs-80: 5rem;
  --fs-64: 4rem;
  --fs-56: 3.5rem;
  --fs-48: 3rem;
  --fs-40: 2.5rem;
  --fs-36: 2.25rem;
  --fs-32: 2rem;
  --fs-28: 1.75rem;
  --fs-24: 1.5rem;
  --fs-22: 1.375rem;
  --fs-20: 1.25rem;
  --fs-19: 1.1875rem;
  --fs-18: 1.125rem;
  --fs-16: 1rem;
  --fs-14: 0.875rem;
  --fs-13: 0.8125rem;
  --fs-12: 0.75rem;

  /* font weights */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 700;

  /* line heights */
  --lh-90: 0.9;
  --lh-100: 1;
  --lh-104: 1.04;
  --lh-110: 1.1;
  --lh-120: 1.2;
  --lh-124: 1.24;
  --lh-130: 1.3;
  --lh-137-5: 1.375;
  --lh-140: 1.4;
  --lh-150: 1.5;

  /* letter spacing */
  --ls--0-5: -0.005em;
  --ls--1: -0.01em;
  --ls--2: -0.02em;
  --ls--3: -0.03em;
  --ls--3-5: -0.035em;
  --ls-6: 0.06em;
  --ls-8: 0.08em;
  --ls-9: 0.09em;

  /* spacing */
  --space-2: 0.125rem;
  --space-4: 0.25rem;
  --space-6: 0.375rem;
  --space-8: 0.5rem;
  --space-10: 0.625rem;
  --space-12: 0.75rem;
  --space-14: 0.875rem;
  --space-16: 1rem;
  --space-20: 1.25rem;
  --space-22: 1.375rem;
  --space-24: 1.5rem;
  --space-32: 2rem;
  --space-40: 2.5rem;
  --space-44: 2.75rem;
  --space-48: 3rem;
  --space-56: 3.5rem;
  --space-64: 4rem;
  --space-80: 5rem;
  --space-104: 6.5rem;
  --space-116: 7.25rem;
  --space-132: 8.25rem;
  --space-140: 8.75rem;
  --space-190: 11.875rem;

  /* alturas de controles: botones, toggle, enlaces del menú */
  --size-40: 2.5rem;
  --size-48: 3rem;
  --size-52: 3.25rem;
  --size-60: 3.75rem;
  --size-68: 4.25rem;
  --size-80: 5rem;
  --size-120: 7.5rem;

  /* radius */
  --radius-4: 4px;
  --radius-8: 8px;
  --radius-12: 12px;
  --radius-16: 16px;
  --radius-24: 24px;
  --radius-40: 40px;
  --radius-full: 999px;

  /* márgenes laterales de página */
  --gutter: var(--space-20);
}


/* ==========================================================================
   reset
   ========================================================================== */

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

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: clip;
}

body {
  position: relative;
  background: var(--blanco, #FFFFFF);
  color: var(--azul, #183876);
  font-family: var(--font-body);
  font-size: var(--fs-16);
  line-height: var(--lh-150);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* quito márgenes por defecto de los bloques de texto */
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
  font-weight: normal;
}

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

/* height auto para que las imágenes de WP (con width/height) no se deformen */
img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

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

/* texto seleccionado */
::selection {
  background: var(--azul, #183876);
  color: var(--blanco, #FFFFFF);
}

/* secciones que reciben el foco al ir a un ancla (main.js): sin contorno */
[tabindex="-1"]:focus {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* lenis: estilos que recomienda la librería para que el scroll suave no choque con el nativo */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}

.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch] {
  overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

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

/* solo aparece al tabular, para saltar directo al contenido */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: var(--space-12) var(--space-16);
  background: var(--blanco, #FFFFFF);
  color: var(--azul, #183876);
  transform: translateY(-100%);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* botón de compra: píldora con flecha (ticket-button.php). también en cookies y login */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-10);
  min-height: var(--size-52);
  padding: 0 var(--space-24);
  border-radius: var(--radius-full);
  background: var(--naranja, #FD5014);
  color: var(--blanco, #FFFFFF);
  font-family: var(--font-body);
  font-size: var(--fs-19);           /* 19px en negrita: texto grande para WCAG, basta 3:1 sobre el naranja */
  font-weight: var(--fw-bold);
  line-height: var(--lh-110);
  letter-spacing: var(--ls--0-5);
  white-space: nowrap;
}

/* el contorno blanco no se vería sobre el fondo de la página */
.btn:focus-visible {
  outline-color: var(--azul, #183876);
}

.btn__label {
  display: block;
}

.btn__price {
  white-space: nowrap;
}

.btn__icon {
  flex-shrink: 0;
  width: var(--space-16);
  height: auto;
}

/* grande: hero y cta */
.btn--lg {
  gap: var(--space-14);
  min-height: var(--size-60);
  padding: 0 var(--space-32);
}

/* pequeño: aviso de cookies. con texto de 14px va en azul, el blanco sobre naranja no da contraste */
.btn--sm {
  min-height: var(--size-40);
  padding: 0 var(--space-16);
  font-size: var(--fs-14);
}

/* versión azul (sobre fondos naranja y en el aviso de cookies) */
.btn--azul {
  background: var(--azul, #183876);
}

/* a todo el ancho del contenedor (menú mobile, barra fija) */
.btn--block {
  width: 100%;
}

/* venta cerrada: aviso sin aspecto de botón activo (no es un enlace).
   el texto es libre, así que puede partirse en dos líneas en lugar de salirse */
.btn--closed {
  max-width: 100%;
  padding-block: var(--space-12);
  background: var(--azul-10, #E8EBF1);
  color: var(--azul, #183876);
  text-align: center;
  text-wrap: balance;
  white-space: normal;
  cursor: default;
}

/* titular display (OT Miniature) */
.display {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-90);
  letter-spacing: var(--ls--2);
}

/* rótulo en versalitas (eyebrow, horario...) */
.label {
  font-family: var(--font-body);
  font-size: var(--fs-12);
  font-weight: var(--fw-bold);
  line-height: var(--lh-130);
  letter-spacing: var(--ls-8);
  text-transform: uppercase;
}

/* contenido de una línea de titular: es lo que sube dentro de la máscara (reveal.js) */
.reveal-line {
  display: block;
}


/* tablet */
@media (min-width: 768px) {

  :root {
    --gutter: var(--space-40);
  }

}

/* desktop */
@media (min-width: 1024px) {

  :root {
    --gutter: var(--space-64);
  }

  .btn {
    min-height: var(--size-60);
  }

  .btn--lg {
    min-height: var(--size-68);
  }

  .btn--sm {
    min-height: var(--size-40);
  }

}


/* ==========================================================================
   HOVERS (solo desktop)
   ========================================================================== */

@media (hover: hover) and (min-width: 1024px) {

  .btn {
    transition: background-color 0.4s ease, color 0.4s ease;
  }

  .btn__icon {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .btn:not(.btn--closed):hover {
    background: var(--naranja-press, #D93A1F);
  }

  .btn--azul:not(.btn--closed):hover {
    background: var(--azul-ink, #1C3166);
  }

  .btn:hover .btn__icon {
    transform: translateX(var(--space-4));
  }

}


/* ##########################################################################
   HEADER: template-parts/components/header.php
   ########################################################################## */

/* header */

/* ==========================================================================
   MOBILE
   ========================================================================== */

.header {
  position: fixed;
  top: var(--wp-admin--admin-bar--height, 0px);
  left: 0;
  right: 0;
  z-index: var(--z-header);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* se esconde al bajar y vuelve al subir (header.js); con el menú abierto no se mueve */
.header.is-hidden:not(.is-menu-open) {
  transform: translateY(calc(-100% - var(--wp-admin--admin-bar--height, 0px)));
}

.header__bar {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  padding: var(--space-16) var(--gutter);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s ease, padding 0.4s ease;
}

/* fondo con blur en un pseudo: en la propia barra, el backdrop-filter
   haría de contenedor del panel fijo del menú */
.header__bar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--blanco, #FFFFFF) 72%, transparent);
  -webkit-backdrop-filter: blur(var(--space-16)) saturate(1.4);
  backdrop-filter: blur(var(--space-16)) saturate(1.4);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* fuera de la primera pantalla: fondo translúcido con lo de debajo desenfocado */
.header.is-scrolled .header__bar {
  border-bottom-color: color-mix(in srgb, var(--azul-10, #E8EBF1) 70%, transparent);
}

.header.is-scrolled .header__bar::before {
  opacity: 1;
}

/* sin backdrop-filter, fondo blanco */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header__bar::before {
    background: var(--blanco, #FFFFFF);
  }
}

.header__logo {
  position: relative;
  z-index: 1;
  display: block;
  flex-shrink: 0;
  color: var(--naranja, #FD5014);
}

.header__logo-img {
  width: auto;
  height: var(--space-40);
}

/* menú mobile y tablet: panel a pantalla completa */
.header__nav {
  position: fixed;
  inset: var(--wp-admin--admin-bar--height, 0px) 0 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-48);
  overflow-y: auto;
  padding: var(--space-116) var(--gutter) var(--space-32);
  background: var(--blanco, #FFFFFF);
  visibility: hidden;
}

.header.is-menu-open .header__nav {
  visibility: visible;
}

.header__menu {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

/* en el panel las anclas van con la display, como los titulares de la web */
.header__link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--fs-48);
  font-weight: var(--fw-bold);
  line-height: var(--lh-100);
  letter-spacing: var(--ls--2);
  color: var(--azul, #183876);
  transition: color 0.3s ease;
}

/* sección visible en pantalla (header.js) */
.header__item.is-current .header__link {
  color: var(--naranja, #FD5014);
}

.header__nav-footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.header__nav-info {
  color: var(--azul, #183876);
  text-align: center;
}

.header__actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--space-12);
}

/* en mobile la compra está en la barra fija inferior y en el menú */
.header__cta {
  display: none;
}

.header__toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  width: var(--size-48);
  height: var(--size-48);
  border-radius: var(--radius-full);
  background: var(--azul, #183876);
}

.header__toggle-line {
  display: block;
  width: var(--space-20);
  height: var(--space-2);
  border-radius: 2px;
  background: var(--blanco, #FFFFFF);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* las dos líneas se cruzan en el centro */
.header.is-menu-open .header__toggle-line:first-child {
  transform: translateY(calc((var(--space-6) + var(--space-2)) / 2)) rotate(45deg);
}

.header.is-menu-open .header__toggle-line:last-child {
  transform: translateY(calc((var(--space-6) + var(--space-2)) / -2)) rotate(-45deg);
}

/* apertura del menú: el panel baja como una cortina, las anclas suben en su
   máscara una detrás de otra y al final entra el pie. al cerrar solo sube el
   panel, rápido, y lo de dentro vuelve a su sitio cuando ya no se ve */
@media (max-width: 1023.98px) {

  .header__nav {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.35s cubic-bezier(0.5, 0, 0.75, 0), visibility 0s linear 0.35s;
  }

  .header.is-menu-open .header__nav {
    clip-path: inset(0);
    transition: clip-path 0.6s cubic-bezier(0.76, 0, 0.24, 1), visibility 0s;
  }

  /* el padding deja sitio a los descendentes sin mover el layout */
  .header__link {
    overflow: hidden;
    padding-block: 0.1em;
    margin-block: -0.1em;
  }

  .header__link-text {
    display: inline-block;
    transform: translateY(120%);
    transition: transform 0s 0.35s;
  }

  .header__item:nth-child(2) { --i: 1; }
  .header__item:nth-child(3) { --i: 2; }
  .header__item:nth-child(4) { --i: 3; }
  .header__item:nth-child(5) { --i: 4; }
  .header__item:nth-child(6) { --i: 5; }

  .header.is-menu-open .header__link-text {
    transform: none;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1) calc(0.25s + var(--i, 0) * 0.06s);
  }

  .header__nav-footer {
    opacity: 0;
    transform: translateY(var(--space-16));
    transition: opacity 0s 0.35s, transform 0s 0.35s;
  }

  .header.is-menu-open .header__nav-footer {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s cubic-bezier(0.33, 1, 0.68, 1) 0.5s, transform 0.6s cubic-bezier(0.33, 1, 0.68, 1) 0.5s;
  }

}

/* ==========================================================================
   TABLET (>= 768px)
   ========================================================================== */

@media (min-width: 768px) {

  .header__bar {
    padding-block: var(--space-24);
  }

  .header.is-scrolled .header__bar {
    padding-block: var(--space-16);
  }

  .header__logo-img {
    height: var(--space-48);
  }

  .header__nav {
    padding-top: var(--space-140);
  }

  .header__link {
    font-size: var(--fs-64);
  }

  /* el panel no ocupa todo el ancho: botón e info alineados a la izquierda */
  .header__nav-footer {
    align-items: flex-start;
  }

  .header__nav-cta {
    width: auto;
  }

  /* desde tablet el botón de compra vuelve al header, más pequeño que el resto */
  .header__cta {
    display: inline-flex;
    max-width: 20rem;
    min-height: var(--size-48);
    padding: 0 var(--space-20);
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.4s ease, padding 0.4s ease, margin 0.4s ease, opacity 0.3s ease, visibility 0.4s;
  }

  /* en la portada no aparece hasta que el botón de la hero sale de pantalla (header.js).
     se pliega a ancho 0 para que el menú ocupe su sitio */
  .js .home .header:not(.is-cta-shown) .header__cta {
    max-width: 0;
    margin-right: calc(var(--space-12) * -1);
    padding-inline: 0;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

}

/* ==========================================================================
   DESKTOP (>= 1024px)
   ========================================================================== */

@media (min-width: 1024px) {

  .header__bar {
    gap: var(--space-32);
    padding-block: var(--space-32);
  }

  /* 53px */
  .header__logo-img {
    height: calc(var(--space-48) + var(--space-4) + 1px);
  }

  .header__nav {
    position: static;
    display: block;
    margin-left: auto;
    overflow: visible;
    padding: 0;
    background: none;
    visibility: visible;
  }

  .header__menu {
    flex-direction: row;
    align-items: center;
    gap: var(--space-24);
  }

  .header__link {
    display: flex;
    align-items: center;
    min-height: var(--size-48);
    font-family: var(--font-body);
    font-size: var(--fs-13);
    font-weight: var(--fw-bold);
    line-height: var(--lh-130);
    letter-spacing: var(--ls-9);
    text-transform: uppercase;
    white-space: nowrap;
  }

  .header__nav-footer,
  .header__toggle {
    display: none;
  }

  .header__actions {
    transition: margin 0.4s ease;
  }

  /* sin botón (venta cerrada) el bloque queda vacío: que no ocupe hueco */
  .header__actions:not(:has(.header__cta)) {
    display: none;
  }

  /* con el botón plegado, sin el hueco entre el menú y el botón */
  .js .home .header:not(.is-cta-shown) .header__actions:has(.header__cta) {
    margin-left: calc(var(--space-32) * -1);
  }

  .js .home .header:not(.is-cta-shown) .header__cta {
    margin-right: 0;
  }

}

/* ==========================================================================
   MOVIMIENTO REDUCIDO
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

  .header,
  .header__bar,
  .header__bar::before,
  .header__toggle-line,
  .header__link,
  .header__cta,
  .header__actions,
  .header__nav,
  .header__link-text,
  .header__nav-footer,
  .header.is-menu-open .header__nav,
  .header.is-menu-open .header__link-text,
  .header.is-menu-open .header__nav-footer {
    transition: none;
  }

}

/* ==========================================================================
   HOVERS (solo desktop)
   ========================================================================== */

@media (hover: hover) and (min-width: 1024px) {

  .header__link:hover {
    color: var(--naranja, #FD5014);
  }

}


/* ##########################################################################
   HERO: template-parts/components/hero.php
   ########################################################################## */

/* hero: titular, texto, fecha, compra e ilustración.
   en desktop se ajusta al alto del navegador */

/* ==========================================================================
   MOBILE
   ========================================================================== */

.hero {
  /* medidas de referencia a 1440 */
  --hero-content-width: 47.125rem;   /* 754px */
  --hero-text-width: 33.375rem;      /* 534px */
  --hero-media-top: 7.625rem;        /* 122px, bajo el header */
  --hero-media-ratio: 1.1443;        /* alto / ancho de la ilustración */
  --hero-media-max: 52rem;           /* ancho máximo */

  /* mobile; tablet y desktop los redefinen */
  --hero-title-size: 17.5vw;
  --hero-text-size: var(--fs-18);
  --hero-when-size: var(--fs-24);
  --hero-gap-text: var(--space-24);
  --hero-gap-data: var(--space-40);
  --hero-gap-cta: var(--space-24);
  --hero-gap-info: var(--space-8);

  position: relative;
  isolation: isolate;
  padding: var(--space-104) var(--gutter) 0;
  overflow-x: clip;
}

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--hero-title-size);
  font-weight: var(--fw-bold);
  line-height: var(--lh-100);
  letter-spacing: var(--ls--3-5);
  color: var(--naranja, #FD5014);
}

/* cada línea del campo, una línea del titular */
.hero__title-line {
  display: block;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
  max-width: var(--hero-text-width);
  margin-top: var(--hero-gap-text);
  font-size: var(--hero-text-size);
  font-weight: var(--fw-medium);
  line-height: var(--lh-130);
  color: var(--azul, #183876);
}

.hero__text p {
  margin: 0;
}

.hero__data {
  display: flex;
  flex-direction: column;
  gap: var(--hero-gap-cta);
  margin-top: var(--hero-gap-data);
}

.hero__info {
  display: flex;
  flex-direction: column;
  gap: var(--hero-gap-info);
  color: var(--azul, #183876);
}

.hero__meta {
  font-size: var(--fs-14);
  letter-spacing: var(--ls-6);
}

.hero__when {
  font-family: var(--font-display);
  font-size: var(--hero-when-size);
  font-weight: var(--fw-bold);
  line-height: var(--lh-140);
}

.hero__date,
.hero__place {
  display: block;
}

.hero__date {
  color: var(--naranja, #FD5014);
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-12);
}

.hero__note {
  font-size: var(--fs-14);
  font-weight: var(--fw-medium);
  font-style: italic;
  line-height: var(--lh-150);
  color: var(--azul, #183876);
}

/* multiply para fundirla con el fondo, a sangre por la derecha */
.hero__media {
  position: relative;
  z-index: 1;
  width: calc(100% + var(--gutter));
  margin: var(--space-40) calc(var(--gutter) * -1) 0 auto;
  mix-blend-mode: multiply;
}

.hero__img {
  width: 100%;
  height: auto;
}

/* ==========================================================================
   TABLET (>= 768px)
   ========================================================================== */

@media (min-width: 768px) {

  .hero {
    --hero-title-size: min(15vw, var(--fs-148));
    --hero-text-size: var(--fs-20);
    --hero-when-size: var(--fs-28);
    --hero-gap-text: var(--space-40);
    --hero-gap-data: var(--space-56);

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: var(--space-32);
    padding-top: var(--space-140);
    padding-bottom: var(--space-64);
  }

  /* el titular ocupa las dos columnas */
  .hero__content {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .hero__text,
  .hero__data {
    width: calc(50% - var(--space-16));
  }

  .hero__text {
    line-height: var(--lh-120);
  }

  /* ilustración en la segunda columna, abajo */
  .hero__media {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    width: calc(100% + var(--gutter));
    margin: 0 calc(var(--gutter) * -1) 0 0;
  }

}

/* ==========================================================================
   DESKTOP (>= 1024px)
   alto del navegador entre 700 y 1003px. --hero-t va de 0 a 303px y cada medida
   interpola entre su valor a 700 y a 1003: min + t * (max - min) / 303
   ========================================================================== */

@media (min-width: 1024px) {

  .hero {
    --hero-h-min: 43.75rem;   /* 700px */
    --hero-h-max: 62.6875rem; /* 1003px */
    --hero-h: clamp(var(--hero-h-min), 100svh, var(--hero-h-max));
    --hero-t: calc(var(--hero-h) - var(--hero-h-min));

    --hero-title-size: min(10.28vw, calc(var(--fs-88) + var(--hero-t) * 0.198));  /* 88 - 148px */
    --hero-text-size: calc(var(--fs-18) + var(--hero-t) * 0.0066);                /* 18 - 20px */
    --hero-when-size: calc(var(--fs-22) + var(--hero-t) * 0.0198);                /* 22 - 28px */
    --hero-gap-text: calc(var(--space-24) + var(--hero-t) * 0.0792);              /* 24 - 48px */
    --hero-gap-data: calc(var(--space-24) + var(--hero-t) * 0.1848);              /* 24 - 80px */
    --hero-gap-cta: calc(var(--space-16) + var(--hero-t) * 0.0528);               /* 16 - 32px */
    --hero-gap-info: var(--space-10);
    --hero-pad-bottom: calc(var(--space-16) + var(--hero-t) * 0.1584);            /* 16 - 64px */

    /* el ancho que cabe entre el header y el margen inferior */
    --hero-media-width: min(49.58vw, var(--hero-media-max), calc((var(--hero-h) - var(--hero-media-top) - var(--hero-pad-bottom)) / var(--hero-media-ratio)));

    display: block;
    min-height: var(--hero-h);
    padding-top: var(--space-132);
    padding-bottom: var(--hero-pad-bottom);
  }

  .hero__content {
    max-width: var(--hero-content-width);
  }

  .hero__title {
    white-space: nowrap;
  }

  .hero__text,
  .hero__data {
    width: auto;
  }

  /* que no quede bajo la ilustración entre 1024 y 1300 */
  .hero__text {
    max-width: min(var(--hero-text-width), calc(100vw - var(--hero-media-width) - var(--gutter) - var(--space-32)));
  }

  /* por encima del titular */
  .hero__media {
    position: absolute;
    top: var(--hero-media-top);
    right: 0;
    width: var(--hero-media-width);
    margin: 0;
  }

}

/* ##########################################################################
   SHOWS: template-parts/components/shows.php
   ########################################################################## */

/* el evento: momentos del día. en desktop, tres columnas (199 / 644 / 421 a 1440) */

/* ==========================================================================
   MOBILE
   ========================================================================== */

.shows {
  --shows-title-size: var(--fs-40);
  --shows-title-gap: var(--space-24);
  --show-head-size: var(--fs-28);      /* hora y lugar */
  --show-text-size: var(--fs-16);
  --show-vs-size: var(--fs-24);
  --show-lineup-size: 8.2vw;            /* 32px a 390 */
  --show-pad: var(--space-32);
  --show-gap: var(--space-24);

  padding: var(--space-64) var(--gutter);
  color: var(--azul, #183876);
}

.shows__title {
  padding-bottom: var(--shows-title-gap);
  font-family: var(--font-display);
  font-size: var(--shows-title-size);
  font-weight: var(--fw-bold);
  line-height: var(--lh-124);
}

.shows__title-line {
  display: block;
}

/* línea encima de cada fila: pseudo en lugar de borde para poder dibujarla (reveal.js).
   el borde transparente conserva el píxel que ocupaba */
.show {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-block: var(--show-pad);
  border-top: 1px solid transparent;
}

.show::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--azul, #183876);
  transform: scaleX(var(--line-scale, 1));
  transform-origin: left;
}

/* al ancho del texto, para centrar la pincelada */
.show__time {
  position: relative;
  isolation: isolate;
  justify-self: start;
  font-family: var(--font-display);
  font-size: var(--show-head-size);
  font-weight: var(--fw-bold);
  line-height: var(--lh-100);
  color: var(--naranja, #FD5014);
}

.show__time-text {
  position: relative;
}

/* pincelada detrás de la hora */
.show__stroke {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: auto;
  max-width: none;
  height: var(--stroke-h, 150%);
  transform: translate(-50%, -50%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.show__place {
  margin-top: var(--space-8);
  font-family: var(--font-display);
  font-size: var(--show-head-size);
  font-weight: var(--fw-bold);
  line-height: var(--lh-100);
}

.show__text {
  margin-top: var(--space-8);
  font-size: var(--show-text-size);
  line-height: var(--lh-140);
}

.show__match,
.show__lineup {
  margin-top: var(--show-gap);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  color: var(--naranja, #FD5014);
}

.show__team,
.show__vs {
  display: block;
}

/* equipos al tamaño de los grupos del cartel */
.show__team {
  font-size: var(--show-lineup-size);
  line-height: var(--lh-124);
}

.show__vs {
  font-size: var(--show-vs-size);
  line-height: var(--lh-104);
}

.show__lineup {
  font-size: var(--show-lineup-size);
  line-height: var(--lh-124);
  text-wrap: pretty;
}

/* inline-block para poder moverlo; el espacio entre spans sigue partiendo la línea */
.show__artist {
  display: inline-block;
}

/* texto libre bajo el destacado, como la descripción */
.show__info {
  margin-top: var(--space-16);
  font-size: var(--show-text-size);
  line-height: var(--lh-140);
}

/* cuerpo técnico de cada equipo (solo en el partido) */
.show__staff {
  --person-img: var(--size-80);

  display: grid;
  gap: var(--space-32);
  margin-top: var(--show-gap);
}

.show__staff-title {
  font-size: var(--fs-13);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-9);
  text-transform: uppercase;
}

.show__people {
  display: grid;
  gap: var(--space-16);
  margin-top: var(--space-16);
}

.show__person {
  display: flex;
  align-items: center;
  gap: var(--space-16);
}

.show__person-img {
  flex-shrink: 0;
  width: var(--person-img);
  height: var(--person-img);
  object-fit: cover;
  object-position: 50% 20%;
  background: var(--azul-10, #E8EBF1);
}

.show__person-role,
.show__person-name {
  display: block;
}

.show__person-role {
  font-size: var(--fs-14);
  font-weight: var(--fw-bold);
  line-height: var(--lh-124);
}

.show__person-name {
  margin-top: var(--space-2);
  font-size: var(--show-text-size);
  line-height: var(--lh-124);
}

/* reclamo al final de la fila (la foto con la copa). en mobile, titular a todo el ancho
   y la imagen debajo, todo centrado; desde tablet, la imagen a la derecha del titular */
.show__promo {
  --promo-img-h: 18rem;

  display: grid;
  justify-items: center;
  gap: var(--space-24);
  margin-top: 64px;
  text-align: center;
}

.show__promo-title {
  justify-self: stretch;
  font-family: var(--font-display);
  font-size: var(--show-lineup-size);
  font-weight: var(--fw-bold);
  line-height: var(--lh-104);
  text-wrap: balance;
}

.show__promo-img {
  width: auto;
  height: var(--promo-img-h);
}

/* ==========================================================================
   TABLET (>= 768px)
   ========================================================================== */

@media (min-width: 768px) {

  .shows {
    --shows-title-size: var(--fs-56);
    --shows-title-gap: var(--space-32);
    --show-head-size: var(--fs-32);
    --show-text-size: var(--fs-18);
    --show-vs-size: var(--fs-32);
    --show-lineup-size: min(5.5vw, var(--fs-48));     /* 42px a 768 */
    --show-pad: var(--space-40);
    --show-gap: var(--space-32);

    padding-block: var(--space-80);
  }

  /* hora a la izquierda, el resto en la segunda columna. hora y lugar en la misma línea base */
  .show {
    grid-template-columns: var(--space-140) minmax(0, 1fr);
    column-gap: var(--space-24);
    align-items: baseline;
  }

  .show__time {
    grid-column: 1;
    grid-row: 1;
  }

  .show__place,
  .show__text,
  .show__match,
  .show__lineup,
  .show__info,
  .show__staff,
  .show__promo {
    grid-column: 2;
  }

  .show__promo {
    --promo-img-h: 16rem;

    grid-template-columns: minmax(0, max-content) auto;   /* la copa pegada al titular, no al borde */
    justify-content: start;
    justify-items: start;
    align-items: center;
    text-align: left;
  }

  /* un equipo por columna */
  .show__staff {
    --person-img: var(--size-120);

    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-24);
  }

  .show__place {
    grid-row: 1;
    margin-top: 0;
  }

}

/* ==========================================================================
   DESKTOP (>= 1024px)
   la columna de la hora no baja de 160px para que quepa «Después...»
   ========================================================================== */

@media (min-width: 1024px) {

  .shows {
    --shows-title-size: var(--fs-64);
    --show-head-size: clamp(var(--fs-32), 2.78vw, var(--fs-40));   /* 40px a 1440 */
    --show-vs-size: min(2.78vw, var(--fs-40));                     /* 40px a 1440 */
    --show-lineup-size: min(4.44vw, var(--fs-64));                 /* 64px a 1440 */
    --show-pad: var(--space-48);
    --show-gap: var(--space-48);
  }

  .show {
    grid-template-columns: minmax(10rem, 199fr) minmax(0, 644fr) minmax(0, 421fr);
  }

  .show__text {
    grid-column: 3;
    grid-row: 1;
    margin-top: 0;
  }

  .show__match,
  .show__lineup,
  .show__info,
  .show__staff,
  .show__promo {
    grid-column: 2 / -1;
  }

  .show__promo {
    --promo-img-h: 24rem;

    gap: var(--space-48);
  }

}

/* ##########################################################################
   CTA: template-parts/components/cta.php
   ########################################################################## */

/* banda de compra. la palabra entre asteriscos del campo lleva la pincelada (.cta__mark) */

/* ==========================================================================
   MOBILE
   ========================================================================== */

.cta {
  --cta-title-size: min(10.25vw, var(--fs-40));   /* «nos acerca al reto.» en una línea */
  --cta-gap: var(--space-32);
  --cta-media-width: min(80vw, 22rem);
  --cta-media-bleed: var(--space-48);             /* lo que sobresale la ilustración por abajo */

  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  padding: var(--space-64) var(--gutter) 0;
  background: var(--naranja, #FD5014);
  color: var(--blanco, #FFFFFF);
}

.cta__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--cta-gap);
  text-align: center;
}

.cta__title {
  font-family: var(--font-display);
  font-size: var(--cta-title-size);
  font-weight: var(--fw-bold);
  line-height: var(--lh-104);
}

.cta__title-line {
  display: block;
}

/* pincelada en em para que escale con el texto. sin multiply, que apagaría el amarillo */
.cta__mark {
  position: relative;
  white-space: nowrap;
}

.cta__mark::before {
  content: "";
  position: absolute;
  top: -1.05em;
  left: -0.31em;
  z-index: -1;
  width: 3.69em;
  height: 2.95em;
  background: url("../img/stroke-mark.webp") center / contain no-repeat;
  clip-path: inset(0 var(--mark-hidden, 0%) 0 0);
  pointer-events: none;
}

.cta__media {
  justify-self: center;
  width: var(--cta-media-width);
  margin: var(--space-40) 0 calc(var(--cta-media-bleed) * -1);
}

.cta__img {
  width: 100%;
  height: auto;
}

/* ==========================================================================
   TABLET (>= 768px)
   ========================================================================== */

@media (min-width: 768px) {

  .cta {
    --cta-title-size: 5.2vw;                      /* la frase cabe en media columna */
    --cta-gap: var(--space-40);
    --cta-media-width: min(38vw, 22rem);
    --cta-media-x: 25%;                           /* centro de la ilustración */

    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: var(--space-24);
    padding-block: var(--space-80);
  }

  .cta__content {
    grid-column: 2;
    align-self: center;
    align-items: flex-start;
    text-align: left;
  }

  /* fuera del flujo: centrada en la mitad izquierda y cortada por abajo */
  .cta__media {
    position: absolute;
    bottom: calc(var(--cta-media-bleed) * -1);
    left: var(--cta-media-x);
    margin: 0;
    transform: translateX(-50%);
  }

}

/* ==========================================================================
   DESKTOP (>= 1024px)
   ========================================================================== */

@media (min-width: 1024px) {

  .cta {
    --cta-title-size: min(4.44vw, var(--fs-64));  /* 64px a 1440 */
    --cta-gap: var(--space-48);
    --cta-media-width: min(33vw, 25.5rem);        /* 408px desde 1236 */
    --cta-media-x: 25.8%;
    --cta-media-bleed: var(--space-80);

    padding-block: var(--space-104);
  }

}

/* ##########################################################################
   CAUSE: template-parts/components/cause.php
   ########################################################################## */

/* la causa. la ilustración llega hasta el footer y en desktop sube por encima del texto */

/* ==========================================================================
   MOBILE
   ========================================================================== */

.cause {
  --cause-title-size: var(--fs-40);
  --cause-text-size: var(--fs-18);
  --cause-text-width: 33.75rem;        /* 540px */
  --cause-intro-gap: var(--space-24);
  --cause-logo-width: 10rem;
  --cause-media-width: min(85vw, 26rem);

  display: grid;
  padding: var(--space-64) var(--gutter) 0;
  color: var(--azul, #183876);
}

.cause__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-40);
}

.cause__intro {
  display: flex;
  flex-direction: column;
  gap: var(--cause-intro-gap);
}

.cause__heading {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

/* 13px y más tracking que .label */
.cause__eyebrow {
  font-size: var(--fs-13);
  letter-spacing: var(--ls-9);
}

.cause__title {
  isolation: isolate;
  font-family: var(--font-display);
  font-size: var(--cause-title-size);
  font-weight: var(--fw-bold);
  line-height: var(--lh-104);
  color: var(--naranja, #FD5014);
}

/* pincelada detrás de la palabra marcada, en em para que escale con el titular */
.cause__mark {
  position: relative;
  white-space: nowrap;
}

.cause__mark::before {
  content: "";
  position: absolute;
  top: -0.556em;
  left: 0.736em;
  z-index: -1;
  width: 2.963em;
  height: 2.933em;
  background: url("../img/stroke-cause.webp") center / contain no-repeat;
  clip-path: inset(0 var(--mark-hidden, 0%) 0 0);
  pointer-events: none;
}

.cause__title-line {
  display: block;
}

.cause__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  max-width: var(--cause-text-width);
  font-size: var(--cause-text-size);
  font-weight: var(--fw-medium);
  line-height: var(--lh-120);
}

.cause__text p {
  margin: 0;
}

.cause__logo {
  display: inline-block;
}

.cause__logo-img {
  width: var(--cause-logo-width);
  height: auto;
}

.cause__media {
  justify-self: center;
  width: var(--cause-media-width);
  margin-top: var(--space-48);
}

.cause__img {
  width: 100%;
  height: auto;
}

/* ==========================================================================
   TABLET (>= 768px)
   ========================================================================== */

@media (min-width: 768px) {

  .cause {
    --cause-title-size: var(--fs-48);
    --cause-logo-width: 12rem;
    --cause-media-width: 100%;

    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: var(--space-24);
    padding-top: var(--space-80);
  }

  /* el logo al pie de la columna */
  .cause__content {
    justify-content: space-between;
    padding-bottom: var(--space-80);
  }

  .cause__media {
    align-self: end;
    margin-top: 0;
  }

}

/* ==========================================================================
   DESKTOP (>= 1024px)
   ========================================================================== */

@media (min-width: 1024px) {

  .cause {
    --cause-title-size: var(--fs-64);
    --cause-text-size: var(--fs-20);
    --cause-intro-gap: var(--space-32);
    --cause-logo-width: 14.5rem;                    /* 232px */
    --cause-media-width: min(41vw, 36.875rem);      /* 590px a 1440 */

    padding-top: var(--space-104);
  }

  .cause__content {
    padding-bottom: var(--space-104);
  }

  /* sube por encima del inicio del texto */
  .cause__media {
    width: var(--cause-media-width);
    margin-top: calc(var(--space-64) * -1);
  }

}

/* ##########################################################################
   FOOTER: template-parts/components/footer.php
   ########################################################################## */

/* footer. en mobile la marca y los legales van centrados.
   logos seguidos con el mismo hueco, en varias filas si no caben. --logo-h: altura en desktop */

/* ==========================================================================
   MOBILE
   ========================================================================== */

.footer {
  --footer-line: color-mix(in srgb, var(--blanco, #FFFFFF) 50%, transparent);
  --footer-brand-h: var(--space-64);
  --footer-claim-size: var(--fs-24);
  --footer-logos-gap: var(--space-24);
  --footer-logo-scale: 0.7;

  padding: var(--space-48) var(--gutter) var(--space-24);
  background: var(--azul, #183876);
  color: var(--blanco, #FFFFFF);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-32);
  position: relative;
  text-align: center;
  padding-bottom: var(--space-32);
  border-bottom: 1px solid transparent;
}

/* sobre el azul del footer, la selección va en blanco */
.footer::selection,
.footer ::selection {
  background: var(--blanco, #FFFFFF);
  color: var(--naranja, #FD5014);
}

/* líneas del footer como pseudo, igual que en las filas del evento */
.footer__brand::after,
.footer__legal::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--footer-line);
  transform: scaleX(var(--line-scale, 1));
  transform-origin: left;
}

.footer__brand::after {
  bottom: -1px;
}

.footer__legal::before {
  top: -1px;
}

.footer__home {
  display: inline-block;
  color: inherit;
}

.footer__logo-img {
  display: block;
  width: auto;
  height: var(--footer-brand-h);
}

.footer__claim {
  font-family: var(--font-display);
  font-size: var(--footer-claim-size);
  font-weight: var(--fw-bold);
  line-height: var(--lh-104);
}

.footer__groups {
  display: flex;
  flex-direction: column;
  gap: var(--space-40);
  padding-block: var(--space-32);
}

.footer__group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-24);
  text-align: center;
}

/* blanco al 78% */
.footer__group-title {
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-9);
  color: color-mix(in srgb, var(--blanco, #FFFFFF) 78%, transparent);
}

/* mobile: dos por fila, centrados; si queda uno suelto, al centro */
.footer__partners {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-32) var(--footer-logos-gap);
  align-items: center;
  justify-items: center;
  width: 100%;
}

.footer__partner:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.footer__partner {
  display: flex;
  align-items: center;
  max-width: 100%;
}

.footer__partner-link {
  display: inline-flex;
  color: inherit;
}

.footer__partner-img {
  width: auto;
  max-width: 100%;
  height: calc(var(--logo-h, 2.75rem) * var(--footer-logo-scale));
  object-fit: contain;
}

/* logos en color pasados a blanco */
.footer__partner-img.is-white {
  filter: brightness(0) invert(1);
}

.footer__legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-12);
  position: relative;
  text-align: center;
  padding-top: var(--space-24);
  border-top: 1px solid transparent;
  font-size: var(--fs-12);
  line-height: var(--lh-150);
}

.footer__menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-8) var(--space-24);
}

.footer__link {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   TABLET (>= 768px)
   ========================================================================== */

@media (min-width: 768px) {

  .footer {
    --footer-claim-size: var(--fs-28);
    --footer-logos-gap: var(--space-40);
    --footer-logo-scale: 0.85;
  }

  /* marca en una fila: logo a la izquierda y la frase a la derecha, alineados abajo */
  .footer__brand {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    text-align: left;
  }

  .footer__groups {
    gap: var(--space-48);
  }

  .footer__group {
    align-items: flex-start;
    text-align: left;
  }

  .footer__partners {
    display: flex;
    flex-wrap: wrap;
  }

  /* copyright | enlaces | crédito */
  .footer__legal {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: start;
    column-gap: var(--space-24);
    text-align: left;
  }

  .footer__menu {
    justify-content: flex-start;
  }

  .footer__credit {
    justify-self: end;
    text-align: right;
  }

}

/* ==========================================================================
   DESKTOP (>= 1024px)
   ========================================================================== */

@media (min-width: 1024px) {

  .footer {
    --footer-brand-h: 4.1875rem;   /* 67px */
    --footer-claim-size: var(--fs-32);
    --footer-logos-gap: var(--space-64);
    --footer-logo-scale: 1;
  }

}

/* ==========================================================================
   HOVERS (solo desktop)
   ========================================================================== */

@media (hover: hover) and (min-width: 1024px) {

  .footer__link,
  .footer__partner-link {
    transition: opacity 0.3s ease;
  }

  .footer__link:hover,
  .footer__partner-link:hover {
    opacity: 0.7;
  }

}

/* ##########################################################################
   COOKIES: template-parts/components/cookies.php
   ########################################################################## */

/* cookies: aviso, icono y panel (cookies.php, cookies.js) */

/* ==========================================================================
   MOBILE
   ========================================================================== */

/* por encima del footer; con el menú de mobile abierto, por debajo del header */
.cookie-banner,
.cookie-icon,
.cookie-panel {
  position: fixed;
  z-index: calc(var(--z-footer) + 1);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  color: var(--azul, #183876);
}

.cookie-banner.is-open,
.cookie-icon.is-open,
.cookie-panel.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.has-menu-open .cookie-banner,
.has-menu-open .cookie-icon {
  z-index: calc(var(--z-header) - 1);
}

.cookie-banner {
  right: var(--space-12);
  bottom: var(--space-12);
  width: min(30rem, 100vw - 2 * var(--space-12));
  padding: var(--space-20);
  border-radius: var(--radius-16);
  background: var(--blanco, #FFFFFF);
  box-shadow: 0 0 26px 0 rgba(0, 0, 0, 0.10);
}

.cookie-banner__text {
  font-family: var(--font-body);
  font-size: var(--fs-14);
  font-weight: var(--fw-regular);
  line-height: var(--lh-150);
  text-transform: uppercase;
}

/* subrayado fijo */
.cookie-banner__link {
  padding-bottom: 2px;
  background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 100% 1px;
}

/* aceptar, rechazar y configurar pesan lo mismo: mismo botón. en mobile, configurar
   arriba y rechazar y aceptar debajo, a la par; desde tablet, los tres en fila */
.cookie-banner__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-16);
}

.cookie-banner__actions .btn:first-child {
  grid-column: 1 / -1;
}

.cookie-panel__actions {
  display: grid;
  gap: var(--space-10);
  margin-top: var(--space-24);
}

/* botón flotante para reabrir la configuración */
.cookie-icon {
  right: var(--space-20);
  bottom: var(--space-20);
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--size-48);
  height: var(--size-48);
  border-radius: var(--radius-8);
  background: var(--naranja, #FD5014);
  color: var(--azul, #183876);
}

.cookie-panel {
  inset: 0;
  z-index: calc(var(--z-footer) + 2);
  display: flex;
  justify-content: center;
  padding: var(--space-20);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(4, 28, 44, 0.7);
}

.cookie-panel__inner {
  width: 100%;
  max-width: 40rem;
  height: fit-content;
  margin: auto 0;
  padding: var(--space-24) var(--space-20);
  border-radius: var(--radius-16);
  background: var(--blanco, #FFFFFF);
}

.cookie-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-24);
}

.cookie-panel__title {
  font-family: var(--font-body);
  font-size: var(--fs-24);
  font-weight: var(--fw-medium);
  line-height: var(--lh-110);
  letter-spacing: var(--ls--1);
}

.cookie-panel__title:focus {
  outline: none;
}

/* cruz con dos líneas */
.cookie-panel__close {
  position: relative;
  flex-shrink: 0;
}

.cookie-panel__close::before,
.cookie-panel__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 1.5px;
  margin: -0.75px 0 0 -8px;
  background: var(--azul);
  transform: rotate(45deg);
}

.cookie-panel__close::after {
  transform: rotate(-45deg);
}

.cookie-panel__intro,
.cookie-panel__item-desc {
  font-family: var(--font-body);
  font-size: var(--fs-14);
  font-weight: var(--fw-regular);
  line-height: var(--lh-150);
  text-transform: uppercase;
}

.cookie-panel__intro {
  margin-top: var(--space-16);
}

.cookie-panel__list {
  margin-top: var(--space-24);
  border-top: 1px solid rgba(4, 28, 44, 0.2);
}

.cookie-panel__item {
  padding: var(--space-20) 0;
  border-bottom: 1px solid rgba(4, 28, 44, 0.2);
}

.cookie-panel__item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
}

.cookie-panel__item-title {
  font-family: var(--font-body);
  font-size: var(--fs-20);
  font-weight: var(--fw-medium);
  line-height: var(--lh-120);
  letter-spacing: var(--ls--1);
}

.cookie-panel__badge {
  flex-shrink: 0;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-4);
  background: var(--azul-10, #E8EBF1);
  font-family: var(--font-body);
  font-size: var(--fs-12);
  font-weight: var(--fw-regular);
  line-height: var(--lh-150);
  text-transform: uppercase;
}

/* switch: el input nativo va encima, transparente, para el teclado y el lector de pantalla */
.cookie-switch {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.cookie-switch__input {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.cookie-switch__track {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-12);
  background: var(--azul-20, #D1D7E4);
  transition: background-color 0.3s ease;
}

.cookie-switch__track::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blanco, #FFFFFF);
  transition: transform 0.3s ease;
}

.cookie-switch__input:checked+.cookie-switch__track {
  background: var(--naranja, #FD5014);
}

.cookie-switch__input:checked+.cookie-switch__track::before {
  transform: translateX(20px);
}

.cookie-switch__input:focus-visible+.cookie-switch__track {
  outline: 2px solid var(--azul, #183876);
  outline-offset: 2px;
}

.cookie-panel__item-desc {
  margin-top: var(--space-8);
}

/* bloqueo del scroll con el panel abierto (lenis lo para cookies.js) */
.has-cookie-panel-open {
  overflow: hidden;
}

/* el aviso o el icono no tapan el final del footer: se alarga lo que miden */
.has-cookie-float .footer {
  padding-bottom: calc(var(--cookie-offset, 0px) + 2 * var(--space-20));
}

/* ==========================================================================
   TABLET (>= 768px)
   ========================================================================== */

@media (min-width: 768px) {
  .cookie-banner {
    width: min(30rem, 100vw - 2 * var(--space-24));
  }

  .cookie-banner__actions {
    display: flex;
  }

  .cookie-banner__actions .btn {
    flex: 1 1 auto;
  }

  .cookie-panel {
    padding: var(--space-24);
  }

  /* en el panel, desde tablet, los dos en la misma fila */
  .cookie-panel__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .has-cookie-float .footer {
    padding-bottom: calc(var(--cookie-offset, 0px) + 2 * var(--space-24));
  }

}

/* ==========================================================================
   DESKTOP (>= 1280px)
   ========================================================================== */

@media (min-width: 1280px) {

  .cookie-banner,
  .cookie-icon {
    right: var(--space-16);
    bottom: var(--space-16);
  }

  .cookie-panel {
    padding: var(--space-32);
  }

  .has-cookie-float .footer {
    padding-bottom: calc(var(--cookie-offset, 0px) + 2 * var(--space-32));
  }

}

/* ==========================================================================
   HOVERS (solo desktop)
   ========================================================================== */

@media (hover: hover) and (min-width: 1024px) {

  .cookie-banner__link {
    transition: color 0.4s ease;
  }

  .cookie-banner__link:hover {
    color: var(--naranja, #FD5014);
  }

  .cookie-icon,
  .cookie-panel__close::before,
  .cookie-panel__close::after {
    transition: background-color 0.4s ease, color 0.4s ease;
  }

  .cookie-icon:hover {
    background: var(--blanco, #FFFFFF);
  }

  .cookie-panel__close:hover::before,
  .cookie-panel__close:hover::after {
    background-color: var(--naranja, #FD5014);
  }

}


/* ##########################################################################
   LEGAL-PAGE: template-parts/components/legal-page.php
   ########################################################################## */

/* páginas legales (plantilla Legal): título y contenido del editor de ACF */

/* ==========================================================================
   MOBILE
   ========================================================================== */

.legal-page {
  --legal-title-size: var(--fs-32);
  --legal-text-size: var(--fs-16);
  --legal-text-lh: var(--lh-130);
  --legal-h2-size: var(--fs-20);
  --legal-width: 60.5rem;          /* 968px */

  padding: var(--space-104) var(--gutter) var(--space-48);
  background: var(--blanco, #FFFFFF);
  color: var(--azul, #183876);
}

.legal-page__title {
  max-width: 68.75rem;             /* 1100px */
  font-family: var(--font-display);
  font-size: var(--legal-title-size);
  font-weight: var(--fw-bold);
  line-height: var(--lh-100);
}

.legal-content {
  max-width: var(--legal-width);
  margin-top: var(--space-40);
}

/* ==========================================================================
   LEGAL CONTENT / WYSIWYG
   ritmo vertical con > * + *: nada deja hueco al principio ni al final
   ========================================================================== */

/* las urls y emails largos se parten antes que desbordar en mobile */
.legal-content {
  font-family: var(--font-body);
  overflow-wrap: break-word;
}

/* entre bloques, una línea en blanco */
.legal-content > * + * {
  margin-top: var(--space-22);
}

.legal-content p,
.legal-content li {
  font-size: var(--legal-text-size);
  font-weight: var(--fw-regular);
  line-height: var(--legal-text-lh);
}

.legal-content h2,
.legal-content h3,
.legal-content h4 {
  font-weight: var(--fw-bold);
}

.legal-content h2 {
  font-size: var(--legal-h2-size);
  line-height: var(--lh-110);
}

.legal-content h3 {
  font-size: var(--fs-18);
  line-height: var(--lh-120);
}

.legal-content h4 {
  font-size: var(--legal-text-size);
  line-height: var(--lh-130);
}

/* 40px entre apartados, 24px del título a su texto */
.legal-content > h2:not(:first-child) {
  margin-top: var(--space-40);
}

.legal-content > h3:not(:first-child) {
  margin-top: var(--space-32);
}

.legal-content > h4:not(:first-child) {
  margin-top: var(--space-24);
}

.legal-content > h2 + * {
  margin-top: var(--space-24);
}

.legal-content > h3 + *,
.legal-content > h4 + * {
  margin-top: var(--space-12);
}

.legal-content ul,
.legal-content ol {
  padding-left: var(--space-24);
}

.legal-content ul {
  list-style: disc;
}

.legal-content ol {
  list-style: decimal;
}

.legal-content li + li {
  margin-top: var(--space-4);
}

/* el punto de las listas, más pequeño que el texto; los números, a su tamaño */
.legal-content li::marker {
  font-size: 0.75em;
}

.legal-content ol li::marker {
  font-size: 1em;
}

/* subrayado fijo */
.legal-content a {
  padding-bottom: 2px;
  background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 100% 1px;
}

.legal-content a:focus-visible {
  color: var(--naranja, #FD5014);
}

.legal-content strong,
.legal-content b {
  font-weight: var(--fw-bold);
}

.legal-content em,
.legal-content i {
  font-style: italic;
}

/* tabla de cookies (inc/cookies.php): en mobile se desplaza en horizontal antes que apretar las columnas */
.legal-content__table {
  overflow-x: auto;
}

.legal-content table {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: var(--fs-14);
  line-height: var(--lh-140);
  text-align: left;
}

.legal-content th,
.legal-content td {
  padding: var(--space-12) var(--space-16) var(--space-12) 0;
  border-bottom: 1px solid var(--azul-20, #D1D7E4);
  vertical-align: top;
}

.legal-content th {
  font-weight: var(--fw-bold);
}

/* la finalidad es la columna larga; así todas las tablas de la página alinean sus columnas */
.legal-content th:nth-child(3) {
  width: 40%;
}

/* ==========================================================================
   TABLET (>= 768px)
   ========================================================================== */

@media (min-width: 768px) {

  .legal-page {
    --legal-title-size: var(--fs-40);
    --legal-text-size: var(--fs-18);
    --legal-h2-size: var(--fs-24);

    padding-top: var(--space-140);
  }

  .legal-content {
    margin-top: var(--space-48);
  }

}

/* ==========================================================================
   DESKTOP (>= 1024px)
   ========================================================================== */

@media (min-width: 1024px) {

  .legal-page {
    --legal-text-lh: var(--lh-120);

    padding-top: var(--space-132);
  }

}

/* ==========================================================================
   HOVERS (solo desktop)
   ========================================================================== */

@media (hover: hover) and (min-width: 1024px) {

  .legal-content a {
    transition: color 0.4s ease;
  }

  .legal-content a:hover {
    color: var(--naranja, #FD5014);
  }

}


/* ##########################################################################
   REVEAL: assets/js/components/reveal.js
   ########################################################################## */

/* html.motion lo pone el head si no hay movimiento reducido. hasta que reveal.js
   arranca (html.motion-ready) se ocultan los elementos que van a entrar; después
   los estados iniciales los pone gsap */
.motion:not(.motion-ready) :is(.home, .page-template-legal) :is(
  .header__bar,
  .hero__title-line,
  .hero__media,
  .hero__text,
  .hero__info,
  .hero__cta,
  .shows__title-line,
  .show > *,
  .cta__title-line,
  .cta__btn,
  .cta__media,
  .cause__eyebrow,
  .cause__title-line,
  .cause__text,
  .cause__logo,
  .cause__media,
  .footer__brand > *,
  .footer__group-title,
  .footer__partner,
  .footer__legal > *,
  .legal-page__title,
  .legal-content
) {
  opacity: 0;
}

.motion:not(.motion-ready) :is(.home, .page-template-legal) :is(.show, .footer__brand, .footer__legal) {
  --line-scale: 0;
}
