/* ============================================
   MODALES PERSONALIZADOS
   ============================================ */

/* Modal de Confirmación */
.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
}

.custom-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 245, 245, 0.95));
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(212, 175, 55, 0.3);
    position: relative;
    animation: modalSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.7) translateY(-50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Icono del Modal */
.custom-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    animation: iconPulse 2s ease-in-out infinite;
}

.custom-modal-icon i {
    font-size: 2.5rem;
    color: #fff;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Título del Modal */
.custom-modal-content h3 {
    font-size: 1.8rem;
    color: #2c5f8d;
    margin-bottom: 15px;
    font-weight: 700;
}

/* Mensaje del Modal */
.custom-modal-content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Botones del Modal */
.custom-modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.custom-modal-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: center;
}

.custom-modal-btn i {
    font-size: 1.1rem;
}

/* Botón Confirmar */
.confirm-btn {
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: #fff;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.confirm-btn:active {
    transform: translateY(0);
}

/* Botón Cancelar */
.cancel-btn {
    background: linear-gradient(135deg, #666, #888);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cancel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #555, #777);
}

.cancel-btn:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 600px) {
    .custom-modal-content {
        padding: 30px 20px;
        width: 95%;
    }

    .custom-modal-icon {
        width: 60px;
        height: 60px;
    }

    .custom-modal-icon i {
        font-size: 2rem;
    }

    .custom-modal-content h3 {
        font-size: 1.5rem;
    }

    .custom-modal-content p {
        font-size: 1rem;
    }

    .custom-modal-buttons {
        flex-direction: column;
    }

    .custom-modal-btn {
        width: 100%;
    }
}

/* ============================================
   MODAL DE DESARROLLADORES
   ============================================ */

#developer-modal {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#developer-modal .modal-content {
    animation: developerModalSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes developerModalSlideIn {
    from {
        transform: scale(0.8) translateY(-30px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Scrollbar personalizado para el modal */
#developer-modal .modal-content::-webkit-scrollbar {
    width: 8px;
}

#developer-modal .modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

#developer-modal .modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

#developer-modal .modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive para modal de desarrolladores */
@media (max-width: 768px) {
    #developer-modal .modal-content {
        width: 95%;
        max-height: 95vh;
    }
}
