:root {
  --un-navy: #1f2b4d;
  --un-navy-deep: #141d36;
  --un-ink: #1b2640;
  --un-blue: #1f78c1;
  --un-sky: #33a9e0;
  --un-teal: #3bb3a3;
  --un-lime: #a3c13a;
  --un-lime-soft: #e3edc4;
  --un-lime-deep: #56700f;
  --un-paper: #eef3e4;
  --un-card: #ffffff;
  --un-line: #d6e0c6;
  --un-muted: #44526b;
  --font: "Roboto", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; max-width: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--un-ink);
  background: var(--un-paper);
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
h1, h2, p { overflow-wrap: anywhere; }
h1, h2 { line-height: 1.15; text-wrap: balance; }
a { color: var(--un-blue); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--un-sky);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 10;
  padding: 10px 14px;
  background: #fff;
  color: var(--un-navy);
  font-weight: 700;
}
.skip:focus { top: 8px; }

.franja-color {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.6fr 1fr;
  height: 6px;
}
.franja-color span:nth-child(1) { background: var(--un-sky); }
.franja-color span:nth-child(2) { background: var(--un-blue); }
.franja-color span:nth-child(3) { background: var(--un-teal); }
.franja-color span:nth-child(4) { background: var(--un-lime); }

/* Redes MGT */
.follow { background: var(--un-navy-deep); color: #fff; }
.follow-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 8px 0;
}
.follow-texto { margin: 0; font-size: 15px; line-height: 1.35; color: #d5def0; }
.follow-texto strong, .follow-texto span { display: block; }
.follow-texto strong { color: #fff; font-size: 16px; }
.follow-redes { display: flex; flex-wrap: wrap; gap: 8px; }
.red {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 14px 6px 6px;
  border-radius: 14px;
  background: #fff;
  color: var(--un-navy);
  text-decoration: none;
  line-height: 1.2;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12);
}
.red:hover { background: var(--un-lime-soft); }
.red-logo {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #fff;
}
.red-logo svg { width: 22px; height: 22px; }
.red-instagram .red-logo { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 95%); }
.red-linkedin .red-logo { background: #0a66c2; }
.red b { display: block; font-size: 15px; }
.red small { display: block; font-size: 13px; color: var(--un-muted); }

/* Barra institucional */
.barra { background: #fff; border-bottom: 1px solid var(--un-line); }
.barra-inner, .contenido, .pie-inner, .hero-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
.barra-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  min-height: 64px;
  padding: 8px 0;
}
.marca {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--un-navy);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;
}
.marca img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.marca small { display: block; margin-top: 2px; font-weight: 500; font-size: 13px; color: var(--un-muted); }
.barra nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.barra nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--un-navy);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.barra nav a:hover { border-bottom-color: var(--un-lime); }

/* Encabezado compacto */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--un-navy);
  color: #fff;
}
.hero-inner { position: relative; z-index: 1; padding: 24px 0 26px; }
.hero .ceja {
  display: inline-block;
  margin: 0 0 10px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--un-lime);
  color: var(--un-navy-deep);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 8px;
  max-width: 30ch;
  font-size: clamp(1.75rem, 4.2vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -.01em;
}
.hero h1 em { font-style: normal; color: var(--un-lime); }
.hero p { margin: 0; max-width: 60ch; font-size: 1.05rem; color: #dbe4f3; }
.formas { position: absolute; inset: 0; pointer-events: none; }
.formas span { position: absolute; display: block; border-radius: 50%; }
.formas .f1 { width: 180px; height: 180px; right: -50px; top: -60px; border: 18px solid var(--un-sky); opacity: .85; }
.formas .f2 { width: 120px; height: 120px; right: 60px; bottom: -70px; background: var(--un-lime); opacity: .9; }
.formas .f3 { width: 70px; height: 35px; right: 190px; top: 18px; border-radius: 70px 70px 0 0; background: #6aa7d8; opacity: .6; }
.formas .f4 { width: 16px; height: 16px; right: 250px; bottom: 26px; background: var(--un-teal); }

.migas { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 14px; }
.migas a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.migas a:hover { background: rgba(255,255,255,.12); }

/* Tarjetas */
.rejilla {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 24px 0 40px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 20px;
  border-radius: 20px;
  background: var(--un-card);
  border: 1px solid var(--un-line);
  border-top: 6px solid var(--un-blue);
  box-shadow: 0 12px 28px rgba(31, 43, 77, .08);
}
.card:nth-child(even) { border-top-color: var(--un-lime); }
.card-top { display: flex; align-items: center; gap: 12px; }
.burbuja {
  display: grid;
  place-items: center;
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--un-sky), var(--un-blue));
  border: 4px solid #fff;
  box-shadow: 0 0 0 3px var(--un-sky);
  color: #fff;
}
.card:nth-child(even) .burbuja { background: linear-gradient(160deg, #b8d24f, #6f9420); box-shadow: 0 0 0 3px var(--un-lime); }
.burbuja svg { width: 28px; height: 28px; }
.sigla {
  margin: 0;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--un-navy);
  color: #fff;
  font-weight: 900;
  letter-spacing: .05em;
}
.card h2 { margin: 4px 0 0; font-size: clamp(1.25rem, 2.4vw, 1.5rem); font-weight: 900; color: var(--un-navy); }
.card > p { margin: 0; color: var(--un-muted); }
.detalle {
  margin: 2px 0 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--un-blue);
  color: #fff;
}
.card:nth-child(even) .detalle { background: var(--un-navy); }
.detalle .etiqueta {
  display: inline-block;
  margin-bottom: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--un-lime);
  color: var(--un-navy-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.detalle p { margin: 0; color: #fff; font-weight: 700; }
.notas { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.notas li {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--un-lime-soft);
  color: var(--un-lime-deep);
  font-size: 14px;
  font-weight: 700;
}
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: flex-start;
  min-height: 48px;
  margin-top: auto;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--un-navy);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.boton::after { content: "→"; }
.boton:hover { background: var(--un-blue); }

.pie { background: var(--un-navy-deep); color: #d5def0; border-top: 6px solid var(--un-lime); }
.pie-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 20px 0 24px;
}
.pie p { margin: 0; max-width: 62ch; font-size: 14px; }
.pie a { color: #fff; font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }

@media (min-width: 720px) {
  .rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner { padding: 30px 0 32px; }
}
@media (max-width: 520px) {
  .formas .f1 { width: 120px; height: 120px; border-width: 12px; right: -50px; top: -50px; }
  .formas .f2, .formas .f3, .formas .f4 { display: none; }
  .follow-inner { gap: 6px; }
  .follow-texto span { display: none; }
  .follow-redes { width: 100%; flex-wrap: nowrap; }
  .red { flex: 1 1 0; min-width: 0; padding-right: 8px; gap: 8px; }
  .red small { overflow-wrap: anywhere; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
