body {
  background-color: #111827; /* Dark background */
  color: #ffffff; /* White text */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2 {
  font-weight: 700;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2rem;
}

p {
  font-size: 1.125rem;
}

section {
  padding: 2rem; /* Padding for sections */
}

.text-center {
  text-align: center;
}

.flex {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.max-w-4xl {
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
}

.text-gray-300 {
  color: #d1d5db;
}

.text-gray-400 {
  color: #9ca3af;
}

.text-gray-500 {
  color: #6b7280;
}

.text-sm {
  font-size: 0.875rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.bg-blue-600 {
  background-color: #2563eb;
}

.bg-blue-700:hover {
  background-color: #1d4ed8;
}

.bg-gray-700 {
  background-color: #374151;
}

.bg-gray-800:hover {
  background-color: #1f2937;
}

.rounded {
  border-radius: 0.375rem;
}

/* ValoPro Landing Page Styles */

* {
  scroll-behavior: smooth;
}

/* Custom gradient backgrounds */
.gradient-bg {
  background: linear-gradient(135deg, #1f2937 0%, #111827 50%, #0f172a 100%);
}

.hero-bg {
  background: radial-gradient(ellipse at center, rgba(239, 68, 68, 0.1) 0%, transparent 70%),
              radial-gradient(ellipse at 80% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 70%),
              #111827;
}

/* Feature cards */
.feature-card {
  background-color: rgba(31, 41, 55, 0.3);
  border: 1px solid #374151;
  border-radius: 0.75rem;
  padding: 2rem;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.feature-card:hover {
  background-color: rgba(31, 41, 55, 0.5);
  border-color: #4b5563;
  transform: scale(1.05);
}

/* Agent icons */
.agent-icon {
  width: 4rem;
  height: 4rem;
  background-color: #1f2937;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid #374151;
  transition: all 0.3s ease;
}

.agent-icon:hover {
  border-color: #ef4444;
}

/* Stats cards */
.stat-card {
  background-color: rgba(31, 41, 55, 0.4);
  border: 1px solid #374151;
  border-radius: 0.5rem;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.stat-card:hover {
  background-color: rgba(31, 41, 55, 0.6);
}

/* Download cards */
.download-card {
  background-color: rgba(31, 41, 55, 0.5);
  border: 1px solid #374151;
  border-radius: 0.75rem;
  padding: 2rem;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.download-card:hover {
  background-color: rgba(31, 41, 55, 0.7);
}

/* Button styles */
.btn-primary {
  background: linear-gradient(to right, #dc2626, #ec4899);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
  transform: scale(1);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background: linear-gradient(to right, #b91c1c, #db2777);
  transform: scale(1.05);
  color: white;
  text-decoration: none;
}

.btn-secondary {
  background-color: rgba(31, 41, 55, 0.5);
  border: 1px solid #374151;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  background-color: rgba(55, 65, 81, 0.5);
  color: white;
  text-decoration: none;
}

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

::-webkit-scrollbar-track {
  background: #1f2937;
}

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

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

/* Navigation blur effect */
nav {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

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

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out;
}

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

/* Glow effects */
.glow-red {
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.glow-blue {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* Text gradient */
.text-gradient {
  background: linear-gradient(135deg, #ef4444, #ec4899, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Video placeholder */
.video-placeholder {
  background: linear-gradient(to bottom right, #1f2937, #111827);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.video-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.05) 50%, transparent 70%);
  animation: shimmer 2s infinite;
}

/* Grid improvements */
.grid-responsive {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Loading states */
.loading {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  background-color: #374151;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .5;
  }
}

/* Focus states for accessibility */
a:focus,
button:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.5);
}

/* Responsive design improvements */
@media (max-width: 768px) {
  .agent-icon {
    width: 3rem;
    height: 3rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .flex {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  nav .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(8px);
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

/* Performance optimizations */
.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

/* Additional utility classes */
.aspect-video {
  aspect-ratio: 16 / 9;
}

.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}

.border-gray-700 {
  border-color: #374151;
}

.border-gray-800 {
  border-color: #1f2937;
}

.bg-gray-900 {
  background-color: #111827;
}

.bg-gray-800 {
  background-color: #1f2937;
}

.text-white {
  color: #ffffff;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.transition-all {
  transition: all 0.3s ease;
}

.transition-colors {
  transition: color 0.3s ease;
}

.transform {
  transform: translateZ(0);
}

.hover\:scale-105:hover {
  transform: scale(1.05);
}

.hover\:scale-110:hover {
  transform: scale(1.1);
}

/* Hero section background */
.hero-section {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

/* Fallback if hero2.png doesn't load */
.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-section.fallback::after {
  opacity: 1;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.493); /* Capa negra con opacidad */
  z-index: 2;
  pointer-events: none;
}

/* Enhanced text readability */
.hero-title,
.hero-subtitle,
.hero-description {
  position: relative;
  z-index: 30;
}

.hero-title {
  background: linear-gradient(135deg, #fff 0%, #fbbf24 40%, #f87171 70%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow:
    0 0 20px rgba(255,255,255,0.7),
    0 2px 8px rgba(0,0,0,0.7);
  filter: drop-shadow(0 4px 12px rgba(255,255,255,0.3));
}

/* Video container improvements */
.aspect-video {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* Ensure video elements are properly positioned */
.aspect-video video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.aspect-video .absolute {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}