/* ==========================================================================
   ACADEMIA CTD - HUMAN-GRADE DESIGN SYSTEM & STYLESHEET
   Style Direction: Premium Educational Institution (Coderhouse / Ironhack Aesthetic)
   Author: Senior Frontend Developer & UI/UX Specialist
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. COLOR PALETTE & SYSTEM VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* Brand Deep Dark Palette */
  --bg-dark-primary: #20264A;
  --bg-dark-secondary: #171b36;
  --bg-dark-deep: #0f1228;
  
  /* Brand Light Palette */
  --bg-light-primary: #ffffff;
  --bg-light-secondary: #f8fafc;
  --bg-light-ice: #f1f5f9;
  --bg-light-card: #ffffff;

  /* Accent & Action Colors */
  --primary-orange: #ea580c;
  --primary-orange-hover: #c2410c;
  --primary-orange-light: #fff7ed;
  
  --tech-blue: #20264A;
  --tech-blue-hover: #161a35;
  --tech-blue-light: #f0f2fb;
  --tech-blue-border: #c5cded;

  /* Status & Accents */
  --whatsapp-green: #16a34a;
  --whatsapp-green-hover: #15803d;
  --star-gold: #f59e0b;
  --status-green: #22c55e;

  /* Text Colors */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --text-dark-muted: #94a3b8;

  /* Borders & Shadows */
  --border-light: #e2e8f0;
  --border-dark: #1e293b;
  --border-focus: #2563eb;

  /* Typography */
  --font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Modern Clean Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 20px 32px -8px rgba(15, 23, 42, 0.16);
  --shadow-orange: 0 6px 20px -2px rgba(234, 88, 12, 0.35);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-bounce: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  /* Border Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Container Width */
  --max-width: 1240px;
}

/* --------------------------------------------------------------------------
   2. BASE RESET & TYPOGRAPHY
   -------------------------------------------------------------------------- */
*, *::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-family);
  background-color: var(--bg-light-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section Header Shared Style */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: var(--tech-blue-light);
  border: 1px solid var(--tech-blue-border);
  color: var(--tech-blue);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-badge.badge-orange {
  background: var(--primary-orange-light);
  border-color: rgba(234, 88, 12, 0.2);
  color: var(--primary-orange);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Buttons (Solid, High-Contrast, No Bloat) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary-orange);
  color: #ffffff;
  box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
  background-color: var(--primary-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -2px rgba(234, 88, 12, 0.45);
}

.btn-secondary {
  background-color: transparent;
  color: var(--tech-blue);
  border: 2px solid var(--tech-blue);
}

.btn-secondary:hover {
  background-color: var(--tech-blue);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: var(--whatsapp-green);
  color: #ffffff;
  box-shadow: 0 6px 18px -2px rgba(22, 163, 74, 0.35);
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-green-hover);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   3. TOPBAR SUPERIOR (FIXED WRAPPING & CLEAN BADGES)
   -------------------------------------------------------------------------- */
.topbar {
  background-color: #161a35;
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
}

.topbar-tag-desktop {
  display: inline;
  color: #f8fafc;
  font-weight: 600;
  font-size: 0.825rem;
}

.topbar-tag-mobile {
  display: none;
  color: #f8fafc;
  font-weight: 600;
  font-size: 0.8rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--status-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--status-green);
  display: inline-block;
  flex-shrink: 0;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  white-space: nowrap;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #cbd5e1;
  font-weight: 500;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.topbar-link:hover {
  color: #ffffff;
}

.topbar-link.highlight {
  color: #38bdf8;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   4. HEADER / NAVBAR & MOBILE DRAWER
   -------------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(32, 38, 74, 0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: all var(--transition-fast);
}

.navbar.scrolled {
  box-shadow: 0 10px 30px rgba(15, 20, 45, 0.6);
  background-color: rgba(32, 38, 74, 0.98);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.logo-badge {
  background-color: #20264A;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: #cbd5e1;
  padding: 0.5rem 0;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 1.15rem;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.mobile-toggle:hover,
.mobile-toggle:active {
  background: #ffffff;
  color: #20264A;
}

/* Mobile Fullscreen Drawer Overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 20, 45, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  z-index: 998;
  display: flex;
  flex-direction: column;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-inner {
  background: #ffffff;
  width: 100%;
  padding: 1.25rem 1rem 1.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  border-radius: 0 0 20px 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transform: translateY(-20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 98px;
}

.mobile-menu.open .mobile-menu-inner {
  transform: translateY(0);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-light-secondary);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-light);
}

.mobile-nav-link span {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-nav-link span i {
  color: #20264A;
  width: 20px;
  text-align: center;
}

.mobile-nav-link .chevron {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  background: #20264A;
  color: #ffffff;
  border-color: #20264A;
}

.mobile-nav-link:hover span i,
.mobile-nav-link:hover .chevron,
.mobile-nav-link:active span i,
.mobile-nav-link:active .chevron {
  color: #ffffff;
}

.mobile-menu-footer {
  padding-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   5. HERO CANVAS 100% ESTILO APPLE AIRPODS 4 (FULL-BLEED HERO)
   -------------------------------------------------------------------------- */
.airpods-hero {
  position: relative;
  width: 100%;
  min-height: 82vh;
  max-height: 800px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: #20264A;
}

.airpods-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.airpods-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* Dual-Tone Ambient Gradient Overlay (#20264A Navy Vignette Left + Warm Glow Right) */
.airpods-hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(90deg, 
      rgba(32, 38, 74, 0.97) 0%, 
      rgba(32, 38, 74, 0.88) 40%, 
      rgba(32, 38, 74, 0.45) 70%, 
      rgba(234, 88, 12, 0.2) 100%),
    radial-gradient(ellipse at 75% 40%, rgba(234, 88, 12, 0.35) 0%, transparent 60%);
}

.airpods-hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 6rem;
  padding-bottom: 4.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
}

/* Bottom-Left Heavy Typography (Apple Style) */
.airpods-hero-content {
  max-width: 650px;
  color: #ffffff;
}

.airpods-hero-brand {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #38bdf8;
  display: block;
  margin-bottom: 0.75rem;
}

.airpods-hero-title {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.airpods-accent {
  color: #38bdf8;
  background: linear-gradient(135deg, #38bdf8 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.airpods-hero-desc {
  font-size: 1.15rem;
  color: #cbd5e1;
  line-height: 1.55;
  max-width: 520px;
}

/* Bottom-Right Floating Pill (Exact Apple AirPods 4 Replica) */
.airpods-floating-pill {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.65rem 0.65rem 0.65rem 1.6rem;
  border-radius: 999px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.5);
  margin-bottom: 0.5rem;
}

.pill-info {
  display: flex;
  flex-direction: column;
}

.pill-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.pill-detail {
  font-size: 0.775rem;
  color: #64748b;
  font-weight: 500;
}

.pill-buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #20264A;
  color: #ffffff;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition-bounce);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(32, 38, 74, 0.35);
}

.pill-buy-btn:hover {
  background: #161a35;
  transform: scale(1.04);
  box-shadow: 0 8px 22px rgba(32, 38, 74, 0.5);
}

/* --------------------------------------------------------------------------
   6. BARRA DE BENEFICIOS Y MÉTRICAS
   -------------------------------------------------------------------------- */
.metrics-bar {
  background-color: #ffffff;
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--border-light);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.metric-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--tech-blue-light);
  color: var(--tech-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.metric-info h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.metric-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   7. CATÁLOGO CON FILTROS (NUESTRA OFERTA ACADÉMICA)
   -------------------------------------------------------------------------- */
.courses-section {
  padding: 5.5rem 0;
  background-color: var(--bg-light-secondary);
}

.filter-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.search-box input {
  width: 100%;
  padding: 0.85rem 1.25rem 0.85rem 2.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: #ffffff;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.search-box input:focus {
  border-color: var(--tech-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.search-box i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.filter-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--tech-blue);
  color: var(--tech-blue);
}

.filter-btn.active {
  background: var(--tech-blue);
  color: #ffffff;
  border-color: var(--tech-blue);
}

/* Course Cards */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.course-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.course-img-wrapper {
  position: relative;
  height: 210px;
  overflow: hidden;
}

.course-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.course-card:hover .course-img-wrapper img {
  transform: scale(1.04);
}

.course-category-tag {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.course-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-specs {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.course-specs span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.course-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

.course-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.course-bullets {
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.bullet-item {
  font-size: 0.825rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bullet-item i {
  color: var(--tech-blue);
  font-size: 0.85rem;
}

.course-footer {
  margin-top: auto;
}

.course-footer .btn {
  width: 100%;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-light);
  display: none;
}

.no-results.visible {
  display: block;
}

/* --------------------------------------------------------------------------
   8. SECCIÓN "¿POR QUÉ ESTUDIAR EN ACADEMIA CTD?"
   -------------------------------------------------------------------------- */
.why-us-section {
  padding: 5.5rem 0;
  background-color: #ffffff;
}

.why-us-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.why-us-media {
  position: relative;
}

.why-us-image-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
}

.why-us-image-card img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.why-us-badge {
  position: absolute;
  bottom: -20px;
  right: -15px;
  background: var(--bg-dark-primary);
  color: #ffffff;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 270px;
}

.why-stat {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-orange);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.why-stat-text {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.4;
}

.why-us-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.why-us-point {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.point-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--tech-blue-light);
  color: var(--tech-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.point-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.point-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   9. PROCESO DE ADMISIÓN EN 4 PASOS
   -------------------------------------------------------------------------- */
.workflow-section {
  padding: 5.5rem 0;
  background-color: var(--bg-light-ice);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.step-card {
  background: #ffffff;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--transition-normal);
}

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

.step-badge-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-dark-primary);
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   10. BANNER PROMOCIONAL
   -------------------------------------------------------------------------- */
.promo-banner {
  padding: 4.5rem 0;
  background: linear-gradient(135deg, var(--bg-dark-primary) 0%, var(--bg-dark-secondary) 100%);
  color: #ffffff;
  text-align: center;
}

.promo-container {
  max-width: 780px;
  margin: 0 auto;
}

.promo-tag-pill {
  display: inline-block;
  background: rgba(234, 88, 12, 0.2);
  border: 1px solid var(--primary-orange);
  color: var(--primary-orange);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.promo-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  line-height: 1.25;
}

.promo-subtitle {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
}

.countdown-box {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  margin-bottom: 2.25rem;
}

.timer-box {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  min-width: 75px;
}

.timer-val {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary-orange);
  line-height: 1;
}

.timer-lbl {
  font-size: 0.725rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   11. BENTO GRID DE LA COMUNIDAD
   -------------------------------------------------------------------------- */
.community-section {
  padding: 5.5rem 0;
  background-color: #ffffff;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 240px);
  gap: 1.25rem;
}

.bento-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.bento-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.bento-card:hover img {
  transform: scale(1.05);
}

.bento-large {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-caption {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 18, 32, 0.85) 0%, transparent 60%);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
}

.bento-caption h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.bento-caption p {
  font-size: 0.85rem;
  color: #cbd5e1;
}

/* --------------------------------------------------------------------------
   12. TESTIMONIOS
   -------------------------------------------------------------------------- */
.testimonials-section {
  padding: 5.5rem 0;
  background-color: var(--bg-light-secondary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stars-row {
  color: var(--star-gold);
  font-size: 0.85rem;
  display: flex;
  gap: 0.2rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.author-block {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-dark-primary);
  color: #ffffff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.author-meta h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.author-meta p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   13. INSTRUCTORES
   -------------------------------------------------------------------------- */
.instructors-section {
  padding: 5.5rem 0;
  background-color: #ffffff;
}

.instructors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.instructor-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem 1.25rem 1.5rem 1.25rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--transition-normal);
}

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

.instructor-icon-box {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--tech-blue-light);
  color: var(--tech-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.25rem auto;
  border: 2px solid var(--tech-blue-border);
}

.instructor-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.instructor-role {
  font-size: 0.8rem;
  color: var(--tech-blue);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.instructor-bio {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   14. FORMULARIO DE ADMISIÓN
   -------------------------------------------------------------------------- */
.admission-section {
  padding: 5.5rem 0;
  background-color: var(--bg-light-ice);
}

.admission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: stretch;
}

.admission-left-card {
  background: var(--bg-dark-primary);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.admission-left-card h3 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.admission-left-card p {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.check-group {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 2.5rem;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.925rem;
  color: #f1f5f9;
}

.check-item i {
  color: var(--primary-orange);
  font-size: 1.1rem;
}

.direct-wa-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.15rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.direct-wa-box i {
  font-size: 2.25rem;
  color: var(--whatsapp-green);
}

.admission-right-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
}

.form-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.form-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-light-secondary);
  font-size: 0.925rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--tech-blue);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-control.error {
  border-color: #ef4444;
  background: #fef2f2;
}

.error-text {
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 0.25rem;
  display: none;
}

.error-text.visible {
  display: block;
}

/* --------------------------------------------------------------------------
   15. SECCIÓN DE CONTACTO & MAPA
   -------------------------------------------------------------------------- */
.contact-section {
  padding: 5.5rem 0;
  background: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tech-blue-light);
  color: var(--tech-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.contact-info h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.contact-info p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.map-container {
  height: 380px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  position: relative;
  background: #e2e8f0 url('https://images.unsplash.com/photo-1526778548025-fa2f459cd5c1?auto=format&fit=crop&w=800&q=80') center/cover no-repeat;
}

.map-card-overlay {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.map-marker {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.marker-icon {
  width: 42px;
  height: 42px;
  background: var(--primary-orange);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-orange);
}

/* --------------------------------------------------------------------------
   16. FOOTER PRINCIPAL
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--bg-dark-deep);
  color: #94a3b8;
  padding: 4.5rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand .logo {
  color: #ffffff;
  margin-bottom: 1.15rem;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.social-row {
  display: flex;
  gap: 0.6rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  font-size: 0.9rem;
}

.social-icon:hover {
  background: var(--tech-blue);
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: #cbd5e1;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.825rem;
}

/* --------------------------------------------------------------------------
   17. FLOATING WHATSAPP BUTTON & FAQ MODAL
   -------------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background-color: var(--whatsapp-green);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.4);
  z-index: 1000;
  transition: all var(--transition-bounce);
}

.whatsapp-float:hover {
  transform: scale(1.08);
  background-color: var(--whatsapp-green-hover);
}

/* FAQ Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 18, 32, 0.75);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #ffffff;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 620px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.25rem;
  position: relative;
  box-shadow: var(--shadow-xl);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 1.25rem;
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light-ice);
}

.accordion-item {
  border-bottom: 1px solid var(--border-light);
  padding: 0.9rem 0;
}

.accordion-header {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.accordion-body {
  padding-top: 0.65rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: none;
  line-height: 1.55;
}

.accordion-item.active .accordion-body {
  display: block;
}

.accordion-item.active .accordion-header i {
  transform: rotate(180deg);
}

/* --------------------------------------------------------------------------
   18. COMPREHENSIVE RESPONSIVE DESIGN SYSTEM (MOBILE, TABLET & DESKTOP)
   -------------------------------------------------------------------------- */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Tablet & Smaller Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .hero-grid,
  .why-us-grid,
  .admission-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .courses-grid,
  .testimonials-grid,
  .metrics-grid,
  .instructors-grid,
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .bento-large {
    grid-column: span 2;
    height: 280px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

/* Mobile Devices & Small Tablets (<= 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  /* Topbar Mobile Cleanup */
  .topbar-right,
  .topbar-tag-desktop {
    display: none !important;
  }

  .topbar-tag-mobile {
    display: inline !important;
  }

  .topbar .container {
    justify-content: center;
  }

  .topbar-left {
    white-space: normal;
    text-align: center;
    font-size: 0.775rem;
    line-height: 1.4;
  }

  /* Header & Navigation Mobile Drawer */
  .nav-links, 
  .nav-actions .btn-primary {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .navbar .container {
    height: 64px;
  }

  /* AirPods Hero Section Mobile Optimization */
  .airpods-hero {
    min-height: auto;
    max-height: none;
    padding: 2rem 0 2.5rem 0;
    background-color: #20264A;
  }

  .airpods-hero-bg img {
    object-position: center 25%;
    opacity: 0.4;
  }

  .airpods-hero-overlay {
    background: linear-gradient(180deg, 
      rgba(32, 38, 74, 0.98) 0%, 
      rgba(32, 38, 74, 0.88) 50%, 
      rgba(32, 38, 74, 0.96) 100%);
  }

  .airpods-hero-container {
    flex-direction: column;
    align-items: stretch;
    padding-top: 1rem;
    padding-bottom: 1.5rem;
    gap: 1.5rem;
  }

  .airpods-hero-brand {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
  }

  .airpods-hero-title {
    font-size: 2.4rem;
    line-height: 1.1;
    margin-bottom: 0.85rem;
  }

  .airpods-hero-desc {
    font-size: 0.95rem;
    line-height: 1.55;
    color: #e2e8f0;
  }

  .airpods-floating-pill {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    margin-top: 0.5rem;
  }

  .pill-info {
    gap: 0.15rem;
  }

  .pill-name {
    font-size: 0.85rem;
    line-height: 1.2;
  }

  .pill-detail {
    font-size: 0.725rem;
  }

  .pill-buy-btn {
    padding: 0.6rem 1.1rem;
    font-size: 0.85rem;
    border-radius: var(--radius-full);
  }

  /* Metrics Bar Mobile */
  .metrics-bar {
    padding: 2rem 0;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Courses Catalog & Horizontal Filter Scroll */
  .courses-section {
    padding: 3.5rem 0;
  }

  .search-box {
    max-width: 100%;
  }

  .filter-pills {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    scrollbar-width: none; /* Firefox */
  }

  .filter-pills::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  .filter-btn {
    flex-shrink: 0;
    padding: 0.45rem 1rem;
    font-size: 0.825rem;
  }

  .courses-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Why Us Section Mobile */
  .why-us-section {
    padding: 3.5rem 0;
  }

  .why-us-image-card img {
    height: 260px;
  }

  .why-us-badge {
    position: static;
    margin-top: 1rem;
    max-width: 100%;
    right: auto;
    bottom: auto;
  }

  /* Steps Section Mobile */
  .workflow-section {
    padding: 3.5rem 0;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Promo Banner Mobile */
  .promo-banner {
    padding: 3.5rem 0;
  }

  .promo-title {
    font-size: 1.75rem;
  }

  .promo-subtitle {
    font-size: 0.95rem;
  }

  .countdown-box {
    gap: 0.5rem;
  }

  .timer-box {
    min-width: 60px;
    padding: 0.5rem 0.35rem;
  }

  .timer-val {
    font-size: 1.4rem;
  }

  .timer-lbl {
    font-size: 0.65rem;
  }

  .promo-banner .btn {
    width: 100%;
  }

  /* Community Bento Grid Mobile */
  .community-section {
    padding: 3.5rem 0;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-large {
    grid-column: span 1;
    height: 240px;
  }

  /* Testimonials & Instructors Mobile */
  .testimonials-section,
  .instructors-section {
    padding: 3.5rem 0;
  }

  .testimonials-grid,
  .instructors-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Admission Form Mobile */
  .admission-section {
    padding: 3.5rem 0;
  }

  .admission-left-card,
  .admission-right-card {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
  }

  .admission-left-card h3 {
    font-size: 1.5rem;
  }

  .form-title {
    font-size: 1.4rem;
  }

  /* Contact & Map Mobile */
  .contact-section {
    padding: 3.5rem 0;
  }

  .map-container {
    height: 300px;
  }

  .map-card-overlay {
    flex-direction: column;
    align-items: flex-start;
  }

  .map-card-overlay .btn {
    width: 100%;
  }

  /* Footer Mobile */
  .footer {
    padding: 3.5rem 0 2rem 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  /* Modal Mobile */
  .modal-content {
    padding: 1.5rem;
    max-height: 90vh;
  }
}

/* Compact Mobile Screens (<= 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.7rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .countdown-box {
    gap: 0.35rem;
  }

  .timer-box {
    min-width: 50px;
    padding: 0.4rem 0.25rem;
  }

  .timer-val {
    font-size: 1.2rem;
  }

  .whatsapp-float {
    bottom: 18px;
    right: 18px;
    width: 50px;
    height: 50px;
    font-size: 1.6rem;
  }
}

