/* ============================================
   BASE CSS - Variables, tipografías y estilos base
   ============================================ */

/* Importación de fuentes de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;600;700&display=swap');

/* ============================================
   VARIABLES CSS (Custom Properties)
   ============================================ */

:root {
    /* Colores Principales */
    --color-primary: #0066CC;
    --color-primary-hover: #0052A3;
    --color-primary-light: #E6F2FF;
    
    --color-secondary: #1A1A1A;
    --color-secondary-light: #333333;
    
    --color-accent: #FF6600;
    --color-accent-hover: #E55A00;
    --color-accent-light: #FFF4ED;
    
    /* Colores específicos del diseño de referencia */
    --color-promo-bg: #FF6600;
    --color-hero-blue: #0066CC;
    --color-hero-blue-dark: #0047AB;
    
    /* Colores de Soporte */
    --color-gray-dark: #666666;
    --color-gray-medium: #CCCCCC;
    --color-gray-light: #F5F5F5;
    --color-white: #FFFFFF;
    
    /* Colores de Estado */
    --color-success: #28A745;
    --color-success-light: #D4EDDA;
    --color-error: #DC3545;
    --color-error-light: #F8D7DA;
    --color-warning: #FFC107;
    --color-warning-light: #FFF3CD;
    
    /* Tipografías */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    
    /* Tamaños de fuente base */
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-md: 1.125rem;   /* 18px */
    --font-size-lg: 1.25rem;    /* 20px */
    --font-size-xl: 1.5rem;     /* 24px */
    --font-size-2xl: 2rem;      /* 32px */
    --font-size-3xl: 3rem;      /* 48px */
    
    /* Espaciados */
    --spacing-xs: 0.25rem;   /* 4px */
    --spacing-sm: 0.5rem;    /* 8px */
    --spacing-md: 1rem;      /* 16px */
    --spacing-lg: 1.5rem;    /* 24px */
    --spacing-xl: 2rem;      /* 32px */
    --spacing-2xl: 3rem;     /* 48px */
    --spacing-3xl: 4rem;     /* 64px */
    
    /* Bordes */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-full: 50px;
    
    --border-width: 1px;
    --border-color: var(--color-gray-medium);
    
    /* Sombras */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    
    /* Transiciones */
    --transition-fast: 0.15s ease-in-out;
    --transition-base: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
    
    /* Z-index layers */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
    --z-tooltip: 1050;
}

/* ============================================
   ESTILOS BASE
   ============================================ */

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-secondary);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TIPOGRAFÍA
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--color-secondary);
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem); /* 32px - 48px responsive */
    font-weight: 700;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem); /* 28px - 36px responsive */
    font-weight: 600;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem); /* 20px - 24px responsive */
    font-weight: 600;
}

h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
}

h5 {
    font-size: var(--font-size-md);
    font-weight: 600;
}

h6 {
    font-size: var(--font-size-base);
    font-weight: 600;
}

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-hover);
}

a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--border-radius-sm);
}

/* ============================================
   UTILIDADES DE TEXTO
   ============================================ */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-primary {
    color: var(--color-primary);
}

.text-accent {
    color: var(--color-accent);
}

.text-success {
    color: var(--color-success);
}

.text-error {
    color: var(--color-error);
}

.text-gray {
    color: var(--color-gray-dark);
}

.text-bold {
    font-weight: 700;
}

.text-semibold {
    font-weight: 600;
}

.text-medium {
    font-weight: 500;
}

/* ============================================
   VISUALIZACIÓN Y DISPLAY
   ============================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================
   SELECTION
   ============================================ */

::selection {
    background-color: var(--color-primary);
    color: var(--color-white);
}

::-moz-selection {
    background-color: var(--color-primary);
    color: var(--color-white);
}

