/* ==========================================================================
   FUNDARTE — "Cartelera"
   Papel claro, tipografía de afiche y fotos reales de escenario.
   La web es solo en modo claro. Los colores viven en variables.
   ========================================================================== */

/* ----- Paleta: modo claro ----- */
:root {
  --paper:        #F6F2EB;
  --paper-2:      #EEE7DC;
  --paper-3:      #E5DCCD;
  --card:         #FFFFFF;
  --ink:          #17120E;
  --ink-2:        #4B433C;
  --ink-3:        #72675D;
  --line:         rgba(23, 18, 14, .12);
  --line-2:       rgba(23, 18, 14, .07);
  --line-strong:  rgba(23, 18, 14, .24);
  --accent:       #E84E0E;
  --accent-strong:#CF4508;
  --accent-text:  #C2410C;
  --accent-soft:  rgba(232, 78, 14, .09);
  --on-accent:    #FFFFFF;
  --header-bg:    rgba(246, 242, 235, .86);
  --glow:         rgba(232, 78, 14, .20);
  --shadow-1:     0 1px 2px rgba(23, 18, 14, .05), 0 10px 28px -14px rgba(23, 18, 14, .22);
  --shadow-2:     0 2px 6px rgba(23, 18, 14, .06), 0 34px 70px -30px rgba(23, 18, 14, .42);
  --ticket-shadow: drop-shadow(0 22px 26px rgba(23, 18, 14, .2)) drop-shadow(0 2px 3px rgba(23, 18, 14, .08));
  --map-filter:   saturate(.85) contrast(1.02);
  color-scheme: only light;
}

/* ----- Paleta oscura: DESACTIVADA ------------------------------------------
   Ningún botón ni script la activa. Se conserva por si algún día se quiere
   volver a ofrecer el modo oscuro (bastaría con poner data-theme="dark"
   en la etiqueta <html>). */
[data-theme="dark"] {
  --paper:        #110D0A;
  --paper-2:      #18120E;
  --paper-3:      #221A14;
  --card:         #1D1712;
  --ink:          #F4EEE4;
  --ink-2:        #CFC4B5;
  --ink-3:        #9A8E80;
  --line:         rgba(244, 238, 228, .13);
  --line-2:       rgba(244, 238, 228, .07);
  --line-strong:  rgba(244, 238, 228, .26);
  --accent:       #E84E0E;
  --accent-strong:#CF4508;
  --accent-text:  #F06A2E;
  --accent-soft:  rgba(232, 78, 14, .13);
  --on-accent:    #FFFFFF;
  --header-bg:    rgba(17, 13, 10, .84);
  --glow:         rgba(232, 78, 14, .26);
  --shadow-1:     0 1px 2px rgba(0, 0, 0, .4), 0 12px 30px -14px rgba(0, 0, 0, .7);
  --shadow-2:     0 2px 6px rgba(0, 0, 0, .35), 0 36px 70px -28px rgba(0, 0, 0, .85);
  --ticket-shadow: drop-shadow(0 22px 30px rgba(0, 0, 0, .55)) drop-shadow(0 2px 3px rgba(0, 0, 0, .3));
  --map-filter:   invert(.9) hue-rotate(180deg) saturate(.55) brightness(.95) contrast(.95);
  color-scheme: dark;
}

/* ----- Medidas y tipografía (iguales en los dos modos) ----- */
:root {
  --f-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --announce-h: 40px;
  --nav-h: 72px;
  --header-h: calc(var(--announce-h) + var(--nav-h));
  --section-y: clamp(80px, 10vw, 140px);
  --radius-lg: 28px;
  --radius: 20px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}
:root.no-announce { --announce-h: 0px; }

/* ----- Base ----- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  overflow-x: clip;
  background: var(--paper);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Escala compacta en computador (la que gustó al 90 %), sin usar zoom */
@media (min-width: 1024px) { html { font-size: 93.75%; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { list-style: none; padding: 0; }
svg { flex-shrink: 0; }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0 !important; height: 0 !important; overflow: hidden; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 1000;
  padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--paper);
  font-weight: 600; transform: translateY(-160%); transition: transform .25s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* ==========================================================================
   BIENVENIDA: el logo aparece y la cortina sube como un telón.
   Todo es CSS, así que se va sola aunque falle el JavaScript (splashSafety
   a los 4,5 s); main.js solo la oculta del todo cuando termina.
   ========================================================================== */
:root:has(.splash) { --intro: 1.95s; }   /* lo que esperan las animaciones del inicio */
.splash {
  position: fixed; inset: 0; z-index: 999;
  display: grid; place-items: center;
  background: var(--paper);
  animation: splashLift .9s cubic-bezier(.76, 0, .24, 1) 1.75s forwards, splashSafety .01s 4.5s forwards;
}
.splash::after { /* ribete naranja en el borde de la cortina */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent);
}
.splash-inner {
  display: grid; justify-items: center; gap: 20px; padding-inline: var(--gutter);
  animation: splashInnerOut .9s cubic-bezier(.76, 0, .24, 1) 1.75s forwards;
}
.splash-logo {
  width: clamp(180px, 20vw, 260px); height: auto;
  opacity: 0; transform: translateY(16px); filter: blur(8px);
  animation: splashLogoIn 1s var(--ease-out) .15s forwards;
}
.splash-line {
  width: clamp(56px, 6vw, 84px); height: 2px; border-radius: 2px; background: var(--accent);
  transform: scaleX(0);
  animation: splashLineIn .9s var(--ease-out) .55s forwards;
}
.splash-tag {
  font: 600 .74rem/1 var(--f-display); letter-spacing: .5em; text-transform: uppercase; color: var(--ink-3);
  margin-right: -.32em; /* compensa el espacio tras la última letra para que quede centrado */
  opacity: 0;
  animation: splashTagIn 1s var(--ease-out) .8s forwards;
}
@keyframes splashLogoIn { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes splashLineIn { to { transform: scaleX(1); } }
@keyframes splashTagIn { to { opacity: 1; letter-spacing: .32em; } }
@keyframes splashInnerOut { to { opacity: 0; transform: translateY(-6vh); } }
@keyframes splashLift { to { transform: translateY(-100%); visibility: hidden; } }
@keyframes splashFade { to { opacity: 0; visibility: hidden; } }
@keyframes splashFadeIn { to { opacity: 1; } }
@keyframes splashSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* Logo de Fundarte: naranja en modo claro, crema en modo oscuro */
.logo { height: 100%; width: auto; }
.logo-on-dark { display: none; }
[data-theme="dark"] .logo-on-light { display: none; }
[data-theme="dark"] .logo-on-dark { display: block; }

/* ----- Botones ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 600 1rem/1 var(--f-body); letter-spacing: .005em;
  border: 1px solid transparent; white-space: nowrap; cursor: pointer;
  transition: transform .4s var(--ease-out), background-color .25s, color .25s, border-color .25s, box-shadow .4s var(--ease-out);
}
.btn svg { width: 18px; height: 18px; transition: transform .4s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .1s; }
.btn-primary { background: var(--accent-strong); color: var(--on-accent); box-shadow: 0 12px 26px -12px rgba(207, 69, 8, .7); }
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(232, 78, 14, .75); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .92rem; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.round-btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--line); color: var(--ink);
  transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--ease-out);
}
.round-btn svg { width: 20px; height: 20px; }
.round-btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; transform: translateY(-2px); }
.round-btn:disabled { opacity: .35; pointer-events: none; }

/* ==========================================================================
   ENCABEZADO
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  transition: transform .5s var(--ease-out);
}
.site-header.is-scrolled { transform: translateY(calc(-1 * var(--announce-h))); }

/* Aviso del próximo evento */
.announce {
  display: block; height: var(--announce-h); overflow: hidden;
  background: var(--accent-strong); color: #fff;
  font-size: .88rem; line-height: 1;
}
.announce-inner {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  height: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter);
  white-space: nowrap;
}
.announce-label {
  font-weight: 700; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 999px; background: rgba(255, 255, 255, .18);
}
.announce-text { overflow: hidden; text-overflow: ellipsis; }
.announce-text strong { font-weight: 700; }
.announce-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .45); text-underline-offset: 3px; }
.announce-cta svg { width: 16px; height: 16px; transition: transform .35s var(--ease-out); }
.announce:hover .announce-cta svg { transform: translateX(4px); }
.announce-live {
  position: relative; width: 8px; height: 8px; border-radius: 50%; background: #fff; flex-shrink: 0;
}
.announce-live::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; opacity: 0;
  animation: livePulse 2.4s var(--ease-out) infinite;
}
.announce .announce-live { color: #fff; }
@keyframes livePulse { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }

/* Barra de navegación */
.nav { height: var(--nav-h); transition: background-color .4s, box-shadow .4s, backdrop-filter .4s; }
.site-header.is-scrolled .nav,
.site-header.menu-open .nav {
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line);
}
@supports (backdrop-filter: blur(12px)) {
  .site-header.is-scrolled .nav { background: var(--header-bg); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 100%; }
.brand { display: inline-flex; align-items: center; height: 27px; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav-links a {
  position: relative; padding: 6px 0; font-size: .95rem; font-weight: 500; color: var(--ink-2);
  transition: color .25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-tools { display: flex; align-items: center; gap: 12px; }

/* Hamburguesa */
.nav-burger {
  display: none; position: relative; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card);
}
.nav-burger span {
  position: absolute; left: 13px; right: 13px; height: 1.8px; border-radius: 2px; background: var(--ink);
  transition: transform .4s var(--ease-out), top .4s var(--ease-out);
}
.nav-burger span:nth-child(1) { top: 17px; }
.nav-burger span:nth-child(2) { top: 25px; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; left: 0; right: 0; top: var(--nav-h); bottom: 0;
  background: var(--paper); overflow-y: auto;
  animation: menuIn .45s var(--ease-out);
}
.site-header:not(.is-scrolled) .mobile-menu { top: var(--header-h); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.mobile-menu-inner { display: flex; flex-direction: column; padding-top: 18px; padding-bottom: 40px; }
.mobile-menu-inner a:not(.btn) {
  font: 700 clamp(1.9rem, 8vw, 2.6rem)/1.1 var(--f-display); color: var(--ink);
  padding: 12px 0; border-bottom: 1px solid var(--line-2);
}
.mobile-menu-inner .btn { margin-top: 26px; align-self: flex-start; }

/* ==========================================================================
   INICIO (HERO)
   ========================================================================== */
.hero {
  position: relative; isolation: isolate;
  padding-top: calc(var(--header-h) + clamp(28px, 5vw, 64px));
  padding-bottom: clamp(28px, 4vw, 56px);
}
.hero-glow {
  position: absolute; z-index: -1; pointer-events: none;
  top: 4%; right: -14%; width: min(980px, 80vw); aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--glow), transparent 72%);
}
.hero-grid {
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "copy stage" "stats stage";
  column-gap: clamp(36px, 5vw, 80px); row-gap: 40px;
}
.hero-copy { grid-area: copy; align-self: end; }
.hero-stage { grid-area: stage; position: relative; padding-bottom: 44px; }
.hero-stats { grid-area: stats; align-self: start; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  font-size: .8rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-2);
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.hero-title {
  font: 700 clamp(3.1rem, 6.3vw, 6.6rem)/.9 var(--f-display);
  letter-spacing: -.015em; color: var(--ink);
  text-wrap: balance; max-width: 11ch;
}
.hero-title em, h2 em, .event-title .amp {
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  letter-spacing: -.01em; color: var(--accent);
}
.hero-title em { font-size: 1.06em; line-height: .8; }
/* Palabras que suben al cargar (solo si el JS las preparó) */
.hero-title.is-split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .08em .1em 0; margin: 0 -.08em -.1em 0; }
.hero-title.is-split .w > span { display: inline-block; transform: translateY(108%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * 70ms + 120ms); }
.hero-title.is-split.is-in .w > span { transform: none; }

.hero-lead { margin-top: 26px; max-width: 46ch; font-size: 1.12rem; line-height: 1.6; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; border-top: 1px solid var(--line); padding-top: 26px; }
.stat { display: flex; flex-direction: column-reverse; padding-right: clamp(20px, 3vw, 40px); margin-right: clamp(20px, 3vw, 40px); border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.stat dd { font: 700 clamp(2.2rem, 3.4vw, 3rem)/1 var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stat dt { margin-top: 8px; font-size: .8rem; color: var(--ink-3); letter-spacing: .02em; }

/* Escenario: foto grande con entrada cinematográfica */
.stage-frame {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  aspect-ratio: 16 / 11; background: #0b0807;
  box-shadow: var(--shadow-2);
  animation: stageIn 1.5s var(--ease-out) calc(var(--intro, 0s) + .1s) both;
}
.stage-media { position: absolute; inset: -7% 0; will-change: transform; }
/* Fotos que rotan: la primera entra con zoom; las demás llegan con un fundido
   y todas se acercan despacio mientras están en pantalla */
.stage-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--pos, 50% 42%);
  opacity: 0; transform: scale(1.03);
  transition: opacity 1.4s ease;
}
.stage-slide.is-active { opacity: 1; z-index: 2; }
.stage-slide.is-leaving { opacity: 1; z-index: 1; transition: none; }
.stage-slide.is-first { animation: stageImg 2.4s var(--ease-out) var(--intro, 0s) both, stageZoom 9s linear calc(var(--intro, 0s) + 2.4s) forwards; }
.stage-slide.is-zoom { animation: stageZoom 9s linear forwards; }
.stage-frame.is-holding .stage-slide, .stage-frame.is-paused .stage-slide { animation-play-state: paused; }

/* Barras de avance (una por foto) y botón de pausa */
.stage-nav { position: absolute; z-index: 3; top: 10px; left: 18px; right: 18px; display: flex; gap: 6px; }
.stage-bar { position: relative; flex: 1 1 0; height: 16px; padding: 0; border: 0; background: none; cursor: pointer; }
.stage-bar::before, .stage-bar-fill { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 3px; }
.stage-bar::before { background: rgba(255, 255, 255, .34); }
.stage-bar-fill { background: #fff; transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.stage-bar:focus-visible { outline: 2px solid #fff; outline-offset: 1px; border-radius: 4px; }
.stage-toggle {
  position: absolute; z-index: 3; top: 34px; right: 18px;
  width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(12, 9, 7, .5); color: #fff;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background-color .25s;
}
.stage-toggle:hover { background: rgba(12, 9, 7, .78); }
.stage-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.stage-toggle svg { width: 15px; height: 15px; }
.stage-toggle .i-play, .stage-frame.is-paused .stage-toggle .i-pause { display: none; }
.stage-frame.is-paused .stage-toggle .i-play { display: block; }
.stage-frame.has-nav figcaption { top: 34px; max-width: calc(100% - 36px - 44px); }
.stage-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .28) 0%, transparent 26%, transparent 62%, rgba(0, 0, 0, .35) 100%);
}
.stage-frame figcaption {
  position: absolute; z-index: 2; top: 18px; left: 18px; right: 18px;
  display: inline-flex; align-items: center; gap: 9px; width: fit-content; max-width: calc(100% - 36px);
  padding: 8px 14px; border-radius: 999px;
  background: rgba(12, 9, 7, .5); color: #fff; font-size: .78rem; font-weight: 500; letter-spacing: .02em;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  white-space: nowrap; overflow: hidden;
}
.stage-frame figcaption .cap { overflow: hidden; text-overflow: ellipsis; transition: opacity .28s ease; }
.stage-frame figcaption .cap.is-out { opacity: 0; }
.rec-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff5a1f; flex-shrink: 0; }
@keyframes stageIn {
  from { clip-path: inset(9% 7% 9% 7% round var(--radius-lg)); opacity: 0; }
  to   { clip-path: inset(0 0 0 0 round var(--radius-lg)); opacity: 1; }
}
@keyframes stageImg { from { transform: scale(1.22); } to { transform: scale(1.03); } }
@keyframes stageZoom { from { transform: scale(1.03); } to { transform: scale(1.1); } }

/* ==========================================================================
   BOLETO (próximo evento)
   ========================================================================== */
.ticket-wrap { filter: var(--ticket-shadow); }
.ticket {
  --stub: 96px; --notch: 11px;
  position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr) var(--stub);
  min-height: 136px; border-radius: 18px; overflow: hidden;
  background: var(--card); color: var(--ink);
  -webkit-mask:
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 0, #0000 calc(var(--notch) - .5px), #000 var(--notch)) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 100%, #0000 calc(var(--notch) - .5px), #000 var(--notch)) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 0, #0000 calc(var(--notch) - .5px), #000 var(--notch)) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 100%, #0000 calc(var(--notch) - .5px), #000 var(--notch)) bottom / 100% 51% no-repeat;
  transition: transform .5s var(--ease-out);
}
.ticket-wrap:hover .ticket { transform: translateY(-4px) rotate(-.4deg); }
.ticket-poster { position: relative; overflow: hidden; background: #0e2b3a; }
.ticket-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; transition: transform .8s var(--ease-out); }
.ticket-wrap:hover .ticket-poster img { transform: scale(1.06); }
.ticket-body { display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 16px 18px; min-width: 0; }
.ticket-kicker { font-size: .68rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--accent-text); }
.ticket-title { font: 700 1.45rem/1.02 var(--f-display); letter-spacing: -.005em; color: var(--ink); margin-top: 2px; }
.ticket-meta { font-size: .83rem; color: var(--ink-3); }
.ticket-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 7px; font-size: .86rem; font-weight: 700; color: var(--ink); }
.ticket-cta svg { width: 16px; height: 16px; color: var(--accent); transition: transform .4s var(--ease-out); }
.ticket-wrap:hover .ticket-cta svg { transform: translateX(4px); }
.ticket-stub {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-left: 2px dashed var(--line-strong); background: var(--accent-soft);
  text-transform: uppercase; text-align: center;
}
.ticket-day { font: 800 2.5rem/.9 var(--f-display); color: var(--accent); }
.ticket-month { font: 700 .95rem/1.1 var(--f-display); letter-spacing: .14em; color: var(--ink); margin-top: 2px; }
.ticket-year { font-size: .72rem; font-weight: 600; letter-spacing: .1em; color: var(--ink-3); }

.hero-ticket { position: absolute; z-index: 3; left: clamp(-64px, -4.5vw, -24px); bottom: 0; width: min(470px, 88%); }

/* ==========================================================================
   SECCIONES — encabezados compartidos
   ========================================================================== */
.section { position: relative; padding-block: var(--section-y); }
.section-head { margin-bottom: clamp(40px, 5.5vw, 72px); }
.section-head-split {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end; gap: 28px clamp(32px, 6vw, 96px);
}
.section-head-center { text-align: center; max-width: 820px; margin-inline: auto; }
.section-head-center .kicker { justify-content: center; }
.kicker {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text);
}
.kicker::before { content: ""; width: 30px; height: 1.5px; background: currentColor; border-radius: 2px; }
.section-head-center .kicker::after { content: ""; width: 30px; height: 1.5px; background: currentColor; border-radius: 2px; }
h2 {
  font: 700 clamp(2.3rem, 4.7vw, 4.3rem)/.96 var(--f-display);
  letter-spacing: -.012em; color: var(--ink); text-wrap: balance;
}
h2 em { font-size: 1.07em; line-height: .9; }
.section-intro { font-size: 1.06rem; line-height: 1.65; color: var(--ink-2); max-width: 46ch; }
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--ink); }

/* ==========================================================================
   PRÓXIMOS EVENTOS
   ========================================================================== */
.section-proximos { padding-top: clamp(48px, 6vw, 80px); }
.events { display: grid; gap: 28px; }
.event {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  background: var(--card); border-radius: 32px; overflow: hidden;
  box-shadow: var(--shadow-1); border: 1px solid var(--line-2);
}
.event-poster { position: relative; min-height: 100%; background: #0e2b3a; overflow: hidden; }
.event-poster img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; transition: transform 1.2s var(--ease-out); }
.event:hover .event-poster img { transform: scale(1.03); }
.badge {
  position: absolute; top: 20px; left: 20px;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 14px; border-radius: 999px;
  font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.badge-live { background: var(--accent-strong); color: #fff; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.badge-live .announce-live { color: #fff; }
.event-body { padding: clamp(28px, 4.5vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.event-presenter { color: var(--ink-2); margin-bottom: 22px; }
.event-presenter .paramo { width: 112px; height: 33px; display: block; }
.event-title {
  font: 700 clamp(2.6rem, 5.2vw, 4.8rem)/.92 var(--f-display); letter-spacing: -.015em; color: var(--ink);
  text-wrap: balance;
}
.event-title .amp { font-size: 1.04em; }
.event-tour { margin-top: 12px; font: 600 1.25rem/1.2 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.event-facts { display: grid; gap: 12px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.event-facts li { display: flex; align-items: center; gap: 14px; color: var(--ink-2); font-size: 1.02rem; }
.event-facts li strong { color: var(--ink); font-weight: 600; }
.event-facts svg { width: 22px; height: 22px; color: var(--accent); }

.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 30px; max-width: 460px; }
.cd-cell {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 14px 6px 12px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line-2);
}
.cd-num { font: 700 clamp(1.9rem, 3vw, 2.5rem)/1 var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.cd-label { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }

.event-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.event-note { margin-top: 18px; font-size: .86rem; color: var(--ink-3); }
.event-note strong { color: var(--ink-2); }

.events-empty {
  padding: clamp(36px, 6vw, 72px); border-radius: 32px; text-align: center;
  background: var(--card); border: 1px dashed var(--line-strong);
}
.events-empty-title { font: 700 2.2rem/1 var(--f-display); margin-bottom: 12px; }
.events-empty p { color: var(--ink-2); }
.events-empty .btn { margin-top: 24px; }

/* ==========================================================================
   CINTA DE ARTISTAS
   ========================================================================== */
.lineup {
  position: relative; overflow: hidden;
  background: var(--accent-strong); color: #fff;
  transform: rotate(-1.6deg); width: 104%; margin: 10px -2% 0;
  padding: 18px 0;
  box-shadow: 0 18px 40px -26px rgba(207, 69, 8, .8);
}
.lineup-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: lineup 70s linear infinite; }
.lineup:hover .lineup-track { animation-play-state: paused; }
.lineup span {
  font: 800 clamp(1.9rem, 4.6vw, 3.8rem)/1 var(--f-display); text-transform: uppercase; letter-spacing: .01em; white-space: nowrap;
}
.lineup span.o { color: transparent; -webkit-text-stroke: 1.4px rgba(255, 255, 255, .92); }
.lineup i { font-style: normal; font-size: clamp(.9rem, 1.8vw, 1.4rem); opacity: .75; }
@keyframes lineup { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================================
   QUIÉNES SOMOS
   ========================================================================== */
.section-somos { padding-top: calc(var(--section-y) + 20px); }
.somos-photo { position: relative; }
.somos-media { position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 21 / 9; background: #0b0807; box-shadow: var(--shadow-2); }
.somos-media img { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; object-position: 50% 45%; will-change: transform; }
.somos-badge {
  position: absolute; left: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px);
  display: flex; align-items: center; gap: 16px; max-width: 360px;
  padding: 18px 22px; border-radius: 20px; background: var(--card); color: var(--ink); box-shadow: var(--shadow-1);
}
.somos-badge-num { font: 800 2.6rem/1 var(--f-display); color: var(--accent); letter-spacing: -.01em; }
.somos-badge-text { font-size: .9rem; line-height: 1.35; color: var(--ink-2); }
.somos-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); margin-top: clamp(40px, 5vw, 64px); align-items: start; }
.somos-text p { color: var(--ink-2); font-size: 1.06rem; }
.somos-text p + p { margin-top: 18px; }
.process { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; counter-reset: step; }
.process li {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 18px 18px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line-2);
  font: 700 1.25rem/1.1 var(--f-display); letter-spacing: .01em; color: var(--ink);
  transition: border-color .3s, transform .4s var(--ease-out);
}
.process li span { font: 400 1.05rem/1 var(--f-serif); font-style: italic; color: var(--accent); }
.process li:hover { border-color: var(--accent); transform: translateY(-3px); }

/* ==========================================================================
   QUÉ HACEMOS
   ========================================================================== */
.section-servicios { background: var(--paper-2); }
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service {
  padding: clamp(26px, 3vw, 36px); border-radius: var(--radius); background: var(--card);
  border: 1px solid var(--line-2);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s;
}
.service:hover { transform: translateY(-5px); box-shadow: var(--shadow-1); border-color: var(--line); }
.service-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 16px; margin-bottom: 24px;
  background: var(--accent-soft); color: var(--accent);
  transition: background-color .3s, color .3s, transform .5s var(--ease-out);
}
.service-icon svg { width: 30px; height: 30px; }
.service:hover .service-icon { background: var(--accent-strong); color: #fff; transform: rotate(-6deg); }
.service h3 { font: 700 1.5rem/1.08 var(--f-display); letter-spacing: -.003em; color: var(--ink); margin-bottom: 10px; }
.service p { color: var(--ink-2); font-size: .98rem; }

.service-list { margin-top: clamp(40px, 5vw, 64px); padding-top: 32px; border-top: 1px solid var(--line); }
.service-list-title { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; }
.service-list ul { display: flex; flex-wrap: wrap; gap: 10px; }
.service-list li {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line-2);
  font-size: .95rem; font-weight: 500; color: var(--ink);
}
.service-list li span { font: italic 400 1rem/1 var(--f-serif); color: var(--accent); }

/* ==========================================================================
   EMPRESARIALES E INSTITUCIONALES (bento con fotos)
   ========================================================================== */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, clamp(220px, 22vw, 300px)); gap: 16px; }
.bento-card { position: relative; overflow: hidden; border-radius: var(--radius); background: #0b0807; isolation: isolate; }
.bento-lg { grid-column: span 2; grid-row: span 2; }
.bento-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.bento-card:hover img { transform: scale(1.06); }
.bento-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 38%, rgba(8, 6, 4, .55) 68%, rgba(8, 6, 4, .88) 100%);
}
.bento-card figcaption { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 22px; color: #fff; display: flex; flex-direction: column; gap: 4px; }
.bento-card figcaption strong { font: 700 1.4rem/1.05 var(--f-display); letter-spacing: -.003em; }
.bento-lg figcaption strong { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.bento-card figcaption > span:last-child { font-size: .88rem; color: rgba(255, 255, 255, .82); }
.bento-tag {
  align-self: flex-start; margin-bottom: 6px; padding: 5px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}

/* ==========================================================================
   GRANDES ESCENARIOS (galería horizontal)
   ========================================================================== */
.section-escenarios { background: var(--paper-2); padding-bottom: calc(var(--section-y) - 20px); }
.gallery-controls { display: flex; gap: 10px; justify-content: flex-end; }
.gallery {
  --g-h: clamp(280px, 32vw, 440px);
  --g-gap: 22px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2));
  cursor: grab;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery-track {
  display: flex; gap: var(--g-gap); width: max-content;
  padding: 6px max(var(--gutter), calc((100vw - var(--container)) / 2)) 26px;
}
/* Con JavaScript: cinta que avanza sola y sin fin; arrastrarla o deslizarla la acelera */
.gallery.is-marquee {
  --fade: clamp(18px, 4vw, 72px);
  overflow: hidden; scroll-snap-type: none; touch-action: pan-y;
  -webkit-user-select: none; user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
}
.gallery.is-marquee .gallery-track { padding-inline: 0; will-change: transform; }
.gallery.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery.is-dragging .g-card { pointer-events: none; }
.round-btn .i-play, .round-btn.is-paused .i-pause { display: none; }
.round-btn.is-paused .i-play { display: block; }
.g-card { flex: 0 0 auto; width: min-content; scroll-snap-align: start; }
.g-card img {
  height: var(--g-h); width: auto; max-width: none; border-radius: var(--radius);
  object-fit: cover; box-shadow: var(--shadow-1); background: #0b0807;
  transition: transform .8s var(--ease-out), filter .6s;
  -webkit-user-drag: none; user-select: none;
}
.g-card:hover img { transform: translateY(-6px); filter: saturate(1.12) contrast(1.03); }
.g-card figcaption { display: flex; flex-direction: column; gap: 3px; margin-top: 16px; padding-right: 8px; }
.g-card strong { font: 700 1.35rem/1.05 var(--f-display); color: var(--ink); }
.g-meta { font-size: .9rem; color: var(--ink-2); line-height: 1.4; }
.g-place { font-size: .82rem; color: var(--ink-3); }

/* ==========================================================================
   RECORRIDO (archivo con filtros)
   ========================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent;
  font-size: .93rem; font-weight: 600; color: var(--ink-2);
  transition: background-color .25s, color .25s, border-color .25s;
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.archive { border-top: 1px solid var(--line-strong); }
.row {
  display: grid; align-items: baseline;
  grid-template-columns: 170px minmax(0, 1fr) minmax(0, 300px) 110px;
  gap: 6px 28px; padding: 22px 12px; border-bottom: 1px solid var(--line);
  transition: background-color .3s, padding .4s var(--ease-out);
}
.row:hover { background: var(--accent-soft); padding-left: 20px; padding-right: 20px; }
.row.is-hidden, .row.is-extra { display: none; }
.archive-more { display: flex; justify-content: center; margin-top: 36px; }
.archive-more .btn svg { transform: rotate(90deg); }
.archive-more .btn[aria-expanded="true"] svg { transform: rotate(-90deg); }
.row.is-entering { animation: rowIn .5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 22ms); }
@keyframes rowIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.row-tag { font-size: .7rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); }
.row-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.row-main strong { font: 700 1.6rem/1.05 var(--f-display); letter-spacing: -.003em; color: var(--ink); }
.row-main > span { font-size: .93rem; color: var(--ink-2); }
.row-place { font-size: .93rem; color: var(--ink-2); }
.row-year { font: 600 1.35rem/1 var(--f-display); color: var(--accent-text); text-align: right; font-variant-numeric: tabular-nums; }
.row-more .row-main { flex-direction: row; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .9rem; font-weight: 500; color: var(--ink); }

/* ==========================================================================
   POR QUÉ FUNDARTE + EQUIPO
   ========================================================================== */
.section-porque { background: var(--paper-2); }
.porque-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.porque-head { position: sticky; top: calc(var(--nav-h) + 32px); }
.equipo { margin-top: 36px; padding: 26px 28px; border-radius: var(--radius); background: var(--card); border-left: 3px solid var(--accent); box-shadow: var(--shadow-1); }
.equipo-title { font: 700 1.3rem/1.15 var(--f-display); color: var(--ink); margin-bottom: 10px; }
.equipo p:not(.equipo-title) { color: var(--ink-2); font-size: .98rem; }
.reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.reason {
  padding: clamp(26px, 3vw, 38px); border-radius: var(--radius); background: var(--card); border: 1px solid var(--line-2);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.reason:hover { transform: translateY(-5px); box-shadow: var(--shadow-1); }
.reason-num { display: block; font: italic 400 3.2rem/1 var(--f-serif); color: var(--accent); margin-bottom: 26px; }
.reason h3 { font: 700 1.5rem/1.08 var(--f-display); color: var(--ink); margin-bottom: 10px; }
.reason p { color: var(--ink-2); font-size: .98rem; }
.reasons .reason:nth-child(2) { margin-top: 48px; }
.reasons .reason:nth-child(3) { margin-top: -48px; }

/* ==========================================================================
   ALIADOS
   ========================================================================== */
.section-aliados { padding-top: calc(var(--section-y) + 40px); }
.allies { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ally {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  min-height: 210px; padding: 34px 24px 26px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line-2); color: var(--ink);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), color .35s;
}
.ally:hover { transform: translateY(-5px); box-shadow: var(--shadow-1); }
.ally-logo { height: 64px; width: auto; max-width: 78%; object-fit: contain; opacity: .9; transition: opacity .3s, transform .5s var(--ease-out); }
.ally:hover .ally-logo, .ally:hover .ally-svg, .ally:hover .ally-wordmark { opacity: 1; transform: scale(1.04); }
.ally-svg, .ally-wordmark { transition: transform .5s var(--ease-out); }
/* Los logos vienen en negro; en modo oscuro se aclaran */
[data-theme="dark"] .ally-logo { filter: invert(1) sepia(.12) brightness(.96); }
.ally-logo-tall { height: 96px; }
.ally-logo-bnf { height: 74px; }
.ally-svg { width: 168px; max-width: 80%; height: auto; aspect-ratio: 165 / 48; }
.ally-wordmark { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.ally-wordmark b { font: 800 2.7rem/.9 var(--f-display); letter-spacing: .05em; }
.ally-wordmark small { font-size: .7rem; font-weight: 700; letter-spacing: .62em; margin-top: 6px; padding-left: .62em; }
.ally-name { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); text-align: center; }

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.section-contacto { background: var(--paper-2); }
.contacto-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-form {
  display: flex; flex-direction: column; gap: 18px;
  padding: clamp(24px, 3.5vw, 44px); border-radius: var(--radius-lg); background: var(--card);
  box-shadow: var(--shadow-1); border: 1px solid var(--line-2);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink); font-size: 1rem;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 4px; }
.form-note { font-size: .86rem; color: var(--ink-3); }
.form-note.is-sent { color: #1f8a4c; font-weight: 600; }
[data-theme="dark"] .form-note.is-sent { color: #5fd38f; }
.form-note.is-error { color: #c0392b; font-weight: 600; }
[data-theme="dark"] .form-note.is-error { color: #ff8a7a; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-info { display: flex; flex-direction: column; gap: 24px; }
.info-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.info-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-item dt { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.info-item dd { font-size: 1.02rem; color: var(--ink); }
.info-item dd a { font: 700 1.35rem/1.2 var(--f-display); letter-spacing: .005em; transition: color .25s; }
.info-item dd a:hover { color: var(--accent); }
.social-row { display: flex; gap: 10px; }
.social {
  width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); color: var(--ink);
  transition: background-color .25s, color .25s, border-color .25s, transform .4s var(--ease-out);
}
.social svg { width: 20px; height: 20px; }
.social:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; transform: translateY(-3px); }
.map { border-radius: var(--radius); overflow: hidden; height: 230px; border: 1px solid var(--line); background: var(--paper-3); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: var(--map-filter); }
.info-link { display: inline-flex; align-items: center; gap: 8px; }
.info-link svg { width: 18px; height: 18px; color: var(--accent); transition: transform .35s var(--ease-out); }
.info-link:hover svg { transform: translateX(4px); }

/* Autorización de tratamiento de datos (Ley 1581 de 2012) en los formularios */
.consent {
  display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start;
  font-size: .88rem; line-height: 1.5; color: var(--ink-2); cursor: pointer;
}
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.consent a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { color: var(--accent-strong); }

/* ==========================================================================
   PIE DE PÁGINA
   ========================================================================== */
.footer { background: var(--paper); border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 88px); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-bottom: 48px; }
.footer-logo { display: block; height: 30px; margin-bottom: 16px; }
.footer-brand p { color: var(--ink-2); max-width: 30ch; margin-bottom: 20px; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; align-content: start; }
.footer-nav a, .footer-contact a { color: var(--ink-2); font-size: .95rem; transition: color .25s; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--accent); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact p { color: var(--ink-3); font-size: .92rem; line-height: 1.5; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 22px; padding-bottom: 28px; }
.footer-bottom p { font-size: .82rem; color: var(--ink-3); }
.footer-credits { margin-top: 8px; font-size: .74rem !important; line-height: 1.6; }
.footer-credits a { text-decoration: underline; text-underline-offset: 2px; }
.footer-credits a:hover { color: var(--accent); }
.footer-credits strong { font-weight: 600; color: var(--ink-2); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 10px; }
.footer-legal a { font-size: .86rem; font-weight: 600; color: var(--ink-2); transition: color .25s; }
.footer-legal a:hover, .footer-legal a[aria-current="page"] { color: var(--accent-text); }

/* ==========================================================================
   PÁGINAS INTERNAS: PQRS y política de tratamiento de datos
   ========================================================================== */
.sub-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--header-bg); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.sub-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--nav-h); }
.sub-links { display: flex; align-items: center; gap: 22px; }
.sub-back { display: inline-flex; align-items: center; gap: 8px; font-size: .94rem; font-weight: 600; color: var(--ink-2); transition: color .25s; }
.sub-back svg { width: 18px; height: 18px; transition: transform .35s var(--ease-out); }
.sub-back:hover { color: var(--accent-text); }
.sub-back:hover svg { transform: translateX(-3px); }

.legal-hero { padding-block: clamp(56px, 8vw, 104px) clamp(36px, 4.5vw, 56px); }
.legal-title {
  font: 700 clamp(2.6rem, 6vw, 5rem)/.95 var(--f-display);
  letter-spacing: -.015em; color: var(--ink); max-width: 15ch; text-wrap: balance;
}
.legal-title em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--accent); font-size: 1.05em; line-height: .9; }
.legal-lead { margin-top: 24px; max-width: 62ch; font-size: 1.12rem; line-height: 1.65; color: var(--ink-2); }
.legal-meta { margin-top: 18px; font-size: .86rem; color: var(--ink-3); }

.legal { padding-bottom: var(--section-y); }
.legal-layout { display: grid; grid-template-columns: minmax(220px, 3fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.legal-toc {
  position: sticky; top: calc(var(--nav-h) + 24px);
  padding: 22px 24px; border-radius: var(--radius); background: var(--paper-2); border: 1px solid var(--line-2);
}
.legal-toc-title { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.legal-toc ol { display: grid; gap: 9px; counter-reset: toc; }
.legal-toc li { counter-increment: toc; display: grid; grid-template-columns: 24px minmax(0, 1fr); font-size: .92rem; line-height: 1.35; }
.legal-toc li::before { content: counter(toc); font: 700 .95rem/1.35 var(--f-display); color: var(--accent-text); }
.legal-toc a { color: var(--ink-2); transition: color .25s; }
.legal-toc a:hover { color: var(--accent-text); }

.legal-body { max-width: 74ch; min-width: 0; }
.legal-body > section { padding-bottom: 36px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.legal-body > section + section { border-top: 1px solid var(--line); padding-top: 36px; }
.legal-body h2 {
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px;
  font: 700 clamp(1.6rem, 2.5vw, 2.05rem)/1.1 var(--f-display); letter-spacing: -.005em;
}
.legal-num { flex-shrink: 0; min-width: 1.5em; font: 700 .58em/1 var(--f-display); color: var(--accent-text); font-variant-numeric: tabular-nums; }
.legal-body p, .legal-body li { font-size: 1.02rem; line-height: 1.7; color: var(--ink-2); }
.legal-body p + p, .legal-body ul + p, .legal-body dl + p { margin-top: 14px; }
.legal-body p + ul { margin-top: 12px; }
.legal-body ul { display: grid; gap: 10px; }
.legal-body ul li { position: relative; padding-left: 24px; }
.legal-body ul li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 10px; height: 2px; border-radius: 2px; background: var(--accent); }
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-body a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.legal-body a:hover { color: var(--accent-strong); }
.legal-facts {
  display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 26px; margin-top: 16px;
  padding: 22px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line-2);
}
.legal-facts dt { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding-top: 4px; }
.legal-facts dd { color: var(--ink); overflow-wrap: anywhere; }
.legal-plazos { display: grid; gap: 12px; margin-top: 16px; }
.legal-plazos > div { padding: 18px 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line-2); }
.legal-plazos dt { font: 700 1.15rem/1.2 var(--f-display); color: var(--ink); margin-bottom: 4px; }
.legal-plazos dd { font-size: .98rem; line-height: 1.6; color: var(--ink-2); }
.legal-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 8px; padding: 26px 28px; border-radius: var(--radius-lg); background: var(--paper-2); border: 1px solid var(--line-2);
}
.legal-cta p { font: 700 1.4rem/1.15 var(--f-display); color: var(--ink); }
.legal-body .legal-cta a { color: var(--on-accent); text-decoration: none; }
/* Lo que Fundarte debe completar antes de publicar (NIT, fecha) */
mark.pendiente {
  padding: 1px 6px; border-radius: 6px; border: 1px dashed rgba(194, 65, 12, .55);
  background: rgba(232, 78, 14, .12); color: var(--accent-text); font-weight: 600;
}

/* PQRS */
.pqrs { padding-bottom: var(--section-y); }
.pqrs-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.field > span small { font-size: .78rem; font-weight: 500; color: var(--ink-3); }
.choice-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice-group legend { padding: 0; margin-bottom: 10px; font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; display: inline-flex; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--paper);
  font-size: .94rem; font-weight: 600; color: var(--ink-2);
  transition: background-color .25s, border-color .25s, color .25s;
}
.choice input:hover + span { border-color: var(--accent); color: var(--ink); }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.choice-help { margin-top: 10px; font-size: .88rem; color: var(--ink-3); }
.radicado { padding: 22px 24px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid rgba(232, 78, 14, .28); }
.radicado:focus { outline: none; }
.radicado-kicker { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.radicado-num { margin-top: 6px; font: 800 clamp(1.8rem, 4vw, 2.5rem)/1.05 var(--f-display); letter-spacing: .02em; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.radicado-meta { margin-top: 4px; font-size: .92rem; color: var(--ink-2); }
.radicado-text { margin-top: 10px; font-size: .92rem; line-height: 1.55; color: var(--ink-2); }
.radicado-text a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.pqrs-aside { display: grid; gap: 16px; }
.pqrs-card { padding: 24px; border-radius: var(--radius); background: var(--paper-2); border: 1px solid var(--line-2); }
.pqrs-card > p { font-size: .96rem; line-height: 1.6; color: var(--ink-2); }
.pqrs-card-title { margin-bottom: 14px; font: 700 1.4rem/1.1 var(--f-display); letter-spacing: -.003em; }
.pqrs-steps { display: grid; gap: 14px; counter-reset: paso; }
.pqrs-steps li { counter-increment: paso; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; }
.pqrs-steps li::before {
  content: counter(paso); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font: 700 1rem/1 var(--f-display);
}
.pqrs-steps p { font-size: .95rem; line-height: 1.55; color: var(--ink-2); padding-top: 4px; }
.pqrs-steps strong { color: var(--ink); }
.plazos > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.plazos > div:first-child { border-top: 1px solid var(--line); }
.plazos dt { font-size: .92rem; line-height: 1.4; color: var(--ink-2); }
.plazos dd { font: 700 1.05rem/1.2 var(--f-display); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pqrs-card .info-list { border-top: 1px solid var(--line); }
.pqrs-card .info-item { padding: 12px 0; }
.pqrs-card .info-item dd a { font-size: 1.15rem; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 150;
  width: 58px; height: 58px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #1FAF55; color: #fff; box-shadow: 0 14px 30px -10px rgba(16, 90, 45, .6);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), opacity .3s;
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 18px 36px -12px rgba(16, 90, 45, .7); }
body.menu-is-open .wa-float { opacity: 0; pointer-events: none; }

/* ==========================================================================
   APARICIÓN AL HACER SCROLL (solo cuando el JS está activo)
   ========================================================================== */
.reveal-on .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal-on .reveal.is-in { opacity: 1; transform: none; }
/* Defensa: un elemento con reveal y data-split nunca queda invisible */
.reveal[data-split] { opacity: 1 !important; transform: none !important; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1099px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: inline-block; }
  .nav-tools { margin-left: auto; }
}
@media (max-width: 1023px) {
  .announce-long { display: none; }
  /* Tableta y celular: título → foto con el boleto del próximo evento → texto y botones */
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; row-gap: 0; }
  .hero-copy { display: contents; }
  .eyebrow { order: 1; align-self: flex-start; }
  .hero-title { order: 2; align-self: flex-start; max-width: 12ch; }
  .hero-stage { order: 3; margin-top: 28px; padding-bottom: 0; }
  .hero-lead { order: 4; margin-top: 30px; }
  .hero-actions { order: 5; margin-top: 24px; }
  .hero-stats { order: 6; margin-top: 32px; }
  .stage-frame { aspect-ratio: 16 / 9; }
  .hero-ticket { position: relative; left: auto; bottom: auto; width: auto; max-width: 520px; margin: -54px 16px 0 auto; }
  .section-head-split { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .gallery-controls { justify-content: flex-start; }
  .event { grid-template-columns: minmax(0, 1fr); }
  .event-poster img { aspect-ratio: 16 / 11; object-position: 50% 30%; }
  .somos-grid { grid-template-columns: minmax(0, 1fr); }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: clamp(200px, 34vw, 280px); }
  .bento-lg { grid-column: span 2; grid-row: span 2; }
  .row { grid-template-columns: 150px minmax(0, 1fr) 90px; }
  .row-place { grid-column: 2; grid-row: 2; }
  .row-year { grid-column: 3; grid-row: 1; }
  .porque-grid { grid-template-columns: minmax(0, 1fr); }
  .porque-head { position: static; }
  .reasons .reason:nth-child(2), .reasons .reason:nth-child(3) { margin-top: 0; }
  .contacto-grid { grid-template-columns: minmax(0, 1fr); }
  .legal-layout, .pqrs-layout { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 767px) {
  :root { --announce-h: 36px; --nav-h: 64px; }
  .announce { font-size: .8rem; }
  .announce-label, .announce-long { display: none; }
  .announce-inner { gap: 10px; }
  .brand { height: 24px; }

  .cap-long { display: none; }
  .eyebrow { font-size: .7rem; letter-spacing: .1em; margin-bottom: 16px; }
  .hero-title { font-size: clamp(2.9rem, 13vw, 4.2rem); }
  .hero-stage { margin-top: 24px; }
  .hero-lead { font-size: 1.02rem; margin-top: 28px; }
  .hero-actions { margin-top: 22px; }
  .hero-stats { margin-top: 30px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .stage-frame { aspect-ratio: 4 / 3; border-radius: 22px; }
  .stage-frame figcaption { font-size: .7rem; top: 12px; left: 12px; padding: 7px 12px; gap: 7px; }
  .stage-nav { top: 6px; left: 12px; right: 12px; }
  .stage-toggle { top: 28px; right: 12px; width: 32px; height: 32px; }
  .stage-toggle svg { width: 13px; height: 13px; }
  .stage-frame.has-nav figcaption { top: 28px; max-width: calc(100% - 24px - 40px); }
  .hero-ticket { margin: -40px 10px 0; max-width: none; }
  .ticket { --stub: 78px; grid-template-columns: 74px minmax(0, 1fr) var(--stub); min-height: 120px; }
  .ticket-body { padding: 13px 14px; }
  .ticket-title { font-size: 1.25rem; }
  .ticket-meta { font-size: .78rem; }
  .ticket-day { font-size: 2.1rem; }
  .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat { padding-right: 12px; margin-right: 12px; }
  .stat dd { font-size: 2rem; }
  .stat dt { font-size: .72rem; line-height: 1.3; }

  .event { border-radius: 24px; }
  .countdown { gap: 8px; }
  .cd-cell { padding: 12px 4px 10px; border-radius: 14px; }
  .event-actions .btn { flex: 1 1 auto; }

  .somos-media { aspect-ratio: 4 / 3; border-radius: 22px; }
  .somos-badge { position: relative; left: auto; bottom: auto; max-width: none; margin: -40px 14px 0; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .service { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 16px; padding: 20px; align-items: start; }
  .service-icon { grid-row: span 2; width: 52px; height: 52px; margin-bottom: 0; border-radius: 14px; }
  .service h3 { font-size: 1.3rem; margin-bottom: 4px; }
  .service p { font-size: .94rem; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: auto; gap: 10px; }
  .bento-card { aspect-ratio: 4 / 5; border-radius: 16px; }
  .bento-lg { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; }
  .bento-card figcaption { padding: 14px; }
  .bento-card figcaption strong { font-size: 1.06rem; }
  .bento-lg figcaption strong { font-size: 1.5rem; }
  .bento-card:not(.bento-lg) .bento-tag { display: none; }
  .bento-card figcaption > span:last-child { font-size: .78rem; }
  .gallery { --g-gap: 14px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); padding-bottom: 4px; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: 0 0 auto; }
  .reason { padding: 22px 22px 24px; }
  .reason-num { font-size: 2.4rem; margin-bottom: 14px; }
  .reason h3 { font-size: 1.32rem; }
  .footer-bottom { padding-bottom: 92px; }
  .row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 18px 4px; }
  .row:hover { padding-left: 10px; padding-right: 10px; }
  .row-tag { grid-column: 1 / -1; grid-row: 1; }
  .row-main { grid-column: 1; grid-row: 2; }
  .row-year { grid-column: 2; grid-row: 2; align-self: start; font-size: 1.15rem; }
  .row-place { grid-column: 1 / -1; grid-row: 3; }
  .row-main strong { font-size: 1.4rem; }
  .reasons { grid-template-columns: minmax(0, 1fr); }
  .allies { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ally { min-height: 170px; padding: 26px 16px 20px; gap: 14px; }
  .ally-logo { height: 46px; }
  .ally-logo-tall { height: 62px; }
  .ally-wordmark b { font-size: 2.1rem; }
  .ally-name { font-size: .68rem; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-brand { grid-column: auto; }
  .wa-float { width: 54px; height: 54px; right: 14px; bottom: 14px; }
  .sub-nav { height: var(--nav-h); }
  .sub-cta { display: none; }
  .legal-facts { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 18px 20px; }
  .legal-facts dd { margin-bottom: 10px; }
  .legal-facts dd:last-child { margin-bottom: 0; }
  .legal-body h2 { gap: 10px; }
  .legal-cta { padding: 22px; }
  .choice span { min-height: 42px; padding: 0 15px; font-size: .9rem; }
  .plazos > div { flex-direction: column; gap: 2px; }
}
@media (max-width: 400px) {
  .announce-cta { font-size: 0; gap: 0; }
  .announce-cta svg { width: 18px; height: 18px; }
  .ticket-meta { display: none; }
}

/* Movimiento reducido: se apagan los efectos de fondo y lo que se mueve va más
   despacio (las fotos del inicio cambian con un fundido, sin acercamiento) */
@media (prefers-reduced-motion: reduce) {
  .announce-live::after { animation: none; }
  .lineup-track { animation-duration: 140s; }
  .stage-frame { animation-duration: .8s; }
  .stage-slide.is-first { animation: stageImg .8s var(--ease-out) var(--intro, 0s) both; }
  .stage-slide.is-zoom { animation: none; }
  /* Bienvenida: el logo aparece con un fundido y la cortina se desvanece en vez de subir */
  :root:has(.splash) { --intro: 1.7s; }
  .splash { animation: splashFade .5s ease 1.6s forwards, splashSafety .01s 4.5s forwards; }
  .splash-inner { animation: none; }
  .splash-logo { transform: none; filter: none; animation: splashFadeIn .7s ease .1s forwards; }
  .splash-line { transform: none; opacity: 0; animation: splashFadeIn .6s ease .45s forwards; }
  .splash-tag { letter-spacing: .32em; animation: splashFadeIn .6s ease .6s forwards; }
}
