/* 
Premium Custom Design for GxD 
Focus: Dark Mode, Glassmorphism, Micro-animations, Responsive
*/

:root {
  /* Colors */
  --bg-dark: #07070a;
  --bg-surface: #1e202e;
  --text-primary: #ffffff;
  --text-secondary: #d1d5db;
  
  --brand-primary: #8A2BE2; /* BlueViolet */
  --brand-accent: #b366ff;
  --whatsapp: #25D366;
  --whatsapp-hover: #1EBE5D;
  
  --gradient-main: linear-gradient(135deg, #8A2BE2, #5a00d1);
  --gradient-hover: linear-gradient(135deg, #a453ec, #7000FF);
  
  /* Utilities */
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  
  --transition-normal: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset / Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
}

.text-gradient {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-icon {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 3rem;
}

/* Background Effects */
.bg-glow {
  position: absolute;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -2;
  opacity: 0.15;
  pointer-events: none;
}

.orb-1 {
  top: -10%;
  left: -10%;
  background: #8A2BE2;
}

.orb-2 {
  bottom: 20%;
  right: -10%;
  background: #390099;
}

.grid-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  pointer-events: none;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition-normal);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient-main);
  color: white;
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.btn-primary:hover {
  background: var(--gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(138, 43, 226, 0.5);
}

.btn-secondary {
  background: var(--glass-bg);
  color: white;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--brand-accent);
  border: 1px solid var(--brand-accent);
}

.btn-outline:hover {
  background: rgba(138, 43, 226, 0.1);
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.2);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.w-100 { width: 100%; }
.mt-auto { margin-top: auto; }

/* Navigation */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 1rem 0;
  z-index: 100;
  transition: var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(7, 7, 10, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.75rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: white;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.logo img {
  height: 40px;
  width: auto;
  border-radius: 8px; /* Depending on the logo style */
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-normal);
  position: relative;
}

.nav-links a:hover {
  color: white;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--brand-primary);
  transform: scaleX(0);
  transition: var(--transition-normal);
  transform-origin: right;
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none; /* Mobile only */
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr; /* Da más espacio al texto para un mejor centrado óptico */
  align-items: center;
  padding: 100px 2rem 2rem;
  gap: 4rem;
}

.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(138, 43, 226, 0.1);
  border: 1px solid rgba(138, 43, 226, 0.3);
  color: var(--brand-accent);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  height: 500px;
}

.visual-card {
  position: absolute;
  background: rgba(16, 16, 22, 0.6);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.visual-card i {
  margin-bottom: 1rem;
}

.card-lines .line {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin-bottom: 10px;
}

.w-long { width: 100%; }
.w-short { width: 60%; }

.float-animation-1 {
  top: 10%; right: 10%;
  width: 200px;
  animation: float 6s ease-in-out infinite;
}

.float-animation-2 {
  top: 40%; left: 0;
  width: 220px;
  animation: float 7s ease-in-out infinite reverse;
}

.float-animation-3 {
  bottom: 0; right: 20%;
  width: 180px;
  animation: float 5s ease-in-out infinite 1s;
}
.float-animation-4 {
  top: 50%; right: -5%;
  width: 160px;
  animation: float 6s ease-in-out infinite 2s;
}

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

/* Services */
.services-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-heading {
  text-align: center;
  margin-bottom: 4rem;
}

.section-heading h2 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: 0.5rem;
}

.section-heading p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* CSS Grid for the two web options + mensajeria */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: rgba(30, 32, 46, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.service-card.span-2 {
  grid-column: span 2;
}

.service-card.highlight {
  border-color: rgba(138, 43, 226, 0.4);
  box-shadow: 0 10px 40px rgba(138, 43, 226, 0.1);
}

.service-card.highlight::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 150px; height: 150px;
  background: radial-gradient(circle at top right, rgba(138,43,226,0.2), transparent 70%);
  pointer-events: none;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(circle at top right, rgba(138,43,226,0.1), transparent 70%);
  opacity: 0;
  transition: var(--transition-normal);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(138, 43, 226, 0.3);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.service-card:hover::before {
  opacity: 1;
}

.icon-wrapper {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.icon-wrapper.premium {
  background: linear-gradient(135deg, rgba(138,43,226,0.2), rgba(0,0,0,0));
  color: var(--brand-accent);
  border-color: rgba(138,43,226,0.3);
  box-shadow: 0 0 20px rgba(138,43,226,0.2);
}

.icon-wrapper.alert {
  background: rgba(255, 255, 255, 0.05);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

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

.features-list {
  list-style: none;
  margin-bottom: 2rem;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: #d4d4d8;
}

.features-list i {
  color: var(--brand-accent);
  margin-top: 2px;
}

.pricing {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255,255,255,0.03);
}

.price-setup, .price-maint {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.price-setup {
  border-bottom: 1px dashed rgba(255,255,255,0.1);
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
}

.pricing span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.pricing strong {
  font-size: 1.1rem;
}

.pricing strong small {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-secondary);
}

/* Banner / CTA */
.bottom-cta {
  max-width: 1000px;
  margin: 4rem auto 8rem;
  padding: 0 2rem;
}

.glass-banner {
  background: linear-gradient(135deg, rgba(138,43,226,0.1), rgba(0,0,0,0.2));
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 4rem 2rem;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.glass-banner h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.glass-banner p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 3rem 0;
  background: var(--bg-surface);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.footer-links p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Fixed WhatsApp Button */
.fixed-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: var(--whatsapp);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: var(--transition-normal);
  animation: pulse-wa 2s infinite;
}

.fixed-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  transform: scale(1.1);
  animation: none;
}

@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Animations JS classes */
.fade-in { opacity: 0; transform: translateY(0); transition: opacity 0.8s ease-out; }
.fade-in.appear { opacity: 1; }

.fade-in-up { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.fade-in-up.appear { opacity: 1; transform: translateY(0); }

.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; }

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 150px;
  }
  
  .hero-description {
    margin: 0 auto 2.5rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-visual {
    height: 400px;
    margin-top: 2rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta {
    display: none; /* Hide on mobile initially (requires JS toggle) */
  }
  
  .menu-toggle {
    display: block;
  }
  
  /* Mobile Menu Styles when active */
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    padding: 2rem;
    border-bottom: 1px solid var(--glass-border);
    gap: 1.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card.span-2 {
    grid-column: span 1;
  }

  .mobile-border-none {
    border-left: none !important;
    padding-left: 0 !important;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 2rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .glass-banner h2 {
    font-size: 2rem;
  }
}
