/* Fondo del pop-up */
.popup {
    position: fixed;
    inset: 0; /* reemplaza top/left/right/bottom */
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto; /* importante para móviles */
    padding: 20px;
}

/* Mostrar el pop-up */
.popup.show {
    visibility: visible;
    opacity: 1;
}

/* Contenido del pop-up */
.popup-content {
    background: #fff;
    padding: 30px; /* aumentamos el padding */
    max-width: 650px; /* antes era 500px */
    width: 100%;
    text-align: center;
    border-radius: 12px;
    position: relative;
    animation: popupFadeIn 0.3s ease;
}


/* Imagen */
.popup-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Botón */
.popup-content button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

.popup-content button:hover {
    background-color: #0056b3;
}

/* Botón de cierre */
.popup-content .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

/* Animación */
@keyframes popupFadeIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Diseño responsivo para móviles */
@media screen and (max-width: 480px) {
    .popup-content {
        max-width: 100% !important;
        padding: 18px;
    }

    .popup-content .popup-btn {
        width: 100%;
        font-size: 15px;
    }
}