/* ==========================================================================
   BASE.CSS — Design Tokens + Reset + Tipografía + Utilidades de Layout
   Fuente única de verdad para variables y estilos fundamentales del proyecto
   ========================================================================== */


/* ---- DESIGN TOKENS ---- */

:root {
  /* Colores Principales */
  --color-primary: #0D233A;
  --color-primary-light: #163654;
  --color-brand: #1B4965;
  --color-accent: #F4B400;
  --color-accent-hover: #D99B00;
  --color-route-deep: #E8A800;

  /* Textos y Neutros */
  --color-dark: #1E293B;
  --color-muted: #64748B;
  --color-light-gray: #E2E8F0;
  --color-surface: #F8FAFC;
  --color-white: #FFFFFF;

  /* Estados */
  --color-success: #10B981;
  --color-info: #0284C7;
  --color-transit: #00A896;

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

  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(13, 35, 58, 0.05);
  --shadow-md: 0 8px 24px rgba(13, 35, 58, 0.08);
  --shadow-lg: 0 16px 36px rgba(13, 35, 58, 0.12);

  /* Bordes */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  /* Transiciones */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ---- RESET ---- */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-white);
  color: var(--color-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul, ol { list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}


/* ---- TIPOGRAFÍA ---- */

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-brand);
  background-color: rgba(27, 73, 101, 0.08);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.25;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-muted);
}

.subsection-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 36px;
}


/* ---- UTILIDADES DE LAYOUT ---- */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }
.max-w-700 { max-width: 700px; margin-left: auto; margin-right: auto; }

.section {
  padding: 96px 0;
}

.section-header {
  margin-bottom: 56px;
}

.cards-grid {
  display: grid;
  gap: 28px;
}

.two-cols { grid-template-columns: repeat(2, 1fr); }
.three-cols { grid-template-columns: repeat(3, 1fr); }
.four-cols { grid-template-columns: repeat(4, 1fr); }

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}


/* ---- RESPONSIVE BASE ---- */

@media (max-width: 992px) {
  .three-cols, .four-cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section-title { font-size: 1.85rem; }
  .two-cols, .three-cols, .four-cols { grid-template-columns: 1fr; }
}
