/* Aviso temporal de actualización. Quitar junto con el partial cuando termine. */

.os-upd {
    --os-upd-ink: #111827;
    --os-upd-muted: #4b5563;
    --os-upd-line: #e5e7eb;
    --os-upd-paper: #ffffff;
    --os-upd-soft: #f8f9fa;
    --os-upd-blue: #0066ff;
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    font-family: inherit;
    color: var(--os-upd-ink);
}

.os-upd[hidden] {
    display: none !important;
}

.os-upd__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.os-upd.is-leaving {
    opacity: 0;
    transition: opacity 0.18s ease;
}

.os-upd__dialog {
    position: relative;
    width: min(640px, 100%);
    max-height: calc(100vh - 3rem);
    overflow: auto;
    padding: 1.75rem 2rem 1.5rem;
    background: var(--os-upd-paper);
    border: 1px solid var(--os-upd-line);
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
    outline: none;
    scrollbar-width: thin;
}

.os-upd__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
}

.os-upd__close:hover,
.os-upd__close:focus-visible {
    color: var(--os-upd-ink);
    background: var(--os-upd-soft);
    outline: none;
}

.os-upd__logo {
    display: block;
    height: 26px;
    width: auto;
    margin: 0 0 1.15rem;
}

.os-upd__logo--dark {
    display: none;
}

.os-upd__title {
    margin: 0 0 1rem;
    padding-right: 2rem;
    color: var(--os-upd-ink);
    font-family: inherit;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.os-upd__dialog p {
    margin: 0 0 0.75rem;
    color: var(--os-upd-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.os-upd__lead {
    color: var(--os-upd-ink) !important;
    font-weight: 600;
}

.os-upd__note {
    margin: 1rem 0 1.1rem;
    padding: 0.1rem 0 0.1rem 0.95rem;
    border-left: 2px solid var(--os-upd-blue);
}

.os-upd__note p {
    margin-bottom: 0.65rem;
}

.os-upd__note p:last-child {
    margin-bottom: 0;
}

.os-upd__note-label {
    margin-bottom: 0.45rem !important;
    color: var(--os-upd-ink) !important;
    font-size: 0.82rem !important;
    font-weight: 600;
}

.os-upd__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.15rem;
}

.os-upd__cta {
    border: 0;
    border-radius: 8px;
    padding: 0.7rem 1.15rem;
    background: var(--os-upd-blue);
    color: #fff;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.os-upd__cta:hover,
.os-upd__cta:focus-visible {
    background: #0052cc;
    outline: none;
}

html.os-update-notice-lock,
html.os-update-notice-lock body {
    overflow: hidden !important;
}

html.dark .os-upd,
html[data-theme="dark"] .os-upd,
html[data-bs-theme="dark"] .os-upd {
    --os-upd-ink: #f9fafb;
    --os-upd-muted: #9ca3af;
    --os-upd-line: rgba(48, 54, 61, 0.8);
    --os-upd-paper: #161b22;
    --os-upd-soft: rgba(255, 255, 255, 0.06);
}

html.dark .os-upd__logo--light,
html[data-theme="dark"] .os-upd__logo--light,
html[data-bs-theme="dark"] .os-upd__logo--light {
    display: none;
}

html.dark .os-upd__logo--dark,
html[data-theme="dark"] .os-upd__logo--dark,
html[data-bs-theme="dark"] .os-upd__logo--dark {
    display: block;
}

@media (max-width: 640px) {
    .os-upd {
        padding: 0;
        align-items: stretch;
    }

    .os-upd__dialog {
        width: 100%;
        max-height: 100%;
        border: 0;
        border-radius: 0;
        padding: 1.5rem 1.25rem 1.35rem;
        box-shadow: none;
    }

    .os-upd__actions {
        justify-content: stretch;
    }

    .os-upd__cta {
        width: 100%;
    }
}
