/* Movilízate — hoja de estilos
   Tipografías alojadas en el sitio: Zilla Slab (titulares) y Public Sans (texto), licencia SIL OFL.
   Para cambiar de tipografía basta con modificar --titulos y --texto más abajo y los @font-face. */

@font-face {
  font-family: "Zilla Slab";
  src: url("../fonts/zilla-slab-latin-700-normal.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --crema: #f6f1e7;
  --tinta: #14213d;
  --tinta-suave: #4b5670;
  --regla: #d8d0bf;
  --coral: #e8452c;
  --coral-oscuro: #b8321c;
  --amarillo: #ffc933;
  --blanco: #ffffff;

  --titulos: "Zilla Slab", Georgia, "Times New Roman", serif;
  --texto: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --ancho: 72rem;
  --margen: clamp(1rem, 4vw, 2rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: 1.0625rem;
  line-height: 1.65;
}
a {
  color: var(--coral-oscuro);
  text-underline-offset: 0.18em;
}
:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}
.bloque-oscuro :focus-visible,
.hero :focus-visible,
.pagina-cab :focus-visible,
.modal-aviso :focus-visible,
.panel :focus-visible,
.pie :focus-visible {
  outline-color: var(--amarillo);
}

.contenedor {
  width: 100%;
  max-width: var(--ancho);
  margin-inline: auto;
  padding-inline: var(--margen);
}
.contenedor-texto {
  max-width: 46rem;
}

.saltar {
  position: absolute;
  left: var(--margen);
  top: -4rem;
  z-index: 80;
  background: var(--amarillo);
  color: var(--tinta);
  padding: 0.6rem 1rem;
  font-weight: 700;
}
.saltar:focus {
  top: 0.75rem;
}

/* ---------- Ventanas emergentes (aviso y encuesta) ---------- */

body.bloqueado {
  overflow: hidden;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: block;
  overflow-y: auto;
  background: rgba(20, 33, 61, 0.96);
  -webkit-overflow-scrolling: touch;
}
.modal[hidden] {
  display: none;
}
.modal-caja {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: 4.5rem var(--margen) 2rem;
  background: var(--amarillo);
  color: var(--tinta);
}
@media (min-width: 48rem) {
  .modal {
    display: grid;
    place-items: center;
    padding: 2rem;
  }
  .modal[hidden] {
    display: none;
  }
  .modal-caja {
    width: min(48rem, 100%);
    min-height: min(34rem, 100%);
    padding: 4.5rem 3.5rem 3rem;
    border: 4px solid var(--tinta);
    box-shadow: 10px 10px 0 var(--coral);
  }
}
.modal-cerrar {
  position: absolute;
  top: 0.9rem;
  right: var(--margen);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  min-width: 48px;
  padding: 0 0.9rem;
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  color: var(--tinta);
  background: transparent;
  border: 3px solid var(--tinta);
  cursor: pointer;
}
.modal-cerrar > span[aria-hidden] {
  font-size: 1.8rem;
  line-height: 1;
}
.modal-cerrar:hover {
  background: var(--tinta);
  color: var(--amarillo);
}
@media (min-width: 48rem) {
  .modal-cerrar {
    top: 1.2rem;
    right: 1.2rem;
  }
}

.aviso-etiqueta {
  align-self: flex-start;
  margin: 0 0 1rem;
  padding: 0.35rem 0.8rem;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--tinta);
  color: var(--amarillo);
}
.aviso-titulo {
  margin: 0 0 1.2rem;
  font-family: var(--titulos);
  font-weight: 700;
  font-size: clamp(2.6rem, 1.4rem + 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.015em;
}
.aviso-parrafo {
  margin: 0 0 1rem;
  max-width: 36rem;
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.55;
}
.aviso-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}
.aviso-pie {
  margin: 1.5rem 0 0;
  font-size: 0.9rem;
  font-weight: 700;
}
.boton-claro {
  background: transparent;
  color: var(--tinta);
  border-color: var(--tinta);
}
.boton-claro:hover {
  background: var(--tinta);
  color: var(--crema);
}
.boton:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.boton:disabled:hover {
  background: var(--coral);
  border-color: var(--coral);
}

/* Encuesta dentro de la ventana */
.modal-encuesta .modal-caja {
  background: var(--crema);
}
@media (min-width: 48rem) {
  .modal-encuesta .modal-caja {
    width: min(40rem, 100%);
    padding-top: 4.5rem;
  }
}
.enc {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.enc-cab {
  display: contents;
}
.enc-etiqueta {
  position: absolute;
  top: 1.35rem;
  left: var(--margen);
  margin: 0;
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral-oscuro);
}
@media (min-width: 48rem) {
  .enc-etiqueta {
    top: 1.7rem;
    left: 3.5rem;
  }
}
.enc-titulo {
  margin: 0;
  font-family: var(--titulos);
  font-weight: 700;
  font-size: clamp(2rem, 1.3rem + 3vw, 3rem);
  line-height: 1.05;
}
.enc-titulo:focus,
.enc-pregunta:focus {
  outline: none;
}
.enc-texto {
  margin: 0;
  max-width: 34rem;
  font-size: 1.12rem;
  line-height: 1.55;
}
.enc-progreso {
  height: 10px;
  background: var(--regla);
  border: 2px solid var(--tinta);
}
.enc-progreso span {
  display: block;
  height: 100%;
  background: var(--coral);
  transition: width 0.25s ease;
}
.enc-paso {
  margin: 0;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tinta-suave);
}
.enc-campo {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.enc-pregunta {
  float: left;
  width: 100%;
  margin: 0 0 1rem;
  padding: 0;
  font-family: var(--titulos);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem);
  line-height: 1.15;
}
.enc-opciones {
  clear: both;
  display: grid;
  gap: 0.6rem;
}
.enc-opcion {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 52px;
  padding: 0.6rem 1rem;
  background: var(--blanco);
  border: 3px solid var(--tinta);
  cursor: pointer;
  font-weight: 600;
  line-height: 1.3;
}
.enc-opcion:hover {
  background: var(--amarillo);
}
.enc-opcion input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--tinta);
}
.enc-opcion:has(input:checked) {
  background: var(--tinta);
  color: var(--crema);
}
.enc-opcion:has(input:focus-visible) {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}
.enc-texto-libre {
  clear: both;
  width: 100%;
  padding: 0.7rem 0.9rem;
  font: inherit;
  color: var(--tinta);
  background: var(--blanco);
  border: 3px solid var(--tinta);
  resize: vertical;
}
.enc-ayuda {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: var(--tinta-suave);
}
.enc-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.5rem;
}
.enc-acciones .boton-primario {
  margin-left: auto;
}
@media (prefers-reduced-motion: reduce) {
  .enc-progreso span {
    transition: none;
  }
}

/* ---------- Cabecera y menú de tres rayas ---------- */

.cabecera {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--crema);
  border-bottom: 2px solid var(--tinta);
}
.cabecera-fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.5rem;
}
.marca {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--tinta);
  text-decoration: none;
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}
.marca img {
  width: 2.3rem;
  height: 2.3rem;
  display: block;
}
.hamb {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  border: 2px solid var(--tinta);
  cursor: pointer;
}
.hamb:hover {
  background: var(--amarillo);
}
.hamb-rayas,
.hamb-rayas::before,
.hamb-rayas::after {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--tinta);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.hamb-rayas {
  position: relative;
}
.hamb-rayas::before,
.hamb-rayas::after {
  content: "";
  position: absolute;
  left: 0;
}
.hamb-rayas::before {
  top: -8px;
}
.hamb-rayas::after {
  top: 8px;
}
.hamb[aria-expanded="true"] .hamb-rayas {
  background: transparent;
}
.hamb[aria-expanded="true"] .hamb-rayas::before {
  transform: translateY(8px) rotate(45deg);
}
.hamb[aria-expanded="true"] .hamb-rayas::after {
  transform: translateY(-8px) rotate(-45deg);
}

.telon {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(20, 33, 61, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.telon.abierto {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  width: min(24rem, 100%);
  overflow-y: auto;
  background: var(--tinta);
  color: var(--crema);
  padding: 1rem 1.5rem 2rem;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0s linear 0.25s;
}
.panel.abierto {
  transform: none;
  visibility: visible;
  transition-delay: 0s;
}
.panel-cab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.panel-cab p {
  margin: 0;
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--amarillo);
}
.panel-cerrar {
  width: 44px;
  height: 44px;
  font: inherit;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--crema);
  background: transparent;
  border: 2px solid var(--crema);
  cursor: pointer;
}
.panel-cerrar:hover {
  background: var(--amarillo);
  border-color: var(--amarillo);
  color: var(--tinta);
}
.panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.panel li {
  border-top: 1px solid rgba(246, 241, 231, 0.25);
}
.panel li:last-child {
  border-bottom: 1px solid rgba(246, 241, 231, 0.25);
}
.panel a {
  display: block;
  padding: 0.85rem 0.2rem;
  color: var(--crema);
  text-decoration: none;
}
.panel a strong {
  display: block;
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.2;
}
.panel a span {
  display: block;
  font-size: 0.85rem;
  color: rgba(246, 241, 231, 0.75);
}
.panel a:hover strong {
  color: var(--amarillo);
}
.panel a[aria-current="page"] strong {
  color: var(--amarillo);
}
.panel a[aria-current="page"] strong::before {
  content: "→ ";
}
body.menu-abierto {
  overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .hamb-rayas,
  .hamb-rayas::before,
  .hamb-rayas::after,
  .telon,
  .panel {
    transition: none;
  }
}

/* ---------- Hero y cabecera de página ---------- */

.hero {
  background: var(--tinta);
  color: var(--crema);
  padding-block: clamp(3rem, 9vw, 6.5rem) clamp(3rem, 8vw, 5.5rem);
}
.hero-etiqueta {
  margin: 0 0 1.25rem;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amarillo);
}
.hero h1 {
  margin: 0;
  font-family: var(--titulos);
  font-weight: 700;
  font-size: clamp(3.2rem, 1rem + 11vw, 8rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.resalte {
  color: var(--amarillo);
}
.hero-texto {
  max-width: 36rem;
  margin: 1.75rem 0 0;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.55;
}
.hero-botones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.pagina-cab {
  background: var(--tinta);
  color: var(--crema);
  padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(2.2rem, 6vw, 3.5rem);
}
.pagina-cab h1 {
  margin: 0;
  font-family: var(--titulos);
  font-weight: 700;
  font-size: clamp(2.6rem, 1.2rem + 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.pagina-cab .bloque-etiqueta {
  color: var(--amarillo);
}
.pagina-cab .bloque-intro {
  margin-bottom: 0;
}

.boton {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  min-height: 48px;
  font-family: var(--texto);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  border: 3px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.boton-primario {
  background: var(--coral);
  color: var(--tinta);
  border-color: var(--coral);
}
.boton-primario:hover {
  background: var(--amarillo);
  border-color: var(--amarillo);
}
.boton-secundario {
  background: transparent;
  color: var(--crema);
  border-color: var(--crema);
}
.boton-secundario:hover {
  background: var(--crema);
  color: var(--tinta);
}
.boton-oscuro {
  background: var(--tinta);
  color: var(--amarillo);
  border-color: var(--tinta);
}
.boton-oscuro:hover {
  background: var(--crema);
  color: var(--tinta);
}
.boton-inactivo {
  background: transparent;
  color: var(--tinta-suave);
  border-color: var(--tinta-suave);
  border-style: dashed;
  cursor: default;
}
.boton-inactivo:hover {
  background: transparent;
  border-color: var(--tinta-suave);
}
@media (prefers-reduced-motion: reduce) {
  .boton {
    transition: none;
  }
}

/* ---------- Cifras ---------- */

.cifras {
  background: var(--amarillo);
  border-block: 3px solid var(--tinta);
}
.cifras-lista {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}
.cifras-lista li {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.4rem 1.2rem 1.4rem 0;
}
@media (min-width: 52rem) {
  .cifras-lista li + li {
    padding-left: 1.4rem;
    border-left: 3px solid var(--tinta);
  }
}
.cifra {
  font-family: var(--titulos);
  font-weight: 700;
  font-size: clamp(2.4rem, 1.6rem + 2.6vw, 3.6rem);
  line-height: 1;
}
.cifra-texto {
  font-size: 0.98rem;
  line-height: 1.4;
}
.cifra-fuente {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--tinta);
}

/* ---------- Bloques ---------- */

.bloque {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.bloque-oscuro {
  background: var(--tinta);
  color: var(--crema);
}
.bloque-oscuro a {
  color: var(--amarillo);
}
.bloque-amarillo {
  background: var(--amarillo);
  border-block: 3px solid var(--tinta);
}
.bloque-etiqueta {
  margin: 0 0 0.6rem;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral-oscuro);
}
.bloque-oscuro .bloque-etiqueta {
  color: var(--amarillo);
}
.bloque-amarillo .bloque-etiqueta {
  color: var(--tinta);
}
.bloque h2 {
  margin: 0;
  font-family: var(--titulos);
  font-weight: 700;
  font-size: clamp(2rem, 1.3rem + 3vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.bloque-intro {
  max-width: 40rem;
  margin: 1rem 0 2rem;
  font-size: 1.15rem;
  line-height: 1.55;
}
.chip-borrador {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.5rem;
  border: 2px solid currentColor;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Portada: recorrido ---------- */

.recorrido {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
}
.pagina-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  padding: 1.3rem 1.4rem 1.2rem;
  background: var(--blanco);
  color: var(--tinta);
  text-decoration: none;
  border: 3px solid var(--tinta);
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.pagina-card:hover {
  background: var(--amarillo);
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--tinta);
}
.pagina-card .num {
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--coral-oscuro);
}
.pagina-card h3 {
  margin: 0;
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.1;
}
.pagina-card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.45;
}
.pagina-card .ir {
  margin-top: auto;
  padding-top: 0.6rem;
  font-weight: 800;
  font-size: 0.9rem;
}
@media (prefers-reduced-motion: reduce) {
  .pagina-card {
    transition: none;
  }
  .pagina-card:hover {
    transform: none;
  }
}

/* ---------- Línea de tiempo ---------- */

.linea {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.6rem;
  border-left: 4px solid var(--tinta);
}
.evento {
  position: relative;
  padding: 0 0 2.2rem 1.4rem;
}
.evento::before {
  content: "";
  position: absolute;
  left: calc(-1.6rem - 12px);
  top: 0.35rem;
  width: 20px;
  height: 20px;
  background: var(--coral);
  border: 4px solid var(--tinta);
  border-radius: 50%;
}
.evento.es-pendiente::before {
  background: var(--crema);
  border-style: dashed;
}
.evento.es-previsto::before {
  background: var(--amarillo);
}
.evento-fecha {
  margin: 0;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.evento-estado {
  display: inline-block;
  margin-left: 0.6rem;
  padding: 0.05rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  border: 2px solid var(--tinta-suave);
  color: var(--tinta-suave);
  vertical-align: middle;
}
.evento h3 {
  margin: 0.25rem 0 0.5rem;
  font-family: var(--titulos);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  line-height: 1.15;
  text-wrap: balance;
}
.evento p {
  margin: 0 0 0.6rem;
  max-width: 44rem;
}
.evento-nota {
  padding: 0.5rem 0.8rem;
  border-left: 4px solid var(--amarillo);
  background: color-mix(in srgb, var(--tinta) 6%, transparent);
  font-size: 0.95rem;
}
.evento-fuentes {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  font-size: 0.85rem;
}
.evento-fuentes li {
  margin: 0.15rem 0;
}
.sin-fuente {
  font-size: 0.85rem;
  color: var(--coral-oscuro);
  font-weight: 800;
}

/* ---------- Dos versiones ---------- */

.versiones {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 52rem) {
  .versiones {
    grid-template-columns: 1fr 1fr;
  }
}
.version {
  padding: 1.5rem 1.5rem 1.2rem;
  background: var(--crema);
  color: var(--tinta);
  border-top: 8px solid var(--coral);
}
.version-rectorado {
  border-top-color: var(--amarillo);
}
.version h3 {
  margin: 0;
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.1;
}
.version-fuente {
  margin: 0.3rem 0 0.9rem;
  font-size: 0.85rem;
  color: var(--tinta-suave);
}
.version ul,
.pendiente-caja ul {
  margin: 0;
  padding-left: 1.2rem;
}
.version li {
  margin-bottom: 0.7rem;
}
.pendiente-caja {
  margin-top: 1.5rem;
  padding: 1.2rem 1.5rem;
  border: 3px dashed var(--amarillo);
}
.pendiente-caja h3 {
  margin: 0 0 0.5rem;
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--amarillo);
}
.nota-fuentes {
  margin: 1.5rem 0 0;
  font-size: 0.88rem;
}

/* ---------- Voces ---------- */

.tarjetas {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.tarjeta {
  padding: 1.3rem 1.4rem;
  border: 3px solid var(--tinta);
  background: var(--blanco);
}
.tarjeta-pendiente {
  border-style: dashed;
  background: transparent;
}
.tarjeta h3 {
  margin: 0.2rem 0 0.4rem;
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.15;
}
.tarjeta p {
  margin: 0;
}
.etiqueta-estado {
  margin: 0 !important;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral-oscuro);
}
.tarjeta-ancha {
  margin-top: 1.25rem;
}
.encuesta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin: 1.25rem 0;
  padding: 1.5rem;
  background: var(--tinta);
  color: var(--crema);
}
.encuesta h3 {
  margin: 0 0 0.3rem;
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 1.7rem;
}
.encuesta p {
  margin: 0;
  max-width: 38rem;
}
.encuesta .boton-inactivo {
  color: var(--crema);
  border-color: var(--crema);
}

/* ---------- Pasos, cuentas y publicaciones ---------- */

.pasos {
  list-style: none;
  counter-reset: paso;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.pasos li {
  counter-increment: paso;
  padding: 1.2rem 1.3rem 1.3rem;
  background: var(--crema);
  border: 3px solid var(--tinta);
}
.pasos li::before {
  content: counter(paso, decimal-leading-zero);
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--coral-oscuro);
}
.pasos strong {
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 1.2rem;
}

.cuentas {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.cuenta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  padding: 1.3rem 1.4rem;
  background: var(--blanco);
  border: 3px solid var(--tinta);
}
.cuenta .tipo {
  margin: 0;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral-oscuro);
}
.cuenta h3 {
  margin: 0;
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.2;
}
.cuenta .usuario {
  margin: 0;
  font-weight: 700;
  color: var(--tinta-suave);
}
.cuenta .boton {
  margin-top: auto;
  align-self: flex-start;
}
.nota-redes {
  margin: 1.25rem 0 0;
  max-width: 46rem;
  font-size: 0.92rem;
}

.filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
}
.filtro {
  min-height: 44px;
  padding: 0.4rem 1rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--tinta);
  background: transparent;
  border: 2px solid var(--tinta);
  cursor: pointer;
}
.filtro[aria-pressed="true"] {
  background: var(--tinta);
  color: var(--amarillo);
}
.pubs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.pub {
  padding: 1.1rem 1.3rem;
  background: var(--blanco);
  border-left: 8px solid var(--coral);
  border-top: 2px solid var(--tinta);
  border-right: 2px solid var(--tinta);
  border-bottom: 2px solid var(--tinta);
}
.pub[data-cuenta="copess"] {
  border-left-color: var(--amarillo);
}
.pub[data-cuenta="pucp"] {
  border-left-color: var(--tinta);
}
.pub-cab {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.8rem;
  align-items: baseline;
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--tinta-suave);
}
.pub-cab strong {
  color: var(--tinta);
}
.pub p {
  margin: 0 0 0.5rem;
}
.pub .pub-nota {
  padding: 0.4rem 0.7rem;
  border-left: 4px solid var(--amarillo);
  background: color-mix(in srgb, var(--tinta) 6%, transparent);
  font-size: 0.92rem;
}
.pub a {
  font-weight: 700;
  font-size: 0.9rem;
}
.pubs-vacio {
  margin: 0;
  padding: 1.2rem 1.4rem;
  border: 3px dashed var(--tinta-suave);
  color: var(--tinta-suave);
}
.sigue {
  margin: 1.5rem 0 0;
  font-size: 0.95rem;
  font-weight: 700;
}

/* ---------- Manifiesto, glosario, proyecto, privacidad ---------- */

.manifiesto p {
  margin: 0 0 1.1rem;
  font-family: var(--titulos);
  font-weight: 600;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  line-height: 1.5;
}
.manifiesto p:last-child {
  font-weight: 700;
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
}
.glosario {
  margin: 0;
  display: grid;
  gap: 1.75rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}
.glosario dt {
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.15;
  color: var(--amarillo);
}
.glosario dd {
  margin: 0.3rem 0 0;
}
.cita {
  font-size: 0.85rem;
  opacity: 0.85;
}
.bibliografia {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 2px solid var(--tinta-suave);
}
.bibliografia h3 {
  margin: 0 0 0.6rem;
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 1.4rem;
}
.bibliografia ul {
  margin: 0;
  padding-left: 1.4rem;
  font-size: 0.98rem;
}
.bibliografia li {
  margin-bottom: 0.4rem;
}
.texto-largo h2 {
  margin-top: 2.2rem;
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.1rem);
}
.texto-largo h2:first-child {
  margin-top: 0;
}
.texto-largo p,
.texto-largo ul {
  margin: 0.8rem 0 0;
}
.texto-largo ul {
  padding-left: 1.3rem;
}
.texto-largo li {
  margin-bottom: 0.4rem;
}

/* ---------- Anterior / siguiente ---------- */

.pager {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  padding-block: 2.5rem;
}
@media (min-width: 40rem) {
  .pager {
    grid-template-columns: 1fr 1fr;
  }
}
.pager a {
  display: block;
  padding: 1rem 1.3rem;
  color: var(--tinta);
  text-decoration: none;
  border: 3px solid var(--tinta);
  background: var(--blanco);
}
.pager a:hover {
  background: var(--amarillo);
}
.pager small {
  display: block;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral-oscuro);
}
.pager strong {
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 1.5rem;
}
.pager .sig {
  text-align: right;
}
.pager .sig:only-child {
  grid-column: 2;
}
@media (max-width: 39.99rem) {
  .pager .sig:only-child {
    grid-column: 1;
  }
}

/* ---------- Pie ---------- */

.pie {
  background: var(--tinta);
  color: var(--crema);
  padding-block: 2.5rem 3rem;
  font-size: 0.9rem;
}
.pie p {
  margin: 0 0 0.6rem;
  max-width: 46rem;
}
.pie .pie-marca {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--amarillo);
}
.pie .pie-marca img {
  width: 2.4rem;
  height: 2.4rem;
}
.pie a {
  color: var(--amarillo);
}

.sin-js-nav {
  padding: 1rem var(--margen);
  background: var(--amarillo);
  border-bottom: 3px solid var(--tinta);
}
.sin-js-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sin-js-nav a {
  color: var(--tinta);
  font-weight: 700;
}
.sin-js {
  padding: 1rem 0;
}

/* ---------- Entrada suave al hacer scroll ---------- */

.revela {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.revela.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .revela {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Chasqui ---------- */

.chasqui {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 35;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  pointer-events: none;
}
.chasqui > * {
  pointer-events: auto;
}
.chasqui-boton {
  width: 76px;
  height: 76px;
  padding: 4px;
  background: var(--amarillo);
  border: 3px solid var(--tinta);
  border-radius: 50%;
  box-shadow: 4px 4px 0 var(--tinta);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.chasqui-boton:hover {
  transform: translateY(-3px);
}
.chasqui-boton svg,
.chasqui-cab svg {
  display: block;
  width: 100%;
  height: 100%;
}
.chasqui-nube {
  position: relative;
  max-width: 15.5rem;
  margin-right: 0.4rem;
  background: var(--blanco);
  border: 3px solid var(--tinta);
  border-radius: 18px;
  box-shadow: 4px 4px 0 var(--tinta);
  animation: nube-entra 0.35s ease both;
}
.chasqui-nube[hidden] {
  display: none;
}
.chasqui-nube::after {
  content: "";
  position: absolute;
  right: 26px;
  bottom: -12px;
  width: 18px;
  height: 18px;
  background: var(--blanco);
  border-right: 3px solid var(--tinta);
  border-bottom: 3px solid var(--tinta);
  transform: rotate(45deg);
}
.chasqui-nube-texto {
  display: block;
  width: 100%;
  padding: 0.8rem 2.2rem 0.8rem 1rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.35;
  text-align: left;
  color: var(--tinta);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.chasqui-nube-cerrar {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 32px;
  height: 32px;
  font: inherit;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--tinta-suave);
  background: transparent;
  border: 0;
  cursor: pointer;
}
@keyframes nube-entra {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .chasqui-nube {
    animation: none;
  }
  .chasqui-boton {
    transition: none;
  }
}

.chasqui-panel {
  display: flex;
  flex-direction: column;
  width: min(23rem, calc(100vw - 2rem));
  height: min(34rem, calc(100vh - 7.5rem));
  background: var(--crema);
  border: 3px solid var(--tinta);
  box-shadow: 0 0 0 3px var(--amarillo), 7px 7px 0 3px var(--tinta);
}
.chasqui-panel[hidden] {
  display: none;
}
.chasqui-cab {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.8rem;
  background: var(--tinta);
  color: var(--crema);
}
.chasqui-cab .avatar {
  flex: none;
  width: 48px;
  height: 48px;
  padding: 2px;
  background: var(--amarillo);
  border-radius: 50%;
}
.chasqui-cab strong {
  display: block;
  font-family: var(--titulos);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.1;
}
.chasqui-cab span {
  display: block;
  font-size: 0.8rem;
  opacity: 0.85;
}
.chasqui-cab .cerrar {
  margin-left: auto;
  flex: none;
  width: 40px;
  height: 40px;
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--crema);
  background: transparent;
  border: 2px solid var(--crema);
  cursor: pointer;
}
.chasqui-cab .cerrar:hover {
  background: var(--amarillo);
  border-color: var(--amarillo);
  color: var(--tinta);
}
.chasqui-log {
  flex: 1;
  overflow-y: auto;
  padding: 0.9rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  scroll-behavior: smooth;
}
.msg {
  max-width: 88%;
  padding: 0.6rem 0.85rem;
  font-size: 0.95rem;
  line-height: 1.45;
  border: 2px solid var(--tinta);
}
.msg p {
  margin: 0 0 0.5rem;
}
.msg p:last-child {
  margin-bottom: 0;
}
.msg-bot {
  align-self: flex-start;
  background: var(--blanco);
  border-radius: 4px 16px 16px 16px;
}
.msg-yo {
  align-self: flex-end;
  background: var(--tinta);
  color: var(--crema);
  border-radius: 16px 4px 16px 16px;
}
.msg-fuentes {
  margin: 0.4rem 0 0;
  padding: 0.4rem 0 0;
  list-style: none;
  border-top: 1px solid var(--regla);
  font-size: 0.8rem;
}
.msg-fuentes li {
  margin: 0.1rem 0;
}
.msg-enlace {
  display: inline-block;
  margin-top: 0.4rem;
  font-weight: 800;
  font-size: 0.88rem;
}
.escribiendo {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 0.7rem 0.9rem;
  background: var(--blanco);
  border: 2px solid var(--tinta);
  border-radius: 4px 16px 16px 16px;
}
.escribiendo i {
  width: 7px;
  height: 7px;
  background: var(--tinta);
  border-radius: 50%;
  animation: punto 1s infinite ease-in-out;
}
.escribiendo i:nth-child(2) {
  animation-delay: 0.15s;
}
.escribiendo i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes punto {
  0%,
  80%,
  100% {
    opacity: 0.25;
  }
  40% {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .escribiendo i {
    animation: none;
    opacity: 0.7;
  }
  .chasqui-log {
    scroll-behavior: auto;
  }
}
.sugerencias {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-self: stretch;
}
.sugerencias button {
  min-height: 40px;
  padding: 0.35rem 0.8rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.25;
  text-align: left;
  color: var(--tinta);
  background: var(--amarillo);
  border: 2px solid var(--tinta);
  border-radius: 999px;
  cursor: pointer;
}
.sugerencias button:hover {
  background: var(--tinta);
  color: var(--amarillo);
}
.chasqui-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem 0.8rem;
  border-top: 2px solid var(--tinta);
  background: var(--blanco);
}
.chasqui-form input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0.3rem 0.7rem;
  font: inherit;
  font-size: 1rem;
  color: var(--tinta);
  background: var(--crema);
  border: 2px solid var(--tinta);
}
.chasqui-form button {
  min-height: 44px;
  padding: 0 1rem;
  font: inherit;
  font-weight: 800;
  color: var(--tinta);
  background: var(--coral);
  border: 2px solid var(--tinta);
  cursor: pointer;
}
.chasqui-form button:hover {
  background: var(--amarillo);
}

@media (max-width: 30rem) {
  .chasqui-panel {
    width: calc(100vw - 1.5rem);
    height: min(34rem, calc(100vh - 6rem));
  }
  .chasqui-boton {
    width: 64px;
    height: 64px;
  }
}

.bloque-amarillo a {
  color: var(--tinta);
}
.bloque-amarillo .pasos {
  margin-top: 1.5rem;
}

/* Controles sobre fondo oscuro */
.bloque-oscuro .filtro {
  color: var(--crema);
  border-color: var(--crema);
}
.bloque-oscuro .filtro:hover {
  background: rgba(246, 241, 231, 0.15);
}
.bloque-oscuro .filtro[aria-pressed="true"] {
  background: var(--amarillo);
  border-color: var(--amarillo);
  color: var(--tinta);
}
.bloque-oscuro .pubs-vacio {
  color: var(--crema);
  border-color: rgba(246, 241, 231, 0.6);
}
.bloque-oscuro .pub a {
  color: var(--coral-oscuro);
}

/* Ajustes de la ventana de encuesta */
.modal-encuesta {
  background: var(--tinta);
}
.boton.boton-claro {
  background: transparent;
  color: var(--tinta);
  border-color: var(--tinta);
}
.boton.boton-claro:hover {
  background: var(--tinta);
  color: var(--crema);
}
