/* ── Modal de contraseña — Curso Actual ── */

#curso-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

#curso-overlay.active {
  display: flex;
}

#curso-modal {
  background: #0d0d1a;
  border: 1px solid #ec4899;
  border-radius: 16px;
  padding: 2rem 2.5rem;
  width: min(420px, 90vw);
  text-align: center;
  box-shadow: 0 0 40px rgba(236, 72, 153, 0.3);
  position: relative;
}

#curso-modal h2 {
  font-family: 'Orbitron', monospace;
  color: #ec4899;
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

#curso-modal p {
  font-family: 'Share Tech Mono', monospace;
  color: #a78bfa;
  font-size: 0.82rem;
  margin: 0 0 1.5rem;
}

#curso-password {
  width: 100%;
  box-sizing: border-box;
  background: #1a1a2e;
  border: 1px solid #ec4899;
  border-radius: 8px;
  color: #f0abfc;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.1rem;
  padding: 0.6rem 1rem;
  text-align: center;
  letter-spacing: 4px;
  outline: none;
  margin-bottom: 0.6rem;
  transition: box-shadow 0.2s;
}

#curso-password:focus {
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.35);
}

#curso-error {
  font-family: 'Share Tech Mono', monospace;
  color: #fb7185;
  font-size: 0.8rem;
  min-height: 1.2em;
  margin-bottom: 0.8rem;
}

#curso-submit {
  width: 100%;
  background: #ec4899;
  color: white;
  border: none;
  border-radius: 8px;
  font-family: 'Orbitron', monospace;
  font-size: 0.85rem;
  padding: 0.65rem 1rem;
  cursor: pointer;
  letter-spacing: 1px;
  transition: background 0.2s, transform 0.1s;
}

#curso-submit:hover  { background: #be185d; }
#curso-submit:active { transform: scale(0.97); }

#curso-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  color: #6b7280;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s;
}

#curso-close:hover { color: #ec4899; }

/* ── Pantalla de redirección ── */

#curso-redirect {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

#curso-redirect.active { display: flex; }

#curso-redirect .redirect-title {
  font-family: 'Orbitron', monospace;
  color: #ec4899;
  font-size: 1rem;
  letter-spacing: 2px;
}

#curso-redirect .redirect-count {
  font-family: 'Orbitron', monospace;
  font-size: 2.8rem;
  color: #f0abfc;
  font-weight: 700;
}

#curso-redirect .redirect-sub {
  font-family: 'Share Tech Mono', monospace;
  color: #a78bfa;
  font-size: 0.78rem;
}

.loader-dots {
  display: flex;
  gap: 6px;
}

.loader-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ec4899;
  animation: dot-blink 1.2s infinite both;
}

.loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-blink {
  0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
  40%            { opacity: 1;   transform: scale(1);   }
}

#curso-redirect .btn-now {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
  color: #ec4899;
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
}
