/* Base styles and custom animations for Asesorias GM */
@layer base {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.animate-fade-in {
  animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes draw {
  from { stroke-dashoffset: 200; }
  to { stroke-dashoffset: 0; }
}

.animate-logo-draw {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: draw 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-logo-draw-delayed {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: draw 2s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.5s;
}

.glass {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.btn-glow {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.btn-glow:hover {
  box-shadow: 0 0 35px rgba(37, 99, 235, 0.4);
}

.btn-glow::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 45%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 55%,
    transparent 100%
  );
  transform: rotate(45deg);
  transition: all 0.7s;
  opacity: 0;
}

.btn-glow:hover::after {
  opacity: 1;
  left: 100%;
  top: 100%;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(37, 99, 235, 0.2);
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(37, 99, 235, 0.4);
}
