/* ===== CUSTOM PROPERTIES ===== */
:root {
  --gradient-hero: linear-gradient(135deg, #060a2e 0%, #0a1f6b 40%, #1a3fff 100%);
  --gradient-cta: linear-gradient(135deg, #FF6B35 0%, #FF8C5A 100%);
  --gradient-teal: linear-gradient(135deg, #0aaba9 0%, #26f0ea 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  --gradient-dark: linear-gradient(180deg, #091242 0%, #060a2e 100%);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* ===== GLASSMORPHISM ===== */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.glass-card-dark {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* ===== HERO ===== */
.hero-gradient {
  background: var(--gradient-hero);
}

.hero-pattern {
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
}

.hero-amount {
  background: linear-gradient(90deg, #6bfbf6, #0ad4d0, #10B981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== CTA BUTTONS ===== */
.btn-cta {
  background: var(--gradient-cta);
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 107, 53, 0.5);
}

.btn-cta:hover::before {
  opacity: 1;
}

.btn-cta:active {
  transform: translateY(0);
}

.btn-secondary {
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.section-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.section-reveal:nth-child(2) { transition-delay: 0.1s; }
.section-reveal:nth-child(3) { transition-delay: 0.2s; }
.section-reveal:nth-child(4) { transition-delay: 0.3s; }
.section-reveal:nth-child(5) { transition-delay: 0.4s; }
.section-reveal:nth-child(6) { transition-delay: 0.5s; }

/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(10, 212, 208, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(10, 212, 208, 0); }
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

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

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes hero-glow-pulse {
  0%, 100% { opacity: 0.15; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.25; transform: translate(-50%, -50%) scale(1.1); }
}

.animate-fade-up { animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-fade-left { animation: fadeInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-fade-right { animation: fadeInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-float { animation: float 6s ease-in-out infinite; }

/* ===== AFORE LOGOS MARQUEE ===== */
.afore-track {
  display: flex;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.afore-track:hover {
  animation-play-state: paused;
}

/* ===== FAQ ACCORDION ===== */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding-top: 0;
  padding-bottom: 0;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-top: 0;
  padding-bottom: 1.5rem;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-chevron {
  transition: transform 0.3s ease;
}

/* ===== FLOATING WHATSAPP ===== */
#whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  width: 3.5rem;
  height: 3.5rem;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
}

#whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

#whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.4);
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ===== HEADER SCROLL STATE ===== */
.header-scrolled {
  background: rgba(6, 10, 46, 0.95) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* ===== TESTIMONIAL CAROUSEL ===== */
.testimonials-track {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== SERVICE CARD HOVER ===== */
.service-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.service-card:hover .service-icon {
  background: #0a1f6b;
  color: white;
}

.service-icon {
  transition: all 0.4s ease;
}

/* ===== STEP CONNECTOR LINE ===== */
.step-line {
  position: absolute;
  top: 2rem;
  left: 25%;
  right: 25%;
  height: 2px;
  background: linear-gradient(90deg, #0ad4d0, #0a1f6b, #0ad4d0);
  opacity: 0.3;
}

/* ===== TAG/BADGE ===== */
.tag {
  display: inline-block;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  background: #edfffe;
  color: #0aaba9;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

/* ===== SELECT STYLING ===== */
select option {
  background: #0c1a54;
  color: white;
}

/* ===== FORM FOCUS GLOW ===== */
input:focus,
select:focus {
  box-shadow: 0 0 0 3px rgba(10, 212, 208, 0.2);
}

/* ===== WAVE DIVIDER ===== */
.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
}

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

::-webkit-scrollbar-track {
  background: #060a2e;
}

::-webkit-scrollbar-thumb {
  background: #1a3fff;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3366ff;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .section-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .afore-track {
    animation: none;
  }
  #whatsapp-float::before {
    animation: none;
  }
  .animate-fade-up,
  .animate-fade-left,
  .animate-fade-right,
  .animate-float {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ===== MOBILE MENU OVERLAY ===== */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 46, 0.8);
  backdrop-filter: blur(4px);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background: #060a2e;
  z-index: 50;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 2rem 1.5rem;
}

.mobile-menu.active {
  transform: translateX(0);
}

/* ===== BRANCH CARD ===== */
.branch-card {
  transition: all 0.3s ease;
}

.branch-card:hover {
  border-color: #0ad4d0;
  box-shadow: 0 4px 16px rgba(10, 212, 208, 0.1);
}

/* ===== INPUT ERROR STATE ===== */
.input-error {
  border-color: #EF4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}
