/* ==========================================================
   Auditorio Municipal José Luis Miranda Roldán — web pública
   ========================================================== */
:root {
  --ink: #16110e;
  --ink-2: #211915;
  --ink-3: #2d231d;
  --paper: #f7f2ea;
  --paper-2: #efe6d8;
  --white: #fffdf9;
  --text: #2a211c;
  --muted: #7b6b5f;
  --line: rgba(42, 33, 28, .13);
  --line-light: rgba(255, 245, 230, .14);
  --cherry: #9c3f22;
  --copper: #c8743f;
  --gold: #d9a35b;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(22,17,14,.06), 0 12px 32px -12px rgba(22,17,14,.18);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.65; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; }
h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
.muted { color: var(--muted); }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: .9rem; }
.eyebrow--dark { color: var(--cherry); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .85em 1.5em; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--white); }
.btn--ghost { border-color: rgba(255,245,230,.45); color: var(--paper); }
.btn--ghost:hover { background: rgba(255,245,230,.1); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--ink-3); }
.btn--accent { background: var(--copper); color: #fff; }
.btn--accent:hover { background: #b5622f; }
.btn--outline { border-color: var(--line); color: var(--text); background: transparent; }
.btn--outline:hover { border-color: var(--text); }
.btn--small { padding: .45em 1em; font-size: .85rem; }
.link-arrow { font-weight: 600; font-size: .9rem; color: var(--cherry); text-decoration: none; }
.link-arrow::after { content: " →"; }
.iconbtn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); display: grid; place-items: center; transition: border-color .2s; }
.iconbtn:hover { border-color: var(--text); }
.iconbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Cabecera ---------- */
.topbar { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--paper); transition: background .3s, box-shadow .3s; }
.topbar.is-scrolled, .topbar.is-open { background: rgba(22,17,14,.94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line-light); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 36px; height: 36px; color: var(--gold); }
.brand__mark svg { width: 100%; height: 100%; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand__txt small { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; opacity: .75; }
.brand__txt strong { font-family: var(--serif); font-size: 1.22rem; font-weight: 600; }
.mainnav { display: flex; align-items: center; gap: 4px; }
.mainnav a { text-decoration: none; font-size: .9rem; font-weight: 500; padding: .5em .85em; border-radius: 999px; opacity: .88; transition: opacity .2s, background .2s; }
.mainnav a:hover { opacity: 1; background: rgba(255,245,230,.08); }
.mainnav__cta { border: 1px solid rgba(255,245,230,.4); margin-left: 8px; opacity: 1 !important; }
.navtoggle { display: none; width: 44px; height: 44px; background: none; border: 0; color: inherit; position: relative; }
.navtoggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, top .25s; }
.navtoggle span:first-child { top: 17px; }
.navtoggle span:last-child { top: 25px; }
.navtoggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.navtoggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(92vh, 860px); color: var(--paper); display: flex; flex-direction: column; justify-content: flex-end; padding: 120px 0 40px; overflow: hidden; background: var(--ink); }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center 35%; transform: scale(1.04); }
.hero__bg::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(22,17,14,.55) 0%, rgba(22,17,14,.25) 35%, rgba(22,17,14,.82) 78%, var(--ink) 100%),
  linear-gradient(90deg, rgba(22,17,14,.7) 0%, rgba(22,17,14,0) 65%); }
.hero__in { position: relative; max-width: var(--wrap); padding-bottom: 48px; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 1; letter-spacing: -.015em; max-width: 14ch; }
.hero h1 em { font-style: italic; color: var(--gold); font-weight: 500; }
.hero__lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); max-width: 46ch; margin: 1.4rem 0 2rem; color: rgba(247,242,234,.86); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.figures { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid var(--line-light); }
.figures div { padding: 22px 20px 4px 0; }
.figures div + div { padding-left: 24px; border-left: 1px solid var(--line-light); }
.figures dt { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(247,242,234,.6); }
.figures dd { margin: 4px 0 0; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; line-height: 1; color: var(--paper); }
.figures dd span { font-size: .5em; color: var(--gold); }

/* ---------- Secciones ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--paper); }
.section__head { margin-bottom: clamp(28px, 4vw, 48px); }
.section__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* ---------- Próximos eventos ---------- */
.upcoming { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.ucard { display: flex; gap: 18px; padding: 20px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.ucard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.ucard--first { grid-column: span 2; grid-row: span 2; flex-direction: column; padding: 32px; background: var(--ink); color: var(--paper); }
.ucard--first h3 { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 600; }
.ucard--first .ucard__date { flex-direction: row; align-items: baseline; gap: 10px; text-align: left; }
.ucard--first .ucard__day { font-size: 4rem; }
.ucard--first .ucard__meta { color: rgba(247,242,234,.7); }
.ucard--first .link-arrow { color: var(--gold); }
.ucard--first .tag { background: rgba(255,245,230,.1); color: var(--paper); }
.ucard__date { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 48px; line-height: 1; }
.ucard__dow, .ucard__mon { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.ucard--first .ucard__dow, .ucard--first .ucard__mon { color: var(--gold); font-size: .85rem; }
.ucard__day { font-family: var(--serif); font-size: 2.3rem; font-weight: 600; margin: 2px 0; }
.ucard__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ucard__body h3 { overflow-wrap: anywhere; }
.ucard__meta { font-size: .88rem; color: var(--muted); margin: 0; }
.ucard__desc { margin: 8px 0 4px; color: rgba(247,242,234,.82); max-width: 52ch; }
.tag { align-self: flex-start; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .3em .7em; border-radius: 999px; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }

/* ---------- Calendario ---------- */
.cal { display: grid; grid-template-columns: 1fr 340px; background: var(--white); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); overflow: hidden; }
.cal__main { padding: 24px; }
.cal__bar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.cal__title { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; flex: 1; text-align: center; text-transform: capitalize; order: 0; }
.cal__bar [data-cal="today"] { order: 3; }
.cal__dow, .cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal__dow span { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: center; padding-bottom: 8px; }
.cal__grid { gap: 4px; }
.cal__day { min-height: 92px; border-radius: 10px; padding: 6px; background: var(--paper); border: 1px solid transparent; text-align: left; display: flex; flex-direction: column; gap: 3px; color: var(--text); transition: border-color .2s, background .2s; min-width: 0; }
.cal__day:hover { border-color: var(--line); }
.cal__day.is-out { background: transparent; color: #b9ab9f; }
.cal__day.is-today .cal__num { background: var(--ink); color: var(--paper); }
.cal__day.is-selected { border-color: var(--copper); background: #fbf3ea; }
.cal__day.has-events { cursor: pointer; }
.cal__num { font-size: .82rem; font-weight: 700; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.cal__chip { display: block; font-size: .72rem; line-height: 1.3; padding: 2px 6px; border-radius: 5px; background: color-mix(in srgb, var(--c) 16%, white); color: color-mix(in srgb, var(--c) 80%, black); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.cal__chip.is-cancelled { text-decoration: line-through; opacity: .6; }
.cal__more { font-size: .7rem; color: var(--muted); padding-left: 4px; }
.cal__dots { display: none; gap: 3px; justify-content: center; }
.cal__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.cal__side { background: var(--paper-2); padding: 24px; border-left: 1px solid var(--line); max-height: 660px; overflow: auto; }
.cal__sidehead { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-weight: 700; }
.cal__list { display: flex; flex-direction: column; gap: 10px; }
.evitem { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 12px; background: var(--white); border-radius: 10px; border: 1px solid var(--line); text-align: left; color: inherit; width: 100%; transition: border-color .2s; }
.evitem:hover { border-color: var(--copper); }
.evitem__d { text-align: center; line-height: 1; border-right: 1px solid var(--line); padding-right: 10px; }
.evitem__d b { display: block; font-family: var(--serif); font-size: 1.6rem; }
.evitem__d small { font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.evitem h5 { margin: 2px 0; font-size: .95rem; line-height: 1.3; }
.evitem p { margin: 0; font-size: .8rem; color: var(--muted); }
.evitem .tag { font-size: .62rem; }
.evitem.is-cancelled h5 { text-decoration: line-through; color: var(--muted); }
.empty { text-align: center; padding: 28px 8px; color: var(--muted); font-size: .92rem; }
.empty svg { width: 34px; height: 34px; margin: 0 auto 8px; stroke: var(--copper); fill: none; stroke-width: 1.5; }

/* ---------- Bloques partidos ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--rev .split__text { order: 0; }
.split__media { margin: 0; }
.split__media img { height: auto; border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); aspect-ratio: 4 / 3.1; object-fit: cover; width: 100%; }
.split__text h2 { margin-bottom: 1.2rem; }
.split__text p { color: #4a3d34; }
.checks { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.checks li { position: relative; padding-left: 26px; font-weight: 600; font-size: .93rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2px solid var(--copper); border-bottom: 2px solid var(--copper); transform: rotate(-45deg); }

/* ---------- Ficha técnica ---------- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line-light); margin-bottom: 32px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { background: none; border: 0; color: rgba(247,242,234,.6); padding: 12px 16px; font-weight: 600; font-size: .95rem; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color .2s; }
.tabs button:hover { color: var(--paper); }
.tabs button[aria-selected="true"] { color: var(--paper); border-bottom-color: var(--gold); }
.tech { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; animation: fade .35s ease; }
.tech img { height: auto; border-radius: var(--radius); aspect-ratio: 16 / 10.5; object-fit: cover; width: 100%; }
.tech .tech__img--contain { object-fit: contain; background: #fff; }
.tech h3 { font-family: var(--serif); font-size: 2rem; font-weight: 600; margin-bottom: 18px; }
.specs { margin: 0; }
.specs div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-light); }
.specs dt { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); padding-top: 2px; }
.specs dd { margin: 0; color: rgba(247,242,234,.92); }
.note { margin-top: 18px; font-size: .88rem; color: rgba(247,242,234,.65); border-left: 2px solid var(--copper); padding-left: 12px; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 12px; }
.gallery__item { position: relative; border-radius: 12px; overflow: hidden; background: var(--paper-2); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; font-size: .82rem; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); opacity: 0; transition: opacity .3s; }
.gallery__item:hover span, .gallery__item:focus-visible span { opacity: 1; }
.g0 { grid-column: span 2; grid-row: span 2; }
.g1 { grid-column: span 2; }
.g5 { grid-column: span 2; }

/* ---------- Cómo llegar ---------- */
.lead-addr { font-family: var(--serif); font-size: 1.45rem; line-height: 1.35; color: var(--text) !important; }
.info-list { display: grid; gap: 18px; margin: 26px 0 30px; }
.info-list div { padding-left: 18px; border-left: 2px solid var(--copper); }
.info-list h4 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
.info-list p { margin: 0; font-size: .95rem; }
.map { position: relative; }
.map iframe { width: 100%; aspect-ratio: 4 / 3.4; border: 0; border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); filter: saturate(.75) sepia(.12); background: var(--paper-2); }
.map__photo { position: absolute; width: 42%; right: -18px; bottom: -28px; border-radius: 12px; border: 5px solid var(--white); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 80px); }
.contact__info p { color: rgba(247,242,234,.78); max-width: 44ch; margin-top: 1rem; }
.contact__lines { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 14px; }
.contact__lines li { display: flex; gap: 12px; align-items: flex-start; color: rgba(247,242,234,.9); }
.contact__lines .ico { color: var(--gold); margin-top: 3px; }
.contact__lines a { text-decoration: none; border-bottom: 1px solid rgba(217,163,91,.4); }
.form { display: grid; gap: 16px; }
.contact__form { background: var(--ink-2); border: 1px solid var(--line-light); padding: clamp(22px, 4vw, 36px); border-radius: calc(var(--radius) + 4px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .82rem; font-weight: 600; color: rgba(247,242,234,.8); }
.form label small { font-weight: 400; opacity: .7; }
.form input, .form select, .form textarea { font: inherit; font-size: 1rem; color: var(--paper); background: var(--ink); border: 1px solid var(--line-light); border-radius: 10px; padding: .75em .9em; width: 100%; transition: border-color .2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); }
.form input[type="date"] { color-scheme: dark; }
.form textarea { resize: vertical; min-height: 130px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--copper); flex: none; }
.form .btn { justify-self: start; }
.hp { position: absolute !important; left: -9999px !important; }
.alert { padding: 12px 16px; border-radius: 10px; font-size: .92rem; font-weight: 500; }
.alert--ok { background: rgba(86,150,90,.16); color: #b9e2bb; border: 1px solid rgba(86,150,90,.4); }
.alert--error { background: rgba(200,80,60,.15); color: #f4c0b4; border: 1px solid rgba(200,80,60,.4); }
.form__status:empty { display: none; }

/* ---------- Pie ---------- */
.footer { background: #0e0b09; color: rgba(247,242,234,.7); padding: 36px 0; font-size: .88rem; }
.footer__in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer strong { color: var(--paper); font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.footer p { margin: 2px 0 0; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: var(--paper); }

/* ---------- Lightbox y modal ---------- */
.lightbox, .modal { position: fixed; inset: 0; z-index: 90; background: rgba(12,9,7,.92); display: grid; place-items: center; padding: 20px; }
.lightbox[hidden], .modal[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); }
.lightbox img { max-height: 80vh; margin: 0 auto; border-radius: 8px; }
.lightbox figcaption { color: var(--paper); text-align: center; margin-top: 12px; font-size: .92rem; }
.lightbox__close, .modal__close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; font-size: 1.6rem; line-height: 1; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; font-size: 2rem; line-height: 1; }
.lightbox__prev { left: 14px; } .lightbox__next { right: 14px; }
.modal__card { position: relative; background: var(--white); border-radius: 18px; max-width: 560px; width: 100%; max-height: 90vh; overflow: auto; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.modal__close { background: var(--paper); color: var(--text); }
.modal__body { padding: 32px; }
.modal__body h3 { font-family: var(--serif); font-size: 2rem; font-weight: 600; margin: 10px 40px 8px 0; }
.modal__body .when { font-weight: 600; color: var(--cherry); margin-bottom: 14px; }
.modal__body .desc { white-space: pre-line; color: #4a3d34; }
.modal__body dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .92rem; margin: 18px 0; }
.modal__body dt { color: var(--muted); }
.modal__body dd { margin: 0; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .cal { grid-template-columns: 1fr; }
  .cal__side { border-left: 0; border-top: 1px solid var(--line); max-height: none; }
  .upcoming { grid-template-columns: 1fr 1fr; }
  .ucard--first { grid-row: auto; }
}

@media (max-width: 860px) {
  .navtoggle { display: block; }
  .mainnav { position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; background: rgba(22,17,14,.97); padding: 12px 16px 24px; gap: 2px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; border-bottom: 1px solid var(--line-light); }
  .mainnav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .mainnav a { padding: 14px 12px; font-size: 1.05rem; border-radius: 10px; }
  .mainnav__cta { margin: 8px 0 0; text-align: center; }
  .split, .tech, .contact { grid-template-columns: 1fr; }
  .split--rev .split__text { order: 0; }
  .map { margin-bottom: 20px; }
  .map__photo { right: 10px; bottom: -20px; width: 38%; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .g0 { grid-column: span 2; grid-row: span 2; }
  .g1, .g5 { grid-column: span 2; }
  .gallery__item span { opacity: 1; font-size: .74rem; padding: 24px 10px 8px; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .brand__txt strong { font-size: 1.05rem; }
  .brand__txt small { font-size: .6rem; }
  .hero { min-height: 92svh; padding-bottom: 28px; }
  .hero__in { padding-bottom: 32px; }
  .figures { grid-template-columns: 1fr 1fr; }
  .figures div { padding: 16px 0 12px; }
  .figures div + div { border-left: 0; padding-left: 0; }
  .figures div:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line-light); }
  .figures div:nth-child(n+3) { border-top: 1px solid var(--line-light); }
  .upcoming { grid-template-columns: 1fr; }
  .ucard--first { grid-column: auto; padding: 24px; }
  .ucard--first .ucard__day { font-size: 3rem; }
  .cal__main { padding: 16px 12px; }
  .cal__title { font-size: 1.5rem; }
  .cal__bar { flex-wrap: wrap; }
  .cal__bar [data-cal="today"] { order: 4; width: 100%; justify-content: center; }
  .cal__grid { gap: 3px; }
  .cal__day { min-height: 48px; padding: 4px 2px; align-items: center; }
  .cal__num { width: 28px; height: 28px; font-size: .85rem; }
  .cal__chip, .cal__more { display: none; }
  .cal__dots { display: flex; }
  .cal__side { padding: 18px 14px; }
  .checks { grid-template-columns: 1fr; }
  .specs div { grid-template-columns: 1fr; gap: 2px; }
  .form__row { grid-template-columns: 1fr; }
  .form .btn { justify-self: stretch; justify-content: center; }
  .section__head--row .btn { width: 100%; justify-content: center; }
  .modal { padding: 0; align-items: end; }
  .modal__card { border-radius: 18px 18px 0 0; max-height: 88vh; }
  .modal__body { padding: 26px 20px; }
  .footer__in { flex-direction: column; align-items: flex-start; }
}

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

/* ==========================================================
   v2 · Escudo, carteles y nota de uso del espacio
   ========================================================== */
.brand__shield { width: 32px; height: 47px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,.45)); flex: none; }

/* Tarjetas con cartel */
.ucard { cursor: pointer; transition: transform .2s, box-shadow .2s; }
.ucard:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(22,17,14,.06), 0 18px 40px -14px rgba(22,17,14,.28); }
.ucard__poster { flex: none; order: 3; width: 64px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; margin-left: auto; align-self: flex-start; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.ucard--first.has-poster { padding-right: calc(32px + 38%); min-height: 380px; }
.ucard--first .ucard__poster { position: absolute; top: 0; right: 0; bottom: 0; width: 38%; height: 100%; aspect-ratio: auto; border-radius: 0; margin: 0; object-position: top center; box-shadow: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }

/* Nota de uso del espacio */
.legal-note { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 28px; padding: 14px 18px; border-radius: 12px; font-size: .92rem; line-height: 1.5; background: var(--paper); color: #4a3d34; border-left: 3px solid var(--copper); }
.legal-note .ico { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--copper); }
.legal-note--dark { background: rgba(255,245,230,.06); color: rgba(247,242,234,.88); border-left-color: var(--gold); }
.legal-note--dark .ico { color: var(--gold); }
.legal-note--compact { margin: 1.4rem 0 0; font-size: .86rem; max-width: 46ch; }

/* Pie con escudo */
.footer__brand { display: flex; align-items: center; gap: 16px; }
.footer__brand img { width: 64px; height: auto; flex: none; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
.footer__legal { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,245,230,.1); font-size: .8rem; color: rgba(247,242,234,.55); }

/* Cartel en la ficha del evento */
.modal__card.has-poster { max-width: 860px; display: grid; grid-template-columns: 300px 1fr; }
.modal__poster { width: 100%; height: 100%; min-height: 420px; max-height: 90vh; object-fit: contain; background: var(--ink); }
.modal__poster-link { display: block; background: var(--ink); }

@media (max-width: 1020px) {
  .ucard--first.has-poster { padding-right: calc(32px + 34%); min-height: 320px; }
  .ucard--first .ucard__poster { width: 34%; }
}
@media (max-width: 640px) {
  .ucard--first.has-poster { padding: 0 0 24px; min-height: 0; }
  .ucard--first.has-poster > :not(.ucard__poster) { margin-left: 24px; margin-right: 24px; }
  .ucard--first .ucard__poster { position: static; order: -1; width: 100%; height: auto; aspect-ratio: 4 / 5; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); margin-bottom: -40px; }
  .ucard__poster { width: 56px; }
  .modal__card.has-poster { grid-template-columns: 1fr; }
  .modal__poster { min-height: 0; max-height: 46vh; }
  .footer__brand img { width: 52px; }
}

/* Menú: pasa a desplegable antes de que los enlaces se partan */
.mainnav a { white-space: nowrap; }
.brand__txt strong { white-space: nowrap; }
@media (max-width: 1040px) {
  .navtoggle { display: block; }
  .mainnav { position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; background: rgba(22,17,14,.97); padding: 12px 16px 24px; gap: 2px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; border-bottom: 1px solid var(--line-light); }
  .mainnav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .mainnav a { padding: 14px 12px; font-size: 1.05rem; border-radius: 10px; }
  .mainnav__cta { margin: 8px 0 0; text-align: center; }
}
@media (max-width: 400px) {
  .brand__txt strong { font-size: .95rem; }
}

/* Acceso para administradores en la cabecera */
.mainnav__admin { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; opacity: .75 !important; }
.mainnav__admin:hover { opacity: 1 !important; }
.mainnav__admin .ico { width: 16px; height: 16px; }

@media (max-width: 1040px) { .mainnav__admin { margin: 6px 0 0; justify-content: center; border-top: 1px solid var(--line-light); padding-top: 16px !important; } }

/* Streaming de YouTube */
.ucard__links { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-top: 2px; }
.link-live { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; color: #c4302b; text-decoration: none; }
.link-live .ico { width: 18px; height: 18px; }
.ucard--first .link-live { color: #ff6b62; }
.live-dot { color: #c4302b; font-weight: 600; }
.modal__video { position: relative; aspect-ratio: 16 / 9; margin: 6px 0 18px; border-radius: 12px; overflow: hidden; background: #000; }
.modal__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.modal__actions:empty { display: none; }

@media (max-width: 1040px) { .mainnav { background: var(--ink); } }
.footer__credits { margin-top: 10px; font-size: .78rem; color: rgba(247,242,234,.45); }
