/* ==========================================================================
   Los Himnóticos · Jaleo Band
   ========================================================================== */

/* ---------- Tipografías (autoalojadas; licencias en assets/fonts/LICENCIAS.txt) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 100%;   /* un único ancho: ni estirada ni condensada */
  font-style: normal;
  font-display: swap;
}
/* Markind solo tiene un peso: se declara para todo el rango, así el navegador no inventa una negrita */
@font-face {
  font-family: "Markind";
  src: url("../assets/fonts/markind-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Markind";
  src: url("../assets/fonts/markind.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variables ---------- */
:root {
  --bg: #0a0908;
  --bg-2: #141110;
  --cream: #f3e9dc;
  --muted: #a2968b;
  --orange: #f26e26;
  --hot: #ff8f45;
  --red: #c8281c;
  --line: rgba(243, 233, 220, .16);

  --gutter: clamp(1rem, 3.2vw, 3rem);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);

  --f-sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-display: "Markind", Georgia, "Times New Roman", serif;   /* la tipografía del logo: solo titulares, siempre en mayúsculas */

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font: 500 1rem/1.5 var(--f-sans);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}

h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
svg, canvas { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 4.5rem; }

::selection { background: var(--orange); color: var(--bg); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 2px; }

.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;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1em; height: 1em; fill: currentColor; flex: none; }
.wrap { padding-inline: var(--gutter); }

.skip {
  position: fixed; left: 1rem; top: -5rem; z-index: 200;
  padding: .7rem 1rem; border-radius: .3rem;
  background: var(--cream); color: var(--bg); font-weight: 800;
  transition: top .2s;
}
.skip:focus { top: 1rem; }

/* Dos tipografías y pocas variantes:
   · Markind, la del logo: solo titulares, siempre en mayúsculas; su itálica naranja, solo para la palabra de acento.
   · Archivo: todo lo demás, en un único ancho y dos pesos: normal (500) y negrita (800). Las mayúsculas, solo
     en rótulos pequeños (normal, interletrado .16em) y en menú, botones y enlaces (negrita, interletrado .08em). */
.h-xl, .h-xxl, .manifesto__text, .tape--a .tape__track, .row__t, .dossier__t, .setlist__cta, .setlist__track,
.stages__lead, .stages__track, .booking-done__sub, .legal h1, .legal h2 {
  font-family: var(--f-display); font-weight: 400; font-stretch: normal; font-style: normal;
  text-transform: uppercase; letter-spacing: 0; word-spacing: .1em;
}

/* Acento dentro de un titular (y nombres, etiquetas): la itálica de Markind, en naranja */
.goth {
  display: inline-block;
  font-family: var(--f-display);
  font-weight: 400;
  font-stretch: normal;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0;
  word-spacing: .1em;
  color: var(--orange);
}

.label {
  display: flex; align-items: center; gap: .8em;
  font-size: .75rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.label b { color: var(--orange); font-weight: 800; }
.label::after { content: ""; flex: 0 0 3rem; height: 1px; background: currentColor; opacity: .5; }

.h-xl { font-size: clamp(2rem, 5.6vw, 6.2rem); line-height: 1; }
/* 7.6vw: «¿Montamos un jaleo?» cabe en una línea desde tablet, y el formulario queda a la vista */
.h-xxl { font-size: clamp(2.5rem, 7.6vw, 9rem); line-height: 1; }
.h-xl .goth, .h-xxl .goth { font-size: 1em; line-height: 1; }

/* Textos cortos (subtítulos y frases sueltas): en mayúsculas, como los rótulos, para que Archivo se vea igual en
   toda la web. Los textos largos o legales (avisos, chat, página legal) siguen en minúsculas: se leen mejor. */
.hero__sub, .setlist__lead, .dossier__d, .row__d, .booking__line, .foot__row p {
  text-transform: uppercase; letter-spacing: .08em;
}

/* ---------- Botones y enlaces ---------- */
.btn {
  --btn-bg: var(--orange);
  --btn-fg: var(--bg);
  --btn-hover: var(--cream);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: .6em;
  padding: 1em 1.6em; border: 0; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: .95rem; font-weight: 800; line-height: 1;
  letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap; cursor: pointer;
  transition: transform .3s var(--ease), color .3s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; background: var(--btn-hover);
  transform: translateY(102%);
  transition: transform .45s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover .i { animation: zap .45s steps(2) 2; }
.btn--sm { padding: .75em 1.25em; font-size: .78rem; }
.btn--xl { padding: 1.05em 1.9em; font-size: clamp(1.05rem, 1.7vw, 1.5rem); }
.btn[disabled] { opacity: .6; cursor: progress; }
@keyframes zap { 50% { transform: translate(1px, -2px) rotate(-14deg) scale(1.3); } }

.link {
  display: inline-flex; align-items: center; gap: .4em;
  padding-bottom: .3em;
  font-size: .82rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: color .25s, background-size .4s var(--ease);
}
.link:hover { color: var(--orange); background-size: 0 1px; background-position: 100% 100%; }
.link .i { width: .85em; height: .85em; }

/* ---------- Capas de efecto ---------- */
.strike { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 110; pointer-events: none; }

.flash {
  position: fixed; inset: 0; z-index: 109; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--fx, 50%) var(--fy, 50%),
    rgba(255, 205, 160, .5), rgba(242, 110, 38, .2) 28%, transparent 62%);
}
.flash.go { animation: flash .45s ease-out; }
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }

.spot {
  position: fixed; left: 0; top: 0; z-index: 4; pointer-events: none;
  width: 42rem; height: 42rem; margin: -21rem 0 0 -21rem; border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 110, 38, .17), rgba(200, 40, 28, .06) 42%, transparent 68%);
  mix-blend-mode: screen;
  opacity: 0; transition: opacity .6s;
  will-change: transform;
}
.spot.on { opacity: 1; }

.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%; z-index: 120; pointer-events: none;
  opacity: .075;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.1 -.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.1s steps(1) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  17% { transform: translate(-4%, 3%); }
  34% { transform: translate(3%, -5%); }
  51% { transform: translate(-6%, -2%); }
  68% { transform: translate(5%, 4%); }
  85% { transform: translate(-2%, 6%); }
}

/* ---------- Intro ---------- */
.loader { position: fixed; inset: 0; z-index: 100; display: none; background: var(--bg); pointer-events: none; }
.js .loader { display: block; animation: loader-failsafe .01s linear 5s forwards; }
@keyframes loader-failsafe { to { visibility: hidden; } }

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

/* ---------- Cabecera ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: .85rem var(--gutter);
  transition: background-color .35s;
}
.js-ready.is-in .top { animation: drop .9s var(--ease) .55s both; }
@keyframes drop { from { transform: translateY(-110%); } }
.top.is-stuck {
  background: rgba(10, 9, 8, .76);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
/* Sobre el naranja de contratación: fondo opaco (translúcido se veía marrón) y sin el botón, que ya sobra */
.top.is-contact { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
.top .btn { transition: transform .3s var(--ease), color .3s, opacity .3s, visibility .3s; }
.top.is-contact .btn { opacity: 0; visibility: hidden; }

.brand { display: flex; align-items: center; gap: .55rem; }
/* El logo es apaisado (1489 x 487): se fija la altura y el ancho sale de la proporción */
.brand__logo {
  --h: 3rem;
  display: block; flex: none; height: var(--h); width: calc(var(--h) * 1489 / 487);
  margin-block: -.2rem;   /* el logo puede ser algo más alto sin engordar la cabecera */
  color: var(--cream); fill: currentColor; transition: color .25s;
}
.brand:hover .brand__logo, .brand:focus-visible .brand__logo { color: var(--orange); }

.nav { display: flex; gap: clamp(1.3rem, 2vw, 2.2rem); margin-left: auto; }
.nav a {
  position: relative; padding: .4em 0;
  font-size: .75rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
}
.nav a::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: var(--orange);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Apariciones ---------- */
.js-ready [data-in] { opacity: 0; translate: 0 26px; }
.js-ready.is-in [data-in] {
  opacity: 1; translate: 0 0;
  transition: opacity .8s var(--ease) var(--d, 0s), translate .9s var(--ease) var(--d, 0s);
}
.js-ready [data-reveal] { opacity: 0; translate: 0 40px; }
.js-ready [data-reveal].in {
  opacity: 1; translate: 0 0;
  transition: opacity .9s var(--ease), translate 1s var(--ease);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100svh;
  padding: 5rem var(--gutter) 3.8rem;
}
.js-ready .hero::before { opacity: 0; }
.js-ready.is-in .hero::before { opacity: 1; transition: opacity 1.6s ease .2s; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(58% 70% at 72% 42%, rgba(200, 40, 28, .3), transparent 70%),
    radial-gradient(40% 45% at 8% 100%, rgba(242, 110, 38, .1), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(10, 9, 8, .9), rgba(10, 9, 8, .8) 12%, transparent 25%),
    linear-gradient(to bottom, transparent 76%, var(--bg));
}
.hero__field { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }

/* Vídeo de fondo: ocupa la mitad izquierda y se desvanece hacia el rayo (en móvil, arriba y hacia abajo).
   Va por debajo del lienzo del rayo y atenuado, para que el título y los textos se lean encima. */
.hero__video {
  position: absolute; inset: 0 auto 0 0; z-index: -2; width: 62%;
  opacity: .62;
  -webkit-mask-image: linear-gradient(to right, #000 58%, transparent 100%);
          mask-image: linear-gradient(to right, #000 58%, transparent 100%);
}
.hero__video video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.hero__video::after {   /* oscurece la parte baja, donde va el subtítulo */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 9, 8, .9), rgba(10, 9, 8, .45) 38%, transparent 66%);
}
.js-ready .hero__video { opacity: 0; }
.js-ready.is-in .hero__video { opacity: .62; transition: opacity 1.8s ease .4s; }

.hero__meta {
  display: flex; justify-content: space-between; gap: 1rem;
  padding-top: .7rem; border-top: 1px solid var(--line);
  font-size: .75rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}

/* El título es el logo de la banda. Ocupa el ancho disponible, sin crecer tanto que empuje el pie fuera de pantalla */
.hero__title {
  position: relative; margin-top: auto;
  width: min(100%, max(18rem, calc((100svh - 26rem) * 3.057)));
}
.hero__logo { display: block; aspect-ratio: 1489 / 487; color: var(--cream); }
.hero__logo svg {
  display: block; width: 100%; height: 100%; overflow: visible; fill: currentColor;
  filter: drop-shadow(0 .1rem .5rem rgba(10, 9, 8, .55));   /* lo separa del vídeo y de las rayas del rayo */
}

/* Entrada: se descubre de izquierda a derecha, con el borde inclinado como sus letras */
.js-ready .hero__logo { clip-path: polygon(-6% -25%, -6% -25%, -20% 125%, -20% 125%); }
.js-ready.is-in .hero__logo {
  clip-path: polygon(-6% -25%, 126% -25%, 112% 125%, -20% 125%);
  transition: clip-path 1.15s var(--ease) .15s;
}
.js-ready.is-in .hero__logo.is-ready { clip-path: none; transition: none; }   /* ya puede desbordar (brillos) */

/* Logo cargado: al acercar el ratón a sus letras (los arcos los dibuja el script) */
.hero__logo.is-live svg {
  color: #fff6ea;
  filter: drop-shadow(0 0 .1rem #fff) drop-shadow(0 0 .6rem var(--hot)) drop-shadow(0 0 1.5rem rgba(242, 110, 38, .6));
  animation: live .1s steps(2, jump-none) infinite;
}
@keyframes live { 50% { transform: translate(1px, -1px); } }

.hero__foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem;
  margin-top: clamp(1.8rem, 3.2vw, 3.4rem);
}
/* El título y su pie quedan centrados en la altura del hero (no pegados abajo), en escritorio y en móvil */
.hero__foot { margin-bottom: auto; }
.hero__sub { max-width: 34ch; font-size: clamp(.9rem, 1.2vw, 1.15rem); line-height: 1.4; text-wrap: balance; }
.hero__cta { display: flex; align-items: center; gap: 1.6rem; flex: none; }

.hero__hint {
  position: absolute; left: 0; right: 0; bottom: 1.15rem;
  display: flex; align-items: center; gap: .6em;
  width: max-content; margin-inline: auto;
  font-size: .75rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.hero__hint .i { color: var(--orange); animation: blink 1.5s steps(1) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.hint--touch { display: none; }
@media (hover: none) {
  .hint--mouse { display: none; }
  .hint--touch { display: inline; }
}

/* En vertical ancho (tablet) el rayo pasa por detrás del texto: un velo lo mantiene legible */
@media (min-width: 761px) and (max-aspect-ratio: 1/1) {
  .hero__sub { position: relative; }
  .hero__sub::before {
    content: ""; position: absolute; inset: -3.5rem -6rem -3.5rem -4rem; z-index: -1;
    background: radial-gradient(closest-side, rgba(10, 9, 8, .94), rgba(10, 9, 8, .82) 62%, transparent);
  }
}

/* Intro ya vista en esta sesión: sin pantalla de carga y con las entradas adelantadas */
.no-intro .loader { display: none; }
.no-intro.is-in [data-in] { transition-delay: calc(var(--d, 0s) * .3); }
.no-intro.is-in .top { animation-delay: .1s; }
.no-intro.is-in .hero__logo { transition-delay: .05s; }

/* ---------- Cintas ---------- */
.tapes {
  position: relative; z-index: 3; pointer-events: none;
  height: clamp(8rem, 15vw, 13rem); margin-top: -1.5rem;
  overflow: hidden;
}
@supports (overflow: clip) {
  .tapes { overflow: visible; overflow-x: clip; }
}
.tape { position: absolute; left: -6vw; top: 50%; width: 112vw; overflow: hidden; }
.tape--a {
  z-index: 2; background: var(--orange); color: var(--bg);
  transform: translateY(-50%) rotate(-3.2deg);
  box-shadow: 0 .6rem 2.4rem rgba(0, 0, 0, .55);
}
.tape--b {
  background: var(--bg); color: var(--orange);
  border-block: 1px solid var(--orange);
  transform: translateY(-50%) rotate(2.4deg);
}
.tape__track {
  display: flex; align-items: center; width: max-content;
  padding: .4em 0; white-space: nowrap; line-height: 1; text-transform: uppercase;
  will-change: transform;
}
.tape--a .tape__track { font-size: clamp(1.15rem, 2.4vw, 2.2rem); }
.tape--b .tape__track {
  padding: .75em 0;
  font-size: clamp(.8rem, 1.4vw, 1.25rem); font-weight: 800; letter-spacing: .08em;
}
.tape__track .i { width: .7em; height: .7em; margin-inline: .75em; }

/* ---------- Manifiesto ---------- */
.manifesto { padding-block: clamp(5rem, 12vw, 11rem) clamp(4rem, 9vw, 8rem); }
.manifesto__text {
  margin-top: clamp(1.6rem, 3vw, 3rem);
  font-size: clamp(1.6rem, 4.5vw, 4.8rem); line-height: 1.14;
}
.manifesto__text .goth { font-size: 1em; line-height: 1; }
.js-ready .manifesto__text .w { opacity: .13; transition: opacity .4s linear; }
.js-ready .manifesto__text .w.on { opacity: 1; }

/* ---------- La banda ---------- */
.band { padding-block: clamp(3rem, 7vw, 7rem) clamp(4rem, 9vw, 8rem); }
.band__head { display: grid; gap: clamp(1.4rem, 2.6vw, 2.6rem); margin-bottom: clamp(2.4rem, 5vw, 4.5rem); }
.band__list {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start;
  gap: clamp(.8rem, 1.5vw, 1.5rem);
}

/* El grupo no se mueve al aparecer: lo hacen sus tarjetas, una detrás de otra */
.js-ready .band__list[data-reveal] { opacity: 1; translate: none; }
.js-ready .band__list .member { opacity: 0; translate: 0 46px; }
.js-ready .band__list.in .member {
  opacity: 1; translate: 0 0;
  transition: opacity .9s var(--ease) calc(var(--i) * 90ms), translate 1s var(--ease) calc(var(--i) * 90ms);
}

.member { --name: clamp(2.4rem, 3.9vw, 3.9rem); }
.member:nth-child(even) { margin-top: clamp(1.5rem, 4vw, 4rem); }
.member figure { position: relative; margin: 0; }

.member__photo { position: relative; overflow: hidden; aspect-ratio: 5 / 7; background: var(--bg-2); }
.member__photo::before {
  content: ""; position: absolute; inset: 0 0 auto 0; z-index: 1; height: 4px; background: var(--orange);
  transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease);
}
.member__photo::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 48%; pointer-events: none;
  background: linear-gradient(transparent, rgba(10, 9, 8, .72) 58%, rgba(10, 9, 8, .95));
}
.member__photo img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--pos, 50% 20%);
  filter: grayscale(1) contrast(1.15) brightness(var(--bw, .95));   /* --bw: brillo en blanco y negro, por foto (las de luces rojas quedan oscuras) */
  transform: scale(1.02);
  transition: filter .6s var(--ease), transform 1.1s var(--ease);
}

.member figcaption {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: .4rem;
  margin-top: calc(var(--name) * -.58); padding-left: .7rem;
}
.member__name { font-size: calc(var(--name) * .78); line-height: 1; transform-origin: left bottom; transition: transform .5s var(--ease); }
.member__role {
  font-size: .75rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}

/* La foto recupera el color: al pasar el ratón o, en táctil, la tarjeta activa */
.member.is-active .member__photo img { filter: none; transform: scale(1.08); }
.member.is-active .member__photo::before { transform: none; }
.member.is-active .member__name { transform: scale(1.08); }
@media (hover: hover) {
  .member:hover .member__photo img { filter: none; transform: scale(1.08); }
  .member:hover .member__photo::before { transform: none; }
  .member:hover .member__name { transform: scale(1.08); }
}

@media (max-width: 1000px) {
  .band__list {
    display: flex; gap: .9rem;
    margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 1rem;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .band__list::-webkit-scrollbar { display: none; }
  .member { --name: 3rem; flex: 0 0 clamp(210px, 62vw, 300px); scroll-snap-align: center; }
  .member:nth-child(even) { margin-top: 1.6rem; }
}

/* ---------- En directo ---------- */
.live { padding-block: clamp(3rem, 7vw, 7rem) clamp(4rem, 9vw, 8rem); }
.live__head { display: grid; gap: clamp(1.4rem, 2.6vw, 2.6rem); margin-bottom: clamp(2.6rem, 5vw, 4.8rem); }
.live__list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 20.5rem)) minmax(12rem, 1fr); align-items: start;
  gap: clamp(1rem, 2.4vw, 2.4rem);
}
.js-ready .live__list[data-reveal] { opacity: 1; translate: none; }
.js-ready .live__list > * { opacity: 0; translate: 0 46px; }
.js-ready .live__list.in > * {
  opacity: 1; translate: 0 0;
  transition: opacity .9s var(--ease) calc(var(--i) * 110ms), translate 1s var(--ease) calc(var(--i) * 110ms);
}

/* Tarjetas ligeramente torcidas, como fotos pegadas; se enderezan al pasar el ratón */
.clip { rotate: var(--tilt, 0deg); transition: rotate .6s var(--ease); }
.clip:nth-child(1) { --tilt: -2.2deg; }
.clip:nth-child(2) { --tilt: 1.5deg; margin-top: clamp(1rem, 2.6vw, 2.6rem); }
.clip:nth-child(3) { --tilt: -1.1deg; }

.clip__link {
  position: relative; isolation: isolate; overflow: hidden;
  display: block; aspect-ratio: 9 / 16; border-radius: .35rem; background: var(--bg-2);
}
.clip__link::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(transparent 45%, rgba(10, 9, 8, .86));
}
.clip__link img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.12) brightness(.9);
  transform: scale(1.02);
  transition: filter .6s var(--ease), transform 1.1s var(--ease);
}
.clip__play {
  position: absolute; inset: 0; z-index: 1; margin: auto;
  display: grid; place-items: center;
  width: clamp(3.4rem, 5vw, 4.6rem); height: clamp(3.4rem, 5vw, 4.6rem); border-radius: 50%;
  background: var(--orange); color: var(--bg);
  transition: transform .4s var(--ease);
}
.clip__play::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--orange); opacity: 0;
}
.clip__play .i { width: 42%; height: 42%; margin-left: 6%; }
.clip__cap {
  position: absolute; left: .9rem; right: .9rem; bottom: .85rem; z-index: 1;
  display: flex; align-items: baseline; gap: .7rem;
}
.clip__n { font-size: .75rem; font-weight: 800; letter-spacing: .16em; color: var(--orange); }
.clip__t { font-size: clamp(1.05rem, 1.55vw, 1.5rem); line-height: 1; color: var(--cream); }

.clip.is-active .clip__link img { filter: none; transform: scale(1.07); }
@media (hover: hover) {
  .clip:hover { rotate: 0deg; }
  .clip:hover .clip__link img { filter: none; transform: scale(1.07); }
  .clip:hover .clip__play { transform: scale(1.14); }
  .clip:hover .clip__play::before { animation: ring 1s var(--ease) infinite; }
}
@keyframes ring { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.7); } }

.live__more { align-self: end; display: grid; justify-items: start; gap: 1rem; padding-bottom: .4rem; }
.live__note { max-width: 30ch; font-size: .8rem; line-height: 1.4; color: var(--muted); }
.live__note a { text-decoration: underline; text-underline-offset: .15em; }

@media (max-width: 1000px) {
  .live__list {
    display: flex; gap: .9rem;
    margin-inline: calc(var(--gutter) * -1); padding: .4rem var(--gutter) 1rem;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .live__list::-webkit-scrollbar { display: none; }
  .clip { flex: 0 0 clamp(200px, 58vw, 280px); scroll-snap-align: center; }
  .clip:nth-child(n) { --tilt: 0deg; margin-top: 0; }
  .live__more { flex: 0 0 clamp(190px, 54vw, 260px); align-self: center; scroll-snap-align: center; }
}

/* Ventana del reproductor */
html.is-locked { overflow: hidden; }
.modal {
  position: fixed; inset: 0; z-index: 130; overflow-y: auto;
  display: grid; place-items: center; padding: 1rem;
  background: rgba(10, 9, 8, .9);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: modal-in .3s var(--ease);
}
@keyframes modal-in { from { opacity: 0; } }
/* El reproductor de Instagram mide: cabecera + vídeo (5:4 del ancho) + pie */
.modal__box {
  --w: max(240px, min(420px, 92vw, calc((100vh - 354px) / 1.25)));
  display: grid; justify-items: center; gap: .9rem;
}
.modal__frame {
  width: var(--w); height: calc(var(--w) * 1.25 + 204px);
  overflow: hidden; border-radius: .6rem; background: #fff;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .6);
}
.modal__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.modal__close {
  justify-self: end;
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border: 0; border-radius: 50%; background: var(--orange); color: var(--bg);
  font-size: 1.7rem; line-height: 1; cursor: pointer;
  transition: transform .3s var(--ease);
}
.modal__close:hover { transform: rotate(90deg); }
.modal__out { color: var(--cream); }

/* ---------- Repertorio ---------- */
.setlist { overflow: hidden; padding-block: clamp(3rem, 7vw, 7rem) clamp(4rem, 9vw, 8rem); }
.setlist__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.setlist__text { display: grid; justify-items: start; gap: clamp(1.2rem, 2.2vw, 2.2rem); }
.setlist .h-xl { font-size: clamp(1.9rem, 4.5vw, 4.9rem); }   /* cabe «uno por uno.» en una línea */
.setlist__lead { max-width: 34ch; font-size: clamp(.9rem, 1.2vw, 1.15rem); line-height: 1.4; }
.setlist__legal { max-width: 34ch; font-size: .8rem; line-height: 1.4; color: var(--muted); }
.setlist__legal a { text-decoration: underline; text-underline-offset: .15em; }

.setlist__player { height: clamp(420px, 62vh, 540px); }
.setlist__player iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: 12px; }

/* Tarjeta que ocupa el sitio del reproductor hasta que se pulsa */
.setlist__facade {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; height: 100%;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2);
  text-align: center;
  transition: border-color .3s;
}
.setlist__body {
  flex: 1; display: grid; place-content: center; justify-items: center; gap: 1rem;
  padding: 2rem 1.5rem 1rem;
}
.setlist__logo { width: min(74%, 21rem); height: auto; margin-bottom: .5rem; fill: var(--cream); }
.setlist__play {
  display: grid; place-items: center;
  width: clamp(4rem, 6vw, 5.4rem); height: clamp(4rem, 6vw, 5.4rem); border-radius: 50%;
  background: var(--orange); color: var(--bg);
  transition: transform .4s var(--ease);
}
.setlist__play .i { width: 42%; height: 42%; margin-left: 6%; }
.setlist__cta { font-size: clamp(1.2rem, 2.2vw, 2.1rem); line-height: 1; }

/* Ecualizador: decoración bajo el texto, sin solaparse con él */
.eq { flex: 0 0 34%; display: flex; align-items: flex-end; gap: 1.2%; padding-inline: 4%; }
.eq i {
  flex: 1; height: 100%; transform-origin: bottom;
  background: linear-gradient(to top, var(--orange), rgba(242, 110, 38, .12));
  transform: scaleY(var(--h, .6));
  animation: eq var(--t, 1.1s) ease-in-out var(--d, 0s) infinite alternate;
}
@keyframes eq { from { transform: scaleY(.1); } to { transform: scaleY(var(--h, .6)); } }

@media (hover: hover) {
  .setlist__facade:hover { border-color: var(--orange); }
  .setlist__facade:hover .setlist__play { transform: scale(1.12); }
}

/* Cinta con los artistas del repertorio */
.setlist__marquee {
  margin-top: clamp(3rem, 6vw, 5.5rem); padding-block: clamp(.7rem, 1.3vw, 1.2rem);
  border-block: 1px solid var(--line);
}
.setlist__track {
  display: flex; align-items: center; width: max-content;
  font-size: clamp(1.1rem, 2vw, 1.9rem);
  line-height: 1; white-space: nowrap;
  will-change: transform;
}
.setlist__track .i { width: .6em; height: .6em; margin-inline: .8em; color: var(--orange); }

@media (max-width: 860px) {
  .setlist__grid { grid-template-columns: minmax(0, 1fr); }
  .setlist__player { height: 440px; }
}

/* ---------- Bolos ---------- */
.formats { padding-block: clamp(3rem, 7vw, 7rem) clamp(5rem, 10vw, 9rem); }
.formats__head { display: grid; gap: clamp(1.4rem, 2.6vw, 2.6rem); margin-bottom: clamp(2.4rem, 5vw, 5rem); }
.formats__list { border-top: 1px solid var(--line); }

/* Cada fila es un desplegable (<details>): a la vista, el número y el título; al abrirla, el texto y el enlace */
.row {
  --row-n: clamp(2.6rem, 6vw, 6rem); --row-gap: 2rem; --row-pad: clamp(.4rem, 1.2vw, 1.2rem);
  border-bottom: 1px solid var(--line);
}
.row__head {
  position: relative; isolation: isolate;
  display: grid; align-items: center; gap: .5rem var(--row-gap);
  grid-template-columns: var(--row-n) minmax(0, 1fr) auto;
  padding: clamp(1.1rem, 2.1vw, 2rem) var(--row-pad);
  list-style: none; cursor: pointer;
  transition: color .35s var(--ease);
}
.row__head::-webkit-details-marker { display: none; }
.row__head::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--orange);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .5s var(--ease);
}
.row__n { font-size: .8rem; font-weight: 800; letter-spacing: .16em; color: var(--orange); transition: color .35s; }
.row__main { display: grid; justify-items: start; gap: clamp(.5rem, .9vw, .8rem); }
.row__t { font-size: clamp(1.5rem, 3.3vw, 3.4rem); line-height: 1; }
/* «Lo quiero»: siempre a la vista bajo el titular; forma parte de lo que se pulsa para desplegar */
.row__go {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--orange); transition: color .35s;
}
/* Signo «+» que gira a aspa al abrir */
.row__more { position: relative; width: 1.5rem; height: 1.5rem; color: var(--orange); transition: transform .45s var(--ease), color .35s; }
.row__more::before, .row__more::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: currentColor;
}
.row__more::after { transform: rotate(90deg); }
.row[open] .row__more { transform: rotate(45deg); }
.row__body {
  display: grid; justify-items: start; gap: 1rem;
  padding: .2rem var(--row-pad) clamp(1.4rem, 2.6vw, 2.4rem) calc(var(--row-pad) + var(--row-n) + var(--row-gap));
  animation: row-open .45s var(--ease);
}
@keyframes row-open { from { opacity: 0; transform: translateY(-.6rem); } }
.row__d { max-width: 52ch; font-size: clamp(.85rem, 1.05vw, 1rem); line-height: 1.5; color: var(--muted); }
.row__ask { color: var(--orange); }
@media (hover: hover) and (min-width: 900px) {
  .row__t { white-space: nowrap; }
  .row__head:hover, .row__head:focus-visible { color: var(--bg); }
  .row__head:hover::before, .row__head:focus-visible::before { transform: none; }
  .row__head:hover .row__n, .row__head:focus-visible .row__n,
  .row__head:hover .row__more, .row__head:focus-visible .row__more,
  .row__head:hover .row__go, .row__head:focus-visible .row__go { color: var(--bg); }
}

/* Dossier para promotores */
.dossier {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem;
  margin-top: clamp(2rem, 4vw, 3.5rem);
  padding: clamp(1.2rem, 2.4vw, 2rem) clamp(1.2rem, 2.6vw, 2.4rem);
  border: 1px solid var(--line); border-left: .4rem solid var(--orange); background: var(--bg-2);
}
.dossier__t { font-size: clamp(1.15rem, 2vw, 1.9rem); line-height: 1.05; }
.dossier__d { margin-top: .55rem; font-size: .85rem; color: var(--muted); }

/* ---------- Escenarios ---------- */
.stages { overflow: hidden; padding-block: clamp(3rem, 6vw, 6rem) clamp(4rem, 8vw, 7rem); }
.stages__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .6rem 2rem; margin-top: 1.1rem; }
.stages__pause { border: 0; border-radius: 0; padding-inline: 0; cursor: pointer; }
.stages__lead { font-size: clamp(1.1rem, 2vw, 1.9rem); }
.stages__marquee { margin-top: clamp(1.2rem, 2.4vw, 2.4rem); padding-block: clamp(.7rem, 1.4vw, 1.4rem); border-block: 1px solid var(--line); }
.stages__track {
  display: flex; align-items: center; width: max-content;
  font-size: clamp(2.6rem, 7.4vw, 7.4rem);
  line-height: 1; white-space: nowrap;
  will-change: transform;
}
/* Alternan crema y naranja. Sin contorno: los trazos de las mayúsculas de Markind se cruzan y el contorno lo delata */
.stages__track span { color: var(--orange); }
.stages__track span.is-solid { color: var(--cream); }
.stages__track .i { width: .42em; height: .42em; margin-inline: .5em; color: var(--orange); }

/* ---------- Contratación ---------- */
.contact {
  position: relative;
  padding-block: clamp(7rem, 15vw, 14rem) clamp(5rem, 10vw, 9rem);
  background: var(--orange); color: var(--bg);
  clip-path: polygon(0 clamp(2rem, 6vw, 6rem), 100% 0, 100% 100%, 0 100%);
  color-scheme: light;
}
.contact > .wrap { scroll-margin-top: 5.5rem; }   /* destino de «Contratar»: aire bajo la cabecera */
.contact ::selection { background: var(--bg); color: var(--orange); }
.contact :focus-visible { outline-color: var(--bg); }
.contact .label { color: rgba(10, 9, 8, .8); }
.contact .label b, .contact .goth { color: var(--bg); }
.contact .h-xxl { margin-top: clamp(1.2rem, 2.4vw, 2.4rem); }
.contact .btn { --btn-bg: var(--bg); --btn-fg: var(--orange); --btn-hover: var(--cream); }
.contact .btn:hover, .contact .btn:focus-visible { color: var(--bg); }

.booking { max-width: 70rem; margin-top: clamp(2.5rem, 5vw, 5rem); transition: opacity .3s; }
.booking.is-sending { opacity: .6; pointer-events: none; }

.booking__line {
  font-size: clamp(1.15rem, 2.4vw, 2.3rem); font-weight: 800;
  line-height: 1.7;
}

.blank { position: relative; display: inline-block; max-width: 100%; vertical-align: baseline; }
.blank input {
  -webkit-appearance: none; appearance: none;
  max-width: 100%; margin: 0 .06em; padding: 0 .14em;
  background: transparent; border: 0; border-bottom: .09em solid var(--bg); border-radius: 0;
  font: inherit; line-height: 1.15; letter-spacing: inherit; color: inherit;
  transition: background-color .25s;
}
.blank input { width: 11ch; }
@supports (field-sizing: content) {
  .blank input { width: auto; min-width: 5ch; field-sizing: content; }
}
.blank input::placeholder { color: rgba(10, 9, 8, .7); opacity: 1; text-transform: uppercase; letter-spacing: .08em; }
.blank input:hover, .blank input:focus { background-color: rgba(10, 9, 8, .1); outline: none; }
.blank input:focus-visible { outline: 3px solid var(--bg); outline-offset: 3px; }
/* Al llevar el foco a un campo, que no quede bajo la cabecera y haya sitio para su aviso */
.booking input { scroll-margin-block: 7rem 5rem; }

/* Aviso de error: aparece junto al campo que falla, no al final del formulario */
.tip {
  position: absolute; left: 0; top: calc(100% + .5rem); z-index: 3;
  width: max-content; max-width: min(21rem, 80vw);
  padding: .5rem .8rem; border-radius: .2rem;
  background: var(--bg); color: var(--cream);
  font-size: .9rem; font-weight: 800; line-height: 1.3; letter-spacing: 0;
  pointer-events: none;
  animation: tip-in .25s var(--ease);
}
.tip::before {
  content: ""; position: absolute; left: 1rem; bottom: 100%;
  border: .4rem solid transparent; border-bottom-color: var(--bg);
}
.tip--flow { position: relative; top: auto; display: block; max-width: 100%; margin-top: .9rem; }
@keyframes tip-in { from { opacity: 0; translate: 0 -.3rem; } }

.booking.was-validated .blank :invalid {
  border-bottom-style: dashed; background-color: rgba(10, 9, 8, .14);
  animation: nudge .4s;
}
@keyframes nudge { 25% { translate: -5px 0; } 75% { translate: 5px 0; } }

/* Casilla de privacidad */
.consent {
  display: flex; align-items: flex-start; gap: .8rem;
  max-width: 46rem; margin-top: clamp(1.4rem, 2.6vw, 2.2rem);
  font-weight: 500; cursor: pointer;
}
.consent input {
  -webkit-appearance: none; appearance: none; flex: none;
  display: grid; place-content: center;
  width: 1.5rem; height: 1.5rem; margin: .05rem 0 0;
  border: .16rem solid var(--bg); border-radius: .2rem; background: transparent; cursor: pointer;
}
.consent input::after {
  content: ""; width: .75rem; height: .4rem;
  border-left: .2rem solid var(--orange); border-bottom: .2rem solid var(--orange);
  transform: translateY(-.08rem) rotate(-45deg) scale(0);
  transition: transform .2s var(--ease);
}
.consent input:checked { background: var(--bg); }
.consent input:checked::after { transform: translateY(-.08rem) rotate(-45deg) scale(1); }
.consent a { text-decoration: underline; text-underline-offset: .15em; }
.booking.was-validated .consent input:invalid { outline: .18rem dashed var(--bg); outline-offset: .2rem; animation: nudge .4s; }

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

.booking__send { display: flex; align-items: center; flex-wrap: wrap; gap: 1.2rem 2rem; margin-top: clamp(1.6rem, 3vw, 2.6rem); }
.booking__legal { max-width: 28ch; font-size: .85rem; line-height: 1.35; opacity: .8; }
.booking__status { min-height: 1.5em; margin-top: 1rem; font-weight: 800; }
.booking__status[data-state="error"] {
  display: inline-block; padding: .5rem .9rem;
  background: var(--bg); color: var(--cream); border-radius: .2rem;
}

.booking-done { padding-block: clamp(2rem, 6vw, 6rem); outline: none; }
.booking-done__big { font-size: clamp(3.2rem, 14vw, 14rem); line-height: 1; animation: pop .7s cubic-bezier(.3, 1.5, .5, 1) both; }
.booking-done__sub { margin-top: .5em; font-size: clamp(1.1rem, 2.3vw, 2.1rem); line-height: 1.15; }
@keyframes pop { from { opacity: 0; transform: scale(.6) rotate(-6deg); } }

/* ---------- Pie ---------- */
.foot__row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem;
  padding-block: 1.6rem 2rem;
  font-size: .8rem; color: var(--muted);
}
.foot__row p { margin-right: auto; }
.foot__row .link { font-size: .75rem; }

/* ---------- Chat de contratación ---------- */
/* Botón flotante con el rayo del logo: abre y cierra el chat. Solo existe si hay JavaScript. */
.fab { display: none; }
.js .fab {
  position: fixed; z-index: 60;
  right: max(1.25rem, env(safe-area-inset-right)); bottom: max(1.25rem, env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: center;
  height: 3.75rem; min-width: 3.75rem; padding: 0; border: 0; border-radius: 999px;
  background: var(--orange); color: var(--bg); cursor: pointer;
  box-shadow: 0 .6rem 1.8rem rgba(0, 0, 0, .55), 0 0 0 1px rgba(10, 9, 8, .3);
  transition: transform .35s var(--ease), opacity .3s, background-color .25s, color .25s, visibility 0s;
}
.fab::before {   /* onda que avisa de que está ahí */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  border: 2px solid var(--orange); opacity: 0;
  animation: fab-ping 3.6s var(--ease) 3s infinite;
}
@keyframes fab-ping { 0% { opacity: .85; transform: scale(1); } 30%, 100% { opacity: 0; transform: scale(1.5); } }
.fab__bolt { flex: none; width: 1.75rem; height: 2.25rem; margin-inline: 1rem; }
.fab__x { display: none; font-size: 2.1rem; font-weight: 400; line-height: 1; }
.fab__label {
  max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0;
  font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  transition: max-width .45s var(--ease), padding .45s var(--ease), opacity .3s;
}
.fab:focus-visible .fab__label { max-width: 9rem; padding-left: 1.4rem; opacity: 1; }
@media (hover: hover) {
  .fab:hover { transform: translateY(-3px); background: var(--hot); }
  .fab:hover .fab__label { max-width: 9rem; padding-left: 1.4rem; opacity: 1; }
}
/* Con una conversación a medias, un punto lo recuerda */
.fab.has-chat::after {
  content: ""; position: absolute; top: .1rem; right: .1rem; width: .85rem; height: .85rem;
  border-radius: 50%; background: var(--cream); border: 2px solid var(--bg);
}
/* Sobre la sección naranja de contratación se invierte para que se siga viendo */
.fab.is-inverse { background: var(--bg); color: var(--orange); outline-color: var(--bg); }
.fab.is-inverse::before { border-color: var(--bg); }
@media (hover: hover) { .fab.is-inverse:hover { background: #241f1c; } }

/* Entra después del hero y enseña un momento para qué sirve */
.js-ready .fab { opacity: 0; visibility: hidden; }
.js-ready.is-in .fab { opacity: 1; visibility: visible; animation: fab-in .6s cubic-bezier(.3, 1.5, .5, 1) 1.6s backwards; }
.js-ready.is-in .fab__label { animation: fab-label 5.5s var(--ease) 2.4s backwards; }
.no-intro.is-in .fab { animation-delay: .5s; }
.no-intro.is-in .fab__label { animation-delay: 1.3s; }
/* Pasada la presentación (o al abrir el chat) el script la da por terminada, para que no se repita
   cada vez que el botón se oculta y vuelve */
.js-ready.is-in .fab.is-settled, .js-ready.is-in .fab.is-settled .fab__label { animation: none; }
@keyframes fab-in { from { opacity: 0; transform: scale(.3) rotate(-25deg); } }
@keyframes fab-label {
  0% { max-width: 0; padding-left: 0; opacity: 0; }
  10%, 82% { max-width: 9rem; padding-left: 1.4rem; opacity: 1; }
  100% { max-width: 0; padding-left: 0; opacity: 0; }
}

/* Con el chat abierto el botón pasa a ser el de cerrar */
.chat-open .fab .fab__bolt, .chat-open .fab .fab__label { display: none; }
.chat-open .fab .fab__x { display: block; }
.chat-open .fab::before, .chat-open .fab::after { display: none; }

/* Panel */
.chat {
  position: fixed; z-index: 60;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: calc(max(1.25rem, env(safe-area-inset-bottom)) + 4.6rem);
  display: flex; flex-direction: column;
  width: min(24rem, calc(100vw - 2.5rem)); height: min(37rem, calc(100vh - 7.2rem));
  overflow: hidden; border: 1px solid var(--line); border-radius: 1.1rem;
  background: var(--bg-2); color: var(--cream); color-scheme: dark;
  box-shadow: 0 1.6rem 4.5rem rgba(0, 0, 0, .7);
  transform-origin: 100% 100%;
  animation: chat-in .35s var(--ease);
}
.chat:focus { outline: 0; }
@keyframes chat-in { from { opacity: 0; transform: translateY(1rem) scale(.94); } }
@keyframes chat-up { from { opacity: 0; transform: translateY(2rem); } }

.chat__head {
  flex: none; display: flex; align-items: center; gap: .75rem;
  padding: .75rem .7rem .75rem 1rem;
  background: var(--orange); color: var(--bg);
}
.chat__bolt { flex: none; width: 1.3rem; height: 1.7rem; }
.chat__title {
  flex: 1; min-width: 0;
  font-size: .95rem; font-weight: 800; line-height: 1.15;
  letter-spacing: .08em; text-transform: uppercase;
}
.chat__title small {
  display: block; margin-top: .15rem;
  font-size: .72rem; font-weight: 500; letter-spacing: 0; text-transform: none;
}
.chat__close {
  flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border: 0; border-radius: 50%; background: none; color: inherit;
  font-size: 1.8rem; line-height: 1; cursor: pointer;
  transition: background-color .2s;
}
.chat__close:hover { background: rgba(10, 9, 8, .14); }
.chat__head :focus-visible { outline-color: var(--bg); outline-offset: -2px; }

.chat__log {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: .55rem;
  padding: 1rem .9rem;
  scrollbar-width: thin; scrollbar-color: rgba(243, 233, 220, .25) transparent;
}
.chat__log:focus-visible { outline-offset: -3px; }
.msg {
  max-width: 86%; padding: .62rem .85rem; border-radius: 1.05rem;
  font-size: .95rem; line-height: 1.42; white-space: pre-wrap; overflow-wrap: anywhere;
  animation: msg-in .3s var(--ease);
}
@keyframes msg-in { from { opacity: 0; transform: translateY(.5rem); } }
.msg--bot { align-self: flex-start; background: #26201c; border-bottom-left-radius: .3rem; }
.msg--user { align-self: flex-end; background: var(--orange); color: var(--bg); font-weight: 500; border-bottom-right-radius: .3rem; }
.msg--ok { box-shadow: inset 0 0 0 2px var(--orange); }
.msg--note {
  align-self: center; max-width: 94%; padding: .2rem .4rem;
  font-size: .78rem; line-height: 1.35; text-align: center; color: var(--muted);
}
.msg--warn { color: var(--hot); }
.msg--typing { display: flex; gap: .32rem; padding: .85rem .9rem; }
.msg--typing i { width: .42rem; height: .42rem; border-radius: 50%; background: var(--cream); opacity: .55; animation: chat-dot 1s ease-in-out infinite; }
.msg--typing i:nth-child(2) { animation-delay: .15s; }
.msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-.22rem); } }

.chat__form {
  flex: none; display: flex; align-items: flex-end; gap: .5rem;
  padding: .7rem .8rem .5rem; border-top: 1px solid var(--line); background: var(--bg);
}
.chat__input {
  flex: 1; min-width: 0; min-height: 2.75rem; max-height: 7.6rem; margin: 0; padding: .62rem .9rem;
  border: 1px solid rgba(243, 233, 220, .28); border-radius: 1.35rem;
  background: var(--bg-2); color: var(--cream);
  font-size: 1rem; line-height: 1.4; resize: none;   /* 16 px: por debajo, iOS amplía la página al enfocar */
}
.chat__input::placeholder { color: var(--muted); opacity: 1; }
.chat__input:focus-visible { outline: 0; border-color: var(--orange); }
.chat__send {
  flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border: 0; border-radius: 50%; background: var(--orange); color: var(--bg);
  font-size: 1.25rem; cursor: pointer;
  transition: transform .25s var(--ease), background-color .2s, opacity .2s;
}
.chat__send:not([disabled]):hover { background: var(--hot); transform: scale(1.06); }
.chat__send[disabled] { opacity: .4; cursor: default; }
.chat__again {
  flex: none; margin: .8rem .8rem .3rem; padding: .85rem 1rem; border: 0; border-radius: 999px;
  background: var(--orange); color: var(--bg);
  font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
}
.chat__again:hover { background: var(--hot); }
.chat__legal {
  flex: none; padding: .35rem 1rem .75rem; background: var(--bg);
  font-size: .7rem; line-height: 1.4; color: var(--muted);
}
.chat__legal a { color: var(--cream); text-decoration: underline; text-underline-offset: .15em; }

/* ---------- Aviso de cookies ---------- */
/* Lo crea js/consent.js, y solo si hay herramientas de medición o publicidad configuradas.
   «Rechazar» y «Aceptar» tienen el mismo aspecto y el mismo tamaño. */
.cookies {
  position: fixed; z-index: 90;
  left: max(1.25rem, env(safe-area-inset-left)); bottom: max(1.25rem, env(safe-area-inset-bottom));
  width: min(31rem, calc(100vw - 2.5rem)); max-height: calc(100vh - 2.5rem); overflow-y: auto;
  padding: 1.2rem 1.3rem 1.25rem; border: 1px solid var(--line); border-radius: 1rem;
  background: var(--bg-2); color: var(--cream); color-scheme: dark;
  box-shadow: 0 1.6rem 4.5rem rgba(0, 0, 0, .7);
  font-size: .9rem; line-height: 1.45;
  animation: chat-up .4s var(--ease);
}
.cookies:focus { outline: 0; }
.cookies__title {
  margin-bottom: .45rem;
  font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange);
}
.cookies__text a { color: var(--cream); text-decoration: underline; text-underline-offset: .15em; }
.cookies__text a:hover { color: var(--orange); }
.cookies__opts { display: grid; gap: .75rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.cookies__opt { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; cursor: pointer; color: #d9cfc3; }
.cookies__opt input { width: 1.2rem; height: 1.2rem; margin: .1rem 0 0; accent-color: var(--orange); cursor: pointer; }
.cookies__opt input[disabled] { cursor: default; }
.cookies__opt b { font-weight: 800; color: var(--cream); }
.cookies__actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; margin-top: 1.15rem; }
.cookies__btn {
  min-height: 2.75rem; padding: .6rem .8rem; border: 1px solid var(--cream); border-radius: 999px;
  background: var(--cream); color: var(--bg);
  font-size: .78rem; font-weight: 800; line-height: 1.1; letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer; transition: background-color .2s, border-color .2s, color .2s;
}
.cookies__btn:hover { background: var(--orange); border-color: var(--orange); }
.cookies__btn--ghost { background: none; border-color: rgba(243, 233, 220, .4); color: var(--cream); }
.cookies__btn--ghost:hover { background: none; border-color: var(--orange); color: var(--orange); }
/* Botón con aspecto de enlace (pie de página) */
button.link { border: 0; border-radius: 0; padding-inline: 0; cursor: pointer; }

/* ---------- Página legal ---------- */
.legal { max-width: 74ch; margin-inline: auto; padding: 7rem var(--gutter) 5rem; }
.legal h1 { font-size: clamp(1.9rem, 4.4vw, 3.4rem); line-height: 1; }
.legal h2 {
  margin: 3.2rem 0 1rem; scroll-margin-top: 5rem;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.05; color: var(--orange);
}
.legal h3 { margin: 1.8rem 0 .5rem; font-size: 1.05rem; font-weight: 800; }
.legal p, .legal li { line-height: 1.65; color: #d9cfc3; }
.legal p + p, .legal ul + p { margin-top: .8rem; }
.legal ul { margin: .6rem 0 0 1.2rem; list-style: disc; }
.legal li + li { margin-top: .3rem; }
.legal a { color: var(--orange); text-decoration: underline; text-underline-offset: .15em; }
.legal mark { padding: 0 .25em; border-radius: .15em; background: rgba(242, 110, 38, .25); color: var(--cream); }
.legal__lead { margin-top: 1.2rem; font-size: 1.1rem; }
.legal code { padding: .05em .3em; border-radius: .2em; background: rgba(243, 233, 220, .1); font-size: .92em; }
.legal .btn { margin-block: .4rem; }

/* ---------- Tablet: el menú no cabe junto a la marca y el botón ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
}

/* ---------- Móvil ---------- */
@media (max-width: 760px) {
  .brand__logo { --h: 2.5rem; }

  .hero { padding-top: 4.6rem; }
  .hero::after {
    background:
      linear-gradient(to bottom, rgba(10, 9, 8, .9), rgba(10, 9, 8, .8) 12%, transparent 24%),
      linear-gradient(to bottom, transparent 44%, rgba(10, 9, 8, .86) 64%, var(--bg));   /* oscurece bajo el título, donde van el subtítulo y el botón */
  }
  /* En móvil el mismo reparto (vídeo a la izquierda, rayo a la derecha), pero solo en la parte alta:
     debajo van el subtítulo y el botón, sobre fondo oscuro. Empieza bajo las etiquetas de cabecera y se
     desvanece hacia arriba, hacia la derecha y hacia abajo. La caja es más estrecha que el vídeo y este se
     alinea a la derecha: así el cantante, que está a la derecha del plano, cae en el hueco que deja el rayo. */
  .hero__video {
    top: 6.4rem; width: 56%; height: 52%;
    -webkit-mask-image: linear-gradient(to right, #000 55%, transparent 100%), linear-gradient(to bottom, transparent, #000 12%, #000 58%, transparent 100%);
            mask-image: linear-gradient(to right, #000 55%, transparent 100%), linear-gradient(to bottom, transparent, #000 12%, #000 58%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-composite: intersect;
  }
  .hero__video video { object-position: 100% 12%; }
  .hero__video::after { display: none; }
  .hero__meta { flex-wrap: wrap; gap: .35rem 1rem; letter-spacing: .16em; }   /* las dos etiquetas no caben en una línea: van una bajo otra */
  .hero__logo svg { filter: drop-shadow(0 .08rem .45rem rgba(10, 9, 8, .8)); }   /* cae sobre las rayas del rayo */
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 1.4rem; margin-top: 1.9rem; }
  .hero__cta { flex-wrap: wrap; gap: .9rem 1.1rem; max-width: 100%; }
  .hero__cta .btn { padding-inline: 1.25em; }

  .row { --row-n: 2.4rem; --row-gap: .9rem; }

  .js .fab { right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); height: 3.4rem; min-width: 3.4rem; }
  .fab__bolt { width: 1.6rem; height: 2.05rem; margin-inline: .9rem; }
  /* El chat ocupa toda la pantalla; el script ajusta su alto a la parte visible (teclado incluido) */
  .chat {
    top: var(--chat-top, 0px); right: 0; bottom: auto; left: 0;
    width: auto; height: var(--chat-h, 100vh);
    border: 0; border-radius: 0; animation-name: chat-up;
  }
  .chat-open .fab { display: none; }   /* se cierra con el aspa de la cabecera */
  .hero__hint { left: var(--gutter); margin-inline: 0; }   /* a la izquierda, como el resto del hero: en el centro lo pisaría el botón */
  .chat__legal { padding-bottom: max(.75rem, env(safe-area-inset-bottom)); }

  .cookies {
    left: 0; right: 0; bottom: 0; width: auto; max-height: 88vh;
    padding: 1.1rem var(--gutter) max(1.1rem, env(safe-area-inset-bottom));
    border-width: 1px 0 0; border-radius: 1rem 1rem 0 0;
  }
  .cookies__actions { grid-template-columns: 1fr 1fr; }
  .cookies__btn--ghost { order: 3; grid-column: 1 / -1; }

  .booking__line { line-height: 1.5; }
  .blank input { width: 100%; }
  .blank { display: block; }
  /* El hueco crece hacia arriba: 44 px de alto para el dedo con la raya igual de pegada al texto */
  .blank input { margin-inline: 0; padding-top: .58em; }
  /* Aquí cada hueco ocupa su línea: el aviso va en el flujo y empuja lo de abajo en vez de taparlo */
  .blank .tip { position: relative; top: auto; display: block; margin: .5rem 0 .4rem; }
  .dot { display: none; }
}

/* ---------- Móviles estrechos ---------- */
@media (max-width: 380px) {
  .brand__logo { --h: 2.25rem; }
}

/* ---------- Táctil: áreas de pulsación de al menos 44 px sin cambiar el aspecto ---------- */
@media (pointer: coarse) {
  .btn--sm { border: .45rem solid transparent; background-clip: padding-box; margin: -.45rem; }
  .brand { padding-block: .6rem; margin-block: -.6rem; }
  .link { position: relative; }
  .link::after { content: ""; position: absolute; inset: -.75rem -.5rem; }
  .foot__row { row-gap: 1.6rem; }
}

/* ---------- Menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition: none !important;
  }
  .loader { display: none !important; }
  .grain { animation: none; }
}
