.aviso-fin-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.aviso-fin-overlay.hidden {
    display: none !important;
    opacity: 0;
}

.aviso-fin-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.aviso-fin-content picture,
.aviso-fin-content img {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
}

.aviso-fin-close {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: background 0.3s ease, transform 0.2s ease;
    line-height: 1;
    padding-bottom: 4px;
}

.aviso-fin-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
}

@media (min-width: 769px) {
    .aviso-fin-close {
        top: -15px;
        right: -15px;
        width: 45px;
        height: 45px;
    }
}
