/* Public home inside the reusable sidebar layout */
.app-shell-content--home {
    display: flex;
    min-height: 0;
    overflow: hidden;
    flex: 1 1 auto;
    padding: 0;
    background: #f3f7f9;
}

.app-shell-content--home .app-content-container {
    display: flex;
    max-width: none;
    min-height: 0;
    padding: 18px 18px 0;
    flex: 1 1 auto;
    flex-direction: column;
}

.home-landing {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 0;
    overflow: hidden;
    align-items: center;
    flex: 1 1 auto;
    color: #fff;
    background-color: #087f9d;
    background-image: none;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(19, 66, 80, .1);
    isolation: isolate;
}

.home-landing__overlay {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        radial-gradient(circle at 78% 22%, rgba(35, 181, 207, .32), transparent 38%),
        linear-gradient(110deg, #075b73 0%, #087f9d 52%, #0794ae 100%);
}

.home-landing__grid {
    display: grid;
    width: min(100%, 1320px);
    margin: 0 auto;
    padding: clamp(32px, 5vw, 72px);
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
    grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
}

.home-landing__copy {
    max-width: 680px;
    text-align: center;
    text-shadow: 0 2px 12px rgba(0, 35, 47, .38);
}

.home-landing__eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 7px 13px;
    color: #082d39;
    background: rgba(255, 255, 255, .88);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-shadow: none;
    text-transform: uppercase;
}

.home-landing__title {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 800;
    line-height: 1.08;
}

.home-landing__lead {
    margin: 16px 0 0;
    color: #fff;
    font-size: clamp(1.05rem, 2vw, 1.4rem);
    font-weight: 650;
}

.home-landing__actions {
    display: flex;
    margin-top: 30px;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.home-landing__action {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 22px;
    border: 2px solid transparent;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(0, 40, 54, .2);
    font-weight: 800;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.home-landing__action:hover,
.home-landing__action:focus {
    text-decoration: none;
    transform: translateY(-2px);
}

.home-landing__action--primary {
    color: #161616;
    background: #ff9800;
}

.home-landing__action--primary:hover,
.home-landing__action--primary:focus {
    color: #111;
    background: #ffad2f;
    box-shadow: 0 11px 26px rgba(255, 152, 0, .33);
}

.home-landing__action--secondary {
    color: #073849;
    background: #fff;
    border-color: rgba(255, 255, 255, .55);
}

.home-landing__action--secondary:hover,
.home-landing__action--secondary:focus {
    color: #062e3c;
    background: #eaf8fc;
}

.home-landing__action-lock {
    margin-left: 3px;
    font-size: .76rem;
}

.home-landing__access-help {
    margin: 11px 0 0;
    color: #eefcff;
    font-size: .88rem;
}

.home-landing__quick-links {
    display: flex;
    margin-top: 24px;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.home-landing__quick-links a,
.home-landing__quick-links button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 0;
    color: #fff;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .55);
    font: inherit;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
}

.home-landing__quick-links a:hover,
.home-landing__quick-links a:focus,
.home-landing__quick-links button:hover,
.home-landing__quick-links button:focus {
    color: #fff4d5;
    border-bottom-color: #fff4d5;
    text-decoration: none;
}

.home-calendar-card {
    position: relative;
    margin: 0;
    padding: 24px 20px 20px;
    overflow: hidden;
    color: #17212b;
    background: rgba(248, 253, 255, .97);
    border: 1px solid rgba(191, 225, 235, .9);
    border-radius: 20px;
    box-shadow: 0 20px 46px rgba(0, 38, 51, .28);
    text-align: center;
    backdrop-filter: blur(8px);
}

.home-calendar-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    content: "";
    background: linear-gradient(90deg, #075b73, #10a5c7);
}

.home-calendar-card__resolution {
    margin: 0;
    color: #005b78;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.home-calendar-card__title {
    margin: 6px 0 14px;
    color: #123444;
    font-size: 1.38rem;
    font-weight: 800;
    line-height: 1.15;
}

.home-calendar-card__image {
    display: block;
    width: min(100%, 290px);
    height: auto;
    max-height: 450px;
    margin: 0 auto;
    object-fit: contain;
    background: #fff;
    border: 1px solid #d9e8ed;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(18, 52, 68, .16);
}

.home-calendar-card__schedule {
    display: flex;
    min-height: 88px;
    margin-top: 16px;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 13px 16px;
    color: #fff;
    background: linear-gradient(110deg, #075c73, #088da8);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(5, 91, 115, .2);
    line-height: 1.4;
}

.home-calendar-card__schedule > i {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    color: #075c73;
    background: #fff;
    border-radius: 50%;
    font-size: 1.05rem;
}

.home-calendar-card__schedule strong,
.home-calendar-card__schedule span {
    display: block;
}

.home-calendar-card__schedule strong {
    margin-bottom: 4px;
    font-size: 1rem;
}

.home-calendar-card__schedule span {
    color: rgba(255, 255, 255, .94);
    font-size: .9rem;
}

/* Institutional shortcuts shown only on the home page. */
.home-service-strip {
    display: grid;
    min-height: 68px;
    margin: 12px 0;
    overflow: hidden;
    flex: 0 0 auto;
    color: #fff;
    background: linear-gradient(100deg, #17596a 0%, #087f98 100%);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(5, 54, 68, .18);
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.home-service-strip__item {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
    padding: 10px 14px;
    color: #fff;
    border-right: 1px solid rgba(255, 255, 255, .22);
    text-decoration: none;
    transition: background-color .18s ease;
}

.home-service-strip__item:last-child {
    border-right: 0;
}

a.home-service-strip__item:hover,
a.home-service-strip__item:focus {
    color: #fff;
    background: rgba(255, 255, 255, .1);
    text-decoration: none;
}

.home-service-strip__icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    color: #07596f;
    background: #f2fbfd;
    border-radius: 9px;
    font-size: 1.05rem;
}

.home-service-strip__text {
    display: block;
    min-width: 0;
    line-height: 1.15;
}

.home-service-strip__text strong,
.home-service-strip__text small {
    display: block;
}

.home-service-strip__text strong {
    overflow: hidden;
    font-size: .9rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-service-strip__text small {
    margin-top: 4px;
    color: rgba(255, 255, 255, .9);
    font-size: .72rem;
}

.home-service-strip__arrow {
    margin-left: auto;
    color: rgba(255, 255, 255, .82);
    font-size: .75rem;
}

.home-service-strip__item--social {
    padding-right: 10px;
}

.home-service-strip__socials {
    display: flex;
    margin-left: auto;
    gap: 6px;
}

.home-service-strip__social {
    display: inline-flex;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .18);
    text-decoration: none;
}

.home-service-strip__social:hover,
.home-service-strip__social:focus {
    color: #fff;
    filter: brightness(1.08);
    text-decoration: none;
    transform: translateY(-1px);
}

.home-service-strip__social--facebook { background: #1877f2; }
.home-service-strip__social--instagram { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); }
.home-service-strip__social--tiktok { background: #050505; }

/* Important notice */
body.home-notice-open {
    overflow: hidden;
}

.home-notice[hidden] {
    display: none !important;
}

.home-notice {
    position: fixed;
    z-index: 1200;
    inset: 0;
    display: flex;
    visibility: hidden;
    padding: 20px;
    align-items: center;
    justify-content: center;
    background: rgba(5, 29, 38, .72);
    opacity: 0;
    transition: opacity .2s ease, visibility .2s ease;
}

.home-notice.is-open {
    visibility: visible;
    opacity: 1;
}

.home-notice__dialog {
    position: relative;
    width: min(100%, 500px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 34px 30px 30px;
    color: #27313b;
    background: rgba(255, 255, 255, .98);
    border: 1px solid rgba(255, 152, 0, .55);
    border-radius: 16px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .35);
    text-align: center;
}

.home-notice__close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #2f3a44;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
}

.home-notice__close:hover,
.home-notice__close:focus {
    color: #9f1d1d;
    background: #fff0f0;
    border-color: #ffcaca;
}

.home-notice__icon {
    margin-bottom: 12px;
    color: #ff9800;
    font-size: 3rem;
}

.home-notice__title {
    margin: 0 0 18px;
    color: #003087;
    font-size: 1.55rem;
    font-weight: 800;
}

.home-notice__description {
    color: #36434e;
    line-height: 1.6;
}

.home-notice__description p {
    margin: 0 0 14px;
}

.home-notice__confirm {
    display: inline-flex;
    width: 100%;
    min-height: 46px;
    margin-top: 6px;
    align-items: center;
    justify-content: center;
    padding: 11px 24px;
    color: #171000;
    background: #ff9800;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 5px 15px rgba(255, 152, 0, .25);
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}

.home-notice__confirm:hover,
.home-notice__confirm:focus {
    color: #111;
    background: #ffad2f;
}

.home-landing a:focus-visible,
.home-landing button:focus-visible,
.home-service-strip a:focus-visible,
.home-notice button:focus-visible {
    outline: 3px solid #ffd166;
    outline-offset: 3px;
}

@media (max-width: 1199.98px) {
    .home-landing__grid {
        padding: 38px 30px;
        gap: 28px;
        grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    }

    .home-calendar-card__image {
        max-height: 390px;
    }

}

@media (min-width: 768px) and (max-width: 1399.98px) {
    .home-service-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-service-strip__item:nth-child(3) {
        border-right: 0;
    }

    .home-service-strip__item:nth-child(-n + 3) {
        border-bottom: 1px solid rgba(255, 255, 255, .22);
    }

    .home-service-strip__item--social {
        grid-column: span 2;
    }
}

/* Mantiene la portada completa dentro de pantallas de escritorio con poca altura. */
@media (min-width: 768px) and (max-height: 1100px) {
    .home-landing__grid {
        padding: clamp(18px, 3vh, 28px) 30px;
        gap: 28px;
    }

    .home-landing__actions {
        margin-top: 20px;
    }

    .home-landing__quick-links {
        margin-top: 14px;
    }

    .home-calendar-card {
        padding: 16px 18px;
    }

    .home-calendar-card__title {
        margin-bottom: 10px;
    }

    .home-calendar-card__image {
        max-height: min(42vh, 360px);
    }

    .home-calendar-card__schedule {
        margin-top: 10px;
        padding: 10px;
    }
}

@media (max-width: 767.98px) {
    .app-shell-content--home {
        overflow: visible;
    }

    .app-shell-content--home .app-content-container {
        padding: 10px 10px 0;
    }

    .home-landing {
        align-items: flex-start;
        border-radius: 14px;
    }

    .home-landing__grid {
        padding: 30px 18px 42px;
        grid-template-columns: 1fr;
    }

    .home-landing__copy {
        margin: 0 auto;
    }

    .home-calendar-card {
        width: min(100%, 430px);
        margin: 0 auto;
        padding: 18px;
    }

    .home-calendar-card__image {
        width: min(100%, 250px);
        max-height: none;
    }

    .home-service-strip {
        margin: 10px 0;
        grid-template-columns: 1fr;
    }

    .home-service-strip__item,
    .home-service-strip__item:nth-child(3) {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .22);
    }

    .home-service-strip__item:last-child {
        border-bottom: 0;
    }

    .home-service-strip__item--social {
        grid-column: auto;
    }
}

@media (max-width: 479.98px) {
    .home-landing__actions,
    .home-landing__action {
        width: 100%;
    }

    .home-landing__quick-links {
        align-items: center;
        flex-direction: column;
        gap: 10px;
    }

    .home-notice {
        padding: 10px;
    }

    .home-notice__dialog {
        max-height: calc(100vh - 20px);
        padding: 30px 20px 22px;
        border-radius: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-landing__action,
    .home-notice {
        transition: none;
    }
}

@media print {
    .home-notice,
    .home-service-strip,
    .home-landing__actions,
    .home-landing__quick-links {
        display: none !important;
    }

    .home-landing {
        min-height: 0;
        color: #000;
        background: #fff;
    }

    .home-landing__overlay {
        display: none;
    }
}
