#anuncio {
    --anuncio-bg: #ffffff;
    --anuncio-text: #00385f;
    --anuncio-accent: #003b70;
    --anuncio-border: #b3262d;
    --anuncio-shadow: rgba(0, 56, 95, 0.12);

    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1200px, calc(100% - 24px));
    box-sizing: border-box;
    background: var(--anuncio-bg);
    color: var(--anuncio-text);
    border-bottom: 4px solid var(--anuncio-border);
    border-radius: 10px;
    box-shadow: 0 6px 18px var(--anuncio-shadow);
    padding: 10px 14px 12px;
    z-index: 20000;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

#anuncio .anuncio-header {
    display: flex;
    justify-content: flex-end;
}

#anuncio .anuncio-actions {
    display: flex;
    gap: 6px;
}

#anuncio .anuncio-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--anuncio-accent);
    background: #ffffff;
    color: var(--anuncio-accent);
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
    padding: 0;
}

#anuncio .anuncio-btn:hover {
    background: #f1f6fb;
}

#anuncio .anuncio-body {
    margin-top: 4px;
}

#anuncio .anuncio-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: var(--anuncio-text);
}

#anuncio .anuncio-text + .anuncio-text {
    margin-top: 8px;
}

#anuncio strong {
    color: var(--anuncio-border);
}

#anuncio.minimized .anuncio-body {
    display: none;
}

#anuncio.minimized {
    width: min(380px, calc(100% - 24px));
    padding-bottom: 8px;
}

#anuncio.hidden {
    display: none;
}

@media (max-width: 1024px) {
    #anuncio {
        top: 10px;
        width: calc(100% - 20px);
    }
}

@media (max-width: 768px) {
    #anuncio {
        top: 8px;
        width: calc(100% - 16px);
        padding: 8px 10px 10px;
    }

    #anuncio .anuncio-text {
        font-size: 13px;
    }

    #anuncio .anuncio-btn {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
}

#mantenimiento {
    display: none;
    position: fixed; /* Sit on top of the page content */
    text-align: center;
    width: 100%; /* Full width (cover the whole page) */
    height: 100%; /* Full height (cover the whole page) */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,1); /* Black background with opacity */
    z-index: 10000; /* Specify a stack order in case you're using a different order for other elements */
    cursor: pointer; /* Add a pointer on hover */
}