/* ============================================================
   MODAL DE ANUNCIO
   Ventana emergente con imagen promocional (flyer).
   Se muestra en la página de inicio.
   ============================================================ */

.modal-anuncio {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    pointer-events: none;
}

.modal-anuncio--abierto {
    display: flex;
    pointer-events: auto;
}

.fondo-modal {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(4px) saturate(1.05);
    -webkit-backdrop-filter: blur(4px);
}

.tarjeta-modal {
    position: relative;
    max-width: 1500px;
    width: calc(100% - 40px);
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff, #fcfcfd);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    transform: translateY(8px) scale(0.98);
    transition: transform 240ms cubic-bezier(.2, .8, .2, 1), opacity 240ms;
    z-index: 10000;
    pointer-events: auto;
}

.modal-anuncio--abierto .tarjeta-modal {
    transform: translateY(0) scale(1);
}

.imagen-modal {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 76vh;
}

.boton-cerrar-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    cursor: pointer;
    z-index: 10001;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    .tarjeta-modal {
        width: calc(100% - 24px);
    }

    .imagen-modal {
        max-height: 84vh;
    }

    .boton-cerrar-modal {
        top: 8px;
        right: 8px;
        width: 36px;
        height: 36px;
    }
}
