/* ============================================================================
   BIOMEND Formación Continua — Sistema de diseño "Biomend Landing"
   Paleta teal #2C9BA5 · slate #12303B · Manrope + Source Sans 3
   ========================================================================== */

:root {
  --font-display: 'Manrope', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --radius: 16px;

  --teal: #2C9BA5;
  --teal-dark: #1E7E88;
  --teal-bright: #38B0BB;
  --slate: #12303B;
  --slate-2: #1B333F;
  --ink: #52646E;
  --ink-2: #54666F;
  --ink-3: #5C6E77;
  --muted: #7A8A92;
  --muted-2: #8A99A0;
  --placeholder: #A6B3B9;

  --mint: #E8F3F4;
  --mint-2: #EAF4F5;
  --mint-3: #F0F7F8;
  --mint-4: #F7FBFB;
  --paper: #FAFCFD;

  --line: #EDF2F3;
  --line-2: #E7EEF0;
  --line-3: #E1E9EB;
  --line-4: #CFE4E6;
  --line-5: #D8E3E5;

  --footer-bg: #0F2731;
  --wa: #25D366;
  --wa-dark: #1EB855;
  --danger: #E4573D;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: var(--teal); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--teal-dark); }
img { display: block; max-width: 100%; }
input, select, textarea, button { font-family: inherit; }
input::placeholder, textarea::placeholder { color: var(--placeholder); }
::selection { background: var(--teal); color: #fff; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.lucide, [data-lucide] { display: inline-block; vertical-align: middle; }

/* ── Animaciones ─────────────────────────────────────────────────────────── */
@keyframes bmFade { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bmFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes bmPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.85); } }
@keyframes bmMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes bmMarqueeRev { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }

[data-reveal] {
  opacity: 0;
  transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1);
  will-change: opacity, transform;
  transform: translateY(46px);
}
[data-reveal="3d"] { transform: perspective(1400px) rotateX(20deg) translateY(64px) scale(.96); transform-origin: 50% 100%; }
[data-reveal="left"] { transform: perspective(1400px) rotateY(12deg) translateX(-64px); }
[data-reveal="right"] { transform: perspective(1400px) rotateY(-12deg) translateX(64px); }
[data-reveal="zoom"] { transform: perspective(1400px) translateY(50px) scale(.9); }
[data-reveal="tilt"] { transform: perspective(1400px) rotateY(-14deg) rotateX(6deg) translateX(40px) scale(.96); }
[data-reveal].bm-in { opacity: 1; transform: perspective(1400px) rotateX(0) rotateY(0) translate(0, 0) scale(1); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover, .prog-card:hover, .contact-card:hover, .faq-item:hover,
  .benefit-chip:hover, .modality:hover, .doc:hover, .cert-opt:hover,
  .social-brand:hover, .social-link--brand:hover, .form__submit:hover, .nav__cta:hover {
    transform: none !important;
  }
  * { animation-duration: .001ms !important; }
}

/* ── Botones ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: none; border-radius: 10px; cursor: pointer;
  font: 600 16px/1 var(--font-display);
  padding: 15px 26px;
  transform-style: preserve-3d;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s ease, background .3s ease, border-color .3s ease, color .3s ease;
  text-align: center;
}
.btn .lucide, .btn [data-lucide] { width: 18px; height: 18px; }
.btn--sm { padding: 13px 24px; font-size: 15px; }

.btn--primary { background: var(--teal); color: #fff; box-shadow: 0 8px 22px -8px rgba(44, 155, 165, .6); }
.btn--primary:hover { background: var(--teal-dark); color: #fff; transform: translateY(-4px) rotateX(8deg) scale(1.03); box-shadow: 0 18px 32px -10px rgba(44, 155, 165, .55); }

.btn--outline { background: #fff; color: #2A4A57; border: 1.5px solid var(--line-5); }
.btn--outline:hover { border-color: var(--teal); color: var(--teal); background: var(--mint-4); transform: translateY(-3px) rotateX(6deg); }

.btn--wa { background: #E9F8EF; color: #178A44; border: 1.5px solid #C7EED6; }
.btn--wa:hover { background: #DCF3E5; border-color: var(--wa); color: #178A44; transform: translateY(-3px) rotateX(6deg); }

.btn--wa-solid { background: var(--wa); color: #fff; }
.btn--wa-solid:hover { background: var(--wa-dark); color: #fff; transform: translateY(-4px) rotateX(8deg) scale(1.03); }

.btn--ghost-light { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .3); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .55); color: #fff; transform: translateY(-3px) rotateX(6deg); }

.btn--soft { background: var(--mint-3); color: var(--teal-dark); border: 1px solid var(--line-4); }
.btn--soft:hover { background: var(--teal); color: #fff; border-color: var(--teal); transform: translateY(-3px) rotateX(6deg); }

.nav__cta {
  transform-style: preserve-3d;
}

.btn--block { width: 100%; }

/* ── Tipografía de sección ───────────────────────────────────────────────── */
.eyebrow {
  font: 700 13px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 16px;
}
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-title {
  margin: 0 0 16px; font: 800 clamp(28px, 3.6vw, 40px)/1.12 var(--font-display);
  letter-spacing: -.02em; color: var(--slate);
}
.section-title--lg { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }
.section-sub { margin: 0; font: 400 17px/1.7 var(--font-body); color: var(--ink-2); }

.breadcrumb {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin-bottom: 16px; font: 600 13px/1 var(--font-body);
}
.breadcrumb a { color: var(--teal); }
.breadcrumb .lucide, .breadcrumb [data-lucide] { width: 14px; height: 14px; color: #B4C4CA; }
.breadcrumb span { color: var(--muted); }

.section { padding: 104px 0; }
.section--white { background: #fff; }
.section--mint { background: var(--mint); }
.section--dark {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 18%, rgba(44, 155, 165, .18), transparent 42%),
    radial-gradient(circle at 85% 80%, rgba(95, 208, 217, .08), transparent 40%),
    linear-gradient(160deg, #12303B 0%, #0F2731 55%, #0A1F28 100%);
  color: rgba(255, 255, 255, .88);
}
.section--dark > .container,
.section--dark > .split,
.section--dark > .hero__grid {
  position: relative;
  z-index: 2;
}
.section--dark .eyebrow { color: var(--teal-bright); }
.section--dark .section-title { color: #fff; }
.section--dark .section-sub { color: rgba(255, 255, 255, .72); }
.section--dark .breadcrumb a { color: var(--teal-bright); }
.section--dark .breadcrumb span { color: rgba(255, 255, 255, .55); }
.section--dark .breadcrumb .lucide,
.section--dark .breadcrumb [data-lucide] { color: rgba(255, 255, 255, .35); }
.section--dark .stat__value { color: #fff; }
.section--dark .stat__label { color: rgba(255, 255, 255, .55); }
.section--dark .faq-item { background: #fff; }
.section--dark .carousel__dot { background: rgba(255, 255, 255, .28); }
.section--dark .carousel__dot.is-active { background: var(--teal-bright); box-shadow: 0 0 0 4px rgba(95, 208, 217, .2); }

.page-hero {
  position: relative;
  overflow: hidden;
  text-align: left;
  padding: 140px 0 80px !important;
  min-height: 340px;
  display: block;
}
.page-pad { padding-top: 140px !important; }
/* Mismo eje horizontal que nav__inner / logo */
.page-hero > .container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}
.page-hero__inner {
  display: block;
  width: 100%;
  max-width: 720px;
  margin: 0;
  padding: 0;
  text-align: left;
}
.page-hero .section-title { margin-bottom: 16px; text-align: left; }
.page-hero .section-sub { max-width: 640px; margin: 0; text-align: left; color: rgba(255, 255, 255, .72); }
.page-hero .breadcrumb { justify-content: flex-start; margin-bottom: 20px; }
.page-hero .eyebrow { text-align: left; margin-bottom: 18px; }
.content-narrow { max-width: 820px; margin-left: auto; margin-right: auto; width: 100%; }
.content-wide { max-width: 1120px; margin: 0 auto; width: 100%; }
.content-form { max-width: 860px; margin-left: auto; margin-right: auto; width: 100%; }
/* Evitar que content-* anule el centrado del .container si se combinan por error */
.container.content-narrow,
.container.content-form,
.container.content-wide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Navegación ──────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}
.nav.is-scrolled { box-shadow: 0 8px 30px -12px rgba(18, 48, 59, .18); }
.nav__inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 88px;
}
.nav__logo { display: flex; align-items: center; flex-shrink: 0; }
.nav__logo img { height: 58px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__link {
  padding: 9px 14px; font: 600 15px/1 var(--font-body); border-radius: 8px;
  transition: all .2s ease; color: #2A4A57; background: transparent;
}
.nav__link:hover { color: var(--teal); background: var(--mint-3); }
.nav__link.is-active { color: var(--teal); background: var(--mint-3); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__cta {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px;
  background: var(--teal); color: #fff; border: none; border-radius: 10px;
  font: 600 14px/1 var(--font-display); cursor: pointer;
  transform-style: preserve-3d;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s ease, background .3s ease;
  box-shadow: 0 6px 16px -8px rgba(44, 155, 165, .7);
}
.nav__cta:hover { background: var(--teal-dark); color: #fff; transform: translateY(-3px) rotateX(6deg) scale(1.03); box-shadow: 0 12px 24px -8px rgba(44, 155, 165, .55); }
.nav__menu-btn {
  display: none; width: 42px; height: 42px; align-items: center; justify-content: center;
  background: var(--mint-3); border: none; border-radius: 10px; color: #2A4A57; cursor: pointer;
}
.nav__menu-btn .lucide, .nav__menu-btn [data-lucide] { width: 20px; height: 20px; }
.nav__mobile { display: none; border-top: 1px solid var(--line); background: #fff; padding: 12px 24px 18px; }
.nav__mobile.is-open { display: block; }
.nav__mobile-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 2px; }
.nav__mobile-link { padding: 12px 14px; color: #2A4A57; font: 500 15px/1 var(--font-body); border-radius: 10px; }
.nav__mobile-link.is-active { color: var(--teal); background: var(--mint-3); }
.nav__mobile-cta {
  margin-top: 8px; padding: 13px; background: var(--teal); color: #fff; border: none; border-radius: 10px;
  font: 600 15px/1 var(--font-display); cursor: pointer; text-align: center;
}
body.nav-open { overflow: hidden; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: #fff; padding: 132px 0 84px; }
.hero > .container { position: relative; z-index: 2; }
.hero--dark {
  background:
    radial-gradient(circle at 15% 18%, rgba(44, 155, 165, .18), transparent 42%),
    radial-gradient(circle at 85% 80%, rgba(95, 208, 217, .08), transparent 40%),
    linear-gradient(160deg, #12303B 0%, #0F2731 55%, #0A1F28 100%) !important;
}
.hero--dark .hero__badge {
  background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16);
}
.hero--dark .hero__badge-text { color: rgba(255, 255, 255, .85); }
.hero--dark .hero__badge-dot { background: var(--teal-bright); }
.hero--dark .hero__title { color: #fff; }
.hero--dark .hero__title em { color: var(--teal-bright); }
.hero--dark .hero__lead { color: rgba(255, 255, 255, .78); }
.hero--dark .stat__value { color: #fff; }
.hero--dark .stat__label { color: rgba(255, 255, 255, .55); }
.hero--dark .hero__media-frame { background: rgba(44, 155, 165, .22); }
.hero__grid {
  width: 100%;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center;
}
.hero__copy { animation: bmFade .7s ease both; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px;
  background: var(--mint-3); border: 1px solid #DCEBEC; border-radius: 100px; margin-bottom: 26px;
}
.hero__badge-dot { width: 7px; height: 7px; background: var(--teal); border-radius: 50%; animation: bmPulse 2s ease infinite; }
.hero__badge-text { font: 600 12.5px/1 var(--font-body); letter-spacing: .06em; color: #2A6B72; }
.hero__title {
  margin: 0 0 22px; font: 800 clamp(36px, 4.8vw, 58px)/1.07 var(--font-display);
  letter-spacing: -.03em; color: var(--slate);
}
.hero__title em { color: var(--teal); font-style: normal; }
.hero__lead { margin: 0 0 34px; max-width: 500px; font: 400 19px/1.65 var(--font-body); color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 44px; }
.hero__stats { display: flex; gap: 34px; }
.stat__value { font: 800 30px/1 var(--font-display); color: var(--slate); }
.stat__label { margin-top: 5px; font: 500 13.5px/1.3 var(--font-body); color: var(--muted); }

.hero__media { position: relative; animation: bmFade .9s ease .15s both; }
.hero__media-frame { position: absolute; inset: 14px -14px -14px 14px; background: var(--mint-2); border-radius: 24px; }
.hero__media-img { position: relative; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -24px rgba(18, 48, 59, .35); }
.hero__media-img img { width: 100%; height: 520px; object-fit: cover; }
.hero__card {
  position: absolute; background: #fff; border-radius: 16px;
  box-shadow: 0 18px 40px -14px rgba(18, 48, 59, .28); padding: 16px 18px;
}
.hero__card--a { left: -26px; top: 44px; width: 200px; animation: bmFloat 5s ease-in-out infinite; }
.hero__card--b { right: -20px; bottom: 40px; width: 180px; animation: bmFloat 6.5s ease-in-out .8s infinite; }
.hero__card-row { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.hero__card-ico {
  width: 34px; height: 34px; background: var(--mint-2); border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.hero__card-ico .lucide, .hero__card-ico [data-lucide] { width: 17px; height: 17px; color: var(--teal); }
.hero__card-tag { font: 600 12px/1 var(--font-body); color: #5A6C75; }
.hero__card-big { font: 800 19px/1.1 var(--font-display); color: var(--teal); }
.hero__card-sub { margin-top: 4px; font: 400 12px/1.4 var(--font-body); color: var(--muted-2); }
.hero__card--b .hero__card-row .lucide, .hero__card--b .hero__card-row [data-lucide] { width: 19px; height: 19px; color: var(--teal); }
.hero__card--b .hero__card-title { font: 800 17px/1 var(--font-display); color: var(--slate); }

/* ── About (Quiénes somos / Sobre BIOMEND) ───────────────────────────────── */
.split { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1.02fr .98fr; gap: 60px; align-items: center; }
.split--media-left { grid-template-columns: .98fr 1.02fr; }
.split--media-left .split__media { order: 0; }
.split--media-left > div:last-child { order: 1; }
.split__lead { margin: 0 0 26px; font: 400 17px/1.7 var(--font-body); color: var(--ink-2); }
.split__stats { display: flex; gap: 32px; margin-bottom: 30px; }
.split__stats .stat__value { font-size: 28px; color: var(--teal); }
.split__stats .stat__label { font-size: 13px; }
.split__media { position: relative; }
.split__media-frame { position: absolute; inset: 14px -14px -14px 14px; background: var(--mint-2); border-radius: 22px; }
.split__media-img { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 28px 56px -24px rgba(18, 48, 59, .34); }
.split__media-img img { width: 100%; height: 440px; object-fit: cover; }
.about-narrow { max-width: 760px; margin: 0 auto 60px; text-align: center; }
.about-narrow p { margin: 0 0 16px; font: 400 18px/1.7 var(--font-body); color: var(--ink-2); }
.about-narrow p:last-child { margin-bottom: 0; }

/* ── Grillas ─────────────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── Tarjeta resumen de programa (home) ──────────────────────────────────── */
.prog-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line-2);
  border-radius: 18px; overflow: hidden; box-shadow: 0 1px 2px rgba(18, 48, 59, .04);
  transform-style: preserve-3d;
  transition: transform .4s cubic-bezier(.16, 1, .3, 1), box-shadow .4s ease, border-color .3s ease;
}
.prog-card:hover { transform: translateY(-8px) rotateX(4deg) rotateY(-2deg) scale(1.015); box-shadow: 0 28px 50px -22px rgba(18, 48, 59, .28); border-color: var(--line-4); }
.prog-card__media { position: relative; height: 186px; overflow: hidden; background: var(--mint-2); }
.prog-card__media img { width: 100%; height: 100%; object-fit: cover; }
.prog-card__badge {
  position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 100px; font: 700 11.5px/1 var(--font-body);
}
.prog-card__badge .lucide, .prog-card__badge [data-lucide] { width: 12px; height: 12px; }
.prog-card__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.prog-card__kicker { font: 700 11.5px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 9px; }
.prog-card__title { margin: 0 0 10px; font: 700 19px/1.3 var(--font-display); color: var(--slate-2); }
.prog-card__date { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font: 500 13.5px/1.3 var(--font-body); color: var(--ink-3); }
.prog-card__date .lucide, .prog-card__date [data-lucide] { width: 16px; height: 16px; color: var(--teal); }
.prog-card__cta { margin-top: auto; }
.prog-card__more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto;
  font: 700 14.5px/1 var(--font-display); color: var(--teal);
  transition: gap .25s ease, color .2s ease;
}
.prog-card__more .lucide, .prog-card__more [data-lucide] { width: 16px; height: 16px; }
.prog-card__more:hover { color: var(--teal-dark); gap: 12px; }

/* ── Carrusel de programas ───────────────────────────────────────────────── */
.carousel { position: relative; }
.carousel__window { overflow: hidden; border-radius: 22px; box-shadow: 0 30px 70px -34px rgba(18, 48, 59, .4); background: #fff; }
.carousel__track { display: flex; transition: transform .65s cubic-bezier(.16, 1, .3, 1); }
.carousel__slide { min-width: 100%; box-sizing: border-box; }
.prog-detail { display: grid; grid-template-columns: 0.92fr 1.08fr; }
.prog-detail__media { position: relative; min-height: 400px; overflow: hidden; background: var(--mint-2); }
.prog-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.prog-detail__badge {
  position: absolute; top: 18px; left: 18px; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 100px; font: 700 12px/1 var(--font-body);
}
.prog-detail__badge .lucide, .prog-detail__badge [data-lucide] { width: 13px; height: 13px; }
.prog-detail__body { padding: 42px 44px; }
.prog-detail__kicker { font: 700 12px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.prog-detail__title { margin: 0 0 14px; font: 800 25px/1.2 var(--font-display); letter-spacing: -.02em; color: var(--slate); }
.prog-detail__instr { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; padding: 12px 14px; background: var(--mint-2); border-radius: 12px; }
.prog-detail__instr-av { width: 40px; height: 40px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--teal); border-radius: 50%; color: #fff; font: 700 15px/1 var(--font-display); }
.prog-detail__instr-name { font: 700 14.5px/1.2 var(--font-display); color: var(--slate); }
.prog-detail__instr-role { margin-top: 2px; font: 400 12.5px/1 var(--font-body); color: var(--ink-3); }
.prog-detail__desc { margin: 0 0 20px; font: 400 15px/1.62 var(--font-body); color: var(--ink-3); }
.prog-detail__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-bottom: 20px; }
.prog-meta-item {
  display: flex; align-items: center; gap: 9px; font: 500 13.5px/1.3 var(--font-body); color: var(--ink-3);
  padding: 8px 10px; border-radius: 10px;
  transform-style: preserve-3d;
  transition: transform .3s ease, background .25s ease;
}
.prog-meta-item:hover {
  background: var(--mint-3);
  transform: translateY(-2px) rotateX(4deg);
}
.prog-meta-item .lucide, .prog-meta-item [data-lucide] { width: 17px; height: 17px; color: var(--teal); flex-shrink: 0; }
.prog-detail__learn { background: #F5F9FA; border: 1px solid #EAF2F3; border-radius: 14px; padding: 16px 18px; margin-bottom: 22px; }
.prog-detail__learn-h { font: 700 12.5px/1 var(--font-display); color: var(--slate-2); margin-bottom: 11px; }
.prog-detail__learn-list { display: flex; flex-direction: column; gap: 8px; }
.learn-item {
  display: flex; align-items: flex-start; gap: 9px; font: 400 13.5px/1.4 var(--font-body); color: var(--ink-3);
  padding: 6px 8px; border-radius: 8px;
  transform-style: preserve-3d;
  transition: transform .3s ease, background .25s ease;
}
.learn-item:hover {
  background: rgba(44, 155, 165, .08);
  transform: translateX(4px) rotateY(-4deg);
}
.learn-item .lucide, .learn-item [data-lucide] { width: 15px; height: 15px; color: var(--teal); flex-shrink: 0; margin-top: 2px; }
.prog-detail__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.carousel__arrow {
  display: none !important;
}
.carousel__dots { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 28px; }
.carousel__dot {
  height: 11px; width: 11px; border: none; border-radius: 100px; cursor: pointer; padding: 0;
  background: #B4D2D5; transition: all .35s cubic-bezier(.16, 1, .3, 1);
  box-shadow: 0 0 0 0 rgba(44, 155, 165, 0);
}
.carousel__dot:hover { background: var(--teal-bright); transform: scale(1.15); }
.carousel__dot.is-active {
  background: var(--teal); width: 34px;
  box-shadow: 0 0 0 4px rgba(44, 155, 165, .18);
}

/* ── Modalidades ─────────────────────────────────────────────────────────── */
.modality {
  display: flex; align-items: center; gap: 16px; padding: 24px; background: var(--mint-4);
  border: 1px solid var(--line-2); border-radius: var(--radius);
  transform-style: preserve-3d;
  transition: transform .4s cubic-bezier(.16, 1, .3, 1), box-shadow .4s ease, border-color .3s ease, background .3s ease;
}
.modality--on-dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.modality--on-dark .modality__title { color: #fff; }
.modality--on-dark .modality__desc { color: rgba(255, 255, 255, .65); }
.modality--on-dark .modality__ico { background: rgba(44, 155, 165, .22); }
.modality:hover {
  transform: translateY(-7px) rotateX(5deg) rotateY(-2deg) scale(1.015);
  box-shadow: 0 22px 40px -18px rgba(18, 48, 59, .28);
  border-color: var(--line-4);
}
.modality__ico { flex-shrink: 0; display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; background: var(--mint-2); border-radius: 13px; }
.modality__ico .lucide, .modality__ico [data-lucide] { width: 24px; height: 24px; color: var(--teal); }
.modality__title { margin: 0 0 4px; font: 700 18px/1.2 var(--font-display); color: var(--slate-2); }
.modality__desc { margin: 0; font: 400 14px/1.5 var(--font-body); color: var(--muted); }
.subhead { text-align: center; margin: 0 0 40px; font: 700 clamp(22px, 3vw, 30px)/1.15 var(--font-display); letter-spacing: -.02em; color: var(--slate); }

/* ── Beneficios (marquee) ────────────────────────────────────────────────── */
.marquee {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee:hover .bm-track { animation-play-state: paused; }
.bm-track { display: flex; gap: 16px; width: max-content; }
.bm-track--fwd { animation: bmMarquee 36s linear infinite; }
.bm-track--rev { animation: bmMarqueeRev 42s linear infinite; }
.benefit-chip {
  flex-shrink: 0; display: flex; align-items: center; gap: 14px; padding: 16px 24px;
  background: #fff; border: 1px solid #E1EBEC; border-radius: 100px; box-shadow: 0 10px 26px -18px rgba(18, 48, 59, .35);
  transform-style: preserve-3d;
  transition: transform .4s cubic-bezier(.16, 1, .3, 1), box-shadow .4s ease, border-color .3s ease;
}
.benefit-chip:hover {
  transform: translateY(-6px) rotateX(7deg) scale(1.03);
  box-shadow: 0 22px 36px -16px rgba(18, 48, 59, .3);
  border-color: var(--line-4);
}
.benefit-chip__ico { flex-shrink: 0; display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; background: var(--mint-2); border-radius: 50%; }
.benefit-chip__ico .lucide, .benefit-chip__ico [data-lucide] { width: 22px; height: 22px; color: var(--teal); }
.benefit-chip__title { font: 700 15.5px/1.2 var(--font-display); color: var(--slate); white-space: nowrap; }
.benefit-chip__desc { margin-top: 3px; font: 400 12.5px/1.2 var(--font-body); color: var(--muted); white-space: nowrap; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--paper); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s ease, border-color .3s ease;
}
.faq-item:hover {
  transform: translateY(-4px) rotateX(4deg);
  box-shadow: 0 16px 32px -18px rgba(18, 48, 59, .2);
  border-color: var(--line-4);
}
.faq-item__btn { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 20px 24px; background: none; border: none; cursor: pointer; text-align: left; }
.faq-item__q { font: 700 16.5px/1.4 var(--font-display); color: var(--slate-2); }
.faq-item__ico { flex-shrink: 0; display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; background: var(--mint-2); border-radius: 8px; transition: all .25s ease; }
.faq-item__ico .lucide, .faq-item__ico [data-lucide] { width: 18px; height: 18px; color: var(--teal); }
.faq-item__body { padding: 0 24px 22px; font: 400 15px/1.7 var(--font-body); color: var(--ink-3); display: none; }
.faq-item.is-open .faq-item__body { display: block; }
.faq-item.is-open .faq-item__ico { background: var(--teal); transform: rotate(180deg); }
.faq-item.is-open .faq-item__ico .lucide, .faq-item.is-open .faq-item__ico [data-lucide] { color: #fff; }

/* ── CTA slate ───────────────────────────────────────────────────────────── */
.cta-slate { position: relative; background: var(--slate); padding: 96px 24px; overflow: hidden; }
.cta-slate__glow { position: absolute; top: -140px; right: -100px; width: 440px; height: 440px; background: radial-gradient(circle, rgba(44, 155, 165, .24), transparent 68%); pointer-events: none; }
.cta-slate__inner { max-width: 820px; margin: 0 auto; text-align: center; position: relative; }
.cta-slate__title { margin: 0 0 16px; font: 800 clamp(28px, 3.6vw, 42px)/1.15 var(--font-display); letter-spacing: -.02em; color: #fff; }
.cta-slate__sub { margin: 0 0 32px; font: 400 18px/1.6 var(--font-body); color: rgba(255, 255, 255, .74); }
.cta-slate__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 13px; }
.cta-slate .btn--primary { background: var(--teal); box-shadow: 0 12px 30px -10px rgba(44, 155, 165, .7); }
.cta-slate .btn--primary:hover { background: var(--teal-bright); }

.center-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; text-align: center; margin-top: 38px; }

/* ── Inscripción ─────────────────────────────────────────────────────────── */
.enroll-selected {
  display: flex; align-items: center; gap: 14px; margin-bottom: 22px; padding: 16px 20px;
  background: #fff; border: 1px solid var(--line-4); border-left: 4px solid var(--teal);
  border-radius: 14px; box-shadow: 0 10px 30px -22px rgba(18, 48, 59, .3);
}
.enroll-selected__ico { flex-shrink: 0; display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; background: var(--mint-2); border-radius: 11px; }
.enroll-selected__ico .lucide, .enroll-selected__ico [data-lucide] { width: 22px; height: 22px; color: var(--teal); }
.enroll-selected__label { font: 700 11.5px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 5px; }
.enroll-selected__name { font: 700 16px/1.3 var(--font-display); color: var(--slate); }

.enroll-card { background: #fff; border: 1px solid var(--line-2); border-radius: 20px; box-shadow: 0 20px 50px -30px rgba(18, 48, 59, .3); overflow: hidden; }
.enroll-tabs { display: flex; border-bottom: 1px solid var(--line); padding: 8px 8px 0; gap: 4px; background: var(--paper); }
.enroll-tab { flex: 1; padding: 15px; background: transparent; border: none; border-bottom: 3px solid transparent; color: var(--muted); font: 600 15px/1 var(--font-display); cursor: pointer; border-radius: 10px 10px 0 0; transition: all .25s ease; }
.enroll-tab.is-active { background: #fff; border-bottom-color: var(--teal); color: var(--slate); }
.enroll-panel { display: none; }
.enroll-panel.is-active { display: block; }

.form { padding: 36px 40px; }
.form__section-label { font: 700 12px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 18px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 30px; }
.field { display: block; }
.field__label { display: block; font: 600 13.5px/1 var(--font-body); color: #3A4E58; margin-bottom: 8px; }
.field__label .req { color: var(--danger); }
.bm-field { width: 100%; padding: 13px 15px; border: 1.5px solid var(--line-3); border-radius: 10px; font: 400 15px/1.2 var(--font-body); color: var(--slate); background: var(--paper); transition: all .2s ease; }
.bm-field:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(44, 155, 165, .15); }

.form__note { margin: 0 0 16px; font: 400 13.5px/1.5 var(--font-body); color: var(--muted-2); }
.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 30px; }
.doc {
  display: block; cursor: pointer; padding: 20px 18px; background: var(--paper);
  border: 1.5px dashed #DCE7E9; border-radius: 14px; text-align: center;
  transform-style: preserve-3d;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), border-color .25s ease, background .25s ease, box-shadow .35s ease;
}
.doc:hover {
  border-color: var(--teal); background: var(--mint-4);
  transform: translateY(-5px) rotateX(5deg);
  box-shadow: 0 16px 28px -16px rgba(18, 48, 59, .18);
}
.doc.is-filled { background: #F0FAF3; border-color: #9FD9B4; }
.doc__ico { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; background: var(--mint-2); border-radius: 11px; margin-bottom: 12px; }
.doc__ico .lucide, .doc__ico [data-lucide] { width: 21px; height: 21px; color: var(--teal); }
.doc.is-filled .doc__ico { background: #DCF3E5; }
.doc.is-filled .doc__ico .lucide, .doc.is-filled .doc__ico [data-lucide] { color: #178A44; }
.doc__label { font: 600 14px/1.25 var(--font-display); color: var(--slate-2); margin-bottom: 5px; }
.doc__label .req { color: var(--danger); }
.doc__hint { font: 600 12.5px/1.3 var(--font-body); color: var(--placeholder); word-break: break-word; }
.doc.is-filled .doc__hint { color: #178A44; }
.doc input[type="file"] { display: none; }

.cert-q { font: 600 14.5px/1 var(--font-body); color: #3A4E58; margin-bottom: 14px; }
.cert-q .req { color: var(--danger); }
.cert-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.cert-opt {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--paper);
  border: 1.5px solid var(--line-3); border-radius: 12px; cursor: pointer;
  transform-style: preserve-3d;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), border-color .2s ease, background .2s ease, box-shadow .3s ease;
}
.cert-opt:hover {
  border-color: var(--line-4); background: var(--mint-4);
  transform: translateY(-3px) rotateX(4deg);
  box-shadow: 0 12px 22px -14px rgba(18, 48, 59, .16);
}
.cert-opt input { width: 18px; height: 18px; accent-color: var(--teal); cursor: pointer; }
.cert-opt span { font: 500 14.5px/1.3 var(--font-body); color: #3A4E58; }

.access-box { background: var(--mint-2); border: 1px solid var(--line-4); border-radius: 14px; padding: 18px 20px; margin-bottom: 30px; }
.access-box--locked {
  position: relative; overflow: hidden; user-select: none;
  border-style: dashed; background: #F3F7F8;
}
.access-box__blur {
  filter: blur(3.5px); opacity: .45; pointer-events: none;
}
.access-box__overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  text-align: center; padding: 20px;
  background: linear-gradient(180deg, rgba(247, 251, 251, .55), rgba(234, 244, 245, .72));
}
.access-box__overlay .lucide,
.access-box__overlay [data-lucide] { width: 28px; height: 28px; color: var(--teal); }
.access-box__overlay strong {
  font: 800 16px/1.2 var(--font-display); color: var(--slate);
}
.access-box__overlay span {
  font: 500 13.5px/1.4 var(--font-body); color: var(--ink-3); max-width: 280px;
}
.doc-grid--2 { grid-template-columns: repeat(2, 1fr) !important; }
.access-row { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.access-row input { flex: 1; padding: 12px 14px; border: 1.5px solid #D4E5E7; border-radius: 10px; font: 500 14px/1.2 var(--font-body); color: var(--ink-3); background: #fff; min-width: 0; }
.access-copy { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; padding: 12px 18px; background: var(--teal); color: #fff; border: none; border-radius: 10px; font: 600 14px/1 var(--font-display); cursor: pointer; transition: all .25s ease; }
.access-copy:hover { background: var(--teal-dark); }
.access-copy .lucide, .access-copy [data-lucide] { width: 16px; height: 16px; }
.access-note { display: flex; align-items: flex-start; gap: 9px; padding: 11px 13px; background: #fff; border-radius: 10px; margin-bottom: 10px; }
.access-note .lucide, .access-note [data-lucide] { width: 16px; height: 16px; color: var(--teal); flex-shrink: 0; margin-top: 1px; }
.access-note span { font: 400 13px/1.5 var(--font-body); color: var(--ink-3); }
.access-warn { display: flex; align-items: flex-start; gap: 9px; }
.access-warn .lucide, .access-warn [data-lucide] { width: 15px; height: 15px; color: #C68A2E; flex-shrink: 0; margin-top: 2px; }
.access-warn span { font: 500 13px/1.5 var(--font-body); color: #9A7A3E; }

.consents { display: flex; flex-direction: column; gap: 13px; margin-bottom: 28px; }
.consent { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--teal); flex-shrink: 0; cursor: pointer; }
.consent span { font: 400 14px/1.5 var(--font-body); color: var(--ink-2); }
.consent .req { color: var(--danger); }

.form__submit {
  display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; padding: 16px;
  background: var(--teal); color: #fff; border: none; border-radius: 12px;
  font: 700 16px/1 var(--font-display); cursor: pointer;
  transform-style: preserve-3d;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s ease, background .3s ease;
  box-shadow: 0 12px 28px -10px rgba(44, 155, 165, .65);
}
.form__submit:hover {
  background: var(--teal-dark);
  transform: translateY(-4px) rotateX(7deg) scale(1.01);
  box-shadow: 0 18px 34px -12px rgba(44, 155, 165, .5);
}
.form__submit .lucide, .form__submit [data-lucide] { width: 18px; height: 18px; }

.login-pane { padding: 44px 40px; }
.login-pane__inner { max-width: 400px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.login-pane__note { margin: 4px 0 0; text-align: center; font: 400 13px/1.5 var(--font-body); color: var(--muted-2); }

.enroll-success { padding: 56px 40px; text-align: center; }
.enroll-success__ico { display: inline-flex; width: 72px; height: 72px; align-items: center; justify-content: center; background: #E9F8EF; border-radius: 50%; margin-bottom: 22px; }
.enroll-success__ico .lucide, .enroll-success__ico [data-lucide] { width: 34px; height: 34px; color: #178A44; }
.enroll-success__title { margin: 0 0 12px; font: 800 26px/1.2 var(--font-display); color: var(--slate); }
.enroll-success__text { margin: 0 auto 26px; max-width: 460px; font: 400 16px/1.65 var(--font-body); color: var(--ink-2); }

/* ── Contacto ────────────────────────────────────────────────────────────── */
.contact-card {
  display: block; padding: 28px 24px; background: #fff; border: 1px solid var(--line-2);
  border-radius: var(--radius); text-align: center;
  transform-style: preserve-3d;
  transition: transform .4s cubic-bezier(.16, 1, .3, 1), box-shadow .4s ease, border-color .3s ease;
}
.contact-card:hover {
  transform: translateY(-8px) rotateX(6deg) rotateY(-2deg) scale(1.02);
  box-shadow: 0 24px 44px -20px rgba(18, 48, 59, .24);
  border-color: var(--line-4);
}
.contact-card__ico { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; background: var(--mint-2); border-radius: 14px; margin-bottom: 16px; }
.contact-card__ico .lucide, .contact-card__ico [data-lucide] { width: 24px; height: 24px; color: var(--teal); }
.contact-card__title { font: 700 15.5px/1.2 var(--font-display); color: var(--slate-2); margin-bottom: 5px; }
.contact-card__value { font: 500 14px/1.4 var(--font-body); color: #6B7C84; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.social-link { display: inline-flex; align-items: center; gap: 9px; padding: 15px 28px; background: #fff; color: #2A4A57; border: 1.5px solid var(--line-5); border-radius: 11px; font: 600 15.5px/1 var(--font-display); transition: all .3s ease; }
.social-link:hover { border-color: var(--teal); color: var(--teal); }
.social-link svg { width: 19px; height: 19px; }

/* ── Footer (mismo fondo oscuro que section--dark) ───────────────────────── */
.footer.section--dark,
.footer {
  position: relative;
  overflow: hidden;
  padding: 72px 0 32px;
  background:
    radial-gradient(circle at 15% 18%, rgba(44, 155, 165, .18), transparent 42%),
    radial-gradient(circle at 85% 80%, rgba(95, 208, 217, .08), transparent 40%),
    linear-gradient(160deg, #12303B 0%, #0F2731 55%, #0A1F28 100%);
}
.footer > .container { position: relative; z-index: 2; }
.footer__inner { /* alias sobre .container — no anular padding/max-width */ }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 44px; padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer__logo { height: 52px; width: auto; margin-bottom: 18px; display: block; background: transparent; }
.footer__brand-name { margin: 0 0 8px; font: 700 15px/1.4 var(--font-display); color: #fff; }
.footer__brand-text { margin: 0; max-width: 320px; font: 400 14.5px/1.65 var(--font-body); color: rgba(255, 255, 255, .6); }
.footer__title { font: 700 15px/1 var(--font-display); color: #fff; margin-bottom: 18px; }
.footer__links { display: flex; flex-direction: column; gap: 11px; }
.footer__links a { font: 400 14.5px/1 var(--font-body); color: rgba(255, 255, 255, .66); }
.footer__links a:hover { color: #fff; }
.footer__contact { display: flex; flex-direction: column; gap: 13px; }
.footer__contact-row { display: flex; gap: 11px; align-items: flex-start; }
.footer__contact-row .lucide, .footer__contact-row [data-lucide] { width: 17px; height: 17px; color: rgba(255, 255, 255, .6); margin-top: 2px; flex-shrink: 0; }
.footer__contact-row div, .footer__contact-row a { font: 400 14px/1.5 var(--font-body); color: rgba(255, 255, 255, .72); }
.footer__contact-row a:hover { color: #fff; }
.footer__social { display: flex; gap: 12px; margin-top: 8px; }
.footer__social a.social-brand {
  width: 42px; height: 42px;
}
.footer__bottom { padding-top: 26px; text-align: center; }
.footer__bottom span { font: 400 13.5px/1 var(--font-body); color: rgba(255, 255, 255, .5); }

/* Iconos redes: silueta realista + color institucional (sin glow) */
.social-brand {
  width: 42px; height: 42px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(44, 155, 165, .16);
  border: 1px solid rgba(44, 155, 165, .35);
  color: var(--teal-bright) !important;
  box-shadow: none !important;
  transform-style: preserve-3d;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), background .25s ease, border-color .25s ease, color .25s ease;
}
.social-brand svg { width: 20px; height: 20px; display: block; }
.social-brand:hover {
  transform: translateY(-4px) rotateX(8deg) scale(1.06);
  background: rgba(44, 155, 165, .28);
  border-color: var(--teal);
  color: #fff !important;
  box-shadow: none !important;
}

.social-link--brand {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 11px; font: 600 15px/1 var(--font-display);
  background: rgba(44, 155, 165, .14);
  border: 1.5px solid rgba(44, 155, 165, .4);
  color: var(--teal-bright) !important;
  box-shadow: none !important;
  transform-style: preserve-3d;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), background .25s ease, border-color .25s ease, color .25s ease;
}
.social-link--brand svg { width: 18px; height: 18px; }
.social-link--brand:hover {
  transform: translateY(-3px) rotateX(6deg);
  background: rgba(44, 155, 165, .28);
  border-color: var(--teal);
  color: #fff !important;
  box-shadow: none !important;
}

/* Footer continuo con la última sección oscura */
main > .section--dark:last-child,
.section--merge-footer {
  margin-bottom: 0;
}
body:has(main > .section--dark:last-child) .footer.section--dark,
body:has(.section--merge-footer) .footer.section--dark {
  margin-top: 0;
  border-top: none;
  box-shadow: none;
}

/*
  Contacto / Inscripción: última sección oscura + footer = UN solo espacio
  (mismo gradiente + iconos flotantes extendidos detrás del footer)
*/
body.page-contacto main,
body.page-inscripcion main {
  margin-bottom: 0;
  padding-bottom: 0;
  overflow: visible;
}
body.page-contacto main > .section--merge-footer.section--dark,
body.page-contacto main > .section--dark:last-child,
body.page-inscripcion main > .section--merge-footer.section--dark,
body.page-inscripcion main > .section--dark:last-child {
  background:
    radial-gradient(circle at 15% 18%, rgba(44, 155, 165, .18), transparent 42%),
    radial-gradient(circle at 85% 80%, rgba(95, 208, 217, .08), transparent 40%),
    linear-gradient(160deg, #12303B 0%, #0F2731 55%, #0A1F28 100%) !important;
  padding-bottom: clamp(420px, 58vw, 560px);
  margin-bottom: calc(-1 * clamp(420px, 58vw, 560px));
  border: none;
  box-shadow: none;
}
body.page-contacto main > .section--merge-footer .center-cta,
body.page-inscripcion main > .section--merge-footer .center-cta {
  margin-bottom: 0;
  padding-bottom: 8px;
}
body.page-contacto .footer.section--dark,
body.page-contacto .footer,
body.page-inscripcion .footer.section--dark,
body.page-inscripcion .footer {
  background: transparent !important;
  margin-top: 0 !important;
  padding-top: 110px !important;
  border: none !important;
  box-shadow: none !important;
  position: relative;
  z-index: 5;
}
body.page-contacto .footer .dark-floaters,
body.page-inscripcion .footer .dark-floaters {
  display: none !important;
}

/* Otras páginas: footer comparte el mismo gradiente al unirse */
body:has(main > .section--dark:last-child):not(.page-contacto):not(.page-inscripcion) .footer.section--dark {
  background:
    radial-gradient(circle at 15% 18%, rgba(44, 155, 165, .18), transparent 42%),
    radial-gradient(circle at 85% 80%, rgba(95, 208, 217, .08), transparent 40%),
    linear-gradient(160deg, #12303B 0%, #0F2731 55%, #0A1F28 100%);
  padding-top: 20px;
}
body:has(main > .section--dark:last-child):not(.page-contacto):not(.page-inscripcion) .footer .dark-floaters {
  display: none;
}

/* Figuras animadas en fondos oscuros */
.dark-floaters {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden;
}
.dark-floater {
  position: absolute; color: rgba(95, 208, 217, .18);
  animation: floaterDrift linear infinite;
}
.dark-floater svg { width: 100%; height: 100%; display: block; }
.dark-floater--1 { width: 54px; height: 54px; top: 12%; left: 5%; animation-duration: 18s; }
.dark-floater--2 { width: 42px; height: 42px; top: 26%; right: 9%; animation-duration: 22s; animation-delay: -4s; }
.dark-floater--3 { width: 64px; height: 64px; bottom: 16%; left: 11%; animation-duration: 26s; animation-delay: -8s; }
.dark-floater--4 { width: 48px; height: 48px; bottom: 20%; right: 7%; animation-duration: 20s; animation-delay: -2s; }
.dark-floater--5 { width: 36px; height: 36px; top: 52%; left: 44%; animation-duration: 24s; animation-delay: -11s; }
@keyframes floaterDrift {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: .32; }
  25%  { transform: translate(18px, -28px) rotate(25deg); opacity: .55; }
  50%  { transform: translate(-12px, -46px) rotate(80deg); opacity: .28; }
  75%  { transform: translate(-24px, -16px) rotate(140deg); opacity: .48; }
  100% { transform: translate(0, 0) rotate(360deg); opacity: .32; }
}

/* Reveal distinto por pestaña */
.page-inicio [data-reveal] { transform: translateY(48px); }
.page-nosotros [data-reveal] { transform: translateX(-56px); }
.page-nosotros [data-reveal="right"] { transform: translateX(56px); }
.page-programas [data-reveal] { transform: scale(.9) translateY(36px); }
.page-faq [data-reveal] { transform: perspective(1000px) rotateX(12deg) translateY(40px); transform-origin: 50% 100%; }
.page-contacto [data-reveal] { transform: translateX(48px) scale(.96); }
.page-inscripcion [data-reveal] { transform: translateY(60px) scale(.94); }
.page-inicio [data-reveal].bm-in,
.page-nosotros [data-reveal].bm-in,
.page-programas [data-reveal].bm-in,
.page-faq [data-reveal].bm-in,
.page-contacto [data-reveal].bm-in,
.page-inscripcion [data-reveal].bm-in {
  opacity: 1;
  transform: none;
}

.section-head--left {
  max-width: 640px; margin: 0 0 48px; text-align: left;
}
.section-head--left .section-sub { margin-left: 0; text-align: left; }
.cta-actions--left {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-start; margin-top: 8px;
}

/* ── WhatsApp flotante ───────────────────────────────────────────────────── */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 70; width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center; background: var(--wa);
  border-radius: 50%; box-shadow: 0 10px 26px -8px rgba(37, 211, 102, .6); color: #fff; transition: transform .25s ease;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float .lucide, .wa-float [data-lucide] { width: 26px; height: 26px; }

/* ── Ritmo de secciones + tipografía justificada ─────────────────────────── */
.text-justify { text-align: justify; text-wrap: pretty; hyphens: auto; }
.text-justify-center { text-align: center; text-wrap: balance; max-width: 640px; margin-left: auto; margin-right: auto; }
.section-title--left { text-align: left !important; }
.breadcrumb--left { justify-content: flex-start; }
.prog-card__excerpt {
  margin: 0 0 14px; font: 400 14.5px/1.55 var(--font-body); color: var(--ink-3); flex: 1;
}

.about-layout {
  max-width: 1200px; margin: 0 auto; padding: 0;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.about-layout__copy p { margin: 0 0 16px; font: 400 17px/1.75 var(--font-body); color: var(--ink-2); }
.about-layout__media { position: relative; }
.about-layout__media .split__media-frame { position: absolute; inset: 14px -14px -14px 14px; background: var(--mint-2); border-radius: 22px; }
.about-layout__media .split__media-img { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 28px 56px -24px rgba(18, 48, 59, .34); }
.about-layout__media img { width: 100%; height: 460px; object-fit: cover; }

/* Galería de egresados */
.gallery {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
}
.gallery--wide { grid-template-columns: repeat(2, 1fr); }
.gallery--compact { grid-template-columns: repeat(3, 1fr); }
.gallery__item {
  margin: 0; background: #fff; border: 1px solid var(--line-2); border-radius: 18px;
  overflow: hidden; box-shadow: 0 12px 32px -22px rgba(18, 48, 59, .28);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s ease;
}
.gallery__item:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px rgba(18, 48, 59, .32); }
.gallery__item img { width: 100%; height: 260px; object-fit: cover; }
.gallery--compact .gallery__item img { height: 220px; }
.gallery__item figcaption {
  padding: 14px 16px; font: 600 13.5px/1.35 var(--font-body); color: var(--slate-2);
  background: linear-gradient(180deg, #fff, var(--mint-4));
}

.help-band {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: center;
  padding: 28px; background: var(--mint-4); border: 1px solid var(--line-2); border-radius: 22px;
}
.help-band__media { border-radius: 16px; overflow: hidden; box-shadow: 0 18px 40px -20px rgba(18, 48, 59, .3); }
.help-band__media img { width: 100%; height: 220px; object-fit: cover; }

.section--mint .faq-item { background: #fff; }
.section--mint .modality { background: #fff; }

/* Carrusel de egresados (1 foto a la vez) */
.carousel--gallery { max-width: 860px; margin: 0 auto; }
.carousel__window--gallery {
  border-radius: 22px; overflow: hidden;
  box-shadow: 0 28px 60px -28px rgba(18, 48, 59, .35); background: #fff;
}
.gallery-slide { margin: 0; }
.gallery-slide img {
  width: 100%; height: min(520px, 58vw); object-fit: cover; display: block;
}
.gallery-slide figcaption {
  padding: 18px 22px; text-align: center;
  font: 600 15px/1.4 var(--font-body); color: var(--slate-2);
  background: linear-gradient(180deg, #fff, var(--mint-4));
}

/* ── Responsive: tablet + móvil ──────────────────────────────────────────── */

/* Tablet / laptop estrecha */
@media (max-width: 1024px) {
  .nav__inner { height: 78px; }
  .nav__logo img { height: 50px; }
  .nav__link { padding: 8px 10px; font-size: 14px; }
  .section { padding: 88px 0; }
  .hero { padding: 120px 0 72px; }
  .page-hero { padding: 120px 0 64px !important; min-height: 280px; }
  .page-pad { padding-top: 120px !important; }
  .hero__media-img img { height: 420px; }
  .about-layout__media img { height: 380px; }
  .prog-detail__body { padding: 32px 28px; }
  .prog-detail__title { font-size: 22px; }
}

/* Tablet (portrait / nav apretado): menú hamburguesa + 1 columna principal */
@media (max-width: 960px) {
  .nav__links { display: none !important; }
  .nav__menu-btn { display: flex !important; }
  .nav__cta { padding: 10px 16px; font-size: 13.5px; }

  .hero__grid,
  .split,
  .about-layout,
  .help-band {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }
  .split--media-left .split__media,
  .split--media-left > div:last-child { order: unset; }
  .hero__media { max-width: 560px; margin: 0 auto; width: 100%; }
  .hero__media-img img { height: min(420px, 58vw); }
  .hero__card--a, .hero__card--b { display: none; }
  .hero__actions { gap: 10px; }
  .hero__stats { flex-wrap: wrap; gap: 22px 28px; }
  .hero__title { font-size: clamp(30px, 5.5vw, 44px); }
  .hero__lead { max-width: none; font-size: 17.5px; }

  .grid-3 { grid-template-columns: repeat(2, 1fr) !important; }
  .grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
  .prog-detail { grid-template-columns: 1fr !important; }
  .prog-detail__media { min-height: 260px !important; }
  .prog-detail__meta { grid-template-columns: 1fr 1fr; }
  .prog-detail__actions { flex-direction: column; align-items: stretch; }
  .prog-detail__actions .btn { width: 100%; justify-content: center; }

  .footer__grid { grid-template-columns: 1fr 1fr !important; gap: 36px !important; }
  .gallery--compact { grid-template-columns: repeat(2, 1fr) !important; }
  .about-layout__media img { height: 340px; }
  .split__media-img img { height: 360px; }

  .form__grid { grid-template-columns: 1fr 1fr; }
  .doc-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .doc-grid--2 { grid-template-columns: repeat(2, 1fr) !important; }

  .contact-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
  .contact-actions .btn,
  .contact-actions .social-link--brand { width: 100%; justify-content: center; }

  .center-cta {
    flex-direction: column;
    align-items: stretch;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
  .center-cta .btn { width: 100%; justify-content: center; }

  .modality { align-items: flex-start; }
  .section-head { margin-bottom: 36px; }
  .gallery-slide img { height: min(440px, 62vw); }

  /* Footer unido: menos vacío en tablet */
  body.page-contacto main > .section--merge-footer.section--dark,
  body.page-contacto main > .section--dark:last-child,
  body.page-inscripcion main > .section--merge-footer.section--dark,
  body.page-inscripcion main > .section--dark:last-child {
    padding-bottom: clamp(380px, 55vw, 500px);
    margin-bottom: calc(-1 * clamp(380px, 55vw, 500px));
  }
  body.page-contacto .footer,
  body.page-inscripcion .footer {
    padding-top: 88px !important;
  }
}

/* Tablet chica / móvil grande */
@media (max-width: 768px) {
  .container, .split, .page-hero > .container { padding-left: 20px; padding-right: 20px; }
  .nav__inner { padding-left: 20px; padding-right: 20px; height: 72px; }
  .nav__logo img { height: 44px; }

  .section { padding: 72px 0; }
  .hero { padding: 108px 0 56px; }
  .page-hero { padding: 108px 0 56px !important; min-height: 0; }
  .page-pad { padding-top: 108px !important; }

  .grid-2 { grid-template-columns: 1fr !important; }
  .form__grid { grid-template-columns: 1fr !important; }
  .prog-detail__meta { grid-template-columns: 1fr !important; }
  .form { padding: 28px 22px; }

  .footer__grid { grid-template-columns: 1fr !important; gap: 36px !important; }
  .footer__brand-text { max-width: none; }

  .text-justify { text-align: left; hyphens: none; }
  .benefit-chip { max-width: min(320px, 78vw); }
  .dark-floater--5 { display: none; }

  body.page-contacto main > .section--merge-footer.section--dark,
  body.page-contacto main > .section--dark:last-child,
  body.page-inscripcion main > .section--merge-footer.section--dark,
  body.page-inscripcion main > .section--dark:last-child {
    padding-bottom: clamp(360px, 70vw, 480px);
    margin-bottom: calc(-1 * clamp(360px, 70vw, 480px));
  }
  body.page-contacto .footer,
  body.page-inscripcion .footer {
    padding-top: 72px !important;
  }
}

/* Móvil */
@media (max-width: 640px) {
  .nav__cta { display: none !important; }
  .nav__menu-btn { display: flex !important; width: 44px; height: 44px; }
  .nav__mobile { padding: 10px 16px 16px; }
  .nav__mobile-link {
    padding: 14px 16px;
    font-size: 16px;
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  .nav__mobile-cta {
    margin-top: 10px;
    padding: 15px;
    font-size: 16px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .container, .split, .page-hero > .container { padding-left: 16px; padding-right: 16px; }
  .nav__inner { padding-left: 16px; padding-right: 16px; height: 68px; }
  .nav__logo img { height: 40px; }

  .section { padding: 64px 0; }
  .hero { padding: 96px 0 48px; }
  .page-hero { padding: 96px 0 48px !important; }
  .page-pad { padding-top: 96px !important; }
  .footer { padding: 56px 0 28px; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; gap: 16px !important; }
  .form__grid, .doc-grid, .doc-grid--2 { grid-template-columns: 1fr !important; }
  .gallery, .gallery--wide, .gallery--compact { grid-template-columns: 1fr !important; }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__stats { gap: 18px 24px; }
  .stat__value { font-size: 26px; }
  .hero__media-img img { height: min(300px, 72vw); }
  .split__media-img img { height: 280px; }
  .about-layout__media img { height: 280px; }

  .btn {
    padding: 14px 20px;
    font-size: 15.5px;
    min-height: 48px;
  }
  .section-title { font-size: clamp(24px, 7vw, 32px); }
  .section-sub { font-size: 15.5px; line-height: 1.65; }
  .page-hero__inner { max-width: none; }
  .content-narrow, .content-form { max-width: none; }

  .prog-card__body { padding: 22px 20px; }
  .prog-detail__body { padding: 24px 20px; }
  .prog-detail__actions .btn { min-height: 48px; }

  .faq-item__btn { padding: 18px 18px; gap: 12px; min-height: 56px; }
  .faq-item__q { font-size: 15.5px; }
  .faq-item__body { padding: 0 18px 18px; font-size: 14.5px; }

  .form { padding: 24px 18px !important; }
  .bm-field { padding: 14px 14px; font-size: 16px; /* evita zoom iOS */ min-height: 48px; }
  .doc { padding: 18px 14px; min-height: 120px; }
  .cert-opt { padding: 14px; min-height: 48px; }
  .form__submit { min-height: 52px; font-size: 16px; }
  .access-row { flex-direction: column !important; align-items: stretch !important; }
  .access-copy { width: 100%; justify-content: center; }

  .contact-card { padding: 22px 18px; }
  .contact-actions { max-width: none; }
  .center-cta { max-width: none; margin-top: 28px; }

  .modality { padding: 18px; gap: 14px; }
  .modality__ico { width: 44px; height: 44px; }
  .carousel__dots { gap: 10px; margin-top: 22px; }
  .gallery-slide img { height: min(320px, 70vw); }

  .wa-float {
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom, 14px));
    width: 52px;
    height: 52px;
  }

  .footer__logo { height: 44px; }
  .footer__grid { gap: 28px !important; padding-bottom: 32px; }
  .footer__bottom span { font-size: 12.5px; line-height: 1.4; display: block; padding: 0 8px; }

  body.page-contacto main > .section--merge-footer.section--dark,
  body.page-contacto main > .section--dark:last-child,
  body.page-inscripcion main > .section--merge-footer.section--dark,
  body.page-inscripcion main > .section--dark:last-child {
    padding-bottom: clamp(340px, 95vw, 460px);
    margin-bottom: calc(-1 * clamp(340px, 95vw, 460px));
  }
  body.page-contacto .footer,
  body.page-inscripcion .footer {
    padding-top: 64px !important;
  }

  /* Menos movimiento 3D en touch (más limpio) */
  .prog-card:hover,
  .contact-card:hover,
  .faq-item:hover,
  .modality:hover,
  .benefit-chip:hover {
    transform: translateY(-4px);
  }
}

/* Móvil estrecho */
@media (max-width: 400px) {
  .nav__logo img { height: 36px; }
  .hero__title { font-size: 28px; }
  .hero__actions .btn { font-size: 14.5px; padding: 13px 16px; }
  .stat__value { font-size: 22px; }
  .stat__label { font-size: 12px; }
  .dark-floater--1, .dark-floater--4 { opacity: .4; }
}

/* Landscape móvil: menos padding vertical */
@media (max-height: 480px) and (orientation: landscape) {
  .nav__inner { height: 58px; }
  .hero { padding: 78px 0 40px; }
  .page-hero { padding: 78px 0 40px !important; }
  .page-pad { padding-top: 78px !important; }
  .section { padding: 48px 0; }
}
