* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #050b14;
  /* IMPORTANTE: Reemplazar la URL por la imagen real del banner "minicursos.png" que el cliente posee */
  background-image: url("https://images.unsplash.com/photo-1524995997946-a1c2e315a42f?q=80&w=2070&auto=format&fit=crop");
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed;
  background-repeat: no-repeat;
  position: relative;
  color: #fff;
  line-height: 1.5;
}

.logo-wrapper {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 100x; /* Ajusta según el tamaño deseado */
  width: auto;
  max-width: 180px;
  display: block;
}

/* Capa de superposición para mejorar contraste y legibilidad sobre cualquier fondo */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 12, 24, 0.7);
  backdrop-filter: brightness(0.96) blur(1px);
  z-index: -1;
  pointer-events: none;
}

.main-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 2rem 2rem;
  position: relative;
  z-index: 2;
  min-height: 80vh;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(72, 187, 120, 0.3);
}

.logo h1 {
  font-size: 1.9rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #9effcf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.5px;
}

.logo span {
  font-size: 0.85rem;
  font-weight: 400;
  color: #b0e0c0;
  display: block;
}

.market-badge {
  background: rgba(0, 20, 30, 0.6);
  backdrop-filter: blur(8px);
  padding: 0.5rem 1.2rem;
  border-radius: 60px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(80, 200, 120, 0.4);
}

.market-badge i {
  margin-right: 6px;
  color: #4ade80;
}

/* Indicadores (ticker) */
.ticker-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: space-between;
  background: rgba(8, 20, 33, 0.5);
  backdrop-filter: blur(12px);
  border-radius: 2rem;
  padding: 1rem 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(72, 187, 120, 0.25);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-weight: 600;
}

.stat-symbol {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #a0c0e0;
}

.stat-value {
  font-size: 1.35rem;
  font-weight: 700;
}

.stat-change {
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.positive {
  color: #2ecc71;
}
.negative {
  color: #e67e22;
}

/* Hero y pilares */
.hero {
  text-align: center;
  margin: 7rem 0 1rem;
}

.hero h2 {
  text-transform: uppercase;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(to right, #f5f9ff, #b9f6ca);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.75rem;
}

.hero p {
  font-size: 1.2rem;
  color: #e2f0e6;
  max-width: 700px;
  margin: 0 auto;
}

.pillars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.8rem 0 2rem;
  padding-bottom: 80px;
  padding-top: 10px;
}

.pillar-item {
  background: rgba(15, 40, 35, 0.5);
  backdrop-filter: blur(8px);
  padding: 0.5rem 1.5rem;
  border-radius: 40px;
  font-weight: 600;
  border: 1px solid rgba(46, 204, 113, 0.5);
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* Sección cursos */
.courses-section {
  margin: 2rem 0 1rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.section-title:after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #2ecc71;
  margin: 12px auto 0;
  border-radius: 4px;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.course-card {
  background: rgba(12, 24, 36, 0.65);
  backdrop-filter: blur(12px);
  border-radius: 28px;
  padding: 1.6rem;
  transition: all 0.25s ease;
  border: 1px solid rgba(70, 190, 110, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.course-card:hover {
  transform: translateY(-6px);
  border-color: #2ecc71;
  background: rgba(18, 34, 48, 0.85);
}

.course-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 1rem;
  background: #1a2a3a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.course-title {
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #fff, #c3f0d0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.course-desc {
  color: #d4e6f0;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex: 1;
}

.course-price {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  color: #f5f9ff;
}

.course-price small {
  font-size: 0.9rem;
  font-weight: 500;
  color: #9acd9e;
}

.btn-detail {
  background: linear-gradient(95deg, #1f8a4c, #2ecc71);
  border: none;
  padding: 0.85rem 0;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  width: 100%;
  color: white;
  font-family: inherit;
  transition: 0.2s;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.btn-detail i {
  margin-right: 8px;
}

.btn-detail:hover {
  background: linear-gradient(95deg, #116a3c, #24b05e);
  transform: scale(1.01);
}

/* Vista de detalle */
.detail-view {
  display: none;
  animation: fadeIn 0.3s ease;
}

.view {
  transition: 0.2s;
}

.active-view {
  display: block;
}

.detail-container {
  background: rgba(8, 20, 33, 0.55);
  backdrop-filter: blur(16px);
  border-radius: 2rem;
  padding: 2rem;
  margin-top: 1rem;
  border: 1px solid rgba(72, 187, 120, 0.4);
}

.back-button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #2ecc71;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  transition: 0.2s;
}

.back-button:hover {
  background: #2ecc71;
  color: #0a1a1f;
}

.detail-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detail-img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid rgba(72, 187, 120, 0.5);
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.4);
}

.detail-title {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, #b0f0c0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.detail-description {
  font-size: 1.15rem;
  line-height: 1.5;
  color: #e2f0ea;
}

.detail-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: #f0fff0;
}

.btn-buy-now {
  background: linear-gradient(95deg, #f39c12, #e67e22);
  border: none;
  padding: 1rem 2rem;
  border-radius: 60px;
  font-weight: 800;
  font-size: 1.2rem;
  cursor: pointer;
  color: white;
  width: 100%;
  max-width: 300px;
  transition: 0.2s;
  margin-top: 0.5rem;
  font-family: inherit;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-buy-now i {
  margin-right: 10px;
}

.btn-buy-now:hover {
  background: linear-gradient(95deg, #e67e22, #d35400);
  transform: scale(1.02);
}

/* Footer */
.footer {
  margin-top: 4rem;
  text-align: center;
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(46, 204, 113, 0.3);
  font-size: 0.85rem;
  color: #bdd3cc;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    margin: 2rem 0 1rem;
  }
  .market-badge {
    margin-top: 10px;
  }
  .logo-wrapper {
    justify-content: center;
  }

  .navbar {
    justify-items: center;
    justify-content: center;
  }
  .main-wrapper {
    padding: 1rem 1.2rem;
  }
  .hero h2 {
    font-size: 2rem;
  }
  .ticker-stats {
    justify-content: center;
    gap: 0.8rem;
  }
  .stat-card {
    align-items: center;
    text-align: center;
  }
  .detail-title {
    font-size: 1.8rem;
  }
  .detail-img {
    max-height: 220px;
  }
  .btn-buy-now {
    max-width: 100%;
  }
}
