:root {
  --color-primary: #4C1D95;
  --color-primary-700: #6D28D9;
  --color-primary-100: #EDE9FE;
  --color-accent: #F97316;
  --color-accent-600: #EA580C;
  --color-cream: #FFF7ED;
  --color-ink: #1F1B16;
  --color-muted: #6B7280;
  --color-line: #E5E7EB;
  --shadow-card: 0 10px 25px -10px rgba(76, 29, 149, 0.18);
  --radius-card: 18px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--color-ink);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}

a { color: var(--color-primary); }
a:hover { color: var(--color-accent-600); }

.brand-gradient {
  background-image: linear-gradient(135deg, #4C1D95 0%, #7C3AED 45%, #F97316 100%);
}

.brand-gradient-text {
  background-image: linear-gradient(135deg, #4C1D95 0%, #F97316 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 80% 20%, rgba(249, 115, 22, 0.30) 0%, transparent 60%),
    radial-gradient(70% 70% at 10% 90%, rgba(124, 58, 237, 0.40) 0%, transparent 65%),
    linear-gradient(135deg, #2E1065 0%, #4C1D95 50%, #1F1B16 100%);
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 14px);
  z-index: -1;
  opacity: 0.6;
}

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .2s ease, background-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 8px 20px -8px rgba(249, 115, 22, 0.6);
}
.btn-primary:hover { background: var(--color-accent-600); color: #fff; }
.btn-secondary {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.35);
  color: #ffffff;
  backdrop-filter: blur(6px);
}
.btn-secondary:hover { background: rgba(255,255,255,0.18); color: #fff; }
.btn-outline {
  background: #ffffff;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-ghost {
  color: var(--color-primary);
  background: transparent;
}
.btn-ghost:hover { background: var(--color-primary-100); }

.card {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border: 1px solid rgba(76, 29, 149, 0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -14px rgba(76, 29, 149, 0.28);
}

.course-thumb {
  aspect-ratio: 4 / 3;
  background-size: cover; background-position: center;
  position: relative;
}
.course-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31,27,22,0) 35%, rgba(31,27,22,0.55) 100%);
}

.section { padding: 5rem 0; }
@media (max-width: 768px) { .section { padding: 3.5rem 0; } }

.section-cream { background: var(--color-cream); }
.section-dark { background: #14111F; color: #F5F3FF; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }

.container-narrow { max-width: 1140px; margin-inline: auto; padding-inline: 1.25rem; }

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

.stat-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.stat-band .stat-num {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem; font-weight: 700;
  color: var(--color-primary);
}
.stat-band .stat-label { font-size: 0.9rem; color: var(--color-muted); }

.feature-icon {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--color-primary-100);
  color: var(--color-primary);
}

.whatsapp-fab {
  position: fixed;
  right: 1rem; bottom: 1rem;
  z-index: 60;
  width: 56px; height: 56px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 25px -8px rgba(37, 211, 102, 0.6);
  transition: transform .15s ease;
}
.whatsapp-fab:hover { transform: scale(1.06); color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-link {
  position: relative;
  padding: 0.5rem 0.75rem;
  color: var(--color-ink);
  font-weight: 500;
  border-radius: 8px;
}
.nav-link:hover { color: var(--color-primary); background: var(--color-primary-100); }
.nav-link.active { color: var(--color-primary); }
.nav-link.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -2px;
  height: 2px; background: var(--color-accent); border-radius: 2px;
}

.mobile-nav {
  position: fixed; inset: 0;
  background: rgba(31, 27, 22, 0.96);
  z-index: 80;
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  padding: 0.5rem 1rem;
}

details.faq {
  border: 1px solid var(--color-line);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  background: #fff;
  transition: box-shadow .2s ease;
}
details.faq[open] {
  box-shadow: var(--shadow-card);
  border-color: var(--color-primary-100);
}
details.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  font-size: 1.4rem; color: var(--color-primary);
  transition: transform .2s ease;
}
details.faq[open] summary::after { content: "\2212"; }
details.faq .faq-body { margin-top: 0.75rem; color: var(--color-muted); }

.gallery-grid {
  column-count: 3;
  column-gap: 1rem;
}
@media (max-width: 900px) { .gallery-grid { column-count: 2; } }
@media (max-width: 520px) { .gallery-grid { column-count: 1; } }

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  display: block;
}
.gallery-item img { width: 100%; display: block; transition: transform .25s ease; }
.gallery-item:hover img { transform: scale(1.03); }

.lightbox {
  position: fixed; inset: 0;
  background: rgba(20, 17, 31, 0.92);
  display: none;
  align-items: center; justify-content: center;
  z-index: 90;
  padding: 1rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw; max-height: 88vh;
  border-radius: 14px;
  box-shadow: 0 30px 60px -10px rgba(0,0,0,0.6);
}
.lightbox button {
  position: absolute; top: 1rem; right: 1rem;
  width: 40px; height: 40px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  color: #fff; font-size: 1.4rem;
  display: inline-flex; align-items: center; justify-content: center;
}

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 0.55rem 0; border-bottom: 1px dashed var(--color-line); }
.hours-table td:last-child { text-align: right; color: var(--color-muted); }
.hours-table tr:last-child td { border-bottom: none; }

.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--color-line);
  background: #fff;
  font: inherit;
  color: var(--color-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-100);
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--color-ink);
}

.toast {
  position: fixed; left: 50%; bottom: 5rem;
  transform: translateX(-50%);
  background: #14111F; color: #fff;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  box-shadow: 0 16px 32px -10px rgba(0,0,0,0.4);
  font-size: 0.95rem;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 70;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-6px); }

.muted { color: var(--color-muted); }

.footer { background: #14111F; color: #CBC6E2; }
.footer a { color: #E9E4FF; }
.footer a:hover { color: #fff; }
.footer h4 {
  color: #fff; font-size: 0.85rem; letter-spacing: 0.18em;
  text-transform: uppercase; margin-bottom: 1rem;
}
