/* ===== POPUPS DINÁMICOS (Éxito y Error) ===== */

.popup-exito,
.popup-error {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.popup-contenido {
    background: white;
    border-radius: 16px;
    padding: 50px 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupBounce 0.4s ease-out;
}

.popup-icono {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    color: white;
    animation: iconPopBounce 0.6s ease-out;
}

.popup-icono.exito {
    background: #10b981;
}

.popup-icono.error {
    background: #ef4444;
}

.popup-contenido h2 {
    font-size: 24px;
    color: #1f2937;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.popup-contenido p {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.5;
    margin: 10px 0;
}

.popup-hint {
    font-size: 13px !important;
    color: #9ca3af !important;
    margin-top: 15px !important;
}

@keyframes popupBounce {
    0% {
        transform: scale(0.9);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes iconPopBounce {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .popup-contenido {
        padding: 40px 30px;
        max-width: 350px;
    }

    .popup-icono {
        width: 70px;
        height: 70px;
        font-size: 40px;
    }

    .popup-contenido h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .popup-contenido {
        padding: 35px 25px;
        max-width: 300px;
    }

    .popup-icono {
        width: 60px;
        height: 60px;
        font-size: 35px;
        margin-bottom: 15px;
    }

    .popup-contenido h2 {
        font-size: 18px;
    }

    .popup-contenido p {
        font-size: 14px;
    }
}
