/* =========================================================
   MAIN.CSS — Diseño global y tokens del sistema
   ========================================================= */

/* ============ VARIABLES Y TOKENS ============ */
:root {
  /* Paleta de colores */
  --body-color: #c4d3e0;
  --surface: #ffffff;
  --soft: #f5f6fa;
  --border: #e6e9ef;

  --primary: #012b7e;
  --primary-light: #5dd3e9;
  --primary-600: #01348f;
  --warning: #f39c12;

  --text: #011149;
  --muted: #6b7a8c;
  --inverse: #ffffff;

  --ok: #06d6a0;
  --danger: #e63946;

  /* Tipografía */
  --ff: 'Inter', 'Segoe UI', sans-serif;
  --fw-400: 400;
  --fw-500: 500;
  --fw-600: 600;
  --fw-700: 700;

  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(1, 17, 73, .06);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, .15);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .25);

  /* Bordes */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  /* Tamaños base */
  --container: 1200px;
  --sp-2: 8px;
  --sp-4: 16px;
  --sp-6: 24px;
  --sp-8: 32px;
}

/* ============ RESET / BASE ============ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--ff);
  color: var(--text);
  background: var(--soft);
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ============ BOTONES GLOBALES ============ */
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: var(--fw-600);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-600);
}

.btn-outline {
  background: #fff;
  border-color: var(--border);
  color: var(--primary);
}
.btn-outline:hover {
  background: rgba(1, 43, 126, .05);
}

/* ============ BADGES Y PILLS ============ */
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--text);
  font-size: .8rem;
  font-weight: var(--fw-600);
}

.pill {
  display: inline-block;
  color: var(--primary);
  font-weight: var(--fw-600);
}

/* ============ UTILIDADES ============ */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }

.rounded { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }

/* ============ LAYOUT BASE ============ */
.container {
  max-width: var(--container);
  margin: auto;
  padding: 0 var(--sp-4);
}

.section {
  padding: 40px var(--sp-4);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .section {
    padding: 30px var(--sp-2);
  }
}
