:root {
  --ink: #20172b;
  --muted: #6f6878;
  --paper: #f5f2f8;
  --surface: linear-gradient(145deg, rgba(255,255,255,.76), rgba(255,255,255,.48));
  --line: rgba(56, 38, 70, .12);
  --purple: #633394;
  --purple-dark: #452163;
  --lime: #9eae32;
  --gold: #efae35;
  --blue: #174b88;
  --live: #1d8b63;
  --danger: #b13f56;
  --glass-border: rgba(255,255,255,.72);
  --glass-highlight: rgba(255,255,255,.92);
  --glass-fill: rgba(255,255,255,.48);
  --glass-fill-strong: rgba(255,255,255,.66);
  --glass-stroke: rgba(255,255,255,.88);
  --glass-blur: blur(34px) saturate(185%);
  --shadow: 0 24px 70px rgba(50,28,68,.13), inset 0 1px 0 rgba(255,255,255,.88);
  --radius: 24px;
  --wrap: min(1180px, calc(100% - 32px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 10%, rgba(158,174,50,.13), transparent 28rem),
    radial-gradient(circle at 92% 8%, rgba(99,51,148,.17), transparent 31rem),
    radial-gradient(circle at 52% 68%, rgba(23,75,136,.08), transparent 38rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}
body::before, body::after { content: ""; position: fixed; z-index: -3; width: 44vw; height: 44vw; min-width: 360px; min-height: 360px; border-radius: 50%; filter: blur(90px); opacity: .18; pointer-events: none; animation: liquid-drift 18s ease-in-out infinite alternate; }
body::before { top: -20vw; left: 18vw; background: #9b65ca; }
body::after { right: -18vw; bottom: -22vw; background: #9eae32; animation-delay: -8s; }
@keyframes liquid-drift { to { transform: translate3d(7vw,4vw,0) scale(1.08); } }
button, input, select { font: inherit; }
button { color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 200; background: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.glass { background: linear-gradient(135deg,rgba(255,255,255,.76) 0%,rgba(255,255,255,.38) 48%,rgba(236,225,246,.38) 100%); border: 1px solid var(--glass-stroke); box-shadow: 0 24px 70px rgba(50,28,68,.12), inset 0 1px 0 rgba(255,255,255,.96), inset 0 -1px 0 rgba(83,47,107,.06); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }

.ambient { position: fixed; z-index: -2; border-radius: 50%; filter: blur(10px); opacity: .44; pointer-events: none; }
.ambient-a { width: 430px; height: 430px; background: radial-gradient(circle, #dbc6ef 0, transparent 68%); top: -120px; right: -120px; }
.ambient-b { width: 460px; height: 460px; background: radial-gradient(circle, #e4edb9 0, transparent 66%); bottom: -180px; left: -160px; }

.site-header { position: sticky; top: 0; z-index: 50; padding: max(9px, env(safe-area-inset-top)) 0 7px; background: linear-gradient(180deg,rgba(245,242,248,.82),rgba(245,242,248,0)); pointer-events: none; }
.header-inner { width: var(--wrap); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 7px 9px; border: 1px solid rgba(255,255,255,.78); border-radius: 22px; background: linear-gradient(145deg,rgba(255,255,255,.76),rgba(255,255,255,.48)); box-shadow: 0 14px 42px rgba(45,27,57,.1), inset 0 1px 0 rgba(255,255,255,.96); backdrop-filter: blur(30px) saturate(185%); -webkit-backdrop-filter: blur(30px) saturate(185%); pointer-events: auto; }
.header-tools { display: flex; align-items: center; gap: 8px; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0; background: transparent; border: 0; text-align: left; cursor: pointer; }
.brand-logo-shell { width: 94px; height: 46px; display: grid; place-items: center; overflow: hidden; padding: 3px 6px; border: 1px solid rgba(255,255,255,.9); border-radius: 14px; background: rgba(255,255,255,.6); box-shadow: 0 8px 24px rgba(50,28,68,.08), inset 0 1px 0 #fff; }
.brand-logo-shell img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.brand-copy { padding-right: 4px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: .98rem; letter-spacing: -.02em; }
.brand small { color: var(--muted); font-size: .72rem; }
.refresh-button { min-height: 42px; display: inline-flex; align-items: center; gap: 7px; padding: 0 13px; border: 1px solid rgba(255,255,255,.86); border-radius: 999px; background: linear-gradient(145deg,rgba(255,255,255,.82),rgba(255,255,255,.55)); color: var(--purple); box-shadow: 0 8px 22px rgba(52,33,65,.07), inset 0 1px 0 #fff; font-size: .76rem; font-weight: 800; cursor: pointer; }
.refresh-button:hover { background: #fff; }
.refresh-button:disabled { opacity: .58; cursor: wait; }
.refresh-button.loading .refresh-icon { animation: spin .8s linear infinite; }
.refresh-icon { display: inline-block; font-size: 1rem; line-height: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.live-pill { display: flex; align-items: center; gap: 9px; border: 1px solid rgba(255,255,255,.86); background: linear-gradient(145deg,rgba(255,255,255,.82),rgba(255,255,255,.55)); box-shadow: 0 8px 22px rgba(52,33,65,.07), inset 0 1px 0 #fff; border-radius: 999px; padding: 7px 12px; color: var(--muted); font-size: .76rem; }
.connection-copy strong, .connection-copy small { display: block; white-space: nowrap; }
.connection-copy strong { color: var(--ink); font-size: .73rem; line-height: 1.2; }
.connection-copy small { margin-top: 2px; color: var(--muted); font-size: .64rem; line-height: 1.2; }
.status-dot { width: 8px; height: 8px; background: #aaa; border-radius: 50%; }
.live-pill.online .status-dot { background: var(--live); box-shadow: 0 0 0 4px rgba(29,139,99,.12); }
.live-pill.offline .status-dot { background: var(--gold); }
.live-pill.loading .status-dot { background: var(--purple); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.72); } }

.view { min-height: 60vh; }
.hero { padding: clamp(48px, 7vw, 86px) 0 44px; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr); align-items: end; gap: 42px; }
.eyebrow { margin: 0 0 12px; color: var(--purple); font-size: .76rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.hero h1, .page-heading h1 { letter-spacing: -.055em; line-height: .98; margin: 0; }
.hero h1 { max-width: 760px; font-size: clamp(2.8rem, 5.7vw, 4.9rem); }
.hero h1 span { color: var(--purple); background: linear-gradient(115deg,#4d2375 0%,#7a42ac 48%,#9661bd 100%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-statement { max-width: 620px; margin: 18px 0 0; color: var(--ink); font-size: clamp(1.05rem,2vw,1.28rem); font-weight: 650; letter-spacing: -.015em; }
.hero-date { margin: 8px 0 0; color: var(--muted); font-size: clamp(.9rem, 1.8vw, 1.05rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { min-height: 48px; padding: 0 20px; border-radius: 16px; border: 1px solid rgba(255,255,255,.62); font-weight: 750; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, filter .25s ease; box-shadow: inset 0 1px 0 rgba(255,255,255,.48); }
.button:hover { transform: translateY(-3px); filter: saturate(1.08); }
.button.primary { color: #fff; background: linear-gradient(145deg,#7543a5,var(--purple-dark)); box-shadow: 0 14px 32px rgba(99,51,148,.27), inset 0 1px 0 rgba(255,255,255,.28); }
.button.secondary { background: linear-gradient(145deg,rgba(255,255,255,.82),rgba(255,255,255,.5)); border-color: rgba(255,255,255,.85); box-shadow: 0 12px 30px rgba(50,28,68,.08), inset 0 1px 0 #fff; backdrop-filter: blur(16px); }
.event-card { border-radius: 28px; min-height: 180px; padding: 25px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; position: relative; background: linear-gradient(145deg,rgba(255,255,255,.8),rgba(238,226,248,.48)); }
.event-card::before { content: ""; position: absolute; width: 150px; height: 150px; top: -85px; left: -65px; border-radius: 50%; background: radial-gradient(circle,rgba(158,174,50,.3),transparent 68%); }
.event-card::after { content: "4"; position: absolute; right: -10px; bottom: -50px; font-size: 10rem; font-weight: 950; color: rgba(99,51,148,.08); line-height: 1; }
.event-card-label { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.event-card strong { max-width: 220px; font-size: 1.55rem; line-height: 1.12; letter-spacing: -.03em; position: relative; z-index: 1; }
.event-card small { color: var(--muted); position: relative; z-index: 1; }

.section-stack { display: grid; gap: 66px; padding: 26px 0 80px; }
.alerts { display: grid; gap: 10px; }
.alert { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; border-radius: 18px; padding: 15px 18px; background: #fff5d9; border: 1px solid #f1d98d; }
.alert-icon { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: #fff; }
.alert strong, .alert span { display: block; }
.alert span { color: #6e5d37; font-size: .9rem; }
.alert button { border: 0; background: transparent; color: var(--purple); font-weight: 800; cursor: pointer; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-heading h2, .panel-heading h2 { margin: 4px 0 0; font-size: clamp(1.6rem, 4vw, 2.35rem); letter-spacing: -.04em; line-height: 1.08; }
.section-kicker { color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.live-kicker { color: var(--live); }
.live-kicker i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px rgba(29,139,99,.12); }
.text-button { border: 0; padding: 8px 0; background: transparent; color: var(--purple); font-weight: 800; cursor: pointer; }

.cards-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.activity-card { position: relative; display: grid; gap: 15px; min-height: 220px; padding: 22px; background: linear-gradient(145deg,rgba(255,255,255,.8),rgba(255,255,255,.52)); border: 1px solid rgba(255,255,255,.84); border-radius: var(--radius); box-shadow: 0 15px 42px rgba(45,30,57,.08), inset 0 1px 0 #fff; backdrop-filter: blur(18px) saturate(145%); cursor: pointer; text-align: left; transition: .2s ease; overflow: hidden; }
.activity-card:hover { transform: translateY(-5px) scale(1.008); border-color: rgba(255,255,255,.98); box-shadow: 0 26px 68px rgba(50,28,68,.15), inset 0 1px 0 #fff; }
.activity-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--card-accent, var(--purple)); }
.card-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.status-badge, .type-badge { display: inline-flex; align-items: center; width: fit-content; border-radius: 999px; padding: 6px 10px; font-size: .68rem; font-weight: 850; letter-spacing: .03em; text-transform: uppercase; }
.status-badge.live { color: #086947; background: #dff7ed; }
.status-badge.upcoming { color: #69531b; background: #fff2c9; }
.status-badge.finished { color: #6d6674; background: #eeebf0; }
.status-badge.cancelled { color: #8b263a; background: #fae0e5; }
.activity-time { color: var(--muted); font-size: .84rem; font-weight: 750; white-space: nowrap; }
.activity-card h3 { margin: 0; font-size: 1.25rem; letter-spacing: -.025em; line-height: 1.22; }
.activity-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-self: end; color: var(--muted); font-size: .84rem; }
.activity-meta strong { color: var(--ink); }
.timeline-list { display: grid; gap: 10px; }
.timeline-row { display: grid; grid-template-columns: 110px minmax(0,1fr) auto; gap: 18px; align-items: center; width: 100%; padding: 15px 18px; background: linear-gradient(145deg,rgba(255,255,255,.75),rgba(255,255,255,.48)); border: 1px solid rgba(255,255,255,.82); box-shadow: 0 10px 28px rgba(45,30,57,.055), inset 0 1px 0 #fff; backdrop-filter: blur(16px); border-radius: 17px; text-align: left; cursor: pointer; }
.timeline-row { transition: transform .22s ease, box-shadow .22s ease, background .22s ease; }
.timeline-row:hover { transform: translateX(4px); background: rgba(255,255,255,.9); box-shadow: 0 16px 36px rgba(45,30,57,.09), inset 0 1px 0 #fff; }
.timeline-time { color: var(--purple); font-weight: 900; }
.timeline-row strong, .timeline-row small { display: block; }
.timeline-row small { color: var(--muted); margin-top: 3px; }
.timeline-space { color: var(--muted); font-size: .8rem; background: #f2edf6; padding: 6px 10px; border-radius: 999px; }

.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quick-card { min-height: 130px; padding: 22px; border: 1px solid rgba(255,255,255,.3); border-radius: 26px; color: #fff; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; text-align: left; cursor: pointer; box-shadow: 0 20px 48px rgba(42,26,54,.14), inset 0 1px 0 rgba(255,255,255,.34); backdrop-filter: blur(20px) saturate(160%); transition: transform .25s ease, box-shadow .25s ease; overflow: hidden; }
.quick-card:hover { transform: translateY(-4px); box-shadow: 0 28px 64px rgba(42,26,54,.2), inset 0 1px 0 rgba(255,255,255,.42); }
.quick-map { background: linear-gradient(135deg, rgba(23,75,136,.94), rgba(65,123,192,.78)); }
.quick-food { background: linear-gradient(135deg, rgba(176,106,22,.94), rgba(239,174,53,.8)); }
.quick-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 17px; background: rgba(255,255,255,.16); font-size: 1.7rem; }
.quick-card small, .quick-card strong { display: block; }
.quick-card small { opacity: .8; }
.quick-card strong { font-size: 1.25rem; }
.quick-card b { font-size: 1.5rem; }

.host-section { position: relative; display: grid; grid-template-columns: minmax(210px,.48fr) minmax(0,1fr); gap: clamp(24px,5vw,64px); align-items: center; overflow: hidden; padding: clamp(26px,5vw,54px); border-radius: 32px; }
.host-section::after { content: "ANFITRIÓN"; position: absolute; right: -12px; bottom: -26px; color: rgba(99,51,148,.045); font-size: clamp(4rem,12vw,9rem); font-weight: 950; letter-spacing: -.08em; pointer-events: none; }
.host-logo-shell { position: relative; z-index: 1; display: grid; place-items: center; min-height: 190px; padding: 24px; border: 1px solid rgba(255,255,255,.86); border-radius: 26px; background: rgba(255,255,255,.63); box-shadow: 0 18px 45px rgba(45,30,57,.09), inset 0 1px 0 #fff; }
.host-logo-shell img { width: min(100%,290px); max-height: 145px; object-fit: contain; }
.host-copy { position: relative; z-index: 1; }
.host-copy h2 { margin: 7px 0 10px; font-size: clamp(1.75rem,4vw,2.85rem); line-height: 1.04; letter-spacing: -.045em; }
.host-copy p { max-width: 650px; margin: 0; color: var(--muted); }
.home-sponsors { padding: clamp(22px,4vw,34px); border-radius: 28px; overflow: hidden; }
.home-sponsors .section-heading { margin-bottom: 16px; }
.sponsors-preview { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px; }
.sponsor-mini { min-height: 88px; padding: 12px; border-radius: 15px; }
.sponsor.sponsor-mini img { width: 100%; max-height: 58px; }

.page-heading { padding: 56px 0 28px; max-width: 780px; }
.page-heading h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
.page-heading > p:last-child { max-width: 650px; color: var(--muted); margin: 18px 0 0; }
.filters { position: sticky; top: 78px; z-index: 30; display: grid; grid-template-columns: auto minmax(250px, 1fr); gap: 11px; align-items: center; padding: 11px; border-radius: 23px; margin-bottom: 28px; background: linear-gradient(135deg,rgba(255,255,255,.82),rgba(247,241,251,.7)); border-color: rgba(255,255,255,.94); box-shadow: 0 20px 52px rgba(44,25,57,.14), inset 0 1px 0 #fff, inset 0 -1px 0 rgba(72,40,92,.06); backdrop-filter: blur(42px) saturate(195%); -webkit-backdrop-filter: blur(42px) saturate(195%); }
.segmented { display: flex; padding: 4px; background: linear-gradient(145deg,rgba(105,72,128,.12),rgba(255,255,255,.32)); border: 1px solid rgba(255,255,255,.7); border-radius: 15px; box-shadow: inset 0 1px 2px rgba(55,31,70,.09), 0 1px 0 rgba(255,255,255,.9); }
.segmented button { min-height: 40px; padding: 0 14px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: var(--muted); font-size: .82rem; font-weight: 800; cursor: pointer; transition: .22s ease; }
.segmented button:hover { color: var(--purple); background: rgba(255,255,255,.32); }
.segmented button.active { background: linear-gradient(145deg,rgba(255,255,255,.94),rgba(255,255,255,.58)); border-color: rgba(255,255,255,.98); color: var(--purple); box-shadow: 0 7px 18px rgba(50,30,64,.12), inset 0 1px 0 #fff; }
.search-box { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; background: linear-gradient(145deg,rgba(255,255,255,.72),rgba(255,255,255,.42)); border: 1px solid rgba(255,255,255,.92); border-radius: 14px; box-shadow: inset 0 1px 0 #fff, 0 7px 20px rgba(48,27,61,.055); }
.search-box span { color: var(--muted); }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.select-row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.select-row select { width: 100%; min-height: 42px; border: 1px solid rgba(255,255,255,.92); border-radius: 12px; padding: 0 34px 0 12px; color: var(--ink); background-color: rgba(255,255,255,.61); box-shadow: inset 0 1px 0 #fff, 0 6px 18px rgba(48,27,61,.045); outline: none; }
.search-box:focus-within, .select-row select:focus { border-color: rgba(99,51,148,.42); box-shadow: 0 0 0 3px rgba(99,51,148,.1), inset 0 1px 0 #fff; }
.schedule-results { position: relative; isolation: isolate; display: grid; gap: 32px; padding-bottom: 80px; }
.time-group { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 20px; }
.time-label { position: sticky; top: 224px; z-index: 6; align-self: start; width: fit-content; padding: 7px 11px; color: var(--purple); background: linear-gradient(145deg,rgba(255,255,255,.86),rgba(255,255,255,.55)); border: 1px solid rgba(255,255,255,.94); border-radius: 999px; box-shadow: 0 9px 24px rgba(50,28,68,.09), inset 0 1px 0 #fff; backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%); font-size: 1.02rem; font-weight: 900; }
.time-group-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
.type-badge { color: var(--purple); background: #f0e8f7; }

.map-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .55fr); gap: 18px; align-items: start; }
.map-frame { min-width: 0; padding: 16px; border-radius: var(--radius); overflow: hidden; }
.map-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 2px 3px 14px; }
.map-legend { display: flex; flex-wrap: wrap; gap: 10px 16px; color: var(--muted); font-size: .72rem; font-weight: 750; }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend i { width: 10px; height: 10px; display: inline-block; border-radius: 3px; }
.legend-live { background: #2e9b72; }
.legend-next { background: #e8a936; }
.legend-free { background: #e8e4eb; border: 1px solid #cfc6d5; }
.map-north { flex: 0 0 auto; color: var(--purple); font-size: .76rem; font-weight: 900; }
.map-scroll { overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-color: rgba(99,51,148,.35) transparent; scrollbar-width: thin; border-radius: 18px; background: linear-gradient(145deg, #fbfafc, #f3eff6); }
.ies-map { display: block; width: 100%; min-width: 760px; height: auto; font-family: inherit; }
.ies-map text { fill: var(--ink); text-anchor: middle; dominant-baseline: middle; pointer-events: none; font-size: 16px; font-weight: 750; }
.ies-map .map-small, .ies-map .map-status-text, .ies-map .map-subtitle { fill: var(--muted); font-size: 11px; font-weight: 650; }
.ies-map .map-subtitle { font-size: 13px; }
.ies-map .map-zone-label { fill: #9d94a4; font-size: 10px; letter-spacing: .15em; }
.map-circulation { fill: none; stroke: rgba(99,51,148,.11); stroke-width: 34; stroke-linecap: round; stroke-linejoin: round; }
.map-building rect { fill: #ece8ef; stroke: rgba(56,38,70,.13); stroke-width: 2; }
.map-space { outline: none; cursor: pointer; }
.map-space rect { fill: #fff; stroke: rgba(56,38,70,.18); stroke-width: 2; transition: fill .2s ease, stroke .2s ease, transform .2s ease; transform-box: fill-box; transform-origin: center; }
.map-space:hover rect, .map-space:focus rect, .map-space.is-selected rect { stroke: var(--purple); stroke-width: 4; filter: drop-shadow(0 7px 10px rgba(68,33,97,.13)); }
.map-space:hover rect { transform: scale(1.015); }
.map-space.is-live rect { fill: #dff5eb; stroke: #2e9b72; }
.map-space.is-live .map-status-text { fill: #147452; }
.map-space.is-next rect { fill: #fff2d5; stroke: #e1a032; }
.map-space.is-next .map-status-text { fill: #8b621c; }
.map-space.is-finished rect { fill: #eeeaf0; stroke: #c9c0cf; }
.map-space.is-selected rect { stroke: var(--purple); }
.map-feature text:first-of-type { font-size: 23px; }
.map-corridor-space rect { fill: #eee8f5; stroke-dasharray: 6 5; }
.map-corridor-space text { fill: var(--purple); font-size: 12px; }
.map-outdoor rect { fill: #edf3da; stroke: #9eae32; stroke-dasharray: 7 5; }
.map-entry path { fill: none; stroke: var(--purple); stroke-width: 4; stroke-linecap: round; }
.map-entry circle { fill: var(--purple); }
.map-entry text { fill: var(--purple); font-size: 11px; letter-spacing: .08em; }
.map-swipe-hint { display: none; margin: 10px 4px 0; color: var(--muted); font-size: .72rem; }
.spaces-panel { border-radius: var(--radius); padding: 22px; }
.map-selection { display: grid; gap: 7px; margin-top: 18px; padding: 17px; border-radius: 17px; background: #f0eaf5; }
.map-selection strong, .map-selection span { display: block; }
.map-selection > span { color: var(--muted); font-size: .84rem; }
.map-selection .selection-title { font-size: 1.05rem; line-height: 1.25; }
.map-selection .selection-meta { color: var(--muted); font-size: .78rem; }
.map-selection .selection-next { margin-top: 5px; padding-top: 10px; border-top: 1px solid rgba(56,38,70,.12); }
.map-selection .selection-next small { display: block; color: var(--muted); }
.map-selection .map-agenda-button { justify-self: start; margin-top: 6px; border: 0; padding: 0; background: transparent; color: var(--purple); font-weight: 850; cursor: pointer; }
.spaces-subtitle { margin: 24px 0 0; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.spaces-list { display: grid; gap: 3px; margin-top: 10px; max-height: 430px; overflow: auto; }
.space-row { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 11px 7px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.space-row:last-child { border: 0; }
.space-row:hover, .space-row.is-selected { background: rgba(99,51,148,.06); border-radius: 11px; }
.space-row strong, .space-row small { display: block; }
.space-row small { color: var(--muted); margin-top: 3px; }
.space-row .space-state { color: var(--muted); font-size: .72rem; align-self: center; }
.space-row .space-state.live { color: var(--live); font-weight: 850; }
.space-row .space-state.next { color: #966919; font-weight: 850; }
.map-notes { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 18px 0 80px; }
.map-notes article { padding: 17px; background: linear-gradient(145deg,rgba(255,255,255,.78),rgba(255,255,255,.5)); border: 1px solid rgba(255,255,255,.82); box-shadow: 0 12px 32px rgba(45,30,57,.06), inset 0 1px 0 #fff; border-radius: 17px; }
.map-notes strong, .map-notes span { display: block; }
.map-notes span { color: var(--muted); font-size: .86rem; margin-top: 4px; }

.menu-status { padding: 18px 20px; border-radius: 18px; margin-bottom: 20px; color: var(--muted); }
.menu-status strong { color: var(--ink); }
.menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; padding-bottom: 80px; }
.menu-card { display: flex; flex-direction: column; overflow: hidden; background: linear-gradient(145deg,rgba(255,255,255,.82),rgba(255,255,255,.56)); border: 1px solid rgba(255,255,255,.84); border-radius: var(--radius); box-shadow: 0 15px 40px rgba(45,30,57,.08), inset 0 1px 0 #fff; backdrop-filter: blur(18px); }
.menu-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: #efe9f2; }
.menu-card-body { display: grid; gap: 10px; padding: 20px; flex: 1; }
.menu-card h3 { margin: 0; font-size: 1.25rem; }
.menu-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.menu-card-bottom { display: flex; justify-content: space-between; align-items: end; gap: 10px; margin-top: auto; padding-top: 10px; }
.price { color: var(--purple); font-size: 1.35rem; font-weight: 900; }
.availability { color: var(--live); font-size: .74rem; font-weight: 850; }

.memory-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; padding-bottom: 80px; }
.memory-card { overflow: hidden; background: linear-gradient(145deg,rgba(255,255,255,.82),rgba(255,255,255,.56)); border: 1px solid rgba(255,255,255,.84); border-radius: var(--radius); box-shadow: 0 15px 40px rgba(45,30,57,.08), inset 0 1px 0 #fff; backdrop-filter: blur(18px); }
.memory-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: #eee9f1; }
.memory-card-body { padding: 19px; }
.memory-card h3 { margin: 8px 0; font-size: 1.17rem; line-height: 1.25; }
.memory-card p { color: var(--muted); font-size: .88rem; }
.memory-card a { color: var(--purple); font-weight: 800; text-decoration: none; }
.sponsors-grid { min-height: 220px; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 11px; align-items: stretch; padding: 18px; border-radius: 30px; margin-bottom: 80px; }
.sponsor { min-height: 118px; display: grid; place-items: center; padding: 14px; border-radius: 18px; background: linear-gradient(145deg,rgba(255,255,255,.8),rgba(255,255,255,.48)); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 10px 28px rgba(45,30,57,.055), inset 0 1px 0 #fff; text-decoration: none; color: var(--ink); text-align: center; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.sponsor:hover { transform: translateY(-3px); border-color: #fff; box-shadow: 0 18px 38px rgba(45,30,57,.11), inset 0 1px 0 #fff; }
.sponsor img { width: 100%; max-height: 88px; object-fit: contain; }
.sponsor.sponsor-mini { min-height: 88px; padding: 12px; border-radius: 15px; }
.sponsor.sponsor-mini img { max-height: 58px; }
.sponsor span { font-weight: 800; }

.empty-state { grid-column: 1 / -1; padding: 34px 24px; color: var(--muted); text-align: center; background: rgba(255,255,255,.65); border: 1px dashed rgba(56,38,70,.2); border-radius: var(--radius); }
.empty-state strong { display: block; color: var(--ink); font-size: 1.1rem; margin-bottom: 5px; }
.error-state { color: #823149; background: #fff0f3; border-style: solid; border-color: #efcbd4; }
.skeleton { position: relative; overflow: hidden; background: #eae5ed; border-radius: var(--radius); }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent); animation: shimmer 1.3s infinite; }
.card-skeleton { min-height: 220px; }
.row-skeleton { min-height: 75px; }
@keyframes shimmer { to { transform: translateX(100%); } }

.site-footer { padding: 50px 0 128px; background: radial-gradient(circle at 50% 0,rgba(113,71,143,.34),transparent 34rem), linear-gradient(145deg,#2b1d36,#1e1526); color: #fff; text-align: center; border-top: 1px solid rgba(255,255,255,.12); }
.footer-title { font-weight: 850; }
.institutes { max-width: 760px; margin: 24px auto; display: grid; grid-template-columns: repeat(4,1fr); gap: 15px; align-items: center; }
.institutes img { width: 100%; max-height: 92px; object-fit: contain; filter: drop-shadow(0 8px 16px rgba(0,0,0,.16)); }
.footer-copy { margin: 0; opacity: .66; font-size: .83rem; }
.footer-credit { width: fit-content; max-width: 620px; margin: 24px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.13); color: rgba(255,255,255,.74); font-size: .78rem; }
.bottom-nav { position: fixed; z-index: 60; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(510px, calc(100% - 24px)); display: grid; grid-template-columns: repeat(5,1fr); padding: 5px; overflow: hidden; isolation: isolate; background: linear-gradient(145deg,rgba(48,31,60,.72),rgba(27,19,35,.58)); backdrop-filter: blur(38px) saturate(190%); -webkit-backdrop-filter: blur(38px) saturate(190%); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; box-shadow: 0 20px 58px rgba(20,12,27,.3), 0 3px 12px rgba(20,12,27,.16), inset 0 1px 0 rgba(255,255,255,.38), inset 0 -1px 0 rgba(0,0,0,.14); }
.bottom-nav::before { content: ""; position: absolute; z-index: -1; inset: 0 10% auto; height: 48%; border-radius: 0 0 50% 50%; background: linear-gradient(180deg,rgba(255,255,255,.16),transparent); pointer-events: none; }
.bottom-nav button { position: relative; min-height: 49px; display: grid; place-items: center; align-content: center; gap: 2px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: rgba(255,255,255,.62); cursor: pointer; transition: color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease; }
.bottom-nav button:hover { color: rgba(255,255,255,.94); background: rgba(255,255,255,.08); transform: translateY(-1px); }
.nav-icon { width: 21px; height: 21px; display: grid; place-items: center; }
.nav-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bottom-nav button small { font-size: .59rem; font-weight: 760; letter-spacing: .01em; }
.bottom-nav button.active { color: #fff; background: linear-gradient(145deg,rgba(255,255,255,.26),rgba(255,255,255,.09)); border-color: rgba(255,255,255,.28); box-shadow: 0 8px 22px rgba(10,6,13,.17), inset 0 1px 0 rgba(255,255,255,.46), inset 0 -1px 0 rgba(0,0,0,.08); }
.bottom-nav button.active::after { display: none; }

/* Reflejos de borde: dan profundidad sin sacrificar legibilidad. */
.activity-card, .timeline-row, .menu-card, .memory-card, .sponsor, .map-notes article, .event-card, .host-section, .home-sponsors { background-image: linear-gradient(135deg,rgba(255,255,255,.84) 0%,rgba(255,255,255,.5) 52%,rgba(235,222,246,.38) 100%); border-color: rgba(255,255,255,.9); box-shadow: 0 16px 44px rgba(45,30,57,.085), inset 0 1px 0 #fff, inset 0 -1px 0 rgba(72,40,92,.05); backdrop-filter: blur(24px) saturate(170%); -webkit-backdrop-filter: blur(24px) saturate(170%); }
.activity-card::after, .menu-card::after, .memory-card::after, .sponsor::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg,rgba(255,255,255,.24),transparent 32%,transparent 72%,rgba(159,112,191,.055)); pointer-events: none; }
.menu-card, .memory-card, .sponsor { position: relative; }
.timeline-space, .type-badge, .status-badge.finished { background: rgba(255,255,255,.46); border: 1px solid rgba(255,255,255,.72); box-shadow: inset 0 1px 0 rgba(255,255,255,.8); }
.refresh-button, .live-pill, .button.secondary { backdrop-filter: blur(20px) saturate(175%); -webkit-backdrop-filter: blur(20px) saturate(175%); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .filters, .activity-card, .timeline-row, .menu-card, .memory-card, .sponsor, .bottom-nav { background-color: rgba(249,247,251,.96); }
  .bottom-nav { background-color: rgba(39,26,48,.96); }
}

.view.active > .hero, .view.active > .page-heading, .view.active > .filters, .view.active > .map-layout, .view.active > .menu-status, .view.active > .sponsors-grid { animation: glass-enter .5s cubic-bezier(.22,.8,.24,1) both; }
@keyframes glass-enter { from { opacity: 0; transform: translateY(10px); } }

.modal { width: min(620px, calc(100% - 28px)); max-height: calc(100vh - 36px); padding: 0; border: 0; border-radius: 28px; color: var(--ink); background: #fbf9fc; box-shadow: 0 30px 100px rgba(24,14,31,.35); overflow: auto; }
.modal::backdrop { background: rgba(20,13,26,.62); backdrop-filter: blur(7px); }
.modal-close { position: sticky; z-index: 5; float: right; top: 12px; margin: 12px 12px 0 0; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.9); font-size: 1.4rem; cursor: pointer; }
#activity-detail { padding: 30px; }
.detail-header { padding-right: 48px; }
.detail-header h2 { margin: 10px 0 12px; font-size: clamp(1.6rem,5vw,2.4rem); letter-spacing: -.04em; line-height: 1.08; }
.detail-meta { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin: 22px 0; }
.detail-meta div { padding: 13px; background: #f0ebf3; border-radius: 14px; }
.detail-meta small, .detail-meta strong { display: block; }
.detail-meta small { color: var(--muted); }
.detail-text { color: var(--muted); }
.detail-photo { width: 100%; border-radius: 17px; margin-top: 18px; }
.detail-link { display: inline-flex; margin-top: 16px; color: var(--purple); font-weight: 850; }
.food-popup { max-width: 460px; padding: 34px; text-align: center; }
.food-popup-icon { width: 72px; height: 72px; margin: 10px auto 20px; display: grid; place-items: center; border-radius: 23px; color: #fff; background: linear-gradient(145deg,#b66f17,var(--gold)); font-size: 2.3rem; }
.food-popup h2 { margin: 0; font-size: 2rem; letter-spacing: -.04em; }
.food-popup > p:not(.eyebrow) { color: var(--muted); }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 92px; transform: translate(-50%, 20px); max-width: calc(100% - 30px); padding: 11px 16px; color: #fff; background: rgba(32,23,43,.95); border-radius: 999px; opacity: 0; pointer-events: none; transition: .25s ease; font-size: .82rem; }
.toast.show { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 1050px) {
  .sponsors-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}

@media (max-width: 840px) {
  .hero { grid-template-columns: 1fr; align-items: start; }
  .event-card { min-height: 150px; }
  .cards-grid, .time-group-cards, .quick-grid, .menu-grid, .memory-grid { grid-template-columns: 1fr 1fr; }
  .map-layout { grid-template-columns: 1fr; }
  .map-notes { grid-template-columns: 1fr; }
  .sponsors-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .host-section { grid-template-columns: minmax(180px,.55fr) minmax(0,1fr); }
  .sponsors-preview { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 620px) {
  :root { --wrap: min(100% - 22px, 1180px); --radius: 20px; }
  .site-header { padding-bottom: 8px; }
  .refresh-button { width: 40px; min-height: 40px; justify-content: center; padding: 0; }
  .refresh-text { display: none; }
  .live-pill { min-height: 40px; padding: 6px 10px; }
  .connection-copy strong { font-size: .68rem; }
  .connection-copy small { font-size: .58rem; }
  .hero { padding-top: 38px; gap: 24px; }
  .brand-logo-shell { width: 76px; height: 42px; padding-inline: 5px; }
  .brand-copy { display: none; }
  .hero h1 { font-size: clamp(2.5rem,11vw,3.7rem); }
  .hero-actions .button { flex: 1 1 100%; }
  .section-stack { gap: 50px; }
  .cards-grid, .quick-grid, .menu-grid, .memory-grid { grid-template-columns: 1fr; }
  .timeline-row { grid-template-columns: 82px minmax(0,1fr); gap: 10px; }
  .timeline-space { grid-column: 2; justify-self: start; }
  .filters { top: 69px; grid-template-columns: 1fr; padding: 9px; border-radius: 19px; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; padding-inline: 6px; }
  .select-row { grid-template-columns: 1fr; }
  .select-row label:not(:first-child) { display: none; }
  .time-group { grid-template-columns: 1fr; gap: 8px; }
  .time-label { position: static; padding: 6px 10px; }
  .time-group-cards { grid-template-columns: 1fr; }
  .map-frame { padding: 11px; }
  .map-toolbar { align-items: start; }
  .map-legend { gap: 7px 11px; }
  .map-north { margin-top: 1px; }
  .ies-map { min-width: 720px; }
  .map-swipe-hint { display: block; }
  .sponsors-grid { grid-template-columns: 1fr 1fr; padding: 12px; }
  .institutes { grid-template-columns: repeat(2,1fr); }
  .host-section { grid-template-columns: 1fr; padding: 20px; border-radius: 24px; }
  .host-logo-shell { min-height: 150px; padding: 18px; }
  .host-logo-shell img { max-height: 115px; }
  .host-copy h2 { font-size: 1.75rem; }
  .home-sponsors { padding: 18px; border-radius: 22px; }
  .sponsors-preview { display: flex; overflow-x: auto; padding-bottom: 5px; scroll-snap-type: x proximity; scrollbar-width: thin; }
  .sponsor-mini { flex: 0 0 138px; scroll-snap-align: start; }
  .bottom-nav { bottom: max(7px, env(safe-area-inset-bottom)); width: calc(100% - 14px); padding: 4px; border-radius: 999px; }
  .bottom-nav button { min-height: 48px; border-radius: 999px; }
  .nav-icon { width: 19px; height: 19px; }
  .bottom-nav button small { font-size: .56rem; }
  .detail-meta { grid-template-columns: 1fr; }
  #activity-detail { padding: 24px 20px; }
  .alert { grid-template-columns: auto 1fr; }
  .alert button { grid-column: 2; justify-self: start; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.quick-icon svg,
.food-popup-icon svg,
.alert-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.food-popup-icon svg { width: 38px; height: 38px; }
.alert-icon svg { width: 20px; height: 20px; }
.alert .alert-icon { color: #8a6020; }
