@font-face {
    font-family: "Nunito Sans Local";
    src: url("../fonts/nunito-sans-latin-wght-normal.woff2") format("woff2");
    font-style: normal;
    font-weight: 200 1000;
    font-display: swap;
}

/* Aviso de entrada mostrado una vez por publicación y navegador. */
.site-notice-overlay[hidden] {
    display: none !important;
}

.site-notice-overlay {
    position: fixed;
    z-index: 2100;
    inset: 0;
    display: grid;
    place-items: center;
    overflow-y: auto;
    padding: 28px;
    background: rgba(7, 9, 12, .78);
    backdrop-filter: blur(8px);
    animation: site-notice-backdrop-in .22s ease-out;
}

body.site-notice-open {
    overflow: hidden;
}

.site-notice-card {
    position: relative;
    width: min(680px, 100%);
    max-height: calc(100vh - 56px);
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 34px 90px rgba(0, 0, 0, .34);
    font-family: "Nunito Sans Local", Arial, sans-serif;
    animation: site-notice-card-in .28s cubic-bezier(.2, .8, .2, 1);
}

.site-notice-close {
    position: absolute;
    z-index: 2;
    top: 16px;
    right: 16px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: #111;
    font-family: inherit;
    font-size: 29px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.site-notice-close:hover,
.site-notice-close:focus-visible {
    background: #f6c400;
}

.site-notice-close:focus-visible {
    outline: 3px solid #111;
    outline-offset: 2px;
}

.site-notice-content {
    padding: 54px 56px 34px;
    text-align: center;
}

.site-notice-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    place-items: center;
    border-radius: 18px;
    background: #f6c400;
    color: #0b0b0b;
    font-size: 32px;
    font-weight: 950;
    font-style: normal;
    box-shadow: 0 12px 28px rgba(246, 196, 0, .3);
}

.site-notice-eyebrow {
    margin-bottom: 8px;
    color: #8a6a00;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.site-notice-content h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 850;
    line-height: 1.08;
    text-wrap: balance;
}

.site-notice-message {
    max-width: 540px;
    margin: 22px auto 0;
    color: #46505f;
    font-size: 18px;
    font-weight: 520;
    line-height: 1.65;
    text-wrap: pretty;
}

.site-notice-image {
    display: grid;
    min-height: 260px;
    max-height: calc(100vh - 154px);
    place-items: center;
    overflow: hidden;
    border-radius: 28px 28px 0 0;
    background: #f5f5f5;
}

.site-notice-image img {
    width: 100%;
    max-height: calc(100vh - 154px);
    object-fit: contain;
    object-position: center;
}

.site-notice-footer {
    display: flex;
    justify-content: center;
    padding: 0 56px 36px;
}

.site-notice-card-image .site-notice-footer {
    padding-top: 20px;
}

.site-notice-footer button {
    min-width: 180px;
    min-height: 48px;
    border: 0;
    border-radius: 13px;
    background: #0b0b0b;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 850;
    cursor: pointer;
}

.site-notice-footer button:hover,
.site-notice-footer button:focus-visible {
    background: #f6c400;
    color: #0b0b0b;
}

.site-notice-footer button:focus-visible {
    outline: 3px solid #f6c400;
    outline-offset: 3px;
}

@keyframes site-notice-backdrop-in {
    from { opacity: 0; }
}

@keyframes site-notice-card-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.98);
    }
}

@media (max-width: 640px) {
    .site-notice-overlay {
        align-items: end;
        padding: 14px;
    }

    .site-notice-card {
        max-height: calc(100vh - 28px);
        border-radius: 23px;
    }

    .site-notice-content {
        padding: 52px 24px 26px;
    }

    .site-notice-content h2 {
        font-size: 29px;
    }

    .site-notice-message {
        margin-top: 16px;
        font-size: 16px;
        line-height: 1.55;
    }

    .site-notice-image,
    .site-notice-image img {
        max-height: calc(100vh - 132px);
    }

    .site-notice-footer {
        padding: 0 24px 24px;
    }

    .site-notice-card-image .site-notice-footer {
        padding-top: 16px;
    }

    .site-notice-footer button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-notice-overlay,
    .site-notice-card {
        animation: none;
    }
}
