/* ═══════════════════════════════════════════════════
   Academia AdviserGroup — main.css
   Light theme — KnowledgeHut-inspired
   ═══════════════════════════════════════════════════ */

/* ── VARIABLES ───────────────────────────────────── */
:root {
  --verde:        #85BC24;
  --verde-dark:   #6a9a1a;
  --verde-pale:   #f0f7e0;
  --negro:        #0D1117;
  --blanco:       #FFFFFF;
  --gris-bg:      #F8F9FA;
  --gris-card:    #FFFFFF;
  --gris-border:  #E5E7EB;
  --texto:        #111827;
  --texto-soft:   #6B7280;
  --texto-muted:  #9CA3AF;
  --sombra:       0 4px 16px rgba(0,0,0,0.08);
  --sombra-hover: 0 8px 32px rgba(0,0,0,0.14);
  --ser: 'Playfair Display', Georgia, serif;
  --san: 'DM Sans', sans-serif;
  --r-sm:  4px;
  --r-md:  8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-2xl:20px;
}

/* ── RESET ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--san);
  font-size: 16px;
  line-height: 1.5;
  color: var(--texto);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: var(--san); }

/* ── ANNOUNCEMENT BAR ────────────────────────────── */
.announce-bar {
  height: 36px;
  background: var(--negro);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 40px;
}
.announce-bar-text {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  font-family: var(--san);
}
.announce-bar-link {
  font-size: 13px;
  color: var(--verde);
  font-family: var(--san);
  font-weight: 500;
  white-space: nowrap;
  transition: opacity .15s;
}
.announce-bar-link:hover { opacity: .8; text-decoration: underline; }

/* ── NAV ─────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 68px;
  background: var(--blanco);
  border-bottom: 1px solid var(--gris-border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: 4px;
}
.nav-logo-mark {
  width: 34px;
  height: 34px;
  background: var(--negro);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-brand { display: flex; flex-direction: column; line-height: 1; }
.nav-brand-top {
  font-family: var(--ser);
  font-weight: 700;
  font-size: 16px;
  color: var(--texto);
  line-height: 1.2;
}
.nav-brand-sub {
  font-family: var(--san);
  font-weight: 600;
  font-size: 10px;
  color: var(--verde);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
}
.nav-courses-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: var(--gris-bg);
  border: 1px solid var(--gris-border);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--texto);
  transition: border-color .15s, background .15s, color .15s;
  flex-shrink: 0;
  white-space: nowrap;
}
.nav-courses-btn:hover { border-color: var(--verde); background: var(--verde-pale); }
.nav-courses-btn.open { border-color: var(--verde); color: var(--verde); background: var(--verde-pale); }
.nav-courses-chevron { transition: transform .2s; }
.nav-courses-btn.open .nav-courses-chevron { transform: rotate(180deg); }

/* ── NAV DROPDOWN SIMPLE ─────────────────────────── */
.nav-dropdown-wrap { position: relative; }

.nav-link-dropdown-btn {
  background: none;
  border: none;
  font-family: var(--san);
  font-size: 14px;
  font-weight: 500;
  color: var(--texto-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 4px;
  transition: color .15s;
  white-space: nowrap;
}
.nav-link-dropdown-btn:hover,
.nav-link-dropdown-btn.open { color: var(--texto); }

.nav-chevron { transition: transform .15s ease; flex-shrink: 0; }
.nav-chevron.rotated { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--blanco);
  border: 1px solid var(--gris-border);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  min-width: 340px;
  padding: 6px 0;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .12s ease, visibility .12s, transform .12s ease;
}
.nav-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }

.nav-dropdown-item {
  display: block;
  padding: 11px 20px;
  font-family: var(--san);
  font-size: 14px;
  font-weight: 400;
  color: #374151;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav-dropdown-item:hover { background: var(--gris-bg); color: var(--verde); }

.nav-search {
  flex: 1;
  max-width: 420px;
  position: relative;
}
.nav-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--texto-muted);
}
.nav-search input {
  width: 100%;
  height: 40px;
  padding: 0 16px 0 38px;
  background: var(--gris-bg);
  border: 1px solid var(--gris-border);
  border-radius: 8px;
  font-family: var(--san);
  font-size: 14px;
  color: var(--texto);
  outline: none;
  transition: border-color .15s;
}
.nav-search input::placeholder { color: var(--texto-muted); }
.nav-search input:focus { border-color: var(--verde); background: var(--blanco); }

.nav-links-secondary {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav-links-secondary a {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--texto-soft);
  border-radius: 4px;
  transition: color .15s;
  white-space: nowrap;
}
.nav-links-secondary a:hover { color: var(--verde); }

.nav-divider {
  width: 1px;
  height: 20px;
  background: var(--gris-border);
  margin: 0 4px;
  flex-shrink: 0;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.btn-ghost {
  padding: 8px 16px;
  border: 1px solid var(--gris-border);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--texto);
  transition: border-color .15s, color .15s;
  display: inline-block;
  white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--verde); color: var(--verde); }
.btn-primary {
  padding: 8px 20px;
  background: var(--verde);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background .15s, transform .15s;
  display: inline-block;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--verde-dark); transform: translateY(-1px); }

/* ── MEGA-MENU ───────────────────────────────────── */
.mega-panel {
  position: fixed;
  left: 0;
  right: 0;
  background: var(--blanco);
  border-top: 3px solid var(--verde);
  box-shadow: 0 16px 40px rgba(0,0,0,0.15);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .15s ease, visibility .15s, transform .15s ease;
}
.mega-panel.open { opacity: 1; visibility: visible; transform: translateY(0); }

.mega-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 200px 1fr 200px 210px;
  min-height: 400px;
}

.mega-col-domains {
  background: var(--gris-bg);
  border-right: 1px solid var(--gris-border);
  padding: 16px 0;
  flex-shrink: 0;
}
.mega-domain-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  border-left: 3px solid transparent;
  transition: background .12s, color .12s, border-color .12s;
  user-select: none;
}
.mega-domain-item svg { color: var(--texto-soft); flex-shrink: 0; transition: color .12s; }
.mega-domain-item:hover,
.mega-domain-item.active {
  background: var(--verde-pale);
  color: var(--verde);
  border-left-color: var(--verde);
}
.mega-domain-item:hover svg,
.mega-domain-item.active svg { color: var(--verde); }
.mega-see-all {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--verde);
  margin-top: 8px;
  border-top: 1px solid var(--gris-border);
  cursor: pointer;
  transition: opacity .15s;
}
.mega-see-all:hover { opacity: .8; }

.mega-col-certs {
  padding: 24px;
  border-right: 1px solid var(--gris-border);
  overflow-y: auto;
  max-height: 480px;
}
.mega-col-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--texto);
  margin-bottom: 4px;
}
.mega-col-sub {
  font-size: 13px;
  color: var(--texto-soft);
  margin-bottom: 16px;
}
.mega-section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--texto-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 16px 0 8px;
}
.mega-section-label:first-of-type { margin-top: 0; }

.mega-course-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .12s;
  text-decoration: none;
  color: inherit;
}
.mega-course-item:hover { background: var(--gris-bg); }
.mega-course-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--verde-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mega-course-meta {
  font-size: 11px;
  color: var(--texto-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}
.mega-course-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--texto);
  line-height: 1.3;
}
.mega-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.mega-badge-best  { background: var(--verde);      color: #fff; }
.mega-badge-trend { background: var(--verde-pale);  color: var(--verde); }
.mega-badge-soon  { background: #F3F4F6;            color: var(--texto-soft); }
.mega-badge-pmi   { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; }

.mega-col-programs {
  padding: 24px 20px;
  border-right: 1px solid var(--gris-border);
}
.mega-prog-section { margin-bottom: 20px; }
.mega-prog-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--texto-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}
.mega-prog-item {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--texto-soft);
  padding: 7px 10px;
  border-radius: 5px;
  transition: background .12s, color .12s;
}
.mega-prog-item:hover { background: var(--gris-bg); color: var(--verde); }

.mega-col-resources { padding: 24px 20px; }
.mega-res-section { margin-bottom: 20px; }
.mega-res-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--texto-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}
.mega-res-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--texto-soft);
  padding: 6px 4px;
  transition: color .12s;
  text-decoration: none;
}
.mega-res-item:hover { color: var(--verde); }
.mega-res-item svg { color: var(--verde); flex-shrink: 0; }

.mega-acred-logos { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.mega-acred-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--texto-soft); }
.mega-acred-circle {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gris-bg);
  border: 1px solid var(--gris-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700;
  color: var(--texto-soft);
  flex-shrink: 0;
}

/* ── HERO ────────────────────────────────────────── */
.hero {
  background: var(--blanco);
  padding: 64px 40px 48px;
}
.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--verde);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}
.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--verde);
  flex-shrink: 0;
}
.hero-h1 {
  font-family: var(--ser);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: #111827;
  line-height: 1.1;
  margin-bottom: 0;
}
.hero-h1-underline {
  position: relative;
  display: inline-block;
}
.hero-h1-underline svg {
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  pointer-events: none;
}
.hero-body {
  font-size: 17px;
  font-weight: 400;
  color: #374151;
  line-height: 1.65;
  margin-top: 0;
  max-width: 520px;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
  align-items: center;
}
.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--verde);
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn-cta-primary:hover {
  background: var(--verde-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(133,188,36,0.35);
}
.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 28px;
  border: 1.5px solid var(--gris-border);
  color: var(--texto);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: border-color .2s, color .2s;
  white-space: nowrap;
}
.btn-cta-secondary:hover { border-color: var(--verde); color: var(--verde); }

.hero-trusted { margin-top: 44px; }
.hero-trusted-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--texto-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.hero-trusted-logos {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-trusted-badge {
  background: var(--gris-bg);
  border: 1px solid var(--gris-border);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--texto-soft);
}
.hero-trusted-more {
  font-size: 11px;
  color: var(--texto-muted);
  margin-top: 8px;
}
.hero-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.hero-avatars { display: flex; }
.hero-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--blanco);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  margin-left: -8px;
}
.hero-avatar:first-child { margin-left: 0; }
.hero-rating-text { font-size: 13px; color: var(--texto-soft); }
.hero-star { color: #F59E0B; }

.hero-card-dark {
  background: var(--negro);
  border-radius: 16px;
  padding: 40px 32px;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-card-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
}
.hero-card-logo {
  width: 52px;
  height: 52px;
  background: rgba(133,188,36,0.12);
  border: 1px solid rgba(133,188,36,0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.hero-card-title {
  font-family: var(--ser);
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 12px;
}
.hero-card-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  margin-bottom: 24px;
}
.hero-card-badge {
  display: inline-block;
  background: rgba(133,188,36,0.15);
  border: 1px solid rgba(133,188,36,0.4);
  color: var(--verde);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 18px;
  border-radius: 100px;
}

/* ── CERTS BAND ──────────────────────────────────── */
.certs-band {
  background: var(--blanco);
  padding: 0 40px 48px;
}
.certs-band-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--blanco);
  border: 1px solid var(--gris-border);
  border-radius: 16px;
  padding: 24px 32px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.certs-band-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--texto);
  text-align: center;
  margin-bottom: 20px;
}
.certs-band-scroll {
  overflow: hidden;
  position: relative;
}
.certs-band-scroll::before,
.certs-band-scroll::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  z-index: 1;
  pointer-events: none;
}
.certs-band-scroll::before {
  left: 0;
  background: linear-gradient(to right, var(--blanco), transparent);
}
.certs-band-scroll::after {
  right: 0;
  background: linear-gradient(to left, var(--blanco), transparent);
}
.certs-band-track {
  display: flex;
  gap: 40px;
  animation: scroll-logos 30s linear infinite;
  width: max-content;
  align-items: center;
}
.certs-band-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.certs-band-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gris-bg);
  border: 1px solid var(--gris-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--texto-soft);
}
.certs-band-label {
  font-size: 11px;
  color: var(--texto-muted);
  white-space: nowrap;
}
@keyframes scroll-logos {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── SECTION COMMONS ─────────────────────────────── */
.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}
.section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--verde);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--ser);
  font-size: 38px;
  font-weight: 800;
  color: var(--texto);
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.15;
}
.section-sub {
  font-size: 16px;
  color: var(--texto-soft);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

/* ── DOMAINS SECTION ─────────────────────────────── */
.dominios-section {
  background: var(--gris-bg);
  padding: 72px 40px;
  position: relative;
  overflow: hidden;
}
.dominios-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.dominio-card {
  background: var(--blanco);
  border: 1px solid var(--gris-border);
  border-radius: 12px;
  padding: 20px 24px;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  text-decoration: none;
}
.dominio-card:hover {
  border-color: var(--verde);
  box-shadow: 0 4px 16px rgba(133,188,36,0.15);
  transform: translateY(-2px);
}
.dominio-card-icon { color: var(--verde); flex-shrink: 0; }
.dominio-card-name { font-size: 15px; font-weight: 600; color: var(--texto); display: block; }
.dominio-card-link { font-size: 12px; color: var(--verde); display: block; margin-top: 2px; }
.dominios-cta { text-align: center; margin-top: 40px; }
.btn-dark {
  display: inline-block;
  padding: 12px 28px;
  background: var(--texto);
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background .2s;
}
.btn-dark:hover { background: var(--verde); }

/* ── SERVICES ────────────────────────────────────── */
.servicios-section {
  background: var(--blanco);
  padding: 0 40px 64px;
}
.servicios-card {
  max-width: 960px;
  margin: 0 auto;
  background: var(--blanco);
  border: 1px solid var(--gris-border);
  border-radius: 16px;
  padding: 32px 40px;
}
.servicios-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--texto);
  text-align: center;
  margin-bottom: 24px;
}
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.servicio-item { display: flex; align-items: center; gap: 14px; }
.servicio-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.servicio-name { font-size: 14px; font-weight: 700; color: var(--texto); display: block; }
.servicio-sub  { font-size: 12px; color: var(--texto-soft); display: block; margin-top: 2px; }

/* ── COURSE GRID ─────────────────────────────────── */
.cursos-section {
  background: var(--blanco);
  padding: 64px 40px;
}
.cursos-inner { max-width: 1280px; margin: 0 auto; }
.tab-strip {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--gris-border);
  margin-bottom: 32px;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-strip::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--texto-soft);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
  background: none;
  cursor: pointer;
}
.tab-btn:hover { color: var(--texto); }
.tab-btn.active { color: var(--texto); font-weight: 600; border-bottom-color: var(--verde); }

#cursos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* KH-Style Light Card */
.kh-card {
  background: var(--blanco);
  border: 1px solid var(--gris-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s, transform .25s;
}
.kh-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}
.kh-card.hidden { display: none; }

.kh-thumb {
  height: 200px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.kh-thumb img { width: 100%; height: 100%; object-fit: cover; }
.kh-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #0c1a03, #1a3008, #0e1e04);
  display: flex;
  align-items: center;
  justify-content: center;
}
.kh-card-badge-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--verde);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}
.kh-card-badge-overlay.trend { background: #111827; }
.kh-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.kh-card-type { font-size: 12px; color: var(--texto-muted); margin-bottom: 6px; }
.kh-card-name { font-size: 16px; font-weight: 700; color: var(--texto); line-height: 1.3; margin-bottom: 14px; }
.kh-card-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.kh-meta-item { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--texto-soft); }
.kh-meta-item svg { color: var(--texto-muted); }
.kh-price-row { margin-top: auto; }
.kh-desde { font-size: 12px; color: var(--texto-muted); }
.kh-price { font-size: 20px; font-weight: 700; color: var(--texto); line-height: 1.2; }
.kh-price-cur { font-size: 13px; font-weight: 400; color: var(--texto-soft); }
.kh-price-proximo { font-size: 14px; font-weight: 600; color: var(--texto-muted); padding: 4px 0; }
.kh-divider { height: 1px; background: var(--gris-border); margin: 16px 0; }
.kh-actions { display: flex; gap: 8px; }
.kh-btn-ver {
  flex: 1;
  padding: 9px 16px;
  border: 1px solid var(--gris-border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--texto);
  text-align: center;
  transition: border-color .15s, color .15s;
  display: block;
}
.kh-btn-ver:hover { border-color: var(--verde); color: var(--verde); }
.kh-btn-temario {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: var(--texto);
  color: #fff;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: background .15s;
  flex-shrink: 0;
  white-space: nowrap;
}
.kh-btn-temario:hover { background: var(--verde); }
.kh-btn-proximo {
  flex: 1;
  padding: 9px 16px;
  background: var(--gris-bg);
  color: var(--texto-muted);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  border: 1px solid var(--gris-border);
}

.cursos-ver-mas { text-align: center; margin-top: 40px; }
.btn-ver-mas {
  padding: 10px 28px;
  border: 1px solid var(--gris-border);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--texto-soft);
  transition: border-color .15s, color .15s;
  background: none;
  cursor: pointer;
}
.btn-ver-mas:hover { border-color: var(--verde); color: var(--verde); }

/* ── METHODOLOGY ─────────────────────────────────── */
.metodologia-section { background: var(--gris-bg); padding: 72px 40px; }
.metodo-card {
  max-width: 900px;
  margin: 48px auto 0;
  background: var(--blanco);
  border: 1px solid var(--gris-border);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  gap: 40px;
  align-items: center;
}
.metodo-left { flex: 0 0 40%; }
.metodo-number {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--verde-pale);
  border: 2px solid var(--verde);
  color: var(--verde);
  font-size: 22px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.metodo-step-title { font-family: var(--ser); font-size: 24px; font-weight: 700; color: var(--texto); margin: 16px 0 12px; }
.metodo-step-text { font-size: 15px; color: var(--texto-soft); line-height: 1.65; }
.metodo-right { flex: 1; }
.metodo-preview-card { background: var(--negro); border-radius: 12px; padding: 24px; }
.metodo-preview-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.metodo-preview-sub { font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 20px; }
.metodo-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.metodo-stat { font-size: 13px; color: rgba(255,255,255,.6); background: rgba(255,255,255,.06); padding: 6px 12px; border-radius: 4px; }
.metodo-badge {
  display: inline-block;
  margin-top: 16px;
  background: rgba(133,188,36,.18);
  border: 1px solid rgba(133,188,36,.4);
  color: var(--verde);
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px;
}
.metodo-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; }
.metodo-nav-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gris-border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  background: var(--blanco); color: var(--texto-soft);
}
.metodo-nav-btn:hover { border-color: var(--verde); background: var(--verde-pale); color: var(--verde); }
.metodo-dots { display: flex; gap: 6px; }
.metodo-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gris-border);
  cursor: pointer;
  transition: background .15s; border: none;
}
.metodo-dot.active { background: var(--verde); }

/* ── INSTRUCTORS ─────────────────────────────────── */
.instructores-section { background: var(--gris-bg); padding: 72px 40px; }
.instructores-stats-card {
  max-width: 900px; margin: 32px auto 0;
  background: var(--blanco);
  border: 1px solid var(--gris-border);
  border-radius: 12px;
  padding: 20px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.instructor-stat {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 16px;
  border-right: 1px solid var(--gris-border);
}
.instructor-stat:last-child { border-right: none; }
.instructor-stat-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--verde-pale);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.instructor-stat-num { font-size: 18px; font-weight: 800; color: var(--texto); line-height: 1; }
.instructor-stat-label { font-size: 12px; color: var(--texto-soft); line-height: 1.3; margin-top: 2px; }
.instructores-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px; max-width: 900px; margin: 48px auto 0;
}
.instructor-card {
  background: var(--blanco);
  border: 1px solid var(--gris-border);
  border-radius: 16px; padding: 32px;
  display: flex; gap: 20px;
  transition: box-shadow .2s;
}
.instructor-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
.instructor-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 3px solid var(--verde);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ser); font-size: 26px; font-weight: 700;
  color: #fff; flex-shrink: 0;
}
.instructor-name { font-family: var(--ser); font-size: 20px; font-weight: 700; color: var(--texto); margin-bottom: 4px; }
.instructor-role { font-size: 13px; font-weight: 600; color: var(--verde); margin-bottom: 8px; }
.instructor-worked-label { font-size: 12px; color: var(--texto-muted); margin-bottom: 6px; }
.instructor-bio { font-size: 14px; color: var(--texto-soft); line-height: 1.6; margin: 8px 0; }
.instructor-certs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.cert-chip { background: var(--texto); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 4px; }

/* ── COMMUNITY ───────────────────────────────────── */
.comunidad-section { background: var(--blanco); padding: 72px 40px; }
.comunidad-metrics { display: flex; justify-content: center; gap: 64px; margin-top: 48px; flex-wrap: wrap; }
.comunidad-metric { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.comunidad-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.comunidad-num { font-size: 48px; font-weight: 800; line-height: 1; }
.comunidad-label { font-size: 14px; color: var(--texto-soft); max-width: 130px; }

/* ── TESTIMONIALS ────────────────────────────────── */
.testimonios-section { background: var(--gris-bg); padding: 72px 40px; }
.testimonios-tabs { display: flex; justify-content: center; gap: 8px; margin-top: 24px; margin-bottom: 40px; }
.testimonio-tab {
  padding: 8px 20px;
  border: 1px solid var(--gris-border);
  border-radius: 100px;
  font-size: 14px; font-weight: 500;
  color: var(--texto-soft);
  cursor: pointer; transition: all .15s;
  background: var(--blanco);
}
.testimonio-tab:hover { border-color: var(--verde); color: var(--verde); }
.testimonio-tab.active { background: var(--texto); color: #fff; border-color: var(--texto); }
.testimonios-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px; max-width: 900px; margin: 0 auto;
}
.testimonio-card {
  background: var(--blanco);
  border: 1px solid var(--gris-border);
  border-radius: 16px; padding: 28px;
  position: relative;
}
.testimonio-quote {
  position: absolute; top: 14px; left: 20px;
  color: var(--gris-border);
  font-size: 56px; line-height: 1;
  font-family: Georgia, serif;
  pointer-events: none; user-select: none;
}
.testimonio-title { font-size: 16px; font-weight: 700; color: var(--texto); margin-bottom: 8px; padding-top: 8px; }
.testimonio-stars { display: flex; gap: 2px; margin-bottom: 12px; }
.testimonio-star { color: #F59E0B; }
.testimonio-text { font-size: 14px; color: #374151; line-height: 1.7; margin-bottom: 20px; }
.testimonio-author { display: flex; align-items: center; justify-content: space-between; }
.testimonio-author-info { display: flex; align-items: center; gap: 12px; }
.testimonio-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #fff; }
.testimonio-name { font-size: 14px; font-weight: 700; color: var(--texto); }
.testimonio-role { font-size: 12px; color: var(--texto-soft); }
.testimonios-ratings { max-width: 900px; margin: 40px auto 0; }
.testimonios-ratings-card {
  background: var(--blanco); border: 1px solid var(--gris-border);
  border-radius: 12px; padding: 20px 40px;
  display: flex; gap: 40px; justify-content: center; align-items: center; flex-wrap: wrap;
}
.rating-platform { display: flex; align-items: center; gap: 12px; }
.rating-platform-name { font-size: 14px; font-weight: 700; color: var(--texto); }
.rating-platform-score { font-size: 13px; color: var(--texto-soft); }

/* ── ALLIANCES ───────────────────────────────────── */
.alianzas-section { background: var(--blanco); padding: 72px 40px; }
.alianzas-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 16px; margin-top: 48px; max-width: 1000px; margin-left: auto; margin-right: auto;
}
.alianza-card {
  background: var(--blanco); border: 1px solid var(--gris-border);
  border-radius: 12px; padding: 24px 20px; text-align: center;
  transition: border-color .2s, box-shadow .2s;
}
.alianza-card:hover { border-color: var(--verde); box-shadow: 0 4px 16px rgba(133,188,36,.1); }
.alianza-logo { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.alianza-name { font-size: 14px; font-weight: 700; color: var(--texto); margin-bottom: 4px; }
.alianza-desc  { font-size: 12px; color: var(--texto-soft); }

/* ── CTA BANNER ──────────────────────────────────── */
.cta-banner { background: var(--negro); padding: 60px 40px; position: relative; overflow: hidden; }
.cta-banner-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-banner-label { font-size: 12px; color: var(--texto-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.cta-banner-title { font-family: var(--ser); font-size: 28px; font-weight: 700; color: #fff; line-height: 1.2; }
.btn-cta-wa {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  background: var(--verde); color: var(--texto);
  border-radius: 6px; font-size: 15px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  white-space: nowrap; transition: background .2s, transform .2s; flex-shrink: 0;
}
.btn-cta-wa:hover { background: var(--verde-dark); transform: translateY(-1px); }

/* ── FOOTER ──────────────────────────────────────── */
footer { background: #050505; padding: 64px 40px 0; border-top: 1px solid rgba(255,255,255,.06); }
.footer-top { display: grid; grid-template-columns: 260px repeat(4, 1fr); gap: 40px; padding-bottom: 48px; }
.footer-logo-text { font-family: var(--ser); font-size: 18px; font-weight: 700; color: #fff; }
.footer-logo-sub { font-size: 10px; font-weight: 600; color: var(--verde); text-transform: uppercase; letter-spacing: 1px; display: block; margin-top: 2px; }
.footer-brand-body { font-size: 13px; color: rgba(255,255,255,.45); line-height: 1.6; margin-top: 14px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social-link {
  width: 34px; height: 34px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.45); transition: border-color .15s, color .15s;
}
.footer-social-link:hover { border-color: var(--verde); color: var(--verde); }
.footer-payments { margin-top: 20px; }
.footer-payments-label { font-size: 11px; color: rgba(255,255,255,.35); margin-bottom: 10px; }
.footer-payments-icons { display: flex; gap: 12px; align-items: center; }
.footer-pay-badge { padding: 4px 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 4px; font-size: 11px; font-weight: 600; color: rgba(255,255,255,.35); }
.footer-col-title { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-col-list { display: flex; flex-direction: column; gap: 10px; }
.footer-col-list a { font-size: 13px; color: rgba(255,255,255,.4); transition: color .15s; }
.footer-col-list a:hover { color: var(--verde); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: rgba(255,255,255,.4); margin-bottom: 12px; }
.footer-contact-item svg { flex-shrink: 0; margin-top: 1px; color: rgba(255,255,255,.3); }
.footer-contact-item a { color: rgba(255,255,255,.4); transition: color .15s; display: block; }
.footer-contact-item a:hover { color: var(--verde); }
.footer-contact-wa { color: var(--verde) !important; }
.footer-cats { border-top: 1px solid rgba(255,255,255,.06); padding: 24px 0; }
.footer-cats-label { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.3); margin-bottom: 12px; }
.footer-cats-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-cats-tag { font-size: 12px; color: rgba(255,255,255,.3); transition: color .15s; }
.footer-cats-tag:hover { color: var(--verde); }
.footer-copy { border-top: 1px solid rgba(255,255,255,.06); padding: 24px 0 32px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-copy-text { font-size: 12px; color: rgba(255,255,255,.22); }
.footer-copy-links { display: flex; gap: 20px; }
.footer-copy-links a { font-size: 12px; color: rgba(255,255,255,.22); transition: color .15s; }
.footer-copy-links a:hover { color: var(--verde); }

/* ── WHATSAPP FLOAT ──────────────────────────────── */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 9998;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--verde);
  box-shadow: 0 4px 20px rgba(133,188,36,.5);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s, box-shadow .2s;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(133,188,36,.6); }

/* ── POPUP ───────────────────────────────────────── */
#popup-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.75); backdrop-filter: blur(4px);
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  opacity: 0; animation: fadeIn .3s ease forwards;
}
#popup-modal {
  background: var(--blanco); border-radius: 12px;
  max-width: 520px; width: 90%; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  transform: translateY(20px); animation: slideUp .35s ease forwards;
  position: relative;
}
@keyframes fadeIn  { to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes slideUp { to { transform: translateY(0); } }
#popup-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,.45); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 18px; line-height: 1; z-index: 1; border: none; transition: background .15s;
}
#popup-close:hover { background: rgba(0,0,0,.7); }
#popup-banner { width: 100%; height: 280px; overflow: hidden; }
.popup-banner-placeholder { width: 100%; height: 280px; background: linear-gradient(160deg, #0D1117, #1a2e06, #0D1117); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.popup-banner-tipo  { font-size: 11px; font-weight: 700; color: var(--verde); text-transform: uppercase; letter-spacing: 2px; }
.popup-banner-titulo { font-family: var(--ser); font-size: 22px; font-weight: 700; color: #fff; text-align: center; padding: 0 24px; }
.popup-banner-fecha { font-size: 14px; color: rgba(255,255,255,.5); }
#popup-meta { background: var(--negro); padding: 14px 24px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.popup-meta-item { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: #fff; }
#popup-cta { display: block; width: 100%; padding: 16px; background: var(--verde); color: #fff; font-family: var(--san); font-size: 15px; font-weight: 700; text-align: center; border: none; cursor: pointer; transition: background .15s; }
#popup-cta:hover { background: var(--verde-dark); }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .alianzas-grid { grid-template-columns: repeat(3, 1fr); }
  .instructores-stats-card { grid-template-columns: repeat(2, 1fr); }
  #cursos-grid { grid-template-columns: repeat(2, 1fr); }
  .mega-inner { grid-template-columns: 200px 1fr 1fr; }
  .mega-col-resources { display: none; }
}
@media (max-width: 768px) {
  .announce-bar { padding: 0 16px; font-size: 12px; }
  .nav-inner { padding: 0 16px; gap: 8px; }
  .nav-search, .nav-links-secondary, .nav-divider { display: none; }
  .hero { padding: 40px 16px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-h1 { font-size: clamp(28px, 7vw, 36px); }
  .certs-band { padding: 0 16px 40px; }
  .dominios-section, .servicios-section, .cursos-section,
  .metodologia-section, .instructores-section, .comunidad-section,
  .testimonios-section, .alianzas-section, .cta-banner { padding: 48px 16px; }
  #cursos-grid { grid-template-columns: 1fr; }
  .testimonios-grid, .instructores-grid { grid-template-columns: 1fr; }
  .servicios-grid { grid-template-columns: repeat(2, 1fr); }
  .alianzas-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; padding: 40px 0 32px; }
  .metodo-card { flex-direction: column; }
  .mega-inner { grid-template-columns: 1fr; min-height: auto; }
  .mega-col-domains { border-right: none; border-bottom: 1px solid var(--gris-border); }
  .cta-banner-inner { flex-direction: column; text-align: center; }
  .comunidad-metrics { gap: 32px; }
  .section-title { font-size: 28px; }
}
@media (max-width: 480px) {
  .hero-h1 { font-size: 26px; }
  .hero-ctas { flex-direction: column; }
  .btn-cta-primary, .btn-cta-secondary { text-align: center; justify-content: center; }
  .servicios-grid { grid-template-columns: 1fr; }
  .footer-cats-tags { gap: 8px; }
  .testimonios-tabs { flex-wrap: wrap; }
  .comunidad-num { font-size: 36px; }
}
