/* Reset y Variables */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-500: #6366f1;
  --primary-600: #4f46e5;
  --primary-700: #4338ca;
  --secondary: #8b5cf6;
  --purple-500: #8b5cf6;
  --purple-600: #7c3aed;
  --purple-700: #6d28d9;
  --accent: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  --white: #ffffff;
  --black: #000000;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Utilities */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  width: 40px;
  height: 40px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gray-900);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--primary-600);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-600);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.language-selector {
  display: flex;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 8px;
  padding: 4px;
  gap: 2px;
}

.lang-btn {
  padding: 6px 12px;
  border: none;
  background: transparent;
  color: var(--gray-600);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-btn.active {
  background: var(--primary-600);
  color: white;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.lang-btn:hover:not(.active) {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-600);
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  border: none;
  display: inline-block;
  visibility: visible;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-link {
    font-size: 1.125rem;
    padding: 0.5rem 0;
  }
  
  .language-selector {
    order: -1;
  }
  
  .nav-cta {
    margin-top: 1rem;
    text-align: center;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}

@media (max-width: 480px) {
  .nav-container {
    height: 70px;
    padding: 0 1rem;
  }
  
  .logo {
    width: 35px;
    height: 35px;
  }
  
  .logo-text {
    font-size: 1.25rem;
  }
  
  .nav-menu {
    top: 70px;
    padding: 1.5rem;
  }
  
  .language-selector {
    transform: scale(0.9);
  }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  opacity: 0.03;
  z-index: -1;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-full);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-600);
  font-weight: 500;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.25));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 1.5rem;
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.25);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.card-dots {
  display: flex;
  gap: 0.5rem;
}

.card-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-300);
}

.card-dots span:nth-child(1) { background: #ff5f57; }
.card-dots span:nth-child(2) { background: #ffbd2e; }
.card-dots span:nth-child(3) { background: #28ca42; }

.card-title {
  font-weight: 600;
  color: var(--gray-700);
}

.automation-flow {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.flow-step.active {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.step-icon {
  font-size: 1.5rem;
}

.flow-arrow {
  text-align: center;
  color: var(--primary);
  font-weight: 600;
  font-size: 1.25rem;
}

/* Professional Animated Background */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: 
    radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
    linear-gradient(-45deg, #f8fafc, #e2e8f0, #f1f5f9, #e5e7eb);
  background-size: 300% 300%, 400% 400%, 600% 600%;
  animation: subtleGradientShift 20s ease infinite;
  overflow: hidden;
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.12));
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
  animation: gentleFloat 25s infinite linear;
}

.shape::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent);
  border-radius: 50%;
  animation: softPulse 4s ease-in-out infinite;
}

.shape-1 {
  width: 100px;
  height: 100px;
  top: 10%;
  left: 10%;
  animation-duration: 30s;
  animation-delay: 0s;
}

.shape-2 {
  width: 140px;
  height: 140px;
  top: 20%;
  right: 15%;
  animation-duration: 35s;
  animation-delay: -8s;
}

.shape-3 {
  width: 80px;
  height: 80px;
  top: 60%;
  left: 20%;
  animation-duration: 40s;
  animation-delay: -15s;
}

.shape-4 {
  width: 120px;
  height: 120px;
  bottom: 20%;
  right: 25%;
  animation-duration: 32s;
  animation-delay: -20s;
}

.shape-5 {
  width: 60px;
  height: 60px;
  top: 80%;
  left: 60%;
  animation-duration: 28s;
  animation-delay: -12s;
}

.shape-6 {
  width: 110px;
  height: 110px;
  top: 40%;
  right: 40%;
  animation-duration: 38s;
  animation-delay: -25s;
}

@keyframes subtleGradientShift {
  0%, 100% {
    background-position: 0% 50%, 0% 50%, 0% 50%;
  }
  50% {
    background-position: 100% 50%, 100% 50%, 100% 50%;
  }
}

@keyframes gentleFloat {
  0% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) translateX(15px) rotate(90deg);
  }
  50% {
    transform: translateY(-10px) translateX(-12px) rotate(180deg);
  }
  75% {
    transform: translateY(15px) translateX(10px) rotate(270deg);
  }
  100% {
    transform: translateY(0px) translateX(0px) rotate(360deg);
  }
}

@keyframes softPulse {
  0%, 100% {
    opacity: 0.2;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
  box-shadow: var(--shadow);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* Sections */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* Services */
.services {
  padding: 6rem 0;
  background: var(--gray-50);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
}

.service-card.featured {
  border: 2px solid var(--primary);
  transform: scale(1.05);
}

.service-card.featured:hover {
  transform: scale(1.05) translateY(-8px);
}

.service-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  white-space: nowrap;
  z-index: 10;
  min-width: max-content;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.service-card p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-card ul {
  list-style: none;
  padding: 0;
}

.service-card li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--gray-700);
  font-weight: 500;
}

.service-card li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
}

/* Pricing */
.pricing {
  padding: 6rem 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 1.5rem;
  padding: 2.5rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transform-style: preserve-3d;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.05), transparent);
  transition: left 0.8s;
}

.pricing-card:hover::before {
  left: 100%;
}

.pricing-card:hover {
  transform: translateY(-20px) rotateX(8deg) scale(1.03);
  box-shadow: 0 30px 60px rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
}

.pricing-card.featured {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
  border: 2px solid var(--primary-500);
  transform: scale(1.05);
  box-shadow: 0 15px 50px rgba(99, 102, 241, 0.15);
}

.pricing-card.featured:hover {
  transform: scale(1.08) translateY(-25px) rotateX(10deg);
  box-shadow: 0 35px 70px rgba(99, 102, 241, 0.3);
}

.pricing-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
  animation: pulseGlow 2s ease-in-out infinite alternate;
  border: 2px solid white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

@keyframes pulseGlow {
  from {
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    transform: translateX(-50%) scale(1);
  }
  to {
    box-shadow: 0 12px 40px rgba(255, 107, 107, 0.6);
    transform: translateX(-50%) scale(1.05);
  }
}

.pricing-card h3 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
  transition: all 0.3s ease;
}

.pricing-card:hover h3 {
  color: var(--primary-600);
  transform: translateY(-3px);
}

.pricing-price {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary-600);
  margin-bottom: 0.5rem;
  transition: all 0.4s ease;
  position: relative;
}

.pricing-card:hover .pricing-price {
  transform: scale(1.1) translateY(-5px);
  color: var(--purple-600);
}

.pricing-price::after {
  content: '💎';
  position: absolute;
  top: -10px;
  right: -30px;
  opacity: 0;
  transform: scale(0);
  transition: all 0.4s ease;
}

.pricing-card:hover .pricing-price::after {
  opacity: 1;
  transform: scale(1);
}

.pricing-period {
  color: var(--gray-500);
  font-size: 1rem;
  margin-bottom: 2rem;
  transition: color 0.3s ease;
}

.pricing-card:hover .pricing-period {
  color: var(--gray-600);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--gray-700);
  font-weight: 500;
  transition: all 0.3s ease;
  transform: translateX(0);
}

.pricing-card:hover .pricing-features li {
  transform: translateX(5px);
  color: var(--gray-800);
}

.pricing-features li::before {
  content: '✨';
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.pricing-card:hover .pricing-features li::before {
  transform: rotate(360deg) scale(1.2);
}

.pricing-card .btn {
  width: 100%;
  margin-top: auto;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.pricing-card:hover .btn {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

.pricing-card .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
}

.pricing-card:hover .btn::before {
  left: 100%;
}

/* CTA Section */
.cta-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-section .btn-primary {
  background: var(--white);
  color: var(--primary);
}

.cta-section .btn-primary:hover {
  background: var(--gray-100);
}

.cta-section .btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.cta-section .btn-secondary:hover {
  background: var(--white);
  color: var(--primary);
}

/* About */
.about {
  padding: 6rem 0;
  background: var(--gray-50);
}

.about-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.about-text h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--gray-900);
}

.about-text p {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 2rem;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 1.25rem;
}

.footer-logo img {
  width: 40px;
  height: 40px;
}

.footer-brand p {
  color: var(--gray-400);
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-column h4 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-column a {
  display: block;
  color: var(--gray-400);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.footer-column a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--gray-800);
  text-align: center;
  color: var(--gray-400);
}

/* Modales */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background: var(--white);
  margin: 5% auto;
  padding: 0;
  border-radius: var(--radius-2xl);
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  animation: slideIn 0.3s ease-out;
  position: relative;
}

.modal-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.close {
  color: var(--white);
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
  padding: 0.25rem;
  border-radius: 50%;
}

.close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.modal-body {
  padding: 2rem;
  max-height: 60vh;
  overflow-y: auto;
  line-height: 1.6;
}

.modal-body h4 {
  color: var(--primary);
  font-weight: 600;
  margin: 1.5rem 0 0.75rem 0;
  font-size: 1.125rem;
}

.modal-body h4:first-child {
  margin-top: 0;
}

.modal-body p {
  color: var(--gray-700);
  margin-bottom: 1rem;
}

.modal-body ul {
  color: var(--gray-700);
  margin: 0.5rem 0 1rem 1.5rem;
}

.modal-body li {
  margin-bottom: 0.5rem;
}

.modal-body strong {
  color: var(--gray-900);
  font-weight: 600;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive para modales */
@media (max-width: 768px) {
  .modal-content {
    margin: 10% auto;
    width: 95%;
    max-height: 85vh;
  }
  
  .modal-header {
    padding: 1rem 1.5rem;
  }
  
  .modal-header h3 {
    font-size: 1.25rem;
  }
  
  .modal-body {
    padding: 1.5rem;
    max-height: 70vh;
  }
  
  .close {
    font-size: 1.5rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    gap: 1rem;
  }
  
  .nav-link {
    display: none;
  }
  
  .hero {
    padding: 6rem 0 4rem;
  }
  
  .hero .container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0 1rem;
  }
  
  /* Diseño específico para móvil - tarjeta sticky para que no se pierda */
  .hero-visual {
    order: 1.5;
    width: 100%;
    max-width: 100%;
    margin: 1rem 0;
    position: sticky;
    top: 80px; /* Debajo del header */
    transform: none;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 1rem;
    padding: 0.5rem;
  }
  
  .hero-content {
    order: 1;
    text-align: center;
  }
  
  .hero-ctas {
    order: 2;
    margin-top: 1rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Tarjeta de automatización optimizada para móvil - más prominente */
  .hero-card {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem;
    box-sizing: border-box;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
    backdrop-filter: blur(20px);
    border-radius: 1.25rem;
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.2);
    border: 2px solid rgba(139, 92, 246, 0.3);
    position: relative;
    animation: pulseCard 3s ease-in-out infinite;
  }
  
  @keyframes pulseCard {
    0%, 100% {
      box-shadow: 0 12px 40px rgba(139, 92, 246, 0.2);
      border-color: rgba(139, 92, 246, 0.3);
    }
    50% {
      box-shadow: 0 16px 50px rgba(139, 92, 246, 0.3);
      border-color: rgba(139, 92, 246, 0.5);
    }
  }
  
  .card-title {
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 700;
    color: #8b5cf6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  }
  
  .automation-flow {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .flow-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
  }
  
  .flow-step:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: translateY(-1px);
  }
  
  .step-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
  }
  
  .flow-arrow {
    display: none;
  }
  
  .services-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .service-card.featured,
  .pricing-card.featured {
    transform: none;
  }
  
  /* Fix para badge en móvil */
  .service-badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    top: -10px;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero {
    padding: 5rem 0 3rem;
  }
  
  .hero .container {
    padding: 0 0.75rem;
  }
  
  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  /* Tarjeta aún más compacta para pantallas pequeñas */
  .hero-card {
    padding: 1rem;
    border-radius: 0.875rem;
    margin: 1rem 0;
    max-width: calc(100vw - 1.5rem);
  }
  
  .automation-flow {
    gap: 0.4rem;
  }
  
  .flow-step {
    padding: 0.6rem;
    gap: 0.6rem;
    font-size: 0.75rem;
    border-radius: 0.6rem;
  }
  
  .card-title {
    font-size: 0.875rem;
  }
  
  .flow-step {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .flow-step span {
    font-size: 0.8rem;
  }
  
  .step-icon {
    font-size: 1rem;
  }
  
  .hero-stats {
    gap: 0.75rem;
    margin-top: 1.5rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .service-card,
  .pricing-card {
    padding: 1.5rem;
  }
  
  /* Evitar overflow horizontal */
  body {
    overflow-x: hidden;
  }
  
  * {
    max-width: 100%;
    box-sizing: border-box;
  }
}
