:root {
  --primary-color: #6c63ff;
  --secondary-color: #4a44b5;
  --accent-color: #ff6584;
  --dark-color: #2a2a3c;
  --light-color: #f8f9fa;
  --gray-color: #6c757d;
  --success-color: #28a745;
  --border-radius: 12px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: #f5f7ff;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.navbar {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark-color);
}

.logo span {
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-left: 30px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-menu a:hover {
  color: var(--primary-color);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-menu a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--dark-color);
  margin: 3px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  min-height: 80vh;
  padding: 60px 0;
  background: linear-gradient(135deg, #f5f7ff 0%, #e6e9ff 100%);
}

.hero-content {
  flex: 1;
  padding: 0 40px;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--dark-color);
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--gray-color);
  margin-bottom: 30px;
  max-width: 500px;
}

.btn-primary {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
}

.hero-image {
  flex: 1;
  position: relative;
  height: 400px;
}

.floating-card {
  position: absolute;
  background: white;
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  transition: var(--transition);
}

.floating-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.floating-card p {
  font-weight: 600;
  text-align: center;
}

.card-1 {
  top: 20%;
  left: 10%;
  animation: float 6s ease-in-out infinite;
}

.card-2 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: float 8s ease-in-out infinite 1s;
}

.card-3 {
  bottom: 20%;
  right: 10%;
  animation: float 7s ease-in-out infinite 0.5s;
}

@keyframes float {
  0% {
      transform: translateY(0);
  }
  50% {
      transform: translateY(-15px);
  }
  100% {
      transform: translateY(0);
  }
}

.floating-card:hover {
  transform: translateY(-10px) scale(1.05);
}

/* Cursos Section */
.cursos-section {
  padding: 80px 0;
  background-color: white;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.section-subtitle {
  text-align: center;
  color: var(--gray-color);
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cursos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.curso-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  cursor: pointer;
}

.curso-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.curso-img {
  height: 180px;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}

.curso-content {
  padding: 25px;
}

.curso-content h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--dark-color);
}

.curso-content p {
  color: var(--gray-color);
  margin-bottom: 20px;
}

.curso-meta {
  display: flex;
  justify-content: space-between;
  color: var(--gray-color);
  font-size: 0.9rem;
}

/* Curso Detalle Section */
.curso-detalle-section {
  padding: 80px 0;
  background-color: #f5f7ff;
}

.btn-back {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.btn-back i {
  margin-right: 8px;
}

.btn-back:hover {
  color: var(--secondary-color);
}

.curso-header {
  text-align: center;
  margin-bottom: 50px;
}

.curso-titulo {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.curso-descripcion {
  color: var(--gray-color);
  max-width: 700px;
  margin: 0 auto;
}

.clases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
}

.clase-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.clase-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.clase-numero {
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-right: 20px;
  flex-shrink: 0;
}

.clase-info {
  flex: 1;
}

.clase-info h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--dark-color);
}

.clase-info p {
  color: var(--gray-color);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.btn-video {
  display: inline-flex;
  align-items: center;
  background-color: var(--primary-color);
  color: white;
  padding: 8px 16px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-video i {
  margin-right: 8px;
}

.btn-video:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

/* Video Modal */
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 900px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: var(--dark-color);
  color: white;
}

.modal-header h3 {
  font-size: 1.2rem;
}

.close-modal {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.close-modal:hover {
  color: var(--accent-color);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.footer-section h3 span {
  color: var(--primary-color);
}

.footer-section h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #e0e0e0;
}

.footer-section p {
  color: #b0b0b0;
  margin-bottom: 10px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #b0b0b0;
  text-decoration: none;
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: var(--primary-color);
}

.footer-section i {
  margin-right: 10px;
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  color: #b0b0b0;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero {
      flex-direction: column;
      text-align: center;
  }
  
  .hero-content {
      padding: 0 20px;
      margin-bottom: 40px;
  }
  
  .hero-content h1 {
      font-size: 2.5rem;
  }
  
  .floating-card {
      width: 120px;
      height: 120px;
  }
  
  .floating-card i {
      font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hamburger {
      display: flex;
  }
  
  .nav-menu {
      position: fixed;
      top: 70px;
      right: -100%;
      flex-direction: column;
      background-color: white;
      width: 80%;
      height: calc(100vh - 70px);
      transition: var(--transition);
      box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
      z-index: 999;
      padding: 40px 0;
  }
  
  .nav-menu.active {
      right: 0;
  }
  
  .nav-menu li {
      margin: 15px 0;
      text-align: center;
  }
  
  .hero-content h1 {
      font-size: 2rem;
  }
  
  .section-title {
      font-size: 2rem;
  }
  
  .curso-titulo {
      font-size: 2rem;
  }
  
  .clases-grid {
      grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
      font-size: 1.8rem;
  }
  
  .cursos-grid {
      grid-template-columns: 1fr;
  }
  
  .floating-card {
      width: 100px;
      height: 100px;
      padding: 15px;
  }
  
  .floating-card i {
      font-size: 1.5rem;
  }
  
  .floating-card p {
      font-size: 0.8rem;
  }
}