/* Custom CSS for Invoo.es Landing Page */

/* Font loading optimization - Enhanced Inter weights */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Root variables - SaaSwiftie inspired */
:root {
  --primary-color: #2469FE;
  --primary-dark: #1d4ed8;
  --secondary-color: #f8fafc;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #ffffff;
  scroll-behavior: smooth;
}

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

@keyframes pulse-custom {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

@keyframes bounce-custom {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0, 0, 0);
  }
  40%, 43% {
    transform: translate3d(0, -10px, 0);
  }
  70% {
    transform: translate3d(0, -5px, 0);
  }
  90% {
    transform: translate3d(0, -2px, 0);
  }
}

/* Utility classes */
.animate-fade-in {
  animation: fadeInUp 0.6s ease-out;
}

.animate-pulse-custom {
  animation: pulse-custom 2s infinite;
}

.animate-bounce-custom {
  animation: bounce-custom 2s infinite;
}

/* Enhanced gradient backgrounds */
.gradient-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.gradient-blue {
  background: linear-gradient(135deg, #2469FE 0%, #1d4ed8 100%);
}

.gradient-purple {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.gradient-pink {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.gradient-orange {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Modern navigation styles */
#navbar {
  background: transparent;
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Glass morphism effects */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
}

/* Modern gradient buttons */
.btn-gradient {
  background: linear-gradient(45deg, #667eea, #764ba2);
  border: none;
  border-radius: 24px;
  padding: 16px 32px;
  color: white;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-gradient:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

/* Hero background with modern gradient */
.hero-modern {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.hero-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 40% 80%, rgba(120, 119, 198, 0.2) 0%, transparent 50%);
  pointer-events: none;
}


/* Custom hover effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Improved button styles */
.btn-primary {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Enhanced card styles with glass morphism */
.card-enhanced {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-enhanced:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.9);
}

/* Modern feature cards */
.feature-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border-radius: 32px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.feature-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.95);
}

/* Feature icon styles */
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

/* Pricing card special styles */
.pricing-popular {
  position: relative;
  transform: scale(1.05);
  border: 2px solid var(--primary-color);
}

.pricing-popular::before {
  content: 'Más Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--warning-color);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

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

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

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

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

/* Modern text effects */
.text-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #2469FE 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

/* Product image 3D effects */
.perspective-container {
  perspective: 1200px;
}

.transform-3d {
  transform-style: preserve-3d;
}

/* Floating elements animation */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  33% { transform: translateY(-10px) translateX(5px); }
  66% { transform: translateY(5px) translateX(-3px); }
}

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

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.3); }
  50% { box-shadow: 0 0 40px rgba(102, 126, 234, 0.6); }
}

.animate-glow {
  animation: glow 3s ease-in-out infinite;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .hero-text {
    font-size: 2.5rem;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .pricing-popular {
    transform: none;
  }
  
  #navbar {
    padding: 12px 16px;
  }
  
  #navbar .max-w-6xl {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  /* Mobile menu transitions */
  #mobile-menu {
    transition: all 0.3s ease-in-out;
  }
  
  /* Prevent horizontal scroll on mobile */
  body {
    overflow-x: hidden;
  }
  
  /* Mobile-specific hero adjustments */
  .hero-section {
    min-height: calc(100vh - 64px);
    padding-top: 100px;
  }
  
  /* Mobile button sizing */
  .mobile-cta {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  /* Further reduce padding on very small screens */
  .hero-section {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 120px;
  }
  
  /* Ensure text doesn't overflow */
  h1, h2, h3 {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  /* Mobile navigation height adjustment */
  #navbar {
    height: auto;
    min-height: 64px;
  }
  
  /* Additional spacing for very small screens */
  section[class*="pt-24"] {
    padding-top: 120px;
  }
}

/* Loading animation for images */
.img-loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

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

/* Enhanced form styles with modern design */
.form-input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid rgba(229, 231, 235, 0.5);
  border-radius: 16px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(36, 105, 254, 0.15);
  background: rgba(255, 255, 255, 0.95);
}

/* Modern button styles */
.btn-modern {
  background: linear-gradient(135deg, #2469FE 0%, #7c3aed 100%);
  border: none;
  border-radius: 20px;
  padding: 16px 32px;
  color: white;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(36, 105, 254, 0.3);
  cursor: pointer;
}

.btn-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(36, 105, 254, 0.4);
  background: linear-gradient(135deg, #1d4ed8 0%, #6d28d9 100%);
}

/* Success states with modern styling */
.success-state {
  color: var(--success-color);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
  border: 2px solid rgba(16, 185, 129, 0.2);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

/* Error states with modern styling */
.error-state {
  color: var(--error-color);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
  border: 2px solid rgba(239, 68, 68, 0.2);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

/* Utility classes for modern design */
.blur-bg {
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.1);
}

.shadow-modern {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.shadow-modern-lg {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.rounded-modern {
  border-radius: 24px;
}

.rounded-modern-lg {
  border-radius: 32px;
}

/* Centered shadow for pain point section */
.shadow-centered {
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
}

/* Animation delay classes */
.delay-500 {
  animation-delay: 0.5s;
}

.delay-1000 {
  animation-delay: 1s;
}

.delay-1500 {
  animation-delay: 1.5s;
}

.delay-2000 {
  animation-delay: 2s;
}

/* Background pattern for hero section */
.pattern-bg {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
}

/* Cookie banner styles */
#cookie-banner {
  animation: slideUp 0.5s ease-out;
}

#cookie-banner.hidden {
  animation: slideDown 0.3s ease-in;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

/* Cookie banner responsive adjustments */
@media (max-width: 640px) {
  #cookie-banner {
    padding: 16px;
  }
  
  #cookie-banner .flex-col {
    gap: 12px;
  }
}