/* ==================== BASE ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: #0D0714;
  color: #ffffff;
  overflow-x: hidden;
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0D0714;
}

::-webkit-scrollbar-thumb {
  background: #8B5CF6;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #6B21A8;
}

/* ==================== CUSTOM EFFECTS ==================== */
.text-neon-glow {
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.5), 0 0 40px rgba(139, 92, 246, 0.3);
}

.glass-card {
  background: rgba(19, 11, 28, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 92, 246, 0.15);
}

.bg-grid {
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.radial-gradient {
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
}

/* ==================== INPUT FOCUS GLOW ==================== */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3), 0 0 30px rgba(139, 92, 246, 0.1);
}

/* ==================== ANIMATIONS ==================== */
@keyframes pulse-neon {
  0%, 100% {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.8), 0 0 60px rgba(59, 130, 246, 0.3);
  }
}

.animate-pulse-neon {
  animation: pulse-neon 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

@keyframes whatsapp-pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(37, 211, 102, 0.7), 0 0 60px rgba(37, 211, 102, 0.3);
  }
}

.whatsapp-pulse {
  animation: whatsapp-pulse 2s ease-in-out infinite;
}

/* ==================== SCROLL ANIMATIONS ==================== */
.animate-on-scroll {
  opacity: 0;
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
}

/* Fade Up */
.animate-on-scroll[data-animation="fade-up"] {
  transform: translateY(40px);
}
.animate-on-scroll[data-animation="fade-up"].visible {
  transform: translateY(0);
}

/* Scale Up */
.animate-on-scroll[data-animation="scale-up"] {
  transform: scale(0.9);
}
.animate-on-scroll[data-animation="scale-up"].visible {
  transform: scale(1);
}

/* Zoom In */
.animate-on-scroll[data-animation="zoom-in"] {
  transform: scale(0.8);
}
.animate-on-scroll[data-animation="zoom-in"].visible {
  transform: scale(1);
}

/* Slide Right (from left) */
.animate-on-scroll[data-animation="slide-right"] {
  transform: translateX(-60px);
}
.animate-on-scroll[data-animation="slide-right"].visible {
  transform: translateX(0);
}

/* Slide Left (from right) */
.animate-on-scroll[data-animation="slide-left"] {
  transform: translateX(60px);
}
.animate-on-scroll[data-animation="slide-left"].visible {
  transform: translateX(0);
}

/* ==================== CARD HOVER ==================== */
.card-hover {
  transition: transform 0.3s ease, border-color 0.5s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
}

/* ==================== NAVBAR STATES ==================== */
#navbar {
  border-bottom: 1px solid transparent;
}

.navbar-scrolled {
  background: rgba(13, 7, 20, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(139, 92, 246, 0.15) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ==================== SELECT ARROW ==================== */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238B5CF6' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}

select option {
  background: #130B1C;
  color: #ffffff;
}

/* ==================== LOADING SPINNER ==================== */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px 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);
  }
}

/* ==================== FORM SECTION OVERRIDES ==================== */
#formulario .glass-card {
  background: rgba(30, 28, 42, 0.9);
}

#formulario input,
#formulario select,
#formulario textarea {
  background-color: rgba(15, 12, 25, 0.8) !important;
  border-color: rgba(100, 100, 130, 0.4) !important;
}

#formulario input:focus,
#formulario select:focus,
#formulario textarea:focus {
  border-color: #8B5CF6 !important;
}

/* ==================== MULTI-STEP FORM ==================== */
.form-step {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Active step circle pulse */
.active-step {
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
  animation: step-pulse 2s ease-in-out infinite;
}

@keyframes step-pulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
  }
  50% {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.7);
  }
}

/* Shake animation for validation errors */
.shake {
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

/* Step circle completed check transition */
.step-circle {
  transition: all 0.3s ease;
}

/* Summary card field highlight */
#summary-card span.text-white {
  transition: color 0.3s ease;
}
