:root {
  --primary: #1e3a8a;
  --primary-dark: #172554;
  --primary-light: #eff6ff;
  --secondary: #10b981;
  --secondary-dark: #059669;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --warning: #f59e0b;
  --danger: #ef4444;
  --dark: #0f172a;
  --gray: #64748b;
  --bg: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --radius: 16px;
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 30px rgba(30, 58, 138, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  color: var(--primary);
  line-height: 1.25;
}

a {
  color: var(--accent);
  text-decoration: none;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.brand-tag {
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 10px;
  border-radius: 999px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--dark);
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: var(--white) !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-whatsapp {
  background: var(--secondary);
  color: var(--white) !important;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
}

.btn-whatsapp:hover {
  background: var(--secondary-dark);
}

.btn-outline {
  background: var(--white);
  color: var(--primary) !important;
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--white) 0%, var(--primary-light) 100%);
  padding: 64px 0 72px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--gray);
  margin-bottom: 28px;
  max-width: 580px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.metric-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}

.metric-box strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  color: var(--primary);
}

.metric-box span {
  font-size: 0.82rem;
  color: var(--gray);
}

/* Lead Capture Card */
.lead-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 30px;
  box-shadow: var(--shadow-lg);
}

.lead-card h2 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.lead-card p {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--dark);
  transition: border-color 0.2s, background 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
}

.phone-input-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  overflow: hidden;
}

.phone-prefix {
  padding: 12px 12px;
  background: #e2e8f0;
  color: var(--dark);
  font-weight: 700;
  font-size: 0.9rem;
}

.phone-input-wrap input {
  border: none;
  background: transparent;
  padding: 12px 14px;
  width: 100%;
  font-size: 0.95rem;
}

.phone-input-wrap input:focus {
  outline: none;
}

.form-feedback {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  display: none;
}

.form-feedback.success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-feedback.error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 42px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--gray);
  font-size: 1.02rem;
}

/* Track Switcher */
.track-switcher {
  display: inline-flex;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 6px;
  border-radius: 999px;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  margin: 0 auto 36px;
}

.track-btn {
  padding: 11px 24px;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--gray);
  cursor: pointer;
  transition: all 0.2s;
}

.track-btn.active {
  background: var(--primary);
  color: var(--white);
}

.track-btn.active.salud {
  background: var(--secondary-dark);
}

/* Illustrated Step Cards */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-num.salud {
  background: var(--secondary-dark);
}

.step-illus {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.step-card h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.step-card p, .step-card li {
  font-size: 0.92rem;
  color: var(--gray);
}

.step-card ul {
  padding-left: 18px;
  margin-top: 8px;
}

.alert-tip {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.84rem;
  font-weight: 500;
}

/* Exam Structure & Checklist */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.card-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.bar-row {
  margin-bottom: 14px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.bar-track {
  height: 10px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}

.bar-fill.salud {
  background: var(--secondary);
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 10px;
  cursor: pointer;
  background: var(--bg);
}

.checklist-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--secondary-dark);
}

.checklist-item.checked {
  background: #ecfdf5;
  border-color: #a7f3d0;
  text-decoration: line-through;
  color: #065f46;
}

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: #cbd5e1;
  padding: 48px 0 32px;
}

.site-footer a {
  color: #93c5fd;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* ==========================================
   STUDENT DASHBOARD (Abba Academy Glassmorphism)
   ========================================== */
body.dashboard-body {
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 50%, #ecfdf5 100%);
  min-height: 100vh;
}

body.dashboard-body.neon-theme {
  background: #0f172a;
  color: #f1f5f9;
}

body.dashboard-body.neon-theme .glass-panel {
  background: rgba(15, 23, 42, 0.82);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
}

body.dashboard-body.neon-theme h1,
body.dashboard-body.neon-theme h2,
body.dashboard-body.neon-theme h3 {
  color: #93c5fd;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 32px rgba(30, 58, 138, 0.1);
  border-radius: 20px;
}

.dash-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.dash-sidebar {
  padding: 24px 16px;
  border-right: 1px solid var(--border);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-menu-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: inherit;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.92rem;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}

.dash-menu-btn:hover,
.dash-menu-btn.active {
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent);
  font-weight: 600;
}

.dash-main {
  padding: 28px;
}

.classroom-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  border-radius: 16px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.video-stage.blurred iframe,
.video-stage.blurred .demo-stream {
  filter: blur(22px);
}

.dynamic-watermark {
  position: absolute;
  z-index: 25;
  pointer-events: none;
  user-select: none;
  font-family: 'Poppins', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.34);
  background: rgba(15, 23, 42, 0.28);
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  transition: top 1.4s ease, left 1.4s ease;
}

.chat-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 420px;
  padding: 18px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0;
  max-height: 360px;
}

.chat-msg {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.08);
  font-size: 0.88rem;
}

.chat-msg strong {
  display: block;
  font-size: 0.78rem;
  color: var(--accent);
}

.chat-form {
  display: flex;
  gap: 8px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal-card {
  background: var(--white);
  color: var(--dark);
  border-radius: 22px;
  padding: 32px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 960px) {
  .hero-grid,
  .two-col,
  .classroom-grid,
  .dash-layout {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .dash-sidebar {
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}
