/* 
 * Qowin Solutions - Vibrant Commercial Styles
 * Ultra-modern, impactful design to convert visitors to clients
 */

/* ========================================
   1. CUSTOM COLOR PALETTE - VIBRANT
======================================== */
:root {
  /* Primary Brand Colors */
  --qowin-orange: #FF6B00;
  --qowin-orange-light: #FF8534;
  --qowin-orange-dark: #E55A00;
  
  /* Accent Colors */
  --qowin-purple: #8B5CF6;
  --qowin-blue: #3B82F6;
  --qowin-cyan: #06B6D4;
  --qowin-pink: #EC4899;
  --qowin-green: #10B981;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #FF6B00 0%, #FF8534 50%, #FFA500 100%);
  --gradient-secondary: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 100%);
  --gradient-success: linear-gradient(135deg, #10B981 0%, #06B6D4 100%);
  --gradient-vibrant: linear-gradient(135deg, #FF6B00 0%, #8B5CF6 50%, #3B82F6 100%);
  --gradient-dark: linear-gradient(135deg, #1F2937 0%, #111827 100%);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(255, 107, 0, 0.1);
  --shadow-md: 0 4px 20px rgba(255, 107, 0, 0.2);
  --shadow-lg: 0 10px 40px rgba(255, 107, 0, 0.3);
  --shadow-xl: 0 20px 60px rgba(255, 107, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(255, 107, 0, 0.6);
}

/* ========================================
   2. ANIMATED GRADIENT BACKGROUND
======================================== */
body {
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
}

.main {
  position: relative;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Animated gradient overlay */
.main::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(255, 107, 0, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 40% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
  animation: gradientShift 15s ease infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes gradientShift {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

section {
  position: relative;
  z-index: 1;
}

/* ========================================
   3. VIBRANT NAVBAR
======================================== */
.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-size: 2rem !important;
  font-weight: 800 !important;
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-brand .text-warning {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-link {
  font-weight: 600 !important;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.nav-link:hover {
  color: var(--qowin-orange) !important;
  transform: translateY(-2px);
}

/* ========================================
   4. HERO SECTION - ULTRA IMPACTANTE
======================================== */
#home {
  background: var(--gradient-vibrant);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

#home .bg-holder {
  opacity: 0.1;
  mix-blend-mode: overlay;
}

#home::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to bottom, transparent, white);
}

#home h1 {
  font-size: 4rem !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  color: white !important;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1s ease;
}

#home .badge {
  background: rgba(255, 255, 255, 0.95) !important;
  padding: 0.75rem 1.5rem !important;
  font-weight: 700 !important;
  box-shadow: var(--shadow-md);
  animation: fadeInDown 1s ease;
}

#home p {
  font-size: 1.3rem !important;
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 1s ease 0.2s backwards;
}

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

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

/* ========================================
   5. BOTONES IMPACTANTES
======================================== */
.btn-primary {
  background: var(--gradient-primary) !important;
  border: none !important;
  font-weight: 700 !important;
  padding: 1rem 2.5rem !important;
  font-size: 1.1rem !important;
  box-shadow: var(--shadow-lg) !important;
  transition: all 0.3s ease !important;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover,
.hover-top:hover {
  transform: translateY(-5px) scale(1.05) !important;
  box-shadow: var(--shadow-xl) !important;
}

.btn-link {
  color: white !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  position: relative;
  transition: all 0.3s ease !important;
}

.btn-link:hover {
  color: rgba(255, 255, 255, 0.9) !important;
  transform: translateX(5px);
}

/* ========================================
   6. SECCIONES CON EFECTO GLASS
======================================== */
section {
  position: relative;
}

.container {
  position: relative;
  z-index: 2;
}

/* Trusted by section */
section.py-7 {
  background: white;
  box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.05);
}

/* ========================================
   7. CARDS DE SERVICIOS - 3D EFFECT
======================================== */
#services .d-flex,
#why-us .text-center {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

#services .d-flex::before,
#why-us .text-center::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

#services .d-flex:hover,
#why-us .text-center:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

#services .d-flex:hover::before,
#why-us .text-center:hover::before {
  transform: scaleX(1);
}

#services img,
#why-us img {
  transition: all 0.3s ease;
  filter: drop-shadow(0 4px 10px rgba(255, 107, 0, 0.3));
}

#services .d-flex:hover img,
#why-us .text-center:hover img {
  transform: scale(1.1) rotate(5deg);
}

#services h5,
#why-us h5 {
  font-weight: 800 !important;
  margin-top: 1rem;
}

/* Color coding for services */
#services .d-flex:nth-child(1) h5 { color: var(--qowin-orange); }
#services .d-flex:nth-child(2) h5 { color: var(--qowin-purple); }
#services .d-flex:nth-child(3) h5 { color: var(--qowin-green); }

/* ========================================
   8. TÍTULOS IMPACTANTES
======================================== */
.display-3 {
  font-size: 3rem !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.display-3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

h5.fw-bold {
  font-weight: 800 !important;
  font-size: 1.3rem !important;
}

/* ========================================
   9. TESTIMONIALS - PREMIUM CARDS
======================================== */
#testimonials .carousel-item {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

#testimonials img {
  border: 4px solid transparent;
  border-radius: 50%;
  background: var(--gradient-primary);
  padding: 3px;
  transition: all 0.3s ease;
}

#testimonials .carousel-item:hover img {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-glow);
}

.bi-star-fill {
  filter: drop-shadow(0 2px 4px rgba(255, 204, 0, 0.5));
  animation: starPulse 2s ease infinite;
}

@keyframes starPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ========================================
   10. FAQ - ACCORDION MODERNO
======================================== */
#faq .accordion-item {
  border: none !important;
  margin-bottom: 1rem;
  border-radius: 15px !important;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

#faq .accordion-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(5px);
}

#faq .accordion-button {
  background: white !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  padding: 1.5rem !important;
  border: none !important;
  color: var(--qowin-orange) !important;
}

#faq .accordion-button:not(.collapsed) {
  background: var(--gradient-primary) !important;
  color: white !important;
  box-shadow: none !important;
}

#faq .accordion-button::after {
  filter: brightness(0) saturate(100%) invert(45%) sepia(97%) saturate(2448%) hue-rotate(0deg);
}

#faq .accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

#faq .accordion-body {
  padding: 1.5rem 2rem !important;
  font-size: 1.05rem;
  line-height: 1.8;
  background: linear-gradient(to bottom, #f9fafb, white);
}

/* ========================================
   11. CONTACT SECTION - LLAMATIVO
======================================== */
#contact {
  background: var(--gradient-dark);
  color: white;
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.2) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

#contact::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite reverse;
}

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

#contact h1 {
  color: white !important;
  font-weight: 900 !important;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

#contact p {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1.2rem;
}

#contact svg {
  transition: all 0.3s ease;
}

#contact a:hover svg {
  transform: scale(1.2) rotate(10deg);
  filter: drop-shadow(0 0 10px var(--qowin-orange));
}

#contact .d-flex {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

#contact .d-flex:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(10px);
}

/* ========================================
   12. FOOTER - ELEGANTE
======================================== */
.bg-1000 {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  position: relative;
}

footer svg {
  transition: all 0.3s ease;
}

footer a:hover svg {
  transform: translateY(-5px) scale(1.2);
  filter: brightness(1.5);
}

/* ========================================
   13. ANIMACIONES DE SCROLL
======================================== */
@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Aplicar animaciones a elementos visibles */
.animate-on-scroll {
  animation: fadeInUp 0.8s ease;
}

/* ========================================
   14. EFECTOS DE HOVER GLOBALES
======================================== */
img {
  transition: all 0.3s ease;
}

img:hover {
  transform: scale(1.05);
}

/* ========================================
   15. BADGES Y CHIPS VIBRANTES
======================================== */
.badge {
  font-weight: 700 !important;
  padding: 0.5rem 1rem !important;
  border-radius: 50px !important;
  background: var(--gradient-primary) !important;
  color: white !important;
  box-shadow: var(--shadow-sm);
}

/* ========================================
   16. NÚMEROS Y ESTADÍSTICAS
======================================== */
.stat-number {
  font-size: 4rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

/* ========================================
   17. PULSE EFFECT PARA CTAs
======================================== */
.btn-primary.pulse {
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.7);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(255, 107, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 0, 0);
  }
}

/* ========================================
   18. RESPONSIVE OPTIMIZATIONS
======================================== */
@media (max-width: 768px) {
  #home h1 {
    font-size: 2.5rem !important;
  }
  
  .display-3 {
    font-size: 2rem !important;
  }
  
  .btn-primary {
    padding: 0.8rem 1.5rem !important;
    font-size: 1rem !important;
  }
  
  #testimonials .carousel-item {
    padding: 1.5rem;
  }
}

/* ========================================
   19. SCROLL BEHAVIOR SUAVE
======================================== */
html {
  scroll-behavior: smooth;
}

/* ========================================
   20. LOADING ANIMATION (Optional)
======================================== */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-vibrant);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.page-loader.active {
  opacity: 1;
  pointer-events: all;
}

.loader-spinner {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* ========================================
   21. GLASSMORPHISM EFFECTS
======================================== */
.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-lg);
}

/* ========================================
   22. CUSTOM SCROLLBAR
======================================== */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--qowin-orange-dark);
}

