/* ==========================================================================
   INSTITUTO NACIONAL DE SALUD PÚBLICA - DIPLOMADOS 2026
   Modern UI/UX Design System & Responsive Styles
   ========================================================================== */

/* ---------- CSS Variables & Design Tokens ---------- */
:root {
  /* Brand Colors */
  --primary: #0A2540;
  --primary-deep: #051424;
  --primary-surface: #0f2e4e;
  --primary-light: #16426d;
  
  --accent: #0284C7;
  --accent-hover: #0369A1;
  --accent-light: #E0F2FE;
  --accent-soft: rgba(2, 132, 199, 0.12);
  
  --cyan: #06B6D4;
  --cyan-light: #ECFEFF;
  --cyan-glow: rgba(6, 182, 212, 0.25);
  
  /* WhatsApp Official Colors */
  --wa: #25D366;
  --wa-hover: #1EBE5D;
  --wa-dark: #128C7E;
  --wa-light: #DCF8C6;
  --wa-glow: rgba(37, 211, 102, 0.35);
  
  /* Status & Accents */
  --amber: #D97706;
  --amber-light: #FEF3C7;
  --emerald: #059669;
  --emerald-light: #D1FAE5;
  --red: #E11D48;
  --red-light: #FFE4E6;
  
  /* Surfaces & Backgrounds */
  --bg-page: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-muted: #F1F5F9;
  --bg-subtle: #F4F7FB;
  
  /* Typography Colors */
  --text-main: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-subtle: #94A3B8;
  --text-white: #FFFFFF;
  
  /* Borders */
  --border-light: #E2E8F0;
  --border-subtle: #EEF2F6;
  --border-focus: #0284C7;
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Elevation Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 6px -1px rgba(15, 23, 42, 0.07), 0 1px 3px -1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 20px -3px rgba(15, 23, 42, 0.08), 0 3px 8px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 16px 32px -4px rgba(15, 23, 42, 0.1), 0 6px 14px -3px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 24px 48px -12px rgba(15, 23, 42, 0.18);
  --shadow-wa: 0 10px 25px -3px rgba(37, 211, 102, 0.45);
  
  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.26s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Global Resets & Base Styles ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background-color: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ==========================================================================
   NAVIGATION / HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--transition-normal), background var(--transition-normal);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.98);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 12px;
}

/* Brand Identity */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  flex: 1;
}

.brand-logo-wrap {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-subtitle {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.2;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Nav Menu Links */
.nav-links {
  display: none;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-body);
  transition: color var(--transition-fast);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}

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

/* Header CTAs */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--wa);
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
}

.header-wa-btn:hover {
  background: var(--wa-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

.header-wa-btn svg {
  width: 20px;
  height: 20px;
}

.header-wa-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FFFFFF;
  position: relative;
  flex-shrink: 0;
}

.header-wa-status::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.9; }
  50% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(0.9); opacity: 0; }
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
  color: var(--primary);
  border: 1px solid var(--border-light);
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2.2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.mobile-menu-btn.is-open span:nth-child(1) {
  transform: translateY(7.2px) rotate(45deg);
}
.mobile-menu-btn.is-open span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.is-open span:nth-child(3) {
  transform: translateY(-7.2px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-bottom: 2px solid var(--border-light);
  padding: 20px 24px;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: translateY(-120%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--transition-normal), opacity var(--transition-normal), visibility var(--transition-normal);
  z-index: 99;
}

.mobile-drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-drawer .nav-link {
  font-size: 1.05rem;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-drawer-cta {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--wa);
  color: #FFFFFF;
  font-weight: 700;
  padding: 14px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-wa);
}

/* ==========================================================================
   MOBILE HEADER RESPONSIVENESS FIX (User Request)
   Hide text and number on mobile, show compact icon button only
   ========================================================================== */
@media (max-width: 640px) {
  .header-wa-btn .header-wa-text {
    display: none;
  }
  .header-wa-btn {
    padding: 9px;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    justify-content: center;
    gap: 0;
  }
  .header-wa-status {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 7px;
    height: 7px;
  }
}

@media (max-width: 440px) {
  .header-inner {
    height: 64px;
  }
  .mobile-drawer {
    top: 64px;
  }
  .brand-logo-wrap {
    width: 38px;
    height: 38px;
  }
  .brand-logo {
    width: 32px;
    height: 32px;
  }
  .brand-title {
    font-size: 0.88rem;
  }
  .brand-subtitle {
    font-size: 0.7rem;
  }
  .header-wa-btn {
    width: 38px;
    height: 38px;
  }
  .header-wa-btn svg {
    width: 18px;
    height: 18px;
  }
}

@media (min-width: 960px) {
  .nav-links {
    display: flex;
  }
  .mobile-menu-btn {
    display: none;
  }
}

/* ==========================================================================
   HERO SECTION
   Enhanced Background Visibility (User Request)
   ========================================================================== */
.hero-section {
  position: relative;
  background: var(--primary);
  color: #FFFFFF;
  overflow: hidden;
  padding: 56px 0 68px;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 76px 0 84px;
  }
}

/* Background photo is now noticeably more visible */
.hero-bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  opacity: 0.58;
  filter: saturate(1.15) brightness(0.95);
}

/* Lighter, high-contrast blue gradient scrim */
.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, 
    rgba(6, 25, 43, 0.92) 0%, 
    rgba(6, 25, 43, 0.80) 45%, 
    rgba(10, 46, 77, 0.55) 75%, 
    rgba(23, 180, 229, 0.35) 100%);
  pointer-events: none;
}

.hero-glow-blob {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.35) 0%, rgba(2, 132, 199, 0) 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 182, 212, 0.22);
  border: 1px solid rgba(6, 182, 212, 0.5);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.8px;
  color: #FFFFFF;
  margin-bottom: 30px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.hero-tag-year {
  display: inline-block;
  background: var(--cyan);
  color: var(--primary-deep);
  padding: 2px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.42em;
  font-weight: 800;
  vertical-align: middle;
  margin-left: 10px;
  letter-spacing: 0;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #E2E8F0;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 720px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

/* Hero Key Features Row */
.hero-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 36px;
}

@media (min-width: 560px) {
  .hero-highlights {
    grid-template-columns: repeat(3, 1fr);
  }
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(6, 25, 43, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  backdrop-filter: blur(8px);
}

.highlight-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(6, 182, 212, 0.22);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.highlight-icon svg {
  width: 20px;
  height: 20px;
}

.highlight-text strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

.highlight-text span {
  display: block;
  font-size: 0.78rem;
  color: #CBD5E1;
  margin-top: 2px;
}

/* Hero Action Buttons */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.btn-hero-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--wa);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 15px 28px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-wa);
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-hero-wa:hover {
  background: var(--wa-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(37, 211, 102, 0.6);
}

.btn-hero-wa svg {
  width: 24px;
  height: 24px;
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.98rem;
  font-weight: 600;
  padding: 15px 24px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Stats Counter Strip */
.hero-stats-strip {
  position: relative;
  z-index: 3;
  margin-top: -24px;
}

.stats-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 22px 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (min-width: 768px) {
  .stats-card {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
}

.stat-box {
  text-align: center;
  position: relative;
}

@media (min-width: 768px) {
  .stat-box:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -16px;
    top: 15%;
    height: 70%;
    width: 1px;
    background: var(--border-light);
  }
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  display: block;
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: block;
}

/* ==========================================================================
   CALLOUT RIBBON
   ========================================================================== */
.ribbon-wrap {
  padding: 24px 0 0;
}

.ribbon {
  background: var(--red);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 10px 24px -8px rgba(225, 29, 72, 0.45);
  color: #FFFFFF;
}

.ribbon svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.ribbon p {
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0;
}

/* ==========================================================================
   CATALOG / CATEGORIES & DETAIL FLOW (User Request)
   ========================================================================== */
.section-catalog {
  padding: 56px 0 88px;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Category Grid (8 Areas) */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 992px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .cat-grid {
    grid-template-columns: 1fr;
  }
}

.cat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-light);
}

.cat-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--accent-light);
}

.cat-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cat-card:hover .cat-photo img {
  transform: scale(1.08);
}

.cat-icon {
  position: absolute;
  left: 16px;
  bottom: -22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3.5px solid #FFFFFF;
  box-shadow: var(--shadow-md);
  z-index: 2;
  transition: background var(--transition-fast);
}

.cat-card:hover .cat-icon {
  background: var(--accent);
}

.cat-icon svg {
  width: 22px;
  height: 22px;
}

.cat-body {
  padding: 30px 20px 22px;
  display: flex;
  flex-direction: column;
}

.cat-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 6px;
}

.cat-card p {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}

/* ==========================================================================
   DETAIL VIEW (Inline view with smooth transitions)
   ========================================================================== */
.detail-view {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.94rem;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.back-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
  transform: translateX(-3px);
}

.back-btn svg {
  width: 18px;
  height: 18px;
}

/* Detail Head Banner */
.detail-head {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 32px;
  min-height: 180px;
  box-shadow: var(--shadow-md);
}

.detail-head-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.detail-head-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, 
    rgba(6, 25, 43, 0.94) 0%, 
    rgba(6, 25, 43, 0.72) 55%, 
    rgba(6, 25, 43, 0.30) 100%);
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 32px;
}

.detail-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--primary-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.4);
}

.detail-icon svg {
  width: 30px;
  height: 30px;
}

.detail-head-overlay h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3.8vw, 2.2rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
}

.detail-head-overlay span {
  font-size: 0.92rem;
  color: #CBD5E1;
  font-weight: 500;
  margin-top: 4px;
  display: block;
}

/* Detail List of Diplomados */
.dip-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Individual Diplomado Card in Detail View */
.dip-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.dip-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent-light);
}

.dip-photo {
  width: 220px;
  flex-shrink: 0;
  object-fit: cover;
}

.dip-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.dip-head {
  width: 100%;
  text-align: left;
  padding: 20px 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dip-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.dip-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}

/* Meta Pills Row */
.dip-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dip-pill {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-muted);
  color: var(--text-body);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dip-pill.pill-virtual {
  background: var(--cyan-light);
  color: #0284C7;
}

.dip-pill svg {
  width: 14px;
  height: 14px;
}

/* Pricing Grid Line */
.dip-price-line {
  font-size: 0.86rem;
  color: var(--text-muted);
  background: var(--bg-muted);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dip-price-line strong {
  color: var(--text-main);
  font-weight: 800;
}

/* Actions Row with WhatsApp button and Accordion toggle */
.dip-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 24px 18px;
}

.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--wa);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.28);
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.wa-btn:hover {
  background: var(--wa-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.4);
}

.wa-btn svg {
  width: 18px;
  height: 18px;
}

.dip-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.dip-toggle-btn:hover {
  color: var(--accent-hover);
}

.dip-toggle-btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-normal);
}

.dip-card.is-open .dip-toggle-btn svg {
  transform: rotate(180deg);
}

/* Accordion Drawer */
.dip-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth);
}

.dip-card.is-open .dip-detail {
  border-top: 1px solid var(--border-light);
}

.dip-detail-inner {
  padding: 20px 24px 24px;
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.6;
  background: var(--bg-subtle);
}

.dip-detail-inner h4 {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  margin: 12px 0 6px;
}

.dip-detail-inner h4:first-child {
  margin-top: 0;
}

.dip-detail-inner p {
  margin-bottom: 14px;
  color: var(--text-muted);
}

.dip-modules-list {
  display: grid;
  gap: 8px;
  padding-left: 0;
}

.dip-modules-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--text-body);
}

.dip-module-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Mobile Responsiveness for Detail View */
@media (max-width: 768px) {
  .dip-card {
    flex-direction: column;
  }
  .dip-photo {
    width: 100%;
    height: 180px;
  }
  .dip-head {
    padding: 16px 18px 12px;
  }
  .dip-actions {
    padding: 0 18px 16px;
  }
  .dip-detail-inner {
    padding: 16px 18px;
  }
  .detail-head-overlay {
    padding: 0 20px;
    gap: 14px;
  }
  .detail-icon {
    width: 48px;
    height: 48px;
  }
  .detail-icon svg {
    width: 24px;
    height: 24px;
  }
}

/* ==========================================================================
   HOW TO ENROLL / STEPS
   ========================================================================== */
.section-steps {
  padding: 72px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
}

.steps-timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .steps-timeline {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step-item {
  background: var(--bg-muted);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  text-align: center;
}

.step-num-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.25);
}

.step-item:nth-child(2) .step-num-badge {
  background: var(--wa);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.step-item h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.step-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.section-faq {
  padding: 72px 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-item.is-open {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
}

.faq-question svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.faq-item.is-open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth);
}

.faq-answer-inner {
  padding: 0 22px 20px;
  font-size: 0.94rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* ==========================================================================
   FINAL CTA BANNER
   ========================================================================== */
.section-banner-cta {
  padding: 40px 0 72px;
}

.banner-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  border-radius: var(--radius-xl);
  padding: 44px 28px;
  text-align: center;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

@media (min-width: 768px) {
  .banner-box {
    padding: 60px 48px;
  }
}

.banner-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.4) 0%, rgba(10, 37, 64, 0) 70%);
  pointer-events: none;
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}

.banner-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.8vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
}

.banner-content p {
  font-size: 1.05rem;
  color: #CBD5E1;
  margin-bottom: 28px;
}

.btn-banner-wa {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--wa);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  padding: 16px 36px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.btn-banner-wa:hover {
  background: var(--wa-hover);
  transform: scale(1.03);
}

.btn-banner-wa svg {
  width: 24px;
  height: 24px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--primary-deep);
  color: #FFFFFF;
  padding: 60px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 44px;
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo-wrap img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.footer-brand-title {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

.footer-brand-title span {
  display: block;
  font-size: 0.76rem;
  color: var(--cyan);
  font-family: var(--font-body);
  font-weight: 500;
}

.footer-brand p {
  color: #94A3B8;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 380px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #94A3B8;
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #CBD5E1;
  font-size: 0.88rem;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--cyan);
  flex-shrink: 0;
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.82rem;
  color: #64748B;
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON & INTERACTIVE TOOLTIP
   ========================================================================== */
.wa-floating-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}

.wa-floating-container * {
  pointer-events: auto;
}

.wa-prompt-bubble {
  background: #FFFFFF;
  color: var(--text-main);
  padding: 12px 16px;
  border-radius: var(--radius-md) var(--radius-md) var(--radius-sm) var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  max-width: 250px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: floatIn 0.4s ease forwards;
  position: relative;
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.wa-prompt-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--wa);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.wa-prompt-avatar svg {
  width: 16px;
  height: 16px;
}

.wa-prompt-text strong {
  display: block;
  font-size: 0.85rem;
  color: var(--primary);
  line-height: 1.2;
}

.wa-prompt-text span {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.wa-prompt-close {
  color: var(--text-subtle);
  padding: 2px;
  cursor: pointer;
  margin-left: -4px;
  transition: color var(--transition-fast);
}

.wa-prompt-close:hover {
  color: var(--red);
}

.wa-prompt-close svg {
  width: 14px;
  height: 14px;
}

/* Floating Action Button */
.wa-float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  text-decoration: none;
}

.wa-float-btn:hover {
  background: var(--wa-hover);
  transform: scale(1.1);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.6);
}

.wa-float-btn svg {
  width: 32px;
  height: 32px;
}

.wa-float-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--wa);
  animation: waPulseRing 2.2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  pointer-events: none;
}

@keyframes waPulseRing {
  0% { transform: scale(0.9); opacity: 0.9; }
  60% { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}

.wa-badge-online {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid var(--wa);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-badge-online::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
}

@media (max-width: 640px) {
  .wa-floating-container {
    bottom: 20px;
    right: 18px;
  }
  .wa-float-btn {
    width: 54px;
    height: 54px;
  }
  .wa-float-btn svg {
    width: 28px;
    height: 28px;
  }
  .wa-prompt-bubble {
    max-width: 210px;
    padding: 10px 12px;
  }
}
