/* =====================================================
   VARIABLES & TYPOGRAPHY UNIFICADO - INSTITUTO LAO
   Versión: 3.0 - Diciembre 2025
   
   ESTE ARCHIVO REEMPLAZA:
   ✅ reset.css (eliminado - estaba mal nombrado)
   ✅ variables.css (eliminado - duplicado)
   ✅ typography.css (eliminado - ahora está aquí)
   
   INSTRUCCIONES:
   1. Elimina los 3 archivos antiguos de tu proyecto
   2. Usa SOLO este archivo
   3. Importa en tu HTML: <link href="css/variables-typography-UNIFICADO.css" rel="stylesheet">
   ===================================================== */

/* =====================================================
   SECCIÓN 1: VARIABLES CSS
   ===================================================== */
:root {
    
    /* ===== COLORES PRINCIPALES (del logo oficial) ===== */
    --color-primary: #FF9F5A;           /* Naranja principal */
    --color-primary-light: #FFB67A;     /* Naranja claro */
    --color-primary-dark: #E8834A;      /* Naranja oscuro */
    
    --color-secondary: #FFD54F;         /* Amarillo dorado */
    --color-secondary-light: #FFE082;   /* Amarillo claro */
    --color-secondary-dark: #FFC107;    /* Dorado oscuro */
    
    --color-accent: #DE2910;            /* Rojo (bandera china) */
    --color-accent-hover: #C41E0A;      /* Rojo oscuro hover */
    
    --color-dark: #3D2817;              /* Marrón oscuro (textos) */
    --color-black: #000000;             /* Negro puro */
    
    /* ===== COLORES NEUTROS ===== */
    --color-white: #FFFFFF;
    --color-gray-50: #F9FAFB;
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-300: #D1D5DB;
    --color-gray-400: #9CA3AF;
    --color-gray-500: #6B7280;
    --color-gray-600: #4B5563;
    --color-gray-700: #374151;
    --color-gray-800: #1F2937;
    --color-gray-900: #111827;
    
    /* ===== COLORES DE ESTADO ===== */
    --color-success: #10B981;           /* Verde éxito */
    --color-warning: #F59E0B;           /* Amarillo advertencia */
    --color-error: #EF4444;             /* Rojo error */
    --color-info: #3B82F6;              /* Azul información */
    
    /* ===== COLORES Q10 (plataforma) ===== */
    --color-q10: #4A90E2;               /* Azul Q10 */
    --color-q10-hover: #357ABD;         /* Azul Q10 hover */
    
    /* ===== GRADIENTES ===== */
    --gradient-primary: linear-gradient(135deg, #FF9F5A 0%, #FFD54F 100%);
    --gradient-secondary: linear-gradient(135deg, #FFD700 0%, #DAA520 100%);
    --gradient-hero: linear-gradient(135deg, #FFA550 0%, #FFD54F 50%, #FF9F5A 100%);
    --gradient-overlay: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    --gradient-red-yellow: linear-gradient(135deg, #DC143C 0%, #FFD700 100%);
    --gradient-blue: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%);
    
    /* ===== TIPOGRAFÍA ===== */
    
    /* Font Families */
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-chinese: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-display: 'Playfair Display', Georgia, serif; /* Alias para compatibilidad */
    
    /* Font Sizes */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 1.875rem;    /* 30px */
    --text-4xl: 2.25rem;     /* 36px */
    --text-5xl: 3rem;        /* 48px */
    --text-6xl: 3.75rem;     /* 60px */
    --text-7xl: 4.5rem;      /* 72px */
    
    /* Font Weights */
    --font-light: 300;
    --font-regular: 400;
    --font-normal: 400;       /* Alias para compatibilidad */
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    --font-black: 900;
    
    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;
    
    /* ===== ESPACIADO ===== */
    --space-1: 0.25rem;      /* 4px */
    --space-2: 0.5rem;       /* 8px */
    --space-3: 0.75rem;      /* 12px */
    --space-4: 1rem;         /* 16px */
    --space-5: 1.25rem;      /* 20px */
    --space-6: 1.5rem;       /* 24px */
    --space-8: 2rem;         /* 32px */
    --space-10: 2.5rem;      /* 40px */
    --space-12: 3rem;        /* 48px */
    --space-16: 4rem;        /* 64px */
    --space-20: 5rem;        /* 80px */
    --space-24: 6rem;        /* 96px */
    --space-32: 8rem;        /* 128px */
    
    /* ===== LAYOUT ===== */
    --container-width: 1200px;          /* Ancho máximo del container */
    --container-max-width: 1280px;      /* Alias para compatibilidad */
    --container-padding: 1.5rem;        /* Padding del container */
    --section-padding: 5rem;            /* Padding de secciones */
    
    /* ===== BORDER RADIUS ===== */
    --radius-sm: 0.25rem;    /* 4px */
    --radius-md: 0.5rem;     /* 8px */
    --radius-lg: 0.75rem;    /* 12px */
    --radius-xl: 1rem;       /* 16px */
    --radius-2xl: 1.5rem;    /* 24px */
    --radius-full: 9999px;   /* Circular */
    
    /* Border Widths */
    --border-thin: 1px;
    --border-medium: 2px;
    --border-thick: 4px;
    
    /* ===== SOMBRAS ===== */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    
    /* Custom Shadows */
    --shadow-primary: 0 10px 30px -5px rgba(255, 159, 90, 0.3);
    --shadow-hover: 0 15px 35px -5px rgba(255, 159, 90, 0.4);
    
    /* ===== TRANSICIONES ===== */
    --transition-fast: 150ms;
    --transition-base: 300ms;
    --transition-slow: 500ms;
    --transition-slower: 700ms;
    
    /* Easing functions */
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    
    /* ===== Z-INDEX ===== */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    
    /* ===== BREAKPOINTS ===== */
    --breakpoint-xs: 475px;
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;
}

/* Dark Mode Variables (opcional para futuro) */
@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: var(--color-gray-900);
        --color-text: var(--color-gray-100);
    }
}

/* =====================================================
   SECCIÓN 2: TIPOGRAFÍA
   ===================================================== */

/* ===== HEADINGS ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--color-gray-900);
    margin-bottom: var(--space-4);
}

h1 {
    font-size: var(--text-5xl);
    font-weight: var(--font-extrabold);
    line-height: 1.1;
}

h2 {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
}

h3 {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
}

h4 {
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
}

h5 {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
}

h6 {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
}

/* ===== PARAGRAPHS ===== */
p {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--color-gray-700);
    margin-bottom: var(--space-4);
}

p:last-child {
    margin-bottom: 0;
}

p strong {
    font-weight: var(--font-semibold);
    color: var(--color-gray-900);
}

/* ===== LINKS ===== */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-base) var(--ease-out);
}

a:hover {
    color: var(--color-primary-dark);
}

a:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Link with underline */
.link {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ===== LISTS ===== */
ul, ol {
    margin-bottom: var(--space-4);
    padding-left: var(--space-6);
}

ul li, ol li {
    margin-bottom: var(--space-2);
    color: var(--color-gray-700);
    line-height: var(--leading-relaxed);
}

ul {
    list-style-type: disc;
}

ol {
    list-style-type: decimal;
}

/* ===== BLOCKQUOTES ===== */
blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: var(--space-6);
    margin: var(--space-8) 0;
    font-style: italic;
    color: var(--color-gray-600);
}

blockquote p {
    font-size: var(--text-lg);
}

/* ===== CODE ===== */
code {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.875em;
    background-color: var(--color-gray-100);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    color: var(--color-primary);
}

pre code {
    display: block;
    padding: var(--space-4);
    overflow-x: auto;
    background-color: var(--color-gray-900);
    color: var(--color-gray-100);
    border-radius: var(--radius-md);
}

/* ===== UTILITY CLASSES ===== */

/* Text Sizes */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }
.text-5xl { font-size: var(--text-5xl); }

/* Font Weights */
.font-light { font-weight: var(--font-light); }
.font-normal { font-weight: var(--font-regular); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }
.font-extrabold { font-weight: var(--font-extrabold); }

/* Text Colors */
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-white { color: var(--color-white); }
.text-gray { color: var(--color-gray-600); }
.text-dark { color: var(--color-gray-900); }

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Text Transform */
.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }

/* Line Heights */
.leading-tight { line-height: var(--leading-tight); }
.leading-normal { line-height: var(--leading-normal); }
.leading-relaxed { line-height: var(--leading-relaxed); }
.leading-loose { line-height: var(--leading-loose); }

/* Chinese Text */
.chinese {
    font-family: var(--font-chinese);
    font-weight: var(--font-bold);
}

/* Display Font */
.font-display {
    font-family: var(--font-display);
}

/* ===== RESPONSIVE TYPOGRAPHY ===== */
@media (max-width: 1024px) {
    h1 { font-size: var(--text-4xl); }
    h2 { font-size: var(--text-3xl); }
    h3 { font-size: var(--text-2xl); }
    h4 { font-size: var(--text-xl); }
}

@media (max-width: 768px) {
    h1 { font-size: var(--text-3xl); }
    h2 { font-size: var(--text-2xl); }
    h3 { font-size: var(--text-xl); }
    h4 { font-size: var(--text-lg); }
    
    p { font-size: var(--text-sm); }
}

/* =====================================================
   FIN DEL ARCHIVO UNIFICADO
   
   RESUMEN:
   ✅ Variables CSS completas (colores del logo oficial)
   ✅ Tipografía completa (headings, párrafos, listas, código)
   ✅ Utility classes para texto
   ✅ Responsive typography
   ✅ Sin duplicados
   ✅ Todo ordenado por secciones
   
   COMPATIBILIDAD:
   ✅ Mantiene todos los alias para retrocompatibilidad
   ✅ Funciona con todo el código existente
   ✅ No rompe ningún estilo
   ===================================================== */
