/* ==================== VARIABLES ==================== */
:root {
  --primary: #00ff41;
  --primary-light: #39ff14;
  --primary-dark: #00cc33;
  --secondary: #00d9ff;
  --accent: #00ffff;
  
  --bg-dark: #0a0a0f;
  --bg-darker: #050508;
  --bg-card: rgba(255, 255, 255, 0.03);
  
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --text-muted: #6a6a7a;
  
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(0, 255, 65, 0.6);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  position: relative;
}

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

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  transition: var(--transition);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 255, 65, 0.3);
}

/* ==================== NEON EFFECTS ==================== */
.neon-text {
  color: var(--primary);
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.9),
               0 0 20px rgba(0, 255, 65, 0.6),
               0 0 30px rgba(0, 255, 65, 0.4);
  animation: neonPulse 2s ease-in-out infinite;
}

@keyframes neonPulse {
  0%, 100% {
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.9),
                 0 0 20px rgba(0, 255, 65, 0.6),
                 0 0 30px rgba(0, 255, 65, 0.4);
  }
  50% {
    text-shadow: 0 0 20px rgba(0, 255, 65, 1),
                 0 0 40px rgba(0, 255, 65, 0.8),
                 0 0 60px rgba(0, 255, 65, 0.6);
  }
}

.neon-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

/* ==================== NAVIGATION ==================== */
.glass-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 20px 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
}

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

.logo {
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}

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

.logo-placeholder {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
}

.logo-placeholder span:first-child {
  font-size: 28px;
  filter: drop-shadow(0 0 10px rgba(0, 255, 65, 0.6));
}

nav {
  display: flex;
  list-style: none;
  gap: 32px;
}

nav a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 8px 0;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: var(--transition);
}

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

nav a:hover::after {
  width: 100%;
}

nav a.active {
  color: var(--primary);
}

nav a.active::after {
  width: 100%;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 400px;
  height: 400px;
}

.btn-aura {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #000;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.5),
              0 4px 16px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

.btn-aura:hover {
  box-shadow: 0 0 40px rgba(0, 255, 65, 0.8),
              0 0 60px rgba(0, 217, 255, 0.5),
              0 8px 24px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.btn-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.btn-icon {
  font-size: 20px;
  transition: var(--transition);
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

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

.hero-bg-aura {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 255, 65, 0.3) 0%, rgba(0, 217, 255, 0.2) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.6; }
  50% { transform: translateX(-50%) scale(1.1); opacity: 1; }
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 32px;
}

.badge-icon {
  font-size: 16px;
  filter: drop-shadow(0 0 10px rgba(0, 255, 65, 0.6));
}

.hero-title {
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(18px, 3vw, 24px);
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

/* ==================== STATS ==================== */
.stats {
  padding: 80px 0;
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}

.stat-card {
  padding: 40px 32px;
  border-radius: 20px;
  text-align: center;
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.1), transparent);
  transition: left 0.8s;
}

.stat-card:hover::before {
  left: 100%;
}

.stat-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
}

.stat-number {
  font-size: clamp(40px, 6vw, 56px);
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
  display: block;
}

.stat-label {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==================== SERVICES ==================== */
.services {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.section-title {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 900;
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.service-card {
  position: relative;
  border-radius: 16px;
  transition: var(--transition);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* La imagen de fondo con <img> tag */
.service-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Dark overlay for readability */
.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 15, 0.2) 0%,
    rgba(10, 10, 15, 0.6) 50%,
    rgba(10, 10, 15, 0.95) 100%
  );
  transition: var(--transition);
  z-index: 1;
}

.service-card:hover .service-overlay {
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 15, 0.1) 0%,
    rgba(10, 10, 15, 0.5) 50%,
    rgba(10, 10, 15, 0.9) 100%
  );
}

/* Content above overlay */
.service-content {
  position: relative;
  z-index: 2;
  padding: 40px 32px;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 40px rgba(0, 255, 65, 0.3),
              0 12px 40px rgba(0, 0, 0, 0.5);
}

.service-icon {
  font-size: 48px;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 20px rgba(0, 255, 65, 0.6));
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.15);
  filter: drop-shadow(0 0 40px rgba(0, 255, 65, 0.9));
}

.service-content h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.service-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* ==================== GALLERY ==================== */
.gallery {
  padding: 100px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 2px dashed var(--glass-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.gallery-item:hover .gallery-placeholder {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--primary);
  transform: scale(1.05);
}

.gallery-emoji {
  font-size: 80px;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 20px rgba(0, 255, 65, 0.5));
}

.gallery-item:hover .gallery-emoji {
  filter: drop-shadow(0 0 40px rgba(0, 255, 65, 0.8));
  animation: bounce 0.6s;
}

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

.gallery-text {
  font-size: 14px;
  font-style: italic;
  color: var(--text-muted);
  text-align: center;
  padding: 0 20px;
}

/* ==================== CTA SECTION ==================== */
.cta-section {
  padding: 100px 0;
  position: relative;
}

.cta-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 255, 65, 0.4) 0%, rgba(0, 217, 255, 0.3) 50%, transparent 70%);
  filter: blur(100px);
  pointer-events: none;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 40px;
  border-radius: 24px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.cta-text {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

/* ==================== FOOTER ==================== */
.footer {
  padding: 60px 0 32px;
  border-top: 1px solid var(--glass-border);
  margin-top: 100px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-section > p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-section h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 12px;
  color: var(--text-secondary);
}

.footer-section ul li a {
  text-decoration: none;
  color: var(--text-secondary);
  transition: var(--transition);
  display: inline-block;
}

.footer-section ul li a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 14px;
}

.demo-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #000;
  border-radius: 8px;
  font-weight: 700;
  font-size: 12px;
}

/* ==================== WHATSAPP FLOATING ==================== */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
  animation: bounce 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
  font-size: 32px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  nav {
    display: none;
  }
  
  .hero-title {
    font-size: 40px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    font-size: 28px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}
