/* ========================================
   CSS RESET & BASE STYLES
======================================== */

@import url('https://fonts.cdnfonts.com/css/dm-sans');


/* Reset básico */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-default);
  background-color: var(--bg-default);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   CSS VARIABLES (DESIGN SYSTEM)
   ======================================== */

:root {
  /* Colores principales */
  --blue-50: #E8F2FE;
  --blue-200: #B8D9FD;
  --blue-500: #2590CE;
  --blue-700: #1E6FA8;
  --blue-900: #124D73;

  /* Grises neutros */
  --gray-50: #f4f4f5;
  --gray-100: #e5e7eb;
  --gray-150: #d1d5db;
  --gray-200: #E5E7EB;
  --gray-400: #94A3B8;
  --gray-700: #515164;
  --gray-900: #25253d;

  /* Amarillos suaves */
  --yellow-50: #FFFBE6;
  --yellow-200: #FFE08A;
  --yellow-400: #FFD66E;
  --yellow-600: #FBBF24;
  --yellow-800: #B45309;

  /* Naranjas */
  --orange-50: #FFFBE6;
  --orange-200: #FFE08A;
  --orange-500: #ff6600;
  --orange-700: #B45309;
  --orange-900: #78350F;

  /* Fondos y textos */
  --bg-default: #FAFAFA;
  --bg-white: #FFFFFF;
  --text-default: var(--gray-900);
  --text-muted: var(--gray-700);
  --text-light: var(--gray-400);
  --text-disabled: #91919d;

  /* Estados */
  --success: #10B981;
  --error: #EF4444;
  --warning: #F59E0B;
  --info: var(--blue-500);

  /* Espaciado */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
  --spacing-4xl: 96px;

  /* Bordes */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;

  /* Sombras */
  --shadow-sm: 0 1px 2px 0 rgba(30, 41, 59, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(30, 41, 59, 0.1), 0 2px 4px -1px rgba(30, 41, 59, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(30, 41, 59, 0.1), 0 4px 6px -2px rgba(30, 41, 59, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(30, 41, 59, 0.1), 0 10px 10px -5px rgba(30, 41, 59, 0.04);

  /* Transiciones */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;

  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* ========================================
   TIPOGRAFÍA
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-default);
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: 48px;
  line-height: 1.2;
}

h2 {
  font-size: 30px;
  line-height: 1.25;
}

h3 {
  font-size: 24px;
  line-height: 1.3;
}

h4 {
  font-size: 20px;
  line-height: 1.4;
}

h5 {
  font-size: 18px;
  line-height: 1.4;
}

h6 {
  font-size: 16px;
  line-height: 1.5;
}

p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--blue-500);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--blue-700);
}

/* ========================================
   RESPONSIVE TIPOGRAFÍA
   ======================================== */

@media (max-width: 768px) {
  h1 {
    font-size: 32px;
  }
  
  h2 {
    font-size: 28px;
  }
  
  h3 {
    font-size: 20px;
  }
  
  p {
    font-size: 14px;
  }
}

/* ========================================
   UTILIDADES BÁSICAS
   ======================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--spacing-lg);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--spacing-xl);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* ========================================
   LAYOUT HELPERS
   ======================================== */

.section {
  padding: var(--spacing-4xl) 0;
}

@media (max-width: 768px) {
  .section {
    padding: var(--spacing-2xl) 0;
  }
}

  /* ========================================
    PAGE LOADER OVERLAY
    ======================================== */

    #page-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
  }

  .loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--blue-500);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
  }

  @keyframes spin {
    to { transform: rotate(360deg); }
  }

