/* Zaragoza tiene un plan — el muro de carteles.
   Noche azul marino, papel crema, turquesa, coral y amarillo. Sin violeta. */

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

:root {
  --navy-0: #060C17;
  --navy: #0B1626;
  --navy-2: #112038;
  --navy-3: #1A2E4C;
  --line: rgba(251, 243, 228, .14);
  --cream: #FBF3E4;
  --cream-2: #F1E4CC;
  --ink: #0F1B2D;
  --muted: rgba(251, 243, 228, .68);
  --turq: #138D99;
  --turq-l: #2BB3BE;
  --coral: #EE6750;
  --yellow: #F7D64D;
  --f: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --hl: clamp(38px, 11vw, 62px);
  --ease: cubic-bezier(.2, .9, .1, 1);
  --glow: var(--coral);
  color-scheme: dark;
}
@media (max-height: 700px) { :root { --hl: clamp(30px, 8.6vw, 46px); } }
@media (max-height: 520px) and (max-width: 1099.98px) { .top .headline { display: none; } .dock { padding-top: 6px; padding-bottom: calc(6px + var(--safe-b)); } .chip { height: 38px; } }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--navy-0); color: var(--cream); font-family: var(--f); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
html.js, html.js body { overflow: hidden; overscroll-behavior: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
svg { display: block; flex: none; }
img { -webkit-user-drag: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.ch { display: inline-block; white-space: pre; }

/* Sin JavaScript: la lista que generan las herramientas */
html:not(.js) .stage, html:not(.js) .panel, html:not(.js) .dock, html:not(.js) .rail-wrap { display: none; }
.ssr { max-width: 760px; margin: 0 auto; padding: 32px 20px; line-height: 1.5; }
.ssr a { color: var(--yellow); }
.ssr img { max-width: 100%; height: auto; border-radius: 12px; }
html.js .ssr { display: none; }

/* =================== El muro =================== */

.stage {
  position: fixed; inset: 0; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none;
  background: radial-gradient(130% 90% at 50% 30%, #10213B 0%, #0B1626 45%, #050A14 100%);
  cursor: grab; contain: strict;
}
.stage.moving { cursor: grabbing; }
.grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: radial-gradient(circle, rgba(251, 243, 228, .16) 1.1px, transparent 1.7px);
  background-size: 56px 56px;
}
.world { position: absolute; inset: 0; }
html:not(.ready) .world { opacity: 0; }

.cell, .colhead, .billboard { position: absolute; left: 0; top: 0; transform-origin: 0 0; }

/* ---------- Cartel ---------- */
.cell {
  width: 420px; height: 740px;
  --tc: var(--tint-rgb, var(--fc));
  --deep: color-mix(in oklab, var(--tc) 30%, #08111F);
}
.poster {
  position: absolute; inset: 0; border-radius: 22px; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, color-mix(in oklab, var(--tc) 46%, #08111F) 0%, var(--deep) 58%, color-mix(in oklab, var(--deep) 70%, #050A14) 100%);
  box-shadow: 0 34px 60px -26px rgba(0, 0, 0, .8), 0 0 0 1px rgba(251, 243, 228, .07);
}
.cell::after {
  content: ""; position: absolute; inset: 0; border-radius: 22px; background: #050A14;
  opacity: 0; transition: opacity .5s; pointer-events: none;
}
.near .cell:not(.is-focus)::after { opacity: .52; }
.stage.moving .cell::after { transition-duration: .25s; }
.near .cell.is-focus .poster { box-shadow: 0 44px 90px -30px rgba(0, 0, 0, .9), 0 0 0 2px color-mix(in oklab, var(--fc) 55%, transparent), 0 0 120px -30px color-mix(in oklab, var(--tc) 70%, transparent); }

.p-media {
  position: absolute; left: 0; top: 0; width: 420px; height: 400px; overflow: hidden;
  background: color-mix(in oklab, var(--tc) 42%, #08111F);
}
.p-fill {
  position: absolute; left: -40px; top: -40px; width: 500px; height: 480px; object-fit: cover;
  max-width: none; filter: blur(26px) saturate(1.35) brightness(.6); opacity: 0; transition: opacity .5s;
}
.p-media.contain.ready .p-fill { opacity: 1; }
.p-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0;
  transform: translateY(calc(var(--py, 0) * -20px)); transition: opacity .5s;
}
.p-media.ready .p-img { opacity: 1; }
.p-media.cover .p-img { object-fit: cover; transform: translateY(calc(var(--py, 0) * -30px)) scale(1.1); }
.near .cell.is-focus .p-media.cover .p-img { animation: kenburns 16s ease-in-out infinite alternate; }
@keyframes kenburns { from { scale: 1; } to { scale: 1.12; translate: 0 -10px; } }
.p-media::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: 1; pointer-events: none;
  background: linear-gradient(rgba(8, 17, 31, 0), color-mix(in oklab, var(--tc) 46%, #08111F));
}
.p-media.noimg {
  background:
    radial-gradient(120% 90% at 20% 10%, color-mix(in oklab, var(--fc) 80%, #fff 0%) 0%, color-mix(in oklab, var(--fc) 40%, #08111F) 70%);
}
.p-noimg {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 30px;
  font: 900 112px/.84 var(--f-display); font-stretch: 62%; text-transform: uppercase; text-align: center;
  color: rgba(8, 17, 31, .32); letter-spacing: -.01em;
}
.p-credit {
  position: absolute; right: 14px; bottom: 10px; z-index: 2; max-width: 75%;
  font: 500 12px/1.2 var(--f); color: rgba(251, 243, 228, .72); text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.far .p-credit { opacity: 0; }

.p-type {
  position: absolute; left: 0; right: 0; top: 392px; bottom: 0; z-index: 2;
  padding: 16px 26px 24px; display: flex; flex-direction: column; gap: 7px;
  transform: translateY(calc(var(--py, 0) * 10px));
}
.p-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.p-time { font: 900 60px/.86 var(--f-display); font-stretch: 72%; color: var(--fc); letter-spacing: -.01em; white-space: nowrap; }
.p-fam { font: 700 14px/1 var(--f); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.p-title {
  margin: 4px 0 0; font-family: var(--f-display); font-weight: 900; font-stretch: 62%; text-transform: uppercase;
  line-height: .88; letter-spacing: -.01em; color: var(--cream); overflow-wrap: anywhere; max-height: 160px; overflow: hidden;
}
.p-sub { font: 600 19px/1.22 var(--f); color: rgba(251, 243, 228, .86); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-sub.one { -webkit-line-clamp: 1; }
.p-when { font: 500 16px/1.25 var(--f); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-where { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font: 500 17px/1.2 var(--f); color: var(--muted); }
.p-where span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-where b { color: var(--cream); font-weight: 750; white-space: nowrap; flex: none; }

.p-candy { position: absolute; z-index: 3; right: -22px; top: -40px; width: 122px; height: auto; rotate: var(--tilt, -8deg); filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .5)); pointer-events: none; }
.p-candy.c-stage { width: 136px; top: -34px; }
.p-candy.c-art { width: 112px; }
.tiny .p-candy { display: none; }
.far .p-fill { display: none; }

.p-stamp {
  position: absolute; z-index: 3; left: 50%; top: 170px; translate: -50% 0; rotate: -8deg;
  padding: 12px 22px 10px; border: 5px solid var(--cream); border-radius: 12px; background: rgba(8, 17, 31, .55);
  font: 900 50px/1 var(--f-display); font-stretch: 72%; text-transform: uppercase; letter-spacing: .04em; color: var(--cream);
}
.is-over .p-img, .is-over .p-fill { filter: grayscale(1) brightness(.6); }
.is-over .p-time { color: var(--muted); }
.p-pick { position: absolute; z-index: 3; left: 18px; top: 18px; padding: 9px 13px 8px; border-radius: 999px; background: var(--yellow); color: var(--ink); font: 800 14px/1 var(--f); letter-spacing: .08em; text-transform: uppercase; }
.p-saved { position: absolute; z-index: 3; left: 18px; top: 62px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--coral); }
.p-pick ~ .p-saved { top: 62px; }
.p-saved:only-of-type { top: 18px; }
.p-saved svg { width: 24px; height: 24px; }

/* ---------- Cabecera de día ---------- */
.colhead { width: 420px; height: 256px; padding: 0 6px 18px; display: flex; flex-direction: column; justify-content: flex-end; color: var(--cream); pointer-events: auto; }
.ch-word { font-family: var(--f-display); font-weight: 900; line-height: .84; text-transform: uppercase; letter-spacing: -.01em; white-space: nowrap; }
.colhead.is-today .ch-word { color: var(--yellow); }
.ch-date { margin-top: 12px; font: 700 25px/1.1 var(--f); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.ch-n { margin-top: 6px; font: 500 24px/1.1 var(--f); color: var(--muted); }
.ch-n b { color: var(--cream); font-weight: 800; }
.ch-bar { display: flex; gap: 4px; height: 10px; margin-top: 16px; }
.ch-bar i { display: block; height: 100%; border-radius: 5px; min-width: 10px; }
.near .colhead { opacity: .7; }

/* ---------- Valla de la marca ---------- */
.billboard {
  container-type: inline-size; border-radius: 28px; overflow: hidden; isolation: isolate; color: var(--ink);
  padding: var(--pad) var(--pad) calc(var(--sh) + var(--pad) * .55); display: flex; flex-direction: column; gap: 1.4cqw;
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .85);
}
.bb-paper { position: absolute; inset: 0; z-index: -1; background: var(--cream); }
.bb-paper::before, .bb-paper::after { content: ""; position: absolute; inset: 0; }
.bb-paper::before { background: var(--yellow); clip-path: polygon(0 0, 40% 0, 64.5% calc(var(--st) + 2%), 0 calc(var(--st) + 2%)); }
.bb-paper::after { background: var(--coral); clip-path: polygon(0 calc(var(--st) - 9%), 9% calc(var(--st) + 2%), 0 calc(var(--st) + 2%)); }
.portrait .bb-paper::before { clip-path: polygon(0 0, 58% 0, 64.5% calc(var(--st) + 2%), 0 calc(var(--st) + 2%)); }
.bb-top { display: flex; justify-content: space-between; gap: 2cqw; font: 700 1.9cqw/1.2 var(--f); letter-spacing: .22em; text-transform: uppercase; }
.portrait .bb-top { font-size: 2.9cqw; flex-direction: column; gap: .6cqw; }
.bb-top span:last-child { letter-spacing: .1em; font-weight: 600; }
.bb-brand { margin-top: auto; line-height: .82; }
.bb-z, .bb-t { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; white-space: nowrap; display: block; }
.bb-t { margin-top: .5cqw; color: var(--ink); }
.billboard .zgz .l-k { color: var(--ink); }
.billboard .zgz .l-t { color: var(--turq); }
.billboard .zgz .l-c { color: var(--coral); }
.billboard .zgz .l-y { color: var(--cream); -webkit-text-stroke: .028em var(--ink); paint-order: stroke fill; }
.zgz { white-space: nowrap; }
.zgz span { display: inline-block; }
.bb-kin { margin-top: 1.6cqw; }
.bb-kin-line {
  display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: top;
  padding: .12em .28em .04em; background: var(--ink); color: var(--yellow); rotate: -1.6deg; border-radius: .08em;
  font: 900 6.2cqw/1 var(--f-display); font-stretch: 72%; text-transform: uppercase;
}
.portrait .bb-kin-line { font-size: 9cqw; }
.bb-count { font: 700 1.9cqw/1.2 var(--f); letter-spacing: .04em; }
.portrait .bb-count { font-size: 3.2cqw; }
.bb-strip { position: absolute; left: 0; right: 0; bottom: 0; display: block; width: 100%; height: auto; z-index: -1;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%); mask-image: linear-gradient(180deg, transparent 0, #000 16%); }
.billboard.play .zgz span { animation: drop .8s cubic-bezier(.34, 1.56, .64, 1) backwards; animation-delay: calc(var(--i) * 75ms + 150ms); }
.billboard.play .bb-t { animation: rise .8s var(--ease) .75s backwards; }
.billboard.play .bb-top, .billboard.play .bb-count { animation: fade .8s ease 1s backwards; }
.billboard.play .bb-strip { animation: rise 1s var(--ease) .35s backwards; }
@keyframes drop { from { transform: translateY(-120%) rotate(-12deg); opacity: 0; } }
@keyframes rise { from { transform: translateY(40%); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

/* =================== Controles: móvil primero =================== */

.panel { display: contents; }
.wide-only { display: none !important; }

.top {
  position: fixed; left: 0; right: 0; top: 0; z-index: 20;
  padding: calc(var(--safe-t) + 8px) 16px 4px;
  background: linear-gradient(180deg, var(--navy-0) 0%, rgba(6, 12, 23, .92) 72%, rgba(6, 12, 23, 0) 100%);
  pointer-events: none;
}
.top > * { pointer-events: auto; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 46px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--cream); min-width: 0; }
.brand-mark { width: 40px; height: 40px; flex: none; rotate: -7deg; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .45)); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-type { display: flex; flex-direction: column; gap: 3px; }
.brand-z { font: 900 27px/.8 var(--f-display); font-stretch: 72%; letter-spacing: -.005em; }
.brand-t { font: 800 10.5px/1 var(--f); letter-spacing: .235em; text-transform: uppercase; color: var(--cream); }
.zgz .l-k { color: var(--cream); }
.zgz .l-t { color: var(--turq-l); }
.zgz .l-c { color: var(--coral); }
.zgz .l-y { color: var(--yellow); }
.top-acts { display: flex; gap: 6px; }
.ib {
  position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none;
  border: 1px solid var(--line); background: rgba(251, 243, 228, .07); color: var(--cream); padding: 0;
  transition: background .2s, transform .2s;
}
.ib:hover { background: rgba(251, 243, 228, .14); }
.ib:active { transform: scale(.94); }
.ib svg { width: 21px; height: 21px; }
.badge { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--coral); color: var(--ink); font: 800 11px/18px var(--f); text-align: center; }

.headline { display: block; width: 100%; margin: 4px 0 0; padding: 0; border: 0; background: none; text-align: left; cursor: default; color: var(--cream); }
html[data-mode="far"] .headline { cursor: pointer; }
.hl {
  display: block; height: calc(var(--hl) * 1.1); line-height: calc(var(--hl) * 1.2); overflow: hidden; white-space: nowrap;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase; letter-spacing: -.012em;
}
.hl.l2 { color: var(--hc, var(--yellow)); }

.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 8px;
  padding: 10px 12px calc(10px + var(--safe-b));
  background: linear-gradient(0deg, var(--navy-0) 0%, rgba(6, 12, 23, .94) 70%, rgba(6, 12, 23, 0) 100%);
}
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(251, 243, 228, .06); color: var(--cream);
  font: 750 15px/1 var(--f); white-space: nowrap; transition: background .25s, color .25s, transform .2s;
}
.chip-n { font: 650 12px/1 var(--f); opacity: .62; }
.chip[aria-pressed="true"] { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.chip[aria-pressed="true"] .chip-n { opacity: .7; }
.chip.is-empty { opacity: .42; }
.chip:active { transform: scale(.95); }

/* Carril del día */
.rail-wrap {
  position: fixed; z-index: 16; right: 5px; top: var(--in-top, 160px); bottom: var(--in-bottom, 80px); width: 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  opacity: 0; transition: opacity .35s; pointer-events: none;
}
.rail-wrap:has(.rail.on) { opacity: 1; pointer-events: auto; }
.rail-count { order: 2; font: 800 9.5px/1 var(--f); color: var(--muted); letter-spacing: .02em; writing-mode: vertical-rl; }
.rail { display: flex; flex-direction: column; align-items: center; gap: clamp(2px, calc(260px / var(--n, 10) - 6px), 7px); }
.dot { position: relative; width: 6px; height: 6px; padding: 0; border: 0; border-radius: 3px; background: rgba(251, 243, 228, .32); transition: height .35s var(--ease), background .3s; }
.dot::before { content: ""; position: absolute; inset: -4px -7px; }
.dot[aria-current="true"] { height: 24px; background: var(--fc); }

/* Tirar para ver el muro */
.pull { position: fixed; z-index: 15; left: 0; right: 0; top: calc(var(--in-top, 150px) + 6px); display: flex; justify-content: center; opacity: 0; transition: opacity .2s; pointer-events: none; }
.pull span { padding: 9px 15px; border-radius: 999px; background: rgba(251, 243, 228, .12); font: 750 13px/1 var(--f); color: var(--cream); }
.pull .pull-b, .pull.ready .pull-a { display: none; }
.pull.ready .pull-b { display: inline-block; background: var(--yellow); color: var(--ink); }
.pull.on { opacity: 1; }

/* Ayuda la primera vez */
.coach { position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(var(--in-bottom, 80px) + 8px); display: flex; justify-content: center; opacity: 0; transform: translateY(14px); transition: opacity .4s, transform .4s var(--ease); pointer-events: none; }
.coach.on { opacity: 1; transform: none; pointer-events: auto; }
.coach-card { max-width: 420px; padding: 14px 16px; border-radius: 20px; background: rgba(251, 243, 228, .96); color: var(--ink); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); display: grid; gap: 10px; }
.coach p { margin: 0; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; font: 500 14.5px/1.3 var(--f); }
.gest { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); position: relative; display: grid; place-items: center; color: var(--yellow); font: 800 12px/1 var(--f); }
.gest::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); }
.g-v::after { animation: gv 1.6s ease-in-out infinite; }
.g-h::after { animation: gh 1.6s ease-in-out infinite; }
.g-t::after { animation: gt 1.6s ease-in-out infinite; }
.g-k::after { display: none; }
@keyframes gv { 0%, 100% { transform: translateY(8px); } 50% { transform: translateY(-8px); } }
@keyframes gh { 0%, 100% { transform: translateX(-8px); } 50% { transform: translateX(8px); } }
@keyframes gt { 0%, 100% { transform: scale(1); } 50% { transform: scale(.55); } }
.mouse-only { display: none !important; }
@media (hover: hover) and (pointer: fine) { .mouse-only { display: grid !important; } .touch-only { display: none !important; } }

/* Presentación */
.intro-skip { position: fixed; z-index: 40; right: 16px; bottom: calc(16px + var(--safe-b)); height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(15, 27, 45, .2); background: rgba(251, 243, 228, .9); color: var(--ink); font: 750 14px/1 var(--f); }
.top, .dock, .panel > :not(.top), .rail-wrap { transition: opacity .7s ease; }
html:not(.chrome-on) .top, html:not(.chrome-on) .dock, html:not(.chrome-on) .panel,
html.intro .top, html.intro .dock, html.intro .panel { opacity: 0; pointer-events: none; }
html.intro .rail-wrap { opacity: 0 !important; }

/* Vacío y errores */
.empty { position: fixed; z-index: 25; left: 50%; top: 50%; translate: -50% -50%; width: min(420px, calc(100vw - 32px)); padding: 26px; border-radius: 26px; background: var(--navy-2); border: 1px solid var(--line); text-align: center; }
.empty img { width: 140px; height: auto; }
.empty h2 { margin: 10px 0 6px; font: 900 34px/1 var(--f-display); font-stretch: 72%; text-transform: uppercase; }
.empty p { margin: 0 0 16px; color: var(--muted); }

/* =================== Botones comunes =================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 20px;
  border-radius: 999px; border: 2px solid currentColor; background: transparent; color: inherit;
  font: 800 16px/1.1 var(--f); text-decoration: none; text-align: center;
}
.btn svg { width: 20px; height: 20px; }
.btn.small { min-height: 42px; padding: 0 16px; font-size: 14.5px; }
.btn.primary { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.btn:disabled { opacity: .45; cursor: default; }
.row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* =================== Ficha: la vuelta del cartel =================== */
.flip-scene { position: fixed; inset: 0; z-index: 60; perspective: 2200px; perspective-origin: 50% 45%; }
.flip-scrim { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, rgba(6, 12, 23, .55), rgba(3, 6, 12, .88)); }
.flipper { position: absolute; transform-style: preserve-3d; transform-origin: 50% 50%; }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 22px; }
.face.front { overflow: hidden; }
.face.back { transform: rotateY(180deg); filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .55)); }
.flipper.open .front { display: none; }
.flipper.open .back { transform: none; }

.ticket {
  position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  border-radius: 22px; color: var(--ink); background: transparent; display: flex; flex-direction: column;
}
.ticket > * { flex: none; }
.ticket > .tk-body { flex: 1 0 auto; }
.tk-stub { position: relative; padding: 14px 18px 20px; background: var(--fc); color: var(--ink); touch-action: none; cursor: grab; }
.tk-stub::after { content: ""; position: absolute; left: 50%; top: 6px; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: rgba(15, 27, 45, .25); }
.tk-stub-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tk-fam { font: 800 13px/1 var(--f); letter-spacing: .16em; text-transform: uppercase; }
.tk-close { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(15, 27, 45, .14); color: var(--ink); }
.tk-close svg { width: 22px; height: 22px; }
.tk-when { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-top: 10px; }
.tk-date { display: flex; flex-direction: column; gap: 4px; font-family: var(--f-display); font-weight: 900; font-stretch: 72%; text-transform: uppercase; line-height: .82; flex: none; }
.tk-wd { font-size: 24px; letter-spacing: .02em; }
.tk-dm { display: flex; align-items: baseline; gap: 8px; }
.tk-dm b { font-size: 86px; }
.tk-mon { font-size: 30px; }
.tk-hour { min-width: 0; text-align: right; }
.tk-hour b { display: block; font: 900 58px/.84 var(--f-display); font-stretch: 72%; }
.tk-hour.word b { font-size: 40px; }
.tk-hour small { display: block; max-width: 22ch; margin-top: 6px; margin-left: auto; font: 650 12.5px/1.25 var(--f); }
.tk-perf {
  position: relative; height: 26px;
  background:
    radial-gradient(circle at 0 50%, transparent 12px, var(--cream) 12.5px) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 50%, transparent 12px, var(--cream) 12.5px) right / 51% 100% no-repeat;
}
.tk-perf::after { content: ""; position: absolute; left: 22px; right: 22px; top: 12px; border-top: 3px dashed rgba(15, 27, 45, .22); }
.tk-body { padding: 4px 22px 26px; background: var(--cream); }
.tk-title { margin: 4px 0 6px; font: 900 46px/.88 var(--f-display); font-stretch: 66%; text-transform: uppercase; letter-spacing: -.01em; overflow-wrap: anywhere; }
.tk-sub { margin: 0 0 4px; font: 650 18px/1.3 var(--f); }
.tk-venue { margin: 0 0 18px; font: 500 16px/1.3 var(--f); color: rgba(15, 27, 45, .7); }
.tk-ctas { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tk-ctas .btn { flex: 1 1 auto; border-color: var(--ink); color: var(--ink); }
.tk-ctas .btn.primary { background: var(--coral); border-color: var(--coral); }
.tk-ctas .btn.turq { background: var(--turq-l); border-color: var(--turq-l); }
.tk-acts { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 4px 0 18px; }
.tk-act { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 66px; padding: 10px 4px; border: 0; border-radius: 16px; background: rgba(15, 27, 45, .065); color: var(--ink); font: 700 12.5px/1.1 var(--f); text-decoration: none; text-align: center; }
.tk-act svg { width: 22px; height: 22px; }
.tk-act[aria-pressed="true"] { color: #C9442F; background: color-mix(in oklab, var(--coral) 18%, var(--cream)); }
.ticket section h3, .ticket .note h3 { margin: 20px 0 10px; font: 800 12.5px/1 var(--f); letter-spacing: .14em; text-transform: uppercase; color: rgba(15, 27, 45, .6); }
.sessions { display: flex; flex-wrap: wrap; gap: 6px; }
.session { padding: 8px 12px; border-radius: 12px; border: 1.5px solid rgba(15, 27, 45, .2); background: transparent; color: var(--ink); text-align: left; font: 600 13px/1.25 var(--f); }
.session b { display: block; font-weight: 800; }
.session[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.session.sold { text-decoration: line-through; }
.session.more { border-style: dashed; }
.facts { display: grid; gap: 12px; margin: 18px 0; padding: 16px; border-radius: 18px; background: rgba(15, 27, 45, .055); }
.facts div { display: grid; grid-template-columns: 86px 1fr; gap: 10px; }
.facts dt { font: 800 12px/1.5 var(--f); letter-spacing: .12em; text-transform: uppercase; color: rgba(15, 27, 45, .55); }
.facts dd { margin: 0; font: 500 15.5px/1.4 var(--f); }
.tk-desc { font: 400 16.5px/1.55 var(--f); margin: 0 0 14px; }
.ticket .note { padding: 2px 16px 14px; border-radius: 18px; background: color-mix(in oklab, var(--yellow) 42%, var(--cream)); }
.ticket .note h3 { margin-top: 14px; }
.ticket .note p { margin: 0; font: 500 15px/1.45 var(--f); }
.rt { display: flex; flex-wrap: wrap; gap: 8px; }
.rt-box { flex: 1 1 140px; padding: 12px 14px; border-radius: 14px; background: rgba(15, 27, 45, .065); }
.rt-box b { display: block; font: 900 34px/1 var(--f-display); font-stretch: 72%; }
.rt-box span { font-size: 13.5px; }
.rt-help { flex-basis: 100%; margin: 4px 0 0; font-size: 13px; color: rgba(15, 27, 45, .66); }
.review { display: block; margin-bottom: 6px; padding: 12px 14px; border-radius: 14px; background: rgba(15, 27, 45, .055); text-decoration: none; }
.review b { display: block; margin-bottom: 3px; }
.tk-fig { margin: 22px 0 0; }
.tk-fig img { display: block; width: 100%; max-height: 440px; object-fit: contain; border-radius: 16px; background: rgba(15, 27, 45, .07); }
.tk-fig figcaption { margin-top: 6px; font-size: 12.5px; color: rgba(15, 27, 45, .62); }
.tk-foot { display: flex; flex-direction: column; gap: 6px; margin-top: 20px; font-size: 13px; line-height: 1.45; color: rgba(15, 27, 45, .62); }
.tk-foot a { color: var(--ink); font-weight: 750; }
.tk-nav { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 18px 14px calc(12px + var(--safe-b)); background: linear-gradient(rgba(251, 243, 228, 0), var(--cream) 40%); }
.tk-navb { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--ink); color: var(--cream); font: 750 14px/1 var(--f); }
.tk-navb svg { width: 18px; height: 18px; }
.tk-navb:disabled { opacity: .25; cursor: default; }
.tk-pos { font: 700 13px/1 var(--f); color: rgba(15, 27, 45, .6); }

.menu { position: absolute; z-index: 5; top: calc(100% + 6px); right: 0; min-width: 240px; padding: 6px; border-radius: 16px; background: var(--ink); color: var(--cream); box-shadow: 0 20px 40px rgba(0, 0, 0, .35); }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px; border: 0; border-radius: 10px; background: none; color: inherit; text-decoration: none; text-align: left; font: 650 15px/1.2 var(--f); }
.menu a:hover, .menu button:hover { background: rgba(251, 243, 228, .1); }
.menu svg { width: 20px; height: 20px; }

/* =================== Cajones =================== */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(3, 6, 12, .62); opacity: 0; transition: opacity .35s; }
.scrim.on { opacity: 1; }
.drawer {
  position: fixed; z-index: 55; left: 0; right: 0; bottom: 0; max-height: 90vh; display: flex; flex-direction: column;
  border-radius: 26px 26px 0 0; background: var(--navy-2); color: var(--cream); border-top: 1px solid var(--line);
  transform: translateY(104%); transition: transform .45s var(--ease);
}
.drawer.on { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 6px; }
.drawer-head h2 { margin: 0; font: 900 34px/1 var(--f-display); font-stretch: 72%; text-transform: uppercase; }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 6px 20px 22px; }
.drawer-body h3 { margin: 20px 0 10px; font: 800 12.5px/1 var(--f); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.drawer-body p, .drawer-body li { font: 400 15.5px/1.5 var(--f); color: rgba(251, 243, 228, .88); }
.drawer-foot { display: flex; gap: 10px; padding: 12px 20px calc(12px + var(--safe-b)); border-top: 1px solid var(--line); }
.drawer-foot .btn { flex: 1; }
.drawer .btn { border-color: rgba(251, 243, 228, .5); }
.drawer .btn.primary { border-color: var(--yellow); }
.chipset { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(251, 243, 228, .05); color: var(--cream); font: 700 14.5px/1 var(--f); }
.fchip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--fc); }
.fchip .n { font-size: 12.5px; opacity: .6; font-weight: 600; }
.fchip[aria-pressed="true"] { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.howto { margin: 0; padding-left: 18px; }
.howto li { margin-bottom: 6px; }
.howto b { color: var(--cream); }
.about-candies { display: flex; justify-content: center; gap: 12px; margin: 4px 0 4px; }
.about-candies img { height: 86px; width: auto; }
.form { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field label { font: 700 13px/1 var(--f); color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(251, 243, 228, .06); color: var(--cream); font: 500 16px/1.3 var(--f); }
.field textarea { min-height: 110px; resize: vertical; }
.field select option { color: var(--ink); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .two { grid-template-columns: 1fr; } }
.form-note { font-size: 13px !important; color: var(--muted) !important; margin: 0; }
.form-status { min-height: 1.4em; margin: 0; }

/* =================== Buscar =================== */
.search { position: fixed; inset: 0; z-index: 58; display: flex; justify-content: center; align-items: flex-start; padding: calc(var(--safe-t) + 12px) 12px 12px; background: rgba(3, 6, 12, .72); }
.search-panel { width: min(640px, 100%); max-height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; border: 1px solid var(--line); background: var(--navy-2); }
.search-bar { display: flex; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); }
.search-bar input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 0; border-radius: 14px; background: rgba(251, 243, 228, .08); color: var(--cream); font: 600 17px/1 var(--f); }
.search-results { overflow-y: auto; overscroll-behavior: contain; padding: 6px; }
.search-empty { padding: 18px; margin: 0; color: var(--muted); }
.sr-row { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; width: 100%; padding: 8px; border: 0; border-radius: 14px; background: transparent; color: var(--cream); text-align: left; }
.sr-row:hover, .sr-row:focus-visible { background: rgba(251, 243, 228, .07); }
.sr-thumb { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: color-mix(in oklab, var(--fc) 45%, var(--navy)); display: block; }
.sr-body { min-width: 0; }
.sr-body b { display: block; font: 700 15.5px/1.25 var(--f); }
.sr-body small { display: block; margin-top: 2px; font: 500 13px/1.3 var(--f); color: var(--muted); }

/* =================== Mapa =================== */
.map { position: fixed; inset: 0; z-index: 57; display: flex; flex-direction: column; background: var(--navy-0); }
.map-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(var(--safe-t) + 12px) 16px 10px; }
.map-head h2 { margin: 0; font: 900 28px/1 var(--f-display); font-stretch: 72%; text-transform: uppercase; }
.map-body { flex: 1; min-height: 0; display: grid; grid-template-rows: 54% 46%; }
.map-canvas { position: relative; background: #0E1A2C; }
.map-canvas .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) saturate(.35) brightness(.82) contrast(.92); }
.map-canvas .leaflet-control-attribution { background: rgba(6, 12, 23, .7); color: var(--muted); }
.map-canvas .leaflet-control-attribution a { color: var(--cream); }
.map-list { overflow-y: auto; padding: 8px 10px calc(10px + var(--safe-b)); border-top: 1px solid var(--line); }
.venue-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; width: 100%; padding: 12px; border: 0; border-radius: 14px; background: transparent; color: var(--cream); text-align: left; }
.venue-row b { font: 700 15.5px/1.25 var(--f); }
.venue-row small { grid-column: 1; color: var(--muted); font-size: 13px; }
.venue-row .n { grid-column: 2; grid-row: 1 / 3; align-self: center; font: 900 26px/1 var(--f-display); font-stretch: 72%; color: var(--yellow); }
.venue.is-active .venue-row { background: rgba(251, 243, 228, .08); }
.venue-plans { padding: 0 0 8px 8px; }
.map-msg { position: absolute; z-index: 500; left: 12px; bottom: 12px; margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--navy-2); font-size: 13px; }
.pin-icon { background: none; border: 0; }
.pin { position: relative; width: 40px; height: 48px; transition: transform .25s var(--ease); transform-origin: 50% 100%; }
.pin::before { content: ""; position: absolute; left: 2px; top: 0; width: 36px; height: 36px; border-radius: 50%; background: repeating-conic-gradient(var(--fc) 0 30deg, color-mix(in oklab, var(--fc) 60%, #fff) 30deg 60deg); border: 3px solid var(--cream); box-shadow: 0 6px 14px rgba(0, 0, 0, .5); }
.pin::after { content: ""; position: absolute; left: 18px; top: 34px; width: 4px; height: 14px; border-radius: 2px; background: var(--cream); }
.pin span { position: absolute; left: 2px; top: 0; width: 36px; height: 36px; display: grid; place-items: center; z-index: 1; font: 900 16px/1 var(--f); color: var(--ink); text-shadow: 0 0 6px rgba(251, 243, 228, .9); }
.pin.is-active { transform: scale(1.25); }
@media (min-width: 900px) { .map-body { grid-template-rows: none; grid-template-columns: 1fr 400px; } .map-list { border-top: 0; border-left: 1px solid var(--line); } }

/* =================== Aviso =================== */
.toast { position: fixed; z-index: 70; left: 50%; bottom: calc(var(--in-bottom, 80px) + 12px); translate: -50% 16px; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 999px; background: var(--cream); color: var(--ink); font: 750 14px/1.3 var(--f); opacity: 0; pointer-events: none; transition: opacity .3s, translate .3s var(--ease); }
.toast.on { opacity: 1; translate: -50% 0; }

/* =================== Escritorio: el panel se luce =================== */
@media (min-width: 1100px) {
  :root { --hl: clamp(62px, 5.8vw, 104px); }
  .wide-only { display: revert !important; }
  .panel {
    position: fixed; z-index: 20; left: 0; top: 0; bottom: 0; width: clamp(420px, 34vw, 580px);
    display: flex; flex-direction: column; gap: 22px; padding: 30px 34px 22px 40px;
    background: linear-gradient(90deg, var(--navy-0) 0%, rgba(6, 12, 23, .96) 84%, rgba(6, 12, 23, 0) 100%);
  }
  .top, .top-row { display: contents; }
  .brand { order: 1; gap: 14px; }
  .headline { order: 2; margin-top: 8px; }
  .panel .chips { order: 3; }
  .top-acts { order: 4; gap: 8px; }
  .daylist-wrap { order: 5; }
  .panel-foot { order: 6; }
  .brand-mark { width: 62px; height: 62px; }
  .brand-type { gap: 6px; }
  .brand-z { font-size: 62px; }
  .brand-t { font-size: 19px; letter-spacing: .3em; }
  .panel .chips { flex: none; flex-wrap: wrap; overflow: visible; }
  .panel .chips .chip { height: 46px; font-size: 15.5px; }
  .dock, .rail-wrap { display: none !important; }
  .daylist-wrap { flex: 1; min-height: 0; display: flex !important; flex-direction: column; }
  .daylist-title { margin: 0 0 8px; font: 800 12.5px/1 var(--f); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
  .daylist { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 2px; margin: 0 -10px; padding: 0 4px; scrollbar-width: thin; scrollbar-color: var(--navy-3) transparent; }
  .dl-row { position: relative; display: grid; grid-template-columns: 82px 1fr; gap: 12px; align-items: center; padding: 10px 12px 10px 16px; border: 0; border-radius: 14px; background: transparent; color: var(--cream); text-align: left; transition: background .25s; }
  .dl-row::before { content: ""; position: absolute; left: 4px; top: 22%; bottom: 22%; width: 4px; border-radius: 2px; background: var(--fc, var(--line)); opacity: .5; transition: opacity .25s; }
  .dl-row:hover { background: rgba(251, 243, 228, .05); }
  .dl-row[aria-current="true"] { background: rgba(251, 243, 228, .1); }
  .dl-row[aria-current="true"]::before { opacity: 1; }
  .dl-row.is-over { opacity: .5; }
  .dl-time { font: 900 27px/1 var(--f-display); font-stretch: 72%; color: var(--fc, var(--yellow)); white-space: nowrap; }
  .dl-day .dl-time { font-size: 22px; color: var(--yellow); }
  .dl-body { min-width: 0; }
  .dl-body b { display: block; font: 700 15.5px/1.22 var(--f); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dl-body small { display: block; margin-top: 2px; font: 500 13px/1.3 var(--f); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .panel-foot { margin: 0; font: 600 12.5px/1.4 var(--f); color: rgba(251, 243, 228, .5); letter-spacing: .02em; }
  .coach { left: calc(var(--in-left, 460px) + 20px); justify-content: flex-start; bottom: 28px; }
  .toast { left: calc(50% + var(--in-left, 0px) / 2); bottom: 28px; }
  .drawer { left: auto; top: 0; width: 480px; max-height: none; border-radius: 26px 0 0 26px; border-top: 0; border-left: 1px solid var(--line); transform: translateX(104%); }
}
@media (min-width: 760px) and (max-width: 1099.98px) {
  .drawer { left: 50%; width: 620px; margin-left: -310px; }
}

/* Movimiento reducido o en pausa */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
html.calma *, html.calma *::before, html.calma *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
html.calma .p-img { transform: none !important; }
html.calma .p-type { transform: none !important; }
