/* ==========================================================================
   KMQ Soluciones - Modern & Premium Landing Page Stylesheet
   ========================================================================== */

/* 1. IMPORTS & GOOGLE FONTS
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;700;800&display=swap');

/* 2. DESIGN SYSTEM & CUSTOM PROPERTIES (CSS VARIABLES)
   ¿Por qué?: El uso de variables CSS centraliza la paleta de colores y el sistema de espaciado, 
   facilitando modificaciones globales y asegurando la coherencia visual en todo el documento.
   ========================================================================== */:root, [data-theme="dark"] {
  /* Colors */
  --bg-deep: #030712;          /* Slate 950 - Fondo ultraclaro oscuro */
  --bg-card: rgba(10, 20, 40, 0.6); /* Azulado oscuro semitransparente para glassmorphism */
  --border-glass: rgba(255, 255, 255, 0.08);
  --header-bg: rgba(3, 7, 18, 0.8);
  --input-bg: rgba(3, 7, 18, 0.6);
  --card-feature-bg: rgba(10, 20, 40, 0.6);
  --shadow-header: rgba(0, 0, 0, 0.5);
  
  --primary-blue: #0066ff;     /* Azul KMQ brillante */
  --primary-blue-glow: rgba(0, 102, 255, 0.4);
  --accent-green: #39ff14;     /* Verde neón / eléctrico de KMQ */
  --accent-green-glow: rgba(57, 255, 20, 0.3);
  
  /* Brand-specific accents */
  --color-rejas: #ff3b30;       /* Rojo Rejas y Protecciones */
  --color-creapagina: #ec4899;  /* Rosado/Fucsia CreaPágina */
  --color-creaplan: #10b981;    /* Verde CreaPlan */
  --color-nodo: #f59e0b;        /* Naranja Nodo Industrial */

  --text-primary: #f8fafc;     /* Slate 50 */
  --text-secondary: #94a3b8;   /* Slate 400 */
  --text-muted: #64748b;       /* Slate 500 */

  /* Fonts */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

[data-theme="light"] {
  --bg-deep: #f8fafc;          /* Slate 50 */
  --bg-card: rgba(255, 255, 255, 0.75);
  --border-glass: rgba(15, 23, 42, 0.08);
  --header-bg: rgba(248, 250, 252, 0.8);
  --input-bg: rgba(255, 255, 255, 0.9);
  --card-feature-bg: rgba(255, 255, 255, 0.85);
  --shadow-header: rgba(15, 23, 42, 0.06);
  
  --text-primary: #0f172a;     /* Slate 900 */
  --text-secondary: #475569;   /* Slate 600 */
  --text-muted: #64748b;       /* Slate 500 */
  
  --primary-blue-glow: rgba(0, 102, 255, 0.25);
  --accent-green-glow: rgba(57, 255, 20, 0.25);
}

/* 3. RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utility Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-blue);
}

/* 4. LAYOUT & TYPOGRAPHY UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, #fff 40%, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-green));
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.glow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-family: var(--font-title);
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.glow-btn.primary {
  background: linear-gradient(135deg, var(--primary-blue), #0044cc);
  border: none;
  box-shadow: 0 4px 20px var(--primary-blue-glow);
}

.glow-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 102, 255, 0.6);
  background: linear-gradient(135deg, #0077ff, var(--primary-blue));
}

.glow-btn:not(.primary):hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* 5. HEADER (NAVBAR)
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: var(--transition-smooth);
}

.header.scrolled {
  padding: 0.75rem 0;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 10px 30px var(--shadow-header);
}

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

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 65px; /* Aumentado de 48px a 65px para que se lean con claridad los detalles del logo cuadrado */
  width: auto;
  object-fit: contain;
  transition: var(--transition-smooth);
}

/* Ajuste sutil del tamaño del logo cuando el menú se contrae al hacer scroll */
.header.scrolled .logo-img {
  height: 52px;
}

/* Para dispositivos móviles el script de JS cambiará la ruta a logo vertical y esta clase ajustará tamaño */
.logo-img.mobile-logo {
  height: 75px; /* Aumentado de 55px a 75px para legibilidad en móviles */
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-green));
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1100;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background-color: var(--text-primary);
  transition: var(--transition-fast);
}

/* 6. HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-image: url('imagen hero horizontal.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 767px) {
  .hero {
    background-image: url('imagen hero vertical.png');
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(3, 7, 18, 0.4) 0%, rgba(3, 7, 18, 0.85) 85%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  padding: 0 1.5rem;
  margin-top: 3rem;
}

.hero-tagline {
  font-family: var(--font-title);
  font-size: 1.125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-green);
  margin-bottom: 1rem;
  text-shadow: 0 0 10px var(--accent-green-glow);
}

.hero-title {
  font-family: var(--font-title);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-title span.blue {
  color: var(--primary-blue);
  text-shadow: 0 0 20px var(--primary-blue-glow);
}

.hero-title span.green {
  color: var(--accent-green);
  text-shadow: 0 0 20px var(--accent-green-glow);
}

.hero-description {
  font-size: 1.2rem;
  color: #f1f5f9;
  margin-bottom: 2.5rem;
  font-weight: 400;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* 6b. HERO VIDEO SECTION
   ========================================================================== */
.hero-video-section {
  padding: 0;
  background: #000;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000;
  overflow: hidden;
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 767px) {
  .hero-video-section {
    padding: 4rem 0;
    background: var(--bg-deep);
  }
  .video-frame {
    aspect-ratio: 9 / 16;
    max-width: 340px;
    margin: 0 auto;
    border-radius: 20px;
    border: 1px solid var(--border-glass);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  }
}

/* 7b. AMBASSADORS & COLLABORATORS SECTION
   ¿Por qué?: El diseño del grid asimétrico y efectos hover añaden tridimensionalidad. 
   La tipografía en degradado y etiquetas en pastilla siguen la línea visual de marca premium.
   ========================================================================== */
/* 7c. LEADERSHIP SECTION (Svonko Anic Olguín)
   ¿Por qué?: Estructura un grid asimétrico alternado para dar dinamismo a la lectura.
   Incluye detalles del perfil ingenieril con iconos para transmitir confianza y solidez profesional.
   ========================================================================== */
.leadership {
  padding: 10rem 0;
  background: var(--bg-deep);
  position: relative;
}

.leadership-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.leadership-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.leadership-subtitle {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-green);
  margin-bottom: 0.75rem;
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.2);
}

.leadership-role {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.leadership-image-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
}

.leadership-image-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 60%, rgba(3, 7, 18, 0.6));
  z-index: 2;
  pointer-events: none;
}

.leadership-image-wrapper:hover {
  transform: translateY(-5px);
  border-color: rgba(57, 255, 20, 0.3);
  box-shadow: 0 25px 60px rgba(57, 255, 20, 0.15);
}

.leadership-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: var(--transition-smooth);
}

.leadership-image-wrapper:hover .leadership-img {
  transform: scale(1.03);
}

.leadership-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.l-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.l-feature i {
  color: var(--accent-green);
  font-size: 1.15rem;
  width: 24px;
}

@media (max-width: 1024px) {
  .leadership-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

@media (max-width: 768px) {
  .leadership {
    padding: 6rem 0;
  }
  .leadership-image-wrapper {
    max-width: 400px;
    margin: 0 auto;
    border-radius: 20px;
  }
  .leadership-grid {
    display: flex;
    flex-direction: column-reverse;
  }
}

.ambassadors {
  padding: 10rem 0;
  background: linear-gradient(180deg, var(--bg-deep) 0%, #050b18 50%, var(--bg-deep) 100%);
  position: relative;
}

.ambassadors-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.ambassadors-image-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
}

.ambassadors-image-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 60%, rgba(3, 7, 18, 0.6));
  z-index: 2;
  pointer-events: none;
}

.ambassadors-image-wrapper:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 102, 255, 0.3);
  box-shadow: 0 25px 60px rgba(0, 102, 255, 0.2);
}

.ambassadors-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: var(--transition-smooth);
}

.ambassadors-image-wrapper:hover .ambassadors-img {
  transform: scale(1.03);
}

.ambassadors-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ambassadors-subtitle {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary-blue);
  margin-bottom: 0.75rem;
  text-shadow: 0 0 10px rgba(0, 102, 255, 0.2);
}

.ambassadors-title {
  font-family: var(--font-title);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 50%, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ambassadors-text {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.ambassadors-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.ambassadors-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(0, 102, 255, 0.05);
  border: 1px solid rgba(0, 102, 255, 0.15);
  border-radius: 9999px;
  color: var(--text-primary);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition-fast);
}

.ambassadors-tag i {
  color: var(--accent-green);
}

.ambassadors-tag:hover {
  background: rgba(0, 102, 255, 0.1);
  border-color: var(--primary-blue);
  transform: translateY(-2px);
}

@media (max-width: 1024px) {
  .ambassadors-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

@media (max-width: 768px) {
  .ambassadors {
    padding: 6rem 0;
  }
  .ambassadors-title {
    font-size: 2.2rem;
  }
  .ambassadors-image-wrapper {
    max-width: 500px;
    margin: 0 auto;
    border-radius: 20px;
  }
}

/* 7. ABOUT SECTION (INTEGRATION)
   ========================================================================== */
.about {
  padding: 10rem 0;
  position: relative;
  background: linear-gradient(180deg, var(--bg-deep) 0%, #050b18 50%, var(--bg-deep) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h3 {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.about-highlight {
  border-left: 3px solid var(--primary-blue);
  padding-left: 1.5rem;
  margin: 2rem 0;
}

.about-highlight p {
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-primary);
}

.about-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.about-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(8px);
  transition: var(--transition-smooth);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.about-feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 102, 255, 0.3);
  box-shadow: 0 15px 40px rgba(0, 102, 255, 0.15);
}

.about-feature-card h4 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.about-feature-card h4 i {
  color: var(--accent-green);
}

.about-feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* 8. BUSINESS UNITS SECTION
   ========================================================================== */
.units {
  padding: 10rem 0;
}

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

.unit-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 3rem 2rem;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition-smooth);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Efecto Hover Glow Inteligente de cada Unidad */
.unit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.06), transparent 40%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

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

/* Colores específicos de bordes/glow en hover para cada unidad */
.unit-card.rejas:hover {
  border-color: rgba(255, 59, 48, 0.4);
  box-shadow: 0 15px 40px rgba(255, 59, 48, 0.15);
}
.unit-card.creapagina:hover {
  border-color: rgba(236, 72, 153, 0.4);
  box-shadow: 0 15px 40px rgba(236, 72, 153, 0.15);
}
.unit-card.creaplan:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 15px 40px rgba(16, 185, 129, 0.15);
}
.unit-card.nodo:hover {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 15px 40px rgba(245, 158, 11, 0.15);
}

.unit-card:hover {
  transform: translateY(-8px);
}

.unit-icon-wrapper {
  width: 75px;
  height: 75px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition-smooth);
  overflow: hidden;
  padding: 8px;
}

.unit-card.rejas .unit-icon-wrapper { border-color: rgba(255, 59, 48, 0.15); background: rgba(255, 59, 48, 0.02); }
.unit-card.creapagina .unit-icon-wrapper { border-color: rgba(236, 72, 153, 0.15); background: rgba(236, 72, 153, 0.02); }
.unit-card.creaplan .unit-icon-wrapper { border-color: rgba(16, 185, 129, 0.15); background: rgba(16, 185, 129, 0.02); }
.unit-card.nodo .unit-icon-wrapper { border-color: rgba(245, 158, 11, 0.15); background: rgba(245, 158, 11, 0.02); }

.unit-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  transition: var(--transition-smooth);
}

.unit-card.rejas:hover .unit-icon-wrapper { border-color: var(--color-rejas); box-shadow: 0 0 20px rgba(255, 59, 48, 0.3); background: rgba(255, 59, 48, 0.08); }
.unit-card.creapagina:hover .unit-icon-wrapper { border-color: var(--color-creapagina); box-shadow: 0 0 20px rgba(236, 72, 153, 0.3); background: rgba(236, 72, 153, 0.08); }
.unit-card.creaplan:hover .unit-icon-wrapper { border-color: var(--color-creaplan); box-shadow: 0 0 20px rgba(16, 185, 129, 0.3); background: rgba(16, 185, 129, 0.08); }
.unit-card.nodo:hover .unit-icon-wrapper { border-color: var(--color-nodo); box-shadow: 0 0 20px rgba(245, 158, 11, 0.3); background: rgba(245, 158, 11, 0.08); }

.unit-card.rejas:hover .unit-logo-img { transform: scale(1.08); filter: drop-shadow(0 0 8px rgba(255, 59, 48, 0.6)); }
.unit-card.creapagina:hover .unit-logo-img { transform: scale(1.08); filter: drop-shadow(0 0 8px rgba(236, 72, 153, 0.6)); }
.unit-card.creaplan:hover .unit-logo-img { transform: scale(1.08); filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.6)); }
.unit-card.nodo:hover .unit-logo-img { transform: scale(1.08); filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6)); }

.unit-title {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.unit-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.unit-link {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  color: var(--text-primary);
}

.unit-link i {
  font-size: 0.8rem;
  transition: var(--transition-fast);
}

.unit-card:hover .unit-link i {
  transform: translateX(5px);
}

.unit-card.rejas .unit-link:hover { color: var(--color-rejas); }
.unit-card.creapagina .unit-link:hover { color: var(--color-creapagina); }
.unit-card.creaplan .unit-link:hover { color: var(--color-creaplan); }
.unit-card.nodo .unit-link:hover { color: var(--color-nodo); }

/* 9. VALUES / WHY US SECTION
   ========================================================================== */
.why-us {
  padding: 10rem 0;
  background: linear-gradient(180deg, var(--bg-deep) 0%, #040914 100%);
  position: relative;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}

.why-content h3 {
  font-family: var(--font-title);
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.why-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.values-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.value-item {
  display: flex;
  gap: 1rem;
}

.value-icon {
  font-size: 1.5rem;
  color: var(--accent-green);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.value-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.value-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.why-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: var(--transition-smooth);
}

.stat-card.clickable {
  cursor: pointer;
  display: block;
}

.stat-card.clickable:hover {
  transform: translateY(-5px);
  border-color: var(--primary-blue);
  box-shadow: 0 15px 35px rgba(0, 102, 255, 0.15);
}

.stat-number {
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-blue);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-number.phone-number {
  font-size: 1.6rem; /* Tamaño reducido de 3rem para evitar desbordes y que el número quepa completo */
  line-height: 1.2;
  margin-top: 0.4rem;
  margin-bottom: 0.8rem;
  white-space: nowrap; /* Evita que el número salte de línea en pantallas medianas */
}

.stat-label {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

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

/* 10. CONTACT SECTION
   ========================================================================== */
.contact {
  padding: 10rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
}

.contact-info h3 {
  font-family: var(--font-title);
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.contact-info p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: rgba(0, 102, 255, 0.1);
  border: 1px solid rgba(0, 102, 255, 0.2);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.contact-item-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-item-value {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-item-value a:hover {
  color: var(--primary-blue);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 3rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: var(--input-bg);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 10px rgba(0, 102, 255, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  background-size: 1.25rem;
  padding-right: 3rem;
}

/* 11. FOOTER
   ========================================================================== */
.footer {
  background: #02040a;
  border-top: 1px solid var(--border-glass);
  padding: 5rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 1rem;
  max-width: 300px;
}

.footer-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-link:hover {
  color: var(--primary-blue);
  transform: translateX(3px);
}

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

/* 12. ANIMATION CLASSES & EFFECT UTILITIES
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* 13. RESPONSIVE DESIGN (MEDIA QUERIES)
   ¿Por qué?: Estructuramos con Mobile-First y breakpoints estratégicos 
   para asegurar la legibilidad del contenido en cualquier dispositivo móvil o tablet.
   ========================================================================== */
@media (max-width: 1024px) {
  .about-grid, .why-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .why-stats {
    order: -1;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  .section-title {
    font-size: 2.2rem;
  }

  .header {
    padding: 1rem 0;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: rgba(3, 7, 18, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 3rem;
    padding: 2rem;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    transition: var(--transition-smooth);
    z-index: 1050;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-toggle {
    display: block;
  }
  
  .nav-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 1rem;
    padding: 0 2rem;
  }

  .values-list {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .why-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-form {
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* 14. FLOATING WHATSAPP BUTTON & PULSE ANIMATION
   ¿Por qué?: El botón flotante de WhatsApp utiliza position: fixed con z-index alto 
   para estar siempre accesible. El efecto de pulso utiliza una animación CSS optimizada 
   para llamar la atención de manera sutil sin saturar la CPU.
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 32px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25d366;
  opacity: 0.5;
  z-index: -1;
  animation: pulseWhatsApp 2s infinite;
}

.whatsapp-float:hover {
  background-color: #20ba5a;
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
  color: #fff;
}

@keyframes pulseWhatsApp {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* 15. THEME TOGGLE BUTTON STYLES
   ¿Por qué?: El botón alternador de tema utiliza variables CSS y transiciones fluidas. 
   Su diseño circular y translúcido se alinea con la estética de cristal templado.
   ========================================================================== */
.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1.15rem;
  transition: var(--transition-fast);
}

.theme-toggle-btn:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  background: rgba(0, 102, 255, 0.1);
  transform: scale(1.05);
}

.theme-toggle-btn i {
  transition: var(--transition-fast);
}

@media (max-width: 768px) {
  .theme-toggle-btn {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
    margin: 0 auto;
  }
}

