/* static/sitio/sitio.css — landing. Paleta del logo de la asociación; no comparte tokens con ui. */
:root {
  color-scheme: light;
  /* Paleta: único lugar con hex. Colores muestreados del logo (cruz, figura y manos). */
  --st-marino: #16457d;         /* azul oscuro del logo: enlaces, botón primario, panel del hero */
  --st-marino-oscuro: #0f3360;  /* hover/activo; contorno de foco sobre claro */
  --st-noche: #0b2546;          /* texto sobre los colores vivos */
  --st-celeste: #3395e0;        /* cruz; bloque de color (texto noche 4,77:1) */
  --st-celeste-claro: #cfe3f6;  /* texto secundario sobre marino (7,32:1) */
  --st-petroleo: #2e8da4;       /* cruz; solo decorativo (filetes, tira) */
  --st-morado: #66099c;         /* manos; bloque de color (texto blanco 10,08:1) */
  --st-naranja: #fa843c;        /* figura; bloque de color (texto noche 6,17:1) */
  --st-amarillo: #fdcb35;       /* figura; botón de acento y foco sobre oscuro (noche 10,07:1; sobre marino 6,31:1) */
  --st-amarillo-vivo: #ffd75e;  /* hover del botón de acento (noche 11,07:1) */
  --st-amarillo-claro: #fff4d1; /* etiqueta de fecha, avisos (tinta-suave 6,40:1) */
  --st-carmesi: #cc0a36;        /* manos; solo decorativo (filetes, tira) */
  --st-carmesi-oscuro: #a3082b; /* errores sobre blanco (7,99:1) */
  --st-tinta: #14243a;          /* texto y títulos (15,63:1 sobre blanco) */
  --st-tinta-suave: #4a5a70;    /* bajadas, fechas, metadatos (7,03:1 blanco; 6,53:1 niebla) */
  --st-blanco: #ffffff;         /* página, tarjetas */
  --st-niebla: #f3f7fb;         /* bandas alternas, cabecera de página interior */
  --st-borde: #d9e3ee;          /* solo decorativo (no transmite información) */

  /* Semánticos */
  --st-fondo: var(--st-blanco);
  --st-fondo-alterno: var(--st-niebla);
  --st-texto: var(--st-tinta);
  --st-texto-suave: var(--st-tinta-suave);
  --st-enlace: var(--st-marino);
  --st-enlace-hover: var(--st-marino-oscuro);
  --st-foco: var(--st-marino-oscuro);
  --st-foco-oscuro: var(--st-amarillo);
  --st-sombra: 0 1px 2px rgb(11 37 70 / .06), 0 8px 24px rgb(11 37 70 / .08);
  /* Tira de los seis colores del logo (cabecera, hero y pie). */
  --st-tira: linear-gradient(90deg,
    var(--st-celeste) 0 16.66%, var(--st-petroleo) 0 33.33%, var(--st-morado) 0 50%,
    var(--st-carmesi) 0 66.66%, var(--st-naranja) 0 83.33%, var(--st-amarillo) 0);

  /* Tipografía: Montserrat variable autoalojada (OFL, sitio/fuentes/), con las del sistema de respaldo */
  --st-fuente: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --st-fs-chico: .9375rem;                                  /* 15px: fechas, pie */
  --st-fs-base: 1.0625rem;                                  /* 17px: cuerpo */
  --st-fs-h3: 1.25rem;
  --st-fs-h2: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
  --st-fs-h1: clamp(2rem, 1.3rem + 3.2vw, 3.5rem);          /* titulares grandes */
  --st-interlineado: 1.6;
  --st-interlineado-titulo: 1.1;
  --st-interlineado-subtitulo: 1.25;                        /* h2/h3 de secciones y tarjetas (pueden ocupar 2-3 líneas) */

  /* Medidas */
  --st-ancho: 76rem;
  --st-ancho-texto: 42rem;     /* ~70 caracteres */
  --st-gutter: 1rem;           /* 16px en móvil */
  --st-radio: 12px;
  --st-radio-boton: 999px;
  --st-toque: 44px;            /* área táctil mínima */
  --st-tira-alto: 6px;

  /* Texto con formato (editor de la intranet, core/texto_rico.py): mismos valores que ui/tokens.css. */
  --st-tx-negro: #1f2937;
  --st-tx-gris: #475569;
  --st-tx-marino: #16457d;
  --st-tx-azul: #1d4ed8;
  --st-tx-celeste: #0369a1;
  --st-tx-turquesa: #0b6b63;
  --st-tx-verde: #17703f;
  --st-tx-dorado: #745c00;
  --st-tx-naranjo: #9c4a06;
  --st-tx-rojo: #b8082f;
  --st-tx-rosado: #be185d;
  --st-tx-morado: #66099c;
  --st-tx-fondo-amarillo: #fff1a8;
  --st-tx-fondo-verde: #d7f3e1;
  --st-tx-fondo-celeste: #d6ecfb;
  --st-tx-fondo-rosado: #fce1ea;
  --st-tx-fondo-naranjo: #ffe2c7;
  --st-tx-fondo-morado: #ebe0fa;
  --st-tx-fondo-gris: #e4e9f2;
  --st-tx-fondo-rojo: #fbdde3;
}
@media (min-width: 40em) { :root { --st-gutter: 1.5rem; } }

/* La fuente es el único recurso que este archivo carga (test_estilos), siempre desde 'self'. */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fuentes/montserrat-variable-latin.311d352d9323.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;
}

/* Base */
html { -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: border-box; }

.st-body {
  margin: 0;
  background: var(--st-fondo);
  color: var(--st-texto);
  font: 400 var(--st-fs-base)/var(--st-interlineado) var(--st-fuente);
  overflow-wrap: break-word;
  /* Pie pegado abajo en páginas cortas (sin JS). */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 { text-wrap: balance; }

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

a {
  color: var(--st-enlace);
  text-decoration: underline;
  text-underline-offset: .18em;
}
a:hover { color: var(--st-enlace-hover); }

:focus-visible {
  outline: 3px solid var(--st-foco);
  outline-offset: 2px;
}
.st-hero-panel :focus-visible,
.st-banda :focus-visible,
.st-mosaico-bloque :focus-visible {
  outline-color: var(--st-foco-oscuro);
}

.st-saltar {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-150%);
  background: var(--st-blanco);
  color: var(--st-texto);
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--st-radio) 0;
  z-index: 10;
}
.st-saltar:focus {
  transform: translateY(0);
}
.st-saltar:focus-visible { outline-offset: -5px; }

.st-contenedor {
  max-width: var(--st-ancho);
  margin-inline: auto;
  padding-inline: var(--st-gutter);
}

/* <main> solo es destino programático del enlace «Saltar al contenido» (tabindex=-1):
   no es interactivo, así que no lleva contorno de foco. */
.st-principal { display: block; flex: 1 0 auto; }
.st-principal:focus { outline: none; }

/* Cabecera */
.st-cabecera {
  background: var(--st-blanco);
  border-bottom: 3px solid var(--st-marino);
}
.st-cabecera-fila {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .5rem 1rem;
  padding-block: .625rem;
}
/* Orden del DOM = orden visual = orden de tabulación en todos los anchos: marca, nav,
   botón Intranet. Cada pieza se ubica a mano. */
.st-marca { grid-column: 1 / -1; grid-row: 1; }
.st-nav { grid-column: 1; grid-row: 2; }
.st-boton-intranet { grid-column: 2; grid-row: 2; align-self: start; }
@media (min-width: 64em) {
  .st-cabecera-fila {
    grid-template-columns: auto 1fr auto;
  }
  .st-marca { grid-column: 1; }
  .st-nav {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .st-nav-lista { justify-content: flex-end; }
  .st-boton-intranet {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
  }
}

.st-nav-lista {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.st-nav-lista a {
  min-height: var(--st-toque);
  display: inline-flex;
  align-items: center;
  color: var(--st-marino);
  font-weight: 600;
  text-decoration: none;
}
.st-nav-lista a:hover {
  text-decoration: underline;
  text-decoration-color: var(--st-naranja);
  text-decoration-thickness: 3px;
}
.st-nav-lista a[aria-current="page"] {
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--st-naranja);
  text-decoration-thickness: 3px;
}

.st-marca {
  display: flex;
  align-items: center;
  gap: .625rem;
  line-height: 1.2;
  color: var(--st-marino);
  text-decoration: none;
  font-weight: 800;
}
.st-marca:hover { color: var(--st-marino-oscuro); }
.st-marca-logo { width: auto; height: 2.75rem; flex: none; }
.st-marca-texto { display: flex; flex-direction: column; font-size: 1rem; letter-spacing: -.01em; }
.st-marca-texto small {
  display: block;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--st-texto-suave);
}
@media (min-width: 40em) {
  .st-marca { gap: .75rem; }
  .st-marca-logo { height: 3.25rem; }
  .st-marca-texto { font-size: var(--st-fs-base); }
  .st-marca-texto small { font-size: .875rem; }
}

/* Botones */
.st-boton {
  display: inline-flex;
  align-items: center;
  min-height: var(--st-toque);
  padding: .625rem 1.375rem;
  border-radius: var(--st-radio-boton);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .15s ease, background-color .15s ease;
}
.st-boton:active { transform: translateY(1px); }
.st-boton-primario {
  background: var(--st-marino);
  color: var(--st-blanco);
}
.st-boton-primario:hover {
  background: var(--st-marino-oscuro);
  color: var(--st-blanco);
}
.st-boton-acento {
  background: var(--st-amarillo);
  color: var(--st-noche);
}
.st-boton-acento:hover {
  background: var(--st-amarillo-vivo);
  border-color: transparent;
  color: var(--st-noche);
  text-decoration: underline;
}
/* Contorno: marino sobre claro; blanco dentro del hero y de la banda (fondos oscuros). */
.st-boton-claro {
  background: transparent;
  border-color: var(--st-marino);
  color: var(--st-marino);
}
.st-boton-claro:hover {
  background: var(--st-marino);
  color: var(--st-blanco);
}
.st-hero-panel .st-boton-claro,
.st-banda .st-boton-claro {
  border-color: var(--st-blanco);
  color: var(--st-blanco);
}
.st-hero-panel .st-boton-claro:hover,
.st-banda .st-boton-claro:hover {
  background: var(--st-blanco);
  color: var(--st-marino);
}
.st-boton-intranet {
  background: var(--st-marino);
  color: var(--st-blanco);
  padding-inline: 1rem;
}
@media (min-width: 40em) {
  .st-boton-intranet { padding-inline: 1.375rem; }
}
.st-boton-intranet:hover {
  background: var(--st-marino-oscuro);
  color: var(--st-blanco);
}

/* Hero «mosaico»: foto de la marcha (con sus bloques de color) a todo el ancho y panel marino.
   Móvil: el panel va debajo de la foto. Desde 40em: el panel se monta sobre la foto, abajo a la izquierda. */
.st-hero {
  display: grid;
  background: var(--st-marino);
  border-bottom: var(--st-tira-alto) solid var(--st-amarillo);
  border-image: var(--st-tira) 1;
}
.st-hero-foto {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 30%;
}
.st-hero-capa { width: 100%; }
.st-hero-panel {
  background: var(--st-marino);
  color: var(--st-blanco);
  padding: 1.75rem 0 2.25rem;
}
@media (min-width: 40em) {
  .st-hero-foto,
  .st-hero-capa { grid-area: 1 / 1; }
  .st-hero-foto {
    aspect-ratio: auto;
    height: clamp(30rem, 72vh, 44rem);
  }
  .st-hero-capa {
    align-self: end;
    padding-bottom: clamp(1.5rem, 4vw, 3rem);
  }
  .st-hero-panel {
    max-width: 38rem;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: 0 18px 40px rgb(11 37 70 / .35);
  }
}
.st-antetitulo {
  color: var(--st-amarillo);
  font-weight: 700;
  font-size: var(--st-fs-chico);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 .75rem;
}
.st-h1 {
  font-size: var(--st-fs-h1);
  line-height: var(--st-interlineado-titulo);
  font-weight: 800;
  letter-spacing: -.025em;
  max-width: 18ch;
  margin: 0 0 1rem;
}
.st-bajada {
  color: var(--st-celeste-claro);
  max-width: var(--st-ancho-texto);
  font-size: 1.125rem;
  margin: 0 0 1.5rem;
}
.st-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

/* Secciones */
.st-seccion { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.st-seccion-alterna { background: var(--st-fondo-alterno); }
.st-seccion h2,
.st-banda h2 {
  font-size: var(--st-fs-h2);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--st-marino);
  margin: 0 0 1.5rem;
}
.st-seccion h2,
.st-banda h2,
.st-tarjeta h3,
.st-tarjeta .st-tarjeta-titulo { line-height: var(--st-interlineado-subtitulo); }

/* «Conoce la asociación»: franja de bloques con los colores del logo */
.st-asociacion-cabeza { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.st-asociacion h2 {
  font-size: var(--st-fs-h2);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: var(--st-interlineado-subtitulo);
  color: var(--st-marino);
  margin: 0 0 1.5rem;
}
.st-mosaico {
  display: grid;
  grid-template-columns: 1fr;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 64em) {
  /* Una columna por bloque (son 1 a 3 páginas visibles). */
  .st-mosaico { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
}
.st-mosaico-bloque {
  position: relative;
  min-width: 0;
  padding: clamp(1.75rem, 4vw, 2.75rem) var(--st-gutter);
  background: var(--st-celeste);
  color: var(--st-noche);
}
.st-mosaico-bloque:nth-child(3n+2) { background: var(--st-morado); color: var(--st-blanco); }
.st-mosaico-bloque:nth-child(3n) { background: var(--st-naranja); color: var(--st-noche); }
.st-mosaico-bloque h3 {
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: var(--st-interlineado-subtitulo);
  margin: 0 0 .5rem;
}
.st-mosaico-bloque p { margin: 0; max-width: 34ch; }
.st-mosaico-bloque .st-enlace-mas { color: inherit; }
/* Bloque clicable entero: «Leer más» estira su ::after sobre el bloque. */
.st-mosaico-bloque .st-enlace-mas::after {
  content: "";
  position: absolute;
  inset: 0;
}
.st-mosaico-bloque .st-enlace-mas:focus-visible { outline: none; }
.st-mosaico-bloque .st-enlace-mas:focus-visible::after {
  outline: 4px solid currentColor;
  outline-offset: -8px;
}
@media (hover: hover) {
  .st-mosaico-bloque:hover .st-enlace-mas { text-decoration-thickness: 3px; }
}

/* Grilla y tarjetas */
.st-grilla {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 40em) {
  .st-grilla { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64em) {
  .st-grilla { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.st-grilla > * { min-width: 0; }

.st-tarjeta {
  position: relative;
  height: 100%;
  background: var(--st-blanco);
  border: 1px solid var(--st-borde);
  border-radius: var(--st-radio);
  box-shadow: var(--st-sombra);
  padding: 1.5rem;
}
/* Filete de color en las noticias: rota carmesí, petróleo y amarillo. */
.st-grilla .st-tarjeta,
.st-lista-noticias .st-tarjeta {
  border-top: var(--st-tira-alto) solid var(--st-carmesi);
}
.st-grilla > :nth-child(3n+2) .st-tarjeta,
.st-lista-noticias > :nth-child(3n+2) .st-tarjeta { border-top-color: var(--st-petroleo); }
.st-grilla > :nth-child(3n) .st-tarjeta,
.st-lista-noticias > :nth-child(3n) .st-tarjeta { border-top-color: var(--st-amarillo); }
.st-tarjeta h3,
.st-tarjeta .st-tarjeta-titulo {
  font-size: var(--st-fs-h3);
  font-weight: 700;
  margin: 0 0 .5rem;
  overflow-wrap: break-word;
}
.st-tarjeta-titulo a,
.st-tarjeta h3 a {
  color: var(--st-marino);
  text-decoration: none;
}
.st-tarjeta-titulo a:hover,
.st-tarjeta h3 a:hover {
  color: var(--st-marino-oscuro);
}
.st-tarjeta > :last-child { margin-bottom: 0; }
.st-enlace-mas {
  margin-top: .75rem;
  font-weight: 700;
}

/* Tarjeta clicable entera: un solo enlace por tarjeta estira su ::after sobre ella. */
.st-tarjeta-enlace { transition: transform .2s ease; }
.st-tarjeta-enlace .st-tarjeta-titulo a::after,
.st-tarjeta-enlace .st-enlace-mas::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--st-radio);
}
.st-tarjeta-enlace a:focus-visible { outline: none; }
.st-tarjeta-enlace a:focus-visible::after {
  outline: 3px solid var(--st-foco);
  outline-offset: 2px;
}
/* hover solo en dispositivos que lo soportan: evita el hover «pegado» en pantallas táctiles */
@media (hover: hover) {
  .st-tarjeta-enlace:hover { transform: translateY(-3px); }
  .st-tarjeta-enlace:hover .st-tarjeta-titulo a {
    color: var(--st-enlace);
    text-decoration: underline;
  }
  .st-tarjeta-enlace:hover .st-enlace-mas { color: var(--st-enlace-hover); }
}

.st-fecha {
  display: inline-block;
  margin: 0 0 .75rem;
  background: var(--st-amarillo-claro);
  color: var(--st-texto-suave);
  font-size: var(--st-fs-chico);
  font-weight: 600;
  padding: .125rem .625rem;
  border-radius: 999px;
}

/* Franja de vista previa (borrador, programada u oculta) que ve solo un superusuario */
.st-vista-previa {
  background: var(--st-amarillo-claro);
  color: var(--st-texto);
  border-bottom: 3px solid var(--st-amarillo);
  padding-block: .75rem;
  font-size: var(--st-fs-chico);
}

.st-vacio { color: var(--st-texto-suave); }

.st-oculto {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Lista de noticias (listado paginado) */
.st-lista-noticias {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}
@media (min-width: 40em) {
  .st-lista-noticias { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.st-lista-noticias > * { min-width: 0; }

.st-paginacion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: var(--st-fs-chico);
}

/* Cabecera de página interior */
.st-cabecera-pagina {
  background: var(--st-fondo-alterno);
  border-bottom: var(--st-tira-alto) solid var(--st-amarillo);
  border-image: var(--st-tira) 1;
  padding-block: 2.5rem;
}

/* Artículo y página */
.st-articulo,
.st-prosa { max-width: var(--st-ancho-texto); }
/* m6: la columna de lectura va centrada, no pegada al borde izquierdo. */
.st-articulo {
  margin-inline: auto;
  padding-block: clamp(2rem, 5vw, 3.5rem);
}
.st-prosa p { margin: 0 0 1em; }
.st-lead {
  font-size: 1.1875rem;
  color: var(--st-texto-suave);
}
.st-h1-pagina {
  font-size: var(--st-fs-h2);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--st-marino);
  line-height: var(--st-interlineado-titulo);
  overflow-wrap: break-word;
  margin: .5rem 0 1rem;
}
.st-volver { margin-bottom: 1rem; }
.st-articulo .st-volver { display: flex; width: fit-content; }
.st-actualizado {
  color: var(--st-texto-suave);
  font-size: var(--st-fs-chico);
}
.st-cabecera-pagina .st-h1-pagina { margin: 0; }

/* Áreas táctiles mínimas (44 px) en enlaces sueltos */
.st-pie-lista a,
.st-paginacion a,
.st-volver,
.st-enlace-mas {
  display: inline-flex;
  align-items: center;
  min-height: var(--st-toque);
}

/* Banda final: foto B/N de la marcha «multiplicada» sobre marino. multiply solo oscurece,
   así que ningún punto queda más claro que el marino: el texto blanco tiene ≥ 9,63:1 en todo el fondo. */
.st-banda {
  display: grid;
  background: var(--st-marino);
  color: var(--st-blanco);
  text-align: center;
  overflow: hidden;
}
.st-banda-foto,
.st-banda-contenido { grid-area: 1 / 1; }
.st-banda-foto {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}
.st-banda-contenido {
  position: relative;
  padding-block: clamp(3rem, 8vw, 6rem);
}
.st-banda h2 { color: var(--st-blanco); }
.st-banda p {
  color: var(--st-celeste-claro);
  max-width: var(--st-ancho-texto);
  margin: 0 auto 1.5rem;
}

/* «Para qué existe una asociación»: motion graphics de 15 s en SVG + CSS, sin JS (CSP).
   El estado sin animar es el cuadro final (logo armado y nombre): es lo que ve quien pide
   reducir movimiento. «Pausar animación» es una casilla (WCAG 2.2.2), sin JS. */
.st-animacion h2 { margin-bottom: 1rem; }
.st-anim-boton {
  display: inline-flex;
  align-items: center;
  min-height: var(--st-toque);
  margin: 0 0 .75rem;
  padding: .375rem 1rem;
  border: 2px solid var(--st-marino);
  border-radius: var(--st-radio-boton);
  color: var(--st-marino);
  font-size: var(--st-fs-chico);
  font-weight: 700;
  cursor: pointer;
}
.st-anim-boton:hover { background: var(--st-marino); color: var(--st-blanco); }
.st-anim-control:focus-visible + .st-anim-boton { outline: 3px solid var(--st-foco); outline-offset: 2px; }
.st-anim-reanudar,
.st-anim-control:checked + .st-anim-boton .st-anim-pausar { display: none; }
.st-anim-control:checked + .st-anim-boton .st-anim-reanudar { display: inline; }
.st-anim-control:checked ~ .st-anim-lienzo * { animation-play-state: paused; }
.st-anim-lienzo {
  background: var(--st-fondo-alterno);
  border: 1px solid var(--st-borde);
  border-radius: var(--st-radio);
  overflow: hidden;
}
.st-anim { display: block; width: 100%; height: auto; }

.st-c-celeste { fill: var(--st-celeste); }
.st-c-petroleo { fill: var(--st-petroleo); }
.st-c-morado { fill: var(--st-morado); }
.st-c-carmesi { fill: var(--st-carmesi); }
.st-c-naranja { fill: var(--st-naranja); }
.st-c-amarillo { fill: var(--st-amarillo); }
.st-c-marino { fill: var(--st-marino); }
.st-c-carmesi-trazo,
.st-c-celeste-trazo { stroke-width: 30px; stroke-linecap: round; }
.st-c-carmesi-trazo { stroke: var(--st-carmesi); }
.st-c-celeste-trazo { stroke: var(--st-celeste); }
.st-anim-txt {
  font: 800 60px var(--st-fuente);
  letter-spacing: -.02em;
  fill: var(--st-marino);
  text-anchor: middle;
}
.st-anim-sub {
  font: 600 30px var(--st-fuente);
  fill: var(--st-tinta-suave);
  text-anchor: middle;
}
.st-anim-onda {
  fill: none;
  stroke: var(--st-naranja);
  stroke-width: 5px;
  opacity: 0;
}
.st-anim-txt-1, .st-anim-txt-2, .st-anim-txt-3, .st-anim-txt-4 { opacity: 0; }
.st-anim-cruz, .st-anim-onda { transform-box: fill-box; transform-origin: center; }
.st-anim-izq { --st-desde: -760px; }
.st-anim-der { --st-desde: 760px; }

/* Línea de tiempo: 15 s = 100 % (1 s ≈ 6,67 %). Todo comparte duración y bucle. */
.st-anim-cruz, .st-anim-onda-debil, .st-anim-onda-fuerte, .st-anim-manos, .st-anim-persona,
.st-anim-txt-1, .st-anim-txt-2, .st-anim-txt-3, .st-anim-txt-4, .st-anim-txt-5 {
  animation-duration: 15s;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(.22, .8, .3, 1);
}
.st-anim-centro { animation-name: st-anim-centro; }
.st-anim-izq, .st-anim-der { animation-name: st-anim-llegan; }
.st-anim-personas > :nth-child(1), .st-anim-personas > :nth-child(6) { animation-delay: .3s; }
.st-anim-personas > :nth-child(2), .st-anim-personas > :nth-child(5) { animation-delay: .15s; }
.st-anim-onda-debil { animation-name: st-anim-onda-debil; }
.st-anim-onda-fuerte { animation-name: st-anim-onda-fuerte; }
.st-anim-onda-2 { animation-delay: .6s; }
.st-anim-cruz { animation-name: st-anim-cruz; }
.st-anim-manos { animation-name: st-anim-manos; }
.st-anim-txt-1 { animation-name: st-anim-txt-1; }
.st-anim-txt-2 { animation-name: st-anim-txt-2; }
.st-anim-txt-3 { animation-name: st-anim-txt-3; }
.st-anim-txt-4 { animation-name: st-anim-txt-4; }
.st-anim-txt-5 { animation-name: st-anim-txt-5; }

/* 0-3 s: una persona sola y una onda débil que se apaga */
@keyframes st-anim-centro {
  0% { opacity: 0; transform: translateY(40px); }
  5%, 96% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}
@keyframes st-anim-onda-debil {
  0%, 5% { opacity: 0; transform: scale(1); }
  7% { opacity: .7; }
  16%, 100% { opacity: 0; transform: scale(2.2); }
}
/* 3-6 s: llegan las demás y la onda crece */
@keyframes st-anim-llegan {
  0%, 20% { opacity: 0; transform: translateX(var(--st-desde)); }
  31%, 96% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}
@keyframes st-anim-onda-fuerte {
  0%, 31% { opacity: 0; transform: scale(1); }
  33% { opacity: .8; }
  46%, 100% { opacity: 0; transform: scale(9); }
}
/* 6-9 s: se alza la cruz (derechos) */
@keyframes st-anim-cruz {
  0%, 40% { opacity: 0; transform: scale(.2); }
  48% { opacity: 1; transform: scale(1.06); }
  52%, 96% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; }
}
/* 9-12 s: las manos las sostienen (cuidado) */
@keyframes st-anim-manos {
  0%, 60% { opacity: 0; transform: translateY(320px); }
  70%, 96% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}
/* Textos: cada uno en su ventana; 12-15 s el nombre de la asociación */
@keyframes st-anim-txt-1 { 0%, 2% { opacity: 0; } 5%, 17% { opacity: 1; } 20%, 100% { opacity: 0; } }
@keyframes st-anim-txt-2 { 0%, 22% { opacity: 0; } 25%, 37% { opacity: 1; } 40%, 100% { opacity: 0; } }
@keyframes st-anim-txt-3 { 0%, 42% { opacity: 0; } 45%, 57% { opacity: 1; } 60%, 100% { opacity: 0; } }
@keyframes st-anim-txt-4 { 0%, 62% { opacity: 0; } 65%, 77% { opacity: 1; } 80%, 100% { opacity: 0; } }
@keyframes st-anim-txt-5 {
  0%, 81% { opacity: 0; transform: translateY(16px); }
  86%, 96% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}

/* Pie: claro, con el logo completo y la tira de colores arriba */
.st-pie {
  background: var(--st-blanco);
  color: var(--st-texto);
  font-size: var(--st-fs-chico);
  border-top: var(--st-tira-alto) solid var(--st-amarillo);
  border-image: var(--st-tira) 1;
  padding-block: 2.5rem;
}
.st-pie a { color: var(--st-marino); }
.st-pie-logo { display: block; width: 8.5rem; height: auto; margin: 0 0 1rem; }
.st-pie-nombre { max-width: var(--st-ancho-texto); margin: 0 0 1rem; font-weight: 600; }
.st-pie-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.st-pie-contacto { margin: 0 0 1rem; }
.st-pie-copyright { margin: 0; color: var(--st-texto-suave); }
@media (min-width: 40em) {
  .st-pie .st-contenedor {
    display: grid;
    grid-template-columns: auto minmax(0, 3fr) minmax(0, 2fr);
    gap: 0 2rem;
    align-items: start;
  }
  .st-pie-logo { grid-column: 1; grid-row: 1 / span 3; margin: 0; }
  .st-pie-nombre { grid-column: 2; grid-row: 1; }
  .st-pie-contacto { grid-column: 2; grid-row: 2; }
  .st-pie-nav {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
  .st-pie-lista { justify-content: flex-end; }
  .st-pie-copyright { grid-column: 2 / -1; grid-row: 3; }
}

/* Respuesta a eventos (eventos/publico) */
.st-respuesta { max-width: var(--st-ancho-texto); margin-inline: auto; }
.st-evento { height: auto; margin-bottom: 1.5rem; }
.st-form { display: grid; gap: 1.5rem; margin: 0 0 2rem; }
.st-campo { border: 0; padding: 0; margin: 0; min-width: 0; }
.st-rotulo { display: block; font-weight: 700; margin-bottom: .5rem; padding: 0; }
.st-opciones { display: flex; flex-wrap: wrap; gap: .75rem; }
.st-opcion {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  min-height: var(--st-toque);
  padding: .5rem 1rem;
  border: 2px solid var(--st-tinta-suave);
  border-radius: var(--st-radio);
  background: var(--st-blanco);
  cursor: pointer;
}
.st-opcion input { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--st-marino); }
.st-opcion:focus-within { outline: 3px solid var(--st-foco); outline-offset: 2px; }
/* «Sí, voy» / «No voy» como interruptor: la opción elegida queda rellena. Solo con :has(); sin él se ven
   los radios de siempre. El radio queda accesible (foco, flechas, lector de pantalla), solo se oculta a la vista. */
@supports selector(:has(*)) {
  .st-toggle { flex-wrap: nowrap; gap: 0; }
  .st-toggle .st-opcion {
    position: relative;
    justify-content: center;
    min-width: 7.5rem;
    border-radius: 0;
    font-weight: 700;
  }
  .st-toggle .st-opcion:first-child { border-radius: var(--st-radio) 0 0 var(--st-radio); }
  .st-toggle .st-opcion:last-child { border-radius: 0 var(--st-radio) var(--st-radio) 0; margin-left: -2px; }
  .st-toggle .st-opcion input { position: absolute; width: 1px; height: 1px; opacity: 0; }
  .st-toggle .st-opcion:has(input:checked) {
    z-index: 1;
    background: var(--st-marino);
    border-color: var(--st-marino);
    color: var(--st-blanco);
  }
  .st-toggle .st-opcion:focus-within { z-index: 2; }
}
.st-entrada {
  height: var(--st-toque);
  width: 6rem;
  padding: .25rem .75rem;
  font: inherit;
  color: var(--st-texto);
  background: var(--st-blanco);
  border: 2px solid var(--st-tinta-suave);
  border-radius: var(--st-radio);
}
.st-entrada:focus-visible { outline: 3px solid var(--st-foco); outline-offset: 2px; }
.st-ayuda { color: var(--st-texto-suave); font-size: var(--st-fs-chico); margin: .5rem 0 0; }
.st-error { color: var(--st-carmesi-oscuro); font-weight: 700; margin: .5rem 0 0; }
.st-aviso {
  background: var(--st-amarillo-claro);
  border-radius: var(--st-radio);
  padding: 1rem 1.25rem;
  margin: 0 0 1.5rem;
}
.st-aviso > :last-child { margin-bottom: 0; }
.st-aviso-error { border: 2px solid var(--st-carmesi-oscuro); }
.st-resumen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .375rem 1rem;
  margin: 0 0 1rem;
}
.st-resumen dt { color: var(--st-texto-suave); }
.st-resumen dd { margin: 0; font-weight: 700; text-align: right; }
.st-pago { height: auto; margin-bottom: 1.5rem; }
.st-privacidad { color: var(--st-texto-suave); font-size: var(--st-fs-chico); margin-top: 2rem; }
button.st-boton { font: inherit; font-weight: 700; cursor: pointer; }
.st-boton:disabled { cursor: not-allowed; opacity: .7; }
.st-boton-primario:disabled { background: var(--st-marino); }  /* ocupado: el hover no reacciona */
.st-boton[aria-busy="true"] { gap: .625rem; }
.st-spinner {
  flex: none;
  width: 1.125em;
  height: 1.125em;
  border: .2em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: st-girar .75s linear infinite;
}
@keyframes st-girar { to { transform: rotate(360deg); } }

/* Debe ir al final: el selector universal pierde por especificidad frente a las
   transiciones de .st-boton y .st-tarjeta-enlace, así que se anulan aparte. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none; scroll-behavior: auto; }
  .st-boton, .st-tarjeta-enlace { transition: none; }
  .st-boton:active, .st-tarjeta-enlace:hover { transform: none; }
  .st-spinner { animation-duration: 1.5s; }  /* gira más lento, no se detiene: sigue indicando que espera */
  /* La animación queda en su cuadro final (estado sin animar) y sin el botón de pausa. */
  .st-anim * { animation: none; }
  .st-anim-boton { display: none; }
}

/* ── Texto con formato (noticias, páginas; editor de la intranet) ───────
   Una línea por <p> (como en el editor): sin margen entre párrafos; la
   línea en blanco es un <p><br></p>. Va después de .st-prosa p a propósito. */
.tx p { margin: 0; }
.tx ul, .tx ol { margin: 0; padding-inline-start: 1.5em; }
.tx li + li { margin-top: .15em; }
.tx blockquote {
  margin: 0;
  padding-inline-start: 1rem;
  border-inline-start: 4px solid var(--st-borde);
  color: var(--st-texto-suave);
}
.tx u { text-underline-offset: .15em; }
.tx img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: .5rem auto;
  border-radius: 4px;
}
/* Publicación de Instagram (iframe): ancho de Instagram, centrada; la altura va en el atributo height
   (sitio/instagram.js la ajusta a la publicación). */
.tx .tx-instagram {
  display: block;
  width: 100%;
  max-width: 540px;
  margin: .5rem auto;
  border: 0;
  border-radius: 4px;
}
/* Video de YouTube (iframe): todo el ancho del texto, en 16:9. */
.tx .tx-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: .5rem 0;
  border: 0;
  border-radius: 4px;
}
/* Miniatura de la tarjeta: la primera imagen de la noticia, entera (un afiche no se recorta). */
.st-tarjeta-imagen {
  display: block;
  width: calc(100% + 3rem);
  max-width: none;
  margin: -1.5rem -1.5rem 1rem;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--st-niebla);
}
.tx-color-negro { color: var(--st-tx-negro); }
.tx-color-gris { color: var(--st-tx-gris); }
.tx-color-marino { color: var(--st-tx-marino); }
.tx-color-azul { color: var(--st-tx-azul); }
.tx-color-celeste { color: var(--st-tx-celeste); }
.tx-color-turquesa { color: var(--st-tx-turquesa); }
.tx-color-verde { color: var(--st-tx-verde); }
.tx-color-dorado { color: var(--st-tx-dorado); }
.tx-color-naranjo { color: var(--st-tx-naranjo); }
.tx-color-rojo { color: var(--st-tx-rojo); }
.tx-color-rosado { color: var(--st-tx-rosado); }
.tx-color-morado { color: var(--st-tx-morado); }
.tx-fondo-amarillo { background-color: var(--st-tx-fondo-amarillo); }
.tx-fondo-verde { background-color: var(--st-tx-fondo-verde); }
.tx-fondo-celeste { background-color: var(--st-tx-fondo-celeste); }
.tx-fondo-rosado { background-color: var(--st-tx-fondo-rosado); }
.tx-fondo-naranjo { background-color: var(--st-tx-fondo-naranjo); }
.tx-fondo-morado { background-color: var(--st-tx-fondo-morado); }
.tx-fondo-gris { background-color: var(--st-tx-fondo-gris); }
.tx-fondo-rojo { background-color: var(--st-tx-fondo-rojo); }
.tx-fuente-serif { font-family: Georgia, "Times New Roman", serif; }
.tx-fuente-ancha { font-family: "Arial Black", "Arial Bold", Gadget, sans-serif; font-weight: 900; }
.tx-fuente-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }
.tx-tam-pequeno { font-size: .8em; }
.tx-tam-grande { font-size: 1.35em; }
.tx-tam-enorme { font-size: 2em; line-height: 1.2; }
.tx .tx-alinear-centro { text-align: center; }
.tx .tx-alinear-derecha { text-align: right; }
.tx .tx-sangria-1 { padding-inline-start: min(3em, 5%); }
.tx .tx-sangria-2 { padding-inline-start: min(6em, 10%); }
.tx .tx-sangria-3 { padding-inline-start: min(9em, 15%); }
.tx .tx-sangria-4 { padding-inline-start: min(12em, 20%); }
.tx .tx-sangria-5 { padding-inline-start: min(15em, 25%); }
.tx .tx-sangria-6 { padding-inline-start: min(18em, 30%); }
.tx .tx-sangria-7 { padding-inline-start: min(21em, 35%); }
.tx .tx-sangria-8 { padding-inline-start: min(24em, 40%); }
