/* Free Connection Festival
   Sistema: "emblema" (negro y amarillo del logo) en todo el sitio;
   "interplanetario" (key visual FC27) en las páginas del festival en curso. */

:root,
[data-theme="emblema"] {
  --bg: #0b0b0b; --bg-2: #151515; --fg: #f5f3ea; --muted: #a3a097; --line: #2c2c2a;
  --accent: #ffd400; --accent-2: #ff4d2e; --on-accent: #0b0b0b; --ok: #3ddc84;
  --font-display: "Anton", Impact, sans-serif; --font-body: "Space Mono", ui-monospace, monospace;
  --display-case: uppercase; --display-weight: 400; --tracking: .01em;
  --radius: 0px; --radius-btn: 0px;
}
[data-theme="interplanetario"] {
  --bg: #062029; --bg-2: #0b2c37; --fg: #eafaf5; --muted: #9cc0bb; --line: #174451;
  --accent: #7cf7c3; --accent-2: #ff8a3d; --on-accent: #062029; --ok: #7cf7c3;
  --font-display: "Unbounded", system-ui, sans-serif; --font-body: "DM Sans", system-ui, sans-serif;
  --display-case: uppercase; --display-weight: 800; --tracking: -.02em;
  --radius: 18px; --radius-btn: 999px;
}

* { box-sizing: border-box; }
/* Cursores de la marca: selector, texto, seleccionar (después, para ganarle al texto dentro de links) y pensando */
html { cursor: url(../img/cursor/selector.svg) 5 4, auto; }
p, h1, h2, h3, h4, li, dd, td, th, blockquote, figcaption, textarea,
input:not(:is([type="checkbox"], [type="radio"], [type="submit"], [type="button"], [type="file"], [type="range"])) { cursor: url(../img/cursor/texto.svg) 20 20, text; }
a, a *, button, button *, label, select, summary, [role="button"],
input:is([type="checkbox"], [type="radio"], [type="submit"], [type="button"], [type="file"], [type="range"]) { cursor: url(../img/cursor/seleccionar.svg) 20 20, pointer; }
html:is(.is-loading, .is-leaving), html:is(.is-loading, .is-leaving) * { cursor: url(../img/cursor/pensando.svg) 4 3, progress !important; }

/* Loader: el logo gira como un vinilo a 33⅓ rpm mientras la página carga de verdad (script del <head> y main.js) */
.loader { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 22px; background: var(--bg); opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s; }
html:is(.is-loading, .is-leaving) .loader { opacity: 1; visibility: visible; transition: none; animation: loader-in .35s .2s both; }
.loader-disc { position: relative; width: min(42vw, 180px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 5px #000, 0 0 0 6px var(--line), 0 24px 70px #000; }
.loader-disc img { width: 100%; height: 100%; animation: spin 1.8s linear infinite; }
.loader-disc::before, .loader-disc::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 50%; }
.loader-disc::before { background: repeating-radial-gradient(circle, transparent 0 3px, rgb(255 255 255 / .05) 3px 4px); }
.loader-disc::after { background: conic-gradient(from 20deg, transparent 0 15%, rgb(255 255 255 / .16) 20%, transparent 26% 64%, rgb(255 255 255 / .1) 70%, transparent 76%); }
.loader-wave { width: 160px; mask-image: linear-gradient(90deg, transparent, #000 25% 75%, transparent); }
.loader-wave path { fill: none; stroke: var(--accent); stroke-width: 2.5; animation: scope .6s linear infinite; }
.loader p { margin: 0; font-size: .72rem; letter-spacing: .4em; text-transform: uppercase; color: var(--muted); }
@keyframes spin { to { transform: rotate(1turn); } }
@keyframes scope { to { transform: translateX(-50px); } }
@keyframes loader-in { from { opacity: 0; } }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
body.nav-open { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
figure { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-case); letter-spacing: var(--tracking); line-height: 1; margin: 0 0 .5em; text-wrap: balance; overflow-wrap: normal; }
h1 { font-size: clamp(2.6rem, 9vw, 7rem); }
h2 { font-size: clamp(1.8rem, 5vw, 3.4rem); }
h3 { font-size: 1.3rem; line-height: 1.15; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(56px, 9vw, 112px) 0; border-top: 1px solid var(--line); }
.kicker { display: inline-block; font-family: var(--font-body); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.muted { color: var(--muted); }
.small { font-size: .8rem; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 60ch; }
.lead a { color: var(--accent); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: .5em 1em; }
.notice { padding: 12px 16px; background: var(--bg-2); border-left: 4px solid var(--accent); border-radius: var(--radius); }
.notice.error { border-color: var(--accent-2); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .9em 1.4em; background: var(--accent); color: var(--on-accent); border: 2px solid var(--accent); border-radius: var(--radius-btn); font: 700 .82rem/1 var(--font-body); text-decoration: none; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; transition: transform .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--fg); border-color: currentColor; }
.btn-sm { padding: .6em 1em; font-size: .72rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }

/* Header + navegación */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; font-family: var(--font-display); font-weight: var(--display-weight); text-transform: uppercase; line-height: 1; }
.brand img { width: 42px; height: 42px; border-radius: 50%; }
.brand small { display: block; margin-top: 3px; font: 400 .58rem var(--font-body); letter-spacing: .3em; color: var(--accent); }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.nav a:hover, .nav a[aria-current="page"], .nav .active > a { color: var(--accent); }
.nav-toggle { background: none; border: 1px solid var(--line); color: var(--fg); padding: .55em .9em; font: inherit; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; border-radius: var(--radius-btn); cursor: pointer; }

@media (min-width: 1061px) {
  .nav-toggle { display: none; }
  .nav > ul { display: flex; gap: 22px; }
  .nav li { position: relative; }
  .nav > ul > li > a { display: block; padding: 24px 0; }
  .nav li ul { display: none; position: absolute; top: 100%; left: -18px; min-width: 210px; padding: 12px 18px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); }
  .nav li:hover > ul, .nav li:focus-within > ul { display: block; }
  .nav li ul a { display: block; padding: 6px 0; }
}
@media (max-width: 1060px) {
  .nav { display: none; position: fixed; inset: 69px 0 0; overflow: auto; padding: 16px; background: var(--bg); }
  .nav-open .nav { display: block; }
  .nav > ul > li { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav > ul > li > a { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.6rem; }
  .nav li ul { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; }
  .nav li ul a { color: var(--muted); }
}
@media (max-width: 420px) { .header-in > .btn-sm { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(56px, 10vw, 140px) 0 clamp(48px, 8vw, 96px); }
.hero::before { content: ""; position: absolute; inset: -20%; z-index: -2; background: radial-gradient(circle at 80% 30%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 45%), radial-gradient(circle at 10% 90%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 40%); filter: blur(24px); animation: drift 18s ease-in-out infinite alternate; }
h1 .accent, h2 .accent { color: var(--accent); }
/* Película del inicio: main.js le da altura (is-live) y avanza el video con el scroll */
.film.is-live { height: 520vh; }
.film-stage { position: sticky; top: 0; display: grid; align-items: center; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; }
.film-stage video { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; }
.film-stage::after { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 85%, transparent), color-mix(in srgb, var(--bg) 40%, transparent) 60%, transparent), linear-gradient(0deg, var(--bg), transparent 30%); }
.film-stage::before { content: ""; position: absolute; inset: -50%; z-index: -1; opacity: .09; pointer-events: none; animation: grain .9s steps(5) infinite;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.film-step { grid-area: 1 / 1; opacity: 0; transform: translateY(28px); pointer-events: none; transition: opacity .7s, transform .7s; }
.film-step.is-on { opacity: 1; transform: none; pointer-events: auto; }
.film-step h2 { font-size: clamp(2.6rem, 9vw, 6.5rem); max-width: 12ch; }
@media (max-height: 720px) { .film .lead, .film .countdown { display: none; } }
@keyframes grain { 20% { transform: translate(-6%, 4%); } 40% { transform: translate(5%, -3%); } 60% { transform: translate(-3%, -6%); } 80% { transform: translate(4%, 5%); } }
/* Reproductor SoundCloud (main.js): barra naranja fija abajo, de lado a lado */
body:has(.player) { --player-h: 60px; padding-bottom: var(--player-h); }
.player { position: fixed; inset: auto 0 0; z-index: 60; display: flex; align-items: center; gap: 8px; height: var(--player-h); padding: 0 16px; background: #ff5500; color: #0b0b0b; font: 700 .78rem/1.2 var(--font-body); box-shadow: 0 -10px 30px rgb(0 0 0 / .35); }
.player :focus-visible { outline-color: #0b0b0b; }
.player-btn { display: grid; flex: none; place-items: center; width: 38px; height: 38px; padding: 0; background: none; color: inherit; border: 0; border-radius: 50%; }
.player-btn svg { width: 20px; height: 20px; fill: currentColor; }
.player-play { width: 44px; height: 44px; background: #0b0b0b; color: #ff5500; }
.player .i-pause, .player.is-playing .i-play { display: none; }
.player.is-playing .i-pause { display: block; }
.player-info { display: grid; flex: 1; gap: 7px; min-width: 0; margin-inline: 8px; }
.player-title { overflow: hidden; color: inherit; text-decoration: none; text-overflow: ellipsis; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.player-bar { height: 5px; background: rgb(0 0 0 / .25); cursor: url(../img/cursor/seleccionar.svg) 20 20, pointer; }
.player-bar i { display: block; width: 0; height: 100%; background: #0b0b0b; }
.player-list { max-width: min(28%, 220px); padding: 8px; background: #0b0b0b; color: #ff5500; border: 0; font: inherit; text-transform: capitalize; }
.player-sc { flex: none; color: inherit; text-decoration: none; }
.player-frame { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
@media (max-width: 640px) { .player { gap: 2px; padding: 0 8px; } .player-sc, [data-sc="prev"] { display: none; } .player-list { max-width: 30%; } }

/* Boletín, la boleta de la familia (boletin.js) */
.boletin { position: fixed; right: 16px; bottom: calc(var(--player-h, 0px) + 12px); z-index: 61; }
.boletin-btn { display: block; width: 84px; padding: 0; background: none; border: 0; filter: drop-shadow(0 8px 14px rgb(0 0 0 / .55)); }
.boletin-btn svg { width: 100%; overflow: visible; transform-origin: 50% 100%; animation: boletin-sway 5s ease-in-out infinite; }
.b-lids { transform-box: fill-box; transform-origin: top; animation: boletin-blink 7s infinite; }
.b-arm { transform-box: fill-box; transform-origin: 0 100%; }
.b-mouth-open { opacity: 0; }
.b-note { animation: boletin-note 4.5s ease-in infinite; }
.boletin.is-talking .b-arm { animation: boletin-wave .35s ease-in-out infinite alternate; }
.boletin.is-talking .b-mouth { opacity: 0; }
.boletin.is-talking .b-mouth-open { animation: boletin-talk .22s steps(1) infinite; }
.boletin-bubble { position: absolute; right: 64px; bottom: calc(100% - 22px); width: max-content; max-width: min(270px, calc(100vw - 100px)); margin: 0; padding: 12px 14px; background: #f5f3ea; color: #0b0b0b; border: 2px solid #0b0b0b; border-radius: 16px 16px 4px 16px; box-shadow: 4px 4px 0 #0b0b0b; font-size: .8rem; line-height: 1.45; cursor: url(../img/cursor/seleccionar.svg) 20 20, pointer; animation: boletin-pop .35s cubic-bezier(.3, 1.6, .5, 1); }
.boletin-panel { position: absolute; right: 0; bottom: calc(100% + 10px); width: min(340px, calc(100vw - 32px)); max-height: min(72vh, 560px); grid-template-rows: auto minmax(0, 1fr) auto auto; background: var(--bg-2); color: var(--fg); border: 2px solid var(--accent); box-shadow: 6px 6px 0 #000; animation: boletin-pop .3s ease-out; }
.boletin-panel:not([hidden]) { display: grid; }
.boletin-head { display: flex; align-items: baseline; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.boletin-head b { font: var(--display-weight) 1.2rem var(--font-display); color: var(--accent); text-transform: uppercase; }
.boletin-head span { flex: 1; font-size: .66rem; color: var(--muted); }
.boletin-head button { padding: 0; background: none; color: var(--fg); border: 0; font-size: 1rem; }
.boletin-log { display: grid; align-content: start; gap: 8px; overflow-y: auto; padding: 14px; }
.boletin-log p { max-width: 88%; margin: 0; padding: 9px 12px; font-size: .8rem; line-height: 1.45; border-radius: 12px; }
.boletin-log .bot { background: #f5f3ea; color: #0b0b0b; border-bottom-left-radius: 2px; }
.boletin-log .me { justify-self: end; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 2px; }
.boletin-log a { color: inherit; font-weight: 700; }
.boletin-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 12px; }
.boletin-chips button { padding: 6px 10px; background: none; color: var(--fg); border: 1px solid var(--line); border-radius: 999px; font: .72rem var(--font-body); }
.boletin-chips button:hover { color: var(--accent); border-color: var(--accent); }
.boletin-chips .ceo { color: #ff5500; border-color: #ff5500; }
.boletin-mute { padding: 10px 14px; background: none; color: var(--muted); border: 0; border-top: 1px solid var(--line); font: .7rem var(--font-body); text-align: left; }
@keyframes boletin-sway { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(4deg) translateY(-5px); } }
@keyframes boletin-blink { 0%, 90%, 100% { transform: none; } 93% { transform: scaleY(2); } }
@keyframes boletin-wave { to { transform: rotate(-30deg); } }
@keyframes boletin-talk { 50% { opacity: 1; } }
@keyframes boletin-note { 0% { opacity: 0; transform: translateY(8px); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(8px, -16px); } }
@keyframes boletin-pop { from { opacity: 0; transform: translateY(8px) scale(.92); } }
@media (max-width: 640px) { .boletin { right: 10px; } .boletin-btn { width: 62px; } .boletin-bubble { right: 48px; } }

/* Header de evento: el flyer completo es la pieza principal; su propia imagen desenfocada pinta el fondo */
.event-hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(24px, 4vw, 64px) 0 clamp(32px, 5vw, 72px); }
.event-ambient { position: absolute; inset: -80px; z-index: -2; width: calc(100% + 160px); height: calc(100% + 160px); max-width: none; object-fit: cover; filter: blur(70px) saturate(1.35); opacity: .6; }
.event-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 30% 40%, transparent, color-mix(in srgb, var(--bg) 55%, transparent) 70%), linear-gradient(180deg, transparent 55%, var(--bg)); }
.event-hero > .wrap { display: grid; gap: clamp(24px, 4vw, 64px); grid-template-columns: minmax(0, 1.2fr) minmax(320px, .85fr); align-items: center; }
.poster { position: relative; justify-self: center; display: block; max-width: 100%; }
.poster img { width: auto; max-width: 100%; max-height: min(calc(100svh - var(--player-h, 0px) - 150px), 980px); object-fit: contain; border-radius: var(--radius); box-shadow: 0 40px 120px rgb(0 0 0 / .6), 0 0 0 1px rgb(255 255 255 / .06); transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.poster:hover img { transform: scale(1.015); }
.poster-zoom { position: absolute; right: 12px; bottom: 12px; padding: 6px 10px; background: rgb(0 0 0 / .65); color: #fff; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; border-radius: 999px; opacity: 0; transition: opacity .3s; }
.poster:hover .poster-zoom, .poster:focus-visible .poster-zoom { opacity: 1; }
.event-card { padding: clamp(20px, 3vw, 36px); background: color-mix(in srgb, var(--bg) 72%, transparent); border: 1px solid color-mix(in srgb, var(--fg) 14%, transparent); border-radius: var(--radius); box-shadow: 0 30px 80px rgb(0 0 0 / .35); backdrop-filter: blur(18px) saturate(1.2); }
.event-card .event-title { font-size: clamp(1.9rem, 3.6vw, 3.2rem); }
.event-card .info-list { padding-top: 1.2rem; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .event-hero > .wrap { grid-template-columns: 1fr; } .poster img { width: 100%; max-height: none; } }

/* Únete: las tarjetas son la elección; «Crew» muestra campos extra */
.join { gap: 32px; max-width: 920px; }
.join fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.join legend { display: grid; gap: 4px; margin-bottom: 14px; font: var(--display-weight) clamp(1.4rem, 3vw, 2rem)/1.1 var(--font-display); text-transform: var(--display-case); }
.join legend .kicker { margin: 0; }
.join-plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.join-plans legend { grid-column: 1 / -1; }
.join .join-plan { display: block; font-size: 1rem; text-transform: none; letter-spacing: 0; cursor: url(../img/cursor/seleccionar.svg) 20 20, pointer; }
.join-plan input { position: absolute; opacity: 0; }
.join-plan .card { height: 100%; transition: transform .2s, border-color .2s, box-shadow .2s; }
.join-plan .card .h3 { font: var(--display-weight) 1.6rem/1 var(--font-display); text-transform: var(--display-case); }
.join-plan:hover .card { transform: translateY(-3px); border-color: var(--accent); }
.join-plan input:checked + .card { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), 8px 8px 0 #000; }
.join-plan input:focus-visible + .card { outline: 3px solid var(--accent-2); outline-offset: 3px; }
.join-pick { margin-top: auto; padding-top: .8rem; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.join-pick::before { content: "○ "; }
.join-plan input:checked + .card .join-pick { color: var(--accent); }
.join-plan input:checked + .card .join-pick::before { content: "● "; }
.join .crew-only { display: none; }
.join:has([value="Crew"]:checked) label.crew-only { display: grid; }
.join:has([value="Crew"]:checked) .join-areas { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.join-areas legend { width: 100%; font-size: 1.1rem; }
.join-done { max-width: 760px; padding: clamp(24px, 5vw, 48px); background: var(--bg-2); border: 2px solid var(--accent); box-shadow: 8px 8px 0 #000; }
.sc-account { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 16px; }
.sc-account img { border-radius: 50%; }
.admin-section { margin-top: 40px; }
.admin-section .actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.sc-test iframe { width: 100%; height: 166px; margin-top: 14px; border: 0; }

/* Pelea y fondo del reproductor (pelea.js): la barra crece y la pelea ocurre sobre los controles */
.player { transition: height .4s cubic-bezier(.2, .8, .2, 1); }
.player-fx { position: absolute; inset: 0; width: 100%; height: 100%; }
.player > :not(.player-fx, .player-frame, .fight-pad) { position: relative; z-index: 1; }
body:has(.player.is-game) { --player-h: 250px; }
.player.is-game { align-items: flex-end; padding-bottom: 9px; }
.player-fight { font-size: 1.15rem; }
.player-fight[aria-pressed="true"] { background: #0b0b0b; }
.fight-pad { display: none; }
@media (pointer: coarse) {
  body:has(.player.is-game) { --player-h: 300px; }
  .player.is-game .fight-pad { position: absolute; inset: auto 10px 64px; z-index: 2; display: flex; justify-content: space-between; height: 54px; align-items: center; }
  .fight-pad div { display: flex; gap: 8px; }
  .fight-pad button { width: 48px; height: 48px; padding: 0; background: rgb(245 243 234 / .6); border: 2px solid #0b0b0b; border-radius: 50%; font-size: 1.15rem; touch-action: none; user-select: none; }
}

/* Fondo de ondas (main.js) */
main:focus { outline: none; }
.waves { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.grid .photo { transition: transform .25s ease-out; }
.date-big { font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.1; margin: .2em 0; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 1.2rem 0; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; }
.hero-meta span::before { content: "✦ "; color: var(--accent); }
.page-hero { padding: clamp(40px, 7vw, 96px) 0 clamp(32px, 5vw, 56px); }
.page-hero h1 { font-size: clamp(2.2rem, 7vw, 5rem); }
.page-hero .event-title { font-size: clamp(1.7rem, 4vw, 3.2rem); }
.crumbs { margin-bottom: 1.2rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
@keyframes drift { to { transform: translate3d(-4%, 3%, 0) scale(1.08); } }

/* Cuenta regresiva */
.countdown { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2rem; }
.countdown div { min-width: 76px; padding: 12px 14px; text-align: center; background: color-mix(in srgb, var(--bg-2) 85%, transparent); border: 1px solid var(--line); border-radius: var(--radius); }
.countdown b { display: block; font: var(--display-weight) 2rem/1 var(--font-display); color: var(--accent); }
.countdown span { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

/* Marquesina */
.marquee { overflow: hidden; white-space: nowrap; padding: 14px 0; background: var(--accent); color: var(--on-accent); }
.marquee div { display: inline-block; animation: marquee 32s linear infinite; font: var(--display-weight) 1.3rem var(--font-display); text-transform: uppercase; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Grillas y tarjetas */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.grid-2, .split { display: grid; gap: clamp(24px, 5vw, 64px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); align-items: center; }
.split-tickets { display: grid; gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (min-width: 900px) { .split-tickets { grid-template-columns: 1fr 1.6fr; } }
.card { display: flex; flex-direction: column; gap: .6rem; padding: 24px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
a.card:hover { border-color: var(--accent); }
.card p { margin: 0; color: var(--muted); }
.card .num { font: var(--display-weight) .95rem var(--font-display); color: var(--accent); }
.card .more { margin-top: auto; padding-top: .6rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.card ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.price { font: var(--display-weight) 2rem/1 var(--font-display); }
.tag { display: inline-block; margin: 0 6px 6px 0; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stats div { padding: 28px 20px; background: var(--bg); }
.stats b { display: block; font: var(--display-weight) clamp(2.4rem, 6vw, 4rem)/1 var(--font-display); color: var(--accent); }
.stats span { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; }

/* Fotos */
.photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); background: var(--bg-2); }
.photo.tall { aspect-ratio: 3/4; }
.photo.wide { aspect-ratio: 16/9; }
.gallery { columns: 3 260px; column-gap: 12px; }
.gallery a { display: block; margin-bottom: 12px; break-inside: avoid; }
.gallery .photo { aspect-ratio: auto; transition: opacity .2s; }
.gallery a:hover .photo { opacity: .85; }
.video-frame { justify-self: center; width: min(100%, 360px); aspect-ratio: 9/16; object-fit: cover; background: #000; border: 1px solid var(--line); border-radius: calc(var(--radius) + 14px); }

/* Tarjetas de evento */
.event-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.ecard { display: flex; flex-direction: column; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: transform .2s, border-color .2s; }
.ecard:hover { transform: translateY(-4px); border-color: var(--accent); }
.ecard-img { position: relative; aspect-ratio: 4/5; overflow: hidden; background: #000; }
.ecard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ecard:hover .ecard-img img { transform: scale(1.04); }
.ecard.past .ecard-img img { filter: grayscale(.35); }
.date-badge { position: absolute; left: 12px; top: 12px; padding: 6px 10px; text-align: center; background: var(--accent); color: var(--on-accent); font: 700 .68rem/1.1 var(--font-body); text-transform: uppercase; letter-spacing: .08em; border-radius: var(--radius); }
.date-badge b { display: block; font: var(--display-weight) 1.6rem/1 var(--font-display); }
.ecard-body { display: flex; flex: 1; flex-direction: column; gap: .4rem; padding: 18px; }
.ecard-body .tag { align-self: flex-start; }
.ecard-body h3 { margin: 0; }
.ecard-body p { margin: 0; color: var(--muted); font-size: .88rem; }
.ecard .more { margin-top: auto; padding-top: .5rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }

/* Página de evento */
.flyer { display: block; max-width: 520px; }
.flyer img { width: 100%; border-radius: var(--radius); box-shadow: 0 30px 80px rgb(0 0 0 / .45); }
.info-list { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; margin: 1.5rem 0 0; }
.info-list dt { padding-top: .2em; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.info-list dd { margin: 0; font-weight: 700; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
.prose li { margin-bottom: .4em; }
.prose strong { color: var(--accent); }
.lineup-group { margin-bottom: 28px; }
.lineup { display: flex; flex-wrap: wrap; gap: .15em .5em; margin: 0; padding: 0; list-style: none; font: var(--display-weight) clamp(1.3rem, 3.4vw, 2.4rem)/1.15 var(--font-display); text-transform: uppercase; }
.lineup li:nth-child(3n+2) { color: var(--accent); }
.lineup li:not(:last-child)::after { content: " /"; color: var(--muted); }
.lineup small { font: .7rem var(--font-body); letter-spacing: .1em; color: var(--muted); vertical-align: middle; }
.lineup.sm { font-size: clamp(1rem, 2.2vw, 1.4rem); }

/* Compra */
.buy fieldset, .admin-form fieldset { min-width: 0; margin: 0 0 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.buy legend, .admin-form legend { padding: 0 8px; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.tiers { display: grid; gap: 10px; }
.tier { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 12px; align-items: center; padding: 14px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.tier:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tier input { width: auto; margin: 0; accent-color: var(--accent); }
.tier-name { font-weight: 700; }
.tier-price { font: var(--display-weight) 1.2rem var(--font-display); }
.tier-left { grid-column: 2 / -1; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tier.soldout { opacity: .5; cursor: not-allowed; }
.buy-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.buy-total b { font: var(--display-weight) 2rem var(--font-display); color: var(--accent); }
.pay-box { display: grid; justify-items: start; gap: 12px; padding: 24px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); }
.order-summary .price { color: var(--accent); }

/* Formularios */
.form { display: grid; gap: 14px; max-width: 640px; }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.form-grid .span-2 { grid-column: 1 / -1; }
.form label, .buy label, .admin-form label { display: grid; align-content: start; gap: 6px; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
input, select, textarea { width: 100%; padding: .8em 1em; font: inherit; font-size: 1rem; color: var(--fg); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); text-transform: none; letter-spacing: 0; }
textarea { min-height: 120px; resize: vertical; }
label.check, .check { display: flex; align-items: flex-start; gap: 10px; font-size: .85rem; text-transform: none; letter-spacing: 0; }
.check input { width: auto; margin-top: .3em; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; }
.inline-form input { flex: 1 1 220px; width: auto; }

/* FAQ, listas, bloques */
details { padding: 18px 0; border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; gap: 16px; font-weight: 700; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--muted); }
details a { color: var(--accent); }
.check-list { display: grid; gap: 8px 24px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); padding: 0; list-style: none; }
.check-list li::before { content: "✦ "; color: var(--accent); }
.cta-band { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding: clamp(32px, 6vw, 64px); background: var(--accent); color: var(--on-accent); border-radius: var(--radius); }
.cta-band h2 { margin: 0; }
.cta-band p { margin: .5em 0 0; }
.cta-band .btn { background: var(--on-accent); color: var(--accent); border-color: var(--on-accent); }
.timeline { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--accent); }
.timeline li { position: relative; padding: 0 0 28px 24px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .45em; width: 12px; height: 12px; background: var(--accent); border-radius: 50%; }
.timeline b { display: block; font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-case); font-size: 1.2rem; }
.timeline a { text-decoration: none; }
.timeline a:hover { color: var(--accent); }

/* Ticket */
.ticket { display: grid; grid-template-columns: 1fr auto; max-width: 880px; margin: 0 auto; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); border-radius: calc(var(--radius) + 8px); }
.ticket-main { padding: 32px; }
.ticket-main img { border-radius: 50%; margin-bottom: 12px; }
.ticket-main h1 { font-size: clamp(1.8rem, 5vw, 3rem); }
.ticket-qr { display: grid; place-items: center; gap: 12px; max-width: 300px; padding: 32px; text-align: center; background: #fff; color: #111; border-left: 2px dashed var(--line); }
@media (max-width: 700px) { .ticket { grid-template-columns: 1fr; } .ticket-qr { max-width: none; border-left: 0; border-top: 2px dashed var(--line); } }

/* Lightbox */
.lightbox { max-width: 92vw; max-height: 92vh; padding: 0; background: transparent; border: 0; }
.lightbox::backdrop { background: rgb(0 0 0 / .88); }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox button { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 1.1rem; cursor: pointer; }

/* Footer */
.site-footer { padding: 64px 0 48px; background: var(--bg-2); border-top: 1px solid var(--line); font-size: .9rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.site-footer h4 { margin: 0 0 12px; font: 400 .72rem var(--font-body); text-transform: uppercase; letter-spacing: .15em; color: var(--accent); }
.site-footer ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--fg); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }

/* Admin */
.admin-main { padding: 32px 0 80px; }
.admin-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 18px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.admin-nav a { text-decoration: none; }
.admin-nav a:hover { color: var(--accent); }
.admin-nav form { margin: 0; }
.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.admin-head h1 { margin: 0; font-size: clamp(1.8rem, 5vw, 3rem); }
.admin-form { max-width: none; }
.admin-thumb { max-width: 180px; max-height: 240px; margin-top: 8px; border-radius: 4px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .85rem; }
th, td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); background: var(--bg-2); }
td.actions a { margin-right: 10px; color: var(--accent); white-space: nowrap; }
tr.muted td { color: var(--muted); }
.tiers-table input { min-width: 110px; }
.status { padding: 2px 8px; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; border: 1px solid currentColor; border-radius: 999px; }
.status.pagada { color: var(--ok); }
.status.pendiente { color: var(--accent); }
.status.rechazada, .status.anulada { color: var(--accent-2); }
.validate { max-width: 560px; margin: 0 auto; padding: 32px; border: 3px solid var(--line); border-radius: 12px; }
.validate h1 { font-size: clamp(2rem, 8vw, 3.4rem); }
.validate.ok { border-color: var(--ok); } .validate.ok h1 { color: var(--ok); }
.validate.warn { border-color: var(--accent); } .validate.warn h1 { color: var(--accent); }
.validate.bad { border-color: var(--accent-2); } .validate.bad h1 { color: var(--accent-2); }
.login { justify-items: center; max-width: 380px; margin: 10vh auto; text-align: center; }
.login img { border-radius: 50%; }
.login h1 { font-size: 2rem; }
.login label { width: 100%; }
.danger { margin-top: 32px; }

@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  .ticket { border-color: #000; background: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Selector de idioma (dentro del menú; en móvil aparece al abrirlo) */
.langs { display: flex; gap: 4px; }
.nav .langs a { padding: 4px 7px; font-size: .68rem; color: var(--muted); border: 1px solid transparent; border-radius: var(--radius-btn); }
.nav .langs a[aria-current] { color: var(--fg); border-color: var(--line); }
.nav .langs a:hover { color: var(--accent); }
@media (min-width: 1061px) { .nav { display: flex; align-items: center; gap: 22px; } }
@media (max-width: 1060px) { .langs { margin-top: 18px; } .nav .langs a { padding: 8px 12px; font-size: .9rem; } }

/* Festival 2027: la isla grande a la derecha (en móvil arriba) y los capítulos al lado */
.film-isla .film-stage { background: radial-gradient(circle at 72% 50%, #0d2c46, var(--bg) 62%); }
.film-isla .film-stage video { inset: 50% 0 auto auto; width: min(100svh, 64vw); height: min(100svh, 64vw); object-fit: contain; transform: translateY(-50%); -webkit-mask-image: radial-gradient(circle, #000 62%, transparent 71%); mask-image: radial-gradient(circle, #000 62%, transparent 71%); }
.film-isla .film-stage::after { background: linear-gradient(90deg, var(--bg) 28%, color-mix(in srgb, var(--bg) 40%, transparent) 52%, transparent 70%); }
.film-isla .film-step { max-width: min(1200px, 100% - 32px); }
.film-isla .film-step > * { max-width: 44ch; }
.film-isla .film-step h1, .film-isla .film-step h2 { max-width: 11ch; font-size: clamp(2.2rem, min(5vw, 8svh), 4.6rem); }
@media (max-width: 860px) {
  .film-isla .film-stage { align-items: end; background: radial-gradient(circle at 50% 32%, #0d2c46, var(--bg) 70%); }
  .film-isla .film-stage video { inset: 70px 0 auto; width: 100vw; height: 100vw; margin-inline: auto; transform: none; }
  .film-isla .film-stage::after { background: linear-gradient(0deg, var(--bg) 40%, transparent 70%); }
  .film-isla .film-step { padding-bottom: 28px; }
}

/* Vista ampliada «líquida» (main.js): flyer completo + info, al costado de lo que se mira */
.peek { position: fixed; z-index: 55; pointer-events: auto; }
.peek-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 22px; height: 100%; padding: 18px; background: color-mix(in srgb, var(--bg-2) 92%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 22px; box-shadow: 0 40px 100px rgb(0 0 0 / .6); backdrop-filter: blur(16px); }
.peek-in > img { width: 100%; height: 100%; min-height: 0; object-fit: contain; object-position: center; border-radius: 12px; background: rgb(0 0 0 / .25); }
.peek-in:has(> .peek-info .lead) { grid-template-columns: 1fr; }
.peek-in:has(> .peek-info .lead) { grid-template-rows: minmax(0, 1fr) auto; }
.peek-info { display: flex; flex-direction: column; gap: 10px; min-width: 0; overflow: auto; }
.peek-info h3 { margin: 0; font-size: clamp(1.4rem, 2.2vw, 2rem); }
.peek-info p { margin: 0; }
.peek-info .lead { font-size: 1rem; }
.peek-when { font-weight: 700; color: var(--accent); }
.peek-info .btn { align-self: flex-start; margin-top: auto; }
