/* ============================================
   DESIGN SYSTEM - Grupo Scout San Patricio N°91
   Basado en el diseño moderno con tonos naturales
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bitter:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Paleta Principal - Tonos Naturales */
  --scout-bg-primary: #F8F5F0;
  --scout-bg-secondary: #ECE6D8;
  --scout-text-primary: #37474F;
  --scout-text-secondary: #546E7A;
  
  /* Verdes Scout */
  --scout-green-dark: #1B3022;
  --scout-green-primary: #2E7D32;
  --scout-green-light: #1B5E20;
  --scout-green-accent: #5fb88a;
  
  /* Rojos de Acción */
  --scout-red-primary: #C62828;
  --scout-red-dark: #B71C1C;
  --scout-red-light: #E53935;
  
  /* Amarillos/Dorados */
  --scout-gold-primary: #FBC02D;
  --scout-gold-dark: #F9A825;
  
  /* Colores de Ramas */
  --rama-castores: #795548;
  --rama-lobatos: #FBC02D;
  --rama-scouts: #388E3C;
  --rama-raiders: #039BE5;
  --rama-rovers: #D32F2F;
  --rama-adultos: #B0BEC5;
  
  /* Blancos y Grises */
  --scout-white: #ffffff;
  --scout-white-soft: #fafafa;
  --scout-border-light: rgba(236, 230, 216, 0.5);
  
  /* Grises Complementarios */
  --gray-50: #fafafa;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  
  /* Alias de Colores Principales */
  --color-bg: var(--scout-bg-primary);
  --color-surface: var(--scout-white);
  --color-primary: var(--scout-green-primary);
  --color-primary-dark: var(--scout-green-light);
  --color-primary-light: var(--scout-green-accent);
  --color-secondary: var(--scout-red-primary);
  --color-secondary-dark: var(--scout-red-dark);
  --color-accent: var(--scout-gold-primary);
  --color-accent-dark: var(--scout-gold-dark);
  --color-text: var(--scout-text-primary);
  --color-text-secondary: var(--scout-text-secondary);
  
  /* Tipografía - Bitter para encabezados, Inter para texto */
  --font-serif: 'Bitter', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-primary: var(--font-sans);
  --font-body: var(--font-sans);
  --font-heading: var(--font-serif);
  --font-mono: "Consolas", "Monaco", "Courier New", monospace;
  
  /* Espaciado Consistente (Sistema de 4px) */
  --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 */
  --spacing-4xl: 6rem;     /* 96px */
  
  /* Sombras */
  --shadow-xs: 0 1px 2px 0 rgba(11, 47, 31, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(11, 47, 31, 0.08), 0 1px 2px 0 rgba(11, 47, 31, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(11, 47, 31, 0.1), 0 2px 4px -1px rgba(11, 47, 31, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(11, 47, 31, 0.1), 0 4px 6px -2px rgba(11, 47, 31, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(11, 47, 31, 0.1), 0 10px 10px -5px rgba(11, 47, 31, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(11, 47, 31, 0.25);
  
  /* Bordes */
  --radius-xs: 0.125rem;   /* 2px */
  --radius-sm: 0.25rem;    /* 4px */
  --radius-md: 0.5rem;     /* 8px */
  --radius-lg: 1rem;       /* 16px */
  --radius-xl: 1.5rem;     /* 24px */
  --radius-full: 9999px;
  
  /* Transiciones */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
  
  /* Z-Index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;

  /* Estados semánticos */
  --color-success: #2E7D32;
  --color-success-light: #E8F5E9;
  --color-warning: #F57F17;
  --color-warning-light: #FFF8E1;
  --color-danger: #D32F2F;
  --color-danger-light: #FFEBEE;
  --color-info: #1565C0;
  --color-info-light: #E3F2FD;
  --color-muted: #78909C;

  /* Referencias adicionales */
  --scout-ink-900: #263238;
  --scout-text: var(--scout-text-primary);
  --scout-border: #E0D8CC;
}

/* ============================================
   UTILIDADES TIPOGRÁFICAS
   ============================================ */

/* Escala Tipográfica Modular (1.250 - Major Third) */
.text-xs { 
  font-size: 0.75rem;      /* 12px */
  line-height: 1.5; 
}

.text-sm { 
  font-size: 0.875rem;     /* 14px */
  line-height: 1.5; 
}

.text-base { 
  font-size: 1rem;         /* 16px */
  line-height: 1.5; 
}

.text-lg { 
  font-size: 1.125rem;     /* 18px */
  line-height: 1.5; 
}

.text-xl { 
  font-size: 1.25rem;      /* 20px */
  line-height: 1.4; 
}

.text-2xl { 
  font-size: 1.5rem;       /* 24px */
  line-height: 1.3; 
}

.text-3xl { 
  font-size: 1.875rem;     /* 30px */
  line-height: 1.2; 
}

.text-4xl { 
  font-size: 2.25rem;      /* 36px */
  line-height: 1.1; 
}

.text-5xl { 
  font-size: 3rem;         /* 48px */
  line-height: 1; 
}

.text-6xl { 
  font-size: 3.75rem;      /* 60px */
  line-height: 1; 
}

/* Pesos de Fuente */
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

/* Familias de Fuente */
.font-body { font-family: var(--font-body); }
.font-heading { font-family: var(--font-heading); }
.font-mono { font-family: var(--font-mono); }

/* Colores de Texto */
.text-primary { color: var(--color-primary) !important; }
.text-accent { color: var(--color-accent) !important; }
.text-success { color: var(--color-success) !important; }
.text-warning { color: var(--color-warning) !important; }
.text-danger { color: var(--color-danger) !important; }
.text-info { color: var(--color-info) !important; }
.text-muted { color: var(--color-muted) !important; }

/* ============================================
   UTILIDADES DE ESPACIADO
   ============================================ */

/* Gaps para Flexbox y Grid */
.gap-xs { gap: var(--spacing-xs); }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }
.gap-xl { gap: var(--spacing-xl); }
.gap-2xl { gap: var(--spacing-2xl); }

/* ============================================
   UTILIDADES DE ANIMACIÓN
   ============================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

.animate-slide-up {
  animation: slideUp 0.8s ease-out;
}

.animate-slide-up-delay-1 {
  animation: slideUp 0.8s ease-out 0.2s both;
}

.animate-slide-up-delay-2 {
  animation: slideUp 0.8s ease-out 0.4s both;
}

.animate-scale-in {
  animation: scaleIn 0.3s ease-out;
}

/* ============================================
   UTILIDADES DE SOMBRA
   ============================================ */

.shadow-xs { box-shadow: var(--shadow-xs); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: var(--shadow-2xl); }
.shadow-none { box-shadow: none !important; }

/* ============================================
   UTILIDADES DE BORDER RADIUS
   ============================================ */

.rounded-xs { border-radius: var(--radius-xs); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }
