/* =========================================================
   IBCF — Instituto Bíblico Conquistando Fronteras
   Landing Page Styles
   ========================================================= */

/* ---------- FONTS ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/Fraunces-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/Fraunces-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/Fraunces-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/Fraunces-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/Fraunces-SemiBoldItalic.ttf") format("truetype");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/Fraunces-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/Fraunces-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("assets/fonts/Satoshi-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("assets/fonts/Satoshi-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("assets/fonts/Satoshi-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("assets/fonts/Satoshi-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- TOKENS ---------- */
:root {
  /* Neutrals */
  --pearl: #F6F4EF;
  --warm-sand: #EAE3D7;
  --soft-cream: #DDD6C8;

  /* Darks */
  --deep-navy: #0F1E2B;
  --charcoal-blue: #1C2C3A;
  --rich-black: #0B0D0F;

  /* Gold accents */
  --gold: #D4A017;
  --amber: #C68A1F;
  --gold-highlight: #E5C46A;

  /* Support */
  --cool-gray-light: #CFCBC3;
  --muted-gray: #A8A39B;

  /* Derived */
  --navy-80: rgba(15, 30, 43, 0.8);
  --navy-60: rgba(15, 30, 43, 0.6);
  --navy-40: rgba(15, 30, 43, 0.4);
  --navy-20: rgba(15, 30, 43, 0.2);
  --navy-10: rgba(15, 30, 43, 0.1);
  --navy-06: rgba(15, 30, 43, 0.06);

  --pearl-06: rgba(246, 244, 239, 0.06);
  --pearl-10: rgba(246, 244, 239, 0.1);
  --pearl-20: rgba(246, 244, 239, 0.2);
  --pearl-60: rgba(246, 244, 239, 0.6);
  --pearl-80: rgba(246, 244, 239, 0.8);

  --gold-gradient: linear-gradient(135deg, #D4A017 0%, #E5C46A 100%);
  --gold-gradient-soft: linear-gradient(135deg, rgba(212, 160, 23, 0.12) 0%, rgba(229, 196, 106, 0.18) 100%);

  /* Type */
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-sans: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --page-max: 1280px;
  --page-pad: 48px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 6px rgba(15, 30, 43, 0.04), 0 1px 2px rgba(15, 30, 43, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 30, 43, 0.06), 0 2px 6px rgba(15, 30, 43, 0.04);
  --shadow-lg: 0 20px 48px rgba(15, 30, 43, 0.1), 0 6px 16px rgba(15, 30, 43, 0.06);
  --shadow-navy: 0 24px 60px rgba(15, 30, 43, 0.18);
}

/* ---------- RESET ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--deep-navy);
  background: var(--pearl);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------- UTILS ---------- */
.wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.02;
  color: var(--deep-navy);
}
.display em {
  font-style: italic;
  font-weight: 400;
  background: var(--gold-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.display--xl { font-size: 68px; }
.display--lg { font-size: 52px; }
.display--md { font-size: 40px; }

.body-lg {
  font-size: 17px;
  line-height: 1.6;
  color: var(--navy-80);
  max-width: 52ch;
}
.body-md {
  font-size: 15px;
  line-height: 1.65;
  color: var(--navy-80);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn .arrow { transition: transform 180ms ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn--gold {
  background: var(--gold-gradient);
  color: var(--deep-navy);
  box-shadow: 0 6px 18px rgba(212, 160, 23, 0.28), inset 0 1px 0 rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}
.btn--gold::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg);
  transition: left 600ms ease;
  pointer-events: none;
}
.btn--gold:hover::before { left: 130%; }
.btn--gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(212, 160, 23, 0.36), inset 0 1px 0 rgba(255,255,255,0.4);
}

.btn--ghost-dark {
  background: transparent;
  color: var(--deep-navy);
  border: 1px solid var(--navy-20);
}
.btn--ghost-dark:hover {
  background: var(--deep-navy);
  color: var(--pearl);
  border-color: var(--deep-navy);
}

.btn--navy {
  background: var(--deep-navy);
  color: var(--pearl);
  box-shadow: 0 6px 18px rgba(15, 30, 43, 0.18);
}
.btn--navy:hover {
  transform: translateY(-1px);
  background: var(--charcoal-blue);
  box-shadow: 0 10px 26px rgba(15, 30, 43, 0.25);
}

.btn--ghost-light {
  background: transparent;
  color: var(--pearl);
  border: 1px solid var(--pearl-20);
}
.btn--ghost-light:hover {
  background: var(--pearl-10);
  border-color: var(--pearl-60);
}

.btn--solid-light {
  background: var(--pearl);
  color: var(--deep-navy);
}
.btn--solid-light:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* Placeholder image */
.ph {
  position: relative;
  background: var(--warm-sand);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(15, 30, 43, 0.05) 0 1px,
    transparent 1px 14px
  );
  border: 1px solid rgba(15, 30, 43, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  color: var(--navy-60);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ph--dark {
  background: var(--charcoal-blue);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(246, 244, 239, 0.04) 0 1px,
    transparent 1px 14px
  );
  color: var(--pearl-60);
  border-color: rgba(246, 244, 239, 0.08);
}
.ph__label {
  padding: 6px 10px;
  border: 1px solid currentColor;
  border-radius: 4px;
  opacity: 0.75;
}

/* ---------- HEADER ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 244, 239, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--navy-06);
  transition: box-shadow 300ms ease;
}
.header.scrolled { box-shadow: 0 8px 30px rgba(15, 30, 43, 0.08); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand__mark {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.brand__mark--lg {
  width: 46px;
  height: 46px;
}
.brand__stack {
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--deep-navy);
  line-height: 1;
}
.brand__tagline {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-60);
  line-height: 1.4;
  padding-left: 16px;
  border-left: 1px solid var(--navy-10);
}
.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav a {
  font-size: 14px;
  color: var(--navy-80);
  transition: color 160ms ease;
  position: relative;
  padding-bottom: 3px;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--gold-gradient);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}
.nav a:hover { color: var(--gold); }
.nav a:hover::after { transform: scaleX(1); }
.header__cta { display: flex; align-items: center; gap: 14px; }
.header__cta .link {
  font-size: 14px;
  color: var(--navy-80);
  transition: color 160ms ease;
}
.header__cta .link:hover { color: var(--deep-navy); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 64px 0 96px;
  overflow: hidden;
}
.hero--bg .wrap { position: relative; z-index: 2; }

.hero__bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 62%;
  z-index: 0;
  pointer-events: none;
}
.hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__bg-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--pearl) 0%, rgba(246,244,239,0.6) 18%, rgba(246,244,239,0) 40%),
    linear-gradient(180deg, var(--pearl) 0%, rgba(246,244,239,0) 14%, rgba(246,244,239,0) 82%, var(--pearl) 100%);
}

.hero__copy { max-width: 560px; padding-bottom: 56px; }
.hero__title { margin: 18px 0 22px; }
.hero__sub {
  margin: 0 0 24px;
  max-width: 46ch;
}
.hero__divider {
  width: 72px;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: 2px;
  margin: 6px 0 32px;
}
.hero__cta-label {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.hero__modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 640px;
}
.mode-card {
  display: flex;
  gap: 14px;
  padding: 18px 16px 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--navy-06);
  border-radius: var(--radius-md);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.mode-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-highlight);
  box-shadow: var(--shadow-lg);
  background: #FFF;
}
.mode-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mode-card:hover .mode-card__icon { transform: translateY(-2px) rotate(-3deg); }
.mode-card__icon--gold {
  background: var(--gold-gradient);
  color: var(--deep-navy);
  box-shadow: 0 4px 12px rgba(212, 160, 23, 0.28);
}
.mode-card__icon--dark {
  background: var(--deep-navy);
  color: var(--gold-highlight);
}
.mode-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.mode-card__body strong {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  color: var(--deep-navy);
  line-height: 1.3;
}
.mode-card__body p {
  margin: 0;
  font-size: 12.5px;
  color: var(--navy-60);
  line-height: 1.45;
}
.mode-card__arrow {
  margin-top: 6px;
  color: var(--gold);
  display: inline-flex;
  transition: transform 180ms ease;
}
.mode-card:hover .mode-card__arrow { transform: translateX(3px); color: var(--amber); }

/* benefits bar: straddles the hero boundary (like plan de estudios) */
.benefits-strip {
  position: relative;
  z-index: 3;
  margin-top: -64px;
  margin-bottom: 40px;
}
.benefits {
  position: relative;
  z-index: 3;
  margin-top: 0;
  background: var(--deep-navy);
  color: var(--pearl);
  border-radius: var(--radius-lg);
  padding: 26px 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-navy);
}
.benefit {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13.5px;
  color: var(--pearl-80);
}
.benefit + .benefit { border-left: 1px solid rgba(246, 244, 239, 0.08); padding-left: 32px; }
.benefit__icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--pearl-10);
  display: grid; place-items: center;
  color: var(--gold-highlight);
  flex-shrink: 0;
}
.benefit__icon--outline {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(229, 196, 106, 0.35);
}
.benefit strong {
  display: block;
  color: var(--pearl);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}

/* ---------- SECTION: PROGRAMS / COURSES ---------- */
.programs { padding: 120px 0 100px; }

/* Head */
.programs__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 52px;
}
.programs__title { margin: 18px 0 0; }
.programs__head-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 54px;
}
.programs__lead { color: var(--navy-80); margin: 0 0 18px; font-size: 15px; line-height: 1.65; }
.programs__lead-divider {
  width: 44px;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: 2px;
  margin-bottom: 22px;
}
.btn--outline-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid var(--navy-20);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--deep-navy);
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
  margin-left: auto;
  white-space: nowrap;
}
.btn--outline-pill .arrow { color: var(--gold); transition: transform 180ms ease; }
.btn--outline-pill:hover { background: var(--deep-navy); color: var(--pearl); border-color: var(--deep-navy); transform: translateY(-1px); }
.btn--outline-pill:hover .arrow { color: var(--pearl); transform: translateX(3px); }

/* Course cards grid */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.course-card {
  background: #FFF;
  border: 1px solid var(--navy-06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 55% 45%;
  min-height: 380px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212, 160, 23, 0.4);
}

.course-card__content {
  padding: 26px 22px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.course-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.course-card__icon--gold {
  background: var(--gold-gradient);
  color: var(--deep-navy);
  box-shadow: 0 4px 14px rgba(212, 160, 23, 0.28);
}
.course-card__icon--navy {
  background: var(--deep-navy);
  color: var(--gold-highlight);
}

.course-card__tag {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-gray);
  font-weight: 500;
  margin-bottom: 8px;
}

.course-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--deep-navy);
  margin: 0 0 12px;
}

.course-card__desc {
  font-size: 13.5px;
  color: var(--navy-60);
  line-height: 1.6;
  margin: 0 0 18px;
  flex: 1;
}

.course-card__divider {
  width: 36px;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: 2px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.course-card__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.course-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--navy-60);
}
.course-meta-item svg { color: var(--gold); flex-shrink: 0; }

.course-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--deep-navy);
  transition: gap 160ms ease, color 160ms ease;
  margin-top: auto;
}
.course-card:hover .course-card__link { gap: 12px; color: var(--amber); }

.course-card__media {
  position: relative;
  overflow: hidden;
}
.course-card__media .ph {
  position: absolute;
  inset: 0;
  border-radius: 0;
  border: none;
  height: 100%;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.course-card:hover .course-card__media .ph { transform: scale(1.05); }
.ph--warm {
  background: var(--warm-sand);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(15, 30, 43, 0.04) 0 1px,
    transparent 1px 14px
  );
}

/* Courses bottom bar */
.courses-bar {
  margin-top: 22px;
  background: var(--warm-sand);
  border-radius: var(--radius-lg);
  padding: 26px 32px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.courses-bar__left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.courses-bar__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--deep-navy);
  color: var(--gold-highlight);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.courses-bar__left strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--deep-navy);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.courses-bar__left p {
  margin: 0;
  font-size: 13px;
  color: var(--navy-60);
  line-height: 1.55;
}
.courses-bar__features {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: flex-end;
}
.courses-bar__feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
  border-left: 1px solid var(--navy-10);
  font-size: 12.5px;
  color: var(--navy-60);
  line-height: 1.45;
}
.courses-bar__feature:first-child { border-left: none; padding-left: 0; }
.courses-bar__feature svg { color: var(--gold); flex-shrink: 0; }

/* ---------- SECTION: PURPOSE ---------- */
.purpose {
  position: relative;
  padding: 100px 0 90px;
  background: linear-gradient(180deg, var(--pearl) 0%, #F1EDE4 100%);
  overflow: hidden;
}
.purpose__bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 44%;
  z-index: 0;
}
.purpose__bg .ph {
  position: absolute;
  inset: 0;
  border-radius: 0;
  border: none;
}
/* Soft edges: melt the image into pearl on its left, top and bottom
   so it doesn't collide with the sections around it */
.purpose__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--pearl) 0%, rgba(246,244,239,0.5) 12%, rgba(246,244,239,0) 34%),
    linear-gradient(180deg, var(--pearl) 0%, rgba(246,244,239,0) 16%, rgba(246,244,239,0) 78%, var(--pearl) 100%);
}
.purpose__wrap { position: relative; z-index: 1; }
.purpose__content { max-width: 54%; }
.purpose__title { margin: 18px 0 0; }
.purpose__divider {
  width: 44px;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: 2px;
  margin: 20px 0 24px;
}
.purpose__lead { margin: 0 0 40px; max-width: 52ch; font-size: 15px; }

/* Pillars (bare, with vertical separators) */
.purpose__pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 44px;
}
.pillar2 {
  display: flex;
  flex-direction: column;
  padding: 0 24px;
  border-left: 1px solid var(--navy-10);
}
.pillar2:first-child { padding-left: 0; border-left: none; }
.pillar2__icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.pillar2__icon--gold {
  background: var(--gold-gradient);
  color: var(--deep-navy);
  box-shadow: 0 4px 14px rgba(212, 160, 23, 0.28);
}
.pillar2__icon--navy {
  background: var(--deep-navy);
  color: var(--gold-highlight);
}
.pillar2__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--deep-navy);
  margin: 0 0 10px;
}
.pillar2__desc {
  font-size: 13.5px;
  color: var(--navy-60);
  line-height: 1.6;
  margin: 0 0 16px;
  flex: 1;
}
.pillar2__divider {
  width: 32px; height: 2px;
  background: var(--gold-gradient);
  border-radius: 2px;
  margin-top: auto;
}

/* Stats + CTA bottom row: full-width, CTA overlaps image */
.purpose__bottom {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 20px;
  align-items: stretch;
  margin-top: 8px;
}

.purpose__stats-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--navy-06);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  align-items: stretch;
  gap: 0;
}
.purpose__stat {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}
.purpose__stat-icon { color: var(--gold); margin-bottom: 10px; }
.purpose__stat-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  line-height: 1;
  color: var(--deep-navy);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.purpose__stat-label {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--deep-navy);
  line-height: 1.3;
  margin-bottom: 8px;
}
.purpose__stat-desc {
  font-size: 12.5px;
  color: var(--navy-60);
  line-height: 1.55;
}
.purpose__stat-sep {
  width: 1px;
  align-self: stretch;
  background: var(--navy-10);
  flex-shrink: 0;
}

.purpose__cta-card {
  background: var(--deep-navy);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-navy);
}
.purpose__cta-divider {
  width: 36px; height: 2px;
  background: var(--gold-gradient);
  border-radius: 2px;
  margin-bottom: 18px;
}
.purpose__cta-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.015em;
  line-height: 1.18;
  color: var(--pearl);
  margin: 0 0 12px;
}
.purpose__cta-desc {
  font-size: 13px;
  color: var(--pearl-60);
  line-height: 1.65;
  margin: 0 0 24px;
  flex: 1;
}
.purpose__cta-card .btn--gold {
  align-self: flex-start;
  justify-content: center;
  padding: 14px 24px;
  font-size: 14px;
  border-radius: 999px;
}

/* (right visual now via .purpose__bg) */

/* ---------- SECTION: TESTIMONIALS ---------- */
.testimonials {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
}
.testimonials__bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 620px;
  z-index: 0;
  pointer-events: none;
}
.testimonials__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.testimonials__bg-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--pearl) 0%, rgba(246,244,239,0.55) 22%, rgba(246,244,239,0) 50%),
    linear-gradient(180deg, var(--pearl) 0%, rgba(246,244,239,0.45) 14%, rgba(246,244,239,0) 38%, rgba(246,244,239,0) 55%, var(--pearl) 96%);
}
.testimonials__wrap { position: relative; z-index: 1; }
.testimonials__head { margin-bottom: 48px; max-width: 640px; }
.testimonials__head h2 { margin: 18px 0 0; }
.testimonials__title-gold { color: var(--gold); }
.testimonials__divider {
  width: 44px;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: 2px;
  margin: 20px 0 22px;
}
.testimonials__head p { margin: 0; font-size: 15px; max-width: 48ch; }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.tcard {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--navy-06);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.tcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tcard__quote-mark {
  font-family: var(--font-display);
  font-size: 46px;
  line-height: 0.6;
  color: var(--gold);
  margin-bottom: 16px;
}
.tcard__text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--navy-80);
  margin: 0 0 18px;
  flex: 1;
}
.tcard__divider {
  width: 30px;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: 2px;
  margin-bottom: 16px;
}
.tcard__person { display: flex; align-items: center; gap: 12px; }
.tcard__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--warm-sand);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--deep-navy);
  flex-shrink: 0;
}
.tcard__name { font-weight: 600; font-size: 13.5px; color: var(--deep-navy); }
.tcard__role { font-size: 12px; color: var(--navy-60); margin-top: 1px; }

.testimonials__foot {
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 28px;
  background: var(--warm-sand);
  color: var(--deep-navy);
  border-radius: var(--radius-lg);
}
.testimonials__foot .left { display: flex; align-items: center; gap: 18px; }
.testimonials__foot-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--deep-navy);
  color: var(--gold-highlight);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.testimonials__foot-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--deep-navy);
  margin-bottom: 3px;
}
.testimonials__foot-sub {
  font-size: 13.5px;
  color: var(--navy-60);
}

/* ---------- SECTION: FAQ ---------- */
.faq {
  position: relative;
  padding: 110px 0 120px;
  overflow: hidden;
}
.faq__bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58%;
  z-index: 0;
  pointer-events: none;
}
.faq__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.faq__bg-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--pearl) 0%, rgba(246,244,239,0.55) 20%, rgba(246,244,239,0) 45%),
    linear-gradient(180deg, var(--pearl) 0%, rgba(246,244,239,0) 16%, rgba(246,244,239,0) 84%, var(--pearl) 100%);
}
.faq__wrap { position: relative; z-index: 1; }
.faq__content { max-width: 560px; }
.faq__title { margin: 18px 0 0; }
.faq__title-gold { color: var(--gold); }
.faq__divider {
  width: 44px;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: 2px;
  margin: 20px 0 22px;
}
.faq__lead { margin: 0 0 32px; font-size: 15px; max-width: 46ch; }

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--navy-06);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}
.faq-item[open] { background: #FFF; border-color: rgba(212, 160, 23, 0.35); box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15.5px;
  color: var(--deep-navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__q { flex: 1; }

.faq-item__toggle {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #FFF;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(212, 160, 23, 0.3);
}
.faq-item__toggle .ic-minus { display: none; }
.faq-item[open] .faq-item__toggle .ic-plus { display: none; }
.faq-item[open] .faq-item__toggle .ic-minus { display: block; }

.faq-item__chevron {
  color: var(--gold);
  display: inline-flex;
  flex-shrink: 0;
  transition: transform 220ms ease;
}
.faq-item[open] .faq-item__chevron { transform: rotate(180deg); }

.faq-item__body {
  padding: 2px 22px 22px 66px;
  font-size: 14px;
  color: var(--navy-60);
  line-height: 1.65;
  max-width: 56ch;
}

/* Floating contact card over the image */
.faq__card {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 480px;
  background: var(--deep-navy);
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  box-shadow: var(--shadow-navy);
  z-index: 2;
}
.faq__card-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(229, 196, 106, 0.4);
  color: var(--gold-highlight);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.faq__card-copy h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 21px;
  letter-spacing: -0.01em;
  color: var(--pearl);
  margin: 0 0 6px;
}
.faq__card-copy p {
  font-size: 13.5px;
  color: var(--pearl-60);
  margin: 0 0 18px;
  line-height: 1.5;
}
.faq__card-btn { padding: 12px 22px; font-size: 13.5px; }

/* ---------- SECTION: CONTACT ---------- */
.contact {
  padding: 140px 0 80px;
  background: var(--deep-navy);
  color: var(--pearl);
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  margin-top: 80px;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.contact__left .eyebrow { color: var(--gold-highlight); }
.contact__left .eyebrow::before { background: var(--gold-highlight); }
.contact__title { color: var(--pearl); margin: 18px 0 22px; }
.contact__title em { background: var(--gold-gradient); background-clip: text; -webkit-background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.contact__lead { color: var(--pearl-60); margin: 0 0 32px; max-width: 42ch; font-size: 15.5px; line-height: 1.65; }

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid rgba(246, 244, 239, 0.08);
}
.contact__info-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--pearl-80);
}
.contact__info-row .icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(246, 244, 239, 0.06);
  display: grid; place-items: center;
  color: var(--gold-highlight);
  flex-shrink: 0;
}
.contact__info-row strong { display: block; color: var(--pearl); font-weight: 500; font-size: 13px; margin-bottom: 2px; letter-spacing: 0.03em; text-transform: uppercase; }
.contact__info-row span.val { color: var(--pearl-80); font-size: 14.5px; }

/* Form */
.form-card {
  background: var(--charcoal-blue);
  border: 1px solid rgba(246, 244, 239, 0.06);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}
.form-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  margin: 0 0 22px;
  color: var(--pearl);
  letter-spacing: -0.01em;
}
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-row label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pearl-60);
  font-weight: 500;
}
.form-row input,
.form-row textarea,
.form-row select {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(246, 244, 239, 0.15);
  padding: 10px 0;
  color: var(--pearl);
  font-size: 15px;
  outline: none;
  transition: border-color 200ms ease;
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: rgba(246, 244, 239, 0.35); }
.form-row input:focus,
.form-row textarea:focus { border-bottom-color: var(--gold-highlight); }
.form-row textarea { resize: vertical; min-height: 80px; font-family: inherit; }
.form-row.error input,
.form-row.error textarea { border-bottom-color: #E97B6A; }
.form-row .err-msg {
  font-size: 12px;
  color: #E97B6A;
  min-height: 14px;
  display: block;
  opacity: 0;
  transition: opacity 160ms ease;
  font-family: var(--font-sans);
  text-transform: none;
  letter-spacing: 0;
}
.form-row.error .err-msg { opacity: 1; }

.form-card .btn { margin-top: 10px; width: 100%; justify-content: center; padding: 16px; font-size: 14.5px; }

/* WhatsApp alternative CTA */
.form-alt {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}
.form-alt__sep {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pearl-60);
  justify-content: center;
}
.form-alt__sep::before,
.form-alt__sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(246, 244, 239, 0.12);
}
.btn--whatsapp {
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #7BE0A3;
  justify-content: center;
  margin-top: 0 !important;
}
.btn--whatsapp:hover {
  background: rgba(37, 211, 102, 0.18);
  border-color: rgba(37, 211, 102, 0.55);
  transform: translateY(-1px);
}
.btn--whatsapp svg { flex-shrink: 0; }
.form-success {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(229, 196, 106, 0.12);
  border: 1px solid rgba(229, 196, 106, 0.3);
  border-radius: 10px;
  color: var(--gold-highlight);
  font-size: 13.5px;
  text-align: center;
}
.form-success.visible { display: block; }

.contact__cta-bar {
  margin-top: 48px;
  padding: 22px 28px;
  background: rgba(246, 244, 239, 0.04);
  border: 1px solid rgba(246, 244, 239, 0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 14.5px;
  color: var(--pearl-80);
}
.contact__cta-bar strong { color: var(--pearl); font-weight: 500; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--deep-navy);
  color: var(--pearl);
  padding: 56px 0 36px;
  border-top: 1px solid rgba(246, 244, 239, 0.06);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr) 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer__brand { display: flex; flex-direction: column; gap: 14px; }
.footer__brand .brand__name { color: var(--pearl); }
.footer__brand p { font-size: 13.5px; color: var(--pearl-60); margin: 0; line-height: 1.6; max-width: 28ch; }

.footer h5 {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pearl-60);
  font-weight: 500;
  margin: 0 0 18px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a {
  font-size: 14px;
  color: var(--pearl-80);
  transition: color 180ms ease;
}
.footer ul a:hover { color: var(--gold-highlight); }

.footer__social { display: flex; gap: 10px; margin-top: 6px; }
.footer__social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(246, 244, 239, 0.06);
  display: grid; place-items: center;
  transition: background 180ms ease, color 180ms ease;
  color: var(--pearl-80);
}
.footer__social a:hover { background: var(--gold-gradient); color: var(--deep-navy); }

.footer__bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(246, 244, 239, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12.5px;
  color: var(--pearl-60);
}
.footer__bottom .brand {
  gap: 8px;
}
.footer__bottom .brand__mark { width: 22px; height: 22px; }
.footer__bottom .brand__name { font-size: 14px; color: var(--pearl-80); }

/* ---------- Reveal on scroll (visible by default; JS opts elements INTO the
   hidden pre-state only when below the fold — fail-safe if classes are lost) */
.reveal { opacity: 1; transform: none; transition: opacity 700ms ease, transform 700ms ease; }
.reveal.pre { opacity: 0; transform: translateY(16px); }
.reveal.in { opacity: 1; transform: none; }

/* Staggered cascade for card grids */
.course-grid .reveal:nth-child(2), .testimonial-grid .reveal:nth-child(2) { transition-delay: 100ms; }
.course-grid .reveal:nth-child(3), .testimonial-grid .reveal:nth-child(3) { transition-delay: 200ms; }
.testimonial-grid .reveal:nth-child(4) { transition-delay: 300ms; }

@media (prefers-reduced-motion: no-preference) {

  /* Hero entrance — only when JS confirms the page is actually visible */
  body.anim-ready .hero__copy > *,
  body.anim-ready .phero__copy > *,
  body.anim-ready .thero__copy > *,
  body.anim-ready .chero__copy > *,
  body.anim-ready .qhero__copy > * {
    animation: heroRise 800ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  body.anim-ready .hero__copy > *:nth-child(1), body.anim-ready .phero__copy > *:nth-child(1), body.anim-ready .thero__copy > *:nth-child(1), body.anim-ready .chero__copy > *:nth-child(1), body.anim-ready .qhero__copy > *:nth-child(1) { animation-delay: 80ms; }
  body.anim-ready .hero__copy > *:nth-child(2), body.anim-ready .phero__copy > *:nth-child(2), body.anim-ready .thero__copy > *:nth-child(2), body.anim-ready .chero__copy > *:nth-child(2), body.anim-ready .qhero__copy > *:nth-child(2) { animation-delay: 180ms; }
  body.anim-ready .hero__copy > *:nth-child(3), body.anim-ready .phero__copy > *:nth-child(3), body.anim-ready .thero__copy > *:nth-child(3), body.anim-ready .chero__copy > *:nth-child(3), body.anim-ready .qhero__copy > *:nth-child(3) { animation-delay: 300ms; }
  body.anim-ready .hero__copy > *:nth-child(4), body.anim-ready .phero__copy > *:nth-child(4), body.anim-ready .thero__copy > *:nth-child(4), body.anim-ready .chero__copy > *:nth-child(4), body.anim-ready .qhero__copy > *:nth-child(4) { animation-delay: 400ms; }
  body.anim-ready .hero__copy > *:nth-child(5), body.anim-ready .phero__copy > *:nth-child(5), body.anim-ready .thero__copy > *:nth-child(5), body.anim-ready .chero__copy > *:nth-child(5), body.anim-ready .qhero__copy > *:nth-child(5) { animation-delay: 500ms; }
  body.anim-ready .hero__copy > *:nth-child(6) { animation-delay: 620ms; }
  body.anim-ready .hero__bg img,
  body.anim-ready .phero__bg img,
  body.anim-ready .thero__bg img,
  body.anim-ready .chero__bg img,
  body.anim-ready .qhero__bg img {
    animation: heroBg 2400ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  body.anim-ready .hero__divider,
  body.anim-ready .benefits,
  body.anim-ready .pfeat__card,
  body.anim-ready .tfeat__card,
  body.anim-ready .mvv__card {
    animation: heroRise 900ms cubic-bezier(0.22, 1, 0.36, 1) 700ms both;
  }

  @keyframes heroRise {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes heroBg {
    from { opacity: 0; transform: scale(1.045); }
    to   { opacity: 1; transform: none; }
  }

  /* FAQ answer slides open */
  .faq-item[open] .faq-item__body {
    animation: faqOpen 360ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  @keyframes faqOpen {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
  }
}

/* Clip hero bg images so entrance scale never leaks outside (fixes flash strip) */
.hero__bg, .phero__bg, .thero__bg, .chero__bg, .qhero__bg { overflow: hidden; }

/* ---------- Responsive ---------- */
/* ===== Shared cross-page kit: a11y + WhatsApp FAB + mobile nav ===== */

/* Skip link */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--deep-navy);
  color: var(--pearl);
  padding: 12px 20px;
  border-radius: 0 0 12px 12px;
  font-size: 14px;
  font-weight: 600;
  transition: top 200ms ease;
}
.skip-link:focus { top: 0; }

/* Visible keyboard focus */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible { outline-offset: 4px; }

/* WhatsApp floating button */
.wa-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #FFF;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 2px 8px rgba(15, 30, 43, 0.2);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.wa-fab:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5), 0 4px 12px rgba(15, 30, 43, 0.25);
}
.wa-fab svg { width: 28px; height: 28px; }
@media (max-width: 700px) {
  .wa-fab { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}

/* Mobile nav toggle (hamburger) */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--navy-10);
  background: transparent;
  color: var(--deep-navy);
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle:hover { background: var(--navy-06); }
.nav-toggle .bars { display: flex; flex-direction: column; gap: 5px; }
.nav-toggle .bars span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 220ms ease, opacity 220ms ease;
}
.header.nav-open .nav-toggle .bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header.nav-open .nav-toggle .bars span:nth-child(2) { opacity: 0; }
.header.nav-open .nav-toggle .bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 700px) {
  .nav-toggle { display: grid; }
  .header.nav-open .nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(246, 244, 239, 0.98);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid var(--navy-10);
    box-shadow: 0 16px 32px rgba(15, 30, 43, 0.12);
    padding: 8px 0 12px;
  }
  .header.nav-open .nav a {
    padding: 15px var(--page-pad);
    font-size: 16px;
    border-top: 1px solid var(--navy-06);
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .header.nav-open .nav a:first-child { border-top: none; }
}

@media (max-width: 1100px) {
  .display--xl { font-size: 52px; }
  .display--lg { font-size: 40px; }

  /* Header */
  .brand__tagline { display: none; }
  .nav { gap: 22px; }

  /* Hero */
  .hero__bg { width: 100%; }
  .hero__bg-fade {
    background:
      linear-gradient(90deg, var(--pearl) 0%, rgba(246,244,239,0.82) 40%, rgba(246,244,239,0.55) 100%),
      linear-gradient(180deg, var(--pearl) 0%, rgba(246,244,239,0) 14%, rgba(246,244,239,0) 82%, var(--pearl) 100%);
  }
  .hero__copy { max-width: 620px; }
  .hero__modes { max-width: 100%; }

  /* Benefits */
  .benefits { grid-template-columns: 1fr; }
  .benefit + .benefit { border-left: none; border-top: 1px solid rgba(246,244,239,0.08); padding-left: 0; padding-top: 16px; }

  /* Courses */
  .programs__head { grid-template-columns: 1fr; gap: 28px; }
  .programs__head-right { padding-top: 0; }
  .btn--outline-pill { margin-left: 0; }
  .course-grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
  .courses-bar { flex-direction: column; align-items: flex-start; gap: 24px; }
  .courses-bar__features { justify-content: flex-start; flex-wrap: wrap; gap: 14px 0; }

  /* Purpose */
  .purpose__bg { display: none; }
  .purpose__content { max-width: 100%; }
  .purpose__bottom { grid-template-columns: 1fr; }

  /* Testimonials */
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials__bg { width: 100%; opacity: 0.55; }

  /* FAQ */
  .faq__bg { display: none; }
  .faq__content { max-width: 100%; }
  .faq__card { position: static; width: 100%; margin-top: 32px; }

  /* Contact + footer */
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 700px) {
  :root { --page-pad: 20px; }
  .display--xl { font-size: 40px; }
  .display--lg { font-size: 32px; }
  .body-lg { font-size: 15px; }

  /* Header */
  .nav { display: none; }
  .header__inner { height: 68px; }
  .brand__mark--lg { width: 36px; height: 36px; }
  .brand__name { font-size: 21px; }
  .header__cta .link { display: none; }

  /* Hero */
  .hero { padding: 40px 0 0; }
  .hero__modes { grid-template-columns: 1fr; }
  .mode-card { padding: 16px; }

  /* Courses */
  .course-card { grid-template-columns: 1fr; min-height: 0; }
  .course-card__media { order: -1; min-height: 190px; }
  .course-card__content { padding: 22px 20px 24px; }
  .courses-bar { padding: 22px 20px; }
  .courses-bar__features { flex-direction: column; align-items: flex-start; gap: 14px; }
  .courses-bar__feature { border-left: none; padding: 0; }

  /* Purpose */
  .purpose { padding: 64px 0; }
  .purpose__pillars { grid-template-columns: 1fr; gap: 24px; }
  .pillar2 { padding: 0; border-left: none; }
  .purpose__stats-card { flex-direction: column; gap: 24px; padding: 26px 22px; }
  .purpose__stat { padding: 0; }
  .purpose__stat-sep { width: 100%; height: 1px; align-self: auto; }

  /* Testimonials */
  .testimonials { padding: 72px 0 64px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .testimonials__foot { flex-direction: column; align-items: flex-start; }

  /* FAQ */
  .faq { padding: 64px 0 72px; }
  .faq-item__body { padding-left: 22px; }
  .faq__card { flex-direction: column; padding: 26px 22px; }

  /* Contact + footer */
  .contact { padding: 80px 0 56px; margin-top: 48px; }
  .form-card { padding: 28px 22px; }
  .contact__cta-bar { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ===== Logo IBCF (sept 2026) ===== */
.brand__logo { height: 40px; width: auto; display: block; }
.brand__logo--footer { height: 34px; }
.footer__bottom--nologo { justify-content: space-between; }
.footer__bottom--nologo .footer__copy { margin-left: auto; text-align: right; }
@media (max-width: 720px) {
  .brand__logo { height: 32px; }
  .footer__bottom--nologo { flex-direction: column; align-items: flex-start; }
  .footer__bottom--nologo .footer__copy { margin-left: 0; text-align: left; }
}

/* ===== Estadísticas: columnas siempre iguales y centradas (sept 2026) ===== */
.purpose__stats-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
}
.purpose__stat { padding: 0 16px; width: 100%; }
.purpose__stat-num { font-family: var(--font-display); font-weight: 400; font-size: 44px; letter-spacing: -0.02em; }
@media (max-width: 720px) {
  .purpose__stats-card { display: flex; }
}

/* Estado de error en el aviso de los formularios */
.form-success.is-error, .cform__success.is-error {
  background: rgba(220, 80, 60, 0.10);
  border-color: rgba(220, 80, 60, 0.35);
  color: #E0705A;
}

/* Respetar el atributo hidden aunque el elemento tenga display propio */
[hidden] { display: none !important; }

/* ===== Fotos de profesores/equipo: llenar el marco, rostro arriba (sept 2026) ===== */
.prof-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}
.prof-card__photo .ph__label, .team-card__photo .ph__label { display: none; }

/* ===== Perfiles de maestros pendientes: ocultar "+" y "Ver perfil" hasta tener lightbox (sept 2026) ===== */
.prof-card__plus, .team-card__plus, .prof-card__link { display: none !important; }

/* ============================================================
   RITMO MÓVIL (sept 2026) — espaciado estandarizado ≤700px
   Escala: secciones 56px arriba/abajo (respiro total ~112px),
   tarjetas a todo lo ancho, sin solapamientos.
   ============================================================ */
@media (max-width: 700px) {
  /* Hero: tarjetas a lo ancho y aire antes de la barra oscura */
  .hero { padding: 36px 0 0; }
  .mode-card { width: 100%; }
  .benefits-strip { margin-top: 28px; margin-bottom: 0; }
  .benefits { padding: 8px 22px; }
  .benefit { padding: 18px 0; }
  .benefit + .benefit { padding-top: 18px; }

  /* Ritmo de secciones */
  .programs { padding: 56px 0; }
  .purpose { padding: 56px 0; }
  .testimonials { padding: 56px 0; }
  .faq { padding: 56px 0; }
  .contact { padding: 72px 0 48px; margin-top: 40px; }
  .programs__head { margin-bottom: 8px; }

  /* Barra "Aprende a tu ritmo": centrada y compacta */
  .courses-bar { margin-top: 32px; padding: 28px 22px; gap: 20px; align-items: center; }
  .courses-bar__left { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
  .courses-bar__left p br { display: none; }
  .courses-bar__features {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
    flex-direction: unset;
  }
  .courses-bar__feature { justify-content: flex-start; }
  .courses-bar__feature span br { display: none; }

  /* Cierre de testimonios: botón cómodo */
  .testimonials__foot { gap: 16px; padding: 24px 22px; }

  /* Títulos: respiro consistente bajo el eyebrow */
  .section-head, .programs__head-right { margin-top: 0; }
}

/* Tablet (701–1100px): las 3 tarjetas del hero en fila completa */
@media (min-width: 701px) and (max-width: 1100px) {
  .hero { padding-bottom: 96px; }
  .hero__modes { grid-template-columns: repeat(3, 1fr); max-width: 100%; }
  .mode-card { width: 100%; }
}

/* ============================================================
   REDISEÑO sept 23 — tarjetas del hero y barra "Aprende a tu ritmo"
   ============================================================ */
/* Hero: tarjetas verticales (ícono arriba), mismas alturas, más ancho */
.hero__modes { max-width: 760px; gap: 16px; align-items: stretch; }
.mode-card { flex-direction: column; gap: 14px; padding: 22px 20px 20px; height: 100%; }
.mode-card__body { flex: 1; gap: 6px; }
.mode-card__body strong { font-size: 15px; }
.mode-card__body p { font-size: 13px; line-height: 1.55; }
.mode-card__arrow { margin-top: auto; padding-top: 10px; }

/* Barra "Aprende a tu ritmo": 2 columnas limpias, beneficios en rejilla 2×2 */
.courses-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 30px 36px;
}
.courses-bar__left { flex-shrink: 1; min-width: 0; }
.courses-bar__left p { max-width: 46ch; font-size: 13.5px; }
.courses-bar__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 28px;
  justify-content: stretch;
  padding-left: 36px;
  border-left: 1px solid var(--navy-10);
}
.courses-bar__feature, .courses-bar__feature:first-child {
  border-left: none;
  padding: 0;
  font-size: 13px;
}

/* Tablet */
@media (max-width: 1100px) {
  .courses-bar { grid-template-columns: 1fr; gap: 24px; }
  .courses-bar__features { padding-left: 0; border-left: none; padding-top: 20px; border-top: 1px solid var(--navy-10); }
}
@media (min-width: 701px) and (max-width: 1100px) {
  .hero__modes { max-width: 100%; }
}

/* Móvil: tarjetas horizontales a todo lo ancho (ícono a la izquierda) */
@media (max-width: 700px) {
  .mode-card { flex-direction: row; padding: 18px 16px; height: auto; }
  .mode-card__arrow { margin-top: 4px; padding-top: 0; }
  .courses-bar { padding: 28px 22px; gap: 20px; }
  .courses-bar__features { padding-top: 18px; gap: 14px 16px; }
}
/* el bloque de texto del hero se amplía para que las 3 tarjetas respiren; el párrafo conserva su medida */
@media (min-width: 1101px) {
  .hero__copy { max-width: 760px; }
  .hero__sub { max-width: 560px; }
}

/* ============================================================
   RITMO MÓVIL v2 (sept 23) — un solo sistema: 48px por borde de sección,
   secciones consecutivas del mismo fondo comparten el espacio (0 arriba).
   ============================================================ */
@media (max-width: 700px) {
  /* Home */
  body .hero__copy { padding-bottom: 0; }
  body .benefits-strip { margin-top: 28px; }
  body .benefits { gap: 0; padding: 6px 20px; }
  body .benefit, body .benefit + .benefit { padding: 16px 0; }
  body .benefit strong { margin-bottom: 2px; }
  body .programs, body .purpose, body .testimonials, body .faq { padding: 48px 0; }
  body .contact { padding: 56px 0 40px; margin-top: 16px; }
  /* Quién es IBCF */
  body .qhistory { padding: 48px 0; }
  body .qstats, body .qteam { padding: 0 0 48px; }
  body .qcta { padding: 56px 0; }
  /* Curso ministerial */
  body .pfeat { margin-bottom: 48px; }
  body .sem, body .paths { padding: 0 0 48px; }
  body .why { padding: 48px 0; }
  body .pfaq { padding: 0; }
  body .pfaq__intro { padding: 48px 0 8px; }
  body .pfaq__list { padding: 16px 0 48px; }
  /* Profesores */
  body .faculty, body .faculty-cta { padding: 0 0 48px; }
  /* Contacto */
  body .csection { padding: 48px 0; }
  body .location { padding: 48px 0 24px; }
  body .contact-cta { padding: 24px 0 48px; }
  /* Educación emocional */
  body .ewhy, body .elessons { padding: 48px 0; }
}
@media (max-width: 700px) {
  /* secciones contiguas con el mismo fondo: 72px entre bloques, no 96 */
  body .purpose, body .faq { padding-top: 24px; }
}
@media (max-width: 700px) {
  /* tarjeta impar al final de una rejilla de 2: ocupa todo el ancho en formato horizontal */
  .faculty__grid .prof-card:last-child:nth-child(odd),
  .qteam__cards .team-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 10;
  }
  .faculty__grid .prof-card:last-child:nth-child(odd) .prof-card__img,
  .qteam__cards .team-card:last-child:nth-child(odd) .prof-card__img { object-position: center 22%; }
}
