/* South Impact — Colors & Type Foundations
 * Brand by mowomo.
 * Strictly bicromatic: Azul Impact + Blanco. No grays, no warm accents.
 */

/* ─── Oswald (variable) — self-hosted ─────────────────────────── */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url('./fonts/oswald-variable.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url('./fonts/oswald-variable-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* ─── Brand colors (raw) ────────────────────────────────────── */
  --si-azul-impact: #0013FF; /* Pantone 286 C · RGB 0/19/255 · CMYK 100/88/0/0 */
  --si-blanco:      #FFFFFF;
  --si-negro-tech:  #000000; /* reservado SOLO para versiones técnicas del logo */

  /* Tintas derivadas — para overlays, estados, degradados atmosféricos.
     Ajustar con moderación; la paleta debe leerse como bicromía estricta. */
  --si-azul-deep:   #00104B; /* azul noche — fondos fotográficos, overlays */
  --si-azul-sky:    #6B85FF; /* azul cielo — gradientes atmosféricos, highlights */
  --si-azul-horizon:#B9C5FF; /* azul horizonte — tintas muy suaves, nunca como acento */

  /* ─── Semantic color tokens ─────────────────────────────────── */
  --bg:           var(--si-azul-impact);
  --bg-invert:    var(--si-blanco);
  --fg:           var(--si-blanco);
  --fg-invert:    var(--si-azul-impact);
  --accent:       var(--si-blanco);       /* sobre azul */
  --accent-alt:   var(--si-azul-impact);  /* sobre blanco */
  --rule:         rgba(255,255,255,0.4);
  --rule-on-white:rgba(0,19,255,0.4);

  /* ─── Type ──────────────────────────────────────────────────── */
  --ff-display: 'Oswald', 'Oswald Fallback', 'Impact', 'Haettenschweiler', 'Arial Narrow Bold', sans-serif;
  --ff-body:    'Oswald', 'Oswald Fallback', 'Impact', 'Arial Narrow', sans-serif;

  --fw-regular:   400;
  --fw-medium:    500;
  --fw-semibold:  600;
  --fw-bold:      700;

  /* Tracking — editorial, ligeramente abierto en titulares */
  --tr-claim:     0.08em;  /* 80 units — claims y cabeceras grandes */
  --tr-title:     0.04em;  /* 40 units — titulares */
  --tr-body:      0.02em;  /* 20 units — cuerpo corto */
  --tr-none:      0;

  /* Sizes — pensados para editorial, grandes por defecto */
  --fs-hero:       clamp(64px, 12vw, 220px);
  --fs-display:    clamp(48px, 7vw, 120px);
  --fs-h1:         clamp(40px, 5vw, 72px);
  --fs-h2:         clamp(28px, 3.5vw, 48px);
  --fs-h3:         clamp(20px, 2vw, 28px);
  --fs-body:       18px;
  --fs-body-sm:    14px;
  --fs-caption:    12px;

  --lh-tight:  0.9;
  --lh-snug:   1;
  --lh-normal: 1.2;
  --lh-loose:  1.45;

  /* ─── Spacing — modular scale ───────────────────────────────── */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  24px;
  --sp-6:  32px;
  --sp-7:  48px;
  --sp-8:  64px;
  --sp-9:  96px;
  --sp-10: 128px;

  /* ─── Radii ─────────────────────────────────────────────────── */
  --r-none: 0;        /* default — la marca es rectilínea y chaflanada */
  --r-sm:   2px;
  --r-md:   4px;
  --r-pill: 999px;

  /* ─── Chaflán (chamfer) — shape primitivo de la marca ────────
     Recorta esquinas opuestas a 24px (superior-izquierda + inferior-derecha).
     Proporción ~ 12% del lado corto del contenedor.
  */
  --chamfer-sm: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  --chamfer-md: polygon(24px 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%, 0 24px);
  --chamfer-lg: polygon(40px 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%, 0 40px);

  /* ─── Layout — retícula 4 × 12 del manual ───────────────────── */
  --grid-cols: 4;
  --grid-rows: 12;
  --grid-gutter: 24px;
  --grid-margin: 48px;

  /* ─── Motion ────────────────────────────────────────────────── */
  --ease-atlantic: cubic-bezier(.2,.7,.2,1);
  --ease-standard: cubic-bezier(.4,0,.2,1);
  --dur-xs: 120ms;
  --dur-sm: 200ms;
  --dur-md: 360ms;
  --dur-lg: 640ms;

  /* ─── Elevation — mínima, la marca es plana ─────────────────── */
  --shadow-none: none;
  --shadow-inset-rule: inset 0 0 0 1px var(--rule);
  --shadow-photo: 0 2px 24px rgba(0,19,75,0.25); /* sobre fotos de silueta */
}

/* ─── Semantic type classes ─────────────────────────────────── */
.si-hero {
  font-family: var(--ff-display);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  letter-spacing: var(--tr-claim);
  text-transform: uppercase;
}
.si-display {
  font-family: var(--ff-display);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-display);
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-claim);
  text-transform: uppercase;
}
.si-h1 {
  font-family: var(--ff-display);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-h1);
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-title);
  text-transform: uppercase;
}
.si-h2 {
  font-family: var(--ff-display);
  font-weight: var(--fw-medium);
  font-size: var(--fs-h2);
  line-height: var(--lh-normal);
  letter-spacing: var(--tr-title);
  text-transform: uppercase;
}
.si-h3 {
  font-family: var(--ff-display);
  font-weight: var(--fw-medium);
  font-size: var(--fs-h3);
  line-height: var(--lh-normal);
  letter-spacing: var(--tr-body);
  text-transform: uppercase;
}
.si-body {
  font-family: var(--ff-body);
  font-weight: var(--fw-regular);
  font-size: var(--fs-body);
  line-height: var(--lh-loose);
  letter-spacing: var(--tr-body);
}
.si-body-sm {
  font-family: var(--ff-body);
  font-weight: var(--fw-regular);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-loose);
  letter-spacing: var(--tr-body);
}
.si-caption {
  font-family: var(--ff-body);
  font-weight: var(--fw-medium);
  font-size: var(--fs-caption);
  line-height: var(--lh-normal);
  letter-spacing: var(--tr-claim);
  text-transform: uppercase;
}
.si-eyebrow {
  font-family: var(--ff-body);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-caption);
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ─── Base ──────────────────────────────────────────────────── */
html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--ff-body);
  font-weight: var(--fw-regular);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--si-blanco); color: var(--si-azul-impact); }

/* ═══════════════════════════════════════════════════════════
   FOOTER · Compartido en todas las páginas
   Estructura: brand block + 4 columnas (Evento · Participar · Recursos · Contacto)
                + utility row (legal · social · idiomas)
   ═════════════════════════════════════════════════════════ */
.si-footer-v2 {
  background: var(--si-azul-impact);
  color: #fff;
  border-top: 1.5px solid rgba(255, 255, 255, 0.3);
  padding: 80px 0 24px;
  font-family: var(--ff-display);
}
.si-footer-v2 .si-wrap { max-width: 1440px; margin: 0 auto; padding: 0 48px; }

.si-foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.3);
}

.si-foot-brand .wm img { height: 28px; width: auto; display: block; }
.si-foot-brand .claim {
  margin-top: 28px;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.si-foot-brand .meta {
  margin-top: 20px;
  display: flex; flex-direction: column; gap: 4px;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}
.si-foot-brand .meta .lbl { opacity: 0.6; font-size: 10px; letter-spacing: 0.22em; }

.si-foot-col h4 {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.si-foot-col ul { list-style: none; margin: 0; padding-left: 0; display: flex; flex-direction: column; gap: 10px; }
.si-foot-col a {
  color: #fff;
  text-decoration: none;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.si-foot-col a:hover { opacity: 1; transform: translateX(2px); }
.si-foot-col .si-foot-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  background: #fff;
  color: var(--si-azul-impact);
  font-size: 9px;
  letter-spacing: 0.18em;
  font-weight: 700;
  border-radius: 0;
}

/* Newsletter (popup MailerLite) en columna contacto */
.si-foot-newsletter {
  margin-top: 16px;
  display: flex; flex-direction: column;
  gap: 14px; align-items: flex-start;
}
.si-foot-newsletter-txt {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 13px; line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}
.si-foot-newsletter .si-footer-mailerlite-trigger {
  display: inline-flex; align-items: center; gap: 10px;
  opacity: 1;
  background: #fff; color: var(--si-azul-impact);
  padding: 11px 18px;
  font-family: var(--ff-display); font-weight: 600;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  cursor: pointer;
}
.si-foot-newsletter .si-footer-mailerlite-trigger:hover { background: var(--si-azul-horizon); transform: none; }
.si-foot-newsletter .si-footer-mailerlite-trigger .ico { width: 14px; height: 14px; flex: 0 0 auto; }

/* Utility row */
.si-foot-utility {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  padding-top: 24px;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.si-foot-utility .legal { display: flex; gap: 24px; flex-wrap: wrap; opacity: 0.85; }
.si-foot-utility .legal a { color: #fff; text-decoration: none; }
.si-foot-utility .legal a:hover { opacity: 0.7; }
.si-foot-utility .copyright {
  text-align: start;
  opacity: 0.65;
  font-size: 10px;
  letter-spacing: 0.24em;
}
.si-foot-utility .social {
  display: flex; gap: 14px;
  justify-self: end;
}
.si-foot-utility .social a {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  transition: background 0.2s, color 0.2s;
}
.si-foot-utility .social a:hover { background: #fff; color: var(--si-azul-impact); }
.si-foot-utility .social svg { width: 14px; height: 14px; }

/* Big wordmark slug */
.si-foot-slug {
  margin-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 24px;
  display: flex; justify-content: center;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(48px, 11vw, 200px);
  line-height: 0.85;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.9;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
}

@media (max-width: 1100px) {
  .si-foot-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .si-foot-brand { grid-column: span 2; }
}
@media (max-width: 720px) {
  .si-footer-v2 .si-wrap { padding: 0 24px; }
  .si-foot-grid { grid-template-columns: 1fr; gap: 36px; padding-bottom: 36px; }
  .si-foot-brand { grid-column: auto; }
  .si-foot-utility { grid-template-columns: 1fr; gap: 16px; text-align: center; }
  .si-foot-utility .copyright { text-align: center; }
  .si-foot-utility .social { justify-self: center; }
  .si-foot-utility .legal { justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════════════
   CAPA DE LECTURA — Inter + escala de tinta
   ───────────────────────────────────────────────────────────────────
   Oswald sigue siendo la voz de la marca: titula, rotula y numera.
   Lo que cambia es el texto que se lee de corrido, que pasa a Inter.
   La bicromía se mantiene (mismo hue): el azul Impact queda reservado
   a titulares, enlaces y acentos, y el cuerpo se apoya en el azul
   profundo, que es el mismo azul con la luz bajada.
   ═════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('./fonts/inter-variable.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('./fonts/inter-variable-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Familia de lectura — solo para texto corrido. */
  --ff-read: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Tinta sobre blanco — misma familia cromática, distinta jerarquía. */
  --ink:        var(--si-azul-deep);          /* cuerpo */
  --ink-hi:     var(--si-azul-impact);        /* titulares, enlaces, acentos */
  --ink-70:     rgba(0, 16, 75, 0.74);        /* secundario */
  --ink-50:     rgba(0, 16, 75, 0.54);        /* terciario, metadatos */
  --rule-soft:  rgba(0, 16, 75, 0.14);        /* filetes sobre blanco */

  /* Tinta sobre azul. */
  --on-blue:    var(--si-blanco);
  --on-blue-70: rgba(255, 255, 255, 0.78);
  --on-blue-50: rgba(255, 255, 255, 0.58);
  --rule-blue:  rgba(255, 255, 255, 0.22);

  /* Ritmo vertical de sección — un único punto de verdad. */
  --section-y:   clamp(72px, 8vw, 128px);
  --section-gap: clamp(32px, 4vw, 56px);

  /* Medida de lectura. */
  --measure:    64ch;
  --measure-sm: 48ch;

  /* Escala de lectura. */
  --fs-lede:   clamp(18px, 1.5vw, 21px);
  --fs-read:   17px;
  --fs-read-sm: 15px;
  --lh-read:   1.62;
}

/* Texto corrido — Inter, interlineado de lectura, sin tracking de rótulo. */
p,
li,
dd,
blockquote,
.si-body,
.si-lede,
.si-read {
  font-family: var(--ff-read);
  letter-spacing: 0;
}

p,
li,
dd,
.si-body {
  font-size: var(--fs-read);
  line-height: var(--lh-read);
}

.si-lede {
  font-family: var(--ff-read);
  font-size: var(--fs-lede);
  line-height: 1.5;
  font-weight: 400;
}

/* Párrafos con medida legible por defecto; quien necesite otra, la pide. */
.si-measure  { max-width: var(--measure); }
.si-measure-sm { max-width: var(--measure-sm); }

/* Enfasis dentro de texto corrido: peso, no color chillón. */
p strong,
li strong,
.si-body strong { font-weight: 600; }

/* Foco visible — instantáneo, nunca animado. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════════════════
   NAVEGACIÓN MÓVIL Y ACCESO AL CONTENIDO
   ───────────────────────────────────────────────────────────────────
   Hasta ahora el menú simplemente desaparecía por debajo de 720px y no
   había nada que lo sustituyera. Vive aquí, en core, porque el header es
   de todas las páginas, no solo de la portada.
   ═════════════════════════════════════════════════════════════════ */

.si-skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--si-blanco); color: var(--si-azul-impact);
  padding: 12px 18px;
  font-family: var(--ff-display); font-weight: 600;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
}
.si-skip-link:focus { left: 12px; top: 12px; }

/* Botón de menú — oculto en escritorio. */
.si-nav-toggle {
  display: none;
  align-items: center; gap: 10px;
  margin-left: auto;
  min-height: 44px; padding: 8px 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  clip-path: var(--chamfer-sm);
  color: inherit;
  font-family: var(--ff-display); font-weight: 600;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
}
.si-nav-toggle .bars {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 16px; height: 12px;
}
.si-nav-toggle .bars span {
  display: block; height: 1.5px; width: 100%;
  background: currentColor;
  transition: transform var(--dur-sm) var(--ease-atlantic),
              opacity var(--dur-sm) var(--ease-atlantic);
}
.si-nav-toggle[aria-expanded="true"] .bars span:first-child { transform: translateY(3.25px) rotate(45deg); }
.si-nav-toggle[aria-expanded="true"] .bars span:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

/* Panel desplegable. */
.si-nav-panel {
  display: flex; flex-direction: column; align-items: stretch; gap: 4px;
  padding: 16px 24px 28px;
  background: var(--si-azul-impact);
  border-top: 1px solid var(--rule-blue);
  color: var(--si-blanco);
}
.si-nav-panel[hidden] { display: none; }
.si-nav-panel-links {
  display: flex; flex-direction: column;
  margin-bottom: 16px;
}
.si-nav-panel-links a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--ff-display); font-weight: 500;
  font-size: 17px; letter-spacing: 0.12em; text-transform: uppercase;
}
.si-nav-panel-links a.is-active { color: var(--si-azul-horizon); }
.si-nav-panel .si-btn { justify-content: center; }

/* Con el panel abierto no se hace scroll por detrás. */
body.si-nav-open { overflow: hidden; }

/* El CSS del header vive en las hojas de página (home.css, awards.css...),
 * que se cargan después de core. Para que estas reglas manden sin depender del
 * orden de carga se suben de especificidad con `.si-header` por delante. */
@media (max-width: 900px) {
  .si-header .si-header-nav { display: none; }
  .si-header .si-nav-toggle { display: inline-flex; }
  /* El CTA del header cede el sitio al botón de menú; vive dentro del panel. */
  .si-header .si-header-cta { display: none; }
}

@media (min-width: 901px) {
  .si-header .si-nav-panel { display: none; }
}

/* El logotipo tenía un ancho fijo de 400px que desbordaba en móvil y empujaba
 * fuera de pantalla al menú entero. */
.si-header .si-header-logo img {
  width: auto;
  max-width: min(400px, 52vw);
  height: 40px;
}
@media (max-width: 900px) {
  .si-header .si-header-logo img { height: 30px; max-width: 46vw; }
  .si-header .si-header-inner { gap: 16px; }
}

/* El chaflán y el subrayado de foco no se animan nunca. */
@media (prefers-reduced-motion: reduce) {
  .si-nav-toggle .bars span { transition: none; }
}

/* Sin scroll horizontal en ningún ancho. `clip` en lugar de `hidden`: corta el
 * desborde igual pero no crea contexto de scroll, así no rompe position:sticky. */
html, body { overflow-x: clip; }
