/**
 * Estilos adicionales para TRAUMA 2025
 * Contiene animaciones, efectos y mejoras visuales
 */

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Mejoras visuales */
.form-section.active {
    animation: fadeIn 0.5s ease forwards;
}

.section-title i {
    animation: pulse 2s infinite;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

/* Efectos de hover */
.form-section {
    transition: box-shadow 0.3s ease;
}

.form-section:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.step-circle {
    transition: all 0.3s ease;
}

.step:hover .step-circle {
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

/* Mejoras de accesibilidad */
input:focus, textarea:focus, select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Estilos para mensajes de éxito/error */
.toast-message {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 25px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    animation: slideIn 0.5s ease forwards;
}

.toast-message.success {
    background-color: var(--success-color);
}

.toast-message.error {
    background-color: var(--error-color);
}

.toast-message i {
    margin-right: 10px;
    font-size: 20px;
}

/* Modo oscuro (opcional) */
@media (prefers-color-scheme: dark) {
    body.dark-mode {
        background-color: #1a1a1a;
        color: #f5f5f5;
    }
    
    body.dark-mode .form-container,
    body.dark-mode .form-section,
    body.dark-mode .progress-container {
        background-color: #2a2a2a;
        border-color: #3a3a3a;
    }
    
    body.dark-mode input, 
    body.dark-mode textarea, 
    body.dark-mode select {
        background-color: #333;
        color: #f5f5f5;
        border-color: #444;
    }
    
    body.dark-mode .step-circle {
        background-color: #444;
    }
    
    body.dark-mode .step.active .step-circle {
        background-color: var(--primary-color);
    }
    
    body.dark-mode .help-text {
        color: #aaa;
    }
}

/* Responsive enhancements */
@media (max-width: 768px) {
    .toast-message {
        left: 20px;
        right: 20px;
        bottom: 20px;
        text-align: center;
    }
    
    .deadline {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .deadline i {
        margin-bottom: 10px;
    }
}

/* Print styles */
@media print {
    body {
        background-color: white;
        color: black;
    }
    
    header, .progress-container, .form-navigation, footer {
        display: none;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .form-section {
        display: block !important;
        opacity: 1 !important;
        position: relative !important;
        box-shadow: none;
        border: none;
        padding: 10px 0;
        margin-bottom: 30px;
    }
}