/* ============================================================
   BAYZON CURSOS — style.css
   Estilos compartidos que complementan a Tailwind (CDN).
   ============================================================ */

* { font-family: 'Inter', sans-serif; }

html { scroll-behavior: smooth; }

body {
  background-color: #0a0f1c;
}

/* Scrollbar oscuro */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0a0f1c; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }

/* Quita las flechas nativas del input number */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Autofill oscuro (Chrome) */
input:-webkit-autofill {
  -webkit-text-fill-color: #f1f5f9;
  -webkit-box-shadow: 0 0 0px 1000px #111827 inset;
  caret-color: #f1f5f9;
}

/* Gradiente de marca reutilizable */
.bz-gradient-text {
  background: linear-gradient(135deg, #84cc16 0%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bz-gradient-bg {
  background: linear-gradient(135deg, #84cc16 0%, #a855f7 100%);
}

.bz-hero-radial {
  background:
    radial-gradient(circle at 15% 20%, rgba(132, 204, 22, 0.18), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(168, 85, 247, 0.18), transparent 45%),
    #0a0f1c;
}

/* Blobs decorativos del panel de branding (login/register) */
.bz-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
}

@keyframes bz-float {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  50% { transform: translateY(-18px) translateX(8px); }
}
.bz-float { animation: bz-float 6s ease-in-out infinite; }
.bz-float-slow { animation: bz-float 9s ease-in-out infinite; }
.bz-float-delay { animation-delay: 1.4s; }

@keyframes bz-toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes bz-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.bz-fade-up { animation: bz-fade-up 0.5s ease-out both; }

/* Barra de progreso de cursos */
.bz-progress-track { background: #1e293b; border-radius: 9999px; overflow: hidden; height: 8px; }
.bz-progress-fill { background: linear-gradient(135deg, #84cc16 0%, #a855f7 100%); height: 100%; border-radius: 9999px; transition: width 0.4s ease; }

/* Toggle switch (notificaciones) */
.bz-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.bz-switch input { opacity: 0; width: 0; height: 0; }
.bz-switch .bz-slider {
  position: absolute; cursor: pointer; inset: 0;
  background-color: #1e293b; border-radius: 9999px; transition: 0.25s;
}
.bz-switch .bz-slider:before {
  position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px;
  background-color: #94a3b8; border-radius: 50%; transition: 0.25s;
}
.bz-switch input:checked + .bz-slider { background-color: #84cc16; }
.bz-switch input:checked + .bz-slider:before { transform: translateX(20px); background-color: #0a0f1c; }

/* Scrollbar horizontal de carruseles */
.bz-scroll-x { scrollbar-width: thin; }

/* Sidebar: transición de colapso en móvil */
.bz-sidebar { transition: transform 0.25s ease; }

/* Spinner de carga en botones */
.bz-spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.25); border-top-color: #0a0f1c;
  animation: bz-spin 0.6s linear infinite;
}
@keyframes bz-spin { to { transform: rotate(360deg); } }

/* Focus visible accesible */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid #84cc16;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .bz-float, .bz-float-slow, .bz-fade-up { animation: none !important; }
}
