/* ==========================================================================
   Variables y Sistema de Diseño
   ========================================================================== */
:root {
    /* Paleta Corporativa (Azul VDG) */
    --color-background: #FFFFFF;       
    --color-surface: #F5F8FC;          
    --color-surface-elevated: #EEF4F9; 
    
    --color-primary: #0B5CAB;          
    --color-secondary: #0D2A52;        
    --color-accent: #2F80C9;           
    --color-dark: #102A43;             
    
    --color-text: #172033;             
    --color-text-muted: #536174;       
    --color-border: #DCE5EF;
    
    /* Espaciados */
    --spacing-xs: 0.5rem;   /* 8px */
    --spacing-sm: 1rem;     /* 16px */
    --spacing-md: 2rem;     /* 32px */
    --spacing-lg: 4rem;     /* 64px */
    --spacing-xl: 8rem;     /* 128px */
    
    /* Bordes y Radios */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    /* Transiciones */
    --transition-fast: 0.15s ease-out;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-index */
    --z-header: 100;
    --z-modal: 200;
    --z-floating: 300;
}

/* ==========================================================================
   Reset y Configuración Base
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    scroll-behavior: smooth;
    background-color: var(--color-background);
    color: var(--color-text);
}

body {
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevenir scroll horizontal indeseado */
}

/* Tipografía Base */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-muted);
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, textarea, select {
    font: inherit;
    color: inherit;
    border: none;
    background: transparent;
}

/* ==========================================================================
   Utilidades Globales
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Accesibilidad - Reducir animaciones si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
