/* ==========================================================================
   DÍA INTERNACIONAL DE LA ALFABETIZACIÓN 2026 - PALETA & ESTILOS GLOBALES
   Diseño Editorial Ejecutivo · UNESCO & Gobierno de México
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Paleta Principal: Lienzo Marfil y Verde Bosque Ejecutivo */
  --cream:        #FBF9F4;   /* Fondo general cálido */
  --ivory:        #F5F2EA;   /* Secciones secundarias */
  --white:        #FFFFFF;   /* Tarjetas y contenedores */
  --parchment:    #EFEAE0;   /* Acentos suaves y divisores */

  /* Verde Bosque Institucional — Máximo contraste y elegancia */
  --forest-green: #2D4F38;   /* Acento principal */
  --ochre:        #2D4F38;   /* Alias de compatibilidad */
  --forest-dark:  #1F3927;   /* Hover en botones */
  --forest-light: #446C51;   /* Verde medio */
  --forest-soft:  #EBF2EC;   /* Fondo de iconos y badges */
  --forest-border: rgba(45, 79, 56, 0.18);
  --forest-border-strong: rgba(45, 79, 56, 0.4);

  /* Tipografía Oscura de Alto Contraste */
  --ink:          #1A1E1B;   /* Títulos y texto principal (casi negro profundo) */
  --ink-soft:     #333A35;   /* Texto de lectura */
  --ink-muted:    #525C56;   /* Descripciones secundarias */
  --ink-faint:    #7C8880;   /* Metadatos y etiquetas suaves */

  /* Bordes y Divisores */
  --border:       rgba(45, 79, 56, 0.16);
  --border-soft:  rgba(0, 0, 0, 0.07);
  --divider:      rgba(45, 79, 56, 0.25);

  /* Tipografía */
  --serif:        'Cormorant Garamond', Georgia, serif;
  --sans:         'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Sombras Sutiles y Naturales */
  --shadow-xs:    0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-sm:    0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md:    0 8px 24px rgba(0, 0, 0, 0.07);
  --shadow-lg:    0 16px 40px rgba(0, 0, 0, 0.09);

  /* Transiciones */
  --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --t-fast:       0.18s;
  --t-med:        0.35s;
  --t-slow:       0.6s;

  /* Layout */
  --nav-h:        76px;
  --max-w:        1200px;
  --col-gap:      2rem;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--forest-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--forest-green); }

/* ---- Tipografía ---- */
h1, h2, h3, h4, .font-serif {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.6rem, 4.5vw, 4.4rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; font-family: var(--sans); }

p { color: var(--ink-muted); line-height: 1.75; font-size: 0.95rem; }

a { color: var(--forest-green); text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--forest-dark); }

/* ---- Utilidades de Layout ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section { padding: 5rem 0; }
.section--sm { padding: 3rem 0; }
.section--lg { padding: 7rem 0; }

/* Divisor de línea con punto verde central (exacto al diseño) */
.divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: fit-content;
  margin: 1.2rem auto;
}
.divider::before, .divider::after {
  content: '';
  display: block;
  width: 45px;
  height: 1.5px;
  background: var(--forest-green);
  opacity: 0.4;
}
.divider-mark {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--forest-green);
  display: inline-block;
}

/* Etiqueta Eyebrow / Kicker */
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest-green);
  margin-bottom: 0.6rem;
}

/* ---- Botones ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.8rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all var(--t-med) var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--forest-green);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(45, 79, 56, 0.2);
}
.btn-primary:hover {
  background: var(--forest-dark);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(45, 79, 56, 0.3);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--forest-green);
  color: var(--forest-green);
  background: var(--forest-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--forest-green);
  border: 1px solid var(--forest-border);
  padding: 0.65rem 1.4rem;
}
.btn-ghost:hover {
  background: var(--forest-green);
  color: #FFFFFF;
}

/* ---- Tarjetas ---- */
.card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: all var(--t-med) var(--ease);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--forest-border);
}

.card--accent {
  border-left: 4px solid var(--forest-green);
}

/* ---- Badges & Pills ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  background: var(--forest-soft);
  border: 1px solid var(--forest-border);
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest-green);
}

/* ---- Animaciones ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim-fade-up {
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) forwards;
}
.anim-delay-1 { animation-delay: 0.08s; }
.anim-delay-2 { animation-delay: 0.18s; }
.anim-delay-3 { animation-delay: 0.28s; }
.anim-delay-4 { animation-delay: 0.38s; }

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Icon box */
.icon-box {
  width: 44px;
  height: 44px;
  background: var(--forest-soft);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest-green);
  flex-shrink: 0;
}
