/* ─────────────────────────────────────────────────────────────
   Gloria Monzonis · estilos de la web
   Los comparten la versión en español (index.html) y la inglesa
   (en/index.html): un cambio aquí vale para las dos.
   ───────────────────────────────────────────────────────────── */

:root {
  color-scheme: dark;                        /* barras de desplazamiento y controles nativos en oscuro */
  --bg:          #080608;
  --deep:        #0F0C14;
  --card:        #181420;
  --gold:        #BFA06A;
  --gold-lt:     #D4B87E;
  --gold-dim:    rgba(191,160,106,0.24);
  --ivory:       #EDE8DF;
  --ivory-mid:   rgba(237,232,223,0.74);
  --ivory-dim:   rgba(237,232,223,0.56);   /* ≥ 4.5:1 sobre el fondo: legible en texto pequeño */
  --ivory-faint: rgba(237,232,223,0.52);   /* textos de ejemplo del formulario, también ≥ 4.5:1 */
  --ivory-ghost: rgba(237,232,223,0.07);
  --line:        rgba(191,160,106,0.58);   /* raya de los campos: ≥ 3:1, se ve dónde se escribe */
  --error:       #E8B4A0;
  --display: 'Cormorant Garamond', Georgia, serif;
  --body:    'Montserrat', system-ui, sans-serif;

  /* Curvas de animación (Emil Kowalski / emilkowal.ski/ui): los easing
     nativos del navegador son débiles para movimiento deliberado. */
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);     /* entradas/salidas */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);    /* movimiento en pantalla */
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);     /* paneles y desplegables */

  --gutter: clamp(20px, 5vw, 68px);
  --section-y: clamp(88px, 11vw, 148px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth; scroll-padding-top: 84px;
  scroll-padding-bottom: 96px;               /* el foco del teclado no queda bajo el botón de WhatsApp */
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;  /* cada control tiene su propio estado al pulsarlo */
}
body {
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
a, button, input, select, textarea, label { touch-action: manipulation; }
:focus-visible { outline: 1px solid var(--gold-lt); outline-offset: 4px; }
::selection { background: var(--gold); color: var(--bg); }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); }
@supports (-moz-appearance: none) { html { scrollbar-width: thin; scrollbar-color: var(--gold-dim) var(--bg); } }

.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;
}
/* Grupos de palabras que no se separan al cortar la línea (los pone web.js) */
.nw { white-space: nowrap; }

/* «Saltar al contenido»: solo aparece cuando llega el foco del teclado */
.skip {
  position: fixed; top: 14px; left: 14px; z-index: 1000;
  padding: 12px 20px; background: var(--bg); color: var(--gold);
  border: 1px solid var(--gold); text-decoration: none;
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  transform: translateY(-180%); transition: transform .25s var(--ease-out);
}
.skip:focus { transform: none; }

/* ── Utilidades de marca ── */
.eyebrow {
  font-size: .68rem; letter-spacing: .36em; text-transform: uppercase;
  color: var(--gold); font-weight: 400;
  margin-right: -.36em;   /* el espaciado tras la última letra no cuenta: queda centrado entre sus líneas */
}
.rule { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.rule-line { flex: 1; height: 1px; background: var(--gold-dim); }
.rule-line--short { flex: 0 0 36px; }
.rule--center { justify-content: center; }
.rule--center .rule-line { flex: 0 1 72px; }
.diamond { color: var(--gold); font-size: .45rem; line-height: 1; }

/* Aparición al entrar en pantalla (IntersectionObserver añade .in) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }
/* Las líneas finas se dibujan desde el texto hacia fuera: el mismo gesto
   que el adorno de la portada, repetido en cada sección */
.reveal .rule-line { transform: scaleX(0); transform-origin: right center; transition: transform 1.2s var(--ease-out) .2s; }
.reveal .rule--center .rule-line:last-child { transform-origin: left center; }
.reveal.in .rule-line { transform: none; }

/* ── Botones ── */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 15px calc(34px - .28em) 15px 34px;   /* el espaciado de la última letra ya hace de margen */
  border: 1px solid var(--gold); color: var(--gold);
  background: rgba(8,6,8,.35);
  font-family: var(--body); font-size: .7rem; font-weight: 400;
  letter-spacing: .28em; text-transform: uppercase; text-decoration: none;
  cursor: pointer;
  transition: color .3s ease .05s, transform .16s var(--ease-out);
}
/* Relleno dorado que barre de izquierda a derecha (y vuelve por el mismo
   camino: si el ratón sale a mitad, se retira desde donde está, sin saltos) */
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .5s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .btn:not([disabled]):hover { color: var(--bg); }
  .btn:not([disabled]):hover::before { transform: none; }
}
@media (hover: none) {
  .btn:active { background: var(--gold); color: var(--bg); transition: none; }
}
.btn:active { transform: scale(0.97); }

/* Botón secundario: texto y flecha dentro de un círculo fino */
.btn--ghost { border-color: transparent; background: none; padding: 5px 0; color: var(--ivory-mid); }
.btn--ghost::before { display: none; }
.btn-arrow {
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--gold-dim); color: var(--gold);
  transition: border-color .35s ease;
}
.btn-arrow svg {
  width: 10px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.1;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .45s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .btn.btn--ghost:hover { color: var(--gold); }
  .btn--ghost:hover .btn-arrow { border-color: var(--gold); }
  .btn--ghost:hover .btn-arrow svg { transform: translateY(2px); }
}
@media (hover: none) {
  .btn.btn--ghost:active { background: none; color: var(--gold); }
}

/* ═════════════ NAV ═════════════ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  display: flex; align-items: center; gap: 28px;
  padding: 30px var(--gutter);
  border-bottom: 1px solid transparent;
  transition: padding .45s var(--ease-out), background-color .45s var(--ease-out), border-color .45s var(--ease-out);
}
.nav.scrolled {
  padding-top: 16px; padding-bottom: 16px;
  background: rgba(8,6,8,.84);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--gold-dim);
}
.nav-brand {
  font-family: var(--display); font-size: 1.22rem; font-weight: 400;
  letter-spacing: .24em; text-transform: uppercase; white-space: nowrap;
  color: var(--gold); text-decoration: none;
  margin-right: auto; position: relative; z-index: 2;
}
.nav-links { list-style: none; display: flex; gap: clamp(16px, 2.2vw, 32px); align-items: center; }
.nav-links a {
  position: relative; display: block; padding: 7px 0;
  text-decoration: none; font-size: .64rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ivory-mid); transition: color .3s ease; white-space: nowrap;
}
/* La sección que se está viendo: dorado y una línea fina que se dibuja bajo el nombre */
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: .22em; bottom: 3px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left center;
  transition: transform .5s var(--ease-out);
}
.nav-links a:hover, .nav-links a.is-current { color: var(--gold); }
.nav-links a.is-current::after { transform: none; }
.nav-lang {
  display: flex; align-items: center; gap: 2px;
  border: 1px solid var(--gold-dim); padding: 3px 8px;
  font-size: .64rem; letter-spacing: .18em; position: relative; z-index: 2;
}
.nav-lang a { position: relative; text-decoration: none; color: var(--ivory-dim); padding: 4px 6px; transition: color .3s ease; }
.nav-lang a::after { content: ''; position: absolute; inset: -9px -2px; }   /* zona de toque más alta que el dibujo */
.nav-lang a:hover { color: var(--gold); }
.nav-lang a[aria-current] { color: var(--gold); }
.nav-lang span { color: var(--gold-dim); }

/* Hamburguesa: dos líneas que se cruzan en una X al abrir (solo transform) */
.menu-btn {
  display: none; position: relative; z-index: 2;
  width: 44px; height: 44px; margin: -2px -2px -2px 0;
  background: none; border: 0; cursor: pointer;
}
.menu-btn span {
  position: absolute; left: 11px; right: 11px; height: 1px; background: var(--gold);
  transition: transform .45s var(--ease-drawer);
}
.menu-btn span:nth-child(1) { top: 18px; }
.menu-btn span:nth-child(2) { top: 26px; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ═════════════ HERO ═════════════ */
#hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 128px var(--gutter) 80px;
  background:
    radial-gradient(ellipse 52% 64% at 74% 48%, rgba(191,160,106,.11), transparent 62%),
    radial-gradient(ellipse 70% 60% at 12% 100%, rgba(72,38,78,.26), transparent 70%),
    var(--bg);
}
/* Mismo ancho que la columna de las secciones: el texto de la portada y el de
   cada sección arrancan en la misma vertical */
.hero-grid {
  width: 100%; max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(40px, 6vw, 110px); align-items: center;
}
.hero-name {
  font-family: var(--display); font-weight: 300; color: var(--ivory);
  font-size: clamp(4.4rem, 9vw, 9.2rem); line-height: .86; letter-spacing: .06em;
}
.hero-name .l1 { display: block; white-space: nowrap; }
.hero-name .l2 {
  display: block; font-style: italic; color: var(--gold);
  font-size: .5em; letter-spacing: .12em; margin-top: .32em; padding-left: .06em;
}
/* Letras de GLORIA: suben una a una al cargar */
.hero-name .ch { display: inline-block; opacity: 0; transform: translateY(.45em); animation: chUp 1s var(--ease-out) forwards; animation-delay: calc(.2s + var(--i) * .06s); }
.hero-name .l2 { opacity: 0; animation: fadeUp 1.1s var(--ease-out) .7s forwards; }
@keyframes chUp { to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }

.hero-orn { display: flex; align-items: center; gap: 16px; margin: 34px 0 24px; }
.hero-orn .h-line { width: 64px; height: 1px; background: var(--gold); opacity: .55; transform: scaleX(0); animation: lineIn 1s var(--ease-out) .9s forwards; }
.hero-orn .h-line:first-child { transform-origin: right; }
.hero-orn .h-line:last-child  { transform-origin: left; }
.hero-orn .diamond { opacity: 0; animation: fadeIn .7s ease 1s forwards; }
@keyframes lineIn { to { transform: scaleX(1); } }

/* «Cantante profesional»: grande y claro, como pidió Gloria */
.hero-role {
  font-family: var(--body); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.05rem, 2.05vw, 1.72rem); letter-spacing: .4em; line-height: 1.35;
  color: var(--ivory);
  opacity: 0; animation: fadeUp 1.1s var(--ease-out) 1s forwards;
}
.hero-line {
  margin-top: 18px; font-size: .92rem; color: var(--ivory-dim); letter-spacing: .03em;
  opacity: 0; animation: fadeUp 1.1s var(--ease-out) 1.12s forwards;
}
.hero-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 34px; margin-top: 44px;
  opacity: 0; animation: fadeUp 1.1s var(--ease-out) 1.24s forwards;
}
/* Mientras llega la tipografía (máx. 0,9 s), el texto de la portada espera:
   así las letras no suben con una letra provisional y cambian a mitad */
.fuentes-cargando .hero-text * { animation-play-state: paused !important; }

/* Vídeo vertical enmarcado: se ve entero y nítido, sin estirarlo a lo ancho */
.hero-media {
  position: relative; height: min(78svh, 800px); aspect-ratio: 9 / 16;
  opacity: 0; animation: mediaIn 1.5s var(--ease-out) .3s forwards;
}
@keyframes mediaIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.hero-media::before {
  content: ''; position: absolute; inset: -14% -30%; z-index: -1;
  background: radial-gradient(closest-side, rgba(191,160,106,.16), transparent);
  pointer-events: none;
}
.hero-frame { position: absolute; inset: 0; overflow: hidden; background: var(--card); }
.hero-frame video { width: 100%; height: 100%; object-fit: cover; }
.hero-frame::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 62%, rgba(8,6,8,.62) 100%);
}

.corner { position: absolute; width: 24px; height: 24px; border: 0 solid rgba(191,160,106,.6); z-index: 2; pointer-events: none; }
.corner.tl { top: -9px; left: -9px; border-top-width: 1px; border-left-width: 1px; }
.corner.tr { top: -9px; right: -9px; border-top-width: 1px; border-right-width: 1px; }
.corner.bl { bottom: -9px; left: -9px; border-bottom-width: 1px; border-left-width: 1px; }
.corner.br { bottom: -9px; right: -9px; border-bottom-width: 1px; border-right-width: 1px; }

/* Botón de sonido con ecualizador: las barras solo bailan con el sonido activado */
.sound-btn {
  position: absolute; left: 50%; bottom: 22px; z-index: 3; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
  min-height: 44px; padding: 11px 20px 11px 16px; cursor: pointer;
  background: rgba(8,6,8,.62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--gold-dim); border-radius: 999px; color: var(--ivory);
  font-size: .66rem; letter-spacing: .22em; text-transform: uppercase;
  transition: border-color .3s ease, background-color .3s ease, transform .16s var(--ease-out);
}
.sound-btn:hover { border-color: var(--gold); }
.sound-btn:active { transform: translateX(-50%) scale(.96); }
/* La invitación late unas pocas veces y después se queda quieta */
.sound-btn.muted { border-color: var(--gold); animation: soundPulse 2.6s ease-in-out 2.4s 4; }
@keyframes soundPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(191,160,106,.35); } 50% { box-shadow: 0 0 0 9px rgba(191,160,106,0); } }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq i { width: 2px; height: 100%; background: var(--gold); transform-origin: bottom; transform: scaleY(.25); }
.sound-btn:not(.muted) .eq i { animation: eq 1s ease-in-out infinite; }
.sound-btn:not(.muted) .eq i:nth-child(2) { animation-duration: .8s; animation-delay: -.3s; }
.sound-btn:not(.muted) .eq i:nth-child(3) { animation-duration: 1.15s; animation-delay: -.6s; }
.sound-btn:not(.muted) .eq i:nth-child(4) { animation-duration: .9s; animation-delay: -.15s; }
@keyframes eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }

/* ═════════════ ESCENARIOS · cinta de logos ═════════════ */
/* Los PNG de logos/ son blanco puro con transparencia: el tono se controla
   solo con opacity, sin filtros de color. */
#venues { background: var(--bg); padding: 46px 0; border-top: 1px solid var(--gold-dim); border-bottom: 1px solid var(--gold-dim); }
.venues-lbl { text-align: center; font-size: .66rem; letter-spacing: .32em; padding-left: .32em; text-transform: uppercase; color: var(--gold); margin-bottom: 28px; }
.venues-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
/* El desplazamiento es del 50% exacto de la cinta, que contiene dos copias
   idénticas. La separación va como margin (no como gap) para que la última
   pieza de cada copia también lo lleve y el bucle no dé un salto. */
.venues-track { display: flex; align-items: center; width: max-content; animation: desliza 44s linear infinite; }
.venues-marquee:hover .venues-track { animation-play-state: paused; }
@keyframes desliza { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.venue { width: 168px; height: 74px; object-fit: contain; margin-right: 72px; flex-shrink: 0; opacity: .55; transition: opacity .45s ease; }
/* Equilibrio óptico: los logos apilados necesitan más alto y menos ancho */
.venue--alto  { width: 132px; height: 92px; }
.venue--medio { width: 150px; height: 84px; }
.venue--ancho { width: 148px; height: 60px; }
.venue:hover { opacity: 1; }

/* ═════════════ SECCIONES ═════════════ */
/* Los fondos alternan (negro / violeta muy oscuro) para que cada cambio de
   sección se lea sin necesidad de líneas: hero · artista · vídeos ·
   repertorio · eventos · galería · paso a paso · contacto */
.section { padding: var(--section-y) var(--gutter); }
.wrap { max-width: 1180px; margin: 0 auto; }
.s-head { margin-bottom: clamp(44px, 6vw, 66px); }
.s-head--center { text-align: center; }
.s-title {
  font-family: var(--display); font-weight: 300; font-size: clamp(2.5rem, 5vw, 4.3rem);
  line-height: 1.08; letter-spacing: -.01em; color: var(--ivory); margin-top: 6px;
  text-wrap: balance;
}
.s-title em { font-style: italic; color: var(--gold); }
.s-lead { margin-top: 18px; font-size: .92rem; color: var(--ivory-dim); }

/* ── LA ARTISTA ── */
#about { background: var(--deep); }
.about-grid { display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: clamp(48px, 7vw, 92px); align-items: start; }
/* En escritorio el retrato acompaña la lectura en lugar de dejar la columna vacía */
@media (min-width: 981px) { .photo-block { position: sticky; top: 116px; } }
.photo-ph { position: relative; aspect-ratio: 3 / 4; background: var(--card); }
.photo-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-ph .corner { border-color: rgba(191,160,106,.5); }
.about-body p { max-width: 36em; font-size: .96rem; color: var(--ivory-mid); line-height: 1.95; margin-bottom: 20px; text-wrap: pretty; }
.creds { margin-top: 30px; list-style: none; }
.creds li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--ivory-ghost); font-size: .86rem; color: var(--ivory-mid); }
.creds li::before { content: '◆'; color: var(--gold); font-size: .42rem; flex-shrink: 0; }
.exp-block { margin-top: 50px; }
.stats-bar { display: flex; border-top: 1px solid var(--gold-dim); border-bottom: 1px solid var(--gold-dim); margin-top: 6px; }
.stat { flex: 1; min-width: 0; padding: 28px 12px; text-align: center; border-right: 1px solid var(--gold-dim); }
.stat:last-child { border-right: 0; }
.stat-n { font-family: var(--display); font-size: clamp(2rem, 3.3vw, 2.9rem); font-weight: 300; color: var(--gold); line-height: 1; margin-bottom: 8px; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.stat-l { font-size: .66rem; letter-spacing: .22em; padding-left: .22em; text-transform: uppercase; color: var(--ivory-dim); }

/* ═════════════ DESPLEGABLES (repertorio y tipos de evento) ═════════════ */
/* La altura se anima con grid-template-rows 0fr → 1fr: suave y sin medir en JS.
   Abrir es una decisión y se toma su tiempo; cerrar responde más rápido. */
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease-drawer); }
.acc-panel > .acc-inner { min-height: 0; overflow: hidden; }
.is-open > .acc-panel { grid-template-rows: 1fr; transition-duration: .6s; }
.acc-inner > * { opacity: 0; transform: translateY(-6px); transition: opacity .2s ease, transform .3s var(--ease-out); }
.is-open > .acc-panel .acc-inner > * { opacity: 1; transform: none; transition: opacity .45s ease .1s, transform .6s var(--ease-out) .1s; }

.acc-h { font: inherit; margin: 0; }
.acc-btn { position: relative; }
/* Hilo dorado que se dibuja bajo el título al pasar el ratón y se queda
   mientras el desplegable está abierto */
.acc-btn::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold) 45%, rgba(191,160,106,.12) 100%);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .6s var(--ease-out);
}
.is-open > .acc-h .acc-btn::after { transform: none; }
.acc-icon { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.acc-icon::before, .acc-icon::after {
  content: ''; position: absolute; left: 50%; top: 50%; background: var(--gold);
  transition: transform .45s var(--ease-drawer), opacity .3s ease;
}
.acc-icon::before { width: 18px; height: 1px; transform: translate(-50%, -50%); }
.acc-icon::after  { width: 1px; height: 18px; transform: translate(-50%, -50%); }
.is-open .acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

/* ── REPERTORIO ── */
#repertoire { background: var(--deep); }
.rep-hint { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; margin: -24px 0 46px; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ivory-dim); }
.rep-hint > span:last-child { padding-left: .22em; }
.rep-stat { font-family: var(--display); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: .03em; font-size: clamp(1.25rem, 2vw, 1.5rem); color: var(--gold-lt); }
.rep-list { border-top: 1px solid var(--gold-dim); }
.rep-row { border-bottom: 1px solid var(--gold-dim); }
.rep-btn {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 18px; align-items: center; gap: 0 28px;
  padding: 28px 8px; color: var(--ivory);
  transition: background-color .4s var(--ease-out);
}
.rep-btn:active { background: var(--ivory-ghost); transition-duration: .1s; }
.rep-num { font-family: var(--display); font-style: italic; font-size: 1.05rem; letter-spacing: .14em; color: var(--gold); }
.rep-txt { display: flex; flex-direction: column; gap: 8px; min-width: 0; transition: transform .5s var(--ease-out); }
.rep-name { font-family: var(--display); font-weight: 300; font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.1; text-wrap: balance; transition: color .4s ease; }
.is-open .rep-name { color: var(--gold-lt); }
.rep-sub { font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ivory-dim); line-height: 1.6; }
/* Cada canción destacada pasa entera a la línea siguiente; solo si no cabe
   ni sola se parte por dentro */
.rep-sub .nw { display: inline-block; white-space: normal; }
.rep-count { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); white-space: nowrap; text-align: right; }
/* Canciones numeradas en el orden de Gloria, como un setlist impreso:
   columnas separadas por un filete, sin raya bajo cada título */
.rep-songs {
  list-style: none; counter-reset: tema;
  columns: 4 190px; column-gap: 56px; column-rule: 1px solid var(--ivory-ghost);
  padding: 22px 8px 46px 100px;
}
.rep-songs li {
  break-inside: avoid; display: flex; gap: 12px; align-items: baseline;
  padding: 7px 0;
  font-size: .9rem; line-height: 1.45; color: var(--ivory);
}
.rep-songs li::before {
  counter-increment: tema; content: counter(tema, decimal-leading-zero);
  font-size: .66rem; letter-spacing: .06em; color: var(--gold); font-variant-numeric: tabular-nums; flex-shrink: 0;
}
.rep-songs .a { font-size: .72rem; letter-spacing: .04em; color: var(--ivory-dim); }

/* ── TIPOS DE EVENTO ── */
#formats { background: var(--bg); }
.fmt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; align-items: start; border-top: 1px solid var(--gold-dim); }
.fmt { border-bottom: 1px solid var(--gold-dim); }
.fmt-btn {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left; color: var(--ivory);
  display: flex; align-items: center; gap: 22px; padding: 30px 4px;
  transition: background-color .4s var(--ease-out);
}
.fmt-btn:active { background: var(--ivory-ghost); transition-duration: .1s; }
.fmt-n { font-family: var(--display); font-style: italic; font-size: .98rem; color: var(--gold); letter-spacing: .1em; width: 28px; flex-shrink: 0; }
.fmt-title { flex: 1; font-family: var(--display); font-weight: 300; font-size: clamp(1.5rem, 2.4vw, 1.95rem); line-height: 1.15; text-wrap: balance; transition: color .4s ease, transform .5s var(--ease-out); }
.is-open .fmt-title { color: var(--gold-lt); }
.fmt-body { padding: 0 4px 32px 54px; }
.fmt-desc { font-size: .92rem; color: var(--ivory-mid); line-height: 1.85; text-wrap: pretty; }
.fmt-meta { margin-top: 14px; font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.fmt-note { margin-top: 54px; padding: 26px 32px; border: 1px solid var(--gold-dim); background: var(--ivory-ghost); text-align: center; }
.fmt-note p { max-width: 74ch; margin: 0 auto; font-size: .84rem; color: var(--ivory-mid); line-height: 1.9; text-wrap: pretty; }
.fmt-note strong { color: var(--gold); font-weight: 400; }

/* Movimiento al pasar el ratón: solo con ratón de verdad (en táctil se
   quedaría «pegado» tras tocar la fila) */
@media (hover: hover) and (pointer: fine) {
  .acc-btn:hover::after { transform: none; }
  .rep-btn:hover { background: var(--ivory-ghost); }
  .rep-btn:hover .rep-txt { transform: translateX(6px); }
  .fmt-btn:hover .fmt-title { transform: translateX(6px); }
}

/* ═════════════ VÍDEOS ═════════════ */
#videos { background: var(--bg); }
.vid-row { display: flex; justify-content: center; gap: clamp(18px, 3vw, 40px); }
/* Mientras se comprueba qué vídeos hay, la fila ya ocupa su alto: nada salta */
.vid-row:empty::before { content: ''; flex-shrink: 0; width: min(300px, 72vw); aspect-ratio: 9 / 16; margin-bottom: 46px; }
.vid-card { flex: 0 1 300px; min-width: 0; }
.vid-box { position: relative; }
.vid-frame { position: relative; aspect-ratio: 9 / 16; background: var(--card); overflow: hidden; }
.vid-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.vid-frame::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(8,6,8,.7) 100%);
  transition: opacity .5s var(--ease-out);
}
.vid-card.playing .vid-frame::after { opacity: 0; }
.vid-play {
  position: absolute; inset: 0; z-index: 2; width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .45s var(--ease-out);
}
.vid-play .ring {
  position: relative;
  width: 74px; height: 74px; border-radius: 50%; border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  background: rgba(8,6,8,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .5s var(--ease-out), background-color .4s ease, border-color .4s ease;
}
/* Arco que gira mientras el vídeo carga */
.vid-play .ring::after {
  content: ''; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid transparent; border-top-color: var(--gold-lt);
  opacity: 0; transition: opacity .3s ease;
}
.vid-play svg { width: 18px; height: 18px; fill: var(--gold); margin-left: 3px; transition: fill .4s ease, opacity .3s ease; }
.vid-play:active .ring { transform: scale(.96); transition-duration: .16s; }
/* El contorno del foco se dibuja en el círculo: el marco recorta lo que sale de él */
.vid-play:focus-visible { outline: none; }
.vid-play:focus-visible .ring { outline: 1px solid var(--gold-lt); outline-offset: 6px; }
.vid-card.playing .vid-play { opacity: 0; pointer-events: none; }
.vid-card.cargando .vid-play { opacity: 1; }
.vid-card.cargando .vid-play .ring { transform: none; background: rgba(8,6,8,.45); border-color: rgba(191,160,106,.3); }
.vid-card.cargando .vid-play .ring::after { opacity: 1; animation: gira .8s linear infinite; }
.vid-card.cargando .vid-play svg { fill: var(--gold); opacity: .45; }
@keyframes gira { to { transform: rotate(360deg); } }
@media (hover: hover) and (pointer: fine) {
  .vid-card:not(.playing) .vid-frame:hover video { transform: scale(1.035); }
  .vid-play:hover .ring { transform: scale(1.08); background: var(--gold); }
  .vid-play:hover svg { fill: var(--bg); }
}
.vid-card figcaption {
  display: flex; align-items: flex-start; gap: 12px; margin-top: 16px;
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ivory-mid);
  text-wrap: balance;
}
.vid-card figcaption::before { content: ''; flex-shrink: 0; width: 22px; height: 1px; margin-top: .85em; background: var(--gold); }
.vid-card .corner { opacity: 0; transition: opacity .5s ease; }
.vid-card.playing .corner { opacity: 1; }

/* ═════════════ GALERÍA ═════════════ */
#gallery { background: var(--deep); }
.gal-lbl {
  display: flex; align-items: center; gap: 14px; max-width: 980px; margin: 0 auto 26px;
  font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
}
.gal-lbl--live { max-width: none; margin-top: clamp(64px, 9vw, 110px); }
.gal-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 4vw, 56px); max-width: 980px; margin: 0 auto; }
.gal { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--card); }
.gal-pair .gal:nth-child(2) { margin-top: clamp(40px, 9vw, 120px); }
/* En directo: cuatro fotos en fila, cada cortina se retira un poco después */
.gal-live { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.gal-live .gal { aspect-ratio: 3 / 4; }
.gal-live .gal:nth-child(2)::after { transition-delay: .1s; }
.gal-live .gal:nth-child(3)::after { transition-delay: .2s; }
.gal-live .gal:nth-child(4)::after { transition-delay: .3s; }
.gal img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.8s var(--ease-out); }
.gal.in img { transform: scale(1); }
/* Cortina que se retira al entrar en pantalla */
.gal::after { content: ''; position: absolute; inset: 0; background: var(--deep); transform-origin: top; transition: transform 1.3s var(--ease-in-out); }
.gal.in::after { transform: scaleY(0); }

/* ═════════════ PASO A PASO ═════════════ */
#process { background: var(--bg); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 46px; }
.steps-line { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--gold-dim); }
/* La línea avanza a ritmo constante (es una línea de tiempo) y cada paso
   aparece justo cuando llega a su rombo */
.steps-line::after { content: ''; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 1.7s linear .15s; }
.steps.in .steps-line::after { transform: scaleX(1); }
.step { position: relative; padding-top: 34px; opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(.12s + var(--i) * .44s); }
.steps.in .step { opacity: 1; transform: none; }
.step::before { content: ''; position: absolute; top: -4px; left: 0; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); }
.step-n { font-family: var(--display); font-size: 2.3rem; font-weight: 300; color: var(--gold); line-height: 1; margin-bottom: 16px; }
.step-t { font-family: var(--display); font-size: 1.4rem; font-weight: 400; color: var(--ivory); margin-bottom: 10px; line-height: 1.25; text-wrap: balance; }
.step-d { font-size: .88rem; color: var(--ivory-mid); line-height: 1.85; text-wrap: pretty; }

/* ═════════════ CONTACTO ═════════════ */
#contact { background: var(--deep); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(48px, 7vw, 86px); align-items: start; }
.info-item { padding: 18px 0; border-bottom: 1px solid var(--ivory-ghost); }
.info-lbl { font-size: .64rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.info-val { font-size: .95rem; color: var(--ivory-mid); }
/* Zona de toque de 44 px sin mover el dibujo */
.contact-link { display: inline-block; padding: 12px 0; margin: -12px 0; color: var(--ivory-mid); text-decoration: none; transition: color .3s ease; }
.contact-link:hover, .contact-link:active { color: var(--gold); }

.form { display: flex; flex-direction: column; gap: 26px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .64rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); transition: color .3s ease; }
.field:focus-within label { color: var(--gold-lt); }
.field input, .field textarea, .field select {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: 10px 0; color: var(--ivory); font-family: var(--body); font-size: .95rem; font-weight: 300;
  outline: none; transition: border-color .3s ease, box-shadow .3s ease; appearance: none; -webkit-appearance: none;
  color-scheme: dark; caret-color: var(--gold);
}
/* Foco: la raya pasa a dorado pleno y a 2 px (se ve también desde el teclado) */
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--gold); box-shadow: 0 1px 0 var(--gold); }
.field input::placeholder, .field textarea::placeholder { color: var(--ivory-faint); }
/* Campo mal rellenado, solo después de que la persona lo haya tocado */
.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid { border-bottom-color: var(--error); box-shadow: 0 1px 0 var(--error); }
.field textarea { resize: none; min-height: 104px; }
.field select {
  cursor: pointer; padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23BFA06A' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center;
}
.field select.vacio { color: var(--ivory-faint); }
.field select option { background: var(--card); color: var(--ivory); }
/* Campo trampa contra robots: fuera de la vista */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: .8rem; color: var(--ivory-dim); line-height: 1.6; }
.consent input { margin-top: 3px; accent-color: var(--gold); width: 16px; height: 16px; flex-shrink: 0; cursor: pointer; }
.consent a { color: var(--gold); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.consent a:hover { color: var(--gold-lt); }

.form-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.btn-send { min-width: 180px; justify-content: center; }
.btn-send[disabled] { opacity: .55; cursor: progress; }
.form-error { font-size: .84rem; color: var(--error); line-height: 1.7; }
.form-error:empty { display: none; }

/* Confirmación de envío: momento de alta carga emocional, no debe quedar plano */
.form-ok { display: none; text-align: center; padding: 48px 20px; border: 1px solid var(--gold-dim); background: var(--ivory-ghost); }
.contact-form.sent .form { display: none; }
.contact-form.sent .form-ok { display: block; animation: fadeUp .9s var(--ease-out) both; }
.ok-check { width: 74px; height: 74px; margin: 0 auto 24px; }
.ok-check circle, .ok-check path { fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.ok-check circle { stroke-dasharray: 226; stroke-dashoffset: 226; }
.ok-check path { stroke-dasharray: 42; stroke-dashoffset: 42; }
.contact-form.sent .ok-check circle { animation: draw 1s var(--ease-in-out) .15s forwards; }
.contact-form.sent .ok-check path { animation: draw .6s var(--ease-out) .95s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ok-title { font-family: var(--display); font-weight: 300; font-size: clamp(2rem, 4vw, 2.7rem); color: var(--ivory); line-height: 1.1; text-wrap: balance; }
.ok-text { margin-top: 12px; font-size: .95rem; color: var(--ivory-mid); }

/* ═════════════ FOOTER ═════════════ */
footer {
  background: var(--bg); border-top: 1px solid var(--gold-dim);
  padding: 40px var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.foot-brand { font-family: var(--display); font-size: 1.15rem; color: var(--gold); letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; }
.foot-copy { font-size: .66rem; color: var(--ivory-dim); letter-spacing: .08em; text-align: center; }
.foot-copy a { display: inline-block; padding: 12px 0; margin: -12px 0; color: var(--ivory-mid); text-decoration: none; white-space: nowrap; transition: color .3s ease; }
.foot-copy a:hover, .foot-copy a:active { color: var(--gold); }
.foot-social { display: flex; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
/* Enlaces pequeños con zona de toque alta (el relleno no mueve el dibujo) */
.foot-social a, .print-link {
  padding: 12px 0; margin: -12px 0;
  font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ivory-dim);
  text-decoration: none; transition: color .3s ease; background: none; border: 0; cursor: pointer;
  font-family: var(--body); font-weight: 300;
}
.foot-social a:hover, .print-link:hover, .foot-social a:active, .print-link:active { color: var(--gold); }

/* ═════════════ WHATSAPP FLOTANTE ═════════════ */
/* Se retira mientras se ve la portada (ya tiene su botón) y al llegar al
   formulario y al pie (ya tienen WhatsApp): así nunca tapa el vídeo ni un campo */
.wa-float {
  position: fixed; bottom: 36px; right: 36px; z-index: 800;
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); border: 1px solid var(--gold); color: var(--gold); text-decoration: none;
  box-shadow: 0 8px 26px rgba(0,0,0,.5);
  transition: opacity .35s var(--ease-out), transform .45s var(--ease-out), visibility 0s linear 0s,
              background-color .3s ease, color .3s ease;
}
.wa-float.wa-oculto {
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(14px) scale(.94);
  transition: opacity .25s ease, transform .3s ease, visibility 0s linear .3s;
}
@media (hover: hover) and (pointer: fine) {
  .wa-float:hover { background: var(--gold); color: var(--bg); transform: translateY(-3px); }
}
.wa-float:active { transform: scale(.95); }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }
.wa-label {
  position: absolute; right: 72px; white-space: nowrap; pointer-events: none;
  background: rgba(8,6,8,.92); color: var(--ivory); border: 1px solid var(--gold-dim);
  font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; padding: 10px 16px;
  opacity: 0; transform: translateX(8px); transition: opacity .3s ease, transform .3s var(--ease-out);
}
.wa-float:hover .wa-label { opacity: 1; transform: none; }

/* ═════════════ RESPONSIVE ═════════════ */
@media (max-width: 1180px) {
  .nav { gap: 20px; }
  .nav-brand { font-size: 1.05rem; letter-spacing: .18em; }
  .nav-links a { font-size: .6rem; letter-spacing: .16em; }
  .nav-links a::after { right: .16em; }
}

/* Pie en dos filas cuando no cabe en una: marca y enlaces arriba, aviso legal debajo */
@media (min-width: 981px) and (max-width: 1180px) {
  footer { display: grid; grid-template-columns: auto 1fr; row-gap: 14px; }
  .foot-copy { grid-row: 2; grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 980px) {
  /* Menú a pantalla completa con aparición escalonada de los enlaces */
  .menu-btn { display: block; }
  .nav-links {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 26px;
    background: rgba(8,6,8,.97); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transition: opacity .3s var(--ease-out), visibility 0s linear .3s;
  }
  .nav-links a { padding: 4px 0; font-family: var(--display); font-size: 2.1rem; letter-spacing: .04em; text-transform: none; color: var(--ivory); }
  .nav-links a::after { right: .04em; bottom: 2px; }
  .nav-links li { opacity: 0; transform: translateY(22px); transition: opacity .25s ease, transform .3s var(--ease-out); }
  .menu-open .nav-links { opacity: 1; visibility: visible; transition: opacity .4s var(--ease-out), visibility 0s; }
  .menu-open .nav-links li { opacity: 1; transform: none; transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(.06s + var(--i) * .05s); }
  /* Sin backdrop-filter con el menú abierto: si no, la barra se convierte en el
     contenedor del menú fijo y este dejaría de ocupar la pantalla entera */
  .menu-open .nav { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }

  .about-grid { grid-template-columns: 1fr; }
  .photo-block { max-width: 460px; }
  .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 36px; }
  .steps-line { display: none; }
  .step { border-top: 1px solid var(--gold-dim); }
  .step::before { top: -5px; }
  footer { flex-direction: column; text-align: center; }
  .foot-brand { padding-left: .22em; }
  .foot-social { justify-content: center; }
  .wa-float { bottom: 22px; right: 22px; width: 52px; height: 52px; }
  .wa-float svg { width: 25px; height: 25px; }
  .wa-label { display: none; }
}

/* Hero en vertical: el vídeo ocupa toda la pantalla y el texto va abajo */
@media (max-width: 899px) {
  #hero { display: block; padding: 0; min-height: 100svh; }
  .hero-grid { display: flex; flex-direction: column; justify-content: flex-end; min-height: 100svh; }
  .hero-media { position: absolute; inset: 0; height: auto; aspect-ratio: auto; z-index: -1; }
  .hero-media::before, .hero-media .corner { display: none; }
  /* Si la pantalla es más ancha que el vídeo, se recorta por abajo y no la cara */
  .hero-frame video { object-position: 50% 12%; }
  .hero-frame::after { background: linear-gradient(180deg, rgba(8,6,8,.55) 0%, rgba(8,6,8,.05) 30%, rgba(8,6,8,.35) 55%, rgba(8,6,8,.94) 86%, var(--bg) 100%); }
  .hero-text { position: relative; padding: 0 24px 64px; text-align: center; }
  .hero-name { font-size: clamp(3.7rem, 18vw, 5.6rem); }
  .hero-orn { justify-content: center; margin: 26px 0 18px; }
  .hero-role { font-size: clamp(.92rem, 4.2vw, 1.15rem); letter-spacing: .3em; padding-left: .3em; }
  .hero-line { font-size: .86rem; text-wrap: balance; }
  .hero-actions { justify-content: center; margin-top: 30px; }
  .sound-btn { top: 92px; bottom: auto; left: auto; right: 16px; transform: none; padding: 10px 14px; }
  .sound-btn:active { transform: scale(.96); }
}

@media (max-width: 760px) {
  .rep-btn { grid-template-columns: 40px minmax(0, 1fr) 18px; gap: 0 16px; padding: 24px 4px; align-items: start; }
  .rep-num { padding-top: 7px; }
  .rep-count { display: none; }
  .rep-btn .acc-icon { margin-top: 12px; }
  .rep-sub { font-size: .66rem; letter-spacing: .14em; }
  .rep-songs { padding: 14px 4px 30px 60px; columns: 1; }
  .rep-hint { margin-top: -18px; }
  .rep-hint > span:last-child { max-width: 30ch; text-wrap: balance; }
  .fmt-grid { grid-template-columns: 1fr; }
  .fmt-body { padding-left: 50px; }
  .vid-row { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .vid-row::-webkit-scrollbar { display: none; }
  .vid-card { flex: 0 0 72vw; max-width: 300px; scroll-snap-align: center; }
  .vid-row.solo { justify-content: center; }
  .frow { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .nav { gap: 12px; }
  .nav-brand { font-size: .92rem; letter-spacing: .14em; }
  .nav-lang { padding: 2px 5px; }
  /* Cifras: dos arriba y la más grande debajo, a todo el ancho */
  .stats-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { border-right: 0; padding: 24px 10px; }
  .stat:first-child { border-right: 1px solid var(--gold-dim); }
  .stat:last-child { grid-column: 1 / -1; border-top: 1px solid var(--gold-dim); }
  .gal-pair { grid-template-columns: 1fr; gap: 18px; }
  .gal-pair .gal:nth-child(2) { margin-top: 0; }
  .gal-live { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .venues-track { animation-duration: 32s; }
  .venue        { width: 126px; height: 56px; margin-right: 46px; }
  .venue--alto  { width: 100px; height: 70px; }
  .venue--medio { width: 114px; height: 64px; }
  .venue--ancho { width: 112px; height: 46px; }
  .fmt-note { padding: 22px 20px; }
}

/* Movimiento reducido: se conserva el fundido y se elimina el desplazamiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transform: none; transition: opacity .6s ease; }
  .reveal .rule-line { transform: none; transition: none; }
  .hero-name .ch, .hero-name .l2, .hero-role, .hero-line, .hero-actions, .hero-media { animation: fadeIn .8s ease forwards; transform: none; }
  .hero-orn .h-line { animation: none; transform: none; }
  .hero-orn .diamond { animation: none; opacity: 1; }
  .venues-marquee { -webkit-mask-image: none; mask-image: none; }
  .venues-track { animation: none; width: 100%; flex-wrap: wrap; justify-content: center; }
  .venue { margin: 12px 26px; }
  .venue--copia { display: none; }
  .sound-btn.muted { animation: none; }
  .sound-btn .eq i { animation: none !important; }
  .sound-btn:not(.muted) .eq i:nth-child(odd) { transform: scaleY(.7); }
  .sound-btn:not(.muted) .eq i:nth-child(even) { transform: scaleY(1); }
  .btn::before { transform: none; opacity: 0; transition: opacity .3s ease; }
  .btn-arrow svg, .rep-txt, .vid-frame video { transition: none; transform: none !important; }
  .fmt-title { transform: none !important; transition: color .4s ease; }
  .acc-btn::after { transform: none; opacity: 0; transition: opacity .3s ease; }
  .is-open > .acc-h .acc-btn::after { opacity: 1; }
  .nav-links a::after { transition: none; }
  .vid-card.cargando .vid-play .ring::after { animation-duration: 2.4s; }
  .wa-float, .wa-float.wa-oculto, .wa-float:hover, .wa-float:active { transform: none; }
  .gal img { transform: none; transition: none; }
  .gal::after { display: none; }
  .step { transform: none; transition: opacity .6s ease; }
  .steps-line::after { transition: none; transform: none; }
  .acc-panel, .is-open > .acc-panel { transition-duration: .01s; }
}
@media (prefers-reduced-motion: reduce) and (hover: hover) and (pointer: fine) {
  .btn:not([disabled]):hover::before, .acc-btn:hover::after { opacity: 1; }
}

/* Menos transparencias: superficies sólidas en lugar de cristal esmerilado */
@media (prefers-reduced-transparency: reduce) {
  .nav.scrolled { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .sound-btn { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .vid-play .ring { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-links { -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Más contraste: textos secundarios y líneas más marcados */
@media (prefers-contrast: more) {
  :root {
    --ivory-mid: rgba(237,232,223,.9);
    --ivory-dim: rgba(237,232,223,.8);
    --ivory-faint: rgba(237,232,223,.7);
    --gold-dim: rgba(191,160,106,.6);
    --line: var(--gold);
  }
}

/* ═════════════ IMPRESIÓN · «Descargar dossier» → Guardar como PDF ═════════════
   Mantiene la estética oscura. print-color-adjust fuerza al navegador a
   conservar fondos y colores en lugar de imprimir en blanco. */
@media print {
  @page { size: A4; margin: 14mm; }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  *, *::before, *::after { transition: none !important; }   /* todo sale ya en su estado final */
  html, body { background: var(--bg) !important; }

  .nav, .wa-float, .menu-btn, .hero-actions, .sound-btn, .contact-form, .skip,
  .hero-media, #videos, .print-link, .venue--copia, .rep-hint { display: none !important; }

  .reveal, .hero-name .ch, .hero-name .l2, .hero-role, .hero-line, .step { opacity: 1 !important; transform: none !important; animation: none !important; }
  .hero-orn .h-line, .rule-line { transform: none !important; animation: none !important; }
  .hero-orn .diamond { opacity: 1 !important; animation: none !important; }

  .section { padding: 26px 0 !important; }
  .wrap { max-width: 100% !important; }
  #hero { min-height: 0 !important; padding: 10px 0 30px !important; display: block !important; }
  .hero-grid { display: block !important; min-height: 0 !important; }
  .hero-text { padding: 0 !important; }
  .hero-name { font-size: 3.6rem !important; }

  #venues { padding: 22px 0 !important; }
  .venues-marquee { overflow: visible !important; -webkit-mask-image: none !important; mask-image: none !important; }
  .venues-track { animation: none !important; width: 100% !important; flex-wrap: wrap !important; justify-content: center !important; }
  .venue { margin: 8px 20px !important; opacity: .9 !important; }

  /* En el dossier, el repertorio y los tipos de evento salen desplegados */
  .acc-panel { grid-template-rows: 1fr !important; }
  .acc-inner > * { opacity: 1 !important; transform: none !important; }
  .acc-icon, .acc-btn::after { display: none !important; }
  .rep-songs { columns: 3 !important; padding-left: 8px !important; }

  .photo-block { position: static !important; }
  .gal::after { display: none !important; }
  .gal img { transform: none !important; }
  /* Galería en papel: las dos de sesión a buen tamaño y la fila de directo
     con su rótulo, sin cortes entre páginas */
  .gal-pair .gal:nth-child(2) { margin-top: 0 !important; }
  .gal-pair { max-width: 100% !important; gap: 14px !important; }
  .gal-lbl { margin: 0 0 12px !important; max-width: none !important; break-after: avoid; }
  .gal-lbl--live { margin-top: 24px !important; }
  .gal-live { grid-template-columns: repeat(4, 1fr) !important; gap: 10px !important; break-inside: avoid; }
  .steps-line { display: none !important; }

  .rep-btn, .rep-songs li, .fmt, .step, .stat, .photo-block, .gal, .info-item { break-inside: avoid; }
  .rep-btn { break-after: avoid; }
  .s-head { break-inside: avoid; break-after: avoid; }
  .photo-block { max-width: 300px !important; }
  .contact-grid { grid-template-columns: 1fr !important; }
  footer { padding: 22px 0 !important; }
}
