/* Modal de Confirmación */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 8, 20, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--card-bg);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 450px;
    width: 90%;
    box-shadow: var(--card-shadow);
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #25d366 0%, #25b866 100%);
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.5);
    border-radius: 20px 20px 0 0;
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-icon {
    font-size: 4rem;
    color: #25d366;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(37, 211, 102, 0.6);
}

.modal-title {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.modal-message {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Cuerpo y campos del modal */
.modal-body {
    margin-top: 1.25rem;
}

.modal-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.modal-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.25);
    background: rgba(0, 212, 255, 0.06);
    color: var(--text-primary);
    outline: none;
    transition: all 0.25s ease;
    font-size: 1rem;
}

.modal-input::placeholder {
    color: rgba(160, 196, 255, 0.6);
}

.modal-input:focus {
    border-color: var(--neon-cyan);
    box-shadow: var(--neon-glow);
    background: rgba(0, 212, 255, 0.1);
}

.modal-error {
    color: var(--error-color);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.modal-btn {
    flex: 1;
    padding: 1rem;
    border: 1px solid;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.modal-btn-cancel {
    background: var(--card-bg);
    color: var(--text-secondary);
    border-color: rgba(0, 212, 255, 0.3);
}

.modal-btn-cancel:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: var(--neon-glow);
}

.modal-btn-confirm {
    background: rgba(37, 211, 102, 0.1);
    color: #25d366;
    border-color: #25d366;
}

.modal-btn-confirm:hover {
    background: #25d366;
    color: white;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
    transform: scale(1.05);
}

/* Animación de entrada */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .modal-container {
        padding: 2rem;
        width: 95%;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-icon {
        font-size: 3rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }
}

/* Modal para Imágenes */
.modal-imagen {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 8, 20, 0.95);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contenido-modal {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    top: 50%;
    transform: translateY(-50%);
}

.imagen-modal {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 10px 50px rgba(0, 212, 255, 0.3);
    border: 2px solid rgba(0, 212, 255, 0.3);
}

.cerrar-modal {
    position: absolute;
    top: -60px;
    right: 0;
    color: var(--neon-cyan);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
}

.cerrar-modal:hover {
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 212, 255, 1);
    transform: scale(1.2);
}

.modal-imagen.mostrar {
    display: block;
    opacity: 1;
}

/* Estilos para hacer las imágenes clicables */
.img-caracteristica {
    cursor: pointer;
    transition: all 0.3s ease;
}

.img-caracteristica:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 25px rgba(0, 212, 255, 0.4);
    border-radius: 10px;
}

/* Responsive para modal de imagen */
@media (max-width: 768px) {
    .contenido-modal {
        width: 95%;
        padding: 10px;
    }
    
    .cerrar-modal {
        top: -50px;
        right: 10px;
        font-size: 35px;
    }
    
    .imagen-modal {
        max-height: 80vh;
        border-radius: 10px;
    }
}

