/* Popup Messages - popup02.css */

/* Overlay fondo oscuro */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay2 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    animation: fadeIn 0.3s ease;
}

/* Popup box */
.popup {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 320px;
    padding: 50px 20px 25px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: popupBounce 0.5s ease;
}

/* Icono arriba */
.popup_img00 {
    position: absolute;
    left: 50%;
    top: -25px;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Botón cerrar */
.popup .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    text-decoration: none;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.popup .close:hover {
    color: #333;
}

/* Contenido mensaje */
.popup-content {
    font-size: 15px;
    color: #333;
    line-height: 1.5;
    word-wrap: break-word;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popupBounce {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.95); }
    100% { transform: scale(1); opacity: 1; }
}

/* Responsive */
@media (max-width: 360px) {
    .popup {
        width: 95%;
        padding: 45px 15px 20px;
    }
}
