/**
 * Estilos principales para TRAUMA 2025
 * Contiene estilos básicos y resets
 */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
    background-image: linear-gradient(120deg, #f9f9f9, #f0f7f5);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Contenedor principal */
.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 1400px;
    margin: 0 auto;
}

/* Tipografía y elementos comunes */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    color: var(--dark-color);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

h1 {
    font-size: var(--font-size-xxl);
}

h2 {
    font-size: var(--font-size-xl);
}

h3 {
    font-size: var(--font-size-lg);
}

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-normal);
}

a:hover {
    color: var(--tertiary-color);
    text-decoration: underline;
}

/* Alertas y mensajes */
.alert {
    padding: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
    border-radius: var(--border-radius-lg);
    position: relative;
}

.alert-primary {
    background-color: rgba(78, 177, 185, var(--opacity-light));
    border-left: 5px solid var(--primary-color);
}

.alert-success {
    background-color: rgba(55, 182, 152, var(--opacity-light));
    border-left: 5px solid var(--success-color);
}

.alert-warning {
    background-color: rgba(243, 156, 18, var(--opacity-light));
    border-left: 5px solid var(--warning-color);
}

.alert-error {
    background-color: rgba(231, 76, 60, var(--opacity-light));
    border-left: 5px solid var(--error-color);
}

.alert i {
    margin-right: var(--spacing-sm);
    color: inherit;
}

/* Helpers */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.fw-bold {
    font-weight: 700;
}

.fw-medium {
    font-weight: 500;
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.justify-content-center {
    justify-content: center;
}

.align-items-center {
    align-items: center;
}

.mb-xs {
    margin-bottom: var(--spacing-xs);
}

.mb-sm {
    margin-bottom: var(--spacing-sm);
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.mb-xl {
    margin-bottom: var(--spacing-xl);
}

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

.fade-in {
    animation: fadeIn var(--transition-normal);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
}