/* ══════════════════════════════════════════════
   CONSEJO MEXICANO DE PSICOTERAPIA — GLOBAL CSS
   ══════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────── */
:root {
  --navy:       #1A2B4A;
  --navy-deep:  #111E34;
  --navy-mid:   #1e3158;
  --cream:      #F8F6F1;
  --gold:       #C9A84C;
  --gold-lt:    #E8D49A;
  --stone:      #6B7280;
  --green:      #2D6A4F;
  --white:      #FFFFFF;
  --border:     rgba(201,168,76,0.25);
  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'Source Sans 3', system-ui, sans-serif;
  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── RESET ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  background: var(--cream);
  color: var(--navy);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── SCROLL REVEAL ───────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── TOP BAR ─────────────────────────────────── */
.topbar {
  background: #131f30;
  color: rgba(255,255,255,0.6);
  font-family: var(--ff-body);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  padding: 8px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: var(--gold); transition: color 0.2s; }
.topbar a:hover { color: var(--white); }

/* ── NAVBAR ──────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #1e2e47;
  border-bottom: 1px solid rgba(201,168,76,0.2);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 48px 14px;
  height: 165px;
  box-shadow: 0 2px 24px rgba(0,0,0,0.25);
}

/* ── LOGO ────────────────────────────────────── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 150px;
  width: auto;
  min-width: 180px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}
/* SEO text: invisible but readable by Google */
.nav-logo-seo {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-logo-main {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}
.nav-logo-sub {
  font-size: 0.60rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--ff-body);
}

/* ── NAV LINKS ───────────────────────────────── */
.nav-links {
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: block;
  padding: 8px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--gold); }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 8px;
  min-width: 230px;
  background: #1e2e47;
  border-top: 2px solid var(--gold);
  border: 1px solid rgba(201,168,76,0.2);
  border-top: 2px solid var(--gold);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: all 0.25s ease;
  z-index: 200;
}
/* invisible bridge fills the gap so mouse doesn't lose hover */
.nav-links > li > a::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 8px;
}
.nav-links > li > a { position: relative; }

.nav-links > li:hover .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 11px 18px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.15s, color 0.15s;
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: rgba(201,168,76,0.1); color: var(--gold); }
.nav-cta {
  background: var(--gold) !important;
  color: var(--navy-deep) !important;
  font-weight: 600 !important;
  border-radius: 2px;
  padding: 9px 18px !important;
  margin-left: 8px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--gold-lt) !important; color: var(--navy-deep) !important; }

/* ── NAV → PAGE SEPARATOR ────────────────────── */
.page-hero { border-top: none; }

/* ── RESPONSIVE NAV ──────────────────────────── */
/* ── HAMBURGER BUTTON ────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV ──────────────────────────────── */
@media (max-width: 900px) {
  .topbar { display: none; }
  nav {
    padding: 0 20px;
    height: 80px;
    position: sticky;
    flex-wrap: wrap;
  }
  .nav-logo-img {
    height: 60px !important;
    min-width: unset !important;
  }
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    background: #1a2b4a;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    padding: 12px 0 20px;
    border-top: 1px solid rgba(201,168,76,0.2);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 150;
  }
  .nav-links.open { display: flex; }
  .nav-links > li { width: 100%; }
  .nav-links > li > a {
    padding: 12px 24px;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .dropdown {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: none;
    border-top: none;
    background: rgba(0,0,0,0.2);
    display: none;
  }
  .nav-links > li.open .dropdown { display: block; }
  .dropdown a { padding: 10px 36px; font-size: 0.82rem; }
  .nav-cta { margin: 12px 24px 0 !important; }
}

/* ── BUTTONS ─────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-deep);
  font-family: var(--ff-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 30px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--gold-lt); transform: translateY(-1px); }
.btn-ghost {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
  font-family: var(--ff-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: var(--gold); background: rgba(201,168,76,0.1); }
.btn-ghost-dark {
  display: inline-block;
  border: 1px solid rgba(26,43,74,0.3);
  color: var(--navy);
  font-family: var(--ff-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.btn-ghost-dark:hover { border-color: var(--gold); color: var(--gold); }

/* ── TYPOGRAPHY HELPERS ──────────────────────── */
.section-label {
  font-family: var(--ff-body);
  font-size: 1.0rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
}
.section-label-light { color: rgba(201,168,76,0.85); }

.display-title {
  font-family: var(--ff-display);
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 20px;
}
.display-title-light { color: var(--white); }

.body-lg {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--stone);
  line-height: 1.8;
}
.body-lg-light { color: rgba(255,255,255,0.65); }

/* ── GOLD RULE (signature element) ──────────── */
.gold-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease);
  margin: 0;
}
.gold-rule.visible { transform: scaleX(1); }
.gold-rule-wrap {
  padding: 0 48px;
  background: var(--cream);
}
.gold-rule-wrap-dark {
  padding: 0 48px;
  background: var(--cream);
}
.gold-rule-inner { max-width: 1120px; margin: 0 auto; }

/* ── SECTION WRAPPERS ────────────────────────── */
.section-cream  { background: var(--cream);     padding: 80px 48px; }
.section-white  { background: var(--white);     padding: 80px 48px; }
.section-navy   { background: var(--navy);      padding: 80px 48px; }
.section-deep   { background: var(--navy-deep); padding: 80px 48px; }
.container { max-width: 1120px; margin: 0 auto; }

/* ── PAGE HERO (inner pages) ─────────────────── */
/* ── NAV → HERO SEPARATOR ───────────────────── */
nav {
  border-bottom: 1px solid rgba(201,168,76,0.2);
}

.page-hero {
  background: var(--cream);
  padding: 80px 48px 60px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -55deg, transparent, transparent 60px,
    rgba(26,43,74,0.018) 60px, rgba(26,43,74,0.018) 61px
  );
  pointer-events: none;
}
.page-hero-inner {
  max-width: 860px;
  position: relative;
  z-index: 2;
}
.page-hero .section-label { color: var(--gold); }
.page-hero h1 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 20px;
}
.page-hero h1 em { font-style: italic; color: var(--gold); }
.page-hero p {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--stone);
  line-height: 1.75;
  max-width: 680px;
}

/* ── CARD SYSTEM ─────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid rgba(26,43,74,0.09);
  border-radius: 3px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}
.card:hover { box-shadow: 0 8px 40px rgba(26,43,74,0.1); transform: translateY(-3px); }
.card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.card:hover::after { transform: scaleX(1); }

.card-dark {
  background: #253654;
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 3px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.card-dark:hover { background: var(--navy-mid); }
.card-dark .pillar-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.card-dark:hover .pillar-bar { transform: scaleX(1); }

.card-tag {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold); font-family: var(--ff-body);
  display: block; margin-bottom: 12px;
}
.card h3 {
  font-family: var(--ff-display);
  font-size: 1.2rem; font-weight: 600;
  color: var(--navy); line-height: 1.3; margin-bottom: 12px;
}
.card-dark h3 { color: var(--white); }
.card p { font-size: 0.88rem; color: var(--stone); line-height: 1.65; flex: 1; }
.card-dark p { color: rgba(255,255,255,0.55); }
.card-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--navy);
  transition: color 0.2s, gap 0.2s; font-family: var(--ff-body);
  margin-top: 16px;
}
.card-link:hover { color: var(--gold); gap: 12px; }
.card-link-light { color: var(--gold-lt); }
.card-link-light:hover { color: var(--gold); }

/* ── GRID LAYOUTS ────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; align-items: start; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; align-items: start; }
.grid-half { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

/* ── PILLAR GRID ─────────────────────────────── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(201,168,76,0.2);
  border: 1px solid rgba(201,168,76,0.2);
}
.pillar-num {
  font-family: var(--ff-display);
  font-size: 3rem; font-weight: 700;
  color: var(--gold); line-height: 1;
  margin-bottom: 14px; display: block;
}
.pillar-icon {
  width: 36px; height: 36px; margin-bottom: 16px; color: var(--gold);
}

/* ── QUOTE BLOCK ─────────────────────────────── */
.quote-block {
  background: var(--navy);
  color: var(--white);
  padding: 48px 40px;
  border-radius: 3px;
  position: relative;
}
.quote-block::before {
  content: '\201C';
  font-family: var(--ff-display);
  font-size: 5rem; line-height: 1;
  color: var(--gold); opacity: 1;
  position: absolute; top: 16px; left: 28px;
}
.quote-block blockquote {
  font-family: var(--ff-display);
  font-size: 1.15rem; font-style: italic;
  line-height: 1.65; color: rgba(255,255,255,0.9);
  position: relative; z-index: 1; padding-top: 14px;
}
.quote-block cite {
  display: block; margin-top: 18px; font-style: normal;
  font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold);
  font-family: var(--ff-body); font-weight: 600;
}

/* ── STAT ROW ────────────────────────────────── */
.stat-row { display: flex; gap: 40px; flex-wrap: wrap; }
.stat-item {}
.stat-num {
  font-family: var(--ff-display);
  font-size: 2.4rem; font-weight: 700; color: var(--gold); line-height: 1;
}
.stat-label {
  font-size: 0.82rem; color: rgba(255,255,255,0.55); line-height: 1.4; margin-top: 4px;
}
.stat-label-dark { color: var(--stone); }

/* ── SECTION CLOSING ─────────────────────────── */
.section-closing {
  background: var(--navy-deep);
  padding: 100px 48px;
  text-align: center;
}
.section-closing h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700; font-style: italic;
  color: var(--white); line-height: 1.35;
  margin-bottom: 24px; max-width: 760px; margin-left: auto; margin-right: auto;
}
.section-closing h2 span { color: var(--gold-lt); }
.closing-rule {
  width: 56px; height: 2px; background: var(--gold);
  margin: 0 auto 28px;
}
.section-closing p {
  font-size: 1rem; color: rgba(255,255,255,0.5);
  line-height: 1.75; margin-bottom: 36px; max-width: 600px;
  margin-left: auto; margin-right: auto;
}

/* ── PRICING CARD ────────────────────────────── */
.price-card {
  background: var(--white);
  border: 1px solid rgba(26,43,74,0.1);
  border-radius: 3px;
  padding: 36px 32px;
  text-align: center;
}
.price-card.featured {
  background: var(--navy);
  border-color: var(--gold);
}
.price-amount {
  font-family: var(--ff-display);
  font-size: 2.2rem; font-weight: 700; color: var(--gold);
  line-height: 1; margin-bottom: 6px;
}
.price-period { font-size: 0.8rem; color: var(--stone); margin-bottom: 20px; }
.price-period-light { color: rgba(255,255,255,0.45); }
.price-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.price-feature {
  font-size: 0.88rem; color: var(--stone);
  display: flex; align-items: center; gap: 8px;
  text-align: left;
}
.price-feature-light { color: rgba(255,255,255,0.7); }
.price-feature::before { content: '—'; color: var(--gold); font-weight: 700; flex-shrink: 0; }

/* ── MODULE / ACCORDION ──────────────────────── */
.module-item {
  border-bottom: 1px solid rgba(26,43,74,0.1);
  padding: 24px 0;
}
.module-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px; cursor: pointer;
}
.module-num {
  font-family: var(--ff-display);
  font-size: 1.5rem; font-weight: 700;
  color: var(--gold); opacity: 0.5;
  flex-shrink: 0; line-height: 1; margin-top: 2px;
}
.module-title {
  font-family: var(--ff-display);
  font-size: 1.05rem; font-weight: 600;
  color: var(--navy); line-height: 1.3; flex: 1;
}
.module-hours {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold); white-space: nowrap;
  flex-shrink: 0;
}
.module-body {
  padding-top: 14px;
}
.module-body ul { display: flex; flex-direction: column; gap: 6px; padding-left: 8px; }
.module-body li {
  font-size: 0.88rem; color: var(--stone); line-height: 1.5;
  display: flex; align-items: baseline; gap: 8px;
}
.module-body li::before { content: '·'; color: var(--gold); font-size: 1.2rem; flex-shrink: 0; }

/* ── FAQ ─────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid rgba(26,43,74,0.1);
}
.faq-question {
  width: 100%; background: none; border: none; cursor: pointer;
  padding: 20px 0; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; text-align: left;
}
.faq-question span {
  font-family: var(--ff-display);
  font-size: 1rem; font-weight: 600; color: var(--navy); line-height: 1.3;
}
.faq-icon { color: var(--gold); font-size: 1.2rem; flex-shrink: 0; transition: transform 0.3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: 20px; }
.faq-answer p { font-size: 0.9rem; color: var(--stone); line-height: 1.7; }

/* ── TIMELINE ────────────────────────────────── */
.timeline { display: flex; flex-direction: column; gap: 0; position: relative; }
.timeline::before {
  content: '';
  position: absolute; left: 20px; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}
.timeline-item {
  display: flex; gap: 32px; padding: 20px 0; padding-left: 56px; position: relative;
}
.timeline-dot {
  position: absolute; left: 12px; top: 26px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--cream);
  flex-shrink: 0;
}
.timeline-year {
  font-family: var(--ff-display);
  font-size: 0.85rem; font-weight: 700; color: var(--gold);
  white-space: nowrap; padding-top: 2px; min-width: 70px;
}
.timeline-content h4 {
  font-family: var(--ff-display);
  font-size: 1rem; font-weight: 600; color: var(--navy); margin-bottom: 4px;
}
.timeline-content p { font-size: 0.87rem; color: var(--stone); line-height: 1.6; }

/* ── TABLE ───────────────────────────────────── */
.criteria-table {
  width: 100%; border-collapse: collapse;
  font-family: var(--ff-body);
}
.criteria-table th {
  background: var(--navy);
  color: var(--gold-lt);
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 14px 18px; text-align: left; font-weight: 600;
}
.criteria-table td {
  padding: 16px 18px; font-size: 0.88rem; color: var(--stone);
  border-bottom: 1px solid rgba(26,43,74,0.08); vertical-align: top;
  line-height: 1.6;
}
.criteria-table tr:nth-child(even) td { background: rgba(26,43,74,0.02); }
.criteria-table td:last-child {
  font-family: var(--ff-display); font-size: 1rem; font-weight: 700;
  color: var(--gold); white-space: nowrap;
}

/* ── NEWS CARD ───────────────────────────────── */
.news-card {
  background: var(--white);
  border: 1px solid rgba(26,43,74,0.09);
  border-radius: 3px; padding: 28px 26px;
  display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow 0.3s, transform 0.3s;
}
.news-card:hover { box-shadow: 0 6px 30px rgba(26,43,74,0.09); transform: translateY(-2px); }
.news-date { font-size: 0.72rem; color: var(--stone); letter-spacing: 0.08em; }
.news-card h3 {
  font-family: var(--ff-display);
  font-size: 1rem; font-weight: 600; color: var(--navy); line-height: 1.35;
}
.news-card p { font-size: 0.85rem; color: var(--stone); line-height: 1.6; flex: 1; }

/* ── FOOTER ──────────────────────────────────── */
footer {
  background: #0D1825;
  color: rgba(255,255,255,0.45);
  padding: 60px 48px 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 28px;
}
.footer-brand-name {
  font-family: var(--ff-display);
  font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 4px;
}
.footer-brand-tag {
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.footer-brand-desc { font-size: 0.82rem; line-height: 1.7; color: rgba(255,255,255,0.65); }
.footer-col-title {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
  font-size: 0.82rem; color: rgba(255,255,255,0.72); transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.74rem; color: rgba(255,255,255,0.55);
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 900px) {
  .topbar { display: none; }
  nav { padding: 0 24px; }
  
/* ── LOGO IN NAV ─────────────────────────────── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.nav-logo-img {
  height: 56px;
  width: auto;
  flex-shrink: 0;
  display: block;
  border-radius: 0;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
@media (max-width: 700px) {
  .nav-logo-text { display: none; }
  .nav-logo-img { height: 40px; }
}

.nav-links { display: none; }
  .grid-2, .grid-3, .grid-half, .grid-2-1, .grid-1-2 {
    grid-template-columns: 1fr; gap: 32px;
  }
  .section-cream, .section-white, .section-navy, .section-deep,
  .section-closing, .page-hero { padding-left: 24px; padding-right: 24px; }
  .gold-rule-wrap, .gold-rule-wrap-dark { padding: 0 24px; }
}
@media (max-width: 560px) {
  .grid-2 { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .stat-row { gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .gold-rule { transition: none !important; }
}

/* ═══════════════════════════════════════════════
   ALTERNATING SECTIONS — claro / oscuro
   ═══════════════════════════════════════════════ */

/* LIGHT sections */
.section-alt-light {
  background: var(--cream) !important;
}
.section-alt-light h2,
.section-alt-light h3,
.section-alt-light .display-title { color: #1e3a6e !important; }
.section-alt-light h1 { color: #1e3a6e !important; }
.section-alt-light h2 { color: #1e3a6e !important; }
.section-alt-light h3 { color: #1e3a6e !important; }
.section-alt-light p,
.section-alt-light .body-lg       { color: var(--stone) !important; }
.section-alt-light .section-label { color: var(--gold)  !important; }
.section-alt-light .card          { background: var(--white) !important; border-color: rgba(26,43,74,0.09) !important; }
.section-alt-light .card h3       { color: var(--navy)  !important; }
.section-alt-light .card p        { color: var(--stone) !important; }
.section-alt-light .module-title  { color: var(--navy)  !important; }
.section-alt-light .module-body li { color: var(--stone) !important; }
.section-alt-light .faq-question span { color: var(--navy) !important; }
.section-alt-light .faq-answer p  { color: var(--stone) !important; }
.section-alt-light .faq-item      { border-bottom-color: rgba(26,43,74,0.1) !important; }
.section-alt-light .module-item   { border-bottom-color: rgba(26,43,74,0.1) !important; }
.section-alt-light .articulo      { border-bottom-color: rgba(26,43,74,0.1) !important; }
.section-alt-light .art-title     { color: var(--navy)  !important; }
.section-alt-light .art-body p,
.section-alt-light .art-body li   { color: var(--stone) !important; }
.section-alt-light .timeline-content h4 { color: var(--navy) !important; }
.section-alt-light .timeline-content p  { color: var(--stone) !important; }
.section-alt-light .news-card      { background: var(--white) !important; }
.section-alt-light .news-card h3   { color: var(--navy)  !important; }
.section-alt-light .news-card p    { color: var(--stone) !important; }

/* DARK sections */
.section-alt-dark {
  background: var(--navy) !important;
}
.section-alt-dark h2,
.section-alt-dark h3,
.section-alt-dark .display-title  { color: var(--white) !important; }
.section-alt-dark p,
.section-alt-dark .body-lg        { color: rgba(255,255,255,0.65) !important; }
.section-alt-dark .section-label  { color: var(--gold)  !important; }
/* card colors handled below */
.section-alt-dark .module-title   { color: var(--white) !important; }
.section-alt-dark .module-body li { color: rgba(255,255,255,0.6) !important; }
.section-alt-dark .module-item    { border-bottom-color: rgba(255,255,255,0.1) !important; }
.section-alt-dark .faq-question span { color: var(--white) !important; }
.section-alt-dark .faq-answer p   { color: rgba(255,255,255,0.6) !important; }
.section-alt-dark .faq-item       { border-bottom-color: rgba(255,255,255,0.1) !important; }
.section-alt-dark .articulo       { border-bottom-color: rgba(255,255,255,0.1) !important; }
.section-alt-dark .art-title      { color: var(--white) !important; }
.section-alt-dark .art-body p,
.section-alt-dark .art-body li    { color: rgba(255,255,255,0.6) !important; }
.section-alt-dark .timeline-content h4 { color: var(--white) !important; }
.section-alt-dark .timeline-content p  { color: rgba(255,255,255,0.6) !important; }
.section-alt-dark .timeline-dot   { border-color: var(--navy) !important; }
.section-alt-dark .news-card      { background: #1e3158 !important; border-color: rgba(201,168,76,0.15) !important; }
.section-alt-dark .news-card h3   { color: var(--white)  !important; }
.section-alt-dark .news-card p    { color: rgba(255,255,255,0.55) !important; }
.section-alt-dark .news-date      { color: rgba(255,255,255,0.4)  !important; }
.section-alt-dark .btn-ghost-dark { border-color: rgba(255,255,255,0.3) !important; color: var(--white) !important; }
.section-alt-dark .btn-ghost-dark:hover { border-color: var(--gold) !important; color: var(--gold) !important; }
.section-alt-dark .criteria-table th { background: #111E34 !important; }
.section-alt-dark .criteria-table td { color: rgba(255,255,255,0.65) !important; border-bottom-color: rgba(255,255,255,0.08) !important; }
.section-alt-dark .search-bar     { background: #1e3158 !important; border-color: rgba(201,168,76,0.2) !important; }
.section-alt-dark .search-bar h3  { color: var(--white) !important; }
.section-alt-dark .filter-select  { background: #111E34 !important; color: var(--white) !important; }
.section-alt-dark .quote-block    { background: #111E34 !important; }

/* Card-dark on cream sections — medium blue for good contrast */
.section-alt-light .card-dark h3,
.section-alt-light .card-dark p,
.section-alt-light .card-dark .pillar-num { color: var(--white) !important; }
.section-alt-light .card-dark p { color: rgba(255,255,255,0.75) !important; }
.section-alt-light .card-dark { background: #1e3158 !important; border: 3px solid var(--gold-lt) !important; }

/* ── CARDS ON DARK SECTIONS (cream cards with gold border) ── */
.section-alt-dark .card {
  background: var(--cream) !important;
  border: 3px solid rgba(201,168,76,0.8) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.section-alt-dark .card:hover {
  border-color: var(--gold) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  transform: translateY(-3px);
}
.section-alt-dark .card h3       { color: var(--navy)  !important; }
.section-alt-dark .card p        { color: var(--stone) !important; }
.section-alt-dark .card-tag      { color: var(--gold)  !important; }
.section-alt-dark .card-link     { color: var(--navy)  !important; }
.section-alt-dark .card-link:hover { color: var(--gold) !important; }
.section-alt-dark .card::after   { background: var(--gold); }

/* ── CARD-DARK — lighter blue everywhere ── */
.card-dark {
  background: #253654 !important;
  border-color: rgba(201,168,76,0.2) !important;
}

/* Cards on cream sections — white bg with gold shadow for visibility */
.section-alt-light .card {
  background: var(--white) !important;
  border: 3px solid #C9A84C !important;
  box-shadow: 0 2px 16px rgba(201,168,76,0.2) !important;
}

/* Quote-block on light sections — keep white text, only override when explicitly needed */
.section-alt-light .quote-block::before { color: var(--gold) !important; opacity: 1; }

/* ============================================================
   DIPLOMADO NAV — compartido en formacion + 5 diplomados
   ============================================================ */
.diplo-nav {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  border-bottom: 2px solid rgba(201,168,76,0.25);
  margin-bottom: 40px;
}
.diplo-nav a {
  padding: 13px 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stone);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
  text-decoration: none;
}
.diplo-nav a:hover { color: var(--navy); border-bottom-color: rgba(201,168,76,0.5); }
.diplo-nav a.diplo-current { color: var(--navy); border-bottom-color: var(--gold); }
.diplo-nav a.diplo-optional { color: var(--gold); }
.diplo-nav a.diplo-optional.diplo-current { color: var(--navy); }
@media(max-width:700px){
  .diplo-nav a { padding: 10px 12px; font-size: 0.7rem; }
}

/* Track badges */
.track-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 12px;
}
.track-1 { background: var(--navy); color: var(--gold); }
.track-2 { background: rgba(201,168,76,0.15); color: var(--navy); border: 1px solid var(--gold); }
