:root { color-scheme: light; --red: #f20b19; --ink: #101820; --muted: #4e6073; --line: #dce2e7; --soft-red: #fff0f0; font-family: Arial, Helvetica, sans-serif; color: var(--ink); background: #fff; }
* { box-sizing: border-box; }
body { margin: 0; font-size: 18px; line-height: 1.5; }
a { color: inherit; }
button { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
.container { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.icon { width: 25px; height: 25px; flex: 0 0 auto; }
.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; }
:focus-visible { outline: 3px solid #145dcc; outline-offset: 5px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 10; padding: 12px 18px; background: #fff; clip-path: inset(100%); }
.skip-link:focus { clip-path: none; }
.site-header { border-bottom: 3px solid var(--red); }
.brand { display: flex; align-items: center; gap: 38px; min-height: 164px; padding-block: 16px; }
.brand-logo { flex: 0 0 106px; }
.brand-logo img { width: 100%; max-height: 130px; object-fit: contain; }
h1, h2, h3, p { margin-top: 0; }
.brand h1 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.1; letter-spacing: -1.4px; margin-bottom: 6px; color: #07090b; }
.brand p { font-size: clamp(16px, 1.9vw, 22px); margin: 0; color: var(--muted); }
.banners { display: grid; gap: 12px; margin-block: 24px 30px; }
.banner { display: flex; align-items: center; gap: 22px; padding: 15px 24px; border: 1px solid var(--line); border-radius: 9px; text-decoration: none; min-height: 92px; }
.banner-red { color: #d80714; border-color: #ffc4c8; background: var(--soft-red); }
.banner-black { color: var(--ink); background: #fafbfc; }
.banner-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: #fff; flex: 0 0 auto; }
.banner-red .banner-icon { background: var(--red); }
.banner-icon .icon { width: 29px; height: 29px; }
.banner-copy { flex: 1; min-width: 0; }
.banner-copy strong { display: block; font-size: 22px; line-height: 1.3; }
.banner-copy > span { display: block; color: var(--muted); font-size: 18px; margin-top: 2px; }
a.banner:hover { border-color: currentColor; }
.agenda-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .38fr); gap: 28px; margin-top: 26px; }
.agenda-grid:not(:has(.additional)) { grid-template-columns: minmax(0, 1fr); }
.events > h2 { font-size: clamp(26px, 3.1vw, 38px); letter-spacing: -.9px; line-height: 1.15; margin-bottom: 20px; color: #07090b; }
.event { margin-bottom: 30px; }
.event-date { display: flex; gap: 9px; align-items: center; font-size: 32px; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.event-date .icon { color: var(--red); width: 28px; height: 28px; }
.event-card { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.event-card img, .additional-card img { width: 100%; }
.event-link { display: block; text-decoration: none; }
.event-link:hover .event-info { background: var(--soft-red); }
.event-notice { display: block; padding: 12px 17px; border-top: 1px solid var(--line); background: var(--soft-red); color: #a80812; text-align: center; font-size: 18px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; white-space: pre-line; }
.event-info { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 17px; border-top: 1px solid var(--line); font-size: 16px; font-weight: 400; }
.event-info .icon { color: var(--red); }
.additional { border-left: 1px solid #e8ecef; padding-left: 22px; }
.additional h2 { font-size: clamp(18px, 2.1vw, 25px); line-height: 1.4; letter-spacing: -.6px; margin-bottom: 18px; }
.additional-list { display: grid; gap: 15px; }
.additional-card { border-radius: 5px; overflow: hidden; border: 1px solid #edf0f2; }
.additional-card a { display: block; }
.additional-card a:hover { opacity: .88; }
.empty-state { background: #f6f8fa; padding: 24px; border-radius: 6px; color: var(--muted); }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid #cdd6de; margin-top: 10px; padding-block: 20px; color: var(--muted); font-size: 14px; }
.footer-brand { display: flex; align-items: center; gap: 20px; }
.footer-brand img { width: 45px; height: 58px; object-fit: contain; }
.site-footer p { margin: 0; text-align: right; }
.site-footer p::after { content: ''; display: block; width: 36px; height: 3px; background: var(--red); margin-top: 12px; margin-left: auto; }
body.dialog-open { overflow: hidden; }
.detail-dialog { border: 0; border-radius: 14px; padding: 0; width: min(760px, calc(100% - 48px)); max-width: none; max-height: calc(100dvh - 64px); color: var(--ink); box-shadow: 0 24px 90px #0005; }
.detail-dialog[open] { display: flex; flex-direction: column; }
.detail-dialog::backdrop { background: #07111bc4; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.dialog-header h2 { margin: 0; font-size: 22px; line-height: 1.3; }
.detail-dialog .dialog-header-without-title { justify-content: flex-end; border-bottom: 0; padding: max(12px, env(safe-area-inset-top)) 16px 0; }
.dialog-close { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; }
.dialog-close:hover { color: var(--red); background: var(--soft-red); }
.dialog-body { overflow-y: auto; overscroll-behavior: contain; padding: 26px; font-size: 19px; line-height: 1.7; overflow-wrap: anywhere; }
.dialog-body p { margin-bottom: 1.2em; }
.dialog-body p:last-child { margin-bottom: 0; }
.dialog-body a { color: #c00814; text-underline-offset: 3px; }
.video-dialog { width: min(540px, calc(100vw - 48px), calc(56.25dvh - 36px)); aspect-ratio: 9 / 16; background: #000; color: #fff; overflow: hidden; }
.video-dialog .dialog-body { display: grid; place-items: center; flex: 1; min-height: 0; padding: 0; overflow: hidden; }
.video-dialog .dialog-close { position: absolute; z-index: 1; top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); background: #000b; border-color: #ffffff80; color: #fff; }
.video-dialog .dialog-close:hover { background: #000; }
.video-frame { aspect-ratio: 9 / 16; width: 100%; margin-inline: auto; background: #000; }
.video-frame video, .video-frame iframe { display: block; width: 100%; height: 100%; border: 0; object-fit: contain; }
.video-frame { position: relative; }
.video-sound-prompt { position: absolute; bottom: 64px; left: 12px; right: 12px; padding: 12px; border-radius: 10px; background: #000d; color: #fff; text-align: center; }
.video-sound-prompt[hidden] { display: none; }
.video-sound-prompt button { border: 1px solid #fff; border-radius: 8px; background: #fff; color: #101820; padding: 12px 16px; font-size: 16px; cursor: pointer; }
.video-sound-prompt p { font-size: 14px; line-height: 1.4; margin: 8px 0 0; }
.no-script { padding-block: 24px; }
@media (min-width: 701px) {
    /* Reservar la altura del título de eventos, la fecha y sus márgenes. */
    .agenda-grid:has(.event) .additional-list { padding-top: calc(clamp(26px, 3.1vw, 38px) * 1.15 + 20px + 32px * 1.4 + 10px); }
}
@media (max-width: 700px) {
    .container { width: calc(100% - 28px); }
    .brand { gap: 20px; min-height: 118px; padding-block: 12px; }
    .brand-logo { flex-basis: 72px; }
    .brand-logo img { max-height: 94px; }
    .brand h1 { font-size: 32px; letter-spacing: -.8px; }
    .brand > div { min-width: 0; }
    .brand p { font-size: clamp(10px, 3vw, 14px); line-height: 1.35; white-space: nowrap; }
    .banners { margin-block: 18px 24px; gap: 10px; }
    .banner { padding: 12px 14px; gap: 14px; min-height: 78px; }
    .banner-icon { width: 42px; height: 42px; }
    .banner-copy strong { font-size: 19px; }
    .banner-copy > span { font-size: 16px; line-height: 1.35; }
    .agenda-grid { grid-template-columns: minmax(0, 2.18fr) minmax(0, 1fr); gap: 14px; position: relative; padding-top: 46px; }
    .events > h2 { position: absolute; top: 0; left: 0; font-size: 28px; }
    .additional { border: 0; padding: 0; }
    .additional h2 { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
    .additional-list { gap: 10px; padding-top: 42px; }
    .event-date { font-size: 22px; gap: 6px; margin-bottom: 10px; }
    .event-date .icon { width: 22px; height: 22px; }
    .event { margin-bottom: 20px; }
    .event-info { font-size: 14px; padding: 10px; gap: 5px; line-height: 1.35; min-height: 48px; }
    .event-info .icon { width: 21px; height: 21px; }
    .event-notice { font-size: 15px; padding: 10px; }
    .site-footer { gap: 16px; font-size: 12px; padding-block: 16px; }
    .footer-brand { gap: 10px; }
    .footer-brand img { width: 35px; height: 49px; }
    .detail-dialog, .video-dialog { width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
    .dialog-header { padding: max(14px, env(safe-area-inset-top)) 16px 14px; }
    .dialog-header h2 { font-size: 20px; }
    .dialog-body { padding: 20px 18px max(20px, env(safe-area-inset-bottom)); font-size: 18px; }
}
@media (max-width: 700px), (max-height: 500px) and (pointer: coarse) {
    .video-dialog { width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
    .video-dialog .video-frame { width: min(100%, 56.25dvh); }
}
@media (max-width: 380px) {
    .container { width: calc(100% - 20px); }
    .brand { gap: 13px; }
    .brand-logo { flex-basis: 59px; }
    .brand h1 { font-size: 28px; }
    .banner { padding: 11px; gap: 10px; }
    .banner-icon { width: 35px; height: 35px; }
    .banner-icon .icon { width: 23px; height: 23px; }
    .banner-copy strong { font-size: 18px; }
    .banner-copy > span { font-size: 15px; }
    .agenda-grid { gap: 10px; }
    .event-date { font-size: 20px; }
    .event-date .icon { display: none; }
}
@media print {
    .banners, dialog, .skip-link { display: none !important; }
    .container { width: 100%; }
    .event { break-inside: avoid; }
}
