:root {
  /* Color Palette */
  --bg-dark: #0a0a0c;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.1);
  --primary: #3b82f6;
  --primary-glow: rgba(59, 130, 246, 0.5);
  --secondary: #8b5cf6;
  --secondary-glow: rgba(139, 92, 246, 0.5);
  --accent-green: #10b981;
  --accent-orange: #f59e0b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --glass-border: rgba(255, 255, 255, 0.1);
  --nav-bg: rgba(10, 10, 12, 0.8);
  
  /* Gradientes */
  --grad-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --grad-dark: linear-gradient(180deg, #0a0a0c 0%, #161b22 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background Particles (Fondo Dinámico) */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0a0a0c 100%);
}

.particles::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 40px),
    radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 30px),
    radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 40px);
  background-size: 550px 550px, 350px 350px, 250px 250px;
  background-position: 0 0, 40px 60px, 130px 270px;
  animation: backgroundMove 60s linear infinite;
  opacity: 0.3;
}

@keyframes backgroundMove {
  from { background-position: 0 0, 40px 60px, 130px 270px; }
  to { background-position: 550px 550px, 390px 410px, 380px 820px; }
}

/* Typography Hub */
.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
  background: transparent;
}

.navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.75rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-img {
  height: 40px;
  width: auto;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
}

.nav-cta {
  background: var(--grad-primary);
  color: #fff !important;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 15px var(--primary-glow);
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

/* Glass Card Base */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 4rem;
  padding: 8rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 10px 25px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px var(--primary-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: #fff;
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--glass-border);
}

.hero-visual {
  position: relative;
}

.hero-card {
  width: 100%;
  aspect-ratio: 4/3;
  padding: 1.5rem;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Services Section */
.services {
  padding: 8rem 2rem;
  background: relative;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 5rem;
}

.section-badge {
  display: inline-block;
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  padding: 3rem 2.5rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
}

.service-icon {
  width: 180px;
  height: 180px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(2deg);
  filter: drop-shadow(0 0 30px var(--primary-glow));
}

.service-card[data-accent="green"]:hover .service-icon {
  filter: drop-shadow(0 0 30px rgba(16, 185, 129, 0.5));
}

.service-card[data-accent="orange"]:hover .service-icon {
  filter: drop-shadow(0 0 30px rgba(245, 158, 11, 0.5));
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-description {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.service-features {
  margin: 0 auto auto auto;
  list-style: none;
  text-align: left;
  display: inline-block;
}

.service-features li {
  margin-bottom: 0.75rem;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-features li::before {
  content: '→';
  color: var(--primary);
}

.service-link {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap 0.3s ease;
}

.service-card:hover .service-link {
  gap: 1rem;
}

.service-img-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

/* Specific Service Details */
.detail-section {
  padding: 8rem 2rem;
}

.detail-section.alt {
  background: rgba(255, 255, 255, 0.02);
}

.detail-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.detail-content.reverse {
  direction: rtl;
}

.detail-content.reverse > * {
  direction: ltr;
}

.modules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.glass-card-sm {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
}

.module-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.module-icon.blue { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.module-icon.green { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.module-icon.yellow { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.module-icon.red { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

.module-card h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.module-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Contact Section */
.contact-section {
  padding: 8rem 2rem;
}

.contact-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
  align-items: center;
}

.contact-cta {
  padding: 3rem;
  text-align: center;
}

.contact-method {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2rem;
  text-decoration: none;
  color: inherit;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon.whatsapp { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.contact-icon.email { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }

/* Floating Elements */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 999;
  text-decoration: none;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(5deg);
}

/* Footer */
.footer {
  padding: 6rem 2rem 2rem;
  border-top: 1px solid var(--glass-border);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-links h4 {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 10rem;
  }
  
  .hero-badge, .hero-buttons, .hero-stats {
    justify-content: center;
  }
  
  .hero-subtitle {
    margin: 0 auto 2.5rem;
  }
  
  .detail-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .detail-content.reverse {
    direction: ltr;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .nav-menu {
    display: none; /* Sería necesario un menú hamburguesa desplegable */
  }
  
  .nav-toggle {
    display: block;
  }
}

/* Detail Section Enhancements */
.detail-visual {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.detail-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

.glass-card.large {
  width: 100%;
  padding: 1.5rem;
}

.detail-visual .glass-card {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.detail-visual .glass-card.floating {
  transform: translateY(-20px);
  margin-top: -40px;
  z-index: 2;
}

@media (max-width: 992px) {
  .detail-visual .glass-card.floating {
    transform: none;
    margin-top: 0;
  }
}

/* ERP Section Enhanced Styles */
.erp-highlight {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.03) 0%, rgba(10, 10, 12, 0) 100%);
  padding: 8rem 2rem 6rem;
}

.erp-key-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 4rem auto;
}

.key-point {
  text-align: center;
  padding: 2rem 1.5rem;
  transition: all 0.3s ease;
}

.key-point:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
}

.key-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}

.key-point h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.key-point p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.erp-modules-section {
  margin-top: 6rem;
}

.modules-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 3rem;
  color: var(--text-main);
}

.modules-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.module-card-large {
  padding: 2.5rem;
  transition: all 0.3s ease;
}

.module-card-large:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
}

.module-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.module-icon-large {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.module-icon-large.blue { background: rgba(59, 130, 246, 0.15); }
.module-icon-large.green { background: rgba(16, 185, 129, 0.15); }
.module-icon-large.yellow { background: rgba(245, 158, 11, 0.15); }
.module-icon-large.orange { background: rgba(251, 146, 60, 0.15); }
.module-icon-large.purple { background: rgba(168, 85, 247, 0.15); }
.module-icon-large.red { background: rgba(239, 68, 68, 0.15); }

.module-header h4 {
  font-size: 1.3rem;
  margin: 0;
  color: var(--text-main);
}

.module-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.module-features li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.module-features li:last-child {
  border-bottom: none;
}

.module-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.erp-gallery {
  margin-top: 6rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-grid .glass-card {
  padding: 1rem;
  transition: all 0.3s ease;
}

.gallery-grid .glass-card:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .erp-key-points {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  .modules-grid-enhanced {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
