﻿/* Calendario público: estilos aislados del calendario administrativo. */
#calendario { padding: 30px 0; background: #041a30 radial-gradient(ellipse at center, #052942, #001b30 80%); color: #f6f8fa; border-block: 1px solid #ffffff0b; scroll-margin-top: 86px; }
#calendario > .container { width: 100%; max-width: 1800px; box-sizing: border-box; padding-inline: 40px; }
#calendario .section-title { margin-bottom: 22px; }
#calendario .section-title h2 { color: #fff; font-family: var(--font-display); font-size: clamp(30px, 3vw, 44px); font-weight: 700; letter-spacing: .2px; }
#calendario .schedule-wrap { min-width: 0; max-width: 100%; }
#calendario .schedule-semana { background: #05253e; border: 1px solid #ffffff26; box-shadow: 0 10px 30px #0002; overflow: visible; border-radius: 14px; }
#calendario .schedule-timeline { position: relative; display: grid; grid-template-columns: 90px repeat(7,minmax(0,1fr)); width: 100%; isolation: isolate; }
#calendario .schedule-axis-title, #calendario .schedule-day-title { height: 52px; margin: 0; padding: 14px 2px; min-width: 0; box-sizing: border-box; background: #001b30; color: #fff; text-align: center; font: 600 17px var(--font-display); text-transform: uppercase; border-bottom: 2px solid #ffd04e; border-right: 1px solid #ffffff26; }
#calendario .schedule-axis-title { color: #ffd04e; border-top-left-radius: 13px; }
#calendario .schedule-day-title:last-of-type { border-top-right-radius: 13px; border-right: 0; }
#calendario .schedule-axis { position: relative; height: var(--timeline-height); border-right: 1px solid #ffffff26; }
#calendario .schedule-axis span { position: absolute; left: 0; right: 0; padding-top: 4px; text-align: center; color: #f3f6f9; font-size: 13px; border-top: 1px solid #ffffff13; }
#calendario .schedule-day { position: relative; height: var(--timeline-height); min-width: 0; border-right: 1px solid #ffffff26; }
#calendario .schedule-day:last-child { border-right: 0; }
#calendario .schedule-time-line { position: absolute; left: 0; right: 0; border-top: 1px solid #ffffff13; }
#calendario .schedule-pause { position: absolute; left: 0; right: 0; height: 24px; box-sizing: border-box; border-block: 1px dashed #718395; z-index: 2; text-align: center; background: #001b30; color: #edcd76; font-size: 11px; line-height: 22px; }
#calendario .schedule-color-0 { --class-bg: #ffd46f; }
#calendario .schedule-color-1 { --class-bg: #81dba1; }
#calendario .schedule-color-2 { --class-bg: #c991fa; }
#calendario .schedule-color-3 { --class-bg: #ff7884; }
#calendario .schedule-color-4 { --class-bg: #66baf6; }
#calendario .schedule-color-5 { --class-bg: #ffd46f; }
#calendario .schedule-event { position: absolute; left: 4px; right: 4px; box-sizing: border-box; padding: 8px 10px; border: 1px solid #ffffff26; border-radius: 5px; background: var(--class-bg, #ffd46f); color: #071b2b; box-shadow: inset 0 0 16px #ffffff10; }
#calendario .schedule-event summary { cursor: pointer; list-style: none; height: 100%; overflow: hidden; font: 14px/1.25 Arial, sans-serif; }
#calendario .schedule-event summary::-webkit-details-marker { display: none; }
#calendario .schedule-event-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 14px; line-height: 17px; font-weight: 700; overflow-wrap: normal; }
#calendario .schedule-event-professor, #calendario .schedule-event-time { display: block; margin-top: 4px; color: #071b2b; font-size: 13px; line-height: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#calendario .schedule-event-short { padding-block: 4px; }
#calendario .schedule-event-short .schedule-event-name { -webkit-line-clamp: 1; }
#calendario .schedule-event-short .schedule-event-professor, #calendario .schedule-event-short .schedule-event-time { margin-top: 2px; }
#calendario .schedule-event-group { background: #dce9f3; padding: 6px 9px; }
#calendario .schedule-group-title { font-size: 13px; }
#calendario .schedule-group-list { list-style: none; margin: 3px 0 0; padding: 0; }
#calendario .schedule-group-list li { display: block; margin: 0; padding: 0; height: 16px; font-size: 13px; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#calendario .schedule-group-list li::before { display: inline; content: '• '; color: #28506b; }
#calendario .schedule-event[open] { z-index: 6; }
#calendario .schedule-event-detail { position: absolute; top: 100%; left: 0; width: 280px; max-width: calc(100vw - 48px); box-sizing: border-box; padding: 14px; background: #f2f7fa; color: #071b2b; border: 1px solid #8aa6ba; border-radius: 8px; box-shadow: 0 12px 32px #0008; }
#calendario .schedule-day:nth-last-child(-n+2) .schedule-event-detail { left: auto; right: 0; }
#calendario .schedule-event summary:focus-visible { outline: 2px solid #071b2b; outline-offset: -1px; }
#calendario .schedule-detail-modal { position: fixed; inset: 0; margin: auto; width: min(540px,calc(100% - 32px)); max-height: calc(100dvh - 40px); box-sizing: border-box; padding: 22px; border: 1px solid #496075; border-radius: 14px; background: #032239; color: #fff; overflow-y: auto; box-shadow: 0 24px 70px #0006; }
#calendario .schedule-detail-modal::backdrop { background: #001020aa; backdrop-filter: blur(4px); }
#calendario .schedule-detail-modal header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
#calendario .schedule-detail-modal h3 { margin: 0; color: #fff; font: 600 24px var(--font-display); }
#calendario .schedule-detail-modal header button { background: transparent; color: #fff; border: 0; cursor: pointer; font-size: 28px; padding: 4px 10px; }
#calendario .schedule-detail-item { padding: 12px 14px; background: var(--class-bg, #dce9f3); color: #071b2b; border-radius: 6px; margin-bottom: 10px; }
#calendario .schedule-detail-item h4 { color: #071b2b; margin: 0 0 6px; font: 700 16px/1.3 Arial,sans-serif; overflow-wrap: break-word; text-transform: none; }
#calendario .schedule-detail-item p { margin: 3px 0; font-size: 14px; color: #071b2b; }
#calendario .schedule-modal-close { display: block; margin: 16px 0 0 auto; padding: 9px 20px; border: 0; border-radius: 6px; background: #ffd46f; color: #071b2b; font: inherit; cursor: pointer; }
#calendario .schedule-tabs { margin-bottom: 14px; background: #05253e; border: 1px solid #ffffff26; }
#calendario .schedule-tab { color: #fff; }
#calendario .schedule-tab.is-active { background: #ffd46f; color: #071b2b; }
#calendario .schedule-tab.is-active .schedule-tab-hoy { color: #071b2b; }
#calendario .schedule-clase { background: var(--class-bg, #ffd46f); border-color: #ffffff26; margin-bottom: 10px; }
#calendario .schedule-clase .schedule-hora { background: #032239; border-right-color: var(--class-bg, #ffd46f); }
#calendario .schedule-info { min-width: 0; }
#calendario .schedule-info h4 { color: #071b2b; font: 700 17px/1.3 Arial,sans-serif; text-transform: none; overflow-wrap: break-word; }
#calendario .schedule-info p, #calendario .schedule-info i { color: #071b2b; }
#calendario .schedule-dia-titulo { color: #fff; }
#calendario .schedule-vacio { padding: 18px; color: #d7e1eb; background: #05253e; border-color: #536474; }
#calendario .schedule-nota { margin: 18px 0 0; color: #f0f5fa; font-size: 13px; text-align: center; }
@media (min-width: 901px) and (max-width: 1199px) {
    #calendario .schedule-semana { display: none; }
    #calendario .schedule-movil { display: block; }
}
@media (max-width: 540px) {
    #calendario { padding-block: 26px; }
    #calendario > .container { padding-inline: 18px; }
    #calendario .schedule-tab { min-width: 0; }
}
