/* SAW Hiring Landing — Custom CSS */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Animaciones de reveal al hacer scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
  background: #e63946;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #c1121f;
}

/* Form focus glow */
input:focus, select:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2);
}

/* Botón WhatsApp pulse ring */
#whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0.6;
  animation: ringPulse 2s ease-in-out infinite;
}

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 0; }
}

/* Loading state del botón submit */
button[type="submit"].loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}
button[type="submit"].loading::after {
  content: '';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Hover de cards */
.reveal:hover {
  transition: all 0.3s ease;
}

/* Mobile menu adjustments */
@media (max-width: 640px) {
  h1 { font-size: 3rem !important; line-height: 1 !important; }
  h2 { font-size: 2.25rem !important; }
}
