@font-face {
  font-family: "Grenze Gotisch";
  src: url("../fonts/GrenzeGotisch-Variable.ttf") format("truetype-variations");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --coal: #211b17;
  --coal-soft: #2c241f;
  --ink: #302821;
  --paper: #f4ead6;
  --paper-light: #fbf6ec;
  --stone: #cbb58d;
  --wine: #7b2028;
  --wine-dark: #5f151d;
  --gold: #c49a4a;
  --gold-light: #e1bd72;
  --forest: #34483a;
  --white: #fffdf8;
  --line: rgba(48, 40, 33, .17);
  --shadow: 0 24px 60px rgba(28, 20, 14, .14);
  --serif: Georgia, "Times New Roman", serif;
  --display: "Grenze Gotisch", Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shell: min(1160px, calc(100% - 36px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.55; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .025; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 600; line-height: .94; letter-spacing: -.012em; }
h2 { font-size: clamp(2.25rem, 7vw, 4.75rem); }
.shell { width: var(--shell); margin-inline: auto; }
.section-paper { background: var(--paper); }
.section-dark { background: var(--coal); color: var(--white); }
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 1000; padding: 12px 18px; background: var(--white); color: var(--coal); border-radius: 4px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 4px; }
.eyebrow { margin-bottom: 16px; color: var(--wine); font-size: .73rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow-gold { color: var(--gold-light); }

/* Header */
.site-header { position: absolute; z-index: 20; top: 0; left: 0; width: 100%; height: 78px; padding: 0 max(18px, calc((100vw - 1160px) / 2)); display: flex; align-items: center; justify-content: space-between; color: var(--white); border-bottom: 1px solid rgba(255,255,255,.2); }
.site-header-solid { position: relative; background: var(--coal); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-crest { width: auto; height: 52px; object-fit: contain; filter: drop-shadow(0 2px 5px rgba(0,0,0,.28)); }
.brand strong, .brand small { display: block; line-height: 1.1; }
.brand strong { font-family: var(--display); font-size: 1.12rem; font-weight: 600; }
.brand small { margin-top: 4px; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; opacity: .72; }
.desktop-nav { display: none; align-items: stretch; align-self: stretch; }
.desktop-nav a { position: relative; display: grid; place-items: center; min-width: 104px; color: inherit; font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-decoration: none; text-transform: uppercase; }
.desktop-nav a::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: -1px; height: 3px; background: var(--gold); transform: scaleX(0); transition: transform .25s ease; }
.desktop-nav a:hover::after, .desktop-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Hero */
.hero { position: relative; min-height: min(820px, 100svh); height: 100svh; display: grid; align-items: end; overflow: hidden; background: var(--coal); color: var(--white); }
.hero-slides, .hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { max-width: none; object-fit: cover; object-position: 50% 50%; animation: reveal-image 1.2s ease-out both; }
/* Carrusel: cada ilustración entra con un fundido y un zoom muy lento. */
.hero-slide { animation: none; opacity: 0; transform: scale(1.06); transition: opacity var(--hero-fade, 1.4s) ease-in-out, transform 7s ease-out; will-change: opacity, transform; }
.hero-slide.is-visible { opacity: 1; transform: scale(1); }
.hero-shade { background: linear-gradient(180deg, rgba(20,15,13,.28) 0%, rgba(20,15,13,.2) 33%, rgba(20,15,13,.87) 100%), linear-gradient(90deg, rgba(20,15,13,.3), transparent 68%); }
.hero-content { position: relative; z-index: 2; padding-bottom: clamp(100px, 14vh, 140px); }
.hero-content .eyebrow { color: var(--gold-light); }
.hero h1 { max-width: 800px; margin-bottom: 22px; font-size: clamp(3.5rem, 15vw, 8.8rem); line-height: .79; letter-spacing: -.055em; text-shadow: 0 3px 25px rgba(0,0,0,.22); }
.hero h1 em { color: var(--gold-light); font-style: normal; font-weight: 450; }
.hero-subtitle { max-width: 520px; margin-bottom: 26px; font-family: var(--serif); font-size: clamp(1.05rem, 3vw, 1.4rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
/* CTA translúcido: deja ver la ilustración y adelanta el dato en vivo. */
.hero-cta { display: inline-flex; align-items: center; gap: 18px; min-height: 62px; padding: 10px 11px 10px 18px; color: var(--white); text-decoration: none; text-shadow: 0 1px 10px rgba(0,0,0,.45); background: rgba(20,15,13,.24); border: 1px solid rgba(225,189,114,.62); border-radius: 4px; transition: background .25s, border-color .25s; }
.hero-cta:hover { background: rgba(95,21,29,.42); border-color: var(--gold-light); }
.hero-cta[hidden] { display: none; }
.hero-cta-text { display: grid; gap: 3px; }
.hero-cta-kicker { display: inline-flex; align-items: center; gap: 9px; color: var(--gold-light); font-size: .63rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero-cta-kicker .pulse { width: 7px; height: 7px; box-shadow: 0 0 0 4px rgba(212,76,67,.2); }
.hero-cta-value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 11px; max-width: 32ch; font-family: var(--serif); font-size: 1.08rem; line-height: 1.2; }
.hero-count strong { font-size: 1.55rem; font-weight: 400; font-variant-numeric: tabular-nums; }
.hero-count small { margin-left: 3px; font-family: var(--sans); font-size: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .72; }
.hero-cta-arrow { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; animation: nudge 2.4s ease-in-out infinite; }
.hero-secondary { display: none; color: var(--white); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; text-shadow: 0 1px 10px rgba(0,0,0,.45); opacity: .85; }
.hero-secondary:hover { opacity: 1; }
.hero-secondary span { margin-left: 6px; color: var(--gold-light); }
@keyframes nudge { 50% { transform: translateY(3px); } }
@keyframes reveal-image { from { transform: scale(1.04); opacity: .65; } to { transform: scale(1); opacity: 1; } }

/* Durante las jornadas se prioriza la consulta inmediata desde el QR. */
body[data-event-state="en_curso"] .hero,
body[data-event-state="entre"] .hero,
body[data-event-state="fin_dia"] .hero { min-height: 390px; height: 52svh; }
body[data-event-state="en_curso"] .hero-content,
body[data-event-state="entre"] .hero-content,
body[data-event-state="fin_dia"] .hero-content { padding-bottom: 46px; }
body[data-event-state="en_curso"] .hero h1,
body[data-event-state="entre"] .hero h1,
body[data-event-state="fin_dia"] .hero h1 { font-size: clamp(3.25rem, 12vw, 6.4rem); }

/* Live section */
.live-section { position: relative; padding: 68px 0 78px; overflow: hidden; }
.live-section::before { content: "M"; position: absolute; right: -4vw; top: -60px; color: rgba(255,255,255,.025); font-family: var(--serif); font-size: 26rem; line-height: 1; }
.live-heading-row { position: relative; display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.live-heading-row h2 { margin-bottom: 0; font-size: clamp(2.4rem, 8vw, 5rem); }
.live-clock { display: none; margin-bottom: 8px; color: rgba(255,255,255,.62); font-size: .78rem; font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.live-panel { position: relative; }
.loading-card { min-height: 220px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.6); }
.live-status-banner { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--gold-light); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #d44c43; box-shadow: 0 0 0 6px rgba(212,76,67,.16); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 11px rgba(212,76,67,0); } }
.live-grid { display: grid; gap: 16px; }
.now-stack { display: grid; gap: 12px; }
.now-card, .next-card, .countdown-card, .closing-card { border: 1px solid rgba(255,255,255,.15); }
.now-card { position: relative; min-height: 290px; padding: 30px 26px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background: var(--wine); }
.now-card::after { content: ""; position: absolute; width: 170px; height: 170px; right: -95px; top: -90px; border: 1px solid rgba(255,255,255,.18); transform: rotate(45deg); }
.live-kicker { margin-bottom: 28px; font-size: .7rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.now-card h3, .next-card h3, .countdown-card h3, .closing-card h3 { margin-bottom: 16px; font-family: var(--display); font-size: clamp(1.85rem, 6.5vw, 3.05rem); font-weight: 600; line-height: .98; }
.event-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 14px; color: rgba(255,255,255,.82); font-size: .83rem; }
.event-meta span { display: inline-flex; align-items: center; gap: 7px; }
.event-meta span::before { color: var(--gold-light); font-size: .85em; }
.meta-time::before { content: "◷"; }
.meta-place::before { content: "◆"; }
.event-desc { max-width: 600px; margin: 0; color: rgba(255,255,255,.72); font-size: .9rem; }
.next-card { padding: 29px 26px; color: var(--ink); background: var(--paper-light); }
.next-card .live-kicker { color: var(--wine); }
.next-card .event-meta { color: rgba(48,40,33,.7); }
.next-card .event-meta span::before { color: var(--wine); }
.wait-time { display: inline-flex; margin-top: 10px; padding: 9px 13px; color: var(--wine-dark); background: rgba(123,32,40,.08); font-size: .78rem; font-weight: 800; }
.after-list { margin-top: 20px; padding-top: 19px; border-top: 1px solid var(--line); }
.after-list > p { margin-bottom: 12px; color: rgba(48,40,33,.6); font-size: .67rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.after-list-item { display: grid; grid-template-columns: 54px 1fr; gap: 12px; padding: 9px 0; font-size: .84rem; }
.after-list-item time { color: var(--wine); font-weight: 800; }
.live-empty { padding: 46px 28px; text-align: center; border: 1px solid rgba(255,255,255,.14); }
.live-empty h3 { margin-bottom: 12px; font-family: var(--display); font-size: 2.35rem; font-weight: 600; line-height: 1; }
.live-empty p { color: rgba(255,255,255,.7); }
.live-empty .next-card { max-width: 650px; margin: 32px auto 0; text-align: left; }
.countdown-card { padding: 34px 26px; background: linear-gradient(135deg, var(--wine), var(--wine-dark)); }
.countdown-card > p { max-width: 580px; color: rgba(255,255,255,.72); }
.countdown { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 28px 0; background: rgba(255,255,255,.17); }
.count-unit { padding: 20px 8px; text-align: center; background: rgba(63,11,17,.45); }
.count-unit strong { display: block; font-family: var(--serif); font-size: clamp(2.25rem, 11vw, 4.7rem); font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }
.count-unit span { display: block; margin-top: 7px; color: rgba(255,255,255,.64); font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.button-light, .button-quiet { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid transparent; text-decoration: none; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.button-light { color: var(--coal); background: var(--white); }
.button-quiet { color: var(--wine); border-color: var(--line); background: transparent; }

/* Content sections */
.quick-actions { padding: 78px 0; }
.section-heading { display: grid; gap: 14px; margin-bottom: 38px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 480px; margin: 0; color: rgba(48,40,33,.65); }
.action-grid { display: grid; gap: 14px; }
.action-card { min-height: 145px; display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; gap: 12px; padding: 22px; border: 1px solid var(--line); color: var(--ink); background: rgba(255,255,255,.3); text-decoration: none; transition: transform .25s, box-shadow .25s, background .25s; }
.action-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); background: var(--paper-light); }
.action-card-program { color: var(--white); background: var(--wine); border-color: var(--wine); }
.action-card-program:hover { background: var(--wine-dark); }
.action-number { align-self: start; color: var(--gold); font-family: var(--serif); font-size: 1.25rem; }
.action-card strong, .action-card small { display: block; }
.action-card strong { margin-bottom: 7px; font-family: var(--display); font-size: 1.5rem; font-weight: 600; line-height: 1; }
.action-card small { opacity: .66; line-height: 1.35; }
.arrow { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid currentColor; border-radius: 50%; opacity: .7; }
.story-section { display: grid; color: var(--white); background: var(--coal-soft); }
.story-image-wrap { min-height: 360px; }
.story-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.story-copy { padding: 62px max(18px, calc((100vw - 1160px) / 2)); }
.story-copy h2 { max-width: 660px; margin-bottom: 28px; }
.story-copy > p:not(.eyebrow) { max-width: 620px; color: rgba(255,255,255,.67); }
.text-link { display: inline-block; margin-top: 16px; color: var(--gold-light); text-decoration: none; font-size: .75rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.text-link span { margin-left: 8px; }
.notice-section { padding: 78px 0 90px; }
.notice-grid { display: grid; gap: 35px; }
.notice-grid h2 { margin: 0; }
.notice-list { border-top: 1px solid var(--line); }
.notice-list article { display: grid; grid-template-columns: 46px 1fr; gap: 15px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.notice-icon { display: grid; place-items: center; width: 42px; height: 42px; color: var(--wine); font-family: var(--serif); font-size: 1.2rem; border: 1px solid var(--wine); border-radius: 50%; }
.notice-list h3 { margin-bottom: 6px; font-family: var(--display); font-size: 1.45rem; font-weight: 600; line-height: 1; }
.notice-list p { margin: 0; color: rgba(48,40,33,.64); font-size: .88rem; }

/* Page heroes */
.page-hero { position: relative; min-height: 420px; display: flex; align-items: end; overflow: hidden; color: var(--white); background: var(--coal); }
.page-hero-image, .page-hero-shade { position: absolute; inset: 0; }
.page-hero-image { background-size: cover; background-position: center; }
.page-hero-program .page-hero-image { background-image: url("../assets/charcoal/pasacalles3-charcoal.jpg"); background-position: center 36%; }
.page-hero-places .page-hero-image { background-image: url("../assets/charcoal/castillo4-charcoal.jpg"); }
.page-hero-shade { background: linear-gradient(180deg, rgba(25,18,15,.18), rgba(25,18,15,.87)); }
.page-hero-content { position: relative; padding-bottom: 55px; }
.page-hero-content .eyebrow { color: var(--gold-light); }
.page-hero h1 { margin-bottom: 14px; font-size: clamp(4rem, 15vw, 8rem); }
.page-hero-content > p:last-child { max-width: 540px; margin: 0; color: rgba(255,255,255,.78); }

/* Schedule */
.schedule-section { padding: 68px 0 90px; }
.schedule-top { display: grid; gap: 24px; margin-bottom: 30px; }
.schedule-top h2 { margin: 0; }
.schedule-top .button-quiet { justify-self: start; }
.day-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 36px; }
.day-tab { min-height: 84px; padding: 10px 5px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.day-tab span, .day-tab strong { display: block; }
.day-tab span { margin-bottom: 3px; font-size: .63rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.day-tab strong { font-family: var(--serif); font-size: 1.55rem; font-weight: 400; }
.day-tab[aria-selected="true"] { color: var(--white); background: var(--wine); border-color: var(--wine); }
.schedule-day { display: none; }
.schedule-day.is-active, .schedule-list.show-all .schedule-day { display: block; }
.schedule-list.show-all .schedule-day + .schedule-day { margin-top: 64px; }
.day-heading { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; padding-bottom: 13px; border-bottom: 2px solid var(--ink); }
.day-heading h3 { margin: 0; font-family: var(--display); font-size: clamp(2.25rem, 7.5vw, 3.8rem); font-weight: 600; line-height: 1; }
.day-heading span { color: var(--wine); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.schedule-row { position: relative; display: grid; grid-template-columns: 66px 1fr; gap: 13px; padding: 21px 0; border-bottom: 1px solid var(--line); }
.schedule-row.is-now { margin-inline: -14px; padding-inline: 14px; background: rgba(123,32,40,.07); }
.schedule-row.is-now::before { content: "Ahora"; position: absolute; right: 10px; top: 10px; color: var(--wine); font-size: .57rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.schedule-time { color: var(--wine); font-family: var(--serif); font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.schedule-row h4 { margin: 1px 0 7px; padding-right: 38px; font-family: var(--display); font-size: 1.35rem; font-weight: 600; line-height: 1.05; }
.schedule-meta { margin: 0; color: rgba(48,40,33,.59); font-size: .77rem; }
.schedule-description { margin: 9px 0 0; color: rgba(48,40,33,.72); font-size: .84rem; }
.category-tag { display: inline-block; margin-top: 10px; padding: 4px 8px; color: var(--wine); background: rgba(123,32,40,.08); font-size: .59rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.permanent-section { margin-top: 76px; padding: 48px 22px; color: var(--white); background: var(--forest); }
.permanent-heading h2 { margin-bottom: 30px; }
.permanent-grid { display: grid; }
.permanent-card { padding: 19px 0; border-top: 1px solid rgba(255,255,255,.18); }
.permanent-card h3 { margin-bottom: 5px; font-family: var(--display); font-size: 1.4rem; font-weight: 600; line-height: 1; }
.permanent-card p { margin: 0; color: rgba(255,255,255,.6); font-size: .75rem; }
.schedule-note { margin: 34px 0 0; padding: 18px; border-left: 3px solid var(--gold); background: rgba(255,255,255,.34); font-size: .78rem; }

/* Places */
.places-section { padding: 72px 0 90px; }
.places-intro { margin-bottom: 44px; }
.places-grid { display: grid; gap: 24px; }
.place-card { overflow: hidden; border: 1px solid var(--line); background: rgba(255,255,255,.32); box-shadow: 0 10px 32px rgba(45,32,24,.06); }
.place-image { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--stone); }
.place-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.place-card:hover .place-image img { transform: scale(1.035); }
.place-index { position: absolute; left: 13px; bottom: 13px; display: grid; place-items: center; width: 38px; height: 38px; color: var(--white); background: var(--wine); font-family: var(--serif); }
.place-body { padding: 23px 20px 25px; }
.place-body h3 { margin-bottom: 10px; font-family: var(--display); font-size: 1.8rem; font-weight: 600; line-height: 1; }
.place-body > p { color: rgba(48,40,33,.67); font-size: .86rem; }
.place-note { display: flex; gap: 9px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--wine); font-size: .74rem; font-weight: 650; }
.place-events { margin-top: 14px; font-size: .72rem; color: rgba(48,40,33,.55); }
.route-section { padding: 74px 0; }
.route-grid { display: grid; gap: 42px; }
.route-grid h2 { margin-bottom: 25px; }
.route-grid > div:first-child > p:last-child { color: rgba(255,255,255,.66); }
.route-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.17); border-left: 1px solid rgba(255,255,255,.17); }
.route-stats div { min-height: 125px; padding: 20px 12px; border-right: 1px solid rgba(255,255,255,.17); border-bottom: 1px solid rgba(255,255,255,.17); }
.route-stats strong, .route-stats span { display: block; }
.route-stats strong { color: var(--gold-light); font-family: var(--serif); font-size: 2.6rem; font-weight: 400; }
.route-stats span { color: rgba(255,255,255,.6); font-size: .66rem; }

/* Footer and mobile navigation */
.site-footer { padding: 60px 0 105px; color: rgba(255,255,255,.68); background: #171310; }
.footer-grid { display: grid; gap: 35px; }
.footer-grid > div:first-child { display: flex; align-items: center; gap: 15px; color: var(--white); font-family: var(--serif); }
.footer-crest { width: auto; height: 72px; object-fit: contain; filter: drop-shadow(0 3px 7px rgba(0,0,0,.3)); }
.footer-grid p { margin: 0; font-size: .78rem; }
.footer-label { margin-bottom: 9px !important; color: var(--gold-light); font-size: .61rem !important; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.visit-counter strong, .visit-counter span { display: block; }
.visit-counter strong { color: var(--white); font-family: var(--serif); font-size: 2rem; font-weight: 400; line-height: .9; font-variant-numeric: tabular-nums; }
.visit-counter span { margin-top: 7px; font-size: .68rem; }
.mobile-nav { position: fixed; z-index: 40; left: 9px; right: 9px; bottom: 8px; height: 68px; display: grid; grid-template-columns: repeat(3, 1fr); padding: 5px; border: 1px solid rgba(255,255,255,.11); border-radius: 9px; color: rgba(255,255,255,.55); background: rgba(25,20,17,.96); box-shadow: 0 8px 35px rgba(0,0,0,.3); backdrop-filter: blur(14px); }
.mobile-nav a { display: grid; place-items: center; align-content: center; gap: 1px; text-decoration: none; font-size: .62rem; font-weight: 700; }
.mobile-nav a span { font-size: 1.12rem; }
.mobile-nav a[aria-current="page"] { color: var(--gold-light); background: rgba(255,255,255,.06); border-radius: 5px; }
.noscript { position: fixed; z-index: 100; left: 10px; right: 10px; bottom: 85px; padding: 15px; background: var(--white); box-shadow: var(--shadow); }

@media (min-width: 640px) {
  :root { --shell: min(1160px, calc(100% - 64px)); }
  .live-clock { display: block; }
  .countdown { grid-template-columns: repeat(4, 1fr); }
  .hero-secondary { display: inline-block; }
  .section-heading { grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr); align-items: end; }
  .action-grid, .places-grid { grid-template-columns: repeat(2, 1fr); }
  .schedule-top { grid-template-columns: 1fr auto; align-items: end; }
  .schedule-top .button-quiet { justify-self: end; }
  .schedule-row { grid-template-columns: 90px 1fr; gap: 20px; }
  .schedule-time { font-size: 1.55rem; }
  .schedule-row h4 { font-size: 1.35rem; }
  .permanent-grid { grid-template-columns: repeat(2, 1fr); gap: 0 26px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 880px) {
  .site-header { height: 88px; }
  .desktop-nav { display: flex; }
  .mobile-nav { display: none; }
  .hero-content { padding-bottom: 96px; }
  body[data-event-state="en_curso"] .hero,
  body[data-event-state="entre"] .hero,
  body[data-event-state="fin_dia"] .hero { min-height: 520px; height: 68svh; }
  body[data-event-state="en_curso"] .hero-content,
  body[data-event-state="entre"] .hero-content,
  body[data-event-state="fin_dia"] .hero-content { padding-bottom: 70px; }
  .hero-cta { padding-left: 22px; }
  .hero-cta-value { font-size: 1.2rem; }
  .live-section { padding: 105px 0 120px; }
  .live-grid { grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); gap: 24px; align-items: stretch; }
  .now-stack { align-content: stretch; }
  .now-card { min-height: 100%; padding: 38px; }
  .next-card { padding: 38px; }
  .countdown-card { padding: 46px; }
  .quick-actions, .notice-section { padding-block: 115px; }
  .action-card { min-height: 190px; padding: 30px; grid-template-columns: 52px 1fr 46px; }
  .action-card strong { font-size: 1.75rem; }
  .story-section { grid-template-columns: 1.1fr .9fr; min-height: 670px; }
  .story-copy { padding: 110px max(40px, calc((100vw - 1160px) / 2)); display: flex; flex-direction: column; justify-content: center; }
  .notice-grid { grid-template-columns: .85fr 1.15fr; gap: 90px; }
  .page-hero { min-height: 560px; }
  .page-hero-content { padding-bottom: 75px; }
  .schedule-section, .places-section { padding-block: 105px 125px; }
  .schedule-shell { max-width: 1000px; }
  .day-tabs { margin-bottom: 60px; }
  .day-tab { min-height: 105px; }
  .day-tab strong { font-size: 2rem; }
  .schedule-row { padding-block: 26px; }
  .permanent-section { padding: 66px; }
  .places-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .places-grid .place-card:first-child { grid-column: span 2; }
  .places-grid .place-card:first-child .place-image { aspect-ratio: 16/7; }
  .route-section { padding-block: 110px; }
  .route-grid { grid-template-columns: 1fr 1fr; align-items: end; gap: 90px; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
  .site-footer { padding: 76px 0; }
}

@media (min-width: 1180px) {
  .story-copy { padding-right: calc((100vw - 1160px) / 2); padding-left: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  /* El fundido del carrusel se mantiene; solo se elimina el zoom. */
  .hero-slide { transform: none; transition: opacity var(--hero-fade, 1.4s) ease-in-out !important; }
}
