:root {
  --navy-900: #12274a;
  --navy-800: #18325f;
  --navy-700: #204079;
  --navy-100: #dde5f3;
  --navy-50: #f3f6fc;
  --teal-900: #134238;
  --teal-700: #22695c;
  --teal-600: #2d8176;
  --teal-100: #ddece7;
  --teal-50: #f2f9f6;
  --gold-800: #6b4e0f;
  --gold-600: #b8862b;
  --gold-50: #fbf3e0;
  --slate-800: #374151;
  --slate-600: #4b5563;
  --slate-50: #f1f3f5;
  --ink: #172033;
  --muted: #475566;
  --line: #d9e2ea;
  --paper: #ffffff;
  --soft: #f7f9fb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand img {
  width: 124px;
  height: 54px;
  object-fit: contain;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.nav a,
.nav-campus,
.header-cta,
.button,
.filter {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
}

.nav a {
  padding: 8px 10px;
  color: var(--navy-800);
}

.nav a:hover,
.nav a:focus-visible {
  background: var(--navy-50);
  outline: none;
}

.header-actions {
  display: flex;
  gap: 10px;
}

.nav-campus {
  padding: 8px 16px;
  background: var(--teal-600);
  color: white;
  border: 1px solid var(--teal-600);
}

.nav-campus svg {
  width: 18px;
  height: 18px;
}

.nav-campus:hover,
.nav-campus:focus-visible {
  background: var(--teal-700);
  border-color: var(--teal-700);
}

.header-cta,
.button.primary {
  background: var(--navy-800);
  color: white;
}

.header-cta:hover,
.button.primary:hover {
  background: var(--navy-700);
}

.header-cta {
  padding: 8px 16px;
}

/* ---------------------------------------------------------------- base */

.section {
  padding: clamp(52px, 8vw, 92px) clamp(18px, 5vw, 72px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-700);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "IBM Plex Serif", Georgia, serif;
  letter-spacing: 0;
  line-height: 1.12;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.35rem, 7vw, 4.6rem);
}

h2 {
  max-width: 820px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  color: var(--navy-900);
}

h3,
h4 {
  margin: 0;
  color: var(--navy-900);
  line-height: 1.28;
}

h3 {
  font-size: 1.08rem;
}

h4 {
  font-size: 1rem;
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 900px;
  margin-bottom: 28px;
}

.section-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.button {
  border: 1px solid transparent;
  padding: 12px 18px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.button.secondary {
  color: white;
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.1);
}

.button.ghost {
  color: var(--navy-800);
  border-color: var(--navy-100);
  background: white;
}

.button.ghost:hover {
  background: var(--navy-50);
}

.button.accent {
  margin-top: 22px;
  background: var(--teal-600);
  color: white;
}

.button.accent:hover {
  background: var(--teal-700);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--teal-50);
  color: var(--teal-900);
  font-size: 0.75rem;
  font-weight: 800;
}

/* ---------------------------------------------------------------- hero */

.hero {
  min-height: calc(100svh - 79px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
  background:
    linear-gradient(112deg, rgba(18, 39, 74, 0.96) 0%, rgba(24, 50, 95, 0.91) 48%, rgba(45, 129, 118, 0.84) 100%),
    url("public/logos/krae.png"),
    linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 52%, var(--teal-700) 100%);
  background-position: center, right clamp(28px, 8vw, 140px) center, center;
  background-repeat: no-repeat;
  background-size: cover, min(42vw, 520px) auto, cover;
  color: white;
}

.hero-copy {
  max-width: 760px;
}

.hero .eyebrow,
.hero .north {
  color: var(--teal-100);
}

.hero-lead {
  max-width: 680px;
  margin: 24px 0 0;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions,
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-panel {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: rgba(18, 39, 74, 0.38);
}

.north {
  display: block;
  margin-bottom: 20px;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 1.45rem;
  font-style: italic;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metric-grid div {
  min-height: 112px;
  padding: 18px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
}

.metric-grid strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.metric-grid span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.8);
}

/* ------------------------------------------------------------ respaldos */

.respaldos {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.respaldos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.respaldo {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.respaldo-kind {
  color: var(--teal-700);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.respaldo-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.respaldo-logos img {
  height: 64px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.respaldo-logos img.logo-marna {
  width: 260px;
  max-width: 100%;
  height: auto;
}

.respaldo p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* --------------------------------------------------------- quiénes somos */

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: start;
}

.about-intro-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
}

.about-intro-copy .button {
  margin-top: 8px;
}

.offer-title {
  margin-bottom: 18px;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 1.6rem;
}

.offer-grid {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.offer-grid li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.offer-grid svg {
  width: 48px;
  height: 48px;
  padding: 11px;
  border-radius: 8px;
  color: var(--teal-700);
  background: var(--teal-50);
}

.offer-grid strong {
  display: block;
  color: var(--navy-900);
}

.offer-grid span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* -------------------------------------------------------------- programas */

.filter {
  border: 1px solid var(--line);
  padding: 10px 14px;
  background: white;
  color: var(--navy-800);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.filter span {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--navy-50);
  color: var(--navy-800);
  font-size: 0.75rem;
}

.filter.active {
  border-color: var(--navy-800);
  background: var(--navy-800);
  color: white;
}

.filter.active span {
  background: rgba(255, 255, 255, 0.18);
  color: white;
}

.filter:hover,
.filter:focus-visible {
  border-color: var(--teal-700);
  background: var(--teal-700);
  color: white;
}

.filter:hover span,
.filter:focus-visible span {
  background: rgba(255, 255, 255, 0.18);
  color: white;
}

.program-grid {
  display: grid;
  gap: 40px;
  margin-top: 30px;
}

.program-group-heading {
  display: grid;
  gap: 4px;
  padding-left: 16px;
  margin-bottom: 18px;
  border-left: 4px solid var(--area, var(--navy-800));
}

.program-group-heading h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 1.5rem;
}

.program-group-heading h3 span {
  color: var(--muted);
  font-family: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.program-group-heading p {
  margin: 0;
  color: var(--muted);
}

.program-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.program-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 20px 20px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--area, var(--navy-800));
  border-radius: 8px;
  background: white;
}

.program-card h3 {
  font-size: 1.15rem;
}

.program-subtitle {
  margin: -6px 0 0;
  color: var(--muted);
  font-style: italic;
  font-size: 0.95rem;
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.meta-list li {
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--navy-900);
  font-size: 0.82rem;
  font-weight: 700;
}

.program-summary {
  margin: 0;
  color: var(--muted);
}

.aval {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.aval-label {
  grid-column: 1 / -1;
  color: var(--teal-700);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aval-logos {
  display: flex;
  gap: 8px;
  align-items: center;
}

.aval-logos img,
.aval-badge {
  height: 40px;
  width: auto;
  max-width: 64px;
  object-fit: contain;
}

.aval-logos img[src*="cel-oficial"] {
  max-width: 96px;
}

.aval-logos img[src*="marna-pbm"] {
  max-width: 120px;
}

.aval-badge {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--navy-800);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
}

.aval strong {
  color: var(--navy-900);
  font-size: 0.85rem;
  line-height: 1.35;
}

.aval em {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.82rem;
}

.aval.aval-many {
  grid-template-columns: 1fr;
  gap: 8px;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}

.card-actions .button {
  padding-inline: 12px;
  font-size: 0.9rem;
  text-align: center;
}

/* Acentos por área (sugerencia de la auditoría UX) */

.area-docencia {
  --area: var(--navy-800);
}

.area-ia {
  --area: var(--teal-600);
}

.area-aduanas {
  --area: var(--gold-600);
}

.area-gerencia {
  --area: var(--slate-600);
}

.area-docencia .tag-area {
  background: var(--navy-50);
  color: var(--navy-800);
}

.area-ia .tag-area {
  background: var(--teal-50);
  color: var(--teal-900);
}

.area-aduanas .tag-area {
  background: var(--gold-50);
  color: var(--gold-800);
}

.area-gerencia .tag-area {
  background: var(--slate-50);
  color: var(--slate-800);
}

.tag-type {
  background: var(--navy-800);
  color: white;
}

/* ---------------------------------------------------------------- diálogo */

.program-dialog {
  width: min(880px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(18, 39, 74, 0.35);
}

.program-dialog::backdrop {
  background: rgba(18, 39, 74, 0.55);
  backdrop-filter: blur(3px);
}

.dialog-inner {
  position: relative;
  padding: clamp(22px, 4vw, 40px);
}

#dialog-content {
  display: grid;
  gap: 22px;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--navy-800);
  cursor: pointer;
}

.dialog-close svg {
  width: 20px;
  height: 20px;
}

.dialog-close:hover {
  background: var(--navy-50);
}

.dialog-head {
  display: grid;
  gap: 12px;
  padding-right: 48px;
  padding-left: 18px;
  border-left: 4px solid var(--area, var(--navy-800));
}

.dialog-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.dialog-section h3 {
  margin-bottom: 10px;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 1.3rem;
}

.dialog-section p {
  margin: 0 0 12px;
  color: var(--muted);
}

.module-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: modulo;
}

.module-list li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.module-list strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy-900);
}

.module-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.module-key {
  margin-top: 8px !important;
  color: var(--teal-900) !important;
}

.module-key span {
  font-weight: 800;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------- conócenos */

.about {
  background: var(--soft);
}

.about-presentation {
  max-width: 900px;
  margin-bottom: 28px;
}

.about-presentation p {
  color: var(--muted);
  font-size: 1.05rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

.about-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal-600);
  border-radius: 8px;
  background: white;
}

.about-grid h3 {
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 1.4rem;
}

.about-grid p {
  margin: 10px 0 0;
  color: var(--muted);
}

.about-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
}

.about-subtitle {
  margin-bottom: 14px;
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 1.4rem;
}

.objectives {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: objetivo;
}

.objectives li {
  position: relative;
  padding: 14px 16px 14px 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  font-size: 0.95rem;
}

.objectives li::before {
  counter-increment: objetivo;
  content: counter(objetivo);
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--navy-800);
  color: white;
  font-weight: 800;
}

.objectives strong {
  display: block;
  color: var(--navy-900);
}

.values-lead {
  margin: 0 0 12px;
  color: var(--muted);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.values-grid li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.values-grid strong {
  display: block;
  color: var(--navy-900);
  font-size: 0.95rem;
}

.values-grid span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

/* ------------------------------------------------------------------ equipo */

.staff-tier {
  margin-top: 30px;
}

.staff-tier > h3 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  color: var(--teal-700);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.staff-tier > h3::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}

.staff-grid-lead {
  grid-template-columns: repeat(auto-fill, minmax(220px, 260px));
}

.staff-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.staff-card img,
.staff-card .avatar {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  background: var(--navy-50);
}

.staff-card-body {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.staff-card h4 {
  font-size: 1rem;
}

.staff-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.avatar {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(24, 50, 95, 0.96), rgba(45, 129, 118, 0.86)),
    var(--navy-800);
  color: white;
  font-size: 1.7rem;
  font-weight: 900;
}

.facilitators {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.facilitator-group {
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--area, var(--navy-800));
  border-radius: 8px;
  background: white;
}

.facilitator-group h4 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.facilitator-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.facilitator {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy-900);
}

.facilitator img,
.facilitator .avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  object-position: center top;
  aspect-ratio: 1;
}

.facilitator .avatar {
  font-size: 0.8rem;
}

/* -------------------------------------------------------- certificaciones */

.backer-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.backer-list li {
  display: grid;
  grid-template-rows: 64px auto;
  gap: 12px;
  align-items: center;
  justify-items: center;
  padding: 18px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  text-align: center;
}

.backer-list img {
  height: 64px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.backer-list .aval-badge {
  height: 48px;
  min-width: 64px;
  font-size: 1rem;
}

.backer-list li > span:last-child {
  color: var(--navy-900);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
}

.cert-system {
  display: grid;
  gap: 18px;
}

.cert-statement {
  margin: 0;
  padding: 18px 22px;
  border-left: 4px solid var(--teal-600);
  border-radius: 6px;
  background: var(--teal-50);
  color: var(--teal-900);
  font-weight: 600;
}

.cert-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cert-block {
  position: relative;
  padding: 24px 24px 24px 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.cert-number {
  position: absolute;
  top: 24px;
  left: 24px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--navy-800);
  color: white;
  font-weight: 800;
}

.cert-block h3 {
  font-size: 1.15rem;
}

.cert-block p {
  margin: 8px 0 0;
  color: var(--muted);
}

.cert-block ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.cert-block li {
  color: var(--muted);
  font-size: 0.95rem;
}

.cert-block li strong {
  color: var(--navy-900);
}

/* -------------------------------------------------------------- corporativo */

.corporate,
.admission {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: start;
}

.corporate {
  background: var(--navy-900);
  color: white;
}

.corporate h2 {
  color: white;
}

.corporate .eyebrow {
  color: var(--teal-100);
}

.corporate p {
  color: rgba(255, 255, 255, 0.8);
}

.process {
  display: grid;
  gap: 14px;
}

.process div {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.process strong {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--teal-600);
}

/* --------------------------------------------------------------- inscripción */

.admission {
  background: var(--soft);
}

.admission p {
  color: var(--muted);
}

.admission-steps {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.admission-steps span {
  padding: 12px 14px;
  border-left: 4px solid var(--teal-600);
  background: white;
  font-weight: 700;
}

.contact-card {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.contact-card a {
  color: var(--navy-800);
  font-weight: 800;
  text-decoration: none;
}

.contact-card a:hover {
  color: var(--teal-700);
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.lead-form label {
  display: grid;
  gap: 6px;
  color: var(--navy-900);
  font-weight: 800;
}

.lead-form input,
.lead-form select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #bac8d5;
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  background: white;
}

.lead-form input:focus,
.lead-form select:focus,
.button:focus-visible,
.filter:focus-visible,
.nav-campus:focus-visible,
.header-cta:focus-visible,
.dialog-close:focus-visible {
  outline: 3px solid var(--teal-600);
  outline-offset: 2px;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  font-weight: 700;
}

/* ------------------------------------------------------------------ footer */

.footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 28px clamp(18px, 5vw, 72px);
  background: var(--navy-900);
  color: white;
}

.footer img {
  width: 118px;
  height: 52px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-copy p {
  flex-basis: 100%;
  margin: 0;
}

.footer-copy a {
  color: var(--teal-100);
  font-weight: 700;
  text-decoration: none;
}

.footer-copy a:hover,
.footer-nav a:hover {
  color: white;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.footer-nav a {
  color: var(--teal-100);
}

.whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 12;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 6px;
  background: var(--teal-600);
  color: white;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(18, 39, 74, 0.25);
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 1050px) {
  .hero,
  .about-intro,
  .corporate,
  .admission,
  .about-columns {
    grid-template-columns: 1fr;
  }

  .respaldos-grid,
  .program-cards,
  .facilitators {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .backer-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .nav a {
    flex: 0 0 auto;
  }

  .header-cta {
    display: none;
  }

  .nav-campus {
    padding-inline: 12px;
    font-size: 0.88rem;
  }

  .hero {
    min-height: auto;
    padding-top: 58px;
    background-position: center, center 44px, center;
    background-size: cover, 72vw auto, cover;
  }

  .hero-panel {
    display: none;
  }

  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .filters .filter {
    flex: 0 0 auto;
  }

  .respaldos-grid,
  .program-cards,
  .about-grid,
  .values-grid,
  .cert-columns,
  .facilitators,
  .footer {
    grid-template-columns: 1fr;
  }

  .backer-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .staff-grid {
    grid-auto-flow: column;
    grid-auto-columns: minmax(200px, 70vw);
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
  }

  .staff-grid-lead {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: minmax(0, 260px);
    overflow: visible;
  }

  .staff-card {
    scroll-snap-align: start;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }

  .program-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

  .dialog-head {
    padding-left: 12px;
  }
}

/* -------------------------------------------------------------- impresión */

.print-only {
  display: none;
}

@media print {
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  html {
    scroll-behavior: auto;
  }

  body {
    background: white;
    font-size: 13px;
  }

  .nav,
  .header-actions,
  .whatsapp,
  .filters,
  .card-actions,
  .lead-form,
  .about-intro-copy .button,
  .corporate .button,
  .program-dialog {
    display: none !important;
  }

  .print-only {
    display: block;
  }

  .site-header {
    position: static;
    grid-template-columns: auto 1fr;
    padding: 0 0 12px;
    background: white;
    backdrop-filter: none;
  }

  .section {
    padding: 22px 0;
  }

  .section-heading {
    margin-bottom: 18px;
  }

  h1 {
    font-size: 2.3rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  h2,
  h3,
  .program-group-heading,
  .staff-tier > h3 {
    break-after: avoid;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1.1fr 0.9fr;
    padding: 34px 32px;
    border-radius: 8px;
    background-position: center, right 24px center, center;
    background-size: cover, 260px auto, cover;
  }

  .hero-panel {
    display: block;
    padding: 20px;
  }

  .metric-grid div {
    min-height: 0;
  }

  .respaldos {
    background: white;
    border-bottom: 0;
  }

  .about-grid,
  .cert-columns,
  .about-columns,
  .offer-grid,
  .corporate {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-intro {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .respaldos-grid,
  .program-cards,
  .facilitators,
  .backer-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .program-card {
    padding: 16px 14px 14px;
    gap: 10px;
  }

  .program-card h3 {
    font-size: 1rem;
  }

  .footer {
    break-inside: avoid;
  }

  .staff-grid,
  .staff-grid-lead {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    padding-bottom: 0;
  }

  .staff-card img,
  .staff-card .avatar {
    aspect-ratio: 1;
  }

  .admission {
    grid-template-columns: 1fr;
    background: white;
  }

  .about,
  .team {
    background: white;
  }

  .corporate {
    padding: 28px 32px;
    border-radius: 8px;
  }

  .program-card,
  .respaldo,
  .staff-card,
  .facilitator-group,
  .cert-block,
  .about-grid article,
  .objectives li,
  .values-grid li,
  .offer-grid li,
  .module-list li,
  .backer-list li,
  .process div,
  .contact-card {
    break-inside: avoid;
  }

  .footer {
    grid-template-columns: auto 1fr;
    padding: 20px 24px;
    border-radius: 8px;
  }

  .footer-nav {
    display: none;
  }

  #planes-impresion {
    break-before: page;
  }

  .section-heading,
  .program-group-heading,
  .staff-tier > h3,
  .about-subtitle,
  .offer-title {
    break-after: avoid;
  }

  .about-presentation {
    break-inside: avoid;
  }

  .print-plan {
    padding: 18px 0 22px 18px;
    margin-bottom: 8px;
    border-left: 4px solid var(--area, var(--navy-800));
    break-inside: auto;
  }

  .print-plan h3 {
    margin: 10px 0 4px;
    font-family: "IBM Plex Serif", Georgia, serif;
    font-size: 1.35rem;
  }

  .print-plan h4 {
    margin: 16px 0 6px;
    font-size: 1rem;
    break-after: avoid;
  }

  .print-plan .meta-list {
    margin: 8px 0 10px;
  }

  .print-plan .aval {
    margin-bottom: 4px;
  }

  .print-plan > p {
    margin: 0 0 8px;
    color: var(--muted);
  }
}
