/* ==========================================================================
   CSS CUSTOM PROPERTIES (Variables)
   ========================================================================== */
:root {
  /* Paleta de Neuromarketing */
  --primary: hsl(230, 80%, 56%);       /* Azul - Confianza */
  --primary-light: hsl(230, 80%, 68%);
  --primary-dark: hsl(230, 80%, 44%);
  
  --secondary: hsl(270, 70%, 55%);     /* Púrpura - Innovación */
  --secondary-light: hsl(270, 70%, 68%);
  
  --accent: hsl(160, 70%, 45%);        /* Esmeralda - Éxito */
  --accent-light: hsl(160, 70%, 58%);
  
  --cta: hsl(25, 95%, 55%);            /* Naranja - Urgencia/Acción */
  --cta-light: hsl(25, 95%, 65%);
  --cta-dark: hsl(25, 95%, 45%);
  
  /* Fondos y Superficies Dark Premium */
  --bg-primary: hsl(222, 47%, 8%);
  --bg-secondary: hsl(222, 35%, 11%);
  --bg-card: hsl(222, 30%, 14%);
  --bg-card-hover: hsl(222, 30%, 18%);
  
  /* Tipografía (Colores) */
  --text-primary: hsl(210, 40%, 96%);
  --text-secondary: hsl(215, 20%, 65%);
  --text-muted: hsl(215, 15%, 50%);
  
  /* Efectos Glassmorphism */
  --glass-bg: rgba(30, 41, 59, 0.4);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  
  /* Sombras (Glows) */
  --glow-primary: 0 0 20px rgba(59, 130, 246, 0.5);
  --glow-secondary: 0 0 20px rgba(139, 92, 246, 0.5);
  --glow-cta: 0 0 25px rgba(249, 115, 22, 0.6);
  --glow-accent: 0 0 20px rgba(16, 185, 129, 0.5);
  
  /* Tipografía Básica */
  --font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  
  /* Spacing & Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --border-radius-sm: 0.5rem;
  --border-radius-md: 0.75rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 1.5rem;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Offset for fixed navbar */
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  
  /* Fondo premium dinámico */
  background-image: 
    radial-gradient(circle at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), 
    radial-gradient(circle at 50% 0%, hsla(225,39%,30%,0.2) 0, transparent 50%), 
    radial-gradient(circle at 100% 0%, hsla(339,49%,30%,0.1) 0, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
}

::selection {
  background-color: var(--primary);
  color: white;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-card-hover);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  /* Breathe Gradient Animado */
  background: linear-gradient(-45deg, var(--bg-dark), #0f172a, #1e293b, var(--bg-dark));
  background-size: 400% 400%;
  animation: gradientBreathe 15s ease infinite;
}

@keyframes gradientBreathe {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ==========================================================================
   WOW FACTOR (Particles & Glitch)
   ========================================================================== */
#tsparticles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* Detrás del contenido */
  pointer-events: none; /* No bloquear clics */
}

/* Glitch Text Effect */
.glitch-text {
  position: relative;
  display: inline-block;
}
.glitch-text:hover::before,
.glitch-text:hover::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}
.glitch-text:hover::before {
  left: 2px;
  text-shadow: -2px 0 #00ffff;
  animation: glitch-anim-1 2s infinite linear alternate-reverse;
}
.glitch-text:hover::after {
  left: -2px;
  text-shadow: 2px 0 #ff00ff;
  animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
  0% { clip-path: inset(20% 0 80% 0); }
  20% { clip-path: inset(60% 0 10% 0); }
  40% { clip-path: inset(40% 0 50% 0); }
  60% { clip-path: inset(80% 0 5% 0); }
  80% { clip-path: inset(10% 0 70% 0); }
  100% { clip-path: inset(30% 0 20% 0); }
}
@keyframes glitch-anim-2 {
  0% { clip-path: inset(10% 0 60% 0); }
  20% { clip-path: inset(30% 0 20% 0); }
  40% { clip-path: inset(70% 0 10% 0); }
  60% { clip-path: inset(20% 0 50% 0); }
  80% { clip-path: inset(50% 0 30% 0); }
  100% { clip-path: inset(5% 0 80% 0); }
}

/* Dynamic Glow Card Effect */
.service-card {
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: var(--y, 0);
  left: var(--x, 0);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle closest-side, rgba(249, 115, 22, 0.15), transparent);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}
.service-card:hover::before {
  opacity: 1;
}
.service-card > * {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   2. TIPOGRAFÍA Y UTILIDADES
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-primary);
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary);
}

.gradient-text {
  background: linear-gradient(to right, var(--primary-light), var(--secondary), var(--accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: gradientShift 4s linear infinite;
  display: inline-block;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 8rem 0;
  position: relative;
}

.section-alt {
  background-color: rgba(0,0,0,0.2);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

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

.glass-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes gridMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(50px); } /* Assuming grid cell size is 50px */
}

@keyframes typing-cursor {
  0%, 100% { border-color: transparent; }
  50% { border-color: var(--primary); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes scarcityPulse {
  0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(249, 115, 22, 0); }
  100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

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

/* Scroll Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Interactive Hover Effects */
.hover-lift {
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition-normal);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.5);
  border-color: rgba(59, 130, 246, 0.3);
}

.hover-glow {
  transition: text-shadow var(--transition-normal), color var(--transition-normal);
}

.hover-glow:hover {
  text-shadow: 0 0 15px rgba(59, 130, 246, 0.8);
  color: var(--primary-light);
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all var(--transition-normal);
  background: transparent;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 90px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.nav-logo:hover img {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-normal);
}

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

.nav-cta {
  background: linear-gradient(135deg, var(--cta), var(--cta-dark));
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-cta);
  color: white;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 30px;
  height: 2px;
  background-color: white;
  transition: all 0.3s ease;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: -100px;
  z-index: -1;
  background-image: 
    linear-gradient(to right, rgba(59, 130, 246, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}

.hero-glow-1 {
  position: absolute;
  top: 10%;
  right: 10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  z-index: -1;
  filter: blur(60px);
}

.hero-glow-2 {
  position: absolute;
  bottom: 10%;
  left: 10%;
  width: 30vw;
  height: 30vw;
  background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  z-index: -1;
  filter: blur(60px);
}

.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 10;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 9999px;
  color: var(--primary-light);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-light);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-light);
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.typing-cursor {
  border-right: 3px solid var(--primary);
  margin-left: 2px;
  animation: typing-cursor 1s infinite;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--border-radius-lg);
  font-weight: 700;
  font-size: 1.1rem;
  transition: all var(--transition-normal);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow-primary);
  color: white;
}

.btn-glass {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--border-radius-lg);
  font-weight: 700;
  font-size: 1.1rem;
  transition: all var(--transition-normal);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  color: white;
}

.btn-glass i {
  color: #25D366; /* WhatsApp Green */
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(to right, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================================================
   TRUST BAND (CRO)
   ========================================================================== */
.trust-band {
  padding: 3rem 0;
  background: rgba(15, 23, 42, 0.4);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  text-align: center;
}
.trust-title {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
}
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0.7;
}
.trust-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ==========================================================================
   LEAD MAGNET MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  position: relative;
  width: 90%;
  max-width: 450px;
  padding: 2.5rem;
  border-radius: var(--border-radius-xl);
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
}
.modal-close:hover { opacity: 1; }

/* ==========================================================================
   STICKY CTA (MOBILE)
   ========================================================================== */
.sticky-cta-mobile {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem;
  border-top: 1px solid var(--glass-border);
  z-index: 99;
}
.btn-sticky {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, var(--cta), var(--cta-dark));
  color: white;
  text-align: center;
  padding: 1rem;
  border-radius: 8px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

/* ==========================================================================
   SERVICIOS
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  padding: 2rem;
  border-radius: var(--border-radius-xl);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-icon {
  width: 4rem;
  height: 4rem;
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

/* Colores específicos para iconos de servicios */
.si-ecommerce { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.si-ai { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.si-crm { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.si-mobile { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.si-fintech { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.si-design { background: rgba(236, 72, 153, 0.1); color: #ec4899; }
.si-data { background: rgba(6, 182, 212, 0.1); color: #06b6d4; }
.si-security { background: rgba(99, 102, 241, 0.1); color: #6366f1; }

.service-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.service-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-link {
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

.service-link i {
  transition: transform var(--transition-fast);
}

.service-card:hover .service-link i {
  transform: translateX(5px);
}

/* ==========================================================================
   PROYECTOS
   ========================================================================== */
.projects-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: rgba(255,255,255,0.2);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  position: relative;
}

.project-card {
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  transition: transform 0.4s ease, opacity 0.4s ease, box-shadow 0.4s ease;
}

.project-card.hidden {
  opacity: 0;
  transform: scale(0.9);
  position: absolute;
  pointer-events: none;
}

.project-visual {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Fondos sutiles generados para cada proyecto */
.pv-indigo { background: linear-gradient(135deg, #1e1b4b, #312e81); }
.pv-fuchsia { background: linear-gradient(135deg, #4a044e, #701a75); }
.pv-blue { background: linear-gradient(135deg, #0f172a, #1e3a8a); }
.pv-emerald { background: linear-gradient(135deg, #022c22, #064e3b); }
.pv-amber { background: linear-gradient(135deg, #451a03, #78350f); }
.pv-teal { background: linear-gradient(135deg, #042f2e, #134e4a); }
.pv-rose { background: linear-gradient(135deg, #4c0519, #881337); }
.pv-cyan { background: linear-gradient(135deg, #083344, #164e63); }

/* Patrón de puntos sobre visual */
.project-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

.project-icon-wrapper {
  width: 5rem;
  height: 5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  z-index: 2;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.project-info {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;  
  overflow: hidden;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.project-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--primary-light);
  border-radius: 9999px;
  font-weight: 500;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-btn {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-btn-primary {
  background: var(--primary);
  color: white;
  transition: all var(--transition-fast);
}

.project-btn-primary:hover {
  background: var(--primary-dark);
  color: white;
}

.project-btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  transition: all var(--transition-fast);
}

.project-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

/* ==========================================================================
   SOFTWARE (AUTOZAJUNA PRO)
   ========================================================================== */
.software-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}

.badge-scarcity {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: var(--cta);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: scarcityPulse 2s infinite;
}

.software-headline {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.software-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.software-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.feature-item i {
  color: var(--accent);
  font-size: 1.5rem;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.75rem;
  border-radius: var(--border-radius-md);
}

.feature-item div {
  display: flex;
  flex-direction: column;
}

.feature-item strong {
  font-size: 1.1rem;
  color: white;
}

.feature-item span {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* UI Mockup CSS */
.software-visual {
  position: relative;
}

.software-visual::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at center, rgba(139,92,246,0.2) 0%, transparent 70%);
  z-index: -1;
  border-radius: 50%;
}

.software-mockup {
  background: #0f172a;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.05);
  overflow: hidden;
  transform: rotateY(-5deg) rotateX(5deg);
  transform-style: preserve-3d;
  transition: transform var(--transition-slow);
}

.software-visual:hover .software-mockup {
  transform: rotateY(0) rotateX(0);
}

.mockup-header {
  background: #1e293b;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mockup-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.mockup-title {
  margin-left: auto;
  margin-right: auto;
  font-size: 0.8rem;
  color: #94a3b8;
  font-family: monospace;
}

.mockup-body {
  display: flex;
  height: 350px;
}

.mockup-sidebar {
  width: 140px;
  background: rgba(30, 41, 59, 0.5);
  padding: 15px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-right: 1px solid rgba(255,255,255,0.05);
}

.mockup-menu-item {
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mockup-menu-item.active {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.mockup-menu-item.highlight {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.2));
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.mockup-content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mockup-stat-row {
  display: flex;
  gap: 15px;
}

.mockup-stat {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 15px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
  color: #94a3b8;
}

.mockup-stat span {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
}

.mockup-stat.accent span {
  color: #10b981;
}

.mockup-progress {
  height: 6px;
  background: #1e293b;
  border-radius: 3px;
  overflow: hidden;
}

.mockup-progress-bar {
  width: 75%;
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 3px;
  position: relative;
}

.mockup-progress-bar::after {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  animation: gradientShift 2s linear infinite;
}

.mockup-log {
  flex: 1;
  background: #020617;
  border-radius: 8px;
  padding: 15px;
  font-family: monospace;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.log-line {
  opacity: 0;
  animation: fadeIn 0.5s forwards;
}

.log-line:nth-child(1) { animation-delay: 0.5s; }
.log-line:nth-child(2) { animation-delay: 1.5s; }
.log-line:nth-child(3) { animation-delay: 2.5s; }

.log-line.success { color: #10b981; }
.log-line.processing { color: #f59e0b; }

/* Pricing Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: center;
}

.pricing-card {
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius-xl);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--primary);
  transform: scale(1.05);
  box-shadow: var(--glow-primary);
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 1) 100%);
  z-index: 10;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--cta), var(--cta-dark));
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.4);
}

.pricing-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--glass-border);
}

.pricing-plan {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.pricing-price {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
}

.pricing-currency {
  font-size: 1.5rem;
  color: var(--text-muted);
}

.pricing-period {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.pricing-feature i.fa-check {
  color: var(--accent);
}

.pricing-feature i.fa-star {
  color: #f59e0b; /* Ambar para features premium */
}

.pricing-feature.disabled {
  color: var(--text-muted);
  text-decoration: line-through;
}

.pricing-feature.disabled i {
  color: var(--text-muted);
}

.pricing-feature.highlight {
  font-weight: 600;
}

.pricing-cta {
  display: block;
  text-align: center;
  padding: 1rem;
  border-radius: var(--border-radius-lg);
  font-weight: 700;
  transition: all var(--transition-fast);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: white;
}

.pricing-cta:hover {
  background: rgba(255,255,255,0.1);
}

.pricing-cta.cta-featured {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
}

.pricing-cta.cta-featured:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-primary);
}

/* ==========================================================================
   TABLA DE PRECIOS SERVICIOS
   ========================================================================== */
.pricing-table-wrapper {
  overflow-x: auto;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--glass-shadow);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.pricing-table th, 
.pricing-table td {
  padding: 1.5rem;
  text-align: left;
}

.pricing-table th {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-light);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.pricing-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background var(--transition-fast);
}

.pricing-table tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.pricing-table tr:last-child {
  border-bottom: none;
}

.table-service {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  color: white;
}

.table-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* Colores tabla */
.ti-design { background: rgba(236, 72, 153, 0.1); color: #ec4899; }
.ti-invitation { background: rgba(244, 63, 94, 0.1); color: #f43f5e; }
.ti-data { background: rgba(6, 182, 212, 0.1); color: #06b6d4; }
.ti-bot { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.ti-ecommerce { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.ti-mobile { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.ti-crm { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.ti-consult { background: rgba(99, 102, 241, 0.1); color: #6366f1; }

.table-price {
  font-size: 1.1rem;
  color: white;
}

.price-unit {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: normal;
}

.pricing-table td:nth-child(3) {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.pricing-table-cta {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-light);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.pricing-table-cta:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ==========================================================================
   STACK TECNOLÓGICO
   ========================================================================== */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  position: relative;
  cursor: default;
}

.tech-icon {
  font-size: 3.5rem;
  transition: transform var(--transition-slow);
}

.tech-name {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Hover colors */
.tech-item:hover .fa-react { color: #61dafb; }
.tech-item:hover .fa-js { color: #f7df1e; }
.tech-item:hover .fa-node-js { color: #339933; }
.tech-item:hover .fa-python { color: #3776ab; }
.tech-item:hover .fa-database { color: #3ecf8e; } /* Supabase */
.tech-item:hover .fa-brain { color: #4285f4; } /* Gemini */
.tech-item:hover .fa-bolt { color: #dc382d; } /* Redis */
.tech-item:hover .fa-android { color: #3ddc84; }
.tech-item:hover .fa-css3-alt { color: #38bdf8; } /* Tailwind */

.tech-item:hover {
  color: white;
}

.tech-item:hover .tech-icon {
  transform: scale(1.15) translateY(-5px);
}

/* Tooltip simple */
.tech-item::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: 10;
}

.tech-item:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: background var(--transition-fast);
}

.faq-item:hover {
  background: rgba(255,255,255,0.03);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.5rem;
  background: none;
  border: none;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-family);
}

.faq-toggle {
  color: var(--text-muted);
  transition: transform 0.4s ease, color 0.4s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  transition: max-height 0.6s ease-in-out;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
}

.contact-form {
  padding: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--glass-border);
  padding: 0.9rem 1rem;
  border-radius: var(--border-radius-md);
  color: white;
  font-family: var(--font-family);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
}

.form-select option {
  background: var(--bg-card);
  color: white;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-error {
  display: none;
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 0.4rem;
}

.form-group.error .form-input,
.form-group.error .form-select,
.form-group.error .form-textarea {
  border-color: #ef4444;
}

.form-group.error .form-error {
  display: block;
}

.form-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--cta), var(--cta-dark));
  color: white;
  border: none;
  padding: 1rem;
  border-radius: var(--border-radius-lg);
  font-family: var(--font-family);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.form-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-cta);
}

.form-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.channel-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  transition: all var(--transition-normal);
}

.channel-card:hover {
  transform: translateX(10px);
  background: rgba(255,255,255,0.03);
}

.channel-whatsapp:hover { border-color: rgba(37, 211, 102, 0.4); }
.channel-telegram:hover { border-color: rgba(0, 136, 204, 0.4); }
.channel-email:hover { border-color: rgba(59, 130, 246, 0.4); }

.channel-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.ci-whatsapp { background: rgba(37, 211, 102, 0.1); color: #25D366; }
.ci-telegram { background: rgba(0, 136, 204, 0.1); color: #0088cc; }
.ci-email { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }

.channel-info {
  display: flex;
  flex-direction: column;
}

.channel-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.channel-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
}

.channel-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.channel-arrow {
  margin-left: auto;
  color: var(--text-muted);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.channel-card:hover .channel-arrow {
  transform: translateX(5px);
}

.channel-whatsapp:hover .channel-arrow { color: #25D366; }
.channel-telegram:hover .channel-arrow { color: #0088cc; }
.channel-email:hover .channel-arrow { color: #3b82f6; }

.channel-promo {
  margin-top: 1rem;
  padding: 1.5rem;
  text-align: center;
  border-color: rgba(139, 92, 246, 0.3);
}

.channel-promo i.fa-comments {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.channel-promo h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.channel-promo p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  background: var(--secondary);
  padding: 0.6rem 1.2rem;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.promo-btn:hover {
  background: hsl(270, 70%, 45%);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  padding: 4rem 0 2rem;
  background: rgba(15, 23, 42, 0.8);
  border-top: 1px solid var(--glass-border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 110px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.footer-logo:hover img {
  transform: scale(1.05);
}

.footer-slogan {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-links-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.footer-link {
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-link:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-etymology {
  margin-top: 1rem;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-secondary);
  opacity: 0.7;
  cursor: help;
}

.footer-etymology i {
  margin-right: 0.5rem;
  color: var(--secondary-light);
}

/* ==========================================================================
   WHATSAPP FLOTANTE
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  z-index: 99;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-normal);
  animation: float 3s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: white;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.6);
  animation-play-state: paused;
}

/* ==========================================================================
   TOASTS (NOTIFICACIONES)
   ========================================================================== */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius-md);
  color: white;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  animation: slideInRight 0.3s forwards;
  max-width: 350px;
}

.toast.success {
  background: #10b981;
  border-left: 4px solid #047857;
}

.toast.error {
  background: #ef4444;
  border-left: 4px solid #b91c1c;
}

.toast.fadeOut {
  animation: fadeOutRight 0.5s forwards;
}

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

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

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title { font-size: 3.5rem; }
  
  .nav-logo img {
    height: 60px;
  }
  
  .sticky-cta-mobile {
    display: block;
  }
  
  .whatsapp-float {
    bottom: 5rem; /* Subir whatsapp para no tapar el CTA */
  }

  .software-hero {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .software-visual {
    order: -1; /* Mover mockup arriba en tablet */
    max-width: 500px;
    margin: 0 auto;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .pricing-card.featured {
    transform: scale(1);
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-links-group {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .section-title { font-size: 2rem; }
  
  /* Navbar Mobile */
  .nav-toggle { display: flex; }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    z-index: 999;
  }
  
  body.nav-open .nav-links {
    transform: translateX(0);
  }
  
  body.nav-open {
    overflow: hidden;
  }
  
  .nav-link { font-size: 1.25rem; }
  
  .nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  
  /* Layouts */
  .hero-title { font-size: 2.5rem; }
  .hero-stats { justify-content: space-around; gap: 1.5rem; }
  
  .form-row { grid-template-columns: 1fr; gap: 0; }
  
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-links-group {
    justify-content: center;
    text-align: center;
  }
  
  .whatsapp-float {
    bottom: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; width: 100%; }
  .btn-primary, .btn-glass { width: 100%; justify-content: center; }
  .projects-filters { flex-direction: column; width: 100%; }
  .filter-btn { width: 100%; }
}
