/**
 * VARIABLES CSS - GOMALOR
 * Sistema de design tokens para consistencia visual
 */

:root {
  /* ============================================
     PALETA DE COLORES
     ============================================ */
  
  /* Colores primarios */
  --color-primary: #2D5016;           /* Verde campo oscuro */
  --color-primary-light: #3a6b1d;     /* Verde campo claro */
  --color-primary-dark: #1f3810;      /* Verde campo muy oscuro */
  
  --color-secondary: #C1272D;         /* Rojo frambuesa */
  --color-secondary-light: #d63d42;   /* Rojo frambuesa claro */
  --color-secondary-dark: #9a1f23;    /* Rojo frambuesa oscuro */
  
  --color-accent: #7CAA2D;            /* Verde claro vibrante */
  --color-accent-light: #93c13d;      /* Verde claro más vibrante */
  --color-accent-dark: #658b24;       /* Verde claro oscuro */
  
  /* Colores neutros */
  --color-white: #FFFFFF;
  --color-black: #1A1A1A;
  --color-gray-darker: #222222;
  --color-gray-dark: #333333;
  --color-gray-medium: #666666;
  --color-gray: #999999;
  --color-gray-light: #CCCCCC;
  --color-gray-lighter: #E5E5E5;
  --color-gray-lightest: #F5F5F5;
  
  /* Overlays */
  --overlay-dark: rgba(0, 0, 0, 0.35);
  --overlay-dark-heavy: rgba(0, 0, 0, 0.6);
  --overlay-light: rgba(255, 255, 255, 0.9);
  --overlay-light-soft: rgba(255, 255, 255, 0.5);
  
  /* Estados */
  --color-success: #22C55E;
  --color-error: #EF4444;
  --color-warning: #F59E0B;
  --color-info: #3B82F6;
  
  /* ============================================
     TIPOGRAFÍA
     ============================================ */
  
  /* Familias de fuentes */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-headings: 'Poppins', sans-serif;
  
  /* Tamaños de fuente */
  --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: 2rem;        /* 32px */
  --text-4xl: 2.5rem;      /* 40px */
  --text-5xl: 3rem;        /* 48px */
  --text-6xl: 4rem;        /* 64px */
  
  /* Pesos de fuente */
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  
  /* Line heights */
  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;
  --leading-loose: 2;
  
  /* ============================================
     ESPACIADO
     ============================================ */
  
  --space-xs: 0.5rem;      /* 8px */
  --space-sm: 1rem;        /* 16px */
  --space-md: 1.5rem;      /* 24px */
  --space-lg: 2rem;        /* 32px */
  --space-xl: 3rem;        /* 48px */
  --space-2xl: 4rem;       /* 64px */
  --space-3xl: 6rem;       /* 96px */
  --space-4xl: 8rem;       /* 128px */
  
  /* ============================================
     LAYOUT
     ============================================ */
  
  /* Container max-widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;
  
  /* Breakpoints (para referencia en JS) */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;
  
  /* Z-index layers */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  
  /* ============================================
     BORDES Y SOMBRAS
     ============================================ */
  
  /* Border radius */
  --radius-sm: 0.25rem;    /* 4px */
  --radius-md: 0.5rem;     /* 8px */
  --radius-lg: 1rem;       /* 16px */
  --radius-xl: 1.5rem;     /* 24px */
  --radius-full: 9999px;   /* Círculo completo */
  
  /* Box shadows */
  --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);
  
  /* ============================================
     TRANSICIONES Y ANIMACIONES
     ============================================ */
  
  /* Duraciones */
  --duration-fast: 0.15s;
  --duration-normal: 0.3s;
  --duration-slow: 0.5s;
  --duration-slower: 0.8s;
  --duration-hero-slide: 5s;
  --duration-ken-burns: 10s;
  
  /* Easing functions */
  --easing-linear: linear;
  --easing-smooth: cubic-bezier(0.4, 0.0, 0.2, 1);
  --easing-in: cubic-bezier(0.4, 0.0, 1, 1);
  --easing-out: cubic-bezier(0.0, 0.0, 0.2, 1);
  --easing-in-out: cubic-bezier(0.4, 0.0, 0.2, 1);
  --easing-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* ============================================
     COMPONENTES ESPECÍFICOS
     ============================================ */
  
  /* Header */
  --header-height: 80px;
  --header-height-mobile: 64px;
  
  /* Hero */
  --hero-min-height: 100vh;
  --hero-parallax-speed: 0.3;
  
  /* Gallery */
  --gallery-columns-mobile: 2;
  --gallery-columns-tablet: 3;
  --gallery-columns-desktop: 4;
  --gallery-gap: var(--space-sm);
  
  /* Buttons */
  --btn-padding-x: 2rem;
  --btn-padding-y: 0.75rem;
  --btn-border-radius: var(--radius-md);
  
  /* Forms */
  --input-height: 48px;
  --input-border-radius: var(--radius-sm);
  --input-border-color: var(--color-gray-light);
  --input-focus-border-color: var(--color-primary);
}

/* ============================================
   DARK MODE VARIABLES (futuro)
   ============================================ */

@media (prefers-color-scheme: dark) {
  /* Variables para modo oscuro (opcional) */
  /* Se pueden descomentar cuando se implemente dark mode */
  /*
  :root {
    --color-white: #1A1A1A;
    --color-black: #FFFFFF;
    --color-gray-lightest: #222222;
    --overlay-dark: rgba(255, 255, 255, 0.1);
  }
  */
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0.01ms;
    --duration-normal: 0.01ms;
    --duration-slow: 0.01ms;
    --duration-slower: 0.01ms;
    --duration-hero-slide: 0.01ms;
  }
}