/* MODAL - Fondo oscuro */
.modal {
    display: flex;  /* Inicialmente oculto */
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Fondo oscuro */
}

/* Cuando el modal esté activo */
.modal.mostrar {
    display: flex; /* Se activa el modal */
}

/* Contenido del modal */
.modal-contenido {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 90vw; /* 90% del ancho de la pantalla */
    max-height: 90vh; /* 90% del alto de la pantalla */
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Imagen dentro del modal */
.modal-contenido img {
    max-width: 100%;
    max-height: 80vh;
    height: auto;
    border-radius: 5px;
}

/* Botón "Más detalles" */
#masDetalles {
    margin-top: 15px;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    transition: background 0.3s ease;
}

#masDetalles:hover {
    background: #0056b3;
}

.cerrar {
    color: red; /* Letra en rojo */
    background-color: white; /* Fondo blanco */
    font-size: 24px;
    font-weight: bold;
    border: none;
    border-radius: 50%; /* Para que sea redondo */
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.cerrar:hover {
    background-color: red; /* Fondo rojo al pasar el mouse */
    color: white; /* Letra blanca al pasar el mouse */
}
