/* =========================================================
   Instituto Ré® — sistema visual (nov 2026)
   Referencia: AuraTherapy. Ver DESIGN.md.
   Archivo compartido por la home y las páginas internas.
   ========================================================= */

:root {
  --bg: #f4f8f6;
  --bg-band: #eaf2ee;
  --surface: #ffffff;
  --surface-soft: #f8fbf9;
  --green: #1c4245;
  --green-deep: #0f2a2b;
  --green-mid: #3f6f69;
  --green-soft: #e3eeea;
  --mint: #bfd6cf;
  --aqua: #dcebe6;
  --ink: #0f2a2b;
  --ink-muted: #46615e;
  --line: #dde8e3;
  --line-strong: #bfd6cf;
  --glass-line: #f0fdfc;
  /* acento dorado: SOLO para el camino profesional (formacion.html, diplomado.html, tarjeta "Soy profesional") */
  --gold: #c9a45e;        /* sobre fondo oscuro */
  --gold-light: #e3c483;  /* hover / etiquetas sobre oscuro */
  --gold-deep: #7d6128;   /* texto dorado sobre fondo claro (contraste AA) */

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-2xs: .72rem;   /* chips, tags, overline mobile */
  --fs-xs: .8rem;     /* notas chicas, labels de datos */
  --fs-sm: .875rem;   /* nav (14px), captions, notas */
  --fs-md: .95rem;    /* texto de tarjetas, botones */
  --fs-base: 1rem;
  --fs-lg: 1.08rem;   /* leads de sección */
  --fs-xl: 1.2rem;    /* leads destacados, citas */
  --fs-title-sm: 1.3rem;
  --fs-title: 1.45rem;
  --fs-title-lg: 1.65rem;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 36px;
  --r-pill: 999px;

  --shadow-soft: 0 1px 2px rgba(15, 42, 43, .04), 0 12px 40px -12px rgba(15, 42, 43, .10);
  --shadow-lift: 0 2px 4px rgba(15, 42, 43, .05), 0 24px 60px -20px rgba(15, 42, 43, .22);

  --section: clamp(5rem, 10vw, 8.5rem);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; color: var(--ink); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: var(--r-sm); }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--green); color: #fff; padding: .6rem 1rem; border-radius: var(--r-pill);
}
.skip-link:focus { top: 16px; }

/* ---------- type helpers ---------- */
h2, .display { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.12; letter-spacing: -.01em; }
.display-xl { font-family: var(--serif); font-size: clamp(2.2rem, 4.6vw, 3.9rem); line-height: 1.1; letter-spacing: -.015em; }
.eyebrow { font-size: var(--fs-base); font-weight: 600; letter-spacing: .005em; color: var(--green-mid); margin-bottom: 1rem; }
.meta { font-size: var(--fs-md); font-weight: 600; letter-spacing: .005em; color: var(--green-mid); margin-bottom: .7rem; }
.meta span { margin-inline: .35em; opacity: .6; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .95em 1.7em;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--sans); font-size: var(--fs-md); font-weight: 600; line-height: 1.2;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: .7em 1.25em; font-size: var(--fs-sm); }
.btn-block { width: 100%; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 10px 24px -12px rgba(15, 42, 43, .55); }
.btn-primary:hover { background: var(--green-deep); }
.btn-ghost { background: rgba(255, 255, 255, .6); color: var(--green); border-color: var(--line); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: #fff; border-color: var(--line-strong); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-light { background: #fff; color: var(--green-deep); }
.btn-light:hover { background: var(--green-soft); }
.btn-gold { background: var(--gold); color: var(--green-deep); }
.btn-gold:hover { background: var(--gold-light); }
.btn-glass { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .22); }
.btn-glass:hover { background: rgba(255, 255, 255, .18); }

.text-link { display: inline-flex; gap: .4em; font-weight: 600; font-size: var(--fs-md); color: var(--green); margin-top: auto; padding-top: 1rem; }
.text-link span { transition: transform .3s var(--ease); }
.text-link:hover span { transform: translateX(4px); }

.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.cta-row--center { justify-content: center; }

/* =========================================================
   HEADER — nav flotante tipo píldora
   ========================================================= */
/* Medidas tomadas del nav de AuraTherapy: píldora de vidrio casi
   transparente (blur 40px), borde claro de 1px, sombra verde suave,
   padding 12px, 64px entre grupos, links Inter 14/500 a 24px. */
/* logo a la izquierda (alineado con .wrap), menú centrado en su píldora */
.site-header {
  position: fixed; inset: 32px 0 auto; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-inline: max(20px, calc((100% - 1200px) / 2));
  pointer-events: none;
}
/* logo sin fondo: no toma vidrio al scrollear (pedido explícito) */
.site-header > .brand { pointer-events: auto; justify-self: start; }
/* sobre secciones oscuras (clase on-dark, la pone js/script.js) el logo pasa a claro */
.brand__seal, .brand__name, .brand__tag { transition: color .3s var(--ease), filter .3s var(--ease); }
.site-header.on-dark .brand__name { color: #fff; }
.site-header.on-dark .brand__tag { color: rgba(255, 255, 255, .72); }
.site-header.on-dark .brand__seal { filter: brightness(0) invert(1); }
.nav-pill {
  pointer-events: auto;
  position: relative;
  grid-column: 2;
  display: flex; align-items: center; gap: 64px;
  min-height: 64px;
  padding: 12px 28px;
  /* vidrio claro con cuerpo suficiente para leerse también sobre las secciones oscuras */
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-pill);
  box-shadow: 0 8px 40px rgba(28, 66, 69, .08);
}

.brand { display: flex; align-items: center; gap: 12px; }
/* sello completo del Instituto (images/sello-instituto-re.png, versión liviana de isotipo_del_instituto_r_.png) */
.brand__seal { width: 46px; height: 46px; flex: none; display: block; }
.brand__text { display: flex; flex-direction: column; gap: .3rem; white-space: nowrap; }
.brand__name {
  font-family: var(--serif); font-weight: 400; font-size: var(--fs-title-sm); line-height: 1;
  text-transform: uppercase; letter-spacing: .03em; color: var(--ink);
}
.brand__tag {
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: .62rem; line-height: 1; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-muted);
}

.nav-links { display: flex; align-items: center; gap: 24px; font-size: var(--fs-sm); font-weight: 500; }
.nav-links > a:not(.btn), .nav-trigger { position: relative; color: var(--green-deep); transition: color .25s; }
.nav-links > a:not(.btn):hover, .nav-trigger:hover { color: var(--green-mid); }
.nav-trigger { display: inline-flex; align-items: center; gap: .3rem; background: none; border: 0; padding: 0; font-weight: 500; font-size: var(--fs-sm); }
.nav-trigger__chevron { width: 9px; height: 6px; transition: transform .3s var(--ease); }
.has-mega.is-open .nav-trigger__chevron { transform: rotate(180deg); }
.nav-cta-mobile { display: none; }

/* toggle mobile: píldora con borde, en el lugar del botón de sonido de Aura */
.nav-toggle {
  display: none;
  width: 48px; height: 32px; border-radius: var(--r-pill);
  border: 1.5px solid var(--green-deep); background: transparent;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 15px; right: 15px; height: 1.5px; background: var(--green-deep);
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.nav-toggle span:first-child { top: 11px; }
.nav-toggle span:last-child { top: 17px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 14px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 14px; transform: rotate(-45deg); }

/* ---------- mega panel ---------- */
.mega-panel {
  position: absolute; left: 50%; top: calc(100% + 12px);
  width: min(920px, calc(100vw - 32px));
  transform: translate(-50%, -8px);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.has-mega.is-open .mega-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega-panel__inner {
  display: grid; grid-template-columns: 290px 1fr; gap: 10px;
  padding: 10px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift);
}
.mega-feature {
  background: var(--green-deep); color: #fff;
  border-radius: var(--r-md); padding: 1.7rem 1.5rem;
  display: flex; flex-direction: column; gap: .8rem;
  position: relative; overflow: hidden;
}
.mega-feature::before {
  content: ""; position: absolute; width: 260px; height: 260px; right: -110px; top: -120px;
  background: radial-gradient(circle, rgba(191, 214, 207, .35), transparent 70%);
}
.mega-feature h3 { font-family: var(--serif); font-size: var(--fs-title-sm); line-height: 1.25; color: #fff; }
.mega-feature p { font-size: var(--fs-sm); color: rgba(255, 255, 255, .78); line-height: 1.55; margin: 0; }
.mega-feature .btn { align-self: flex-start; margin-top: auto; }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 6px; }
.mega-item {
  display: flex; gap: .85rem; align-items: flex-start;
  padding: .9rem; border-radius: var(--r-md);
  transition: background-color .25s;
}
.mega-item:hover { background: var(--surface-soft); }
.mega-item__title { display: block; font-weight: 600; font-size: var(--fs-md); color: var(--ink); }
.mega-item__sub { display: block; font-size: var(--fs-xs); color: var(--ink-muted); line-height: 1.45; margin-top: .15rem; }

/* icon tile (shared) */
.icon-tile {
  width: 44px; height: 44px; flex: none;
  border-radius: 12px;
  background: var(--green-soft); color: var(--green);
  display: grid; place-items: center;
}
.icon-tile svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  min-height: min(100vh, 920px);
  display: grid; place-items: center;
  padding: 150px 0 110px;
  text-align: center;
}
.hero__glow { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .9; will-change: transform; }
.blob--a { width: 46vw; height: 46vw; left: -12vw; top: -10vw; background: var(--mint); animation: drift-a 22s ease-in-out infinite alternate; }
.blob--b { width: 42vw; height: 42vw; right: -10vw; top: -4vw; background: var(--aqua); animation: drift-b 26s ease-in-out infinite alternate; }
.blob--c { width: 40vw; height: 30vw; left: 30vw; bottom: -18vw; background: #e3eeea; animation: drift-a 30s ease-in-out infinite alternate-reverse; }
@keyframes drift-a { to { transform: translate(6vw, 4vw) scale(1.08); } }
@keyframes drift-b { to { transform: translate(-5vw, 6vw) scale(.94); } }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 160px;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero__overline {
  font-size: var(--fs-base); font-weight: 600; letter-spacing: .005em;
  color: var(--green-mid); margin-bottom: 1.6rem;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  line-height: 1.08; letter-spacing: -.015em;
  max-width: 19ch;
  text-wrap: balance;
}
.hero__lede { max-width: 640px; margin: 1.8rem auto 0; font-size: var(--fs-lg); color: var(--ink-muted); text-wrap: pretty; }

/* hero de persona (home): texto a la izquierda, retrato a la derecha */
.hero--person { text-align: left; }
.hero--person .hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(2.5rem, 6vw, 5rem); align-items: center;
}
.hero--person h1 { max-width: none; }
.hero--person .hero__lede { margin: 1.6rem 0 0; max-width: 38ch; font-size: var(--fs-xl); line-height: 1.55; }
.hero__photo { width: 100%; max-width: 480px; justify-self: end; }

/* mi historia: cita grande + relato */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.story__quote { margin: 0; }
.story__quote p { font-family: var(--serif); font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1.22; color: var(--ink); text-wrap: pretty; }
.story__quote cite { display: block; margin-top: 1.4rem; font-style: normal; font-size: var(--fs-sm); color: var(--green-mid); }
.story__copy > p { font-size: var(--fs-lg); }
.story__copy .facts { margin-top: 2rem; }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding-block: var(--section); position: relative; }
.band { background: var(--bg-band); }
.section-head { margin-bottom: clamp(2.8rem, 5vw, 4rem); }
.section-head p:not(.eyebrow) { color: var(--ink-muted); font-size: var(--fs-lg); }
.section-head h2 + p { margin-top: 1.2rem; max-width: 60ch; }
.section-head--center { text-align: center; max-width: 820px; margin-inline: auto; }
.section-head--center h2 { text-wrap: balance; }
.section-head--center p:not(.eyebrow) { max-width: 660px; margin: 1.3rem auto 0; }
.section-head--split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: end; }
.section-head--split h2 { max-width: 16ch; }
.section-head__aside { display: flex; flex-direction: column; gap: 1.4rem; align-items: flex-start; }

/* ---------- press band ---------- */
.press { padding-block: 2.6rem; }
.press__inner { display: flex; align-items: center; gap: 2.5rem; }
.press__label { flex: none; max-width: 170px; font-size: var(--fs-sm); font-weight: 500; color: var(--green-mid); line-height: 1.4; margin: 0; }
.press__logos { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; align-items: center; }
.press__logos img { max-height: 46px; width: auto; margin-inline: auto; filter: grayscale(1) contrast(1.1); opacity: .62; mix-blend-mode: multiply; transition: opacity .3s, filter .3s; }
.press__logos img:hover { opacity: 1; filter: none; }

/* ---------- soft cards (constructos) ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards-grid--2 { grid-template-columns: repeat(2, 1fr); }
.steps + .cards-grid { margin-top: 20px; }
.soft-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 2rem 1.9rem;
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.soft-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.soft-card .icon-tile { margin-bottom: 1.6rem; }
.soft-card__kind { font-size: var(--fs-md); font-weight: 600; letter-spacing: .005em; color: var(--green-mid); margin-bottom: .55rem; }
.soft-card h3 { font-family: var(--serif); font-weight: 600; font-size: var(--fs-title); line-height: 1.25; margin-bottom: .8rem; }
.soft-card p { color: var(--ink-muted); font-size: var(--fs-md); }
.soft-card strong { color: var(--ink); font-weight: 600; }
.verify {
  margin-top: 1.2rem; padding-top: 1rem; border-top: 1px dashed var(--line);
  font-size: var(--fs-xs) !important; line-height: 1.55;
}
.verify b { color: var(--green); font-weight: 600; }
.soft-card--cta {
  background: var(--green-soft); box-shadow: none;
  justify-content: center;
}
.soft-card--cta h3 { font-weight: 400; font-size: var(--fs-title-lg); }
.soft-card--cta .btn { align-self: flex-start; margin-top: 1.2rem; }

/* ---------- founder ---------- */
.founder { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.founder__photo {
  position: relative; margin: 0;
  border-radius: var(--r-xl); overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--green-soft);
  box-shadow: var(--shadow-soft);
}
.founder__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.founder__caption {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1rem 1rem 1.3rem;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: var(--r-md);
  font-size: var(--fs-sm); color: var(--ink-muted); line-height: 1.4;
}
.founder__caption strong { display: block; font-family: var(--serif); font-size: var(--fs-xl); font-weight: 500; color: var(--ink); }
.founder__social { display: flex; gap: .5rem; }
.founder__social a {
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; color: var(--ink);
  display: grid; place-items: center;
  box-shadow: 0 4px 14px -6px rgba(15, 42, 43, .3);
  transition: background-color .25s, color .25s;
}
.founder__social a:hover { background: var(--green); color: #fff; }
.founder__social svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.founder__copy > p { color: var(--ink-muted); }
.founder__lead { font-size: var(--fs-xl); line-height: 1.55; color: var(--ink) !important; }
.quote-card {
  margin: 1.8rem 0; padding: 1.6rem 1.7rem;
  background: var(--surface); border-radius: var(--r-md);
  box-shadow: var(--shadow-soft);
  position: relative;
}
.quote-card::before {
  content: "\201C"; position: absolute; top: -.35em; left: .55rem;
  font-family: var(--serif); font-size: 4.5rem; line-height: 1; color: var(--line-strong);
}
.quote-card p { font-family: var(--serif); font-size: var(--fs-xl); line-height: 1.45; color: var(--ink); }
.quote-card cite { display: block; margin-top: .8rem; font-style: normal; font-size: var(--fs-sm); color: var(--green-mid); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fact {
  background: var(--surface-soft); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 1rem 1.15rem;
  font-size: var(--fs-md); line-height: 1.45; color: var(--ink);
}
.fact span { display: block; font-size: var(--fs-xs); font-weight: 500; color: var(--green-mid); margin-bottom: .3rem; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.step-card {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--surface); border-radius: var(--r-lg);
  border: 1px solid var(--line);
  padding: 2rem 1.9rem 2.2rem;
  box-shadow: var(--shadow-soft);
}
/* transición de hover sin pisar el reveal escalonado (opacity/transform) */
.step-card,
.js .reveal-stagger > .step-card {
  transition: opacity 1s var(--ease), transform 1s var(--ease),
              translate .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms), calc(var(--i, 0) * 110ms), 0s, 0s, 0s;
}
/* barra de acento superior */
.step-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: var(--green);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
/* número grande de fondo */
.step-ghost {
  position: absolute; top: .6rem; right: 1.3rem; z-index: -1;
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(3.6rem, 6vw, 4.6rem); line-height: 1;
  color: var(--green-soft); opacity: .7;
  pointer-events: none; user-select: none;
  transition: color .4s var(--ease), opacity .4s var(--ease), translate .5s var(--ease);
}
.step-card__top { display: flex; align-items: center; margin-bottom: 1.7rem; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green-soft); color: var(--green);
  display: grid; place-items: center;
  font-size: var(--fs-base); font-weight: 700;
  transition: background-color .4s var(--ease), color .4s var(--ease), scale .4s var(--ease);
}
@media (hover: hover) {
  .step-card:hover { translate: 0 -6px; box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
  .step-card:hover::before { transform: scaleX(1); }
  .step-card:hover .step-num { background: var(--green); color: #fff; scale: 1.06; }
  .step-card:hover .step-ghost { color: var(--mint); opacity: 1; translate: -4px 2px; }
}
.step-card h3 { font-family: var(--serif); font-weight: 600; font-size: var(--fs-title-lg); margin-bottom: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.2rem; }
.chip { font-size: var(--fs-xs); font-weight: 500; color: var(--green); background: var(--green-soft); padding: .3em .85em; border-radius: var(--r-pill); }
.step-card p { color: var(--ink-muted); font-size: var(--fs-md); }

/* ---------- awards / media cards ---------- */
.awards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.media-card {
  background: var(--surface); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.media-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.media-card__img { aspect-ratio: 4 / 3.4; overflow: hidden; background: var(--green-soft); }
.media-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.media-card:hover .media-card__img img { transform: scale(1.04); }
.media-card__body { padding: 1.4rem 1.4rem 1.6rem; }
.media-card h3 { font-family: var(--serif); font-size: var(--fs-title-sm); line-height: 1.25; margin-bottom: .6rem; }
.media-card__body > p:last-child { font-size: var(--fs-sm); color: var(--ink-muted); line-height: 1.55; }

.events { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.events li {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  padding: 1.35rem 0; border-bottom: 1px solid var(--line);
}
.events__name { font-family: var(--serif); font-size: var(--fs-xl); }
.events__meta { color: var(--ink-muted); font-size: var(--fs-md); align-self: center; }

/* ---------- sección oscura (máx. 2–3 por página, nunca dos seguidas ni justo antes del footer) ---------- */
.section--dark { background: var(--green-deep); color: rgba(255, 255, 255, .82); overflow: hidden; }
.section--dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 50% at 85% 0%, rgba(191, 214, 207, .14), transparent 70%),
    radial-gradient(ellipse 40% 45% at 0% 100%, rgba(191, 214, 207, .08), transparent 70%);
}
.section--dark .wrap { position: relative; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .eyebrow, .section--dark .meta { color: var(--mint); }
.section--dark .section-head p:not(.eyebrow) { color: rgba(255, 255, 255, .72); }
.section--dark .media-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: none;
}
.section--dark .media-card:hover { background: rgba(255, 255, 255, .08); box-shadow: 0 24px 60px -24px rgba(15, 42, 43, .9); }
.section--dark .media-card__img { background: rgba(255, 255, 255, .06); }
.section--dark .media-card__body > p:last-child { color: rgba(255, 255, 255, .68); }
.section--dark .events { border-top-color: rgba(255, 255, 255, .14); }
.section--dark .events li { border-bottom-color: rgba(255, 255, 255, .14); }
.section--dark .events__name { color: #fff; }
.section--dark .events__meta { color: rgba(255, 255, 255, .68); }
.section--dark .text-link { color: var(--mint); }
.section--dark a.events__name { color: #fff; text-decoration: none; }
.section--dark a.events__name:hover { text-decoration: underline; text-underline-offset: .2em; }
.events--stack li { grid-template-columns: 1fr; gap: .35rem; }
.events--stack .events__name { font-size: var(--fs-lg); line-height: 1.35; }

/* ---------- dos caminos (home) ---------- */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.path {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.8rem, 3.5vw, 2.8rem); box-shadow: var(--shadow-soft);
}
.path--pro { background: var(--bg-band); box-shadow: none; }
.path__kind { font-size: var(--fs-md); font-weight: 600; color: var(--green-mid); margin-bottom: .8rem; }
.path h3 { font-family: var(--serif); font-size: var(--fs-title-lg); line-height: 1.25; margin-bottom: .9rem; text-wrap: balance; }
.path > p:not(.path__kind) { color: var(--ink-muted); }
.path__list { margin: 1.6rem 0 2rem; border-top: 1px solid var(--line); }
.path__list li { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: var(--fs-md); font-weight: 500; line-height: 1.45; color: var(--ink); }
.path__list li span { display: block; font-size: var(--fs-xs); font-weight: 500; color: var(--green-mid); margin-bottom: .2rem; }
.path .btn { margin-top: auto; align-self: flex-start; }

/* ---------- intervención / bloque de dos columnas en sección oscura ---------- */
.intervention { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.intervention h2 { margin-bottom: 1.4rem; }
.intervention__lead { font-size: var(--fs-xl); line-height: 1.55; color: #fff; }
.intervention__meta {
  display: flex; flex-wrap: wrap; gap: 1.2rem 2.4rem;
  margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .14);
}
.intervention__meta li { font-size: var(--fs-md); color: #fff; }
.intervention__meta span { display: block; font-size: var(--fs-xs); color: var(--mint); margin-bottom: .15rem; }
.intervention__steps { border-top: 1px solid rgba(255, 255, 255, .14); }
.intervention__steps li {
  display: grid; grid-template-columns: 3rem 1fr; gap: 1rem;
  padding: 1.5rem 0; border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.intervention__num { font-family: var(--serif); font-size: var(--fs-title); line-height: 1.1; color: var(--mint); }
.intervention__steps h3 { font-family: var(--serif); font-size: var(--fs-title-sm); line-height: 1.3; margin-bottom: .4rem; }
.intervention__steps p { font-size: var(--fs-md); color: rgba(255, 255, 255, .7); }
.intervention__note {
  margin-top: 1.4rem; padding: 1rem 1.2rem; border-radius: var(--r-md);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  font-size: var(--fs-sm); color: rgba(255, 255, 255, .75);
}

/* ---------- ruta de formación (formacion.html) ---------- */
.courses--route { margin-top: 0; grid-template-columns: 1.3fr 1fr 1fr; }
.course { display: flex; flex-direction: column; }
.course__tag { align-self: flex-start; }
.course__meta { font-size: var(--fs-xs) !important; font-weight: 500; color: var(--green-mid) !important; margin-bottom: .7rem; }
.course--featured .course__meta { color: var(--mint) !important; }
.course strong { color: var(--ink); font-weight: 600; }
.course--featured strong { color: #fff; }
.course .text-link { font-size: var(--fs-sm); }

/* =========================================================
   CAMINO PROFESIONAL: oscuro + acento dorado
   - tarjeta "Soy profesional" de la home (.path--pro)
   - body.page-pro (formacion.html, diplomado.html)
   Los bloques de lectura larga (programa, módulos, FAQ) siguen claros.
   ========================================================= */
.path--pro { background: var(--green-deep); border-color: var(--green-deep); color: #fff; position: relative; overflow: hidden; box-shadow: 0 30px 70px -28px rgba(15, 42, 43, .55); }
.path--pro::before {
  content: ""; position: absolute; right: -30%; top: -40%; width: 80%; height: 90%; pointer-events: none;
  background: radial-gradient(circle, rgba(201, 164, 94, .16), transparent 70%);
}
.path--pro > * { position: relative; }
.path--pro .path__kind { color: var(--gold); }
.path--pro h3 { color: #fff; }
.path--pro > p:not(.path__kind) { color: rgba(255, 255, 255, .75); }
.path--pro .path__list, .path--pro .path__list li { border-color: rgba(255, 255, 255, .14); }
.path--pro .path__list li { color: #fff; }
.path--pro .path__list li span { color: var(--gold-light); }

/* hero oscuro de las páginas profesionales */
.hero--pro { background: var(--green-deep); }
.hero--pro::after { display: none; }
.hero--pro .blob { opacity: .55; }
.hero--pro .blob--a { background: var(--green); }
.hero--pro .blob--b { background: var(--green-mid); opacity: .35; }
.hero--pro .blob--c { background: var(--gold); opacity: .14; }
.hero--pro h1 { color: #fff; }
.hero--pro .hero__overline { color: var(--gold); }
.hero--pro .hero__lede { color: rgba(255, 255, 255, .78); }
.hero--pro .btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .24); }
.hero--pro .btn-ghost:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .4); }

/* acentos dorados en el resto de las páginas profesionales */
.page-pro .eyebrow,
.page-pro .tramo__label,
.page-pro .soft-card__kind { color: var(--gold-deep); }
.page-pro .section--dark .eyebrow,
.page-pro .section--dark .meta,
.page-pro .tramo--featured .tramo__label { color: var(--gold); }
.page-pro .course__tag { background: rgba(201, 164, 94, .16); color: var(--gold-deep); }
.page-pro .course--featured .course__tag { background: rgba(201, 164, 94, .18); color: var(--gold-light); }
.page-pro .course--featured .course__meta { color: var(--gold-light) !important; }
.page-pro .stat dd { color: var(--gold-deep); }
.page-pro .tramo--featured .module__num { background: rgba(201, 164, 94, .16); color: var(--gold-light); }

/* certificado (formacion.html) */
.cert { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.cert__figure { margin: 0; }
.cert__figure img {
  width: 100%; height: auto; display: block;
  border-radius: var(--r-md); background: var(--surface);
  box-shadow: var(--shadow-lift);
}
.cert__figure figcaption { margin-top: .8rem; font-size: var(--fs-xs); color: var(--ink-muted); text-align: center; }
.cert__copy h2 { font-size: clamp(2rem, 3vw, 2.6rem); text-wrap: balance; } /* escala display-plan de DESIGN.md */
.cert__copy .checklist { margin-top: 1.6rem; }
.cert__more { margin-top: clamp(3rem, 6vw, 4.5rem); }

@media (max-width: 960px) {
  .cert { grid-template-columns: 1fr; }
  .paths, .intervention { grid-template-columns: 1fr; }
  .courses--route { grid-template-columns: 1fr; }
}

/* ---------- faq layout / accordion ---------- */
.faq-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.faq-layout__head > p:not(.eyebrow) { color: var(--ink-muted); font-size: var(--fs-lg); margin-top: 1.4rem; max-width: 46ch; }
.checklist { margin-top: 2rem; display: grid; gap: .65rem; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; font-size: var(--fs-md); }
.checklist li::before {
  content: "✓"; flex: none;
  width: 22px; height: 22px; margin-top: .12em; border-radius: 50%;
  background: var(--green); color: #fff;
  display: grid; place-items: center; font-size: .65rem;
}
.accordion { position: sticky; top: 120px; }
.accordion details { border-bottom: 1px solid var(--line-strong); }
.accordion details:first-of-type { border-top: 1px solid var(--line-strong); }
.accordion summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 1.5rem; align-items: center;
  padding: 1.6rem 0;
  font-size: var(--fs-xl); font-weight: 500;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion__icon { position: relative; width: 14px; height: 14px; flex: none; }
.accordion__icon::before, .accordion__icon::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--ink);
  transition: transform .35s var(--ease);
}
.accordion__icon::after { transform: rotate(90deg); }
details[open] .accordion__icon::after { transform: rotate(0deg); }
.accordion__body { padding: 0 2.5rem 1.7rem 0; color: var(--ink-muted); }

/* ---------- plans (programas) ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 2.1rem 1.9rem 1.9rem;
  display: flex; flex-direction: column;
}
.plan__kind { font-size: var(--fs-md); font-weight: 600; letter-spacing: .005em; color: var(--green-mid); margin-bottom: 1.6rem; }
.plan__title { font-family: var(--serif); font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1.08; margin-bottom: 1.2rem; }
.plan > p:not(.plan__kind) { color: var(--ink-muted); margin-bottom: 2rem; }
.plan .btn { margin-top: auto; }
.plan--featured {
  background: var(--green-deep); border-color: var(--green-deep);
  box-shadow: 0 30px 70px -28px rgba(15, 42, 43, .55);
  position: relative; overflow: hidden;
}
.plan--featured::before {
  content: ""; position: absolute; width: 340px; height: 340px; right: -160px; top: -170px;
  background: radial-gradient(circle, rgba(191, 214, 207, .28), transparent 70%);
}
.plan--featured .plan__kind { color: rgba(255, 255, 255, .78); }
.plan--featured .plan__title { color: #fff; }
.plan--featured > p:not(.plan__kind) { color: rgba(255, 255, 255, .82); }

/* ---------- testimonios ---------- */
.section--glow { overflow: hidden; }
.section--glow::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 90vw; height: 70%; transform: translate(-50%, -40%);
  background: radial-gradient(ellipse at center, rgba(191, 214, 207, .75), transparent 65%);
  pointer-events: none;
}
.section--glow .wrap { position: relative; }
.carousel-nav { display: flex; gap: .6rem; }
.round-btn {
  width: 48px; height: 48px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  display: grid; place-items: center;
  transition: background-color .25s, color .25s, border-color .25s;
}
.round-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.round-btn:hover { border-color: var(--green); }
.round-btn--solid { background: var(--green); color: #fff; border-color: var(--green); }
.round-btn--solid:hover { background: var(--green-deep); }
.carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 4);
  gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding: 6px 2px 24px;
}
.carousel::-webkit-scrollbar { display: none; }
.review-card {
  margin: 0; scroll-snap-align: start;
  background: #fff; border-radius: var(--r-lg); padding: 10px;
  box-shadow: var(--shadow-soft);
}
.review-card img { border-radius: var(--r-md); width: 100%; height: auto; }

/* ---------- profesionales ---------- */
.pro { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.pro__lead { font-size: var(--fs-xl); line-height: 1.55; margin-top: 1.5rem; }
.pro__copy > p:not(.eyebrow):not(.pro__lead):not(.note-card) { color: var(--ink-muted); }
.note-card {
  margin-top: 1.5rem; padding: 1.1rem 1.3rem;
  background: var(--green-soft); border-radius: var(--r-md);
  font-size: var(--fs-sm); color: var(--ink-muted); line-height: 1.6;
}
.pro__photo { margin: 0; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 4.6; box-shadow: var(--shadow-soft); }
.pro__photo img { width: 100%; height: 100%; object-fit: cover; }
.courses { margin-top: clamp(3rem, 6vw, 4.5rem); display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 16px; }
.course {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 1.5rem 1.4rem;
  transition: border-color .3s, transform .3s var(--ease);
}
.course:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.course__tag { display: inline-block; font-size: var(--fs-2xs); font-weight: 500; color: var(--green); background: var(--green-soft); padding: .3em .8em; border-radius: var(--r-pill); margin-bottom: 1rem; }
.course h3 { font-family: var(--serif); font-weight: 600; font-size: var(--fs-xl); line-height: 1.3; margin-bottom: .6rem; }
.course p { font-size: var(--fs-sm); color: var(--ink-muted); line-height: 1.55; }
.course--featured {
  display: flex; flex-direction: column;
  background: var(--green-deep); border-color: var(--green-deep); color: #fff;
  padding: 1.8rem 1.7rem;
}
.course--featured:hover { border-color: var(--green-deep); }
.course--featured .course__tag { align-self: flex-start; background: rgba(255, 255, 255, .12); color: var(--mint); }
.course--featured h3 { font-size: var(--fs-title); color: #fff; }
.course--featured p { color: rgba(255, 255, 255, .8); }
.course--featured .btn { align-self: flex-start; margin-top: 1.4rem; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  position: relative; overflow: hidden;
  background: var(--green-deep); color: #fff;
  padding: clamp(5rem, 9vw, 7.5rem) 0 2rem;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.footer-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 70% 45%, rgba(191, 214, 207, .18), transparent 70%),
    radial-gradient(ellipse 45% 40% at 10% 0%, rgba(191, 214, 207, .12), transparent 70%);
}
.site-footer .wrap { position: relative; }
.footer-cta { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.footer-cta h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.18; text-wrap: balance; }
.footer-cta > div > p { color: rgba(255, 255, 255, .78); font-size: var(--fs-lg); margin-top: 1.3rem; max-width: 52ch; }
.newsletter {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-lg); padding: 1.8rem;
  backdrop-filter: blur(10px);
}
.newsletter h3 { font-family: var(--serif); font-size: var(--fs-title); color: #fff; margin-bottom: .6rem; }
.newsletter p { color: rgba(255, 255, 255, .72); font-size: var(--fs-md); }
.newsletter__form { display: flex; gap: .5rem; margin-top: 1.3rem; padding: 6px; background: rgba(255, 255, 255, .1); border-radius: var(--r-pill); }
.newsletter__form input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: #fff;
  font: inherit; font-size: var(--fs-md); padding: 0 1rem;
}
.newsletter__form input::placeholder { color: rgba(255, 255, 255, .55); }
.newsletter__form input:focus { outline: none; }
.newsletter__form:focus-within { box-shadow: 0 0 0 2px rgba(255, 255, 255, .45); }

.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  margin-top: clamp(3.5rem, 7vw, 5rem); padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.footer-col { display: flex; flex-direction: column; gap: .55rem; font-size: var(--fs-md); }
.footer-col h4 { font-family: var(--sans); font-size: var(--fs-md); font-weight: 600; letter-spacing: .005em; color: rgba(255, 255, 255, .62); margin-bottom: .4rem; }
.footer-col a, .footer-col span { color: rgba(255, 255, 255, .88); transition: color .25s; width: fit-content; }
.footer-col a:hover { color: var(--mint); }

.legal {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  font-size: var(--fs-sm); color: rgba(255, 255, 255, .7); line-height: 1.6;
  padding: 1.1rem 1.3rem; border-radius: var(--r-md);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
}
.legal strong { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  margin-top: 1.6rem; font-size: var(--fs-xs); color: rgba(255, 255, 255, .5);
}

/* ---------- whatsapp float ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--green-deep); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .7), 0 16px 34px -10px rgba(15, 42, 43, .55);
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 26px; height: 26px; }

/* =========================================================
   REVEAL (solo si JS + IntersectionObserver)
   ========================================================= */
.js .reveal, .js .reveal-stagger > * {
  opacity: 0; transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms);
}
.js .is-in.reveal, .js .is-in.reveal-stagger > * { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .nav-pill { gap: 32px; }
  .nav-links { gap: 20px; }
  .awards { grid-template-columns: repeat(2, 1fr); }
  .courses { grid-template-columns: repeat(2, 1fr); }
  .course--featured { grid-column: 1 / -1; }
  .carousel { grid-auto-columns: calc((100% - 40px) / 3); }
}

@media (max-width: 960px) {
  .site-header { inset: 14px 0 auto; }
  .site-header { display: flex; justify-content: space-between; padding-inline: 16px; }
  /* en mobile la píldora es solo el botón del menú */
  .nav-pill {
    position: static; min-height: 0; padding: 0;
    background: none; border: 0; box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .nav-cta { display: none; }
  .nav-toggle { display: block; width: 52px; height: 40px; background: rgba(255, 255, 255, .55); backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px); }
  .nav-toggle span:first-child { top: 15px; }
  .nav-toggle span:last-child { top: 21px; }
  .nav-toggle[aria-expanded="true"] span:first-child,
  .nav-toggle[aria-expanded="true"] span:last-child { top: 18px; }
  .nav-links {
    position: absolute; left: 16px; right: 16px; top: calc(100% + 10px);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .8rem 1.2rem 1.2rem;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
    box-shadow: var(--shadow-lift);
    max-height: calc(100vh - 110px); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-links > a:not(.btn), .nav-trigger { padding: .95rem .2rem; border-bottom: 1px solid var(--line); font-size: var(--fs-lg); width: 100%; justify-content: space-between; }
  .nav-cta-mobile { display: inline-flex; margin-top: 1rem; }
  .mega-panel {
    position: static; width: auto; transform: none;
    opacity: 1; visibility: visible;
    display: grid; grid-template-rows: 0fr;
    transition: grid-template-rows .45s var(--ease);
  }
  .has-mega.is-open .mega-panel { transform: none; grid-template-rows: 1fr; }
  .mega-panel__inner { grid-template-columns: 1fr; box-shadow: none; border: 0; padding: 0; min-height: 0; overflow: hidden; }
  .has-mega.is-open .mega-panel__inner { padding: .6rem 0; }
  .mega-feature { display: none; }
  .mega-grid { grid-template-columns: 1fr; padding: 0; }
  .mega-item { padding: .7rem .4rem; }

  .press__inner { flex-direction: column; gap: 1.5rem; text-align: center; }
  .press__label { max-width: none; }
  .cards-grid, .steps, .plans { grid-template-columns: 1fr 1fr; }
  .founder, .faq-layout, .pro, .footer-cta { grid-template-columns: 1fr; }
  .founder__photo { max-width: 520px; }
  .hero--person .hero__inner, .story { grid-template-columns: 1fr; }
  .hero__photo { justify-self: start; }
  .accordion { position: static; }
  .section-head--split { grid-template-columns: 1fr; gap: 1.2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .plan--featured { order: -1; grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: var(--fs-md); }
  .wrap { width: calc(100% - 32px); }
  .brand__name { font-size: var(--fs-xl); }
  .brand__seal { width: 44px; height: 44px; }
  .hero { padding: 130px 0 80px; min-height: auto; }
  .hero__overline { font-size: var(--fs-md); }
  .blob--a, .blob--b { width: 90vw; height: 90vw; }
  .cta-row .btn { flex: 1 1 100%; }
  .press__logos { grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; }
  .cards-grid, .steps, .plans, .awards, .courses, .facts { grid-template-columns: 1fr; }
  .soft-card, .step-card, .plan { padding: 1.7rem 1.4rem; }
  .carousel { grid-auto-columns: 78%; }
  .events li { grid-template-columns: 1fr; gap: .3rem; }
  .founder__caption { flex-direction: column; align-items: flex-start; }
  .story__quote p { font-size: var(--fs-title-lg); line-height: 1.3; }
  .accordion__body { padding-right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem 1rem; }
  .newsletter__form { flex-direction: column; border-radius: var(--r-md); }
  .newsletter__form input { padding: .8rem 1rem; }
  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .site-footer { border-radius: var(--r-lg) var(--r-lg) 0 0; }
}

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

/* ® en titulares grandes: más chico y elevado para no pesar */
.reg { font-size: .42em; vertical-align: .95em; line-height: 0; margin-left: .04em; font-family: var(--sans); font-weight: 400; }
.brand__name .reg { font-family: var(--serif); font-size: .7em; vertical-align: .4em; }
/* si el logo con su bajada no entra junto a la píldora, la píldora se corre a la derecha (1fr = minmax(auto,1fr)) */
.site-header { column-gap: 24px; }
@media (max-width: 420px) { .brand__tag { display: none; } }

/* =========================================================
   PÁGINA DIPLOMADO (diplomado.html)
   ========================================================= */
.hero--program h1 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); line-height: 1.1; text-wrap: balance; }
.hero--program .hero__lede { max-width: 46ch; font-size: var(--fs-lg); }

/* cifras */
.stats-band { position: relative; z-index: 1; margin-top: -40px; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 0; background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
}
.stat { padding: 1.8rem 1.6rem; display: flex; flex-direction: column-reverse; gap: .2rem; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat dd { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1; color: var(--green); }
.stat dt { font-size: var(--fs-sm); color: var(--ink-muted); }

/* tramos y módulos */
.tramos { display: grid; gap: 20px; }
.tramo {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: clamp(1.5rem, 4vw, 3.5rem);
  background: var(--surface); border-radius: var(--r-lg); padding: clamp(1.7rem, 3.5vw, 2.6rem);
  box-shadow: var(--shadow-soft);
}
.tramo__label { font-size: var(--fs-md); font-weight: 600; letter-spacing: .005em; color: var(--green-mid); margin-bottom: .6rem; }
.tramo__head h3 { font-family: var(--serif); font-size: var(--fs-title-lg); line-height: 1.2; margin-bottom: .8rem; }
.tramo__meta { font-size: var(--fs-sm); color: var(--ink-muted); }
.tramo__head { align-self: start; }
.modules { display: grid; }
.module { display: grid; grid-template-columns: 44px 1fr; gap: 1.1rem; padding: 1.15rem 0; border-top: 1px solid var(--line); }
.module:first-child { border-top: 0; padding-top: 0; }
.module:last-child { padding-bottom: 0; }
.module__num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green-soft); color: var(--green);
  display: grid; place-items: center; font-size: var(--fs-sm); font-weight: 600;
}
.module h4 { font-family: var(--serif); font-weight: 600; font-size: var(--fs-xl); line-height: 1.3; margin-bottom: .3rem; }
.module p { font-size: var(--fs-md); color: var(--ink-muted); }

.tramo--featured { background: var(--green-deep); color: #fff; position: relative; overflow: hidden; box-shadow: 0 30px 70px -28px rgba(15, 42, 43, .55); }
.tramo--featured::before {
  content: ""; position: absolute; width: 420px; height: 420px; right: -180px; top: -200px;
  background: radial-gradient(circle, rgba(191, 214, 207, .25), transparent 70%); pointer-events: none;
}
.tramo--featured > * { position: relative; }
.tramo--featured .tramo__label { color: var(--mint); }
.tramo--featured h3, .tramo--featured h4 { color: #fff; }
.tramo--featured .tramo__meta, .tramo--featured .module p { color: rgba(255, 255, 255, .78); }
.tramo--featured .module { border-color: rgba(255, 255, 255, .14); }
.tramo--featured .module__num { background: rgba(255, 255, 255, .12); color: var(--mint); }

/* modalidades */
.plans--2 { grid-template-columns: repeat(2, 1fr); max-width: 960px; margin-inline: auto; }
.plan__cert { display: flex; align-items: center; gap: .9rem; font-weight: 600; font-size: var(--fs-md); color: var(--ink) !important; }
.plan--featured .plan__cert { color: #fff !important; }
.plan--featured .plan__cert .icon-tile { background: rgba(255, 255, 255, .12); color: var(--mint); }

/* incluye / para quién */
.soft-card .checklist { margin-top: .4rem; }
.soft-card .checklist li { color: var(--ink); }
.soft-card .note-card { margin-top: 1.8rem; }

/* directora */
#directora .founder__copy h2 { margin-bottom: 1.2rem; }
#directora .facts { margin-top: 1.8rem; }

/* postulación */
.apply {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem);
  background: var(--green-deep); color: #fff;
  border-radius: var(--r-xl); padding: clamp(2rem, 5vw, 4rem);
}
.apply::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 55% 60% at 15% 10%, rgba(191, 214, 207, .18), transparent 70%);
}
.apply > * { position: relative; }
.apply__eyebrow { font-size: var(--fs-base); font-weight: 600; letter-spacing: .005em; color: var(--mint); margin-bottom: 1rem; }
.apply h2 { color: #fff; }
.apply__copy > p:not(.apply__eyebrow) { color: rgba(255, 255, 255, .8); font-size: var(--fs-lg); margin-top: 1.3rem; max-width: 44ch; }
.apply__meta { margin-top: 2rem; display: grid; gap: .6rem; }
.apply__meta li { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: .7rem 0; border-top: 1px solid rgba(255, 255, 255, .14); font-size: var(--fs-md); }
.apply__meta span { color: rgba(255, 255, 255, .6); font-size: var(--fs-sm); }
.apply__form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-content: start;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2rem);
}
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-sm); font-weight: 500; color: rgba(255, 255, 255, .82); }
.field input {
  font: inherit; font-size: var(--fs-md); color: #fff;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--r-sm); padding: .8rem 1rem; min-height: 48px;
  transition: border-color .25s, background-color .25s;
}
.field input:hover { border-color: rgba(255, 255, 255, .35); }
.field input:focus { outline: none; border-color: var(--mint); background: rgba(255, 255, 255, .12); box-shadow: 0 0 0 3px rgba(191, 214, 207, .2); }
.apply__form .btn { margin-top: .5rem; }
.apply__form :focus-visible { outline-color: var(--mint); }

[aria-current="page"] .mega-item__title { color: var(--green); }

@media (max-width: 960px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .tramo { grid-template-columns: 1fr; }
  .apply { grid-template-columns: 1fr; }
  .plans--2 .plan--featured { order: 0; grid-column: auto; }
}
@media (max-width: 640px) {
  .stats-band { margin-top: -20px; }
  .stat { padding: 1.3rem 1.2rem; }
  .plans--2 { grid-template-columns: 1fr; }
  .apply__form { grid-template-columns: 1fr; }
  .apply__meta li { grid-template-columns: 5.5rem 1fr; }
  .module { grid-template-columns: 38px 1fr; gap: .9rem; }
  .module__num { width: 38px; height: 38px; }
}
