/* ==============================
   MICROCREDENCIALES USB — STYLES
   ============================== */

/* ---- RESET & VARIABLES ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Colors */
  --c-bg: #06071a;
  --c-surface: #0e1024;
  --c-surface2: #161831;
  --c-border: rgba(255,255,255,0.07);
  --c-text: #e8eaf6;
  --c-muted: #8892b0;
  --c-accent: #6366f1;
  --c-accent2: #f59e0b;
  --c-accent3: #10b981;

  /* Gradients */
  --g-hero: linear-gradient(135deg, rgba(6,7,26,0.85) 0%, rgba(14,16,36,0.7) 100%);
  --g-card: linear-gradient(145deg, rgba(22,24,49,0.9) 0%, rgba(14,16,36,0.95) 100%);
  --g-accent: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --g-gold: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;

  /* Typography */
  --ff-body: 'Inter', system-ui, sans-serif;
  --ff-heading: 'Outfit', 'Inter', sans-serif;

  /* Radius */
  --r-sm: 0.5rem;
  --r-md: 1rem;
  --r-lg: 1.5rem;
  --r-xl: 2rem;

  /* Shadows */
  --shadow-card: 0 8px 32px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.06) inset;
  --shadow-hover: 0 20px 60px rgba(99,102,241,0.25), 0 8px 32px rgba(0,0,0,0.5);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--ff-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes glow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes fillBar {
  from { width: 0; }
  to   { width: var(--fill); }
}
@keyframes countUp {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-fade-up { animation: fadeUp 0.7s ease forwards; opacity: 0; }
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 { font-family: var(--ff-heading); font-weight: 700; line-height: 1.2; }

.gradient-text {
  background: var(--g-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--space-xs);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: var(--space-sm);
}

.section-desc {
  color: var(--c-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--ff-body);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--g-accent);
  color: #fff;
  box-shadow: 0 4px 24px rgba(99,102,241,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99,102,241,0.6);
}

.btn-ghost {
  background: rgba(255,255,255,0.07);
  color: var(--c-text);
  border: 1px solid var(--c-border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
  background: rgba(6,7,26,0.9);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--c-border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-badge {
  width: 38px;
  height: 38px;
  background: var(--g-accent);
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-title { font-size: 0.9rem; font-weight: 700; color: var(--c-text); }
.logo-sub { font-size: 0.68rem; color: var(--c-muted); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--c-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--c-text); }
.nav-link.nav-cta {
  background: var(--g-accent);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-weight: 600;
}
.nav-link.nav-cta:hover { opacity: 0.85; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---- HERO ---- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6,7,26,0.88) 0%,
    rgba(14,16,36,0.7) 50%,
    rgba(6,7,26,0.75) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 6rem;
  padding-bottom: 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.35);
  border-radius: 100px;
  font-size: 0.8rem;
  color: #a5b4fc;
  font-weight: 500;
  margin-bottom: var(--space-md);
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: #6366f1;
  border-radius: 50%;
  animation: glow 2s ease infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  margin-bottom: var(--space-md);
  line-height: 1.05;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #b8c1e8;
  max-width: 580px;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  font-family: var(--ff-heading);
  color: var(--c-text);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--c-border);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-mouse {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  animation: fadeUp 1.5s ease infinite;
}

/* ---- FILTER BAR ---- */
.filter-section {
  padding: var(--space-2xl) 0 var(--space-xl);
}

.filter-bar {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-md);
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  border: 1px solid var(--c-border);
  background: rgba(255,255,255,0.04);
  color: var(--c-muted);
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--ff-body);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--c-text);
}
.filter-btn.active {
  background: var(--g-accent);
  border-color: transparent;
  color: #fff;
}

/* ---- PROGRAM CARDS ---- */
.programs-section { padding-bottom: var(--space-2xl); }

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-md);
}

.program-card {
  background: var(--g-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.program-card.hidden {
  display: none;
}

.card-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--icon-bg);
  color: var(--icon-color);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
}
.card-icon svg { width: 22px; height: 22px; }

.card-meta { display: flex; gap: var(--space-xs); align-items: center; }

.card-level, .card-hours {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

.card-level {
  background: rgba(255,255,255,0.07);
  color: var(--c-muted);
}

.card-hours {
  background: rgba(99,102,241,0.15);
  color: #a5b4fc;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.3;
}

.card-career {
  font-size: 0.8rem;
  color: var(--c-accent);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card-competence {
  font-size: 0.875rem;
  color: var(--c-muted);
  line-height: 1.6;
  flex: 1;
}

.card-modules {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: var(--space-sm);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
}

.module-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
}

.module-num {
  font-weight: 700;
  color: var(--c-accent);
  font-size: 0.7rem;
  min-width: 20px;
}

.module-name { color: var(--c-muted); }

.card-audience {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--c-muted);
  line-height: 1.5;
}
.card-audience svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; }

.card-btn {
  margin-top: auto;
  padding: 0.7rem;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: var(--r-md);
  color: #a5b4fc;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--ff-body);
  cursor: pointer;
  transition: all 0.2s;
}
.card-btn:hover {
  background: rgba(99,102,241,0.2);
  color: #fff;
  border-color: rgba(99,102,241,0.5);
}

/* ---- METHODOLOGY ---- */
.methodology-section {
  padding: var(--space-2xl) 0;
  background: linear-gradient(180deg, transparent 0%, rgba(99,102,241,0.04) 50%, transparent 100%);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-md);
}

.method-card {
  background: var(--g-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--space-lg);
  transition: transform 0.3s, box-shadow 0.3s;
}
.method-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.method-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(99,102,241,0.15) 0%, rgba(139,92,246,0.1) 100%);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-sm);
  color: #a5b4fc;
}
.method-icon svg { width: 24px; height: 24px; }

.method-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.method-card p {
  font-size: 0.875rem;
  color: var(--c-muted);
  line-height: 1.65;
}

/* ---- HOURS SECTION ---- */
.hours-section { padding: var(--space-2xl) 0; }

.hours-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.hours-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: var(--space-sm); }
.hours-text p { color: var(--c-muted); margin-bottom: var(--space-lg); line-height: 1.7; }

.hours-breakdown { display: flex; flex-direction: column; gap: var(--space-md); }

.breakdown-item { display: flex; align-items: center; gap: var(--space-sm); }

.breakdown-bar {
  flex: 1;
  height: 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}

.breakdown-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: var(--pct);
  background: var(--color);
  border-radius: 100px;
  animation: fillBar 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.breakdown-pct {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  z-index: 1;
}

.breakdown-info strong { display: block; font-size: 0.875rem; color: var(--c-text); }
.breakdown-info span { font-size: 0.75rem; color: var(--c-muted); }

/* ---- DONUT CHART ---- */
.hours-donut {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.donut-svg {
  width: 200px;
  height: 200px;
  transform: rotate(-90deg);
  filter: drop-shadow(0 0 20px rgba(99,102,241,0.3));
}

.donut-bg {
  fill: none;
  stroke: rgba(255,255,255,0.06);
  stroke-width: 24;
}

.donut-seg {
  fill: none;
  stroke-width: 24;
  stroke-linecap: butt;
  transition: stroke-dasharray 1s ease;
}

.seg-1 { stroke: #6366f1; }
.seg-2 { stroke: #f59e0b; }
.seg-3 { stroke: #10b981; }

.donut-label-num {
  transform: rotate(90deg);
  transform-origin: center;
  fill: var(--c-text);
  font-size: 22px;
  font-weight: 800;
  font-family: var(--ff-heading);
}

.donut-label-sub {
  transform: rotate(90deg);
  transform-origin: center;
  fill: var(--c-muted);
  font-size: 11px;
}

.donut-legend {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--c-muted);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

/* ---- CERTIFICATION ---- */
.cert-section {
  padding: var(--space-2xl) 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(99,102,241,0.08) 0%, transparent 70%);
}

.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  max-width: 900px;
  margin: 0 auto;
}

.cert-card {
  background: var(--g-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: transform 0.3s;
}
.cert-card:hover { transform: translateY(-4px); }

.cert-program {
  border-color: rgba(245,158,11,0.2);
  background: linear-gradient(145deg, rgba(22,24,49,0.95), rgba(40,30,10,0.2));
}

.cert-icon {
  width: 60px;
  height: 60px;
  background: rgba(99,102,241,0.1);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  color: #a5b4fc;
  margin-bottom: 0.5rem;
}
.cert-icon svg { width: 28px; height: 28px; }

.cert-icon-gold {
  background: rgba(245,158,11,0.1);
  color: #fbbf24;
}

.cert-card h3 { font-size: 1.1rem; }
.cert-card p {
  font-size: 0.875rem;
  color: var(--c-muted);
  line-height: 1.65;
}

.cert-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.25rem;
}
.cert-list li {
  font-size: 0.82rem;
  color: var(--c-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cert-list li::before {
  content: '✓';
  color: var(--c-accent3);
  font-weight: 700;
  font-size: 0.75rem;
}

.cert-note {
  font-size: 0.72rem;
  color: rgba(245,158,11,0.6);
  border: 1px solid rgba(245,158,11,0.15);
  border-radius: var(--r-sm);
  padding: 0.4rem 0.7rem;
  margin-top: 0.5rem;
}

/* ---- INDICATORS ---- */
.indicators-section {
  padding: var(--space-2xl) 0;
}

.indicators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-md);
}

.indicator-card {
  background: var(--g-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--space-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.indicator-card:hover { transform: translateY(-4px); }

.indicator-value {
  font-size: 2.5rem;
  font-weight: 900;
  font-family: var(--ff-heading);
  color: var(--c-text);
  line-height: 1;
}
.indicator-value span { font-size: 1.5rem; }

.indicator-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-text);
}

.indicator-formula {
  font-size: 0.72rem;
  color: var(--c-muted);
  line-height: 1.4;
}

.indicator-bar {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.indicator-fill {
  height: 100%;
  background: var(--color);
  border-radius: 100px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- CTA ---- */
.cta-section {
  padding: var(--space-2xl) 0;
}

.cta-wrapper {
  background: var(--g-card);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: var(--r-xl);
  padding: var(--space-2xl);
  position: relative;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}

.cta-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-content h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0.5rem 0 1rem;
}

.cta-content > p {
  color: var(--c-muted);
  margin-bottom: var(--space-xl);
  font-size: 1rem;
}

/* FORM */
.cta-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group input,
.form-group select {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 0.75rem 1rem;
  color: var(--c-text);
  font-size: 0.9rem;
  font-family: var(--ff-body);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: rgba(99,102,241,0.6);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.form-group input::placeholder { color: rgba(255,255,255,0.25); }
.form-group select option {
  background: #1a1b3a;
  color: var(--c-text);
}

.form-note {
  font-size: 0.72rem;
  color: var(--c-muted);
  text-align: center;
}

/* ---- FOOTER ---- */
.footer {
  padding: var(--space-2xl) 0 var(--space-lg);
  border-top: 1px solid var(--c-border);
  margin-top: var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-desc {
  font-size: 0.82rem;
  color: var(--c-muted);
  line-height: 1.6;
  margin-top: 0.5rem;
}

.footer-links h4 {
  font-size: 0.8rem;
  color: var(--c-text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
  font-size: 0.85rem;
  color: var(--c-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--c-text); }

.footer-bottom {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(136, 146, 176, 0.5);
  padding-top: var(--space-md);
  border-top: 1px solid var(--c-border);
}

/* ---- MODAL ---- */
.modal-overlay {
  display: none;              /* hidden by default — do NOT set display:flex here */
  position: fixed;
  inset: 0;
  background: rgba(6,7,26,0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  transition: opacity 0.3s;
}

/* Safety net: [hidden] must always win */
.modal-overlay[hidden] { display: none !important; }

.modal-overlay.is-open {
  display: flex;
  opacity: 1;
  animation: fadeUp 0.3s ease;
}

.modal {
  background: var(--c-surface2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  scrollbar-width: thin;
  scrollbar-color: rgba(99,102,241,0.4) transparent;
}

.modal-close {
  position: sticky;
  top: var(--space-md);
  float: right;
  margin: var(--space-md) var(--space-md) 0 0;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--c-border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--c-muted);
  z-index: 1;
  transition: all 0.2s;
}
.modal-close:hover { background: rgba(255,255,255,0.12); color: var(--c-text); }
.modal-close svg { width: 16px; height: 16px; }

.modal-body { padding: var(--space-lg) var(--space-xl) var(--space-xl); }

/* Modal Content Styles */
.modal-header {
  margin-bottom: var(--space-xl);
  padding-top: calc(var(--space-md) - 20px);
}
.modal-badge { font-size: 0.75rem; color: var(--c-accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.modal-title { font-size: 1.6rem; margin: 0.4rem 0 0.25rem; }
.modal-career { font-size: 0.85rem; color: var(--c-muted); }

.modal-section { margin-bottom: var(--space-lg); }
.modal-section h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-accent);
  margin-bottom: var(--space-sm);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--c-border);
}

.modal-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.modal-info-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 0.6rem 0.85rem;
}
.modal-info-item strong {
  display: block;
  font-size: 0.7rem;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}
.modal-info-item span { font-size: 0.875rem; color: var(--c-text); }

.modal-module {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.modal-module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.modal-module-num {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--c-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.modal-module-hours {
  font-size: 0.7rem;
  background: rgba(99,102,241,0.15);
  color: #a5b4fc;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
}

.modal-module h5 { font-size: 0.9rem; margin-bottom: 0.5rem; }

.modal-module-detail {
  font-size: 0.8rem;
  color: var(--c-muted);
  line-height: 1.6;
}

.modal-module-detail strong { color: var(--c-text); }

.modal-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.modal-tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--c-border);
  border-radius: 100px;
  color: var(--c-muted);
}

.modal-competence {
  background: linear-gradient(135deg, rgba(99,102,241,0.08) 0%, rgba(139,92,246,0.05) 100%);
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: var(--r-md);
  padding: var(--space-sm);
  font-size: 0.875rem;
  color: var(--c-muted);
  line-height: 1.65;
}

.modal-outcome-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.modal-outcome-list li {
  display: flex;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--c-muted);
  line-height: 1.5;
}
.modal-outcome-list li::before {
  content: '→';
  color: var(--c-accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---- TOAST ---- */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, #1e1f4a, #2a2d5e);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: var(--r-md);
  padding: 0.85rem 1.5rem;
  font-size: 0.9rem;
  color: var(--c-text);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  z-index: 3000;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-width: 280px;
  text-align: center;
}

.toast.show { transform: translateX(-50%) translateY(0); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hours-wrapper { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .modal-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(6,7,26,0.97);
    backdrop-filter: blur(20px);
    padding: 5rem var(--space-md) var(--space-xl);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
    border-bottom: 1px solid var(--c-border);
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; z-index: 1001; position: relative; }
  .hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .programs-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: var(--space-md); }
  .stat-divider { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .indicators-grid { grid-template-columns: repeat(2, 1fr); }
  .modal-body { padding: var(--space-md); }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .indicators-grid { grid-template-columns: 1fr; }
  .cta-wrapper { padding: var(--space-lg); }
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(99,102,241,0.5); }

/* ---- SELECTION ---- */
::selection { background: rgba(99,102,241,0.3); color: #fff; }
