/* ==========================================================================
   TallyZone AV — «Escenario» (14-10-2026)
   Titulares en Archivo (se estira con font-stretch), texto en Schibsted
   Grotesk y Martian Mono solo para rótulos técnicos. Los titulares llevan grano
   de 35 mm y un brillo fino. Negro de sala, blanco hueso y el rojo del
   piloto de cámara como único acento. Todo el movimiento se apaga con
   prefers-reduced-motion.
   ========================================================================== */

/* El logo de la portada como «Directed by TallyZone»: TALLY en Helvetica Light y
   ZONE AV en Helvetica Bold. Helvetica es de pago, así que van sus equivalentes libres,
   servidos desde la web para que todo el mundo vea lo mismo: Inter Tight Light (OFL),
   que en T-A-L-Y coincide con Helvetica Light, y TeX Gyre Heros Bold (GUST), clon de
   Helvetica Bold. */
@font-face {
  font-family: "TZ Helvetica";
  font-weight: 300;
  font-display: swap;
  src: url("/assets/fonts/inter-tight-300.woff2") format("woff2");
}

@font-face {
  font-family: "TZ Helvetica";
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/tex-gyre-heros-700.woff2") format("woff2");
}

/* Tipografías de la marca, servidas desde la propia web (antes, Google Fonts bloqueaba la carga).
   Solo el juego latino, que cubre español e inglés. */
@font-face {
  font-family: "Schibsted Grotesk";
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/schibsted-grotesk.woff2") format("woff2");
}

@font-face {
  font-family: "Archivo";
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Martian Mono";
  font-weight: 400 700;
  font-stretch: 75% 112.5%;
  font-display: swap;
  src: url("/assets/fonts/martian-mono-latin.woff2") format("woff2");
}

:root {
  --negro: #08080a;
  --carbon: #101013;
  --grafito: #1a1a1f;
  --hueso: #f2efe9;
  --papel: #ebe7df;
  --tinta: #0d0d10;
  --texto: rgba(242, 239, 233, 0.74);
  --tenue: rgba(242, 239, 233, 0.5);
  --linea: rgba(242, 239, 233, 0.14);
  --rojo: #ff3a2e;
  --rojo-luz: rgba(255, 58, 46, 0.55);

  --max: 90rem;
  --gutter: clamp(1.125rem, 4vw, 3.5rem);
  --seccion: clamp(5.5rem, 12vw, 11rem);
  --cabecera: 4.75rem;

  --f: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --d: 'Archivo', system-ui, sans-serif;
  --helvetica: 'TZ Helvetica', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  /* Grano de 35 mm para los titulares: motas sueltas, oscuras y claras */
  --grano-t-oscuro: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.4' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.7 0 0 0 -0.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grano-t-claro: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.1' numOctaves='3' seed='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 -0.7 0 0 0 0.32'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --mono: 'Martian Mono', ui-monospace, 'Cascadia Mono', monospace;
  --banda: rgba(242, 239, 233, 0.045);
  --banda-on: rgba(242, 239, 233, 0.09);
  /* Grano de 35 mm, fino y suave: solo para el nombre de la portada */
  --grano-35-oscuro: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.4' numOctaves='3' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.9 0 0 0 -0.38'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grano-35-claro: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.1' numOctaves='3' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 -0.9 0 0 0 0.4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --suave: cubic-bezier(0.22, 1, 0.36, 1);
  --cine: cubic-bezier(0.76, 0, 0.24, 1);

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
  scroll-padding-top: calc(var(--cabecera) + 1rem);
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--negro);
  color: var(--hueso);
  font-family: var(--f);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

img {
  height: auto;
}

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

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

h1,
h2,
h3,
h4,
.logo,
.mesa__salida,
.evento strong,
.dia__hora {
  font-family: var(--d);
}

.faq summary h2,
.faq summary h3,
.pie__hablemos h2,
.pie__columnas h2 {
  font-family: var(--f);
}

/* Titulares: grano de 35 mm y un brillo fino del color de la letra. Sin desenfoque:
   era lo que más le costaba a la tarjeta gráfica al bajar por la página.
   El grano va en la pieza que lleva el texto y el brillo, en su contenedor: juntos en
   el mismo elemento, Chrome pinta la letra con agujeros.
   main.js marca los titulares con .titulo-fx y envuelve su texto si hace falta. */
.titulo-fx,
.dia__reloj {
  filter: drop-shadow(0 0 10px color-mix(in srgb, currentColor 28%, transparent));
}

/* Sobre papel, el brillo de una letra oscura se lee como sombra: más corto y suave */
.claro .titulo-fx {
  filter: drop-shadow(0 0 5px color-mix(in srgb, currentColor 16%, transparent));
}

.titulo-fx span:not(:has(span), .visually-hidden),
.dia__hora {
  background-image: var(--grano-t-oscuro), var(--grano-t-claro), linear-gradient(currentColor, currentColor);
  background-size: 96px 96px, 120px 120px, auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h1,
h2,
h3 {
  font-weight: 700;
  font-stretch: 115%;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

::selection {
  background: var(--rojo);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--rojo);
  outline-offset: 4px;
}

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

.list-plain {
  list-style: none;
  padding: 0;
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 300;
  padding: 0.75rem 1rem;
  background: var(--hueso);
  color: var(--negro);
  font-weight: 600;
  transform: translateY(-200%);
}

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

.muted {
  color: var(--tenue);
}

/* El piloto de cámara: el punto rojo de «en directo» */
.piloto {
  display: inline-block;
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--rojo);
}

.button .piloto {
  display: none;
}

/* --------------------------------------------------------------------------
   Botones y enlaces
   -------------------------------------------------------------------------- */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.375rem;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  background: var(--hueso);
  color: var(--negro);
  font-size: 0.8125rem;
  font-weight: 650;
  font-stretch: 112%;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.1;
  cursor: pointer;
  transition: color 0.45s var(--suave), transform 0.25s var(--suave);
  will-change: transform;
}

.button::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--rojo);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.55s var(--cine);
}

.button .piloto {
  width: 0.4375rem;
  height: 0.4375rem;
  background: currentColor;
  box-shadow: none;
  animation: none;
  opacity: 0.35;
  transition: opacity 0.3s, background 0.3s;
}

.button svg {
  transition: transform 0.45s var(--suave);
}

.button:active {
  transform: scale(0.97);
}

@media (hover: hover) {
  .button:hover {
    color: #fff;
  }

  .button:hover::before {
    transform: scaleX(1);
    transform-origin: left;
  }

  .button:hover .piloto {
    background: #fff;
    opacity: 1;
  }

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

.button--grande {
  padding: 1.25rem 1.75rem;
  font-size: 0.875rem;
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding-block: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size 0.5s var(--cine);
}

.more svg {
  transition: transform 0.4s var(--suave);
}

@media (hover: hover) {
  .more:hover {
    background-size: 0 1px;
    background-position: right bottom;
  }

  .more:hover svg {
    transform: translateX(5px);
  }
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--mono);
  font-stretch: 87.5%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--tenue);
}

.tag::before {
  content: none;
}

.lead {
  max-width: 42rem;
  font-size: clamp(1.125rem, 1.4vw, 1.3125rem);
  line-height: 1.5;
  color: var(--texto);
}

/* --------------------------------------------------------------------------
   Logotipo: TallyZone + distintivo rojo AV
   -------------------------------------------------------------------------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.125rem;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.logo__av {
  padding: 0.24em 0.32em 0.2em;
  background: var(--rojo);
  color: #fff;
  font-size: 0.72em;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Cabecera
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: transform 0.6s var(--cine), background-color 0.4s, backdrop-filter 0.4s;
}

.header::before {
  content: '';
  position: absolute;
  inset: 0 0 -2.5rem;
  z-index: -1;
  background: linear-gradient(rgba(8, 8, 10, 0.7), transparent);
  pointer-events: none;
  transition: opacity 0.4s;
}

.header.is-solida {
  background: var(--negro);
}

.header.is-solida::before {
  opacity: 0;
}

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

.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  height: var(--cabecera);
}

.header__logo {
  position: relative;
  z-index: 2;
  margin-right: auto;
}

.header__nav ul {
  display: flex;
  gap: clamp(1.25rem, 2.4vw, 2.5rem);
}

.header__nav a {
  position: relative;
  font-size: 0.8125rem;
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header__nav ul a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.45rem;
  height: 2px;
  background: var(--rojo);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--cine);
}

.header__nav ul a[aria-current='page']::after {
  transform: scaleX(1);
}

@media (hover: hover) {
  .header__nav ul a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }
}

.header__extra {
  display: none;
}

.header__lang {
  display: flex;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.header__lang a {
  padding: 0.3rem 0.35rem;
  color: var(--tenue);
  transition: color 0.3s;
}

.header__lang a[aria-current='true'],
.header__lang a:hover {
  color: var(--hueso);
}

.header__tel {
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.header__cta {
  padding: 0.8rem 1.1rem;
  font-size: 0.75rem;
}

.header__burger {
  display: none;
}

/* Menú del móvil: una cortina negra a pantalla completa */
@media (max-width: 63.99rem) {
  .header__inner {
    gap: 0.75rem;
  }

  .header__cta {
    display: none;
  }

  .header__lang {
    position: relative;
    z-index: 2;
  }

  .header__burger {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0 0.6rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 650;
    font-stretch: 112%;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .header__burger i {
    position: relative;
    width: 1.5rem;
    height: 0.625rem;
  }

  .header__burger i::before,
  .header__burger i::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: currentColor;
    transition: transform 0.5s var(--cine), top 0.5s var(--cine);
  }

  .header__burger i::before { top: 0; }
  .header__burger i::after { top: calc(100% - 2px); }

  .header__burger-cerrar {
    display: none;
  }

  .header__toggle:checked ~ .header__burger .header__burger-abrir { display: none; }
  .header__toggle:checked ~ .header__burger .header__burger-cerrar { display: none; }
  .header__toggle:checked ~ .header__burger i::before { top: calc(50% - 1px); transform: rotate(45deg); }
  .header__toggle:checked ~ .header__burger i::after { top: calc(50% - 1px); transform: rotate(-45deg); }
  .header__toggle:focus-visible ~ .header__burger { outline: 2px solid var(--rojo); outline-offset: 2px; }

  .header__nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    padding: calc(var(--cabecera) + 2.5rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom));
    background: var(--negro);
    overflow-y: auto;
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path 0.75s var(--cine), visibility 0s 0.75s;
  }

  .header__toggle:checked ~ .header__nav {
    clip-path: inset(0 0 0 0);
    visibility: visible;
    transition: clip-path 0.75s var(--cine), visibility 0s;
  }

  .header__nav ul {
    flex-direction: column;
    gap: 0.25rem;
  }

  .header__nav ul a {
    display: block;
    padding-block: 0.15rem;
    font-size: clamp(2.5rem, 11vw, 4.5rem);
    font-weight: 750;
    font-stretch: 120%;
    letter-spacing: -0.03em;
    text-transform: none;
    line-height: 1.05;
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.5s var(--suave), transform 0.7s var(--suave), color 0.3s;
  }

  .header__nav ul a::after {
    display: none;
  }

  .header__nav ul a[aria-current='page'] {
    color: var(--rojo);
  }

  .header__toggle:checked ~ .header__nav ul a {
    opacity: 1;
    transform: none;
  }

  .header__toggle:checked ~ .header__nav li:nth-child(1) a { transition-delay: 0.18s; }
  .header__toggle:checked ~ .header__nav li:nth-child(2) a { transition-delay: 0.24s; }
  .header__toggle:checked ~ .header__nav li:nth-child(3) a { transition-delay: 0.3s; }
  .header__toggle:checked ~ .header__nav li:nth-child(4) a { transition-delay: 0.36s; }
  .header__toggle:checked ~ .header__nav li:nth-child(5) a { transition-delay: 0.42s; }

  .header__extra {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding-top: 1.5rem;
  }

  .header__extra a:not(.button) {
    font-size: 1.125rem;
    text-transform: none;
    letter-spacing: 0;
  }

  .header__extra .button {
    margin-top: 0.75rem;
  }

  .header.is-abierta {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Escenas con foto de fondo
   -------------------------------------------------------------------------- */
.escena {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.escena__fondo {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.escena__fondo picture,
.escena__fondo img {
  width: 100%;
  height: 100%;
}

.escena__fondo img {
  object-fit: cover;
}

/* ==========================================================================
   PORTADA
   ========================================================================== */

/* 1. Apertura: la foto se enfoca, el nombre sube y, al bajar, se abre en dos */
.apertura {
  --p: 0;
  position: relative;
  height: 175svh;
}

.hero {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 34rem;
  overflow: hidden;
  isolation: isolate;
  background: #000;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media picture {
  width: 100%;
  height: 100%;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(calc(1.06 + var(--p) * 0.28));
  filter: brightness(calc(0.62 - var(--p) * 0.4)) saturate(1.1);
  will-change: transform;
}

/* Viñeta y foco que sigue al puntero */
.hero__luz {
  --mx: 60%;
  --my: 35%;
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 8, 10, 0.55) 0%, transparent 28%, transparent 48%, rgba(8, 8, 10, 0.92) 100%),
    radial-gradient(120% 90% at 50% 40%, transparent 50%, rgba(0, 0, 0, 0.6) 100%);
}

.hero__capa {
  display: grid;
  grid-template-rows: auto 1fr auto auto 1fr auto;
  height: 100%;
  padding-top: calc(var(--cabecera) + clamp(1rem, 3vw, 2rem));
  padding-bottom: clamp(1.25rem, 3vw, 2rem);
}

.hero__directo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  align-self: start;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--d);
  font-stretch: 112%;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: calc(1 - var(--p) * 3);
}

.hero__lado {
  grid-row: 4;
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  width: min(44rem, 100%);
  padding-top: clamp(1.25rem, 3vh, 2.25rem);
  text-align: center;
  opacity: calc(1 - var(--p) * 2.6);
  transform: translateY(calc(var(--p) * -6rem));
}

/* El titular de la portada: lo que se gana contratándonos */
.hero__h1 {
  font-family: var(--d);
  font-size: clamp(1.625rem, 3.3vw, 3rem);
  font-weight: 800;
  font-stretch: 115%;
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--hueso);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}

.hero__claim {
  max-width: 36rem;
  font-size: clamp(1rem, 1.2vw, 1.1875rem);
  line-height: 1.5;
  color: rgba(242, 239, 233, 0.88);
  text-wrap: pretty;
}

.hero__acciones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
}

.portada__llamar {
  font-size: 0.9375rem;
  color: var(--texto);
  border-bottom: 1px solid var(--linea);
  transition: color 0.3s, border-color 0.3s;
}

.portada__llamar:hover {
  color: var(--hueso);
  border-color: currentColor;
}

/* El nombre, de lado a lado */
/* Como la referencia del cliente: TALLY fina y ZONE gruesa, de ancho normal */
.hero__titulo {
  grid-row: 3;
  margin-inline: -0.04em;
  font-family: var(--helvetica);
  font-size: var(--marca, 12.4vw);
  font-weight: 700;
  font-stretch: 100%;
  letter-spacing: -0.024em;
  line-height: 0.8;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
}

.hero__marca {
  display: flex;
  align-items: baseline;
  justify-content: center;
  filter: drop-shadow(0 2px 18px rgba(0, 0, 0, 0.55));
  /* Al abrirse se va apagando: si no, un trozo de «Zone» y de «Tally» se quedaba en los bordes */
  opacity: calc(1 - var(--p, 0) * 1.6);
}

/* Cada pieza recorta su texto para que suba desde abajo al cargar. Abajo lleva margen
   para la «O», que baja un poco de la línea base, y el margen negativo lo compensa.
   El brillo va aquí y el grano en el span de dentro: en el mismo elemento, Chrome
   pinta la letra con agujeros. */
.hero__tally,
.hero__zone,
.hero__av {
  display: block;
  flex: none;
  overflow: hidden;
  padding-block: 0.06em 0.12em;
  margin-bottom: -0.1em;
  filter: drop-shadow(0 0 0.06em var(--brillo));
  will-change: transform;
}

/* La letra se pinta con el fondo (background-clip: text), y el fondo solo llega hasta el borde
   del span: con line-height 0.8 la «O» se salía por abajo y quedaba cortada. El relleno
   alarga el fondo y el margen negativo deja el nombre donde estaba. */
.hero__tally > span,
.hero__zone > span,
.hero__av > span {
  display: block;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
  background-image: var(--grano-35-oscuro), var(--grano-35-claro), linear-gradient(var(--tinte), var(--tinte));
  background-size: 96px 96px, 120px 120px, auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__tally {
  font-weight: 300;
  letter-spacing: -0.02em;
  --tinte: var(--hueso);
  --brillo: rgba(242, 239, 233, 0.32);
  transform: translateX(calc(var(--p) * -42vw));
}

.hero__zone {
  --tinte: var(--hueso);
  --brillo: rgba(242, 239, 233, 0.32);
  transform: translateX(calc(var(--p) * 42vw));
}

.hero__av {
  margin-left: 0.08em;
  --tinte: var(--rojo);
  --brillo: rgba(255, 58, 46, 0.5);
  transform: translateX(calc(var(--p) * 42vw));
}

.hero__base {
  grid-row: 6;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: clamp(1rem, 2.5vw, 2rem);
  opacity: calc(1 - var(--p) * 3);
}

.hero__confianza {
  display: grid;
  gap: 0.75rem;
}

.hero__anios {
  font-family: var(--d);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 600;
  font-stretch: 112%;
  color: var(--hueso);
}

.hero__anios strong {
  color: var(--rojo);
  font-weight: 800;
}

.hero__clientes {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1.4rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-stretch: 112%;
}

.hero__clientes span {
  width: 100%;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tenue);
}

.hero__clientes a {
  transition: color 0.3s;
}

.hero__clientes a:hover {
  color: var(--rojo);
}

.hero__bajar {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tenue);
}

.hero__bajar i {
  position: relative;
  width: 1px;
  height: 3.5rem;
  overflow: hidden;
  background: var(--linea);
}

.hero__bajar i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hueso);
  animation: bajar 2.2s var(--cine) infinite;
}

@keyframes bajar {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

@media (max-width: 47.99rem) {
  .apertura {
    height: 150svh;
  }

  .hero__capa {
    grid-template-rows: auto 1fr auto auto auto;
    padding-top: calc(var(--cabecera) + 0.5rem);
  }

  .hero__lado {
    justify-self: start;
    justify-items: start;
    gap: 1rem;
    padding-top: 1.25rem;
    text-align: left;
  }

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

  .hero__titulo {
    line-height: 0.84;
    text-align: left;
  }

  .hero__marca {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero__tally {
    flex-basis: 100%;
  }

  .hero__base {
    grid-row: 5;
    padding-top: 1.25rem;
  }

  .hero__clientes span,
  .hero__bajar {
    display: none;
  }
}

/* Entrada de la portada: la foto pasa de desenfocada a nítida y el nombre sube */
.js .hero__media picture {
  animation: enfoque 1.4s var(--suave) both;
}

.js .hero__tally > span,
.js .hero__zone > span,
.js .hero__av > span {
  animation: subir 1s var(--suave) both;
}

.js .hero__tally > span { animation-delay: 0.1s; }
.js .hero__zone > span { animation-delay: 0.18s; }
.js .hero__av > span { animation-delay: 0.28s; }

.js .hero__directo,
.js .hero__lado,
.js .hero__base {
  animation: aparecer 0.6s var(--suave) both;
}

/* El titular no se oculta al cargar (es lo primero que debe leerse): solo se desliza */
.js .hero__lado { animation-name: deslizar; animation-delay: 0s; }

@keyframes deslizar {
  from {
    translate: 0 0.75rem;
  }
}
.js .hero__base { animation-delay: 0.3s; }

@keyframes enfoque {
  from {
    opacity: 0.35;
    transform: scale(1.18);
    filter: blur(16px);
  }
}

@keyframes subir {
  from {
    transform: translateY(105%);
  }
}

@keyframes aparecer {
  from {
    opacity: 0;
    translate: 0 1.25rem;
  }
}

/* 2. Manifiesto: las palabras se encienden al bajar */
.manifiesto {
  --p: 0;
  position: relative;
  height: 260svh;
  margin-top: -1px;
  background: var(--negro);
}

.manifiesto__fijo {
  position: sticky;
  top: 0;
  display: grid;
  align-items: center;
  height: 100svh;
  overflow: hidden;
}

.manifiesto__foco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: none;
}

.manifiesto__titulo {
  max-width: 15ch;
  font-size: clamp(3rem, 9.2vw, 9.5rem);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.045em;
  line-height: 0.92;
  text-transform: uppercase;
}

.manifiesto__titulo span {
  display: inline-block;
  color: rgba(242, 239, 233, 0.12);
  transition: color 0.6s var(--suave), text-shadow 0.6s;
}

.manifiesto__titulo span.is-on {
  color: var(--hueso);
}

.manifiesto__titulo span.is-on:nth-last-child(-n + 2) {
  color: var(--rojo);
}

/* «segunda toma» se enciende como el piloto. El brillo va en el span de fuera y el
   grano en el de dentro: en el mismo elemento, Chrome pinta la letra con agujeros. */
.manifiesto__titulo > span:nth-last-child(-n + 2) {
  transition: color 0.6s var(--suave), filter 0.6s var(--suave);
}

.manifiesto__titulo span span {
  color: inherit;
}

.manifiesto__titulo > span.is-on:nth-last-child(-n + 2) {
  filter: drop-shadow(0 0 0.12em rgba(255, 58, 46, 0.7)) drop-shadow(0 0 0.45em rgba(255, 58, 46, 0.35));
}

.manifiesto__datos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 62rem;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.8s var(--suave), transform 0.8s var(--suave);
}

.manifiesto.is-fin .manifiesto__datos {
  opacity: 1;
  transform: none;
}

.manifiesto__datos li {
  display: grid;
  gap: 0.3rem;
  padding-top: 1rem;
}

.manifiesto__datos strong {
  font-size: 1.125rem;
  font-weight: 700;
  font-stretch: 115%;
}

.manifiesto__datos span {
  font-size: 0.9375rem;
  color: var(--tenue);
}

@media (max-width: 47.99rem) {
  .manifiesto {
    height: 220svh;
  }

  .manifiesto__datos {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
}

/* Por qué nosotros: el titular grande y cuatro razones, cada una con su piloto */
.porque {
  /* Por encima del fondo fijo de «Cómo trabajamos», que si no asoma por debajo */
  position: relative;
  z-index: 1;
  padding-block: var(--seccion);
  background: var(--negro);
}

.porque__titulo {
  max-width: 14ch;
  font-size: clamp(2.75rem, 7.4vw, 7.5rem);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.045em;
  line-height: 0.92;
  text-transform: uppercase;
}

.porque__lead {
  max-width: 34rem;
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
  font-size: clamp(1.0625rem, 1.3vw, 1.25rem);
  color: var(--texto);
}

.porque__lista {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

.porque__mas {
  margin-top: 2rem;
}

.porque__lista li {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  background: var(--banda);
}

.porque__lista li::before {
  content: '';
  width: 0.625rem;
  height: 0.625rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--rojo);
  box-shadow: 0 0 12px var(--rojo-luz);
}

.porque__lista h3 {
  font-size: clamp(1.125rem, 1.4vw, 1.3125rem);
  text-transform: uppercase;
}

.porque__lista p {
  font-size: 0.9375rem;
  color: var(--texto);
}

@media (max-width: 64rem) {
  .porque__lista {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 36rem) {
  .porque__lista {
    grid-template-columns: 1fr;
  }
}

/* 3. Lo que hacemos: índice tipográfico; la foto acompaña al ratón */
.indice {
  position: relative;
  padding-block: var(--seccion);
  background: var(--negro);
}

.indice__rejilla {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.indice__cabeza {
  position: sticky;
  top: calc(var(--cabecera) + 2rem);
  align-self: start;
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.indice__cabeza h2,
.obras__cabeza h2,
.eventos__lista h2,
.dudas__cabeza h2 {
  font-size: clamp(2.5rem, 5.2vw, 5rem);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.045em;
  line-height: 0.92;
  text-transform: uppercase;
}

.indice__cabeza h2 {
  font-size: clamp(2.5rem, 4.4vw, 4.5rem);
}

.indice__cabeza p {
  max-width: 22rem;
  color: var(--texto);
}

/* Separadores: sin líneas. Cada fila es una franja un tono por encima del fondo
   y el aire entre franjas separa; la fila activa se rellena entera. */
.indice__lista,
.eventos__lista ul,
.faq {
  display: grid;
  gap: 0.5rem;
}

.indice__fila a,
.evento,
.faq details {
  background: var(--banda);
  transition: background-color 0.4s var(--suave), color 0.4s;
}

.indice__fila a {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.35rem 1.5rem;
  padding: clamp(1.25rem, 2.4vw, 2rem);
  transition: opacity 0.5s var(--suave), background-color 0.4s var(--suave);
}

.indice__fila h3 {
  font-size: clamp(1.875rem, 3.5vw, 3.75rem);
  font-weight: 750;
  font-stretch: 118%;
  letter-spacing: -0.035em;
  line-height: 1;
  transition: transform 0.7s var(--suave), color 0.4s;
}

.indice__fila p {
  grid-column: 1;
  max-width: 34rem;
  font-size: 0.9375rem;
  color: var(--tenue);
  transition: color 0.4s, transform 0.7s var(--suave);
}

.indice__ir {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  background: var(--banda-on);
  transition: background 0.4s, border-color 0.4s, transform 0.6s var(--suave);
}

.indice__foto {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .indice__lista:hover .indice__fila a {
    opacity: 0.28;
  }

  .indice__lista .indice__fila a:hover {
    opacity: 1;
  }

  .indice__fila a:hover {
    background: var(--banda-on);
  }

  .indice__fila a:hover h3 {
    transform: translateX(1.25rem);
  }

  .indice__fila a:hover p {
    color: var(--texto);
    transform: translateX(1.25rem);
  }

  .indice__fila a:hover .indice__ir {
    background: var(--rojo);
    border-color: var(--rojo);
  }

  .indice__fila a:hover .indice__ir svg {
    transform: rotate(45deg);
  }
}

/* Visor que sigue al puntero (lo mueve main.js) */
.indice__visor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: clamp(16rem, 24vw, 24rem);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  scale: 0.6;
  translate: var(--vx, 50vw) var(--vy, 50vh);
  margin: calc(clamp(16rem, 24vw, 24rem) * -0.625) 0 0 2.5rem;
  transition: opacity 0.4s var(--suave), scale 0.6s var(--suave);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

.indice.is-visor .indice__visor {
  opacity: 1;
  scale: 1;
}

.indice__visor picture {
  position: absolute;
  inset: 0;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.7s var(--cine);
}

.indice__visor picture.is-on {
  z-index: 1;
  clip-path: inset(0 0 0 0);
}

.indice__visor img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: 1.15;
  transition: scale 1.2s var(--suave);
}

.indice__visor picture.is-on img {
  scale: 1;
}

.indice__visor {
  display: none;
}

@media (min-width: 64rem) {
  .indice__lista {
    counter-reset: monitor;
  }

  .indice__fila a {
    grid-template-columns: minmax(0, 1fr) clamp(11rem, 17vw, 17rem);
    gap: 0.5rem clamp(1.5rem, 3vw, 2.5rem);
    counter-increment: monitor;
  }

  .indice__fila h3 {
    align-self: end;
  }

  .indice__fila p {
    align-self: start;
  }

  .indice__foto {
    position: relative;
    display: block;
    grid-column: 2;
    grid-row: 1 / span 2;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #000;
    transition: box-shadow 0.4s;
  }

  .indice__foto::after {
    content: 'CAM ' counter(monitor, decimal-leading-zero);
    position: absolute;
    top: 0.6rem;
    left: 0.7rem;
    font-family: var(--mono);
    font-size: 0.625rem;
    font-weight: 600;
    font-stretch: 87.5%;
    letter-spacing: 0.06em;
    color: rgba(242, 239, 233, 0.85);
  }

  .indice__foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) saturate(0.35);
    scale: 1.04;
    transition: filter 0.6s var(--suave), scale 1s var(--suave);
  }

  .indice__ir {
    position: relative;
    z-index: 1;
    grid-column: 2;
    align-self: end;
    justify-self: end;
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    background: rgba(8, 8, 10, 0.7);
  }

  .indice__fila a:hover .indice__foto {
    box-shadow: 0 0 0 2px var(--rojo);
  }

  .indice__fila a:hover .indice__foto img {
    filter: brightness(1) saturate(1.1);
    scale: 1;
  }
}

@media (max-width: 63.99rem) {
  .indice__rejilla {
    grid-template-columns: 1fr;
  }

  .indice__cabeza {
    position: static;
  }

  .indice__fila a {
    grid-template-columns: 5.5rem minmax(0, 1fr) auto;
    gap: 0.35rem 1rem;
  }

  .indice__foto {
    display: block;
    grid-column: 1;
    grid-row: 1 / span 2;
    aspect-ratio: 1;
    overflow: hidden;
  }

  .indice__foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .indice__fila h3,
  .indice__fila p {
    grid-column: 2;
  }

  .indice__ir {
    grid-column: 3;
    width: 2.5rem;
    height: 2.5rem;
  }
}

@media (max-width: 29.99rem) {
  .indice__fila a {
    grid-template-columns: 4.25rem minmax(0, 1fr);
  }

  .indice__ir {
    display: none;
  }
}

/* 4. Mesa de realización: la palabra grande corta de un servicio a otro,
   la tecla en programa se enciende en rojo y la siguiente, en verde */
.mesa {
  padding-block: clamp(3rem, 7vw, 6rem);
  background: var(--negro);
}

.mesa__barra {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-stretch: 87.5%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tenue);
}

.mesa__pgm {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--rojo);
}

.mesa__tc {
  font-variant-numeric: tabular-nums;
  color: var(--hueso);
}

.mesa__salida {
  display: grid;
  margin-block: clamp(1rem, 2.5vw, 2rem) clamp(1.5rem, 3vw, 2.5rem);
}

.mesa__salida span {
  grid-area: 1 / 1;
  font-size: clamp(2.5rem, 10.5vw, 10rem);
  font-weight: 800;
  font-stretch: 100%;
  letter-spacing: -0.045em;
  line-height: 0.9;
  text-transform: uppercase;
  white-space: nowrap;
  background-image: var(--grano-35-oscuro), var(--grano-35-claro), linear-gradient(var(--hueso), var(--hueso));
  background-size: 96px 96px, 120px 120px, auto;
  filter: blur(0.4px);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  visibility: hidden;
}

.mesa__salida span.is-on {
  visibility: visible;
}

.mesa__bus {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.375rem, 1vw, 0.75rem);
}

.mesa__bus li {
  display: grid;
  gap: 0.35rem;
  padding: clamp(0.6rem, 1.4vw, 1rem);
  border-radius: 3px;
  background: var(--grafito);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-family: var(--mono);
  font-size: clamp(0.5625rem, 1vw, 0.75rem);
  font-weight: 600;
  font-stretch: 87.5%;
  letter-spacing: 0.04em;
  color: var(--tenue);
  overflow: hidden;
}

.mesa__bus b {
  font-weight: 400;
  opacity: 0.6;
}

.mesa__bus li.is-pvw {
  color: #6fe39a;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(111, 227, 154, 0.45);
}

.mesa__bus li.is-on {
  background: var(--rojo);
  color: #fff;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25);
}

/* 5. Trabajos: recorrido horizontal mientras se baja (en pantallas grandes) */
.obras {
  --p: 0;
  position: relative;
  padding-block: var(--seccion);
  background: var(--carbon);
}

.obras__cabeza {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 3rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.obras__cabeza p {
  max-width: 24rem;
  color: var(--texto);
}

.obras__pista {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  padding-inline: var(--gutter);
}

.obra__enlace {
  position: relative;
  display: grid;
  align-content: end;
  min-height: min(78svh, 46rem);
  padding: clamp(1.25rem, 3vw, 2.5rem);
  overflow: hidden;
  isolation: isolate;
  background: #000;
}

.obra__foto,
.obra__collage {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.obra__foto picture,
.obra__foto img {
  width: 100%;
  height: 100%;
}

.obra__foto img {
  object-fit: cover;
  filter: brightness(0.62);
  transition: transform 1.4s var(--suave), filter 0.8s;
}

.obra__enlace::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.85));
}

.obra__texto {
  display: grid;
  gap: 0.9rem;
  max-width: 44rem;
}

.obra__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--mono);
  font-stretch: 87.5%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(242, 239, 233, 0.7);
}

.obra__meta span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.obra__meta span:first-child::before {
  content: none;
}

.obra h3 {
  font-size: clamp(2.25rem, 5.4vw, 5.5rem);
  font-weight: 800;
  font-stretch: 122%;
  letter-spacing: -0.045em;
  line-height: 0.92;
  text-transform: uppercase;
}

.obra__desc {
  max-width: 32rem;
  color: rgba(242, 239, 233, 0.8);
}

.obra__ver {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  justify-self: start;
  margin-top: 0.4rem;
  padding: 0.85rem 1.1rem;
  background: var(--hueso);
  color: var(--negro);
  font-size: 0.75rem;
  font-weight: 650;
  font-stretch: 112%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.4s, color 0.4s;
}

.obra__ver svg {
  transition: transform 0.4s var(--suave);
}

@media (hover: hover) {
  .obra__enlace:hover .obra__foto img {
    transform: scale(1.05);
    filter: brightness(0.75);
  }

  .obra__enlace:hover .obra__ver {
    background: var(--rojo);
    color: #fff;
  }

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

.obra__collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
}

.obra__collage picture,
.obra__collage img {
  width: 100%;
  height: 100%;
}

.obra__collage img {
  object-fit: cover;
  filter: brightness(0.45) grayscale(0.3);
  transition: filter 0.8s;
}

@media (hover: hover) {
  .obra__enlace:hover .obra__collage img {
    filter: brightness(0.6) grayscale(0);
  }
}

.obras__progreso {
  display: none;
}

/* Modo horizontal (lo activa main.js en pantallas anchas) */
.obras.is-horizontal {
  padding-block: 0;
}

.obras.is-horizontal .obras__fijo {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100svh;
  overflow: hidden;
  padding-top: var(--cabecera);
}

.obras.is-horizontal .obras__cabeza {
  margin-bottom: clamp(1.25rem, 3vh, 2.5rem);
}

.obras.is-horizontal .obras__pista {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  transform: translate3d(var(--x, 0px), 0, 0);
  will-change: transform;
}

.obras.is-horizontal .obra {
  width: min(68vw, 62rem);
}

.obras.is-horizontal .obra--mas {
  width: min(44vw, 38rem);
}

.obras.is-horizontal .obra__enlace {
  height: min(64svh, 42rem);
  min-height: 0;
}

.obras.is-horizontal .obras__progreso {
  display: block;
  margin-top: clamp(1.25rem, 3vh, 2rem);
}

.obras__progreso i {
  display: block;
  height: 2px;
  background: linear-gradient(var(--rojo), var(--rojo)) left / calc(var(--p) * 100%) 100% no-repeat, var(--linea);
}

/* 6. Un día de directo: el reloj avanza y, a las 17:00, se enciende el piloto */
.dia {
  position: relative;
  isolation: isolate;
  background: #000;
}

.dia__fondos {
  position: sticky;
  top: 0;
  z-index: -1;
  height: 100svh;
  margin-bottom: -100svh;
  overflow: hidden;
}

.dia__fondos picture {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--suave);
}

.dia__fondos picture.is-on {
  opacity: 1;
}

.dia__fondos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.32) saturate(0.9);
  transform: scale(1.08);
  transition: transform 6s linear;
}

.dia__fondos picture.is-on img {
  transform: scale(1);
}

/* El marco rojo del piloto cuando el evento está en directo */
.dia__fondos::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  box-shadow: inset 0 0 0 0 var(--rojo), inset 0 0 120px rgba(255, 58, 46, 0);
  transition: box-shadow 0.8s var(--suave);
}

.dia.is-vivo .dia__fondos::after {
  box-shadow: inset 0 0 0 6px var(--rojo);
}

.dia__rejilla {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.dia__fijo {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  height: 100svh;
  align-self: start;
  container-type: inline-size;
}

.dia__fijo h2 {
  font-size: clamp(0.8125rem, 1vw, 0.9375rem);
  font-weight: 650;
  font-stretch: 112%;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--texto);
}

.dia__reloj {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  overflow: hidden;
  font-size: clamp(4rem, 10.5vw, 12.5rem);
  /* A la medida de su columna: con el ancho de la ventana, «ANTES» se salía y cortaba la S */
  font-size: min(12.5rem, 19.5cqi);
  font-weight: 800;
  font-stretch: 125%;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
  line-height: 0.9;
  text-transform: uppercase;
}

.dia__reloj .piloto {
  width: 0.14em;
  height: 0.14em;
  background: rgba(242, 239, 233, 0.2);
  box-shadow: none;
  animation: none;
  transition: background 0.5s;
}

.dia.is-vivo .dia__reloj .piloto {
  background: var(--rojo);
}

.dia__hora {
  display: block;
}

.dia__hora.is-rueda {
  animation: rueda 0.8s var(--suave);
}

@keyframes rueda {
  from {
    opacity: 0;
    transform: translateY(55%);
    filter: blur(6px);
  }
}

.dia__nota {
  font-size: 0.8125rem;
  color: var(--tenue);
}

.dia__pasos {
  padding-block: 30svh;
}

.dia__paso {
  display: grid;
  align-content: center;
  gap: 0.75rem;
  min-height: 70svh;
  opacity: 0.55;
  transition: opacity 0.7s var(--suave);
}

.dia__paso.is-on {
  opacity: 1;
}

.dia__paso-hora {
  font-size: 0.8125rem;
  font-weight: 650;
  font-family: var(--mono);
  font-stretch: 87.5%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--tenue);
}

.dia__paso[data-vivo] .dia__paso-hora {
  color: var(--rojo);
}

.dia__paso h3 {
  font-size: clamp(2rem, 3.6vw, 3.5rem);
  font-weight: 800;
  font-stretch: 120%;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.dia__paso p:last-child {
  max-width: 26rem;
  font-size: 1.125rem;
  color: var(--texto);
}

@media (max-width: 47.99rem) {
  .dia__rejilla {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .dia__fijo {
    top: 0;
    z-index: 2;
    height: auto;
    margin-inline: calc(var(--gutter) * -1);
    padding: 1.5rem var(--gutter) 2.5rem;
    background: linear-gradient(rgba(0, 0, 0, 0.92) 70%, transparent);
  }

  .dia__pasos {
    padding-block: 10svh 25svh;
  }

  .dia__paso {
    min-height: 55svh;
  }
}

/* 8. Bloque claro: tipos de evento y dudas */
.claro {
  /* Por encima del fondo fijo de «Un día de directo», que sobresale al terminar la sección */
  position: relative;
  z-index: 1;
  --linea: rgba(13, 13, 16, 0.14);
  --texto: rgba(13, 13, 16, 0.72);
  --tenue: rgba(13, 13, 16, 0.55);
  padding-block: var(--seccion);
  --banda: rgba(13, 13, 16, 0.05);
  --banda-on: rgba(13, 13, 16, 0.1);
  background: var(--papel);
  color: var(--tinta);
  color-scheme: light;
}

/* Rótulo técnico, en letra de máquina */
.etiqueta {
  margin-bottom: 1.25rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  font-stretch: 87.5%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tenue);
}

.etiqueta::before {
  content: none;
}

/* En el bloque claro los titulares van estrechos y altos, como un rótulo de escenario */
.claro .eventos__lista h2,
.claro .dudas__cabeza h2 {
  font-size: clamp(3rem, 7.4vw, 7rem);
  font-stretch: 62%;
  letter-spacing: -0.015em;
  line-height: 0.86;
}

.claro .button {
  background: var(--tinta);
  color: var(--hueso);
}

.eventos {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.eventos__lista h2 {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.eventos__lista ul {
  counter-reset: cue;
}

.evento {
  display: grid;
  grid-template-columns: clamp(2.75rem, 5vw, 4.5rem) minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.5rem 1rem;
  padding-block: 1.9rem 1.5rem;
  counter-increment: cue;
}

.evento::before {
  content: counter(cue, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  font-stretch: 87.5%;
  color: var(--tenue);
  transition: color 0.3s;
}

.evento strong {
  grid-column: 2;
  font-size: clamp(2rem, 3.9vw, 3.4rem);
  font-weight: 800;
  font-stretch: 62%;
  letter-spacing: -0.01em;
  line-height: 0.92;
  text-transform: uppercase;
  transition: transform 0.6s var(--suave), color 0.3s;
}

.evento span {
  grid-column: 2;
  max-width: 30rem;
  color: var(--tenue);
  transition: color 0.3s;
}

.evento {
  padding-inline: clamp(1rem, 2vw, 1.75rem);
}

.evento.is-on {
  background: var(--tinta);
  color: var(--hueso);
}

.evento.is-on span {
  color: rgba(242, 239, 233, 0.72);
}

.evento.is-on::before {
  content: '● ' counter(cue, decimal-leading-zero);
  color: var(--rojo);
}

.evento svg {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  width: 1.5rem;
  height: 1.5rem;
  opacity: 0.3;
  transition: opacity 0.3s, transform 0.6s var(--suave);
}

.evento.is-on svg,
.evento:hover svg {
  opacity: 1;
  color: var(--rojo);
  transform: translateX(0.25rem);
}

.zona-linea {
  margin-top: 2rem;
  color: var(--texto);
}

.zona-linea .more {
  margin-left: 0.5rem;
  color: var(--tinta);
}

.eventos__visor {
  position: sticky;
  top: calc(var(--cabecera) + 2rem);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #000;
}

.eventos__visor picture {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 100%);
  transition: clip-path 0.9s var(--cine);
}

.eventos__visor picture.is-on {
  z-index: 1;
  clip-path: inset(0 0 0 0);
}

.eventos__visor img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  transition: transform 1.6s var(--suave);
}

.eventos__visor picture.is-on img {
  transform: scale(1);
}

@media (max-width: 63.99rem) {
  .eventos {
    grid-template-columns: 1fr;
  }

  .eventos__visor {
    display: none;
  }
}

.dudas {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2rem clamp(2rem, 6vw, 6rem);
  margin-top: var(--seccion);
}

.dudas__cabeza {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 1.5rem;
}

@media (max-width: 63.99rem) {
  .dudas {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Preguntas (portada y página de preguntas frecuentes)
   -------------------------------------------------------------------------- */
.faq {
  counter-reset: pregunta;
}

.faq details {
  counter-increment: pregunta;
}

.faq summary {
  display: grid;
  grid-template-columns: clamp(2.75rem, 5vw, 4.5rem) minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 1rem;
  padding-block: 1.9rem 1.5rem;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::before,
.faq details > p::before,
.faq details > div::before {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  font-stretch: 87.5%;
  color: var(--tenue);
}

.faq summary::before {
  content: 'P.' counter(pregunta, decimal-leading-zero);
  transition: color 0.3s;
}

.faq summary h2,
.faq summary h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 500;
  font-stretch: 96%;
  letter-spacing: -0.025em;
  line-height: 1.18;
  transition: color 0.3s;
}

.faq summary::after {
  content: '+';
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.5s var(--cine), color 0.3s;
}

.faq details[open] {
  background: var(--banda-on);
}

.faq summary {
  padding-inline: clamp(1rem, 2vw, 1.75rem);
}

.faq details > p,
.faq details > div {
  margin-inline: clamp(1rem, 2vw, 1.75rem);
}

.faq details[open] summary::before {
  color: var(--rojo);
}

.faq details[open] summary::after {
  color: var(--rojo);
  transform: rotate(45deg);
}

.faq summary:hover h2,
.faq summary:hover h3 {
  color: var(--rojo);
}

.faq details > p,
.faq details > div {
  position: relative;
  max-width: 48rem;
  padding: 0 3rem 1.9rem calc(clamp(2.75rem, 5vw, 4.5rem) + 1rem);
  color: var(--texto);
}

.faq details > p::before,
.faq details > div::before {
  content: 'R.';
  position: absolute;
  left: 0;
  top: 0.3em;
}

.faq details > div > p + p {
  margin-top: 0.8rem;
}

@supports (interpolate-size: allow-keywords) {
  .faq {
    interpolate-size: allow-keywords;
  }

  .faq details::details-content {
    height: 0;
    overflow: clip;
    transition: height 0.55s var(--cine), content-visibility 0.55s allow-discrete;
  }

  .faq details[open]::details-content {
    height: auto;
  }
}

.faq__cta {
  margin-top: 3rem;
}

/* --------------------------------------------------------------------------
   Cierre con foto (todas las páginas)
   -------------------------------------------------------------------------- */
.cierre {
  display: grid;
  align-items: end;
  min-height: 100svh;
  padding-block: calc(var(--cabecera) + 4rem) clamp(3rem, 7vw, 6rem);
  background: #000;
}

.cierre .escena__fondo img {
  filter: brightness(0.4);
  transform: scale(calc(1.15 - var(--p, 0) * 0.15));
}

.cierre .escena__fondo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--negro), transparent 30%, transparent 55%, rgba(0, 0, 0, 0.8));
}

.cierre h2 {
  font-size: clamp(2.75rem, 8.2vw, 9rem);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.05em;
  line-height: 0.88;
  text-transform: uppercase;
}

.cierre h2 > span {
  display: block;
}

/* En móvil, «¿Encendemos» tiene que caber entero en una línea */
@media (max-width: 47.99rem) {
  .cierre h2 {
    font-size: 9vw;
  }
}

.cierre h2 > span:last-child {
  font-weight: 200;
  color: rgba(242, 239, 233, 0.86);
}

.cierre__pie {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(2rem, 5vw, 4rem);
}

.cierre__pie p {
  max-width: 28rem;
  font-size: 1.125rem;
  color: var(--texto);
}

.cierre__acciones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
}

.cierre__tel {
  font-size: 1rem;
  border-bottom: 1px solid var(--linea);
  transition: border-color 0.3s;
}

.cierre__tel:hover {
  border-color: currentColor;
}

/* --------------------------------------------------------------------------
   Pie: queda debajo y se descubre al llegar al final
   -------------------------------------------------------------------------- */
main {
  position: relative;
  z-index: 1;
  display: block;
  background: var(--negro);
}

.pie {
  position: relative;
  z-index: 0;
  overflow: hidden;
  padding-top: clamp(4rem, 8vw, 7rem);
  background: #050506;
}

@media (min-width: 64rem) and (min-height: 46rem) {
  .pie {
    position: sticky;
    bottom: 0;
  }
}

.pie__arriba {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 3rem clamp(2rem, 6vw, 6rem);
}

.pie__hablemos {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 1rem;
}

.pie__hablemos h2 {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tenue);
}

.pie__mail {
  font-size: clamp(1.25rem, 2vw, 2.25rem);
  font-weight: 700;
  font-stretch: 115%;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(var(--rojo), var(--rojo)) left bottom / 0 2px no-repeat;
  transition: background-size 0.6s var(--cine);
}

.pie__mail:hover {
  background-size: 100% 2px;
}

.pie__tels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  font-size: 1.125rem;
  font-variant-numeric: tabular-nums;
}

.pie__tels a:hover {
  color: var(--rojo);
}

.pie__wa {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 1.125rem;
}

.pie__wa:hover {
  color: var(--rojo);
}

.pie__columnas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.pie__columnas h2 {
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 650;
  font-stretch: 100%;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tenue);
}

.pie__columnas li + li {
  margin-top: 0.45rem;
}

.pie__columnas a {
  font-size: 0.9375rem;
  color: var(--texto);
  transition: color 0.3s;
}

.pie__columnas a:hover {
  color: var(--hueso);
}

.pie__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-block: 1.5rem;
  font-size: 0.8125rem;
  color: var(--tenue);
}

.pie__meta ul {
  display: flex;
  gap: 1.5rem;
}

.pie__meta a:hover {
  color: var(--hueso);
}

.pie__subir {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* El nombre enorme al fondo */
.pie__marca {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.05em;
  width: 100%;
  padding: 0 0.5vw;
  margin-bottom: -0.2em;
  font-size: 11.6vw;
  letter-spacing: -0.05em;
  line-height: 0.82;
  color: var(--grafito);
  transition: color 0.6s;
}

.pie__marca .logo__av {
  margin-top: 0.06em;
  padding: 0.1em 0.12em 0.06em;
  background: transparent;
  color: var(--grafito);
  font-size: 0.42em;
  box-shadow: inset 0 0 0 0.04em currentColor;
  transition: color 0.6s, background 0.6s, box-shadow 0.6s;
}

.pie__marca:hover {
  color: var(--hueso);
}

.pie__marca:hover .logo__av {
  background: var(--rojo);
  color: #fff;
  box-shadow: none;
}

@media (max-width: 47.99rem) {
  .pie__arriba,
  .pie__columnas {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .pie {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
  }
}

/* --------------------------------------------------------------------------
   Barra de contacto del móvil
   -------------------------------------------------------------------------- */
.barra-movil {
  display: none;
}

@media (max-width: 47.99rem) {
  .barra-movil {
    position: fixed;
    inset: auto 0 0;
    z-index: 40;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem;
    padding: 0.625rem var(--gutter) calc(0.625rem + env(safe-area-inset-bottom));
    background: var(--negro);
    transition: transform 0.5s var(--cine);
  }

  .barra-movil .button {
    justify-content: center;
  }

  .barra-movil__icono {
    display: grid;
    place-items: center;
    inline-size: 3rem;
    border: 1px solid var(--linea);
  }

  body:has(.apertura) .barra-movil:not(.is-visible),
  body:has(.header__toggle:checked) .barra-movil {
    transform: translateY(110%);
  }
}

/* WhatsApp flotante: abajo a la derecha; en el móvil, por encima de la barra de contacto */
.wa-flotante {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 45;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #128c7e;
  color: #fff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.5s var(--cine), background-color 0.3s;
}

.wa-flotante:active {
  scale: 0.94;
}

@media (hover: hover) {
  .wa-flotante:hover {
    background: #0f7a6e;
  }
}

body:has(.header__toggle:checked) .wa-flotante {
  transform: translateY(calc(100% + 2rem));
}

@media (max-width: 47.99rem) {
  .wa-flotante {
    width: 3.25rem;
    height: 3.25rem;
  }

  /* Con la barra a la vista, el botón sube por encima de ella (en la portada, la barra
     aparece al dejar atrás el primer botón) */
  body:has(.barra-movil) .wa-flotante {
    transform: translateY(-4.5rem);
  }

  body:has(.apertura):has(.barra-movil:not(.is-visible)) .wa-flotante {
    transform: none;
  }

  body:has(.header__toggle:checked) .wa-flotante {
    transform: translateY(calc(100% + 2rem));
  }
}

/* ==========================================================================
   PÁGINAS INTERIORES
   ========================================================================== */

/* Cabecera de página: foto a pantalla casi completa y el título encima */
.page-head {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1.25rem;
  min-height: min(88svh, 60rem);
  margin-inline: calc(50% - 50vw);
  padding: calc(var(--cabecera) + 4rem) max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) clamp(2.5rem, 6vw, 5rem);
  overflow: hidden;
  background: #000;
}

.page-head__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.page-head__bg picture,
.page-head__bg img {
  width: 100%;
  height: 100%;
}

.page-head__bg img {
  object-fit: cover;
  filter: brightness(0.42) saturate(1.05);
  transform: scale(calc(1.08 + var(--p, 0) * 0.12)) translateY(calc(var(--p, 0) * 6%));
}

.js .page-head__bg picture {
  animation: enfoque 1.8s var(--suave) both;
}

.page-head__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 10, 0.6), transparent 30%, transparent 50%, var(--negro));
}

.page-head h1 {
  max-width: 18ch;
  font-size: clamp(2.5rem, 6vw, 6.25rem);
  font-weight: 800;
  font-stretch: 122%;
  letter-spacing: -0.045em;
  line-height: 0.94;
  text-transform: uppercase;
}

.page-head .lead {
  color: rgba(242, 239, 233, 0.82);
}

.page-head .tag {
  color: rgba(242, 239, 233, 0.75);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(242, 239, 233, 0.6);
}

.crumbs li:not(:last-child)::after {
  content: '/';
  margin-inline: 0.65rem;
  opacity: 0.5;
}

.crumbs a:hover {
  color: var(--hueso);
}

.crumbs [aria-current] {
  color: var(--hueso);
}

/* Páginas sin foto (textos legales, 404) */
.legal .page-head {
  min-height: 0;
  padding-top: calc(var(--cabecera) + clamp(4rem, 10vw, 8rem));
  background: var(--negro);
}

.legal .page-head h1 {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
}

/* Foto principal de un trabajo */
.page-head + picture {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.cover,
.page-head + picture img {
  width: 100%;
  max-height: 80svh;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Cuerpo: texto y columna lateral fija */
.body,
.about,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 3rem clamp(2rem, 6vw, 6rem);
  padding-top: clamp(4rem, 8vw, 7rem);
}

.body__side {
  position: sticky;
  top: calc(var(--cabecera) + 1.5rem);
  align-self: start;
  display: grid;
  gap: 2rem;
}

.body__side picture img,
.photo {
  width: 100%;
  object-fit: cover;
}

.body__side picture img {
  aspect-ratio: 4 / 3;
}

.body__side h2,
.related > h2,
.block > h2,
.photos > h2,
.others h2,
.more-work h2,
.offer > h2,
.about h2 {
  margin-bottom: 1.25rem;
  font-size: 0.75rem;
  font-weight: 650;
  font-stretch: 100%;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--tenue);
}

.body__side ul {
}

.body__side li {
}

.body__side li a,
.body__side li:not(:has(a)) {
  display: block;
  padding-block: 0.85rem;
  font-size: 0.9375rem;
  transition: color 0.3s, transform 0.5s var(--suave);
}

.body__side li a:hover {
  color: var(--rojo);
  transform: translateX(0.4rem);
}

.body__side dl {
  display: grid;
  gap: 0.25rem;
}

.body__side dt {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tenue);
}

.body__side dd {
  font-size: 1.5rem;
  font-weight: 700;
  font-stretch: 115%;
  letter-spacing: -0.02em;
}

.body__side .button {
  justify-self: start;
}

/* Texto largo */
.prose {
  max-width: 46rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--texto);
}

.prose > * + * {
  margin-top: 1.25rem;
}

.prose > p:first-child {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.5;
  color: var(--hueso);
}

.prose h2 {
  margin-top: clamp(2.75rem, 5vw, 4rem);
  font-size: clamp(1.625rem, 2.8vw, 2.5rem);
  font-weight: 800;
  font-stretch: 118%;
  letter-spacing: -0.035em;
  color: var(--hueso);
}

/* Vídeo de un caso, dentro del texto */
.video-caso {
  margin-inline: 0;
}

.video-caso video {
  display: block;
  inline-size: 100%;
  block-size: auto;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-caso figcaption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--tenue);
}

.prose h3 {
  margin-top: 2rem;
  font-size: 1.25rem;
  color: var(--hueso);
}

.prose strong {
  color: var(--hueso);
  font-weight: 650;
}

.prose a:not(.button):not(.more):not(.body__llamar) {
  color: var(--hueso);
  text-decoration: underline;
  text-decoration-color: var(--rojo);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

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

.prose ul li,
.prose ol li {
  position: relative;
  padding-left: 1.5rem;
}

.prose ul li + li,
.prose ol li + li {
  margin-top: 0.6rem;
}

.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--rojo);
}

.prose ol {
  counter-reset: paso;
}

.prose ol li {
  counter-increment: paso;
}

.prose ol li::before {
  content: counter(paso);
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--rojo);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.prose th,
.prose td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--linea);
  text-align: left;
  vertical-align: top;
}

.prose .list-plain li {
  padding-left: 0;
}

.prose .list-plain li::before {
  display: none;
}

.body__area {
  font-size: 0.9375rem;
  color: var(--tenue);
}

.body__cta,
.body__llamar {
  color: var(--texto);
  border-bottom: 1px solid var(--linea);
}

.body__llamar:hover {
  color: var(--hueso);
  border-color: currentColor;
}

.legal .prose {
  padding-block: clamp(3rem, 6vw, 5rem);
}

@media (max-width: 63.99rem) {
  .body,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .body__side {
    position: static;
  }
}

/* Bloques al pie de las páginas interiores */
.related,
.block,
.photos,
.others,
.offer {
  margin-top: clamp(5rem, 10vw, 9rem);
}

article.container,
main > .container {
  padding-bottom: clamp(5rem, 10vw, 9rem);
}

.list {
  padding-top: clamp(4rem, 8vw, 7rem);
}

/* Trabajos en lista: foto grande y texto al lado, alternando */
.projects {
  display: grid;
  gap: clamp(3rem, 7vw, 6rem);
}

.projects__link {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: 2rem clamp(2rem, 5vw, 5rem);
}

.projects li:nth-child(even) .projects__link > picture {
  order: 2;
}

.projects__link > picture {
  overflow: hidden;
}

.projects__link > picture img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1.3s var(--suave), filter 0.8s;
  filter: brightness(0.85);
}

.projects__text {
  display: grid;
  justify-items: start;
  gap: 1rem;
}

.projects__name {
  font-size: clamp(2rem, 4vw, 3.75rem);
  font-weight: 800;
  font-stretch: 122%;
  letter-spacing: -0.045em;
  line-height: 0.95;
  text-transform: uppercase;
}

.projects__desc {
  color: var(--texto);
}

@media (hover: hover) {
  .projects__link:hover > picture img {
    transform: scale(1.05);
    filter: brightness(1);
  }

  .projects__link:hover .more {
    color: var(--rojo);
  }
}

@media (max-width: 47.99rem) {
  .projects__link {
    grid-template-columns: 1fr;
  }

  .projects li:nth-child(even) .projects__link > picture {
    order: 0;
  }
}

/* Tarjetas con foto (servicios, eventos) */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

.tiles--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tile {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: grid;
  align-content: end;
  height: 100%;
  min-height: clamp(22rem, 38vw, 34rem);
  padding: clamp(1.25rem, 2.4vw, 2rem);
  overflow: hidden;
  isolation: isolate;
  background: #000;
}

.tiles--4 .tile {
  min-height: clamp(22rem, 34vw, 32rem);
}

.tile > picture {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.tile > picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
  transition: transform 1.3s var(--suave), filter 0.8s;
}

.tile::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.85));
  opacity: 0.85;
  transition: opacity 0.5s;
}

.tile__go svg,
.indice__ir svg {
  transition: transform 0.6s var(--suave);
}

.tile__go {
  position: absolute;
  top: clamp(1rem, 2vw, 1.5rem);
  right: clamp(1rem, 2vw, 1.5rem);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(242, 239, 233, 0.3);
  transition: background 0.4s, border-color 0.4s, transform 0.6s var(--suave);
}

.tile__text {
  display: grid;
  gap: 0.6rem;
}

.tile__text h2,
.tile__text h3 {
  font-size: clamp(1.375rem, 2vw, 1.875rem);
  font-weight: 800;
  font-stretch: 118%;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-transform: uppercase;
}

.tile__text p {
  font-size: 0.9375rem;
  color: rgba(242, 239, 233, 0.75);
}

@media (hover: hover) and (pointer: fine) {
  .tile__text p {
    max-height: 0;
    opacity: 0;
    transform: translateY(0.75rem);
    transition: max-height 0.7s var(--cine), opacity 0.5s, transform 0.7s var(--suave);
  }

  .tile:hover .tile__text p,
  .tile:focus-visible .tile__text p {
    max-height: 8rem;
    opacity: 1;
    transform: none;
  }

  .tile:hover > picture img {
    transform: scale(1.06);
    filter: brightness(0.7);
  }

  .tile:hover::before {
    opacity: 1;
  }

  .tile:hover .tile__go {
    background: var(--rojo);
    border-color: var(--rojo);
  }

  .tile:hover .tile__go svg {
    transform: rotate(-45deg);
  }
}

@media (max-width: 63.99rem) {
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 39.99rem) {
  .tiles,
  .tiles--4 {
    grid-template-columns: 1fr;
  }

  .tile {
    min-height: 20rem;
  }
}

.list__area {
  margin-top: 2.5rem;
  color: var(--texto);
}

.list__area a {
  color: var(--hueso);
  text-decoration: underline;
  text-decoration-color: var(--rojo);
  text-underline-offset: 4px;
}

/* Galería de fotos de cada trabajo (se abre a pantalla completa) */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(0.5rem, 1vw, 1rem);
}

.gallery li {
  grid-column: span 4;
  overflow: hidden;
}

.gallery li:nth-child(5n + 1) {
  grid-column: span 8;
  grid-row: span 2;
}

.gallery picture,
.gallery img {
  width: 100%;
  height: 100%;
}

.gallery img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 1.2s var(--suave), filter 0.6s;
  filter: brightness(0.9);
}

.gallery li:hover img {
  transform: scale(1.04);
  filter: brightness(1);
}

@media (max-width: 47.99rem) {
  .gallery li,
  .gallery li:nth-child(5n + 1) {
    grid-column: span 12;
    grid-row: auto;
  }
}

.visor-foto {
  width: 100vw;
  max-width: none;
  height: 100svh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.94);
  color: var(--hueso);
}

.visor-foto[open] {
  display: grid;
  place-items: center;
  animation: aparecer 0.4s var(--suave);
}

.visor-foto::backdrop {
  background: transparent;
}

.visor-foto img {
  max-width: 92vw;
  max-height: 84svh;
  object-fit: contain;
}

.visor-foto button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid var(--linea);
  background: rgba(8, 8, 10, 0.6);
  cursor: pointer;
  font-size: 1.25rem;
  transition: background 0.3s;
}

.visor-foto button:hover {
  background: var(--rojo);
}

.visor-foto [data-cerrar] { top: 1.25rem; right: 1.25rem; }
.visor-foto [data-antes] { left: 1.25rem; top: 50%; translate: 0 -50%; }
.visor-foto [data-despues] { right: 1.25rem; top: 50%; translate: 0 -50%; }

/* Otros enlaces (más experiencia, otros eventos) */
.others ul {
}

.others li {
}

.others a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.4rem;
  font-size: clamp(1.375rem, 2.6vw, 2.25rem);
  font-weight: 750;
  font-stretch: 118%;
  letter-spacing: -0.035em;
  line-height: 1.1;
  transition: color 0.3s, padding 0.6s var(--suave);
}

.others a svg {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  transition: transform 0.6s var(--suave);
}

.others a:hover {
  padding-left: 1rem;
  color: var(--rojo);
}

.others a:hover svg {
  transform: translateX(-0.5rem);
}

/* Tira de fotos de la página de experiencia */
.more-work {
  padding-block: clamp(5rem, 10vw, 9rem);
  background: var(--carbon);
}

.more-work h2 {
  margin-bottom: 0.75rem;
}

.more-work .lead {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  font-stretch: 115%;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--hueso);
}

.reel {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
}

.reel.is-dragging {
  cursor: grabbing;
}

.reel__track {
  display: flex;
  width: max-content;
}

.reel__track ul {
  display: flex;
  gap: 1rem;
  padding-right: 1rem;
}

.reel li {
  flex: none;
  width: clamp(15rem, 28vw, 26rem);
}

.reel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.reel:not(.is-live) {
  overflow-x: auto;
}

/* Zonas de trabajo */
.zones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(4rem, 8vw, 7rem);
  background: var(--linea);
}

.zone {
  display: grid;
  align-content: start;
  gap: 1.25rem;
  padding: clamp(1.5rem, 3.5vw, 3rem);
  background: var(--negro);
  transition: background 0.5s;
}

.zone:hover {
  background: var(--carbon);
}

.zone h2 {
  font-size: clamp(1.75rem, 3.2vw, 3rem);
  font-weight: 800;
  font-stretch: 120%;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.zone p {
  color: var(--texto);
}

.zone__places {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0;
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--tenue);
}

.zone__places li:not(:last-child)::after {
  content: '·';
  margin-inline: 0.55rem;
  color: var(--rojo);
}

@media (max-width: 47.99rem) {
  .zones {
    grid-template-columns: 1fr;
  }
}

.offer__cta {
  margin-top: 2.5rem;
}

/* Contacto */
/* En la portada, el formulario cierra la página */
.presupuesto {
  position: relative;
  z-index: 1;
  padding-bottom: var(--seccion);
  background: var(--negro);
}

.contact__data {
  position: sticky;
  top: calc(var(--cabecera) + 1.5rem);
  align-self: start;
  display: grid;
  gap: 2.25rem;
  order: 2;
}

.contact__data dt {
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tenue);
}

.contact__data dd a {
  font-size: clamp(1.375rem, 2.2vw, 1.875rem);
  font-weight: 700;
  font-stretch: 115%;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  transition: color 0.3s;
}

.contact__data dd a:hover {
  color: var(--rojo);
}

.contact__where {
  color: var(--texto);
}

.contact > section > h2 {
  margin-bottom: 2rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  font-stretch: 122%;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

@media (max-width: 63.99rem) {
  .contact__data {
    position: static;
    order: 0;
  }

  /* En la portada ya se han visto teléfono y WhatsApp: primero el formulario */
  .presupuesto .contact__data {
    order: 2;
  }
}

/* Formulario */
.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 1.5rem;
}

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

.form label > span,
.form legend {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--texto);
}

.form .muted {
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 400;
}

.form input:not([type='checkbox']),
.form select,
.form textarea {
  width: 100%;
  padding: 0.85rem 0;
  border: 0;
  border-bottom: 1px solid rgba(242, 239, 233, 0.3);
  border-radius: 0;
  background: transparent;
  font-size: 1.125rem;
  transition: border-color 0.3s, background-size 0.5s var(--cine);
  background-image: linear-gradient(var(--rojo), var(--rojo));
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 0 2px;
}

.form input:not([type='checkbox']):focus,
.form select:focus,
.form textarea:focus {
  outline: 0;
  background-size: 100% 2px;
}

.form select {
  appearance: none;
  background-image:
    linear-gradient(var(--rojo), var(--rojo)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23f2efe9' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left bottom, right 0.25rem center;
  background-size: 0 2px, 12px 8px;
}

.form select:focus {
  background-size: 100% 2px, 12px 8px;
}

.form select option {
  background: var(--carbon);
}

.form textarea {
  resize: vertical;
  min-height: 8rem;
}

.form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.form__opciones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.form__opcion {
  position: relative;
}

.form__opcion input {
  position: absolute;
  opacity: 0;
}

.form__opcion span {
  display: flex !important;
  align-items: center;
  gap: 0.6rem;
  height: 100%;
  margin: 0 !important;
  padding: 1rem;
  border: 1px solid rgba(242, 239, 233, 0.22);
  font-size: 0.9375rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--hueso) !important;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.form__opcion span::before {
  content: '';
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(242, 239, 233, 0.25);
  transition: background 0.3s, box-shadow 0.3s;
}

.form__opcion:hover span {
  border-color: var(--hueso);
}

.form__opcion input:checked + span {
  border-color: var(--hueso);
  background: var(--hueso);
  color: var(--negro) !important;
}

.form__opcion input:checked + span::before {
  background: var(--rojo);
}

.form__opcion input:focus-visible + span {
  outline: 2px solid var(--rojo);
  outline-offset: 2px;
}

.form__check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.form__check span {
  margin: 0 !important;
  font-size: 0.9375rem !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.form__check a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form__check input {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  accent-color: var(--rojo);
}

.form__note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--tenue);
}

.form__note a {
  text-decoration: underline;
}

/* Primera capa de información de protección de datos, junto a la casilla de privacidad */
.form__legal {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--tenue);
}

.form__legal a {
  text-decoration: underline;
}

@media (max-width: 47.99rem) {
  .form,
  .form__opciones {
    grid-template-columns: 1fr;
  }
}

/* 404 */
.section {
  display: grid;
  justify-items: start;
  gap: 1.5rem;
  padding-top: calc(var(--cabecera) + clamp(5rem, 14vw, 10rem));
  padding-bottom: clamp(5rem, 10vw, 8rem);
}

.section h1 {
  font-size: clamp(2.5rem, 7vw, 6.5rem);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

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

/* Entradas al aparecer en pantalla */
/* Cada pieza entra por corte, una detrás de otra */
.js [data-in] > * {
  opacity: 0;
  transition: opacity 0.12s linear;
  transition-delay: calc(var(--i, 0) * 110ms);
}

.js [data-in] > .page-head__bg {
  opacity: 1;
  translate: none;
}

.js [data-in].is-in > * {
  opacity: 1;
}

.js .reveal {
  opacity: 0;
  transition: opacity 0.12s linear, background 0.5s;
}

.js .reveal.is-in {
  opacity: 1;
}

/* Titulares que entran palabra a palabra con una cortinilla de izquierda a derecha */
.palabra {
  display: inline-block;
  vertical-align: top;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.palabra > span {
  display: inline-block;
}

.js [data-split] .palabra > span {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.55s var(--cine);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.js [data-split].is-in .palabra > span {
  clip-path: inset(-0.4em);
}

/* Fotos que se descubren como un telón */
.js .revela {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.3s var(--cine);
}

.js .revela img {
  scale: 1.25;
  transition: scale 1.8s var(--suave), transform 1.3s var(--suave), filter 0.8s;
}

.js .revela.is-in {
  clip-path: inset(0 0 0 0);
}

.js .revela.is-in img {
  scale: 1;
}

/* Cursor propio (solo con ratón) */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  width: 0.75rem;
  height: 0.75rem;
  margin: -0.375rem 0 0 -0.375rem;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  translate: var(--cx, -100px) var(--cy, -100px);
  transition: width 0.45s var(--suave), height 0.45s var(--suave), margin 0.45s var(--suave), opacity 0.3s;
}

.cursor span {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000;
  opacity: 0;
  transition: opacity 0.2s;
}

.cursor.is-enlace {
  width: 3rem;
  height: 3rem;
  margin: -1.5rem 0 0 -1.5rem;
}

.cursor.is-ver {
  width: 5.5rem;
  height: 5.5rem;
  margin: -2.75rem 0 0 -2.75rem;
  mix-blend-mode: normal;
  background: var(--hueso);
}

.cursor.is-ver span {
  opacity: 1;
}

.cursor.is-fuera {
  opacity: 0;
}

/* Cortina entre páginas */
.cortina {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  background: var(--negro);
  transform: scaleY(0);
  transform-origin: bottom;
}

.cortina::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--rojo);
}

.cortina.is-cerrando {
  transform: scaleY(1);
  transition: transform 0.5s var(--cine);
}

html.entra body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  background: var(--negro);
  border-bottom: 3px solid var(--rojo);
  transform-origin: top;
  animation: telon 0.8s var(--cine) 0.05s both;
}

@keyframes telon {
  from { transform: scaleY(1); }
  to { transform: scaleY(0); }
}

/* --------------------------------------------------------------------------
   Preferencias de accesibilidad
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }

  .apertura,
  .manifiesto {
    height: auto;
  }

  .hero,
  .manifiesto__fijo {
    position: relative;
  }

  .manifiesto__fijo {
    height: auto;
    padding-block: var(--seccion);
  }

  .manifiesto__titulo span {
    color: var(--hueso);
  }

  .manifiesto__datos {
    opacity: 1;
    transform: none;
  }

  .cursor,
  .cortina,
  html.entra body::before {
    display: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --texto: rgba(242, 239, 233, 0.92);
    --tenue: rgba(242, 239, 233, 0.8);
    --linea: rgba(242, 239, 233, 0.4);
  }
}

/* Sin aceleración gráfica (main.js, apartado 20): el procesador lo dibuja todo y no da
   abasto. Se apagan el brillo y el grano de los titulares, la capa propia del nombre de la
   portada y la mezcla de colores del cursor propio; así la página baja con fluidez. Con tarjeta
   gráfica no se aplica. */
html.sin-gpu {
  --grano-t-oscuro: none;
  --grano-t-claro: none;
  --grano-35-oscuro: none;
  --grano-35-claro: none;
}

.sin-gpu .titulo-fx,
.sin-gpu .dia__reloj,
.sin-gpu .hero__marca,
.sin-gpu .hero__tally,
.sin-gpu .hero__zone,
.sin-gpu .hero__av,
.sin-gpu .manifiesto__titulo > span {
  filter: none !important;
}

.sin-gpu .hero__media img,
.sin-gpu .hero__tally,
.sin-gpu .hero__zone,
.sin-gpu .hero__av {
  will-change: auto;
}

/* El círculo del cursor se queda, pero sin mezcla de colores (cara de pintar con el procesador) */
.sin-gpu .cursor {
  mix-blend-mode: normal;
  background: rgba(242, 239, 233, 0.85);
}

/* Sobre un enlace, aro en vez de círculo lleno para que el texto se siga leyendo */
.sin-gpu .cursor.is-enlace {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(242, 239, 233, 0.85);
}

.sin-gpu .cursor.is-ver {
  background: var(--hueso);
}

/* Resultado del envío del formulario: bien visible */
.form__note.is-ok,
.form__note.is-error {
  margin-block-start: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--linea);
  border-inline-start-width: 0.25rem;
  background: var(--grafito);
  color: var(--hueso);
  font-size: 1rem;
  line-height: 1.5;
}

.form__note.is-ok {
  border-inline-start-color: #3ecf8e;
}

.form__note.is-error {
  border-inline-start-color: var(--rojo);
}

/* Aviso de cookies y botón flotante para cambiar la decisión (abajo a la izquierda) */
.cookies {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  gap: 0.75rem;
  inline-size: min(26rem, calc(100vw - 2rem));
  padding: 1.25rem;
  border: 1px solid var(--linea);
  background: var(--carbon);
  color: var(--texto);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  font-size: 0.875rem;
  line-height: 1.5;
}

.cookies[hidden],
.cookies-flotante[hidden] {
  display: none;
}

.cookies p {
  margin: 0;
}

.cookies__titulo {
  color: var(--hueso);
  font-family: var(--d);
  font-size: 1rem;
  font-weight: 700;
}

.cookies a {
  color: var(--hueso);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.cookies__acciones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.cookies__acciones .button {
  justify-content: center;
}

.cookies-flotante {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 45;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid var(--linea);
  border-radius: 50%;
  background: var(--carbon);
  color: var(--hueso);
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.5s var(--cine), background-color 0.3s;
}

.cookies-flotante:active {
  scale: 0.94;
}

@media (hover: hover) {
  .cookies-flotante:hover {
    background: var(--grafito);
  }
}

body:has(.header__toggle:checked) .cookies-flotante {
  transform: translateY(calc(100% + 2rem));
}

@media (max-width: 47.99rem) {
  body:has(.barra-movil) .cookies-flotante {
    transform: translateY(-4.5rem);
  }

  body:has(.apertura):has(.barra-movil:not(.is-visible)) .cookies-flotante {
    transform: none;
  }
}

@media print {
  .header,
  .barra-movil,
  .cookies,
  .cookies-flotante,
  .wa-flotante,
  .cierre,
  .cursor {
    display: none !important;
  }

  body,
  main,
  .pie {
    background: #fff;
    color: #000;
  }
}

/* Quinta tarjeta (hoteles): ocupa el ancho completo en vez de quedar sola */
@media (min-width: 40rem) {
  .tiles--4 > li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .tiles--4 > li:last-child:nth-child(odd) .tile {
    min-height: clamp(18rem, 28vw, 26rem);
  }
}
