:root {
  --brand: #b89a57;
  --brand-2: #d0b06a;
  --brand-3: #8b7440;
  --ink: #1f1f1c;
  --muted: #5f5a4f;
  --bg: #f7f5ef;
  --surface: #ffffff;
  --surface-2: #f3efe3;
  --border: rgba(64, 53, 27, 0.12);
  --shadow: 0 20px 60px rgba(53, 42, 21, 0.10);
  --shadow-soft: 0 10px 25px rgba(53, 42, 21, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #faf8f2 0%, #f3efe5 100%);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.page-top-space { padding-top: 110px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(184,154,87,0.14);
  color: var(--brand);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

h1,h2,h3,h4 { margin: 0 0 14px; line-height: 1.08; font-family: "Cormorant Garamond", Georgia, serif; }
h1 { font-size: clamp(2.4rem, 4.2vw, 4.9rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.8rem, 3vw, 3rem); letter-spacing: -.03em; }
h3 { font-size: 1.22rem; }
p { margin: 0 0 14px; color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); max-width: 760px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.badge-list, .check-list, .mini-list { list-style: none; padding: 0; margin: 0; }
.badge-list li,
.check-list li,
.mini-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--ink);
}
.check-list li::before,
.mini-list li::before,
.badge-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .52em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 0 4px rgba(19,111,138,0.12);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: saturate(180%) blur(12px);
  background: rgba(250, 248, 242, 0.88);
  border-bottom: 1px solid rgba(16,33,49,0.07);
}
.navbar {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.brand-logo { width: 62px; height: auto; object-fit: contain; }
.footer-brand .brand-logo { width: 58px; }
.brand small { display: block; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.nav-links a { color: var(--muted); font-weight: 600; }
.nav-links a:hover, .nav-links a.active { color: var(--brand); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: .22s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: white; box-shadow: var(--shadow-soft); }
.btn-secondary { background: white; border-color: rgba(184,154,87,0.32); color: var(--brand-3); }
.btn-ghost { border-color: rgba(16,33,49,0.12); color: var(--ink); background: rgba(255,255,255,0.55); }
.btn-full { width: 100%; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 74px;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
}
.hero::before {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(19,111,138,0.16), rgba(19,111,138,0) 70%);
  top: -120px; right: -120px;
}
.hero::after {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(15,118,110,0.12), rgba(15,118,110,0) 70%);
  left: -120px; bottom: -140px;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 30px;
  align-items: center;
}
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
  margin-top: 28px;
}
.stat-box, .glass-card, .card, .course-card, .feature-card, .article-card, .team-card, .contact-card, .pricing-card, .quote-card, .catalog-banner {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.stat-box {
  padding: 18px;
}
.stat-box strong { display: block; font-size: 1.25rem; color: var(--brand); }
.hero-panel {
  padding: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(237,244,248,0.92));
}
.hero-panel .panel-grid { display: grid; gap: 16px; }
.metric {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px; border-radius: 16px; background: white; border: 1px solid rgba(16,33,49,0.07);
}
.metric-icon {
  width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, rgba(15,61,95,0.14), rgba(19,111,138,0.14));
  display: grid; place-items: center; font-weight: 800; color: var(--brand);
}

.card { padding: 28px; }
.card-header { margin-bottom: 14px; }
.section-heading { margin-bottom: 28px; }
.section-heading p { max-width: 760px; }
.surface {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,248,251,0.95));
}
.feature-card, .course-card, .article-card, .team-card, .contact-card, .pricing-card, .quote-card { padding: 24px; height: 100%; }
.feature-card h3, .course-card h3, .article-card h3, .team-card h3 { margin-bottom: 10px; }
.kicker { color: var(--brand); font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.icon-chip {
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 16px;
  display: grid; place-items: center; font-weight: 800; color: var(--brand);
  background: linear-gradient(135deg, rgba(15,61,95,0.12), rgba(19,111,138,0.12));
}
.split {
  display: grid; grid-template-columns: .95fr 1.05fr; gap: 28px; align-items: center;
}
.highlight-panel {
  min-height: 100%;
  padding: 32px;
  background: linear-gradient(145deg, #25211a, #54462a);
  color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.highlight-panel p { color: rgba(255,255,255,.82); }
.highlight-panel .check-list li { color: white; }
.highlight-panel .check-list li::before { box-shadow: 0 0 0 4px rgba(255,255,255,.16); background: white; }

.catalog-banner {
  padding: 28px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  align-items: center;
  background: linear-gradient(130deg, #2b261d, #5b4a2b);
  color: white;
}
.catalog-banner p { color: rgba(255,255,255,0.82); }
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.course-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.course-card .tag-row, .pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(19,111,138,0.09);
  color: var(--brand);
  font-size: .88rem;
  font-weight: 700;
}
.course-meta {
  display: grid; gap: 8px; margin: 4px 0 8px;
}
.course-meta span {
  display: flex; align-items: center; gap: 8px; color: var(--muted);
}
.price-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
}
.price { font-size: 1.5rem; font-weight: 800; color: var(--brand); letter-spacing: -.03em; }
.price-note { font-size: .9rem; color: var(--muted); }
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 30px;
}
.filter-btn {
  border: 1px solid rgba(16,33,49,.10);
  background: white;
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}
.filter-btn.active { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: white; border-color: transparent; }
.hidden { display: none !important; }

.article-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}
.team-card .role { color: var(--brand); font-weight: 700; margin-bottom: 8px; }
.team-card .email { color: var(--brand-2); font-weight: 600; }

.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; }
.contact-card form, .contact-form { display: grid; gap: 16px; }
label { font-weight: 700; color: var(--ink); font-size: .95rem; }
input, textarea, select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(16,33,49,0.12);
  background: white;
  font: inherit;
  color: var(--ink);
}
textarea { min-height: 140px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.help { font-size: .88rem; color: var(--muted); }

.cta-band {
  padding: 32px;
  border-radius: 24px;
  background: linear-gradient(130deg, #2c271d, #7a6538);
  color: white;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.cta-band p { color: rgba(255,255,255,.84); }

.site-footer {
  padding: 38px 0 28px;
  border-top: 1px solid rgba(16,33,49,0.08);
  background: #fbfdff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr .8fr .8fr;
  gap: 26px;
}
.footer-nav, .footer-contact { display: grid; gap: 8px; }
.footer-small {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(16,33,49,0.08);
  color: var(--muted);
  font-size: .94rem;
}
.course-hero {
  padding: 48px 0 68px;
}
.course-layout {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px;
}
.sticky-card { position: sticky; top: 104px; }
.detail-list { display: grid; gap: 10px; margin: 18px 0 0; }
.detail-list div {
  display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(16,33,49,.08);
}
.quote-card { background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(237,244,248,.88)); }
.notice {
  font-size: .9rem;
  color: var(--muted);
  background: rgba(19,111,138,.08);
  padding: 12px 14px;
  border-radius: 14px;
}

@media (max-width: 1040px) {
  .hero-grid, .split, .catalog-banner, .contact-layout, .course-layout, .footer-grid { grid-template-columns: 1fr; }
  .catalog-grid, .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .stat-strip, .grid-2, .grid-3, .catalog-grid, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .navbar { min-height: 74px; }
  .hero { padding-top: 52px; }
  .section { padding: 64px 0; }
  .cta-band { grid-template-columns: 1fr; }
}

.image-card { overflow: hidden; }
.image-card img, .image-panel img, .thumb, .contact-banner { width: 100%; height: auto; border-radius: 14px; display: block; }
.hero-home .hero-panel { padding: 16px; }
.thumb { aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 14px; }
.avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; border: 3px solid rgba(184,154,87,.22); }
.team-grid .team-card, .experts-grid .team-card { text-align: left; }
.industries-grid .course-card { padding: 18px; }
.contact-banner { margin-bottom: 18px; }
.notice { background: rgba(184,154,87,.12); }
.site-footer { background: #fcfaf5; }
.nav-links a:hover, .nav-links a.active, .team-card .email { color: var(--brand-3); }
.pill, .eyebrow { letter-spacing: .04em; }
@media (max-width: 760px) {
  .brand-logo { width: 50px; }
}
.ai-recommendation {
  margin-top: 15px;
  padding: 12px;
  background: rgba(0,0,0,0.04);
  border-radius: 10px;
  font-size: 14px;
}

.ai-recommendation h4 {
  margin-bottom: 6px;
}

.hidden {
  display: none;
}
.course-card {
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  height: auto;          /* 🔥 CLAVE */
  min-height: 260px;     /* opcional */
}
.categories-wrapper {
  margin-top: 40px;
  margin-bottom: 40px;
}

.categories-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 20px;
}

.categories-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 260px;
}

.category-parent {
  font-weight: 600;
  margin-bottom: 10px;
  color: #111;
}

.category-child {
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  color: #555;
  transition: all 0.2s ease;
}

.category-child:hover {
  background: #f5f5f5;
}

.category-child.active {
  background: #000;
  color: white;
  font-weight: 600;
}
/* =========================
   CATEGORÍAS HORIZONTALES
========================= */

.categories-horizontal {

  display: flex;

  flex-direction: column;

  gap: 46px;

}

.category-block {

  display: flex;

  flex-direction: column;

  gap: 22px;

}

.category-parent {

  font-size: 1.8rem;

  font-weight: 700;

  color: #1f1f1f;

}

.category-row {

  display: flex;

  flex-wrap: wrap;

  gap: 16px;

}

.category-chip {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  padding: 15px 24px;

  border-radius: 999px;

  background: white;

  border: 1px solid rgba(0,0,0,0.08);

  font-weight: 600;

  cursor: pointer;

  transition: 0.3s ease;

}

.category-chip:hover {

  background: #b5964d;

  color: white;

  transform: translateY(-3px);

  box-shadow: 0 10px 24px rgba(0,0,0,0.08);

}

.category-chip.active {

  background: #b5964d;

  color: white;

  border-color: #b5964d;

}