/* =======================================================
   VARIABLES GLOBALES
   ======================================================= */
:root { --primary-color: #3B3FB6; --primary-light: #5B60E6; --secondary-color: #0A0F2C; --accent-color: #D32F2F; /* Rojo ligeramente más oscuro y legible */ --success-color: #25d366; --bg-light: #F4F7F9; --text-dark: #1E293B; --text-muted: #475569; /* Oscurecido (antes #64748B) para contrastar mejor con fondos blancos */ --font-heading: 'Montserrat', sans-serif; --font-body: 'Open Sans', sans-serif; }

/* =======================================================
   BASE
   ======================================================= */
html, body {
  font-family: var(--font-body);
  color: var(--text-muted);
  background: #ffffff;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

a { 
  color: var(--primary-color); 
  transition: all 0.3s ease; 
}
a:hover { 
  color: var(--primary-light); 
  text-decoration: none; 
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-dark);
}

.section-padding { padding: 100px 0; }
.section-bg { background-color: var(--bg-light); }

/* Degradado Global */
.text-gradient {
  background: linear-gradient(to right, #5B60E6, #00d2ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* =======================================================
   HEADER MODERNIZADO (Glassmorphism)
   ======================================================= */
#header {
  padding: 20px 0;
  position: fixed;
  left: 0; top: 0; right: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  background: transparent;
}

#header.header-scrolled {
  background: rgba(10, 15, 44, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
}

/* Logo y Texto */
#logo h1 { margin: 0; }
#logo h1 a { text-decoration: none; }
#logo img {
  max-height: 40px;
  margin-right: 12px;
  transition: all 0.3s ease;
}
.logo-text {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.5px;
  opacity: 0.9;
}

/* Nav Desktop */
.nav-menu, .nav-menu * { margin: 0; padding: 0; list-style: none; }
.nav-menu { display: flex; align-items: center; }
.nav-menu > li { margin-left: 30px; }
.nav-menu > li > a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.5px;
  padding: 5px 0; position: relative;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-menu > li > a::after {
  content: ''; position: absolute; width: 0; height: 2px;
  bottom: 0; left: 0; background-color: var(--primary-light); 
  transition: all 0.3s ease; border-radius: 2px;
}

.nav-menu > li:hover > a,
.nav-menu > li.menu-active > a { color: #fff; }

.nav-menu > li:hover > a::after, 
.nav-menu > .menu-active > a::after { width: 100%; }

/* Botón Nav Desktop */
.nav-menu li.menu-cta a {
  background-color: var(--primary-color);
  color: #fff !important;
  padding: 12px 28px !important;
  border-radius: 50px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
}
.nav-menu li.menu-cta a::after { display: none; }
.nav-menu li.menu-cta a:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(79, 70, 229, 0.15);
}

/* =======================================================
   ESTILOS DEL SUBMENÚ (ESCRITORIO) - CLEAN SAAS PREMIUM
   ======================================================= */
.nav-menu .has-dropdown {
  position: relative;
}

.nav-menu .has-dropdown > ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  list-style: none;
  padding: 8px;
  margin: 15px 0 0 0;
  border-radius: 12px;
  min-width: 220px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(0,0,0,0.06);
}

.nav-menu .has-dropdown > ul::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 15px;
  background: transparent;
}

.nav-menu .has-dropdown:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu .has-dropdown > ul li a {
  padding: 10px 15px;
  display: flex;
  align-items: center;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  text-transform: none;
  border-radius: 8px;
}

.nav-menu .has-dropdown > ul li a::after {
  display: none !important;
}

.nav-menu .has-dropdown > ul li a:hover {
  color: var(--primary-color);
  background: var(--bg-light);
  transform: translateX(4px);
}

/* =======================================================
   MENÚ MÓVIL (COMPLETO, CORREGIDO Y ACORDEÓN)
   ======================================================= */

/* 1. Botón Hamburguesa */
#mobile-nav-toggle {
  position: fixed; 
  right: 10px; 
  top: 8px; 
  z-index: 9999;
  border: 0; 
  background: none; 
  font-size: 28px; 
  color: white;
  display: none; 
  cursor: pointer; 
  outline: none;
  transition: color 0.3s;
}

/* 2. Ocultar menú de escritorio en móviles */
@media (max-width: 991px) {
  #nav-menu-container { display: none; }
  #mobile-nav-toggle { display: inline; }
  .logo-text { font-size: 18px; }
  #logo img { max-height: 35px; }
}

/* 3. Panel del Menú Móvil */
#mobile-nav {
  position: fixed; 
  top: 0; 
  padding-top: 80px; 
  bottom: 0; 
  z-index: 9998;
  background: var(--secondary-color);
  left: -280px;
  width: 280px;
  overflow-y: auto; 
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
}

/* 4. Estilos de los enlaces principales */
#mobile-nav ul { 
  padding: 0 20px; 
  margin: 0; 
  list-style: none; 
}
#mobile-nav ul li a {
  color: rgba(255,255,255,0.8); 
  font-size: 15px; 
  text-transform: uppercase;
  padding: 15px 10px; 
  display: block; 
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.05); 
  text-decoration: none;
  transition: color 0.3s;
}
#mobile-nav ul li:hover > a,
#mobile-nav ul li.menu-active a { 
  color: var(--primary-light); 
}

/* 5. Botón CTA (Auditoría) en móvil */
#mobile-nav ul li.menu-cta a {
  background: var(--primary-color);
  color: #fff !important;
  border: none; 
  border-radius: 8px;
  text-align: center; 
  margin-top: 20px;
}

/* 6. ESTILOS DEL ACORDEÓN ("Nuestros Productos") */
#mobile-nav .has-dropdown > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#mobile-nav .has-dropdown i.fa-angle-down {
  transition: transform 0.3s ease;
  font-size: 18px;
}
#mobile-nav .has-dropdown.active > a i.fa-angle-down {
  transform: rotate(180deg);
  color: var(--primary-light);
}

/* Caja de los productos */
#mobile-nav .mobile-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.15); 
  border-left: 2px solid var(--primary-light); 
  display: none; 
}
#mobile-nav .mobile-submenu li a {
  padding: 12px 15px 12px 25px; 
  font-size: 14px;
  color: #b0b8c1;
  text-transform: none; 
  border-bottom: none;
  display: flex;
  align-items: center;
}
#mobile-nav .mobile-submenu li a:hover {
  color: #ffffff;
  background: rgba(91, 96, 230, 0.1);
}

/* 7. Overlay oscuro */
#mobile-body-overly {
  width: 100%; height: 100%; z-index: 9997; top: 0; left: 0;
  position: fixed; background: rgba(0, 0, 0, 0.6); 
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: none;
}

/* 8. Animación entrada menú */
body.mobile-nav-active { overflow: hidden; }
body.mobile-nav-active #mobile-nav { left: 0; }
body.mobile-nav-active #mobile-nav-toggle { color: #fff; }

/* =======================================================
   HERO / INTRO SECTION
   ======================================================= */
#intro {
  width: 100%;
  height: 100vh;
  min-height: 600px;
  background: var(--secondary-color);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#particles-js {
  position: absolute;
  width: 100%; height: 100%;
  top: 0; left: 0;
  z-index: 1;
}

.intro-container {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  margin-top: 60px;
}

.pain-point-text {
  color: var(--primary-light);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 25px;
  display: inline-block;
  background: rgba(91, 96, 230, 0.15);
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid rgba(91, 96, 230, 0.3);
}

.intro-container h2 {
  color: #ffffff;
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 25px;
  letter-spacing: -1px;
}

.intro-container h2 span { 
  background: linear-gradient(120deg, #7F85F5, #3B3FB6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.intro-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

.btn-get-started {
  font-family: var(--font-heading);
  background: var(--primary-color);
  color: #fff !important;
  padding: 18px 45px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-block;
  text-decoration: none;
 box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-get-started:hover {
  transform: translateY(-5px);
  background: var(--primary-light);
 box-shadow: 0 20px 50px rgba(79, 70, 229, 0.15);
}

@media (max-width: 768px) {
  .intro-container h2 { font-size: 2.8rem; }
  .intro-description { font-size: 1rem; }
  .btn-get-started { padding: 15px 30px; font-size: 1rem; width: 100%; }
}

/* =======================================================
   TÍTULOS DE SECCIÓN
   ======================================================= */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h3 {
  font-size: 36px;
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* =======================================================
   BENEFICIOS / CARDS (Modern Tech Style)
   ======================================================= */
.service-box {
  background: #ffffff;
  padding: 50px 35px;
  border-radius: 20px;
box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  height: 100%;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--success-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 2;
}

.service-box:hover::before {
  transform: scaleX(1);
}

.service-box:hover {
  transform: translateY(-10px);
 box-shadow: 0 20px 50px rgba(79, 70, 229, 0.15);
  border-color: rgba(59, 63, 182, 0.1);
}

.service-icon {
  width: 75px; height: 75px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 30px auto;
  color: #fff;
  font-size: 30px;
box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.service-box:hover .service-icon {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 20px 50px rgba(79, 70, 229, 0.15);
}

.service-box h4 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--secondary-color);
  letter-spacing: -0.5px;
}

.service-pain {
color: var(--accent-color);
  font-weight: 800; /* Un poco más de grosor */
  font-size: 0.8em;
  background: rgba(240, 58, 71, 0.12); /* Fondo ligeramente más notorio */
  padding: 6px 12px;
  border-radius: 6px;
  margin-bottom: 20px;
  display: inline-block;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.service-box p {
  line-height: 1.7;
  margin-bottom: 30px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* =======================================================
   LISTA DE CHECKMARKS - CORREGIDA
   ======================================================= */
.service-check-list { 
  list-style: none; 
  padding: 0; 
  margin: auto 0 0 0;
  border-top: 1px solid #f0f0f0; 
  padding-top: 20px;
}

.service-check-list li { 
  display: flex; 
  align-items: flex-start;
  text-align: left;
  margin-bottom: 15px; 
  font-weight: 600; 
  color: var(--text-dark); 
  font-size: 0.95rem;
  line-height: 1.4;
}

.service-check-list i { 
  color: var(--success-color); 
  margin-right: 12px; 
  font-size: 1.2em; 
  margin-top: 2px;
  flex-shrink: 0;
}

/* =======================================================
   LOGROS / ACHIEVEMENTS SECTION (Reemplazo de Emojis)
   ======================================================= */
.achievement-card {
  background: #ffffff;
  padding: 35px 25px;
  border-radius: 16px;
box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  border: 1px solid rgba(0,0,0,0.04);
  height: 100%;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.achievement-card:hover {
  transform: translateY(-8px);
box-shadow: 0 20px 50px rgba(79, 70, 229, 0.15);
  border-color: rgba(59, 63, 182, 0.15);
}

.achievement-icon {
  width: 65px;
  height: 65px;
  background: rgba(91, 96, 230, 0.08);
  color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.achievement-card:hover .achievement-icon {
  background: var(--primary-light);
  color: #ffffff;
  transform: scale(1.1) rotate(5deg);
}

.achievement-card h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 12px;
}

.achievement-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* =======================================================
   PROCESO / CÓMO FUNCIONA
   ======================================================= */
.process-row {
  position: relative;
  z-index: 1;
}

.process-line {
  position: absolute;
  top: 45px;
  left: 15%;
  width: 70%;
  height: 3px;
  background: linear-gradient(90deg, rgba(59, 63, 182, 0.1) 0%, rgba(59, 63, 182, 0.5) 50%, rgba(59, 63, 182, 0.1) 100%);
  z-index: -1;
}

.step-card {
  padding: 0 20px;
  position: relative;
  transition: transform 0.3s ease;
}

.step-card:hover {
  transform: translateY(-5px);
}

.step-number {
  width: 90px; 
  height: 90px;
  background: #ffffff;
  color: var(--primary-color);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  font-family: var(--font-heading);
  font-weight: 900; 
  font-size: 32px;
  box-shadow: 0 15px 35px rgba(10, 15, 44, 0.08);
  position: relative;
  border: 4px solid var(--bg-light);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.step-card:hover .step-number {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: #fff;
  box-shadow: 0 15px 30px rgba(59, 63, 182, 0.3);
  transform: scale(1.1);
  border-color: #fff;
}

.step-card h4 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.step-card p {
  line-height: 1.6;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* =======================================================
   CTA BANNER (Auditoría)
   ======================================================= */
.audit-banner {
  background: linear-gradient(145deg, var(--secondary-color) 0%, #050818 100%);
  padding: 80px 40px;
  border-radius: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(10, 15, 44, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.5;
  animation: floatOrb 8s infinite alternate ease-in-out;
}

.orb-1 {
  top: -50px; left: -50px;
  width: 300px; height: 300px;
  background: var(--primary-light);
}

.orb-2 {
  bottom: -100px; right: -50px;
  width: 400px; height: 400px;
  background: rgba(37, 211, 102, 0.3);
  animation-delay: -4s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 30px) scale(1.1); }
}

.cta-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
}

.z-index-2 {
  z-index: 2;
}

.btn-whatsapp-cta {
  background: var(--success-color);
  color: white !important;
  padding: 18px 45px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  animation: pulse-green 2.5s infinite;
  position: relative;
  z-index: 2;
}

.btn-whatsapp-cta:hover {
  transform: translateY(-3px);
  background: #20c159;
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
  animation: none;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.footer-note {
  font-size: 0.9em; 
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

@media (max-width: 768px) {
  .audit-banner { padding: 50px 20px; }
  .audit-banner h4 { font-size: 2.2rem !important; }
  .btn-whatsapp-cta { width: 100%; justify-content: center; font-size: 1rem; padding: 15px 20px; }
  .trust-signals { display: flex; flex-direction: column; gap: 10px; align-items: center; }
}

/* =======================================================
   ELEMENTOS GLOBALES EXTRA
   ======================================================= */
.float-wa {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 65px; height: 65px;
  background: var(--success-color);
  color: #fff;
  border-radius: 50px;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px;
  z-index: 1000;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  
  /* Estado inicial: Oculto y desplazado hacia abajo */
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px) scale(0.9);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Clase que activaremos con JavaScript */
.float-wa.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.float-wa.visible:hover {
  transform: scale(1.1) rotate(-5deg);
  color: #fff;
}

/* =======================================================
   FOOTER
   ======================================================= */
#footer {
  background: #050818;
  color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

#footer .footer-top {
  padding: 80px 0 50px;
}

#footer h4 {
  font-family: var(--font-heading);
  letter-spacing: -0.5px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: var(--primary-light);
  text-decoration: none;
  transform: translateX(-5px);
  display: inline-block;
}

.footer-link-wa {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s ease;
  font-family: var(--font-heading);
}

.footer-link-wa:hover {
  color: var(--success-color);
  text-decoration: none;
}

.copyright-wrap {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 991px) {
  #footer .footer-contact-info p {
    justify-content: flex-start !important;
  }
  #footer .text-lg-right {
    text-align: left !important;
  }
}

/* =======================================================
   CORRECCIONES FOOTER MÓVIL
   ======================================================= */
@media (max-width: 768px) {
  #footer .footer-top {
    padding: 60px 25px 30px 25px !important;
  }

  #footer p {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.95rem;
    line-height: 1.6;
    padding-right: 0 !important;
    margin-bottom: 30px !important;
  }

  .footer-logo img {
    max-height: 30px !important; 
    margin-right: 10px !important;
  }
  .footer-logo span {
    font-size: 16px !important; 
    white-space: nowrap;
  }

  #footer h4 {
    font-size: 1.25rem !important;
    margin-top: 40px !important; 
    margin-bottom: 20px !important;
  }

  #footer .footer-contact-info p {
    justify-content: flex-start !important;
    font-size: 0.95rem;
  }
  .footer-link {
    word-break: break-all;
  }
}