body {
  background-color: #0f172a;
  color: #f8fafc;
}

.gradient-text {
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #10b981);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass-card {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 50;
  transition: all 0.3s ease;
}

.floating-whatsapp:hover {
  transform: scale(1.1) rotate(5deg);
}

/* Roadmap Styles - Premium Organic winding path */
.roadmap-container {
  position: relative;
  padding: 3rem 0;
  max-width: 900px;
  margin: 0 auto;
}

.roadmap-step {
  position: relative;
  display: flex;
  width: 100%;
  margin-bottom: 4rem;
}

/* Horizontal spacing */
.roadmap-content {
  width: 44%;
  position: relative;
  z-index: 10;
}

.roadmap-step:nth-child(odd) {
  justify-content: flex-start;
  text-align: right;
}

.roadmap-step:nth-child(even) {
  justify-content: flex-end;
  text-align: left;
}

/* The Dot */
.roadmap-dot {
  position: absolute;
  left: 50%;
  top: 2rem;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background: #0f172a;
  border: 4px solid #3b82f6;
  border-radius: 50%;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

/* The Winding Path - Using pseudo-elements to create the 'snake' effect */
.roadmap-step::before {
  content: "";
  position: absolute;
  top: 2rem;
  left: 50%;
  width: calc(50% + 20px);
  height: calc(100% + 4rem);
  border: 3px dashed rgba(59, 130, 246, 0.3);
  z-index: 5;
}

.roadmap-step:nth-child(odd)::before {
  border-left: none;
  border-top: none;
  border-bottom: none;
  border-right: 3px dashed rgba(59, 130, 246, 0.3);
  border-radius: 0 50px 50px 0;
  transform: translateX(-3px);
}

.roadmap-step:nth-child(even)::before {
  border-right: none;
  border-top: none;
  border-bottom: none;
  border-left: 3px dashed rgba(59, 130, 246, 0.3);
  border-radius: 50px 0 0 50px;
  transform: translateX(3px);
  left: auto;
  right: 50%;
}

.roadmap-step:last-child::before {
  display: none;
}

/* Small horizontal bridge to card */
.roadmap-step::after {
  content: "";
  position: absolute;
  top: 2rem;
  width: 6%;
  height: 2px;
  background: linear-gradient(to right, transparent, #3b82f6);
  z-index: 5;
}

.roadmap-step:nth-child(odd)::after {
  right: 50%;
  transform: translateX(-18px);
}

.roadmap-step:nth-child(even)::after {
  left: 50%;
  transform: translateX(18px) rotate(180deg);
}

.roadmap-step:hover .roadmap-dot {
  background: #3b82f6;
  color: white;
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.6);
}

@media (max-width: 768px) {
  .roadmap-container {
    padding-left: 50px;
  }
  .roadmap-container::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    border-left: 2px dashed rgba(59, 130, 246, 0.3);
  }
  .roadmap-step {
    justify-content: flex-start !important;
    text-align: left !important;
    padding-left: 10px;
  }
  .roadmap-content {
    width: 100%;
  }
  .roadmap-dot {
    left: -30px;
    top: 2rem;
  }
  .roadmap-step::before,
  .roadmap-step::after {
    display: none;
  }
}

@media print {
  /* Hide non-essential or specifically requested elements */
  nav,
  footer,
  #metodo,
  #metodo-secundaria,
  #inversion,
  .floating-whatsapp,
  .temario-tabs,
  .download-pdf-btn,
  .tab-btn,
  #beneficios {
    display: none !important;
  }

  /* Keep Hero, Schedules, and Syllabus */
  #inicio,
  #horarios,
  #temario {
    display: block !important;
  }

  /* Reset layout for clean printing */
  body {
    background: white !important;
    color: black !important;
  }

  /* Only show the currently active tab in schedules and syllabus */
  .tab-content {
    display: none !important;
  }
  .tab-content:not(.hidden) {
    display: grid !important;
  }

  .temario-content {
    display: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .temario-content.print-active {
    display: block !important;
  }

  /* Visual adjustments for glass-cards and text */
  .glass-card {
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    backdrop-filter: none !important;
    color: #1e293b !important;
    box-shadow: none !important;
  }

  .roadmap-container {
    max-width: 100% !important;
    padding: 20px 0 !important;
  }

  .roadmap-dot {
    background: white !important;
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
    box-shadow: none !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .roadmap-step::before {
    border-color: #cbd5e1 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .text-white {
    color: #0f172a !important;
  }
  .text-slate-400 {
    color: #64748b !important;
  }
  .text-math-primary,
  .text-math-secondary,
  .text-math-accent {
    color: #3b82f6 !important;
  }

  .roadmap-step {
    page-break-inside: avoid;
  }
}
