body {
  min-height: 100vh;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  padding-top: 92px;
  background: #111014; /* Negro profundo */
  position: relative;
  overflow-x: hidden;
}

.background-glow {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 14%, #c1272d33 0%, #111014 60%) ,
    radial-gradient(circle at 92% 20%, #ff000023 0%, #11101400 65%) ,
    radial-gradient(circle at 5% 80%, #8500004d 0%, #11101400 67%) ,
    radial-gradient(circle at 85% 100%, #d9042947 0%, #11101400 50%) ,
    radial-gradient(circle at 60% 50%, #fff3 0%, #11101400 44%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: 0.97;
  filter: blur(0.6px);
  transition: background 0.6s;
}

.stars-bg {
  pointer-events: none;
  z-index: 1;
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  opacity: 0.09;
  background-image:
    repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 90px),
    repeating-linear-gradient(180deg, #fff 0 1px, transparent 1px 90px);
}

main, .navbar, footer, .card, .hero, .cursos-section {
  position: relative;
  z-index: 2;
}

/* Navbar siempre visible */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  background: transparent;
  z-index: 1000;
  display: flex;
  justify-content: center;
  height: 92px;
  box-sizing: border-box;
}

.navbar-container {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1220px;
  min-height: 68px;
  background: rgba(30, 6, 15, 0.27);  /* Negro con leve rojo, glass */
  border-radius: 20px;
  box-shadow: 0 4px 32px #d9042934; /* sombra rojiza */
  padding: 0 30px;
  margin-top: 18px;
  box-sizing: border-box;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.logo-link {
  display: flex;
  align-items: center;
  margin-right: 38px;
  padding: 7px 18px 7px 7px;
  border-radius: 14px;
  text-decoration: none;
  transition: background 0.18s, transform 0.18s;
}
.logo-link:hover {
  background: #d904294d; /* Rojo oscuro traslúcido */
  transform: scale(1.03);
}
.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  object-fit: contain;
  margin-right: 12px;
  background: #fff;
  box-shadow: 0 2px 12px #d904291a; /* sombra roja muy suave */
  transition: transform 0.23s cubic-bezier(.42,0,.58,1.0), box-shadow 0.18s;
}
.logo-link:hover .logo-img {
  transform: scale(1.10) rotate(-4deg);
  box-shadow: 0 0 22px #ff002522;
}
.brand {
  font-weight: 700;
  font-size: 1.23rem;
  color: #fff;
  letter-spacing: -0.2px;
  line-height: 1;
  text-decoration: none;
}

/* Nav links alineados */
.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1.08rem;
  color: #fff;
  padding: 0 24px;
  height: 44px;
  border-radius: 15px;
  background: rgba(156, 0, 0, 0.13); /* Glass con rojo tenue */
  box-shadow: 0 2px 8px #d9042910;
  border: 1px solid rgba(255,0,0,0.09);
  outline: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.19s,
    color 0.19s,
    box-shadow 0.18s,
    border 0.18s;
  position: relative;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.nav-link i {
  font-size: 1.17em;
}
.nav-link.active {
  background: rgba(207, 0, 26, 0.18); /* Rojo intenso */
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 16px 0 #d9042921;
}
.nav-link:hover,
.nav-link:focus {
  background: rgba(255, 0, 34, 0.31);
  color: #ff4040e2;
  text-decoration: none;
  border-color: #ff2b2b63;
  box-shadow: 0 4px 18px #d9042933;
}
.nav-link.active::after {
  content: '';
  display: block;
  height: 3px;
  border-radius: 2px;
  background: #ff2222;
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  transition: width 0.2s;
}

/* Botón iniciar sesión */
.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0;
}

.login-btn {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0 22px 0 16px;
  height: 44px;
  border-radius: 23px;
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  text-decoration: none;
  outline: none;
  gap: 8px;
  margin-left: 22px;
  box-shadow: none;
  transition:
    background 0.16s,
    color 0.14s,
    border 0.14s,
    transform 0.11s;
}
.login-btn i {
  font-size: 1.15em;
}
.login-btn:hover,
.login-btn.active {
  background: #d9042944;
  color: #fff;
  border-color: #ff4040;
  transform: scale(1.06);
  text-decoration: none;
}

/* Responsive: se adapta bien */
@media (max-width: 1150px) {
  .navbar-container { max-width: 97vw; padding: 0 8px; }
  .nav-link { padding: 0 13px; }
}
@media (max-width: 600px) {
  .navbar-container { min-height: 60px; padding: 0 4px; }
  .brand { font-size: 1.02rem; }
  .logo-img { width: 33px; height: 33px; }
  .nav-link, .login-btn { font-size: 0.96rem; height: 36px; }
  .nav-link { padding: 0 7px; }
}






.membresias-section {
    margin: 48px 0 0 0;
    padding: 0 0 44px 0;
    text-align: center;
}
.membresias-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: #fff;
}
.membresias-grid {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

/* --- CARD PRINCIPAL --- */
.membresia-card {
    background: rgba(17, 16, 20, 0.97);
    border-radius: 1.6rem;
    box-shadow: 0 6px 36px 0 #d9042912, 0 1.5px 4px 0 #0006;
    min-width: 270px;
    max-width: 340px;
    flex: 1 1 300px;
    padding: 32px 28px 26px 28px;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    border: 1.5px solid #2b0c1536;
    transition:
        box-shadow 0.22s cubic-bezier(.42,0,.58,1.0),
        transform 0.20s cubic-bezier(.42,0,.58,1.0),
        filter 0.19s cubic-bezier(.42,0,.58,1.0);
    filter: brightness(1.04) saturate(1.13);
    overflow: hidden;
    z-index: 1;
}

/* --- EFECTO HOVER PREMIUM --- */
.membresia-card:hover,
.membresia-card:focus-visible {
    transform: scale(1.055) translateY(-9px);
    box-shadow:
      0 16px 48px 0 #d9042939,
      0 0 18px #ff404062,
      0 1.5px 8px 0 #ff404018,
      0 0 34px 4px #3198ff33;
    filter: brightness(1.16) saturate(1.23) drop-shadow(0 0 18px #1cd4fd35);
    z-index: 3;
}
.membresia-card:hover::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 1.6rem;
    pointer-events: none;
    box-shadow: 0 0 50px 8px #d9042940, 0 0 22px 4px #3198ff33;
    opacity: 0.16;
    transition: opacity 0.21s;
    z-index: 4;
}
.membresia-card.popular {
    border: 2.5px solid #d90429;
    box-shadow: 0 0 18px #d904292a, 0 1.5px 7px 0 #fff2;
}
.membresia-descuento {
    position: absolute;
    top: 10px;
    left: 14px;         /* Cambiado de left a right */
    background: #d90429;
    color: #fff;
    font-weight: 500;
    font-size: 0.68rem;  /* Más pequeño aún */
    padding: 1.5px 6px;  /* Más angosto */
    border-radius: 0.6rem;
    box-shadow: 0 1px 4px #d9042920;
    letter-spacing: 0.08em;
    z-index: 2;
    pointer-events: none;
}

.membresia-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 18px;
    gap: 4px;
}
.membresia-nombre {
    font-size: 1.32rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.membresia-duracion {
    font-size: 1.08rem;
    color: #f7b8b8;
}
.membresia-precio {
    margin: 12px 0 5px 0;
    font-size: 2.1rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    gap: 7px;
    align-items: flex-end;
}
.precio-original {
    font-size: 1.05rem;
    color: #ff4040;
    text-decoration: line-through;
    margin-right: 5px;
}
.precio-final {
    font-size: 2.1rem;
    color: #fff;
    font-weight: 800;
}
.precio-periodo {
    font-size: 1rem;
    color: #bfc9df;
    font-weight: 400;
}
.membresia-ahorro {
    color: #14ff72;
    font-size: 1.01rem;
    margin-bottom: 4px;
    font-weight: 600;
}
.membresia-descripcion {
    margin: 10px 0 18px 0;
    color: #e2e2e2;
    font-size: 1.04rem;
    min-height: 48px;
}

/* --- BOTÓN ANIMADO --- */
.membresia-btn {
    display: inline-block;
    margin-top: 8px;
    background: linear-gradient(90deg,#d90429 0%,#ff4040 100%);
    color: #fff;
    font-weight: 700;
    border-radius: 11px;
    padding: 12px 32px;
    text-decoration: none;
    font-size: 1.13rem;
    box-shadow: 0 2px 12px #d9042910;
    transition: 
        background 0.17s, 
        transform 0.15s, 
        box-shadow 0.16s;
    border: none;
}
.membresia-btn:hover,
.membresia-btn:focus-visible {
    background: linear-gradient(90deg,#ff4040 20%,#ff6363 100%);
    color: #fff;
    transform: scale(1.065) translateY(-2px);
    box-shadow: 0 4px 18px #ff404044;
}

/* Responsive para cards */
@media (max-width: 1000px) {
    .membresias-grid { flex-direction: column; gap: 24px; align-items: center;}
    .membresia-card { width: 100%; max-width: 420px;}
}
