/* ==========================================================================
   Educación Continua · Escuela de Gobierno Alberto Lleras Camargo
   Portal de profesores — hoja de estilos
   ========================================================================== */

/* --------------------------------------------------------------- Tokens -- */
:root {
  /* Marca institucional */
  --ink: #1b1b1d;
  --ink-soft: #4a4a4f;
  --ink-mute: #6e6e75;

  --navy-900: #060d2e;
  --navy-800: #0a1540;
  --navy-700: #001f77;
  --navy-50: #eef0ff;

  --gold-600: #b87d00;
  --gold-500: #e3a40f;
  --gold-300: #f5d070;
  --gold-50: #fdf6e4;

  --white: #ffffff;
  --paper: #fafafa;
  --surface: #f5f6f8;
  --line: #e4e5e9;
  --line-soft: #eeeff2;

  --ok-600: #146c43;
  --ok-50: #e8f4ed;
  --warn-600: #8a5a00;
  --warn-50: #fff6e3;
  --danger-600: #b42318;
  --danger-50: #fdeceb;
  --whatsapp: #25d366;

  /* Tipografía */
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Medidas */
  --wrap: 1180px;
  --gutter: 20px;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(16, 20, 40, .05);
  --shadow-md: 0 10px 28px -14px rgba(16, 20, 40, .22);
  --shadow-lg: 0 24px 60px -28px rgba(16, 20, 40, .34);

  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ----------------------------------------------------------------- Base -- */
*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5 {
  margin: 0 0 .5em;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -.012em;
}

h1 { font-size: clamp(2.1rem, 1.3rem + 3.3vw, 3.5rem); font-weight: 700; letter-spacing: -.028em; }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.35rem); font-weight: 600; letter-spacing: -.022em; }
h3 { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); }
h4 { font-size: 1rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy-700); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--gold-600); }

img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .45em; }
li:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

:focus-visible {
  outline: 3px solid var(--navy-700);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--gold-300); color: var(--ink); }

/* ------------------------------------------------------------- Utilidad -- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: 860px; }

.section { padding: clamp(60px, 7vw, 104px) 0; }
.section--tight { padding: clamp(46px, 5vw, 72px) 0; }
.section--paper { background: var(--paper); }
.section--surface { background: var(--surface); }

.section--dark {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .78);
}
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark strong { color: var(--white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-600);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold-500);
  border-radius: 2px;
}
.section--dark .eyebrow { color: var(--gold-300); }
.section--dark .eyebrow::before { background: var(--gold-300); }

.section-head { max-width: 720px; margin-bottom: clamp(34px, 4vw, 52px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p { font-size: 1.04rem; color: var(--ink-mute); margin-bottom: 0; }
.section--dark .section-head p { color: rgba(255, 255, 255, .72); }

.lead { font-size: clamp(1.03rem, .98rem + .3vw, 1.18rem); color: var(--ink-soft); }
.muted { color: var(--ink-mute); }
.small { font-size: .88rem; }
.tiny { font-size: .8rem; }
.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------- Botones -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: .94rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              border-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; }

.btn--primary { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn--primary:hover { background: var(--navy-700); border-color: var(--navy-700); color: var(--white); box-shadow: var(--shadow-md); }

.btn--gold { background: var(--gold-500); border-color: var(--gold-500); color: var(--ink); }
.btn--gold:hover { background: var(--gold-300); border-color: var(--gold-300); color: var(--ink); box-shadow: var(--shadow-md); }

.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--white); }

.btn--light { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--gold-300); border-color: var(--gold-300); color: var(--ink); }

.btn--outline-light { background: transparent; border-color: rgba(255, 255, 255, .42); color: var(--white); }
.btn--outline-light:hover { border-color: var(--white); background: rgba(255, 255, 255, .1); color: var(--white); }

.btn--soon {
  background: var(--surface);
  border-color: var(--line);
  border-style: dashed;
  color: var(--ink-mute);
  cursor: default;
}
.btn--soon:hover { transform: none; }

.btn--sm { padding: 10px 18px; font-size: .86rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: .93rem;
  color: var(--ink);
}
.link-arrow::after {
  content: "→";
  transition: transform .18s var(--ease);
  color: var(--gold-600);
}
.link-arrow:hover { color: var(--navy-700); }
.link-arrow:hover::after { transform: translateX(4px); }

/* --------------------------------------------------------------- Header -- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: var(--header-h);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(170%) blur(12px);
  -webkit-backdrop-filter: saturate(170%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(16, 20, 40, .4);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
}
.header__logo { display: flex; align-items: center; flex: none; }
.header__logo img { height: 40px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  padding: 9px 13px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--surface); }
.nav a.is-active { color: var(--ink); font-weight: 600; }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px; bottom: 2px;
  height: 2px;
  background: var(--gold-500);
  border-radius: 2px;
}

.header__cta { flex: none; }
.nav__cta { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------------------------------------------- Hero -- */
.hero {
  position: relative;
  margin-top: var(--header-h);
  min-height: min(84vh, 720px);
  display: flex;
  align-items: center;
  padding: clamp(64px, 8vw, 110px) 0 clamp(56px, 7vw, 96px);
  background: var(--navy-900);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 68% 48%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(6, 13, 46, .97) 0%, rgba(6, 13, 46, .92) 44%, rgba(6, 13, 46, .58) 100%),
    linear-gradient(to top, rgba(6, 13, 46, .92), transparent 58%);
}
.hero__inner { max-width: 760px; }
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 7px 16px 7px 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .9);
}
.hero__kicker b { color: var(--gold-300); font-weight: 600; }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--gold-300); }
.hero__text {
  max-width: 600px;
  font-size: clamp(1rem, .95rem + .35vw, 1.17rem);
  color: rgba(255, 255, 255, .82);
  margin-bottom: 32px;
}
.hero .btn-row { margin-bottom: 40px; }

.hero__stats {
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.hero__stats-title {
  margin: 0 0 18px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
}
.hero__nps {
  max-width: 580px;
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .82rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .62);
}
.hero__nps strong { color: rgba(255, 255, 255, .88); font-weight: 600; }
.hero__nps em { font-style: italic; }
.hero__fact strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.02em;
  line-height: 1.2;
}
.hero__fact span { font-size: .82rem; color: rgba(255, 255, 255, .62); }

/* ---------------------------------------------------------- Carta / nota -- */
.charter {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .95fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
  padding: clamp(30px, 4vw, 52px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.charter::before {
  content: "";
  position: absolute;
  left: 0; top: clamp(30px, 4vw, 52px); bottom: clamp(30px, 4vw, 52px);
  width: 4px;
  background: linear-gradient(var(--gold-500), var(--navy-700));
  border-radius: 0 4px 4px 0;
}
.charter__body { padding-left: clamp(18px, 2vw, 30px); }
.charter__body h2 { margin-bottom: 18px; }
.charter__sign {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-size: .88rem;
  line-height: 1.55;
  color: var(--ink-mute);
}
.charter__sign-text { flex: 1; min-width: 0; }
.charter__sign strong { display: block; color: var(--ink); font-size: 1rem; font-weight: 600; }

.linkedin {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  color: var(--ink-mute);
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}
.linkedin svg { width: 16px; height: 16px; }
.linkedin:hover {
  background: #0a66c2;
  border-color: #0a66c2;
  color: var(--white);
  transform: translateY(-2px);
}
.charter__media {
  position: relative;
  min-width: 0;
  min-height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
}
.charter__media img { width: 100%; height: 100%; object-fit: cover; }

/* ----------------------------------------------------------------- Ruta -- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.steps--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step {
  position: relative;
  padding: 26px 20px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.step:hover { border-color: var(--gold-300); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-300);
  font-size: .85rem;
  font-weight: 700;
}
.step h3 { font-size: 1rem; margin-bottom: 8px; }
.step p { font-size: .88rem; color: var(--ink-mute); margin: 0; }

/* ---------------------------------------------------------------- Cards -- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid > * { min-width: 0; }

.card {
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.card:hover { border-color: var(--gold-300); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .93rem; color: var(--ink-mute); }
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--gold-50);
  color: var(--gold-600);
}
.card__icon--navy { background: var(--navy-50); color: var(--navy-700); }
.card__icon svg { width: 22px; height: 22px; }

.section--dark .card {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .14);
}
.section--dark .card:hover { border-color: rgba(245, 208, 112, .5); background: rgba(255, 255, 255, .08); }
.section--dark .card p { color: rgba(255, 255, 255, .72); }
.section--dark .card__icon { background: rgba(245, 208, 112, .14); color: var(--gold-300); }

/* -------------------------------------------------- Formación obligatoria -- */
.training {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.training__media { position: relative; min-width: 0; min-height: 330px; }
.training__media img { width: 100%; height: 100%; object-fit: cover; }
.training__tag {
  position: absolute;
  top: 18px; left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--gold-500);
  color: var(--ink);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.training__body { padding: clamp(28px, 3.4vw, 46px); }
.training__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.training__meta li {
  margin: 0;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: .82rem;
  color: var(--ink-soft);
}
.training__note {
  margin-top: 18px;
  font-size: .84rem;
  color: var(--ink-mute);
}

/* ------------------------------------------ Guía · banda horizontal ------ */
.guide-band {
  position: relative;
  padding: clamp(44px, 5vw, 72px) 0;
  background: var(--navy-900);
  overflow: hidden;
  isolation: isolate;
}
.guide-band__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}
.guide-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(98deg, rgba(6, 13, 46, .96), rgba(6, 13, 46, .86));
}
.guide-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 190px) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 54px);
  align-items: center;
}
.guide-band__cover {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 26px 50px -22px rgba(0, 0, 0, .8);
  transform: rotate(-1.5deg);
  transition: transform .3s var(--ease);
}
.guide-band__cover:hover { transform: rotate(0) translateY(-4px); }
.guide-band__cover img { width: 100%; height: auto; display: block; }
.guide-band__body { min-width: 0; color: rgba(255, 255, 255, .8); }
.guide-band__body .eyebrow { color: var(--gold-300); }
.guide-band__body .eyebrow::before { background: var(--gold-300); }
.guide-band__body h2 { color: var(--white); margin-bottom: 14px; }
.guide-band__body p { max-width: 620px; font-size: 1rem; margin-bottom: 26px; }

/* ------------------------------------------------- Comunidad / networking -- */
.community {
  position: relative;
  background:
    radial-gradient(900px 440px at 50% -5%, rgba(227, 164, 15, .1), transparent 70%),
    linear-gradient(180deg, var(--gold-50) 0%, var(--white) 58%);
  overflow: hidden;
}
.community__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: clamp(28px, 3.5vw, 46px);
}
.community__card {
  position: relative;
  padding: 30px 26px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.community__card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  transform: scaleX(.22);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.community__card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-300);
  box-shadow: var(--shadow-md);
}
.community__card:hover::before { transform: scaleX(1); }
.community__card h3 { font-size: 1.04rem; margin-bottom: 9px; }
.community__card p { font-size: .92rem; color: var(--ink-mute); margin: 0; }
.community__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--gold-50), #fbeec6);
  color: var(--gold-600);
}
.community__icon svg { width: 23px; height: 23px; }

/* Panel de reconocimiento */
.spotlight {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: stretch;
  border-radius: var(--radius-lg);
  background: var(--navy-900);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.spotlight__media { position: relative; margin: 0; min-height: 300px; }
.spotlight__media img { width: 100%; height: 100%; object-fit: cover; }
.spotlight__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 13, 46, .25), rgba(6, 13, 46, .85));
}
.spotlight__body { padding: clamp(28px, 3.6vw, 48px); color: rgba(255, 255, 255, .78); }
.spotlight__body h3 { color: var(--white); font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem); margin-bottom: 14px; }
.spotlight__body p { font-size: .97rem; }
.spotlight__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 15px 7px 12px;
  border-radius: 999px;
  background: var(--gold-500);
  color: var(--ink);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.spotlight__badge svg { width: 15px; height: 15px; }
.spotlight__note {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: .88rem;
  color: var(--gold-300);
}

/* ------------------------------------------------------------- Avisos --- */
.note {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: .92rem;
}
.note__icon { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.note p { margin: 0; }
.note--warn { background: var(--warn-50); border-color: #f0dcae; color: #6b4700; }
.note--warn strong { color: #6b4700; }
.note--info { background: var(--navy-50); border-color: #ced5ff; color: #2b3675; }
.note--info strong { color: #1b2566; }
.note--ok { background: var(--ok-50); border-color: #bcdcc9; color: #0f5134; }
.note--ok strong { color: #0f5134; }

/* ------------------------------------------------------------- Encuesta -- */
.quality {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.quality__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3.2;
}
.quality__media img { width: 100%; height: 100%; object-fit: cover; }
.quality__badge {
  position: absolute;
  right: 18px; bottom: 18px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.quality__badge b {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy-700);
  line-height: 1.1;
}
.quality__badge span { font-size: .74rem; color: var(--ink-mute); letter-spacing: .04em; }

.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.pillar {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .05);
}
.pillar h4 { font-size: .95rem; margin-bottom: 6px; color: var(--white); }
.pillar p { font-size: .85rem; margin: 0; color: rgba(255, 255, 255, .7); }
.pillar span {
  display: block;
  margin-bottom: 10px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--gold-300);
}

/* ----------------------------------------------------------- Banda foto -- */
.band {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(220px, 26vw, 340px);
  padding: 48px 0;
  background: var(--navy-900);
  overflow: hidden;
  isolation: isolate;
}
.band__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(96deg, rgba(6, 13, 46, .93), rgba(6, 13, 46, .74));
}
.band__inner { text-align: center; }
.band p {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -.015em;
  color: rgba(255, 255, 255, .92);
}
.band p strong { color: var(--gold-300); font-weight: 600; }

/* ------------------------------------------------------------ Descargas -- */
.downloads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.download {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.download:hover { border-color: var(--gold-300); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.download__type {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--navy-900);
  color: var(--gold-300);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.download__body { flex: 1; min-width: 0; }
.download__body h3 { font-size: 1rem; margin-bottom: 5px; }
.download__body p { font-size: .88rem; color: var(--ink-mute); margin-bottom: 12px; }
.download__meta { font-size: .76rem; color: var(--ink-mute); letter-spacing: .03em; }
.download__action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 7px;
  min-width: 0;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.download__action svg { width: 16px; height: 16px; color: var(--gold-600); }
.download:hover .download__action { color: var(--navy-700); }

/* ------------------------------------------------------------ Checklist -- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li {
  position: relative;
  margin: 0;
  padding-left: 34px;
  font-size: .95rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 20px; height: 20px;
  border-radius: 6px;
  background: var(--gold-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b87d00' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.checklist--light li::before { background-color: rgba(245, 208, 112, .18); }
.section--dark .checklist li { color: rgba(255, 255, 255, .8); }

/* -------------------------------------------- Sección de vinculación ----- */
.enroll {
  position: relative;
  background:
    radial-gradient(800px 380px at 50% 0%, rgba(0, 31, 119, .07), transparent 68%),
    linear-gradient(180deg, var(--navy-50) 0%, var(--white) 52%);
}
.enroll::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--navy-700), var(--gold-500));
}

/* Los tres documentos que se piden */
.docs-needed {
  list-style: none;
  counter-reset: doc;
  display: grid;
  gap: 10px;
  margin: 0 0 26px;
  padding: 20px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.docs-needed li {
  position: relative;
  counter-increment: doc;
  margin: 0;
  padding-left: 34px;
  font-size: .93rem;
}
.docs-needed li::before {
  content: counter(doc);
  position: absolute;
  left: 0; top: 1px;
  width: 22px; height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-300);
  font-size: .72rem;
  font-weight: 700;
}

/* Las dos formas de enviar los soportes */
.ways {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.way {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}
.way:first-child { border-color: var(--navy-700); background: var(--navy-50); }
.way__tag {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--navy-900);
  color: var(--gold-300);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.way:not(:first-child) .way__tag { background: var(--line); color: var(--ink-mute); }
.way h4 { font-size: 1rem; margin-bottom: 7px; }
.way p { font-size: .88rem; color: var(--ink-mute); margin: 0; }

/* Paso siguiente en la pantalla de éxito */
.next-step {
  margin: 26px auto 0;
  max-width: 560px;
  padding: 26px 24px 24px;
  border: 1.5px solid var(--gold-300);
  border-radius: var(--radius);
  background: var(--gold-50);
  text-align: center;
}
.next-step__label {
  display: inline-block;
  margin: 0 0 10px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--gold-500);
  color: var(--ink);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.next-step h4 { font-size: 1.15rem; margin-bottom: 10px; }
.next-step > p { font-size: .92rem; color: var(--ink-soft); }
.next-step--done {
  border-color: #bcdcc9;
  background: var(--ok-50);
}
.next-step--done .next-step__label { background: var(--ok-600); color: var(--white); }

/* Los dos pasos finales */
.todo { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; text-align: left; }
.todo__item {
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.todo__num {
  flex: none;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-300);
  font-size: .78rem;
  font-weight: 700;
}
.todo__body { min-width: 0; }
.todo__body h5 { margin: 0 0 4px; font-size: .96rem; font-weight: 600; color: var(--ink); }
.todo__body p { margin: 0 0 12px; font-size: .87rem; color: var(--ink-mute); }

/* Resumen de envío */
.recap {
  margin: 20px auto 0;
  max-width: 560px;
  padding: 24px 24px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  text-align: left;
}
.recap h4 { font-size: 1.02rem; margin-bottom: 16px; }
.recap__sub {
  margin: 0 0 8px;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.recap__docs { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 9px; }
.recap__docs li {
  position: relative;
  margin: 0;
  padding-left: 28px;
  font-size: .91rem;
  color: var(--ink-soft);
}
.recap__docs li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 17px; height: 17px;
  border-radius: 5px;
  background: var(--gold-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b87d00' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.recap__mails { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 6px; }
.recap__mails li { margin: 0; font-size: .91rem; font-weight: 500; word-break: break-word; }
.recap__help {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.recap__help p { margin: 0; font-size: .89rem; }
.recap__help-icon {
  flex: none;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(37, 211, 102, .14);
  color: var(--whatsapp);
}
.recap__help-icon svg { width: 17px; height: 17px; }

/* ------------------------------------------------------------ Formulario -- */
.form-shell {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.form-progress {
  display: flex;
  gap: 2px;
  padding: 22px clamp(20px, 3vw, 38px) 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.form-progress__step {
  flex: 1;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--line);
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-mute);
  text-align: center;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.form-progress__step b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--line);
  color: var(--ink-mute);
  font-size: .72rem;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.form-progress__step.is-active { color: var(--ink); border-bottom-color: var(--gold-500); }
.form-progress__step.is-active b { background: var(--gold-500); color: var(--ink); }
.form-progress__step.is-done { color: var(--ink-soft); border-bottom-color: var(--navy-700); }
.form-progress__step.is-done b { background: var(--navy-700); color: var(--white); }

.form-body { padding: clamp(26px, 3.4vw, 44px); }
.fieldset { border: 0; margin: 0; padding: 0; }
.fieldset[hidden] { display: none; }
.fieldset__head { margin-bottom: 26px; }
.fieldset__head h3 { margin-bottom: 6px; }
.fieldset__head p { font-size: .92rem; color: var(--ink-mute); margin: 0; }

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field--full { grid-column: 1 / -1; }

.field label,
.field > .label {
  font-size: .86rem;
  font-weight: 600;
  color: var(--ink);
}
.field .req { color: var(--danger-600); margin-left: 2px; }
.field .hint { font-size: .78rem; color: var(--ink-mute); font-weight: 400; }

.input,
select.input,
textarea.input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: inherit;
  font-size: .95rem;
  color: var(--ink);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
  appearance: none;
}
.input::placeholder { color: #a8a8b0; }
.input:hover { border-color: #cfd0d6; }
.input:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 4px rgba(0, 31, 119, .1);
}
.input[aria-invalid="true"] { border-color: var(--danger-600); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, .1); }

select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e6e75' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 17px;
  padding-right: 40px;
  cursor: pointer;
}

textarea.input { min-height: 112px; resize: vertical; line-height: 1.6; }

.counter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  justify-content: space-between;
  align-items: baseline;
}
.counter .hint { margin: 0; }
.counter .is-over { color: var(--danger-600); font-weight: 600; }

.phone-group { display: grid; grid-template-columns: minmax(0, 148px) minmax(0, 1fr); gap: 10px; }
.phone-group select.input { padding-inline: 12px 32px; background-position: right 10px center; font-size: .9rem; }

.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  position: relative;
  flex: 1 1 130px;
}
.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: .93rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-align: center;
  transition: all .18s var(--ease);
}
.choice input:hover + span { border-color: #cfd0d6; }
.choice input:checked + span {
  border-color: var(--navy-700);
  background: var(--navy-50);
  color: var(--navy-700);
  font-weight: 600;
}
.choice input:focus-visible + span { outline: 3px solid var(--navy-700); outline-offset: 2px; }

.error-msg {
  display: none;
  font-size: .8rem;
  color: var(--danger-600);
  font-weight: 500;
}
.field.has-error .error-msg { display: block; }

/* Consentimientos */
.consent {
  display: flex;
  gap: 13px;
  padding: 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  cursor: pointer;
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.consent:hover { border-color: #cfd0d6; }
.consent:has(input:checked) { border-color: var(--navy-700); background: var(--navy-50); }
.consent.has-error { border-color: var(--danger-600); background: var(--danger-50); }
.consent input {
  flex: none;
  width: 20px; height: 20px;
  margin-top: 2px;
  accent-color: var(--navy-700);
  cursor: pointer;
}
.consent__text { font-size: .88rem; line-height: 1.6; }
.consent__text b { display: block; margin-bottom: 3px; color: var(--ink); font-weight: 600; }

.review {
  margin: 0 0 22px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}
.review h4 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 14px; }
.review dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 0; font-size: .89rem; }
.review dt { color: var(--ink-mute); }
.review dd { margin: 0; color: var(--ink); font-weight: 500; word-break: break-word; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.form-actions .spacer { flex: 1; }

.form-status { margin-top: 18px; }
.form-status:empty { margin: 0; }

.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-success {
  display: none;
  padding: clamp(32px, 4vw, 54px);
  text-align: center;
}
.form-success.is-visible { display: block; }
.form-success__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px; height: 62px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--ok-50);
  color: var(--ok-600);
}
.form-success__mark svg { width: 30px; height: 30px; }

/* -------------------------------------------------------------- Contacto -- */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 26px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .05);
  transition: border-color .2s var(--ease), background-color .2s var(--ease), transform .2s var(--ease);
}
.contact-card:hover { border-color: rgba(245, 208, 112, .5); background: rgba(255, 255, 255, .08); transform: translateY(-3px); }
.contact-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(245, 208, 112, .14);
  color: var(--gold-300);
}
.contact-card__icon svg { width: 21px; height: 21px; }
.contact-card h3 { font-size: 1rem; margin-bottom: 2px; }
.contact-card p { font-size: .88rem; color: rgba(255, 255, 255, .7); margin: 0; }
.contact-card a { color: var(--gold-300); font-weight: 500; font-size: .93rem; word-break: break-word; }
.contact-card a:hover { color: var(--white); }

/* ---------------------------------------------------------------- Footer -- */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .62);
  padding: clamp(48px, 5vw, 68px) 0 32px;
  font-size: .88rem;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer__logo { height: 46px; width: auto; margin-bottom: 18px; }
.footer h4 {
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 14px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a { color: rgba(255, 255, 255, .78); }
.footer a:hover { color: var(--gold-300); }
.footer__legal {
  padding-top: 26px;
  font-size: .78rem;
  color: rgba(255, 255, 255, .45);
  line-height: 1.7;
}
.footer__legal p { margin-bottom: .5em; }

/* --------------------------------------------------------- WhatsApp FAB -- */
.wa {
  position: fixed;
  right: clamp(16px, 2.4vw, 28px);
  bottom: clamp(16px, 2.4vw, 28px);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 0;
  height: 58px;
  padding: 0;
  border-radius: 999px;
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .55), 0 2px 8px rgba(0, 0, 0, .14);
  overflow: hidden;
  transform: translateY(140%);
  opacity: 0;
  transition: transform .45s var(--ease), opacity .35s var(--ease), box-shadow .25s var(--ease);
}
.wa.is-in { transform: translateY(0); opacity: 1; }
.wa:hover { color: #fff; box-shadow: 0 16px 36px -8px rgba(37, 211, 102, .7), 0 3px 10px rgba(0, 0, 0, .18); }
.wa__icon {
  flex: none;
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
}
.wa__icon svg { width: 29px; height: 29px; }
.wa__label {
  display: grid;
  grid-template-columns: 0fr;
  transition: grid-template-columns .4s var(--ease);
}
.wa__label > span {
  overflow: hidden;
  white-space: nowrap;
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.25;
}
.wa__label > span i {
  display: block;
  font-style: normal;
  font-size: .74rem;
  font-weight: 400;
  opacity: .88;
}
.wa.is-wide .wa__label { grid-template-columns: 1fr; }
.wa.is-wide .wa__label > span { padding-right: 22px; }
.wa:hover .wa__label { grid-template-columns: 1fr; }
.wa:hover .wa__label > span { padding-right: 22px; }
.wa::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid rgba(37, 211, 102, .5);
  animation: wa-pulse 2.6s ease-out infinite;
  pointer-events: none;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: .7; }
  70% { transform: scale(1.14); opacity: 0; }
  100% { opacity: 0; }
}

/* Botón volver arriba */
.to-top {
  position: fixed;
  right: clamp(16px, 2.4vw, 28px);
  bottom: calc(clamp(16px, 2.4vw, 28px) + 68px);
  z-index: 79;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.to-top.is-in { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { background: var(--white); border-color: var(--ink); }
.to-top svg { width: 18px; height: 18px; }

/* ------------------------------------------------------- Animación entrada -- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------- Responsive */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 980px) {
  .community__grid { grid-template-columns: minmax(0, 1fr); }
  .spotlight { grid-template-columns: minmax(0, 1fr); }
  .spotlight__media { min-height: 0; aspect-ratio: 16 / 7; }
  .spotlight__media::after { background: linear-gradient(180deg, rgba(6, 13, 46, .2), rgba(6, 13, 46, .75)); }
  .guide-band__inner { grid-template-columns: minmax(0, 150px) minmax(0, 1fr); }
}

@media (max-width: 960px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px var(--gutter) 22px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
  .nav a { padding: 13px 14px; font-size: .97rem; border-radius: 10px; }
  .nav a.is-active::after { display: none; }
  .nav a.is-active { background: var(--navy-50); color: var(--navy-700); }
  .nav-toggle { display: flex; }
  .header__cta { display: none; }
  .nav .nav__cta { display: block; margin-top: 10px; }
  .nav .nav__cta .btn { width: 100%; }

  .charter { grid-template-columns: minmax(0, 1fr); }
  .charter__body { padding-left: clamp(16px, 3vw, 24px); }
  .charter__media { order: -1; min-height: 0; aspect-ratio: 16 / 9; }

  .training { grid-template-columns: minmax(0, 1fr); }
  .training__media { min-height: 0; aspect-ratio: 16 / 9; }

  .quality { grid-template-columns: minmax(0, 1fr); }
  .quality__media { aspect-ratio: 16 / 10; }

  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  :root { --header-h: 68px; }
  .header__logo img { height: 33px; }

  .hero { min-height: 0; }
  .hero__kicker { font-size: .74rem; padding: 6px 13px; }
  .hero__kicker-long { display: none; }
  .hero__facts { gap: 18px 28px; }
  .hero__fact strong { font-size: 1.25rem; }

  .steps,
  .steps--three { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .step { display: flex; gap: 16px; align-items: flex-start; padding: 20px; }
  .step__num { margin-bottom: 0; }

  .guide-band__inner { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .guide-band__cover { max-width: 160px; transform: none; }
  .charter__sign { flex-wrap: wrap; }

  .grid--2, .grid--3, .grid--4,
  .downloads, .pillars, .field-grid, .ways { grid-template-columns: minmax(0, 1fr); }
  .footer__top { grid-template-columns: minmax(0, 1fr); gap: 30px; }

  .form-progress { gap: 0; padding-inline: 16px; }
  .form-progress__step { font-size: 0; padding-bottom: 14px; }
  .form-progress__step b { margin: 0; font-size: .74rem; }

  .review dl { grid-template-columns: minmax(0, 1fr); gap: 3px 0; }
  .review dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; margin-top: 9px; }
  .review dt:first-child { margin-top: 0; }

  .form-actions .btn { flex: 1 1 100%; }
  .form-actions .spacer { display: none; }

  .wa { height: 54px; }
  .wa__icon { width: 54px; height: 54px; }
  .wa.is-wide .wa__label { grid-template-columns: 0fr; }
  .wa.is-wide .wa__label > span { padding-right: 0; }
  .to-top { bottom: calc(clamp(16px, 2.4vw, 28px) + 64px); }
}

@media print {
  .header, .wa, .to-top, .nav-toggle, #vinculacion { display: none !important; }
  .hero { margin-top: 0; }
  body { color: #000; }
}
