/* =========================================================
   VITALIA · Bienestar Corporativo · Costa Rica
   Stylesheet principal · 2026
   Paleta oficial: Verde bosque, beige, blanco cálido, grafito
========================================================= */

:root {
  /* ── Paleta oficial VITALIA ── */
  --green-dark:  #3A5A40;
  --green-mid:   #7A936F;
  --green-soft:  #A3B18A;
  --beige:       #E6DCC0;
  --ivory:       #F6F4EE;
  --graphite:    #2A2A2A;
  --white:       #FFFFFF;

  /* ── Variantes calculadas ── */
  --green-dark-90: rgba(58, 90, 64, 0.92);
  --green-dark-15: rgba(58, 90, 64, 0.15);
  --beige-dark:    #D4C9AC;
  --line:          #E5DECC;
  --text-soft:     #555755;

  /* ── Sombras ── */
  --shadow-sm: 0 1px 2px rgba(42, 42, 42, 0.04), 0 4px 12px rgba(42, 42, 42, 0.04);
  --shadow-md: 0 8px 32px rgba(42, 42, 42, 0.08);
  --shadow-lg: 0 24px 64px rgba(58, 90, 64, 0.16);

  /* ── Layout ── */
  --max:    1180px;
  --radius: 8px;
  --radius-lg: 16px;

  /* ── Tipografía ── */
  --font-head: 'Montserrat', 'Helvetica Neue', sans-serif;
  --font-body: 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* ── Reset ── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--graphite);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--green-mid); }
button { font-family: inherit; cursor: pointer; }
:focus-visible {
  outline: 3px solid rgba(122, 147, 111, 0.45);
  outline-offset: 3px;
}

/* ── Tipografía ── */
h1, h2, h3, h4, h5, p { margin: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--green-dark);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 18px; }
h3 { font-size: 1.3rem; margin-bottom: 10px; }
h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-mid);
}
.lead {
  font-size: 1.08rem;
  color: var(--text-soft);
  max-width: 640px;
  line-height: 1.75;
}
.muted { color: var(--text-soft); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 22px;
  max-width: 100%;
  flex-wrap: wrap;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--green-mid);
  flex-shrink: 0;
}

/* ── Container ── */
.container {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-beige { background: var(--beige); }
.section-soft  { background: #F2EDDC; }
.section-dark  { background: var(--green-dark); color: var(--ivory); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--ivory); }
.section-dark .lead, .section-dark .muted { color: rgba(246,244,238,0.85); }

/* ── Botones ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1.5px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  text-decoration: none;
  min-height: 48px;
}
.btn-primary {
  background: var(--green-dark);
  color: var(--ivory);
  border-color: var(--green-dark);
}
.btn-primary:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
  color: var(--ivory);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: transparent;
  color: var(--green-dark);
  border-color: var(--green-dark);
}
.btn-secondary:hover {
  background: var(--green-dark);
  color: var(--ivory);
}
.btn-raiz {
  background: var(--beige);
  color: var(--green-dark);
  border-color: var(--beige-dark);
  font-weight: 700;
}
.btn-raiz:hover {
  background: var(--green-soft);
  color: var(--green-dark);
  border-color: var(--green-soft);
}
.btn-ghost {
  background: transparent;
  color: var(--green-dark);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}
.btn-ghost:hover { color: var(--green-mid); }
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.arrow { transition: transform .3s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ── Header / Nav ── */
.site-header {
  background: linear-gradient(180deg, rgba(246, 244, 238, 0.9), rgba(246, 244, 238, 0.58));
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 18px 0 12px;
  transition: padding .25s ease, background-color .25s ease;
}
.site-header .container {
  width: min(calc(100% - 48px), 1420px);
}
.site-header.is-scrolled {
  background: rgba(246, 244, 238, 0.78);
  padding: 10px 0 8px;
}
.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  padding: 14px 22px 14px 24px;
  gap: clamp(18px, 2.2vw, 36px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(252, 250, 244, 0.92));
  border: 1px solid rgba(212, 201, 172, 0.72);
  border-top-color: rgba(192, 151, 72, 0.72);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(42, 42, 42, 0.08), 0 6px 20px rgba(58, 90, 64, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: min-height .25s ease, padding .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.nav::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 22px;
  right: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(192, 151, 72, 0.64), transparent);
  pointer-events: none;
}
.site-header.is-scrolled .nav {
  min-height: 82px;
  padding-top: 10px;
  padding-bottom: 10px;
  box-shadow: 0 14px 38px rgba(42, 42, 42, 0.08), 0 4px 14px rgba(58, 90, 64, 0.05);
}
.brand {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  gap: 16px;
  padding-right: clamp(26px, 2.5vw, 42px);
  color: var(--green-dark);
  cursor: pointer;
  text-decoration: none;
  transition: transform .25s ease, filter .25s ease;
}
.brand::after {
  content: "";
  position: absolute;
  right: 0;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(192, 151, 72, 0.5), transparent);
}
.brand span {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: nowrap;
  font-family: var(--font-head);
  font-size: clamp(1.55rem, 2.25vw, 2.65rem);
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--green-dark);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}
.brand img {
  width: clamp(64px, 5.6vw, 82px);
  height: auto;
  max-height: 88px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(192, 151, 72, 0.2);
  transition: width .25s ease, transform .25s ease, filter .25s ease;
  filter: drop-shadow(0 8px 16px rgba(58, 90, 64, 0.08));
}
.brand:hover img,
.brand:focus-visible img {
  transform: translateY(-1px);
  filter: drop-shadow(0 10px 18px rgba(58, 90, 64, 0.12));
}
.brand:hover,
.brand:focus-visible {
  transform: translateY(-1px);
}
.site-header.is-scrolled .brand img {
  width: clamp(62px, 5.4vw, 76px);
}
.site-header.is-scrolled .brand span {
  font-size: clamp(1.38rem, 1.95vw, 2.22rem);
}
.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 1.45vw, 24px);
  flex: 1 1 auto;
  min-width: 0;
}
.nav-links a {
  flex: 0 0 auto;
  font-family: var(--font-head);
  font-size: clamp(0.76rem, 0.72vw, 0.88rem);
  font-weight: 600;
  color: rgba(42, 42, 42, 0.86);
  position: relative;
  padding: 10px 2px;
  border-radius: 999px;
  line-height: 1.2;
  white-space: nowrap;
  transition: color .25s ease, background-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(192, 151, 72, 0), rgba(192, 151, 72, 0.76), rgba(192, 151, 72, 0));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--green-dark);
  background: rgba(246, 244, 238, 0.7);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(58, 90, 64, 0.07);
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.active::after {
  transform: scaleX(1);
}
.nav-links a.active {
  color: var(--green-dark);
  font-weight: 700;
  background: rgba(230, 220, 192, 0.34);
}
.nav-raiz {
  padding: 10px 14px !important;
  background: transparent;
  color: var(--green-dark) !important;
  border: 1px solid transparent;
  border-radius: 999px !important;
  font-weight: 700 !important;
  box-shadow: none;
}
.nav-raiz::after {
  left: 14px;
  right: 14px;
  bottom: 3px;
  transform: scaleX(0);
  height: 2px;
  background: linear-gradient(90deg, transparent, #C09748, transparent);
}
.nav-links .nav-raiz:hover,
.nav-links .nav-raiz:focus-visible,
.nav-links .nav-raiz.active {
  background: linear-gradient(180deg, #FFFFFF, #F7F1E3);
  border-color: rgba(192, 151, 72, 0.32);
  color: var(--green-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(58, 90, 64, 0.11), 0 10px 28px rgba(192, 151, 72, 0.22);
}
.nav-links .nav-raiz:hover::after,
.nav-links .nav-raiz:focus-visible::after,
.nav-links .nav-raiz.active::after {
  transform: scaleX(1);
}
.nav-academy {
  color: var(--graphite) !important;
  font-weight: 600 !important;
}
.nav-academy:hover,
.nav-academy:focus-visible,
.nav-academy.active {
  color: var(--green-dark) !important;
}
.nav-cta {
  isolation: isolate;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  min-width: 248px;
  flex: 0 0 auto;
  padding: 16px 22px !important;
  background: radial-gradient(circle at 70% 120%, rgba(255, 255, 255, 0.18), transparent 34%), linear-gradient(135deg, #254B31 0%, var(--green-dark) 62%, #254B31 100%);
  color: var(--ivory) !important;
  border: 1px solid rgba(192, 151, 72, 0.62);
  border-radius: 18px !important;
  box-shadow: 0 16px 34px rgba(37, 75, 49, 0.28), 0 5px 16px rgba(192, 151, 72, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.nav-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.16) 44%, transparent 64%);
  transform: translateX(-115%);
  transition: transform .7s ease;
  z-index: -1;
}
.nav-cta::after {
  display: none;
}
.nav-cta-icon {
  width: 22px;
  height: 22px;
  color: #D9BC72;
  flex: 0 0 auto;
}
.nav-cta span:not(.nav-cta-icon):not(.nav-cta-arrow) {
  flex: 0 0 auto;
  white-space: nowrap;
}
.nav-cta-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.8;
}
.nav-cta-arrow {
  color: #D9BC72;
  font-size: 1.7rem;
  line-height: 0.8;
  transition: transform .25s ease;
}
.nav-links .nav-cta:hover,
.nav-links .nav-cta:focus-visible {
  background: radial-gradient(circle at 70% 120%, rgba(255, 255, 255, 0.2), transparent 34%), linear-gradient(135deg, #2E563A 0%, #3A5A40 64%, #254B31 100%);
  color: var(--ivory) !important;
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(37, 75, 49, 0.32), 0 7px 20px rgba(192, 151, 72, 0.27);
}
.nav-links .nav-cta:hover::before,
.nav-links .nav-cta:focus-visible::before {
  transform: translateX(115%);
}
.nav-links .nav-cta:hover .nav-cta-arrow,
.nav-links .nav-cta:focus-visible .nav-cta-arrow {
  transform: translateX(3px);
}
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(192, 151, 72, 0.42);
  border-radius: 14px;
  color: var(--green-dark);
  font-size: 1.18rem;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(58, 90, 64, 0.08);
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.menu-toggle:hover,
.menu-toggle:focus-visible,
.menu-toggle.is-open {
  background: var(--ivory);
  box-shadow: 0 12px 26px rgba(58, 90, 64, 0.14);
}
.menu-toggle.is-open {
  transform: rotate(90deg);
}

@media (max-width: 1360px) {
  .site-header .container {
    width: min(calc(100% - 36px), 1360px);
  }
  .nav {
    gap: 18px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .brand {
    gap: 12px;
    padding-right: 24px;
  }
  .brand span {
    font-size: clamp(1.32rem, 1.72vw, 1.9rem);
    letter-spacing: 0.1em;
  }
  .brand img {
    width: clamp(58px, 5vw, 74px);
  }
  .nav-links {
    gap: clamp(10px, 1vw, 16px);
  }
  .nav-links a {
    font-size: 0.75rem;
  }
  .nav-raiz {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .nav-cta {
    min-width: 232px;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}

@media (max-width: 1240px) and (min-width: 1181px) {
  .brand span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .brand {
    padding-right: 24px;
  }
}

/* ── Hero ── */
.hero {
  padding: 80px 0 64px;
  background:
    linear-gradient(180deg, var(--ivory) 0%, var(--ivory) 60%, var(--beige) 100%);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-tagline {
  display: inline-block;
  margin-top: 24px;
  padding: 8px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--green-dark);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  max-width: 100%;
  overflow-wrap: anywhere;
}
.hero-trust-line {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--text-soft);
  letter-spacing: 0.04em;
  max-width: 680px;
}
.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background:
    linear-gradient(135deg, rgba(163, 177, 138, 0.3), rgba(122, 147, 111, 0.4)),
    var(--green-soft);
  aspect-ratio: 4/5;
}
.hero-image-wrap img,
.doctora-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.hero-image-wrap.image-missing::after,
.authority-photo.image-missing::after {
  content: "Foto profesional VITALIA";
  position: absolute;
  inset: auto 24px 24px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  color: var(--green-dark);
  font-family: var(--font-head);
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.hero-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--white);
  padding: 14px 20px;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}
.hero-badge-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-mid);
  font-weight: 700;
  margin-bottom: 4px;
}
.hero-badge strong {
  display: block;
  color: var(--green-dark);
  font-family: var(--font-head);
  font-size: 1rem;
}
.hero-badge span {
  font-size: 0.84rem;
  color: var(--text-soft);
}

/* ── Vitalia Academy access ── */
.academy-access {
  padding: 96px 0;
  background:
    linear-gradient(135deg, rgba(246,244,238,0.94), rgba(230,220,192,0.72)),
    var(--ivory);
}
.academy-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.academy-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.academy-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}
.academy-card-body {
  padding: 28px;
}
.academy-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.academy-feature {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.68);
  color: var(--green-dark);
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 700;
}
.academy-note {
  margin-top: 24px;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ── Métricas ── */
.metrics {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.metric {
  padding: 18px 18px 18px 0;
}
.metric strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2.4rem;
  color: var(--green-dark);
  font-weight: 700;
  line-height: 1;
}
.metric span {
  display: block;
  margin-top: 8px;
  font-size: 0.86rem;
  color: var(--text-soft);
  line-height: 1.5;
}

/* ── Grids ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; }
.program-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; }

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: all .3s ease;
}
.card:hover {
  border-color: var(--green-soft);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--ivory);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--green-dark);
}
.card-icon svg { width: 28px; height: 28px; stroke-width: 1.5; }
.card h3 { color: var(--green-dark); }
.decision-card {
  border-top: 4px solid var(--green-dark);
}
.decision-card h4 {
  color: var(--green-dark);
}

/* ── Metodo premium ── */
.method-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 56px;
}
.method-step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 20px;
  box-shadow: var(--shadow-sm);
}
.method-step span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green-dark);
  color: var(--ivory);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.method-step h3 {
  font-size: 1rem;
  color: var(--green-dark);
  margin-bottom: 8px;
}
.method-step p {
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ── Programa Raíz section ── */
.raiz-hero {
  background: linear-gradient(135deg, var(--beige) 0%, #EBE2C9 100%);
  padding: 96px 0;
  border-top: 4px solid var(--green-dark);
  border-bottom: 4px solid var(--green-dark);
}
.raiz-tag {
  display: inline-block;
  background: var(--green-dark);
  color: var(--ivory);
  padding: 6px 14px;
  border-radius: 4px;
  font-family: var(--font-head);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* ── Programa cards ── */
.program-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all .3s ease;
}
.program-card:hover { border-color: var(--green-soft); box-shadow: var(--shadow-md); }
.program-card.featured {
  background: var(--green-dark);
  color: var(--ivory);
  border-color: var(--green-dark);
}
.program-card.featured h3, .program-card.featured h4 { color: var(--ivory); }
.program-card.featured .program-list .item { color: rgba(246,244,238,0.92); }
.program-card.featured .program-list .item::before { background: var(--beige); }
.program-card.raiz-card {
  background: var(--beige);
  border-color: var(--green-dark);
  border-width: 2px;
}
.program-badge {
  position: absolute;
  top: -14px;
  left: 24px;
  background: var(--beige);
  color: var(--green-dark);
  padding: 6px 14px;
  border-radius: 4px;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.program-badge.featured-tag {
  background: var(--green-dark);
  color: var(--ivory);
}
.program-name {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--green-dark);
  margin: 8px 0 12px;
}
.program-card.featured .program-name { color: var(--ivory); }
.program-price {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--green-mid);
  font-size: 0.98rem;
  margin: 10px 0 18px;
  padding: 8px 14px;
  background: var(--ivory);
  border-radius: 4px;
  display: inline-block;
}
.program-card.featured .program-price { background: rgba(246,244,238,0.12); color: var(--beige); }
.program-list { margin: 20px 0 28px; padding: 0; list-style: none; }
.program-list .item {
  position: relative;
  padding: 8px 0 8px 22px;
  font-size: 0.94rem;
  border-bottom: 1px dashed var(--line);
}
.program-card.featured .program-list .item { border-bottom-color: rgba(246,244,238,0.18); }
.program-list .item:last-child { border-bottom: none; }
.program-list .item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  background: var(--green-mid);
  border-radius: 50%;
}
.plan-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}
.whatsapp-link {
  display: inline-flex;
  justify-content: center;
  color: var(--green-dark);
  font-family: var(--font-head);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.whatsapp-link-light {
  color: var(--beige);
}

/* ── Timeline (proceso) ── */
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 56px;
  position: relative;
}
.step {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px 20px;
  border-radius: var(--radius);
  text-align: center;
  position: relative;
}
.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-dark);
  color: var(--ivory);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  margin-bottom: 14px;
  font-size: 0.9rem;
}
.step h3 { font-size: 1rem; margin-bottom: 6px; }
.step p { font-size: 0.86rem; color: var(--text-soft); }

/* ── Comparativa ── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.table-scroll {
  margin-top: 32px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.table-scroll .compare-table {
  margin-top: 0;
  min-width: 780px;
  box-shadow: none;
}
.compare-table th, .compare-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}
.compare-table th {
  background: var(--green-dark);
  color: var(--ivory);
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .feature-cell { font-weight: 600; color: var(--green-dark); background: var(--ivory); }
.check { color: var(--green-mid); font-weight: 700; }
.dash { color: var(--text-soft); }

/* ── Authority / Doctora ── */
.authority {
  background: var(--ivory);
  padding: 96px 0;
}
.authority-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.authority-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background:
    linear-gradient(135deg, rgba(163, 177, 138, 0.3), rgba(122, 147, 111, 0.4)),
    var(--green-soft);
  aspect-ratio: 4/5;
}
.authority-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ── Monograma de autoridad (reemplazo de foto) ── */
.authority-monogram, .hero-monogram {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background:
    linear-gradient(135deg, rgba(58,90,64,0.94) 0%, rgba(42,42,42,0.90) 100%),
    url('../img/raiz-oscuro.jpg') center/cover no-repeat;
  background-color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ivory);
}
.monogram-inner {
  position: relative;
  z-index: 2;
  padding: 40px 32px;
  max-width: 360px;
}
.monogram-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--beige);
  color: var(--green-dark);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 3.5rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.22), inset 0 0 0 4px rgba(255,255,255,0.12);
}
.monogram-eyebrow {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--beige);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.monogram-eyebrow::before,
.monogram-eyebrow::after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--beige);
  opacity: 0.65;
}
.monogram-name {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ivory);
  margin: 0 0 20px;
}
.monogram-creds {
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  color: rgba(246,244,238,0.85);
  line-height: 1.6;
  padding: 14px 0 0;
  border-top: 1px solid rgba(246,244,238,0.18);
}
.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}
.credential-tag {
  background: var(--white);
  border: 1px solid var(--green-soft);
  color: var(--green-dark);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ── Quote ── */
.quote-box {
  background: var(--white);
  border-left: 4px solid var(--green-dark);
  padding: 32px 36px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-head);
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--green-dark);
  font-weight: 500;
  font-style: italic;
}
.quote-box .author {
  display: block;
  margin-top: 18px;
  font-size: 0.88rem;
  font-weight: 600;
  font-style: normal;
  color: var(--green-mid);
  letter-spacing: 0.02em;
}

/* ── Highlight phrase ── */
.highlight-phrase {
  text-align: center;
  padding: 64px 32px;
  background: var(--green-dark);
  color: var(--ivory);
  border-radius: var(--radius-lg);
  margin: 56px 0;
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.4;
}
.highlight-phrase em {
  font-style: italic;
  color: var(--beige);
  font-weight: 500;
}

.legal-note-section {
  background: var(--ivory);
}
.notice-box {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) 1fr;
  gap: 20px;
  align-items: start;
  padding: 24px 28px;
  border: 1px solid rgba(58, 90, 64, 0.18);
  border-left: 4px solid var(--green-dark);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text-soft);
  box-shadow: var(--shadow-sm);
}
.notice-box strong {
  font-family: var(--font-head);
  color: var(--green-dark);
}
.notice-box span {
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ── Service cards (con imagen) ── */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: all .3s ease;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service-card-img-wrap {
  background: var(--green-soft);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card-img-wrap svg { color: var(--green-dark); width: 64px; height: 64px; }
.service-card-body { padding: 28px 26px; }
.service-card-body h3 { color: var(--green-dark); }

/* ── Blog cards ── */
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: all .3s ease;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-thumb {
  aspect-ratio: 16/10;
  background: var(--green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-thumb svg { color: var(--green-dark); opacity: 0.7; width: 56px; height: 56px; }
.blog-body { padding: 28px 26px; flex: 1; display: flex; flex-direction: column; }
.blog-category {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 12px;
}
.blog-body h3 { color: var(--green-dark); margin-bottom: 12px; }
.blog-body p { color: var(--text-soft); font-size: 0.94rem; flex: 1; }
.blog-meta {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--text-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ════════ CARRUSEL DE TESTIMONIOS / FOTOS ════════ */
.carousel-section {
  background:
    linear-gradient(180deg, var(--ivory) 0%, #F0EAD9 100%);
  padding: 96px 0 104px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.carousel-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.carousel-header h2 { margin-bottom: 16px; }
.carousel-wrap {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 54px;
}
.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 2px 28px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
  flex: 0 0 calc((100% - 24px) / 2);
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 38px rgba(58, 90, 64, 0.08);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.carousel-slide:hover {
  box-shadow: 0 22px 52px rgba(58, 90, 64, 0.14);
  border-color: rgba(58, 90, 64, 0.22);
  transform: translateY(-4px);
}
.carousel-img-wrap {
  width: 100%;
  height: clamp(280px, 34vw, 430px);
  background: linear-gradient(135deg, var(--green-soft), var(--green-mid));
  overflow: hidden;
  position: relative;
}
.carousel-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.carousel-caption {
  min-height: 116px;
  padding: 22px 24px 24px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(246,244,238,0.98));
}
.carousel-caption h4 {
  color: var(--green-dark);
  font-size: 0.78rem;
  margin-bottom: 8px;
}
.carousel-caption .name {
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 4px;
}
.carousel-caption .role {
  font-size: 0.86rem;
  color: var(--text-soft);
}
.carousel-btn {
  position: absolute;
  top: calc(50% - 46px);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all .25s ease;
  font-size: 1.4rem;
  z-index: 5;
}
.carousel-btn:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}
.carousel-btn:hover {
  background: var(--green-dark);
  color: var(--ivory);
  border-color: var(--green-dark);
}
.carousel-btn:disabled:hover {
  background: var(--white);
  color: var(--green-dark);
  border-color: var(--line);
}
.carousel-btn-prev { left: 0; }
.carousel-btn-next { right: 0; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.carousel-dot {
  width: 9px;
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  border: none;
  cursor: pointer;
  transition: all .25s ease;
  padding: 0;
}
.carousel-dot.active {
  background: var(--green-dark);
  width: 28px;
  transform: none;
}

@media (max-width: 980px) {
  .carousel-wrap { padding: 0 44px; }
  .carousel-slide { flex: 0 0 82%; }
  .carousel-img-wrap { height: clamp(260px, 48vw, 390px); }
}
@media (max-width: 640px) {
  .carousel-section { padding: 72px 0 80px; }
  .carousel-header { text-align: left; margin-bottom: 32px; }
  .carousel-header .eyebrow { justify-content: flex-start !important; }
  .carousel-wrap { padding: 0; }
  .carousel-track { gap: 16px; padding-bottom: 22px; }
  .carousel-slide { flex: 0 0 88%; }
  .carousel-img-wrap { height: 270px; }
  .carousel-caption { padding: 18px; min-height: 112px; }
  .carousel-btn { width: 40px; height: 40px; font-size: 1.1rem; }
  .carousel-btn-prev { left: -6px; }
  .carousel-btn-next { right: -6px; }
}

/* ── Ecosistema institucional / comercial ── */
.trusted-section {
  background: linear-gradient(180deg, var(--ivory) 0%, #FFFFFF 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 88px 0;
}
.trusted-section-compact {
  padding: 72px 0;
}
.trusted-header {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}
.trusted-header .eyebrow {
  justify-content: center;
}
.trusted-header h2 {
  margin-bottom: 16px;
}
.trusted-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}
.trusted-card {
  min-height: 150px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(205, 190, 154, 0.48);
  border-radius: var(--radius);
  box-shadow: 0 16px 42px rgba(58, 90, 64, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.trusted-card:hover {
  transform: translateY(-3px);
  border-color: rgba(58, 90, 64, 0.22);
  box-shadow: 0 22px 54px rgba(58, 90, 64, 0.13);
}
.trusted-logo {
  display: block;
  width: 100%;
  max-width: 168px;
  height: 82px;
  object-fit: contain;
  margin: 0 auto;
  filter: saturate(0.9) contrast(1.03);
}
.trusted-card:last-child .trusted-logo {
  max-width: 156px;
}
.trusted-note {
  max-width: 760px;
  margin: 28px auto 0;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.7;
}
.testimonial-gallery {
  contain: layout paint;
}
.testimonial-card {
  border-color: rgba(205, 190, 154, 0.64);
}

@media (max-width: 980px) {
  .trusted-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .trusted-section,
  .trusted-section-compact {
    padding: 64px 0;
  }
  .trusted-header {
    text-align: left;
    margin-bottom: 30px;
  }
  .trusted-header .eyebrow {
    justify-content: flex-start;
  }
  .trusted-grid {
    gap: 14px;
  }
  .trusted-card {
    min-height: 124px;
    padding: 20px 16px;
  }
  .trusted-logo {
    max-width: 132px;
    height: 68px;
  }
  .trusted-note {
    text-align: left;
    font-size: 0.86rem;
  }
}

/* ── CTA Section ── */
.cta-section {
  background: var(--green-dark);
  color: var(--ivory);
  padding: 96px 0;
}
.cta-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.cta-section h2 { color: var(--ivory); }
.cta-section .lead { color: rgba(246,244,238,0.85); margin: 0 auto 32px; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-section .btn-primary {
  background: var(--beige);
  color: var(--green-dark);
  border-color: var(--beige);
}
.cta-section .btn-primary:hover {
  background: var(--ivory);
  color: var(--green-dark);
  border-color: var(--ivory);
}
.cta-section .btn-secondary {
  background: transparent;
  color: var(--ivory);
  border-color: var(--ivory);
}
.cta-section .btn-secondary:hover {
  background: var(--ivory);
  color: var(--green-dark);
  border-color: var(--ivory);
}

/* ── Forms ── */
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.contact-form h3 {
  font-size: 1.45rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-row.single { grid-template-columns: 1fr; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green-dark);
  letter-spacing: 0.02em;
}
.form-group label .required { color: #B85042; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--graphite);
  transition: border-color .2s ease;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-dark);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0;
  font-size: 0.86rem;
  color: var(--text-soft);
}
.form-checkbox input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.form-checkbox a { color: var(--green-dark); text-decoration: underline; }

.cta-conversion-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  gap: 42px;
  align-items: start;
  text-align: left;
}
.cta-conversion-grid .lead {
  margin-left: 0;
  margin-right: 0;
}
.mini-form {
  padding: 28px;
  background: var(--ivory);
}
.mini-form h3 {
  color: var(--green-dark);
  margin-bottom: 18px;
}
.mini-form .form-group {
  margin-bottom: 14px;
}
.mini-form .btn {
  width: 100%;
  justify-content: center;
}

/* ── CTA flotantes globales ── */
.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green-dark);
  color: var(--ivory);
  box-shadow: 0 16px 36px rgba(42, 42, 42, 0.22);
  border: 1px solid rgba(246,244,238,0.28);
}
.floating-whatsapp svg {
  width: 27px;
  height: 27px;
  stroke-width: 1.8;
}
.mobile-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 79;
  display: none;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(246,244,238,0.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 28px rgba(42,42,42,0.12);
}
.mobile-sticky-cta .btn {
  flex: 1;
  justify-content: center;
  padding: 11px 12px;
  font-size: 0.84rem;
}
.mobile-sticky-cta .btn-secondary {
  background: var(--white);
}

/* ── Footer ── */
.site-footer {
  background: var(--graphite);
  color: rgba(246,244,238,0.78);
  padding: 64px 0 32px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(246,244,238,0.12);
}
/* ── Footer brand: logo dentro de círculo claro para que se vea premium ── */
.footer-brand { display: flex; flex-direction: column; }
.footer-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.footer-brand-mark .footer-logo-disc {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ivory);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(246,244,238,0.08);
}
.footer-brand-mark .footer-logo-disc img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  display: block;
}
.footer-brand-mark .footer-wordmark {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ivory);
}
.footer-tagline {
  font-size: 0.92rem;
  color: rgba(246,244,238,0.6);
  line-height: 1.65;
  max-width: 320px;
}
.footer-col h4 {
  color: var(--ivory);
  font-size: 0.78rem;
  margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: rgba(246,244,238,0.6);
  font-size: 0.9rem;
  transition: color .2s ease;
}
.footer-links a:hover { color: var(--ivory); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: rgba(246,244,238,0.45);
}
.footer-bottom a {
  color: rgba(246,244,238,0.65);
  margin-left: 16px;
}

/* ── Page header (interior pages) ── */
.page-header {
  background: linear-gradient(180deg, var(--ivory) 0%, var(--beige) 100%);
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.breadcrumb a { color: var(--green-mid); }
.breadcrumb a:hover { color: var(--green-dark); }

/* ── Utilities ── */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.max-prose { max-width: 720px; }
.divider { height: 1px; background: var(--line); margin: 48px 0; border: none; }

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 1180px) {
  /* Tablets y laptops compactas: colapsar antes de que el CTA se comprima */
  .site-header {
    padding: 12px 0 8px;
  }
  .site-header .container {
    width: min(calc(100% - 30px), var(--max));
  }
  .nav {
    min-height: 82px;
    padding: 10px 14px 10px 18px;
    border-radius: 18px;
  }
  .brand {
    min-width: 0;
    gap: 12px;
    padding-right: 18px;
  }
  .brand span,
  .site-header.is-scrolled .brand span {
    font-size: clamp(1.38rem, 4.2vw, 2rem);
    letter-spacing: 0.12em;
  }
  .brand img,
  .site-header.is-scrolled .brand img {
    width: clamp(54px, 9vw, 68px);
    max-height: 68px;
  }
  .nav-links {
    display: flex;
    position: absolute;
    top: calc(100% + 10px);
    left: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    padding: 18px;
    gap: 10px;
    border: 1px solid rgba(212, 201, 172, 0.72);
    border-radius: 18px;
    box-shadow: 0 20px 46px rgba(42, 42, 42, 0.12);
    align-items: flex-start;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    visibility: hidden;
    transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
  }
  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }
  .menu-toggle { display: inline-flex; }
  .nav-links a {
    width: 100%;
    padding: 12px 14px;
  }
  .nav-links .nav-raiz,
  .nav-links .nav-academy {
    width: 100%;
  }
  .nav-links .nav-cta {
    width: 100%;
    min-width: 0;
    margin-top: 4px;
  }
}
@media (max-width: 980px) {
  .hero-grid, .authority-grid, .grid-2, .academy-panel { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-conversion-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .hero {
    padding-top: 56px;
  }
  .hero-image-wrap,
  .authority-photo {
    max-width: 520px;
    margin: 0 auto;
  }
  .notice-box {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
@media (max-width: 720px) {
  body { padding-bottom: 78px; }
  .site-header {
    padding-top: 10px;
  }
  .nav {
    min-height: 74px;
    border-radius: 16px;
  }
  .brand {
    padding-right: 14px;
    gap: 10px;
  }
  .brand::after {
    top: 10px;
    bottom: 10px;
  }
  .brand img,
  .site-header.is-scrolled .brand img {
    width: clamp(48px, 13vw, 58px);
    max-height: 58px;
  }
  .brand span,
  .site-header.is-scrolled .brand span {
    font-size: clamp(1.2rem, 6.2vw, 1.55rem);
    letter-spacing: 0.1em;
  }
  .menu-toggle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }
  .section { padding: 64px 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .academy-feature-list { grid-template-columns: 1fr; }
  .academy-card img { height: 240px; }
  .grid-4 { grid-template-columns: 1fr; }
  .program-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom a { margin-left: 0; }
  .hero-badge { left: 16px; bottom: 16px; padding: 10px 14px; }
  .contact-form { padding: 24px; }
  .compare-table { font-size: 0.84rem; }
  .compare-table th, .compare-table td { padding: 12px 10px; }
  .container { width: min(calc(100% - 28px), var(--max)); }
  h1 { font-size: clamp(1.9rem, 10vw, 2.35rem); }
  h2 { font-size: clamp(1.65rem, 9vw, 2.15rem); }
  .lead { font-size: 1rem; }
  .btn-row,
  .cta-buttons {
    width: 100%;
  }
  .btn-row .btn,
  .cta-buttons .btn,
  .contact-form .btn {
    width: 100%;
  }
  .hero-tagline {
    width: 100%;
  }
  .floating-whatsapp {
    width: 52px;
    height: 52px;
    right: 16px;
    bottom: 88px;
  }
  .mobile-sticky-cta {
    display: flex;
  }
  .eyebrow {
    gap: 10px;
    font-size: 0.64rem;
    letter-spacing: 0.16em;
  }
  .eyebrow::before {
    width: 28px;
  }
  .hero-trust-line {
    margin-top: 28px;
    padding-top: 22px;
  }
  .metric {
    padding: 14px 0;
  }
  .metric strong {
    font-size: 2rem;
  }
  .program-card,
  .card,
  .contact-form {
    padding: 28px 22px;
  }
  .notice-box {
    padding: 20px;
  }
}

/* ── Animaciones suaves ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .8s cubic-bezier(.4,0,.2,1) both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .25s; }
.delay-3 { animation-delay: .4s; }

/* ── Print ── */
@media print {
  .site-header, .site-footer, .cta-section { display: none; }
  body { background: white; color: black; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
