/* Fuentes servidas desde el sitio (antes Google Fonts): latin, licencia OFL en fonts/. */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/montserrat-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/montserrat-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/montserrat-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/montserrat-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: italic; font-weight: 600; font-display: swap; src: url("fonts/montserrat-latin-600-italic.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: italic; font-weight: 700; font-display: swap; src: url("fonts/montserrat-latin-700-italic.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/nunito-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/nunito-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/nunito-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* Layout: editorial scrollytelling. A photo window that opens as you scroll, a sticky data
   canvas that tells "datos → decisiones", then calm chapters on a soft blue-grey white. */
:root {
  --bg: #eef3f7;
  --surface: #f8fafc;
  --sky: #e1ebf3;
  --line: #d0dce7;
  --ink: #102a43;
  --muted: #4f6479;
  --faint: #a5b6c7;
  --accent: #0077a8;
  --brand: #0077ad;
  --accent-soft: #7cc2e0;
  --teal: #2fb5a6;
  --on-accent: #ffffff;
  --deep: #0b2236;
  --on-deep: #e8f1f8;
  --on-deep-accent: #7cc2e0;
  --shadow: 0 24px 60px -30px rgba(16, 42, 67, 0.35);
  --logo-light: block;
  --logo-dark: none;

  --f-display: "Gotham", "Montserrat", "Proxima Nova", system-ui, sans-serif;
  --f-body: "Gotham", "Montserrat", "Proxima Nova", system-ui, sans-serif;
  --f-data: "Arial Rounded MT Bold", "Nunito", system-ui, sans-serif;

  --step--1: 0.84rem;
  --step-0: 1rem;
  --step-1: 1.3rem;
  --step-2: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem);
  --step-3: clamp(2.1rem, 1.4rem + 3vw, 3.4rem);
  --step-4: clamp(2.5rem, 1.4rem + 4.6vw, 4.7rem);

  --gutter: clamp(16px, 4vw, 48px);
  --wrap: 1180px;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1824; --surface: #122233; --sky: #15293c; --line: #22384e;
    --ink: #e4edf5; --muted: #9aafc3; --faint: #7890a8;
    --accent: #4db7e4; --brand: #0077ad; --accent-soft: #2a78a0; --teal: #3cc4b8; --on-accent: #ffffff;
    --deep: #081521; --on-deep: #e4edf5; --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.7);
    --logo-light: none; --logo-dark: block;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1824; --surface: #122233; --sky: #15293c; --line: #22384e;
  --ink: #e4edf5; --muted: #9aafc3; --faint: #7890a8;
  --accent: #4db7e4; --brand: #0077ad; --accent-soft: #2a78a0; --teal: #3cc4b8; --on-accent: #ffffff;
  --deep: #081521; --on-deep: #e4edf5; --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.7);
  --logo-light: none; --logo-dark: block;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .35s ease, color .35s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.05; letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  font-family: var(--f-data); font-size: var(--step--1); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
}
.logo-light { display: var(--logo-light); }
.logo-dark { display: var(--logo-dark); }

/* Media with scroll parallax */
.media { position: relative; overflow: hidden; border-radius: 20px; background: var(--sky); }
.media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: translate3d(0, var(--py, 0px), 0) scale(1.08); will-change: transform;
}

/* Reading progress */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60;
  background: linear-gradient(90deg, var(--accent), var(--teal)); transform-origin: 0 50%; transform: scaleX(0);
}

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background-color .35s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; padding-block: 14px; }
.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; gap: 22px; }
.nav a { text-decoration: none; font-size: 0.95rem; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--ink); }
/* Con seis secciones en el menú, entre 861 y 1060 px se achica el espacio para que el botón no se parta. */
@media (min-width: 861px) and (max-width: 1060px) { .nav { gap: 14px; } .nav a { font-size: 0.9rem; } }
.site-header .btn { white-space: nowrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-weight: 600; font-size: 0.95rem; padding: 10px 18px; border-radius: 999px;
  background: var(--brand); color: var(--on-accent); border: 1px solid var(--brand);
  transition: transform .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); }
.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; flex: none;
  transition: border-color .2s, background-color .35s;
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .moon { display: var(--logo-light); }
.theme-toggle .sun { display: var(--logo-dark); }
@media (max-width: 860px) { .nav { display: none; } .brand img { height: 26px; } }
/* Menú para celular (menu.js) */
.menu-toggle {
  display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); place-items: center; cursor: pointer; padding: 0; flex: none; transition: border-color .2s;
}
.menu-toggle:hover { border-color: var(--accent); }
.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle path { transition: transform .25s cubic-bezier(.16, 1, .3, 1), opacity .2s; transform-origin: 12px 12px; }
.menu-open .menu-toggle .l1 { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-toggle .l2 { opacity: 0; }
.menu-open .menu-toggle .l3 { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 860px) {
  .site-header .wrap { gap: 10px; }
  .menu-toggle { display: grid; }
  .site-header.menu-open { background: var(--bg); border-bottom-color: var(--line); }
  .site-header.menu-open .nav {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0;
    padding: 4px 20px 18px; background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -20px rgba(0, 0, 0, .35); animation: menu-in .25s cubic-bezier(.16, 1, .3, 1);
  }
  .site-header.menu-open .nav a { padding: 14px 2px; font-size: 1.05rem; color: var(--ink); border-bottom: 1px solid var(--line); }
  .site-header.menu-open .nav a:last-child { border-bottom: 0; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .site-header.menu-open .nav { animation: none; } .menu-toggle path { transition: none; } }

/* Hero */
.hero { padding-block: clamp(48px, 8vw, 96px) clamp(28px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px 56px; align-items: end; }
.hero h1 { font-size: var(--step-4); max-width: 13ch; margin-top: 18px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-lead { font-size: var(--step-1); color: var(--muted); max-width: 40ch; line-height: 1.5; }
.hero-side { display: grid; gap: 28px; padding-bottom: 10px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); } }

.hero-window { padding-inline: calc(var(--inset, 0) * 1px); }
.hero-window .media {
  aspect-ratio: 1600 / 667; max-height: 78vh; width: 100%;
  border-radius: calc(var(--round, 1) * 24px); box-shadow: var(--shadow);
}
.hero-window .media img { object-position: 60% 50%; }
.hero-badge {
  position: absolute; left: clamp(14px, 3vw, 32px); bottom: clamp(14px, 3vw, 32px);
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; padding: 12px 16px; border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 0.92rem; color: var(--ink); box-shadow: var(--shadow); max-width: calc(100% - 28px);
}
.hero-badge b { font-family: var(--f-data); font-weight: 500; color: var(--accent); font-size: 0.8rem; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 760px) {
  .hero-window .media { aspect-ratio: 4 / 3.4; }
  .hero-window .media img { object-position: 64% 50%; }
}
.hero-cue {
  margin-top: clamp(36px, 6vw, 64px); display: flex; align-items: center; gap: 14px;
  font-family: var(--f-data); font-size: var(--step--1); color: var(--muted);
}
.hero-cue::before { content: ""; width: 48px; height: 1px; background: var(--faint); }

/* Story (scrollytelling) */
.story { position: relative; padding-block: 24px 40px; }
.story .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 72px); }
.story-steps { display: flex; flex-direction: column; order: 1; }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding-block: 8vh; }
.step:first-child { min-height: 60vh; padding-top: 0; }
.step-box { display: grid; gap: 14px; transition: opacity .45s ease; opacity: .38; }
.step.is-active .step-box { opacity: 1; }
.step h2 { font-size: var(--step-3); }
.step p { color: var(--muted); max-width: 40ch; font-size: var(--step-1); line-height: 1.5; }
.step .stage {
  font-family: var(--f-data); font-size: var(--step--1); color: var(--accent);
  display: flex; align-items: center; gap: 10px;
}
.step .stage i { display: inline-block; width: 22px; height: 1px; background: currentColor; }
.story-visual { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); height: calc(100vh - 120px); max-height: 680px; align-self: start; order: 2; }
.canvas-frame {
  position: relative; height: 100%; border-radius: 22px; background: var(--surface);
  border: 1px solid var(--line); overflow: hidden; transition: background-color .35s;
}
.canvas-frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.canvas-caption {
  position: absolute; left: 20px; top: 16px; right: 20px; display: flex; justify-content: space-between;
  font-family: var(--f-data); font-size: 0.75rem; color: var(--muted); pointer-events: none;
}
@media (max-width: 860px) {
  .story .wrap { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .story-visual { order: 0; height: 42vh; top: calc(env(safe-area-inset-top, 0px) + 84px); z-index: 1; }
  .step, .step:first-child { min-height: 85vh; padding-block: 4vh 8vh; justify-content: flex-end; position: relative; z-index: 2; }
  .step-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; opacity: 1; }
  .step:not(.is-active) .step-box { opacity: .9; }
  /* El gráfico queda arriba y tapa a las tarjetas cuando suben, en vez de que ellas tapen el gráfico */
  .story-visual { z-index: 3; }
  .story-visual::before {
    content: ""; position: absolute; z-index: -1; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter));
    top: -24px; bottom: -14px; background: var(--bg);
  }
  .step, .step:first-child { min-height: 62vh; z-index: 1; }
}

/* Manifesto: words fill with color as you scroll */
.manifesto { padding-block: clamp(80px, 14vw, 180px); }
.manifesto p {
  font-family: var(--f-display); font-size: var(--step-3); line-height: 1.15; letter-spacing: -0.02em;
  max-width: 22ch; font-weight: 500;
}
.manifesto .w { color: color-mix(in srgb, var(--muted) 62%, var(--bg)); transition: color .25s; }
.manifesto .w.on { color: var(--ink); }
.manifesto .w.key.on { color: var(--accent); }

/* Programs */
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 40rem; }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--muted); font-size: var(--step-1); line-height: 1.5; }
.programs { padding-block: clamp(48px, 8vw, 96px); }
.program-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.program {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr) auto; gap: 24px 44px;
  align-items: center; padding-block: 32px; border-bottom: 1px solid var(--line); text-decoration: none;
}
.program .media { aspect-ratio: 16 / 10; border-radius: 16px; }
.program .media img { transition: transform .6s ease; }
.program:hover .media img { transform: translate3d(0, var(--py, 0px), 0) scale(1.14); }
.program-body { display: grid; gap: 10px; }
.program h3 { font-size: var(--step-2); }
.program .tag { font-family: var(--f-data); font-size: var(--step--1); color: var(--accent); }
.program p { color: var(--muted); max-width: 52ch; }
.program ul { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.program li { font-size: 0.85rem; padding: 4px 12px; border-radius: 999px; background: var(--sky); color: var(--ink); }
.program .arrow {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--accent); transition: transform .3s, border-color .3s;
}
.program:hover .arrow { transform: translateX(6px); border-color: var(--accent); }
@media (max-width: 760px) {
  .program { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .program .arrow { display: none; }
}

.programs-more { margin-top: 32px; display: flex; }

/* Path: how studying works (a real sequence) */
.path { padding-block: clamp(56px, 9vw, 110px); background: var(--sky); transition: background-color .35s; }
.path-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px 56px; align-items: center; margin-bottom: clamp(40px, 6vw, 72px); }
.path-intro .section-head { margin-bottom: 0; }
.path-intro .media { aspect-ratio: 16 / 10; box-shadow: var(--shadow); }
.path-intro .media img { object-position: 70% 50%; }
@media (max-width: 860px) { .path-intro { grid-template-columns: minmax(0, 1fr); } }
.path-track { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.path-track::before {
  content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--line);
}
.path-track::after {
  content: ""; position: absolute; left: 0; top: 23px; height: 2px; width: calc(var(--fill, 0) * 100%);
  background: linear-gradient(90deg, var(--accent), var(--teal)); transition: width .2s linear;
}
.path-step { position: relative; z-index: 1; display: grid; gap: 12px; align-content: start; }
.path-step .dot {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 2px solid var(--line); font-family: var(--f-data); font-size: 0.9rem; color: var(--muted);
  transition: border-color .3s, color .3s, background .3s;
}
.path-step.on .dot { border-color: var(--accent); color: var(--on-accent); background: var(--brand); }
.path-step h3 { font-size: var(--step-1); letter-spacing: -0.01em; }
.path-step p { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 860px) {
  .path-track { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .path-track::before, .path-track::after { left: 23px; right: auto; top: 0; width: 2px; height: 100%; }
  .path-track::after { height: calc(var(--fill, 0) * 100%); width: 2px; }
  .path-step { grid-template-columns: 48px minmax(0, 1fr); column-gap: 18px; }
  .path-step .dot { grid-row: span 2; }
}

/* Alumni: LinkedIn-style posts that slide sideways as you scroll down */
.alumni { position: relative; padding-block: clamp(64px, 9vw, 112px) clamp(32px, 5vw, 64px); }
.alumni-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(24px, 4vw, 40px); }
.alumni-head .section-head { margin-bottom: 0; }
.alumni-nav { display: grid; gap: 10px; justify-items: end; min-width: 160px; }
.alumni-count { font-family: var(--f-data); font-size: var(--step--1); color: var(--muted); font-variant-numeric: tabular-nums; }
.alumni-bar { width: 160px; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; display: block; }
.alumni-bar i { display: block; height: 100%; width: 50%; background: linear-gradient(90deg, var(--accent), var(--teal)); transform-origin: 0 50%; }
.alumni-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); scrollbar-width: none; overscroll-behavior-x: contain; }
.alumni-viewport::-webkit-scrollbar { display: none; }
.alumni-track {
  --card-w: calc((min(100vw, var(--wrap)) - 2 * var(--gutter) - 48px) / 3);
  list-style: none; margin: 0; display: flex; gap: 24px; width: max-content; align-items: stretch;
  padding-block: 6px 24px;
  padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  will-change: transform;
}
.post-slot { width: var(--card-w); flex: none; scroll-snap-align: start; display: flex; }
@media (max-width: 1000px) { .alumni-track { --card-w: calc((100vw - 2 * var(--gutter) - 24px) / 2); } }
@media (max-width: 640px) { .alumni-head .section-head p { display: none; } .alumni-head h2 { font-size: var(--step-2); } .alumni-track { --card-w: calc(100vw - 2 * var(--gutter) - 28px); gap: 14px; } .alumni-nav { justify-items: start; } }
.alumni.pinned .alumni-viewport { overflow: hidden; scroll-snap-type: none; }
.alumni.pinned .alumni-pin {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 72px);
  min-height: calc(100vh - 72px); display: flex; flex-direction: column; justify-content: center;
}
.alumni.pinned { padding-block: 0; }
.alumni.all-fit .alumni-nav { display: none; }
.alumni.all-fit .alumni-viewport { overflow-x: hidden; }

.post {
  --li-font: -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", "Fira Sans", Ubuntu, Oxygen, sans-serif;
  position: relative; width: 100%; display: flex; flex-direction: column; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 16px 14px; font-family: var(--li-font); font-size: 14px; line-height: 1.45; color: var(--ink);
  box-shadow: 0 1px 2px rgba(16, 42, 67, 0.06); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background-color .35s;
}
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.post-head { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.post-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.post-avatar--ph { display: grid; place-items: center; background: var(--sky); color: var(--muted); font-weight: 600; border: 1px dashed var(--faint); }
.post-who { min-width: 0; display: grid; gap: 1px; }
.post-name { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.post-verified { width: 15px; height: 15px; color: var(--muted); }
.post-deg { color: var(--muted); font-weight: 400; font-size: 13px; }
.post-headline { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-meta { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 4px; }
.post-meta svg { width: 13px; height: 13px; }
.post-text { display: grid; gap: 10px; position: relative; flex: 1; max-height: 9.6em; overflow: hidden; }
.post-text::after {
  content: "…ver más"; position: absolute; right: 0; bottom: 0; padding-left: 36px; color: var(--muted);
  background: linear-gradient(90deg, transparent, var(--surface) 30px);
}
.post-mention { color: var(--accent); font-weight: 600; }
.post-tags { color: var(--accent); font-weight: 600; }
.post-attach {
  display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 12px; align-items: center;
  border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: var(--bg);
}
.post-attach img { width: 118px; height: 74px; object-fit: cover; object-position: top; border-radius: 4px; }
.post-attach strong { display: block; font-size: 13px; line-height: 1.35; font-weight: 600; }
.post-attach span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.cert-ph { width: 118px; height: 74px; border-radius: 4px; background: repeating-linear-gradient(135deg, var(--sky) 0 8px, var(--line) 8px 9px); }
.post-open {
  position: absolute; inset: 0; border: 0; background: transparent; cursor: zoom-in; border-radius: 12px;
  color: transparent; font-size: 0; padding: 0;
}
.post-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.post--sample { border-style: dashed; background: color-mix(in srgb, var(--surface) 60%, var(--bg)); }
.post--sample .post-text::after { background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 60%, var(--bg)) 30px); }
.post--sample .post-text { color: var(--muted); }
.sample-chip {
  position: absolute; top: -11px; right: 14px; z-index: 1; font-family: var(--f-data); font-size: 11px; letter-spacing: .05em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--ink); color: var(--bg);
}

/* Companies: recommendation letters */
.companies { padding-block: clamp(56px, 8vw, 104px) clamp(64px, 10vw, 128px); }
.letter-list { display: grid; gap: clamp(48px, 7vw, 88px); }
.letter { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px clamp(32px, 6vw, 80px); align-items: center; }
.letter--flip .letter-paper { order: 2; }
.letter-paper {
  position: relative; display: block; padding: 0; border: 0; background: transparent; cursor: zoom-in;
  max-width: 400px; width: 100%; justify-self: center; transform: rotate(-2.5deg); transition: transform .45s ease;
}
.letter--flip .letter-paper { transform: rotate(2.5deg); }
.letter-paper img { width: 100%; height: auto; border-radius: 6px; box-shadow: var(--shadow), 0 0 0 1px var(--line); background: #fff; }
.letter-paper:hover, .letter-paper:focus-visible { transform: rotate(0) scale(1.02); }
.letter-zoom {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); white-space: nowrap;
  padding: 8px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 0.9rem;
  opacity: .92; transition: opacity .3s;
}
.letter-body { display: grid; gap: 14px; justify-items: start; }
.letter-logo { display: inline-flex; background: #fff; border-radius: 10px; padding: 10px 14px; border: 1px solid var(--line); }
.letter-logo img { height: 44px; width: auto; }
.letter-body .tag { font-family: var(--f-data); font-size: var(--step--1); color: var(--accent); }
.letter-body blockquote { margin: 0; font-family: var(--f-display); font-size: var(--step-2); line-height: 1.15; letter-spacing: -0.015em; font-weight: 500; text-wrap: balance; }
.letter-excerpt { color: var(--muted); max-width: 52ch; }
.letter-sign { font-size: 0.95rem; color: var(--muted); padding-left: 14px; border-left: 2px solid var(--accent); }
.letter-sign strong { display: block; color: var(--ink); font-weight: 600; }
.link-btn { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) {
  .letter { grid-template-columns: minmax(0, 1fr); }
  .letter--flip .letter-paper { order: 0; }
  .letter-paper { max-width: 300px; }
}

/* Preview dialog */
.preview {
  width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--line);
  border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0,0,0,.5);
  overflow: hidden; flex-direction: column;
}
.preview[open] { display: flex; animation: pop .25s ease; }
.preview.is-post { width: min(560px, calc(100vw - 32px)); }
.preview::backdrop { background: rgba(8, 21, 33, 0.62); backdrop-filter: blur(3px); }
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: .6; } }
.preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 20px; border-bottom: 1px solid var(--line); }
.preview-bar p { font-family: var(--f-data); font-size: 0.8rem; color: var(--muted); letter-spacing: .04em; }
.preview-close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; display: grid; place-items: center; padding: 0; }
.preview-close svg { width: 18px; height: 18px; }
.preview-body { overflow: auto; padding: 20px; }
.preview-body > img { width: 100%; height: auto; border-radius: 6px; background: #fff; }
.preview-body .post { box-shadow: none; transform: none; border: 0; padding: 0; }
.preview-body .post-text { max-height: none; }
.preview-body .post-text::after { display: none; }
.preview-body .post-open { display: none; }

/* Jornadas: always a deep panel over a photo */
.jornadas { padding-block: 0 clamp(64px, 10vw, 128px); }
.jornadas-card {
  position: relative; overflow: hidden; border-radius: 24px; background: var(--deep); color: var(--on-deep);
  min-height: clamp(340px, 42vw, 480px); padding: clamp(28px, 5vw, 64px);
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px 40px; align-content: end; align-items: end;
}
.jornadas-card .media { position: absolute; inset: 0; border-radius: 0; background: var(--deep); }
.jornadas-card .media img { object-position: 70% 50%; opacity: .85; }
.jornadas-card .media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, color-mix(in srgb, var(--deep) 94%, transparent) 30%, color-mix(in srgb, var(--deep) 45%, transparent) 75%, color-mix(in srgb, var(--deep) 20%, transparent));
}
.jornadas-card canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .35; pointer-events: none; }
.jornadas-card > div, .jornadas-card > p { position: relative; }
.jornadas-card .eyebrow { color: var(--on-deep-accent); }
.jornadas-card h2 { font-size: var(--step-3); margin-top: 12px; max-width: 14ch; }
.jornadas-card p { color: color-mix(in srgb, var(--on-deep) 82%, transparent); font-size: var(--step-1); line-height: 1.5; }
@media (max-width: 760px) {
  .jornadas-card { grid-template-columns: minmax(0, 1fr); }
  .jornadas-card .media::after { background: linear-gradient(0deg, color-mix(in srgb, var(--deep) 95%, transparent) 45%, color-mix(in srgb, var(--deep) 40%, transparent)); }
}

/* CTA */
.cta { padding-block: clamp(72px, 12vw, 150px); border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px 56px; align-items: center; }
.cta h2 { font-size: var(--step-4); max-width: 12ch; margin-top: 16px; }
.cta h2 em { font-style: italic; color: var(--accent); }
.cta-row { margin-top: 36px; display: grid; gap: 12px; }
.cta-item {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 16px;
  padding: 18px 22px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); text-decoration: none; transition: border-color .25s, transform .25s, background-color .35s;
}
.cta-item:hover { border-color: var(--accent); transform: translateX(4px); }
.cta-item span { font-family: var(--f-data); font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.cta-item strong { font-size: 1.08rem; font-weight: 600; overflow-wrap: anywhere; }
.cta .media { aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.cta .media img { object-position: 52% 40%; }
@media (max-width: 860px) {
  .cta { grid-template-columns: minmax(0, 1fr); }
  .cta .media { aspect-ratio: 16 / 11; order: -1; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px 40px; font-size: 0.95rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-grid .footer-logo { width: 190px; height: auto; }
.footer-grid h2 { margin: 0 0 12px; line-height: inherit; text-wrap: wrap; font-family: var(--f-data); font-size: 0.75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--accent); }
.footer-base { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-grid > :first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .step-box { opacity: 1; }
  .media img { transform: none; }
  .preview[open] { animation: none; }
}

/* Floating help button (ayuda.js), on every page */
.help { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 70; display: grid; justify-items: end; gap: 12px; }
.help-fab {
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; padding: 0;
  background: #25d366; color: #fff; box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .4);
  transition: transform .25s, background-color .25s;
}
.help-fab:hover { transform: scale(1.06); }
.help-fab svg { width: 30px; height: 30px; grid-area: 1 / 1; transition: opacity .2s, transform .25s; }
.help-fab-x { opacity: 0; transform: rotate(-90deg); }
.help.open .help-fab { background: var(--ink); }
.help.open .help-fab-wa { opacity: 0; transform: rotate(90deg); }
.help.open .help-fab-x { opacity: 1; transform: none; }
.help-menu {
  width: min(330px, calc(100vw - 32px)); padding: 14px; border-radius: 18px; display: grid; gap: 8px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 30px 60px -24px rgba(8, 21, 33, .45);
  transform-origin: bottom right; animation: help-in .2s ease;
}
.help-menu[hidden] { display: none; }
@keyframes help-in { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.help-title { font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; padding: 2px 4px 4px; }
.help-opt {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); background: var(--bg); transition: border-color .2s, background-color .2s;
}
.help-opt:hover, .help-opt:focus-visible { border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 18%, var(--surface)); outline: none; }
.help-opt > span:last-child { display: grid; gap: 2px; font-size: 0.92rem; color: var(--muted); }
.help-opt strong { color: var(--ink); font-size: 0.98rem; }
.help-opt small { font-size: 0.8rem; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.help-ico { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--sky); color: var(--accent); }
.help-ico.is-wa { background: color-mix(in srgb, #25d366 16%, var(--surface)); color: #1a9f4c; }
.help-ico svg { width: 21px; height: 21px; }
@media (prefers-reduced-motion: reduce) { .help-menu { animation: none; } }

/* Fondo animado (prototipo): capa fija detrás de todo el contenido */
.fondo { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* Ajustes de la revisión de diseño (Impeccable) */
section[id], form[id], .faq-list { scroll-margin-top: 92px; }
.preview:not(.is-post) { width: min(1100px, calc(100vw - 32px)); }
@media (max-width: 760px) {
  /* Que el botón de WhatsApp no tape el final del pie */
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  /* Vista ampliada casi a pantalla completa en celular */
  .preview, .preview:not(.is-post), .preview.is-post { width: calc(100vw - 16px); max-height: calc(100dvh - 24px); }
  .preview-body { padding: 8px; }
}

/* Marca CPE: números alineados en la fuente redondeada */
.eyebrow, [class*="-n"], .row, .tbl span { font-variant-numeric: tabular-nums; }

.cta-lead { color: var(--muted); font-size: var(--step-1); margin-top: 12px; }
