/* ==========================================================================
   360GatePass Commercial Landing Page — Custom Styles & Animations
   Aligned with https://360gatepass.com/ (Dark Gray-950, Indigo-600, #EA33F7)
   ========================================================================== */

:root {
  --bg-dark: #030712;
  --bg-card: #111827;
  --brand-indigo: #4f46e5;
  --brand-violet: #7c3aed;
  --brand-magenta: #EA33F7;
  --brand-emerald: #10b981;
  --brand-rose: #f43f5e;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color-scheme: dark;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: #f3f4f6;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #030712;
}
::-webkit-scrollbar-thumb {
  background: #1f2937;
  border-radius: 9999px;
  border: 2px solid #030712;
}
::-webkit-scrollbar-thumb:hover {
  background: #4f46e5;
}

/* Subtle Grid Background Pattern */
.bg-grid-pattern {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(99, 102, 241, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(99, 102, 241, 0.06) 1px, transparent 1px);
}

/* Text Gradients */
.text-gradient-brand {
  background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 45%, #EA33F7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-emerald {
  background: linear-gradient(135deg, #6ee7b7 0%, #10b981 55%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glassmorphism & Card Glow Effects */
.glass-panel {
  background: rgba(17, 24, 39, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(55, 65, 81, 0.65);
}

.card-hover-glow {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-hover-glow:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 20px 40px -15px rgba(79, 70, 229, 0.22), 0 0 25px -5px rgba(234, 51, 247, 0.12);
}

/* Animated QR Laser Line */
@keyframes qrScanLine {
  0% {
    top: 8%;
    opacity: 0.9;
  }
  50% {
    top: 88%;
    opacity: 1;
  }
  100% {
    top: 8%;
    opacity: 0.9;
  }
}

.qr-laser-line {
  position: absolute;
  left: 6%;
  right: 6%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #10b981, #EA33F7, #10b981, transparent);
  box-shadow: 0 0 14px 2px rgba(16, 185, 129, 0.85);
  border-radius: 999px;
  animation: qrScanLine 2.6s ease-in-out infinite;
  pointer-events: none;
}

.qr-laser-line.invalid-scan {
  background: linear-gradient(90deg, transparent, #f43f5e, #fb7185, #f43f5e, transparent);
  box-shadow: 0 0 16px 3px rgba(244, 63, 94, 0.9);
}

/* Floating Animation for Hero Elements */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

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

/* Pulse Ring for WhatsApp Floating Button */
@keyframes pulseEmerald {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.65);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.whatsapp-pulse {
  animation: pulseEmerald 2.2s infinite;
}

/* Custom Range Inputs for Savings Calculator */
input[type="range"].custom-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: #1f2937;
  border-radius: 999px;
  outline: none;
  border: 1px solid #374151;
}

input[type="range"].custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #EA33F7);
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.8);
  transition: transform 0.15s ease;
}

input[type="range"].custom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

input[type="range"].custom-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #EA33F7);
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.8);
  transition: transform 0.15s ease;
}

/* Reveal on Scroll Transitions */
.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Formulario a Web Publicada — Interactive Crossfade Showcase
   ========================================================================== */
.form-web-showcase {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  background: #030712;
  border: 1px solid rgba(79, 70, 229, 0.3);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 40px -10px rgba(79, 70, 229, 0.2);
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.form-web-showcase.is-step-2 {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 45px -10px rgba(16, 185, 129, 0.25);
}

.showcase-screen-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 900 / 560;
  overflow: hidden;
  background-color: #030712;
}

.showcase-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.985);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.65s;
  pointer-events: none;
}

.showcase-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
}

.showcase-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Progress Bar on active tab */
.step-tab-btn {
  position: relative;
  transition: all 0.3s ease;
}

.step-tab-btn .tab-progress-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  border-radius: 999px;
  background: #4f46e5;
  transition: width 0.1s linear;
}

.step-tab-btn.active.is-step-1 .tab-progress-line {
  background: linear-gradient(90deg, #4f46e5, #EA33F7);
}

.step-tab-btn.active.is-step-2 .tab-progress-line {
  background: linear-gradient(90deg, #059669, #10b981);
}

