/* ===================================================
   MODAL AFICHE (Alternativa con imagen PNG)
   =================================================== */

/* Fondo oscuro que cubre toda la pantalla */
.modal-afiche {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    padding: 15px;
    box-sizing: border-box;
}

/* Contenedor que delimita la imagen y sostiene el botón */
.modal-afiche__container {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
}

/* Imagen responsive que se ajusta a cualquier pantalla */
.modal-afiche__img {
    max-width: 100%;
    max-height: 85vh;     /* Evita que se salga en pantallas pequeñas o apaisadas */
    width: auto;
    height: auto;
    object-fit: contain;  /* Mantiene proporción original sin deformar */
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* Botón de cierre en escritorio */
.modal-afiche__cerrar {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 38px;
    height: 38px;
    background-color: #ffffff;
    color: #222222;
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    z-index: 10;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.modal-afiche__cerrar:hover {
    background-color: #f2f2f2;
    transform: scale(1.08);
}

/* Ajuste específico para celulares */
@media (max-width: 600px) {
    .modal-afiche__cerrar {
        top: 8px;
        right: 8px;
        background-color: rgba(0, 0, 0, 0.65);
        color: #ffffff;
        border: none;
    }
}