:root {
  --bg-dark: #080F08;
  --base-green: #448545;
  --neon-green: #4ADE80;
  --base-mustard: #F6A700;
  --neon-mustard: #FACC15;
  --text-main: #E2E8F0;
  --text-muted: #94A3B8;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(74, 222, 128, 0.15);
  --glass-border-hover: rgba(74, 222, 128, 0.4);
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Layout Utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.glass-panel:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 8px 32px rgba(74, 222, 128, 0.1);
  transform: translateY(-4px);
}

/* Buttons */
.btn-neon {
  display: inline-block;
  background: transparent;
  color: var(--neon-mustard);
  font-weight: 600;
  padding: 14px 32px;
  border: 1px solid var(--neon-mustard);
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.1), inset 0 0 10px rgba(250, 204, 21, 0.1);
}

.btn-neon:hover {
  background: linear-gradient(90deg, var(--base-mustard), var(--neon-mustard));
  color: var(--bg-dark);
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.6), inset 0 0 10px rgba(250, 204, 21, 0.4);
  border-color: transparent;
}

/* Section 1: Header Pro */
.header-pro {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  background-color: var(--bg-dark);
  transition: all 0.3s ease;
}

.header-pro.scrolled {
  padding: 12px 0;
  border-bottom: 1px solid rgba(74, 222, 128, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

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

.brand-container {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.brand-container:hover {
  filter: drop-shadow(0 0 8px rgba(74, 222, 128, 0.5));
}

.brand-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.5px;
  background: linear-gradient(120deg, var(--base-green) 40%, #ffffff 50%, var(--base-green) 60%);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shine 6s linear infinite;
}

.brand-at {
  background: linear-gradient(120deg, var(--base-mustard) 40%, #ffffff 50%, var(--base-mustard) 60%);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shine 6s linear infinite;
}

@keyframes shine {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.brand-icon {
  height: 36px;
  transition: all 0.3s ease;
}

.logo-accent {
  color: var(--neon-green);
}

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

.nav-links a {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--neon-green);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  padding: 5px;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-main);
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background-color: var(--neon-green);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background-color: var(--neon-green);
}

/* Section 2: Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
}

/* Decoración de fondo Hero */
.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  filter: blur(40px);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 32px;
  letter-spacing: -1px;
  line-height: 1.1;
  text-align: center;
  transform: translateZ(0);
  will-change: transform;
}

.hero h1 .highlight {
  background: linear-gradient(90deg, var(--base-green), var(--neon-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Section 3: Pilares de Arquitectura */
.section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  color: var(--text-main);
}

.section-title span {
  color: var(--neon-green);
}

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

.pillar-card {
  padding: 40px 30px;
  text-align: center;
}

.pillar-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
}

.pillar-icon svg {
  width: 48px;
  height: 48px;
  stroke: var(--neon-green);
  stroke-width: 1.5px;
  filter: drop-shadow(0 0 8px rgba(74, 222, 128, 0.6));
}

.pillar-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--text-main);
}

.pillar-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Section 4: Showcase de Productos */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 40px;
}

.product-card {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 400px;
  position: relative;
  overflow: hidden;
}

.product-card::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.product-header {
  margin-bottom: 32px;
}

.product-badge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(74, 222, 128, 0.1);
  color: var(--neon-green);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.product-card h3 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.product-features {
  list-style: none;
}

.product-features li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
}

.product-features li::before {
  content: '→';
  color: var(--neon-green);
  font-weight: bold;
}

/* Section 5: Soluciones por Nicho */
.niche-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.niche-card {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.niche-icon-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.niche-icon-container svg {
  width: 48px;
  height: 48px;
  stroke: var(--neon-green);
  stroke-width: 1.5px;
  filter: drop-shadow(0 0 8px rgba(74, 222, 128, 0.6));
  flex-shrink: 0;
}

.niche-card h4 {
  font-size: 1.4rem;
  color: var(--text-main);
}

.niche-focus {
  font-size: 0.95rem;
  color: var(--neon-green);
  font-weight: 600;
  margin-bottom: 8px;
}

.niche-solutions {
  list-style: none;
}

.niche-solutions li {
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.niche-solutions li::before {
  content: '•';
  color: var(--neon-green);
}

/* Section 6: Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 60px 0 30px;
  margin-top: 60px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.footer-brand .brand-text {
  font-size: 24px;
}

.footer-brand .brand-icon {
  height: 30px;
}

.footer-contact {
  text-align: right;
  color: var(--text-muted);
}

.footer-contact p {
  margin-bottom: 8px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
}

.availability-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--neon-green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* Utilities: Animaciones al scrollear */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: var(--neon-green);
  color: var(--bg-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(74, 222, 128, 0.5);
  z-index: 1000;
  transition: all 0.3s ease;
  animation: neon-pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(74, 222, 128, 0.8);
}

@keyframes neon-pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
  70% { box-shadow: 0 0 0 20px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* Responsividad */
@media (max-width: 768px) {
  /* 1. Header y Navegación */
  .header-pro {
    padding: 12px 0;
  }
  .nav-container { 
    flex-direction: row; 
    justify-content: space-between;
    align-items: center;
  }
  .hamburger {
    display: flex;
  }
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: var(--bg-dark);
    border-left: 1px solid var(--glass-border);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
  }
  nav.nav-active {
    right: 0;
  }
  .nav-links { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 30px; 
  }
  .nav-links a { 
    font-size: 16px; 
  }

  /* 2. Hero Section */
  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 60px;
  }
  .hero h1 { 
    font-size: 2.2rem; 
    margin-bottom: 24px;
  }
  .hero-content p {
    padding: 0 15px;
    margin-bottom: 30px;
  }

  /* Reducción de Espacio entre Secciones */
  .section {
    padding: 60px 0;
  }
  .section-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  /* 3. Grillas de Tarjetas (Pilares, Productos y Nichos) */
  .pillars-grid,
  .showcase-grid,
  .niche-grid { 
    grid-template-columns: 1fr; 
    gap: 20px; 
  }
  .product-card { 
    min-height: auto; 
    padding: 24px 20px;
  }
  .niche-card,
  .pillar-card {
    padding: 24px 20px;
  }

  /* Footer */
  .footer {
    padding: 40px 0 20px;
    margin-top: 40px;
  }
  .footer-content { 
    flex-direction: column; 
    gap: 24px; 
    text-align: center; 
    margin-bottom: 24px;
  }
  .footer-contact { 
    text-align: center; 
  }
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    align-items: center;
    padding-top: 20px;
  }

  /* 4. WhatsApp Button */
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}
