@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Marca Colores REALES - Enbici Nicaragua (extraídos de Instagram) */
  --color-primary: #D42027;         /* Rojo Enbici */
  --color-primary-rgb: 212, 32, 39;
  --color-primary-dark: #B01A20;    /* Rojo hover */
  --color-secondary: #1B2A4A;       /* Azul Navy */
  --color-secondary-rgb: 27, 42, 74;
  --color-accent: #E8A830;          /* Dorado para badges */
  --color-teal: #0A3D2F;            /* Verde Teal para hero */
  
  /* Fondos - Predominantemente BLANCOS */
  --color-bg-dark: #FFFFFF;          /* Fondo principal BLANCO */
  --color-surface-dark: #F5F5F7;     /* Superficie gris claro */
  --color-surface-dark-elevated: #EEEEF0;
  --color-border-dark: #E0E0E5;      /* Bordes suaves */
  
  /* Neutros Claros */
  --color-bg-light: #FAFAFA;
  --color-surface-light: #ffffff;
  --color-border-light: #D0D5DD;
  
  /* Textos - Navy como color principal */
  --color-text-dark-primary: #1B2A4A;
  --color-text-dark-secondary: #5A6577;
  --color-text-light-primary: #FFFFFF;
  --color-text-light-secondary: #C0C8D4;

  /* Fuentes */
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Border Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Espaciado Base y Fluidos */
  --space-unit: 8px;
  --space-xs: calc(var(--space-unit) * 1);
  --space-sm: calc(var(--space-unit) * 2);
  --space-md: calc(var(--space-unit) * 4);
  --space-lg: calc(var(--space-unit) * 8);
  --space-xl: calc(var(--space-unit) * 12);
  --space-xxl: calc(var(--space-unit) * 20);

  --fluid-space-sm: clamp(12px, 2vw, 24px);
  --fluid-space-md: clamp(24px, 4vw, 48px);
  --fluid-space-lg: clamp(48px, 8vw, 96px);
  --fluid-space-xl: clamp(80px, 12vw, 160px);

  /* Gradientes - Rojo a Navy */
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, #1B2A4A 100%);
  --gradient-dark: linear-gradient(180deg, #1B2A4A 0%, #0F1B30 100%);
  --gradient-glow: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(var(--color-primary-rgb), 0.1) 0%, transparent 60%);
  
  /* Sombras - más suaves para tema claro */
  --shadow-sm: 0 2px 8px rgba(27, 42, 74, 0.06);
  --shadow-md: 0 8px 24px rgba(27, 42, 74, 0.1);
  --shadow-lg: 0 16px 48px rgba(27, 42, 74, 0.15);
  --backdrop-blur: blur(12px);

  /* Transiciones Globales */
  --transition-fast: 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-normal: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-elastic: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Resets Modernos --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto; /* Desactivado para smooth scroll JS personalizado */
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
  background-color: #FFFFFF;
  color: #1B2A4A;
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #F5F5F7;
}
::-webkit-scrollbar-thumb {
  background: #D0D5DD;
  border-radius: var(--radius-sm);
  border: 2px solid #FFFFFF;
}
::-webkit-scrollbar-thumb:hover {
  background: #A0A8B4;
}

/* --- Tipografía --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text-dark-primary);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
}

p {
  color: var(--color-text-dark-secondary);
  font-size: clamp(0.95rem, 1.2vw, 1.125rem);
  font-weight: 400;
}

strong {
  font-weight: 600;
  color: var(--color-text-dark-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* --- Layout --- */
.section {
  position: relative;
  width: 100%;
  padding: var(--fluid-space-xl) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--fluid-space-md);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--fluid-space-md);
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--fluid-space-md);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--fluid-space-md);
}

@media (max-width: 1024px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* Utility classes */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Cursor Personalizado Base */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background: rgba(212, 32, 39, 0.15);
  border: 1px solid #D42027;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: width 0.3s, height 0.3s, background-color 0.3s;
  mix-blend-mode: normal;
}

.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: #D42027;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 10000;
  mix-blend-mode: normal;
}

@media (max-width: 1024px) {
  .custom-cursor, .custom-cursor-dot {
    display: none;
  }
}
