/* Estilos generales */
.bg-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Iconos de pasos */
.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
    }
    100% {
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    }
}

/* Transiciones de pasos */
.step-content {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Inputs con efectos */
.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.input-group-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

/* Validación visual */
.form-control.is-valid {
    border-color: #28a745;
    background-image: none;
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-image: none;
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Modal de Cámara */
.camera-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.camera-video {
    width: 100%;
    max-width: 400px;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid #667eea;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

#cameraModal .modal-content {
    border-radius: 20px;
    overflow: hidden;
}

#cameraModal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

#cameraModal .btn-close {
    filter: invert(1);
}

/* Barra de progreso animada */
.progress-bar {
    transition: width 0.6s ease;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

/* Vista previa de foto */
.profile-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: #f8f9fa;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.profile-preview:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.profile-preview i {
    font-size: 4rem;
    color: #6c757d;
}

.profile-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Medidor de fortaleza de contraseña */
.progress-bar.weak {
    background-color: #dc3545;
}

.progress-bar.medium {
    background-color: #ffc107;
}

.progress-bar.strong {
    background-color: #28a745;
}

/* Botones con efectos */
.btn {
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* Modal de éxito */
.success-icon i {
    font-size: 4rem;
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .card {
        margin: 10px;
        border-radius: 20px;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .profile-preview {
        width: 120px;
        height: 120px;
    }
    
    .profile-preview i {
        font-size: 3rem;
    }
}

/* Efectos adicionales */
.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.progress-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Animación de carga */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}