
/* ===============================
   HEADER CURSOS
================================ */

.header-cursos {
  width: 100%;
  background: #0f172a; /* azul oscuro elegante */
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* NAVBAR */
.header-cursos .navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.header-cursos .logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.header-cursos .logo span {
  color: #38bdf8; /* acento */
}

/* NAV LINKS */
.header-cursos nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-cursos nav a {
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.header-cursos nav a:hover {
  color: #38bdf8;
}

/* CARRITO */
.cart-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.cart-wrapper img.cart {
  width: 26px;
  height: 26px;
  filter: invert(1);
}

/* BADGE CARRITO */
#cart-count {
  position: absolute;
  top: -8px;
  right: -10px;

  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;

  width: 20px;
  height: 20px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 768px) {
  .header-cursos .navbar {
    flex-direction: column;
    gap: 14px;
  }

  .header-cursos nav {
    gap: 18px;
  }
}


.cursos-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  padding: 40px;
}

.curso-card {
  background: #111;
  color: #fff;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.curso-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.curso-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.curso-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
}

.add-to-cart-btn {
  flex: 1;
  background: #0ea5e9;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  color: #000;
  font-weight: 600;
}

.info-btn {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  background: #222;
  color: #fff;
  text-decoration: none;
}
