/* ==========================================================================
   CRES San Francisco — estilos compartidos
   Colores tomados del logo: cian #40B3CE y rojo #ED1510. Para texto y botones
   se usan variantes más oscuras (cian profundo, rojo botón) por contraste.
   ========================================================================== */

:root {
  --ink: #0E2F3B;
  --ink-deep: #0A222C;
  --muted: #4A6470;
  --muted-strong: #33505C;
  --line: #D3E3E9;
  --line-dark: #1F4352;
  --paper: #F7FAFB;
  --white: #FFFFFF;
  --tint: #E4F4F8;
  --tint-strong: #CFE8EF;
  --cyan: #40B3CE;
  --cyan-light: #8FD3E3;
  --cyan-deep: #0B6B85;
  --red: #D6120C;
  --red-hover: #B30F0A;
  --red-brand: #ED1510;
  --on-dark: #C9DEE5;
  --on-dark-soft: #A9C6D0;
  --pending-bg: #FFF1B8;
  --pending-ink: #5B4300;

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;

  --container: 1200px;
  --gutter: 40px;
  --radius: 12px;
  --radius-sm: 6px;
}

/* ---------- Base ---------- */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

/* Íconos del sprite inline (<use href="#i-...">) */
.icon { flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

a { color: var(--cyan-deep); }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--cyan-deep);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--cyan-light); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 16px; color: var(--white); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Tipografía ---------- */

.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4rem); line-height: 1.03; letter-spacing: -0.025em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.75rem); line-height: 1.08; text-wrap: balance; }
h3 { font-size: 1.5rem; line-height: 1.15; }

.eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-deep);
}

.lead { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.25rem); line-height: 1.5; color: var(--muted); text-wrap: pretty; }

.accent { color: var(--cyan-deep); }

/* Dato pendiente de confirmar con el CRES */
.pendiente {
  background: var(--pending-bg);
  color: var(--pending-ink);
  padding: 1px 6px;
  border-radius: 3px;
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn--lg { min-height: 56px; font-size: 1.0625rem; }
.btn--sm { min-height: 48px; padding: 0 24px; }
.btn svg { flex: none; }

.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-hover); color: var(--white); }

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

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

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Encabezado ---------- */

.site-header { background: var(--white); border-bottom: 1px solid var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.brand { display: flex; align-items: center; text-decoration: none; color: var(--ink); }
.brand img { height: 60px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.site-nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { border-bottom-color: var(--cyan-deep); }
.site-nav a[aria-current] { color: var(--cyan-deep); font-weight: 600; border-bottom-color: var(--cyan-deep); }

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

/* ---------- Secciones ---------- */

.section { padding: 96px 0; }
.section--white { background: var(--white); border-top: 1px solid var(--line); }
.section--tint { background: var(--tint); }
.section--dark { background: var(--ink); color: var(--white); }
.section--tight { padding: 72px 0; }

.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 700px; margin-bottom: 48px; }
.section-head p { font-size: 1.125rem; color: var(--muted); }
.section--tint .section-head p { color: var(--muted-strong); }
.section-head--split {
  max-width: none;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
}
.section-head--split > div { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }

/* ---------- Portada ---------- */

.hero { background: var(--paper); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 56px;
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero-copy .lead { max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-visual { position: relative; max-width: 460px; width: 100%; justify-self: center; }
.hero-visual-panel {
  background: var(--tint);
  border-radius: 28px;
  padding: 44px 0;
  display: flex;
  justify-content: center;
}
.hero-visual-panel img { height: 340px; width: auto; }

.callout {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.callout-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.callout strong { font-family: var(--font-display); font-size: 1.375rem; line-height: 1.15; }
.callout small { font-size: 0.875rem; color: var(--muted); }
.hero-visual .callout {
  position: absolute;
  left: -28px;
  bottom: 28px;
  max-width: 290px;
  box-shadow: 0 12px 32px rgba(14, 47, 59, 0.12);
}

.facts { padding-bottom: 72px; }
.facts-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 24px 40px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.facts-list li { display: flex; flex-direction: column; gap: 4px; }
.facts-list span { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.facts-list strong { font-family: var(--font-display); font-size: 1.375rem; line-height: 1.2; }

/* ---------- Tarjetas de carrera ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 24px;
}

.career-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.career-card { overflow: hidden; }
.career-card-photo {
  display: block;
  width: calc(100% + 64px);
  max-width: none;
  height: auto;
  margin: -32px -32px 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.career-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.career-card .num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; line-height: 1; color: var(--cyan-light); }
.career-card h3 { font-size: 2rem; }
.career-card p { font-size: 1.0625rem; color: var(--muted); line-height: 1.5; }
.career-card .meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: auto;
}
.career-card dt { font-size: 0.8125rem; color: var(--muted); }
.career-card dd { margin-top: 2px; font-weight: 600; }

.badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--cyan-deep);
}
.badge--dark { background: var(--ink); color: var(--white); }
.badge--white { background: var(--white); }

/* ---------- Cómo ingresar ---------- */

.ingreso-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}
.panel { border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 28px; }
.panel--white { background: var(--white); }
.panel--dark { background: var(--ink); color: var(--white); }
.panel-title { display: flex; flex-direction: column; gap: 6px; }
.panel-title .eyebrow { font-size: 0.8125rem; letter-spacing: 0.08em; }
.panel--dark .eyebrow { color: var(--cyan-light); }
.panel h3 { font-size: 1.75rem; }
.panel--dark p { color: var(--on-dark); line-height: 1.55; }
.panel .btn { align-self: flex-start; }
.panel--dark .btn { margin-top: auto; }

.steps { display: flex; flex-direction: column; gap: 20px; counter-reset: paso; }
.steps li { display: flex; gap: 16px; align-items: flex-start; counter-increment: paso; }
.steps li::before {
  content: counter(paso);
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
.steps strong { display: block; font-size: 1.125rem; }
.steps span { color: var(--muted); line-height: 1.5; }

.checklist { border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.checklist ul { display: flex; flex-direction: column; gap: 8px; color: var(--muted-strong); line-height: 1.4; }
.checklist li { padding-left: 24px; position: relative; }
.checklist li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.35em;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--cyan-deep);
  border-bottom: 2px solid var(--cyan-deep);
  transform: rotate(-45deg);
}

.facts-stack { display: flex; flex-direction: column; gap: 14px; line-height: 1.45; }
.facts-stack strong { display: block; }
.facts-stack span { color: var(--on-dark); }

/* ---------- Novedades ---------- */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 24px;
}
.news-card { display: flex; flex-direction: column; gap: 16px; color: inherit; text-decoration: none; }
.news-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.news-card h3 { font-size: 1.3125rem; line-height: 1.2; text-wrap: balance; }
.news-meta { display: flex; gap: 10px; align-items: center; font-size: 0.8125rem; color: var(--muted); }
.news-meta .tag { font-weight: 600; color: var(--cyan-deep); }

/* Marcador de foto: reemplazar por <img> cuando haya fotos reales */
.ph {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  background: repeating-linear-gradient(135deg, #DCEEF3 0 12px, #E9F5F8 12px 24px);
  overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-strong);
  background: var(--white);
  padding: 3px 8px;
  border-radius: 4px;
}
.ph--wide { aspect-ratio: 4 / 3; border-radius: 16px; }
.ph--dark { background: repeating-linear-gradient(135deg, #14404F 0 14px, #1A4A5A 14px 28px); }
.ph--dark::after { color: var(--ink); background: var(--tint); }
.ph--map { background: repeating-linear-gradient(135deg, #CFE8EF 0 14px, #DCEEF3 14px 28px); }
/* Foto real en secciones (reemplaza a .ph) */
.photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.btn--block { width: 100%; }
.news-card img, .media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; }

/* ---------- Laboratorio ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  align-items: center;
}
.split-copy { display: flex; flex-direction: column; gap: 24px; }
.split-copy p { font-size: 1.125rem; line-height: 1.55; text-wrap: pretty; }
.section--dark .split-copy p { color: var(--on-dark); }
.section--dark .eyebrow { color: var(--cyan-light); }
.pills { display: flex; flex-wrap: wrap; gap: 12px; }
.pills li { padding: 10px 18px; border: 1px solid #3F6372; border-radius: 999px; font-weight: 500; }

/* ---------- Egresados ---------- */

.stats-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.stats { display: flex; flex-direction: column; gap: 32px; }
.stat { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--ink); padding-top: 16px; }
.stat strong { font-family: var(--font-display); font-size: clamp(3rem, 2rem + 3vw, 4rem); line-height: 1; letter-spacing: -0.03em; }
.stat span { color: var(--muted); font-size: 1.0625rem; }

.bars-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.bars-card h3 { font-size: 1.375rem; }
.bars { display: flex; flex-direction: column; gap: 14px; }
.bars li { display: grid; grid-template-columns: 190px minmax(0, 1fr) 44px; align-items: center; gap: 14px; font-size: 0.9375rem; }
.bars .track { display: block; height: 14px; background: var(--tint); border-radius: 3px; }
.bars .bar { display: block; height: 14px; width: var(--w); background: var(--cyan-deep); border-radius: 3px; }
.bars strong { text-align: right; }

.stat--light { border-top-color: var(--cyan-light); }
.stat--light strong { color: var(--cyan-light); }
.stat--light span { color: var(--on-dark); }

/* ---------- El CRES ---------- */

.partners { border-top: 1px solid var(--line); }
.partners li { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.partners strong { font-size: 1.1875rem; }
.partners span { color: var(--muted); }

.timeline { display: flex; flex-direction: column; gap: 32px; }
.timeline li { display: flex; gap: 24px; }
.timeline .year { flex: 0 0 72px; font-family: var(--font-display); font-weight: 700; font-size: 1.875rem; line-height: 1; color: var(--cyan-deep); }
.timeline .year--now { color: var(--red-brand); }
.timeline p { line-height: 1.55; color: var(--muted-strong); }

/* ---------- Contacto ---------- */

.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
.contact-copy { display: flex; flex-direction: column; gap: 32px; }
.contact-list { display: flex; flex-direction: column; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list svg { flex: none; margin-top: 2px; }
.contact-list strong { display: block; font-size: 1.125rem; overflow-wrap: anywhere; }
.contact-list span { color: var(--muted-strong); line-height: 1.5; }
.contact-list a { color: inherit; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-more { border-top: 1px solid #B8D6DF; padding-top: 24px; display: flex; flex-direction: column; gap: 10px; color: var(--muted-strong); line-height: 1.45; }
.contact-more strong { color: var(--ink); }
.contact-more span { overflow-wrap: anywhere; }
.contact-more a { color: inherit; }

.map { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.map iframe { width: 100%; flex: 1; min-height: 400px; border: 0; border-radius: 16px; background: var(--tint-strong); }

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

.site-footer { background: var(--ink-deep); color: var(--on-dark); }
.footer-inner { padding-top: 64px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 48px; }
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; align-items: flex-start; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 420px; flex: 1 1 320px; }
.footer-logo { height: 80px; width: auto; align-self: flex-start; }
.footer-brand p { line-height: 1.55; }
.footer-links { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--white); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--on-dark-soft);
}

/* ---------- Fichas de carrera ---------- */

.career-hero { background: var(--tint); }
.career-hero-inner { padding-top: 48px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 40px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.9375rem; color: var(--muted-strong); }
.breadcrumb a { color: var(--muted-strong); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb strong { color: var(--ink); }
.career-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: center; }
.career-hero-copy { display: flex; flex-direction: column; gap: 28px; }
.career-hero-copy h1 { font-size: clamp(2.75rem, 1.5rem + 4.6vw, 4.75rem); line-height: 1; letter-spacing: -0.03em; }
.career-hero-copy .lead { max-width: 600px; font-size: clamp(1.1rem, 1rem + 0.6vw, 1.3125rem); color: var(--muted-strong); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.career-hero-art img { height: 300px; width: auto; margin: 0 auto; }

.profile-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.profile-copy { display: flex; flex-direction: column; gap: 24px; }
.profile-copy .big { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.25rem); line-height: 1.6; color: var(--muted-strong); text-wrap: pretty; }
.profile-copy .normal { font-size: 1.125rem; line-height: 1.6; color: var(--muted); text-wrap: pretty; }

.fact-sheet { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.fact-sheet h3 { font-size: 1.375rem; }
.fact-sheet dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.fact-sheet dl > div:last-child { border-bottom: 1px solid var(--line); }
.fact-sheet dt { color: var(--muted); }
.fact-sheet dd { font-weight: 600; text-align: right; }
.fact-sheet .contact-lines { display: flex; flex-direction: column; gap: 6px; font-size: 0.9375rem; color: var(--muted-strong); line-height: 1.45; overflow-wrap: anywhere; }
.fact-sheet .contact-lines a { color: inherit; }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 16px;
}
.plan-year { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.plan-year header { display: flex; flex-direction: column; gap: 2px; }
.plan-year .y { font-family: var(--font-display); font-size: 2.25rem; font-weight: 700; line-height: 1; color: var(--cyan-deep); }
.plan-year .h { font-size: 0.875rem; color: var(--muted); }
.plan-year ul { display: flex; flex-direction: column; gap: 9px; font-size: 0.9375rem; line-height: 1.35; border-top: 1px solid var(--line); padding-top: 16px; }
.plan-year--final { background: var(--ink); color: var(--white); border-color: var(--ink); }
.plan-year--final .y { color: var(--cyan-light); }
.plan-year--final .h { color: var(--on-dark-soft); }
.plan-year--final ul { border-top-color: #3F6372; }
.plan-note { margin-top: 24px; font-size: 0.9375rem; color: var(--muted); line-height: 1.5; }

.civu { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: center; }
.civu-copy { display: flex; flex-direction: column; gap: 16px; }
.civu-copy p { font-size: 1.125rem; line-height: 1.55; color: var(--muted-strong); }
.civu-copy ul { display: flex; flex-direction: column; gap: 8px; font-size: 1.0625rem; line-height: 1.4; }
.civu-copy li { padding-left: 20px; position: relative; }
.civu-copy li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-deep); }
.civu .callout { padding: 28px; gap: 16px; }

.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.cta-band-copy { flex: 1 1 480px; display: flex; flex-direction: column; gap: 12px; }
.cta-band-copy p { font-size: 1.125rem; color: var(--muted); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.stat-row { display: flex; flex-wrap: wrap; gap: 40px; }
.stat-row .stat { border-top: 0; padding-top: 0; max-width: 200px; }
.stat-row .stat strong { font-size: 3.5rem; }
.stat-row .stat span { font-size: 0.9375rem; line-height: 1.35; }

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Menú colapsado: se activa antes que el resto del diseño porque el menú es ancho */
@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .header-inner { flex-wrap: wrap; min-height: 72px; padding-top: 8px; padding-bottom: 8px; }
  .site-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 0 20px; }
  .site-header.is-open .site-nav { display: flex; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a:not(.btn) { display: flex; align-items: center; min-height: 48px; border-bottom: 0; }
  .site-nav .btn { margin-top: 12px; }
}

@media (min-width: 1101px) {
  /* En escritorio el menú siempre se ve, aunque el botón haya quedado en estado "abierto" */
  .site-nav { display: flex !important; }
}

@media (max-width: 960px) {
  :root { --gutter: 24px; }

  .section { padding: 72px 0; }

  .hero-grid, .split, .stats-layout, .contact-grid, .profile-grid, .ingreso-grid, .civu, .career-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .hero-grid { padding-top: 40px; padding-bottom: 40px; gap: 32px; }
  .hero-visual .callout { position: static; max-width: none; margin-top: 16px; box-shadow: none; }
  .hero-visual-panel { padding: 28px 0; }
  .hero-visual-panel img { height: 220px; width: auto; }
  .career-hero-art { display: none; }
  .civu .callout { max-width: 480px; }

  .panel { padding: 28px; }
  .section-head { margin-bottom: 32px; }
}

@media (max-width: 600px) {
  :root { --gutter: 20px; }

  .section { padding: 56px 0; }
  .brand img { height: 50px; }
  .hero-actions .btn, .cta-actions .btn, .section-head--split .btn { width: 100%; }
  .panel .btn { align-self: stretch; }
  .panel { padding: 24px; }
  .career-card { padding: 24px; }
  .career-card-photo { width: calc(100% + 48px); margin: -24px -24px 0; }
  .career-card h3 { font-size: 1.75rem; }
  .facts-list { gap: 0; }
  .facts-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .bars li { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .bars .track { grid-column: 1 / -1; grid-row: 2; }
  .bars strong { grid-column: 2; grid-row: 1; }
  .bars-card { padding: 22px; }
  .timeline li { gap: 16px; }
  .timeline .year { flex-basis: 64px; font-size: 1.625rem; }
  .fact-sheet { padding: 24px; }
  .fact-sheet dl > div { flex-direction: column; gap: 2px; }
  .fact-sheet dd { text-align: left; }
  .footer-inner { padding-top: 44px; gap: 32px; }
  .footer-links { gap: 0 40px; }
  .footer-links ul { gap: 0; }
  .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .contact-list strong a { display: inline-flex; align-items: center; min-height: 44px; }
  .contact-list { gap: 12px; }

  /* Novedades en filas compactas: miniatura a la izquierda, texto a la derecha */
  .news-grid { gap: 0; }
  .news-card {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: 6px 16px;
    align-items: start;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
  }
  .news-grid .news-card:first-child { border-top: 1px solid var(--line); }
  .news-card .ph, .news-card img { grid-row: 1 / span 2; aspect-ratio: 1; border-radius: 8px; }
  .news-card .ph::after { display: none; }
  .news-card .news-meta { align-self: end; }
  .news-card h3 { font-size: 1.125rem; }
  .stat-row { gap: 24px 32px; }
}
