/* ==========================================================================
   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: Azul Institucional y Amarillo Dorado de Alto Impacto */
  --blue-primary:        #1974A9;   /* Azul oficial UNESCO & Conferencia */
  --blue-dark:           #10537A;   /* Azul profundo para hover y contrastes */
  --blue-deeper:         #0A344D;   /* Azul noche para fondos oscuros */
  --blue-soft:           #EBF4FA;   /* Azul muy suave para fondos de tarjetas/badges */
  --blue-border:         rgba(25, 116, 169, 0.18);
  --blue-border-strong:  rgba(25, 116, 169, 0.4);

  /* Gama Amarilla / Dorada Enriquecida - Notoriedad y Contraste */
  --yellow-primary:      #F1CD53;   /* Amarillo oficial sólido */
  --yellow-dark:         #D99B1A;   /* Amarillo oro profundo para contraste en texto y bordes */
  --yellow-hover:        #E2BC3C;   /* Hover en botones amarillos */
  --yellow-soft:         #F1CD53;   /* Fondo amarillo oficial sólido */
  --yellow-soft-subtle:  #F1CD53;   /* Fondo amarillo oficial sólido */
  --yellow-soft-gradient:none;      /* Sin degradado */
  --yellow-border:       rgba(217, 155, 26, 0.45);
  --yellow-glow:         rgba(241, 205, 83, 0.45);
  --yellow-badge-text:   #614200;   /* Texto accesible de alto contraste para fondo amarillo */

  /* Fondos de Sección con Tono Amarillo Sólido Oficial #F1CD53 */
  --yellow-section:      #F1CD53;   /* Amarillo sólido oficial #F1CD53 */
  --yellow-section-light:#F1CD53;
  --yellow-section-gradient: none;  /* Sin degradado */
  --yellow-section-border: rgba(217, 155, 26, 0.35);

  /* Lienzo y Superficies — Blanco Estilizado Alabastro / Pearl */
  --cream:               #FAFBFC;   /* Fondo general blanco estilizado premium */
  --ivory:               #F1CD53;   /* Secciones secundarias con fondo amarillo sólido #F1CD53 */
  --white:               #FFFFFF;   /* Tarjetas, modales y contenedores */
  --parchment:           #E9EEF4;   /* Acentos suaves y divisores */

  /* Alias de compatibilidad institucional */
  --primary:             var(--blue-primary);
  --primary-dark:        var(--blue-dark);
  --primary-soft:        var(--blue-soft);
  --accent:              var(--yellow-primary);
  --accent-soft:         var(--yellow-soft);
  --forest-green:        var(--blue-primary);
  --ochre:               var(--yellow-dark);
  --forest-dark:         var(--blue-dark);
  --forest-light:        #2B87BD;
  --forest-soft:         var(--blue-soft);
  --forest-border:       var(--blue-border);
  --forest-border-strong:var(--blue-border-strong);

  /* Tipografía Oscura de Alto Contraste */
  --ink:                 #121A21;   /* Títulos y texto principal (carbón azulado profundo) */
  --ink-soft:            #2C3E4C;   /* Texto de lectura */
  --ink-muted:           #516270;   /* Descripciones secundarias */
  --ink-faint:           #7D8E9C;   /* Metadatos y etiquetas suaves */

  /* Bordes y Divisores */
  --border:              rgba(25, 116, 169, 0.15);
  --border-soft:         rgba(0, 0, 0, 0.06);
  --divider:             rgba(25, 116, 169, 0.2);

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

  /* Sombras Sutiles y Naturales con Matiz de Luz */
  --shadow-xs:    0 1px 3px rgba(0, 0, 0, 0.03);
  --shadow-sm:    0 2px 8px rgba(16, 83, 122, 0.05);
  --shadow-md:    0 8px 24px rgba(16, 83, 122, 0.07);
  --shadow-lg:    0 16px 40px rgba(16, 83, 122, 0.09);
  --shadow-gold:  0 4px 20px rgba(241, 205, 83, 0.45);

  /* 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; }

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

/* ──────── REGLAS ESTRICTAS DE DIMENSIÓN PARA LOGOS INSTITUCIONALES ──────── */
.logo-brand-img {
  height: 38px !important;
  max-height: 42px !important;
  width: auto !important;
  max-width: 180px !important;
  object-fit: contain !important;
  display: block !important;
}

.login-brand-logo {
  height: 52px !important;
  max-height: 56px !important;
  width: auto !important;
  max-width: 220px !important;
  object-fit: contain !important;
  margin: 0 auto 1.2rem auto !important;
  display: block !important;
}

.welcome-logo-img {
  height: 40px !important;
  max-height: 44px !important;
  width: auto !important;
  max-width: 180px !important;
  object-fit: contain !important;
  display: block !important;
}

.footer-logo-brand {
  height: 48px !important;
  max-height: 52px !important;
  width: auto !important;
  max-width: 210px !important;
  object-fit: contain !important;
  margin: 0 auto 1rem auto !important;
  display: block !important;
}

.admin-brand-logo {
  height: 36px !important;
  max-height: 38px !important;
  width: auto !important;
  max-width: 160px !important;
  object-fit: contain !important;
  display: block !important;
}

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

body {
  background-color: var(--cream);
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(241, 205, 83, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(25, 116, 169, 0.05) 0%, transparent 45%),
    radial-gradient(rgba(25, 116, 169, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 28px 28px;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { 
  background: linear-gradient(180deg, var(--blue-primary) 0%, var(--yellow-primary) 100%); 
  border-radius: 4px; 
}
::-webkit-scrollbar-thumb:hover { background: var(--blue-dark); }

/* ---- 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; position: relative; }
.section--sm { padding: 3rem 0; position: relative; }
.section--lg { padding: 7rem 0; position: relative; }

/* Sección con fondo amarillo sólido oficial #F1CD53 sin degradado */
.section--yellow {
  background: #F1CD53;
  background-color: #F1CD53;
  background-image: none;
  border-top: 1px solid var(--yellow-section-border, rgba(217, 155, 26, 0.35));
  border-bottom: 1px solid var(--yellow-section-border, rgba(217, 155, 26, 0.35));
}

/* Secciones alternadas con fondo amarillo sólido oficial #F1CD53 */
.section--pattern {
  background: #F1CD53;
  background-color: #F1CD53;
  background-image: none;
  border-top: 1px solid var(--yellow-section-border, rgba(217, 155, 26, 0.35));
  border-bottom: 1px solid var(--yellow-section-border, rgba(217, 155, 26, 0.35));
}

/* Divisor de línea con punto amarillo dorado radiante */
.divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: fit-content;
  margin: 1.2rem auto;
}
.divider::before, .divider::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--yellow-primary));
}
.divider::after {
  background: linear-gradient(90deg, var(--yellow-primary), transparent);
}
.divider-mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow-primary);
  box-shadow: 0 0 10px rgba(241, 205, 83, 0.7);
  display: inline-block;
}

/* Etiqueta Eyebrow / Kicker (Tipográfico limpio sin rectángulos ni píldoras) */
.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-primary);
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  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(--blue-primary);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(25, 116, 169, 0.28);
}
.btn-primary:hover {
  background: var(--blue-dark);
  color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(25, 116, 169, 0.4);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--yellow-primary);
  color: #121A21;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(241, 205, 83, 0.35);
}
.btn-accent:hover {
  background: var(--yellow-hover);
  color: #121A21;
  box-shadow: 0 4px 18px rgba(241, 205, 83, 0.45);
  transform: translateY(-1px);
}

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

.btn-ghost {
  background: transparent;
  color: var(--blue-primary);
  border: 1px solid var(--blue-border);
  padding: 0.65rem 1.4rem;
}
.btn-ghost:hover {
  background: var(--blue-primary);
  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;
}
