/* ==========================================================================
   STYLES.CSS - Estilos Globales para DaruPay
   ========================================================================== */

/* 1. VARIABLES GLOBALES (RAÍZ DEL DISEÑO)
   ========================================================================== */
:root {
  /* Paleta de Colores de Marca */
  --dp-green-500: #15D372;
  --dp-green-600: #12B964;

  /* Paleta de Colores (se aplicará según el tema) */
  --bg-primary: #D1D1D1;      
  --bg-secondary: #111827;    
  --text-primary: #F0F5F2;    
  --text-muted: #98A8A1;      
  --border-primary: rgba(255, 255, 255, 0.1);

  /* Tipografía */
  --font-family-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Sistema de Diseño */
  --radius: 0.75rem;
  --transition: 0.3s ease;
  --shadow-md: 0 4px 15px rgba(0, 0, 0, .2);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, .25);
}

/* Aplicamos las paletas según el tema (light/dark) de Bootstrap */
html[data-bs-theme="dark"] {
  --bg-primary: #1F2937;      
  --bg-secondary: #374151;    
  --text-primary: #F0F5F2;    
  --text-muted: #9ca3af;      
  --border-primary: rgba(255, 255, 255, 0.1);
}

html[data-bs-theme="light"] {
  /* ===== ESTOS SON LOS COLORES QUE CAMBIARON ===== */
  --bg-primary: #F3F4F6;      /* Fondo principal (Gris claro muy suave) */
  --bg-secondary: #FFFFFF;    /* Superficies como cards se quedan en blanco para contraste */
  /* ============================================== */
  --text-primary: #111827;
  --text-muted: #6B7280;
  --border-primary: rgba(0, 0, 0, 0.08);
}


/* 2. RESET BÁSICO Y ESTILOS DEL BODY
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; 
}

body {
  font-family: var(--font-family-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* 3. TIPOGRAFÍA GLOBAL
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance; 
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

a {
  color: var(--dp-green-500);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--dp-green-600);
}

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


/* 4. CLASES DE UTILIDAD (HELPERS)
   ========================================================================== */
.section {
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

.highlight {
  color: var(--dp-green-500);
}