/* ==========================================================
   Interfer 2026 · Donde la Navidad Inicia
   ========================================================== */
:root {
    --navy-900: #061440;
    --navy-800: #0a1d5c;
    --navy-700: #12297a;
    --blue-600: #1d43b0;
    --blue-500: #2f5bd3;
    --blue-100: #e7eefc;
    --blue-50: #f3f6fd;
    --gold: #f7c443;
    --gold-600: #e2a91d;
    --red: #d7262e;
    --green: #1f8a4c;
    --ink: #0d1733;
    --muted: #5a6585;
    --line: #dde4f4;
    --white: #fff;
    --radius: 18px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px -12px rgba(6, 20, 64, .28);
    --shadow-lg: 0 30px 60px -20px rgba(6, 20, 64, .45);
    --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
    --display: "Playfair Display", Georgia, serif;
    --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; }
h1:focus { outline: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
    font-weight: 600; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .5rem 1.1rem; font-size: .9rem; }
.btn-gold { background: linear-gradient(180deg, #ffd766, var(--gold-600)); color: var(--navy-900); box-shadow: 0 8px 22px -8px rgba(247, 196, 67, .8); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: var(--white); background: rgba(255, 255, 255, .06); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.link { background: none; border: 0; padding: 0; color: var(--blue-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Encabezado ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50; height: var(--header-h);
    background: rgba(10, 29, 92, .92); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, .08); transition: box-shadow .3s;
}
body.scrolled .site-header { box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .5); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { position: relative; align-self: flex-start; z-index: 2; margin-top: 6px; }
.brand img {
    height: 104px; width: auto;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .45)) drop-shadow(0 0 18px rgba(247, 196, 67, .35));
    transition: transform .3s ease, height .3s ease;
    transform-origin: top left;
}
.brand:hover img { transform: scale(1.06) rotate(-2deg); }
body.scrolled .brand img { height: 84px; }
.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a:not(.btn) { color: #dbe4ff; text-decoration: none; font-weight: 500; font-size: .95rem; position: relative; }
.main-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0; background: var(--gold); transition: width .25s; }
.main-nav a:not(.btn):hover { color: var(--white); }
.main-nav a:not(.btn):hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; background: var(--white); margin: 5px 0; border-radius: 2px; }

/* ---------- Nieve decorativa ---------- */
.snow {
    position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image:
        radial-gradient(2px 2px at 20px 30px, #fff 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 120px 80px, #fff 50%, transparent 51%),
        radial-gradient(2.5px 2.5px at 200px 160px, rgba(255,255,255,.8) 50%, transparent 51%),
        radial-gradient(1px 1px at 60px 200px, #fff 50%, transparent 51%),
        radial-gradient(2px 2px at 260px 40px, rgba(255,255,255,.7) 50%, transparent 51%);
    background-size: 300px 240px;
    animation: snow 22s linear infinite;
}
@keyframes snow { to { background-position: 60px 240px, -40px 240px, 30px 240px, -20px 240px, 50px 240px; } }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; color: var(--white);
    background:
        radial-gradient(1200px 600px at 85% 10%, rgba(47, 91, 211, .55), transparent 60%),
        radial-gradient(800px 500px at 0% 100%, rgba(247, 196, 67, .12), transparent 60%),
        linear-gradient(160deg, var(--navy-800), var(--navy-900));
    padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--gold); margin: 0 0 .8rem; }
.eyebrow.dark { color: var(--blue-600); }
.hero h1 { font-family: var(--display); font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -.01em; }
.hero h1 em { color: var(--gold); font-style: italic; }
.hero .lead { font-size: clamp(1rem, 1.6vw, 1.15rem); color: #d4ddfb; max-width: 36rem; margin: 1.2rem 0 1.6rem; }
.hero .lead strong { color: var(--white); }
/* ---------- Tarjeta "en vivo / próximo" ---------- */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.live-card {
    position: relative; isolation: isolate; overflow: hidden; max-width: 36rem; margin-bottom: 1.8rem;
    padding: 1.2rem 1.4rem 1.3rem; border-radius: 20px;
    background:
        radial-gradient(400px 160px at 100% 0%, rgba(247, 196, 67, .18), transparent 70%),
        linear-gradient(160deg, rgba(47, 91, 211, .5), rgba(6, 20, 64, .9));
    box-shadow: 0 24px 50px -22px rgba(247, 196, 67, .45), inset 0 1px 0 rgba(255, 255, 255, .12);
    animation: card-in .8s cubic-bezier(.2, .7, .2, 1) both .2s;
}
/* borde de luz que gira */
.live-card::before {
    content: ""; position: absolute; inset: 0; z-index: -1; padding: 2px; border-radius: inherit;
    background: conic-gradient(from var(--ang), var(--gold), rgba(247, 196, 67, 0) 22%, rgba(255, 255, 255, .0) 40%, var(--red) 55%, rgba(215, 38, 46, 0) 75%, var(--gold));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    animation: spin-border 5s linear infinite;
}
/* destello que cruza la tarjeta */
.live-card::after {
    content: ""; position: absolute; inset: -50% auto -50% -60%; width: 40%; z-index: -1; pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .12), transparent);
    transform: rotate(8deg); animation: shine 6s ease-in-out infinite 1.5s;
}
@keyframes spin-border { to { --ang: 360deg; } }
@keyframes shine { 0% { left: -60%; } 35%, 100% { left: 130%; } }
@keyframes card-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }

.live-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .7rem; }
.live-badge {
    display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    padding: .3rem .8rem .3rem .6rem; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #ffe7a6;
}
.live-badge.open { background: rgba(61, 220, 132, .15); color: #8ff0b8; }
.live-badge .status-dot { width: 9px; height: 9px; }
.live-theme { font-size: .8rem; color: #c8d3f7; font-style: italic; }
.live-kicker { margin: 0; font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: #c8d3f7; display: flex; align-items: center; gap: .45rem; }
.live-name {
    margin: .15rem 0 .2rem; font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.3rem); line-height: 1.1;
    background: linear-gradient(90deg, #ffd766, #fff3c4 30%, var(--gold) 55%, #ffd766); background-size: 200% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: text-shine 4s linear infinite;
}
@keyframes text-shine { to { background-position: -200% 0; } }
.live-meta { margin: 0 0 .9rem; font-size: .88rem; color: #d4ddfb; }
.live-meta strong { color: var(--white); }

.countdown { display: flex; gap: .5rem; margin-bottom: 1rem; }
.cd-unit {
    position: relative; min-width: 64px; padding: .45rem .5rem .35rem; text-align: center; border-radius: 12px;
    background: rgba(6, 20, 64, .55); border: 1px solid rgba(255, 255, 255, .14);
}
.cd-unit + .cd-unit::before { content: ":"; position: absolute; left: -.42rem; top: .35rem; color: rgba(247, 196, 67, .7); font-weight: 800; font-size: 1.3rem; }
.cd-unit b { display: block; font-family: var(--display); font-size: 1.7rem; font-weight: 800; line-height: 1.1; color: var(--white); font-variant-numeric: tabular-nums; }
.cd-unit b.tick { animation: tick .45s cubic-bezier(.2, .9, .3, 1.4); }
.cd-unit small { font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; color: #aebcf0; }
@keyframes tick { from { transform: translateY(-40%) scale(.85); opacity: .2; color: var(--gold); } }
.countdown.no-days .cd-days { display: none; }
.countdown.no-days .cd-days + .cd-unit::before { display: none; }
.countdown.soon .cd-unit { border-color: rgba(247, 196, 67, .6); box-shadow: 0 0 18px -4px rgba(247, 196, 67, .6); }
.countdown.soon .cd-unit b { color: var(--gold); }
.countdown.started .cd-unit { display: none; }
.countdown.started::before { content: "🎉 ¡Está por comenzar!"; font-weight: 700; color: var(--gold); padding: .4rem 0; }
.live-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.4rem; }
.live-link {
    display: inline-flex; align-items: center; gap: .35rem; padding: .2rem 0; border: 0; background: none;
    font-weight: 600; font-size: .9rem; color: var(--gold); text-decoration: none;
    border-bottom: 1.5px solid rgba(247, 196, 67, .35); transition: color .2s, border-color .2s;
}
.live-link span { transition: transform .2s; }
.live-link:hover { color: #ffe7a6; border-color: var(--gold); }
.live-link:hover span { transform: translateX(4px); }
.live-link.subtle { color: #c8d3f7; border-color: rgba(200, 211, 247, .3); }
.live-link.subtle:hover { color: var(--white); border-color: var(--white); }

/* modo EN VIVO */
.live-card.is-live::before { background: conic-gradient(from var(--ang), #ff4d5a, rgba(255, 77, 90, 0) 30%, var(--gold) 50%, rgba(247, 196, 67, 0) 80%, #ff4d5a); animation-duration: 2.5s; }
.live-card.is-live { box-shadow: 0 24px 60px -20px rgba(255, 77, 90, .55), inset 0 1px 0 rgba(255, 255, 255, .12); }
.live-card.is-live .live-kicker { color: #ffb3b8; text-transform: uppercase; letter-spacing: .1em; }
.rec { width: 10px; height: 10px; border-radius: 50%; background: #ff4d5a; box-shadow: 0 0 0 0 rgba(255, 77, 90, .7); animation: rec 1.2s infinite; }
@keyframes rec { 50% { opacity: .35; } 70% { box-shadow: 0 0 0 10px rgba(255, 77, 90, 0); } }

@media (max-width: 560px) {
    .cd-unit { min-width: 54px; }
    .cd-unit b { font-size: 1.4rem; }
}
.status-dot { width: 12px; height: 12px; flex: none; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(247, 196, 67, .6); animation: pulse 2s infinite; }
.status-dot.on { background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(0, 0, 0, 0); } }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.pill-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 2rem 0 0; }
.pill-list li { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.pill-list li::before { content: "★ "; color: var(--gold); }
.hero-art { display: flex; justify-content: center; }
.polaroid {
    background: var(--white); padding: 10px; border-radius: 12px; box-shadow: var(--shadow-lg);
    transform: rotate(3deg); max-width: 380px; transition: transform .5s;
    animation: float 7s ease-in-out infinite;
}
.polaroid:hover { transform: rotate(0) scale(1.02); }
.polaroid img { border-radius: 6px; }
@keyframes float { 50% { translate: 0 -10px; } }

/* ---------- Cifras ---------- */
.stats { margin-top: 2.5rem; position: relative; z-index: 2; }
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
}
.stat { padding: 1.6rem 1rem; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .num { display: block; font-family: var(--display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--blue-600); line-height: 1; }
.stat .lbl { display: block; margin-top: .4rem; font-size: .85rem; color: var(--muted); }

/* ---------- Secciones ---------- */
.section { position: relative; padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-dark { color: var(--white); background: linear-gradient(170deg, var(--navy-800), var(--navy-900)); overflow: hidden; }
.section-dark .container { position: relative; }
.section-tint { background: var(--blue-50); }
.section-head { max-width: 46rem; margin-bottom: 2.4rem; }
.section-head h2 { font-family: var(--display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--navy-800); }
.section-dark .section-head h2 { color: var(--white); }
.section-head p:last-child { color: var(--muted); font-size: 1.05rem; margin: .8rem 0 0; }
.section-dark .section-head p:last-child { color: #c8d3f7; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible, .no-reveal .reveal { opacity: 1; transform: none; }

/* ---------- Barra de herramientas ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; }
.search { position: relative; flex: 1 1 320px; max-width: 460px; }
.search svg { position: absolute; left: 1rem; top: 50%; translate: 0 -50%; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input {
    width: 100%; padding: .85rem 2.6rem .85rem 2.8rem; border-radius: 999px; border: 1.5px solid var(--line);
    font: inherit; background: var(--white); transition: border-color .2s, box-shadow .2s;
}
.search input:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(47, 91, 211, .15); }
.search .clear { position: absolute; right: .6rem; top: 50%; translate: 0 -50%; border: 0; background: var(--blue-100); width: 28px; height: 28px; border-radius: 50%; font-size: 1.1rem; line-height: 1; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
    border: 1.5px solid var(--line); background: var(--white); padding: .45rem 1rem; border-radius: 999px;
    font-size: .88rem; font-weight: 500; transition: all .2s;
}
.chip:hover { border-color: var(--blue-500); }
.chip.active { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }

/* Colores por categoría */
.cat-concierto { --cat: #2f5bd3; }
.cat-restaurantes { --cat: #1f8a4c; }
.cat-teatro { --cat: #d7262e; }
.cat-fuegos { --cat: #e2a91d; }
.cat-especial { --cat: #8a3ad6; }

/* ---------- Tira de días ---------- */
.days-wrap { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.8rem; }
.days-nav {
    flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line);
    background: var(--white); font-size: 1.5rem; line-height: 1; color: var(--navy-800);
}
.days-nav:disabled { opacity: .35; cursor: default; }
.days {
    display: flex; gap: .55rem; overflow-x: auto; scroll-snap-type: x proximity; padding: .4rem .2rem .8rem;
    scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.day {
    position: relative; flex: none; width: 74px; scroll-snap-align: center;
    display: flex; flex-direction: column; align-items: center; padding: .6rem .3rem;
    border-radius: 14px; border: 1.5px solid var(--line); background: var(--white); transition: all .2s;
}
.day:hover { border-color: var(--blue-500); transform: translateY(-2px); }
.day .dow { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.day .dnum { font-family: var(--display); font-weight: 800; font-size: 1.7rem; line-height: 1.1; color: var(--navy-800); }
.day .mon { font-size: .72rem; color: var(--muted); }
.day .spark { position: absolute; top: 4px; right: 7px; font-size: .7rem; color: var(--gold-600); }
.day.past { opacity: .55; }
.day.today::after { content: "HOY"; position: absolute; bottom: -9px; font-size: .6rem; font-weight: 700; background: var(--red); color: var(--white); padding: 1px 7px; border-radius: 999px; }
.day.active { background: linear-gradient(160deg, var(--blue-600), var(--navy-800)); border-color: var(--navy-800); opacity: 1; box-shadow: 0 10px 20px -8px rgba(18, 41, 122, .6); }
.day.active .dow, .day.active .mon { color: #c8d3f7; }
.day.active .dnum { color: var(--white); }

/* ---------- Panel del día ---------- */
.day-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.2rem, 3vw, 2.2rem); animation: fadeUp .4s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
.day-panel-head { display: flex; gap: 1.4rem; align-items: center; padding-bottom: 1.4rem; margin-bottom: 1.4rem; border-bottom: 1px dashed var(--line); }
.day-panel-head h3 { font-family: var(--font); font-style: italic; font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.1rem); text-transform: uppercase; color: var(--navy-800); }
.day-panel-head .eyebrow { margin-bottom: .3rem; }
.day-panel-head .muted { margin: .3rem 0 0; font-size: .9rem; }
.date-badge {
    flex: none; width: 96px; height: 96px; border-radius: 16px; color: var(--white);
    background: linear-gradient(160deg, var(--blue-500), var(--navy-800));
    display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: var(--shadow);
}
.date-badge .dnum { font-family: var(--display); font-size: 2.6rem; font-weight: 800; line-height: 1; }
.date-badge span:last-child { font-family: var(--display); font-style: italic; font-size: .9rem; }

/* ---------- Línea de tiempo ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.event { display: grid; grid-template-columns: 78px 1fr; gap: 1rem; align-items: stretch; }
.ev-time {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-family: var(--display); font-weight: 800; font-size: 1.35rem; color: var(--navy-800); line-height: 1;
    border-right: 3px solid var(--cat); padding-right: .8rem;
}
.ev-time small { font-family: var(--font); font-weight: 500; font-size: .7rem; color: var(--muted); margin-top: .25rem; }
.event.featured .ev-time { background: linear-gradient(160deg, var(--blue-500), var(--navy-800)); color: var(--white); border-radius: 12px; border: 0; padding: .6rem; }
.event.featured .ev-time small { color: #c8d3f7; }
.ev-card {
    background: var(--blue-50); border: 1px solid var(--line); border-left: 4px solid var(--cat);
    border-radius: 12px; padding: .9rem 1.1rem; transition: transform .2s, box-shadow .2s;
}
.ev-card:hover { transform: translateX(4px); box-shadow: var(--shadow); background: var(--white); }
.ev-top { display: flex; flex-wrap: wrap; gap: .5rem .9rem; align-items: center; margin-bottom: .35rem; }
.badge { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--white); background: var(--cat); padding: .15rem .6rem; border-radius: 999px; }
.place { font-size: .82rem; color: var(--muted); }
.ev-card h4 { font-size: 1.08rem; font-weight: 600; color: var(--ink); }
.event.featured .ev-card h4 { font-family: var(--display); font-size: 1.45rem; color: var(--navy-800); }
.ev-card .by, .ev-card .detail { margin: .3rem 0 0; font-size: .9rem; color: var(--muted); }
.ev-card .by strong { color: var(--ink); }
.cal-link { display: inline-block; margin-top: .5rem; font-size: .8rem; font-weight: 600; color: var(--blue-600); text-decoration: none; opacity: .8; }
.cal-link:hover { opacity: 1; text-decoration: underline; }
.timeline.compact .event.featured .ev-card h4 { font-size: 1.2rem; }

.empty { padding: 2rem; text-align: center; color: var(--muted); background: var(--blue-50); border-radius: 12px; }
.search-results .result-group { margin-top: 1.6rem; }
.result-group h4 { font-size: 1.05rem; margin-bottom: .8rem; }
.result-group h4 span { color: var(--muted); font-weight: 500; }
.legend { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1.6rem; font-size: .85rem; color: var(--muted); }
.legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--cat); margin-right: .3rem; }

/* ---------- Cartelera ---------- */
.closing-card {
    display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: center;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius); padding: 1.4rem; margin-bottom: 2.4rem;
}
.closing-card img { border-radius: 12px; width: 100%; height: 260px; object-fit: cover; object-position: top; }
.closing-card h3 { font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; color: var(--gold); }
.closing-card p:not(.eyebrow) { color: #d4ddfb; max-width: 38rem; }
.lineup { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.artist {
    text-align: left; display: flex; flex-direction: column; gap: .2rem; min-height: 130px;
    background: linear-gradient(160deg, rgba(47, 91, 211, .35), rgba(255, 255, 255, .04));
    border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: 1.1rem 1.2rem; color: var(--white);
    transition: transform .25s, border-color .25s, background .25s;
}
.artist:hover { transform: translateY(-4px); border-color: var(--gold); background: linear-gradient(160deg, rgba(47, 91, 211, .55), rgba(255, 255, 255, .08)); }
.artist .when { font-size: .78rem; letter-spacing: .04em; color: #c8d3f7; text-transform: uppercase; }
.artist .when b { color: var(--gold); font-size: 1rem; }
.artist .name { font-family: var(--display); font-weight: 800; font-size: 1.4rem; line-height: 1.15; margin-top: auto; }
.artist .by { font-size: .78rem; color: #aebcf0; }
.artist.past { opacity: .5; }

/* ---------- Experiencias ---------- */
.exp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.exp-card {
    display: flex; flex-direction: column; padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; text-align: left; background: var(--white); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.exp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.exp-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: var(--navy-800); transition: transform .6s; }
.exp-card:hover img { transform: scale(1.04); }
.exp-body { position: relative; display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.2rem 1.2rem; background: var(--white); }
.exp-title { font-weight: 700; font-size: 1.05rem; color: var(--navy-800); }
.exp-meta { font-size: .85rem; color: var(--muted); }
.exp-meta::after { content: "  ·  Ver detalles →"; color: var(--blue-600); font-weight: 600; }

/* ---------- Mapa ---------- */
.map-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.map-viewport {
    position: relative; overflow: hidden; aspect-ratio: 1800 / 1124; background: #fff;
    touch-action: pan-y; cursor: zoom-in; user-select: none; -webkit-user-select: none;
    border-bottom: 1px solid var(--line);
}
.map-viewport.zoomed { touch-action: none; cursor: grab; }
.map-viewport.dragging { cursor: grabbing; }
.map-canvas { position: absolute; inset: 0; transform-origin: 0 0; --z: 1; will-change: transform; }
.map-canvas img { width: 100%; height: 100%; pointer-events: none; image-rendering: auto; }

.map-pin {
    position: absolute; z-index: 1; padding: 0; border: 0; background: none;
    transform: translate(-50%, -100%) scale(calc(1 / var(--z)));
    transform-origin: 50% 100%;
}
.pin-dot {
    display: grid; place-items: center; width: 34px; height: 34px; font-size: 1rem; line-height: 1;
    background: var(--white); border: 3px solid var(--red); border-radius: 50% 50% 50% 0;
    rotate: -45deg; box-shadow: 0 4px 10px rgba(6, 20, 64, .35); transition: scale .2s, background .2s;
}
.map-pin:not(.gate) .pin-dot { font-size: 0; }
.map-pin:not(.gate) .pin-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.map-pin:hover .pin-dot { scale: 1.15; }
.map-pin.gate .pin-dot {
    rotate: 0deg; border-radius: 8px; width: auto; min-width: 30px; height: 30px; padding: 0 6px;
    background: var(--navy-800); border-color: var(--gold); color: var(--white); font-weight: 800; font-size: .8rem;
}
.map-pin.gate { transform: translate(-50%, -50%) scale(calc(1 / var(--z))); transform-origin: 50% 50%; }
/* En reposo los marcadores se ocultan para no tapar los textos del plano */
.map-pin:not(.active) { opacity: 0; pointer-events: none; }
.map-pin.active { z-index: 3; }
.map-pin.active .pin-dot { scale: 1.3; background: var(--gold); animation: pin-bounce .6s ease; }
.map-pin.active:not(.gate) .pin-dot::after { background: var(--navy-800); }
.map-pin.active.gate .pin-dot { color: var(--navy-900); border-color: var(--navy-800); }
@keyframes pin-bounce { 40% { translate: 0 -10px; } }
.pin-label {
    position: absolute; left: 50%; bottom: calc(100% + 14px); translate: -50% 0;
    width: max-content; max-width: 240px; text-align: left; pointer-events: none;
    background: var(--navy-800); color: var(--white); padding: .55rem .8rem; border-radius: 10px;
    box-shadow: var(--shadow); animation: fadeUp .25s ease;
}
.pin-label::after { content: ""; position: absolute; left: 50%; top: 100%; translate: -50% 0; border: 7px solid transparent; border-top-color: var(--navy-800); }
.pin-label strong { display: block; font-size: .9rem; }
.pin-label small { display: block; font-size: .75rem; color: #c8d3f7; line-height: 1.35; }

.map-ctrls { position: absolute; right: 12px; top: 12px; z-index: 5; display: flex; flex-direction: column; gap: 6px; }
.map-ctrl {
    width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line);
    background: rgba(255, 255, 255, .95); color: var(--navy-800); font-size: 1.35rem; font-weight: 700; line-height: 1;
    box-shadow: var(--shadow); transition: background .2s, color .2s;
}
.map-ctrl:hover { background: var(--navy-800); color: var(--white); }

.map-guide { padding: 1.4rem clamp(1rem, 3vw, 1.8rem) 1.6rem; }
.map-guide .tabs { max-width: 420px; }
.area-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .5rem; }
.area-item {
    width: 100%; display: flex; gap: .8rem; align-items: flex-start; text-align: left;
    padding: .7rem .8rem; border-radius: 12px; border: 1.5px solid transparent; background: var(--blue-50); transition: all .2s;
}
.area-item:hover { border-color: var(--blue-500); background: var(--white); }
.area-item.active { border-color: var(--gold-600); background: #fff8e1; }
.area-item .ico { flex: none; font-size: 1.35rem; width: 2rem; text-align: center; }
.area-item .ico.gate { font-size: .85rem; font-weight: 800; color: var(--white); background: var(--navy-800); border-radius: 8px; height: 2rem; line-height: 2rem; }
.area-item strong { display: block; color: var(--navy-800); font-size: .95rem; }
.area-item small { display: block; font-size: .82rem; color: var(--muted); line-height: 1.4; }
.tabs { display: flex; gap: .3rem; background: var(--blue-50); padding: .3rem; border-radius: 999px; margin-bottom: 1rem; }
.tabs button { flex: 1; border: 0; background: none; padding: .5rem; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--muted); }
.tabs button.active { background: var(--navy-800); color: var(--white); }
.tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-list li { background: var(--blue-50); border: 1px solid var(--line); color: var(--navy-800); font-weight: 500; font-size: .9rem; padding: .45rem .9rem; border-radius: 10px; }
.map-note { margin: 1.2rem 0 0; }
.map-note a { color: var(--blue-600); font-weight: 600; }
@media (max-width: 560px) {
    .pin-dot { width: 26px; height: 26px; border-width: 2px; }
    .map-pin.gate .pin-dot { height: 24px; min-width: 24px; font-size: .7rem; }
    .map-ctrl { width: 36px; height: 36px; font-size: 1.15rem; }
    .pin-label { max-width: 180px; }
}

/* ---------- Información ---------- */
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); transition: transform .25s; }
.info-card:hover { transform: translateY(-4px); }
.info-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--blue-100); font-size: 1.5rem; margin-bottom: 1rem; }
.info-card h3 { font-size: 1.1rem; color: var(--navy-800); margin-bottom: .8rem; }
.info-card dl { margin: 0; }
.info-card dt { font-size: .82rem; color: var(--muted); }
.info-card dd { margin: 0 0 .7rem; font-weight: 700; font-size: 1.05rem; }
.calc {
    margin-top: 2rem; display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 1.6rem; align-items: center;
    background: linear-gradient(160deg, var(--blue-50), var(--blue-100)); border-radius: var(--radius); padding: 1.6rem 1.8rem;
}
.calc h3 { color: var(--navy-800); }
.calc p { margin: .3rem 0 0; font-size: .9rem; }
.calc-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.calc-fields label { display: flex; flex-direction: column; gap: .3rem; font-size: .8rem; font-weight: 600; color: var(--muted); }
.calc-fields input { font: inherit; font-size: 1.05rem; font-weight: 600; padding: .6rem .8rem; border-radius: 10px; border: 1.5px solid var(--line); background: var(--white); width: 100%; }
.calc-fields input:focus { outline: none; border-color: var(--blue-500); }
.calc-total { text-align: right; background: var(--navy-800); color: var(--white); padding: 1rem 1.4rem; border-radius: 14px; min-width: 200px; }
.calc-total span { font-size: .8rem; color: #c8d3f7; display: block; }
.calc-total strong { font-family: var(--display); font-size: 2rem; color: var(--gold); display: block; line-height: 1.2; }
.calc-total small { font-size: .75rem; color: #c8d3f7; }

/* ---------- Cinta de patrocinadores ---------- */
.sponsor-ribbon {
    position: relative; overflow: hidden; padding: 1.6rem 0 1.8rem;
    background: var(--navy-900);
    border-top: 1px solid rgba(247, 196, 67, .25);
    border-bottom: 3px solid var(--gold);
}
.marquee {
    display: flex; width: max-content;
    animation: marquee 40s linear infinite;
}
/* Desvanece los logos en los bordes (la máscara va en un contenedor fijo) */
.sponsor-ribbon::before, .sponsor-ribbon::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 10%; z-index: 1; pointer-events: none;
}
.sponsor-ribbon::before { left: 0; background: linear-gradient(90deg, var(--navy-900), transparent); }
.sponsor-ribbon::after { right: 0; background: linear-gradient(-90deg, var(--navy-900), transparent); }
.sponsor-ribbon:hover .marquee { animation-play-state: paused; }
.marquee-track { display: flex; align-items: center; gap: 4.5rem; list-style: none; margin: 0; padding: 0 2.25rem; }
.marquee-track li { flex: none; }
.marquee-track img { height: 70px; width: auto; max-width: 220px; object-fit: contain; transition: transform .3s; }
.marquee-track img:hover { transform: scale(1.1); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 560px) {
    .marquee-track { gap: 3rem; padding: 0 1.5rem; }
    .marquee-track img { height: 52px; max-width: 160px; }
}
@media (prefers-reduced-motion: reduce) {
    .marquee { width: auto; flex-wrap: wrap; justify-content: center; }
    .marquee-track[aria-hidden="true"] { display: none; }
    .marquee-track { flex-wrap: wrap; justify-content: center; row-gap: 1.5rem; }
}

/* ---------- Pie ---------- */
.site-footer { background: var(--navy-900); color: #c8d3f7; padding: 2.4rem 0 1.4rem; border-top: 3px solid var(--gold); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-inner strong { color: var(--white); }
.footer-inner p { margin: .3rem 0 0; font-size: .9rem; }
.fine { font-size: .78rem; opacity: .7; margin-top: 1.4rem; }

/* ---------- Modales ---------- */
.modal-backdrop {
    position: fixed; inset: 0; z-index: 100; background: rgba(6, 20, 64, .78); backdrop-filter: blur(6px);
    display: grid; place-items: center; padding: 1.2rem; animation: fadeIn .25s ease;
}
@keyframes fadeIn { from { opacity: 0; } }
.modal { position: relative; width: min(720px, 100%); max-height: 92vh; overflow: auto; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); animation: fadeUp .3s ease; }
.modal img { width: 100%; max-height: 360px; object-fit: cover; }
.modal-body { padding: 1.6rem 1.8rem 2rem; }
.modal-body h3 { font-family: var(--display); font-size: 1.9rem; color: var(--navy-800); }
.modal-body > p { color: var(--muted); }
.modal-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.modal-cols h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--blue-600); margin-bottom: .5rem; }
.modal-cols ul { margin: 0; padding-left: 1.1rem; }
.modal-cols li { margin-bottom: .25rem; }
.modal-close {
    position: absolute; top: .8rem; right: .8rem; z-index: 2; width: 42px; height: 42px; border-radius: 50%;
    border: 0; background: var(--white); color: var(--navy-800); font-size: 1.6rem; line-height: 1; box-shadow: var(--shadow);
}
.lightbox .modal-close { position: fixed; top: 1rem; right: 1rem; }
.lightbox-scroll { max-width: min(1400px, 100%); max-height: 90vh; overflow: auto; display: grid; gap: 1rem; border-radius: 12px; }
.lightbox-scroll img { border-radius: 12px; background: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .info-grid { grid-template-columns: repeat(2, 1fr); }
    .calc { grid-template-columns: 1fr; }
    .calc-total { text-align: left; }
}
@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .brand img { height: 80px; }
    body.scrolled .brand img { height: 66px; }
    .main-nav {
        position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
        background: var(--navy-800); padding: .5rem 1.25rem 1.25rem; box-shadow: 0 20px 30px -10px rgba(0, 0, 0, .5);
        transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .25s;
    }
    .main-nav.open { transform: none; opacity: 1; pointer-events: auto; }
    .main-nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
    .main-nav .btn { margin-top: 1rem; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-art { order: -1; }
    .polaroid { max-width: 240px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .closing-card { grid-template-columns: 1fr; }
    .closing-card img { height: 300px; }
}
@media (max-width: 560px) {
    .info-grid, .calc-fields, .modal-cols { grid-template-columns: 1fr; }
    .days-nav { display: none; }
    .event { grid-template-columns: 62px 1fr; gap: .6rem; }
    .ev-time { font-size: 1.1rem; padding-right: .5rem; }
    .date-badge { width: 76px; height: 76px; }
    .date-badge .dnum { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}

/* ---------- Blazor ---------- */
.blazor-error-boundary {
    background: #b32121; padding: 1rem 1rem 1rem 3.7rem; color: white;
}
.blazor-error-boundary::after { content: "Ha ocurrido un error."; }
