@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Orbitron:wght@400;600;800;900&display=swap');

/* --- Sistema de Diseño --- */
:root {
  --bg-space: #001a33;
  --bg-space-dark: #000d1a;
  --blue-primary: #0080ff;
  --cyan-neon: #00d9ff;
  --cyber-lime: #59d600;
  
  --text-white: #ffffff;
  --text-light: #f0f4f8;
  --text-gray: #8ea7c2;
  
  --glass-bg: rgba(0, 26, 51, 0.65);
  --glass-border: rgba(0, 128, 255, 0.15);
  --glass-border-hover: rgba(0, 217, 255, 0.4);
  
  --font-title: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --glow-shadow: 0 0 15px rgba(0, 217, 255, 0.2);
}

/* --- Reseteo y Base --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-space);
  font-family: var(--font-body);
  color: var(--text-light);
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  line-height: 1.6;
}

/* --- Efecto Matrix Grid de Fondo --- */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 1px 1px, rgba(0, 128, 255, 0.08) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 1;
}

/* Canvas del Fondo Neural */
#neural-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: auto;
}

/* Contenedor Principal (sobre el Canvas) */
main, header, footer {
  position: relative;
  z-index: 2;
}

/* --- Tipografía --- */
h1, h2, h3, h4, .brand-text {
  font-family: var(--font-title);
  letter-spacing: 1px;
}

h1 {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.2;
}

h2 {
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 3rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--text-white) 30%, var(--cyan-neon) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-green {
  background: linear-gradient(135deg, var(--cyan-neon) 0%, var(--cyber-lime) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

p {
  color: var(--text-gray);
  font-size: 1.05rem;
}

/* --- Estructura Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 8rem 0;
}

/* --- Botones Futuristas --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  padding: 1rem 2rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--cyan-neon);
  color: var(--bg-space-dark);
  border: 1px solid var(--cyan-neon);
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.4);
}

.btn-primary:hover {
  background: transparent;
  color: var(--cyan-neon);
  box-shadow: 0 0 25px rgba(0, 217, 255, 0.7);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-white);
  border: 1px solid var(--blue-primary);
}

.btn-secondary:hover {
  background: rgba(0, 128, 255, 0.1);
  border-color: var(--cyan-neon);
  box-shadow: 0 0 15px rgba(0, 128, 255, 0.3);
  transform: translateY(-2px);
}

/* --- Componente Header & Nav --- */
.glass-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 26, 51, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.glass-header.scrolled {
  background: rgba(0, 13, 26, 0.9);
  padding: 0.5rem 0;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-white);
}

.brand-logo {
  height: 40px;
  filter: drop-shadow(0 0 8px var(--cyan-neon));
}

.brand-text {
  font-size: 1.4rem;
  font-weight: 800;
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-gray);
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition-smooth);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--cyan-neon);
  transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
  color: var(--cyan-neon);
  text-shadow: 0 0 8px rgba(0, 217, 255, 0.6);
}

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

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

.nav-toggle svg {
  fill: none;
  stroke: var(--text-white);
  stroke-width: 2;
  width: 28px;
  height: 28px;
}

/* --- Hero Section --- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
}

.hero-content p {
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
}

/* --- Terminal de IA (AI Console) --- */
.terminal-window {
  background: var(--bg-space-dark);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 13, 26, 0.8), 0 0 20px rgba(0, 128, 255, 0.1);
  font-family: 'Courier New', Courier, monospace;
}

.terminal-header {
  background: rgba(0, 26, 51, 0.8);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--glass-border);
}

.terminal-dots {
  display: flex;
  gap: 0.5rem;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background-color: #ff5f56; }
.dot-yellow { background-color: #ffbd2e; }
.dot-green { background-color: #27c93f; }

.terminal-title {
  color: var(--text-gray);
  font-size: 0.75rem;
  letter-spacing: 1px;
}

.terminal-body {
  padding: 1.5rem;
  height: 280px;
  overflow-y: auto;
  color: var(--text-light);
  font-size: 0.85rem;
  line-height: 1.5;
}

.terminal-line {
  margin-bottom: 0.5rem;
}

.terminal-prompt {
  color: var(--cyan-neon);
}

.terminal-status {
  color: var(--cyber-lime);
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--cyan-neon);
  animation: blink 0.8s infinite;
  vertical-align: middle;
  margin-left: 4px;
}

@keyframes blink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* --- Sección Estadísticas (Stats) --- */
.stats-section {
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(0, 13, 26, 0.5);
  padding: 5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 1.5rem;
}

.stat-number {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--cyan-neon);
  text-shadow: 0 0 15px rgba(0, 217, 255, 0.4);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-gray);
}

/* --- Sección Servicios (Services Grid) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 3rem 2rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(0, 217, 255, 0.08), transparent 40%);
  pointer-events: none;
  z-index: 1;
}

.glass-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 217, 255, 0.05), 0 0 15px rgba(0, 128, 255, 0.1);
}

.card-icon {
  margin-bottom: 2rem;
  display: inline-flex;
  padding: 1rem;
  border-radius: 6px;
  background: rgba(0, 128, 255, 0.1);
  border: 1px solid rgba(0, 128, 255, 0.2);
}

.card-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--cyan-neon);
  stroke-width: 1.5;
  fill: none;
}

.glass-card h3 {
  font-size: 1.4rem;
  color: var(--text-white);
  margin-bottom: 1rem;
}

.glass-card p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cyan-neon);
  text-decoration: none;
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-smooth);
}

.card-link svg {
  width: 16px;
  height: 16px;
  stroke: var(--cyan-neon);
  stroke-width: 2;
  fill: none;
  transition: var(--transition-smooth);
}

.glass-card:hover .card-link svg {
  transform: translateX(5px);
}

/* --- Sección de Contacto --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
}

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

.contact-item {
  display: flex;
  gap: 1.2rem;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 128, 255, 0.1);
  border: 1px solid rgba(0, 128, 255, 0.2);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--cyan-neon);
  stroke-width: 2;
  fill: none;
}

.contact-details h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--text-gray);
  margin-bottom: 0.25rem;
}

.contact-details p, .contact-details a {
  color: var(--text-white);
  font-size: 1.1rem;
  text-decoration: none;
}

/* Formulario Moderno */
.contact-form {
  background: rgba(0, 13, 26, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-title);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-gray);
}

.form-input, .form-textarea {
  background: rgba(0, 26, 51, 0.6);
  border: 1px solid var(--glass-border);
  color: var(--text-white);
  padding: 1rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--cyan-neon);
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.15);
}

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

/* --- Widget Flotante WhatsApp --- */
.whatsapp-widget {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  cursor: pointer;
}

.whatsapp-label {
  background: rgba(0, 13, 26, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  color: var(--text-white);
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition-smooth);
  pointer-events: none;
  white-space: nowrap;
}

.whatsapp-widget:hover .whatsapp-label {
  opacity: 1;
  transform: translateX(0);
}

.whatsapp-node {
  width: 60px;
  height: 60px;
  background: rgba(0, 13, 26, 0.85);
  border: 1px solid rgba(89, 214, 0, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(89, 214, 0, 0.2);
  transition: var(--transition-smooth);
  position: relative;
}

.whatsapp-node::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid var(--cyber-lime);
  animation: pulse-ring 1.8s infinite;
  pointer-events: none;
}

.whatsapp-node svg {
  width: 28px;
  height: 28px;
  fill: var(--cyber-lime);
}

.whatsapp-widget:hover .whatsapp-node {
  background: var(--cyber-lime);
  border-color: var(--cyber-lime);
  box-shadow: 0 0 25px rgba(89, 214, 0, 0.6);
  transform: scale(1.05);
}

.whatsapp-widget:hover .whatsapp-node svg {
  fill: var(--bg-space-dark);
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.9; }
  100% { transform: scale(1.45); opacity: 0; }
}

/* --- Footer --- */
.cyber-footer {
  border-top: 1px solid var(--glass-border);
  background: var(--bg-space-dark);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-white);
}

.footer-logo img {
  height: 32px;
  filter: drop-shadow(0 0 8px var(--cyan-neon));
}

.footer-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.footer-menu a {
  text-decoration: none;
  color: var(--text-gray);
  font-family: var(--font-title);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition-smooth);
}

.footer-menu a:hover {
  color: var(--cyan-neon);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(0, 128, 255, 0.05);
  padding-top: 2rem;
  font-size: 0.85rem;
  color: rgba(142, 167, 194, 0.5);
}

/* --- Media Queries (Responsividad) --- */
@media (max-width: 992px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.8rem; }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(0, 13, 26, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 3rem 0;
    gap: 2rem;
    transition: var(--transition-smooth);
    border-top: 1px solid var(--glass-border);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-menu {
    flex-direction: column;
    gap: 1rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* --- Dropdown Menu (Submenú) --- */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(0, 13, 26, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  min-width: 280px;
  padding: 0.75rem 0;
  list-style: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 217, 255, 0.15);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease;
  display: block; /* enable transitions */
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Fallback for browsers that don't transition display */
.dropdown-menu {
  visibility: hidden;
}
.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
  visibility: visible;
}

.dropdown-item {
  display: block;
  padding: 0.7rem 1.5rem;
  color: var(--text-gray);
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.dropdown-item:hover {
  color: var(--cyan-neon);
  background: rgba(0, 128, 255, 0.1);
  text-shadow: 0 0 8px rgba(0, 217, 255, 0.4);
}

/* --- Secciones Claras (Contraste Elegante) --- */
.light-section {
  background-color: #ffffff;
  background-image: 
    radial-gradient(circle at 1px 1px, rgba(0, 128, 255, 0.05) 1px, transparent 0);
  background-size: 32px 32px;
  color: var(--bg-space-dark);
  border-top: 1px solid rgba(0, 128, 255, 0.1);
  border-bottom: 1px solid rgba(0, 128, 255, 0.1);
  position: relative;
  z-index: 2;
}

.light-section h2 {
  color: var(--bg-space-dark);
  text-shadow: none;
}

.light-section p {
  color: #4c607a;
}

.light-section .stat-label {
  color: #4c607a;
}

.light-section .stat-number {
  color: var(--blue-primary);
  text-shadow: 0 0 10px rgba(0, 128, 255, 0.2);
}

.light-section .glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 128, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 128, 255, 0.04);
}

.light-section .glass-card h3 {
  color: var(--bg-space-dark);
}

.light-section .glass-card p {
  color: #4c607a;
}

.light-section .glass-card:hover {
  border-color: var(--blue-primary);
  box-shadow: 0 15px 40px rgba(0, 128, 255, 0.08);
}

.light-section .card-icon {
  background: rgba(0, 128, 255, 0.05);
  border-color: rgba(0, 128, 255, 0.1);
}

/* Subpágina de Servicios - Tarjetas e Ilustraciones */
.service-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--glass-border);
}

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

.service-hero-illustration img {
  width: 100%;
  max-width: 480px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(0, 217, 255, 0.1);
}

.grid-service-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 3rem;
  padding: 6rem 0;
}

.service-detail-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 2.5rem;
  transition: var(--transition-smooth);
}

.service-detail-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 217, 255, 0.05);
}

.service-detail-card h3 {
  color: var(--cyan-neon);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.technical-desc {
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-gray);
  border-left: 2px solid var(--blue-primary);
  padding-left: 0.75rem;
  margin-bottom: 1.5rem;
}

.human-desc {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.benefits-list li {
  font-size: 0.85rem;
  color: var(--text-gray);
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.benefits-list li svg {
  stroke: var(--cyan-neon);
  stroke-width: 3;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 3px;
}

/* Responsividad para submenú móvil */
@media (max-width: 768px) {
  .dropdown-menu {
    display: none;
    visibility: visible; /* reset dynamic visibility */
    opacity: 1;
    pointer-events: auto;
    position: static;
    transform: none;
    box-shadow: none;
    background: rgba(0, 26, 51, 0.4);
    width: 100%;
    border: none;
    border-left: 2px solid var(--blue-primary);
    border-radius: 0;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
  }
  
  .dropdown.active .dropdown-menu {
    display: block;
  }
  
  .service-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .service-hero-illustration img {
    margin: 0 auto;
  }
}

/* --- Ajustes de Alineación de Logo y Nombre (Sin Espacios a la Izquierda) --- */
.brand, .footer-logo {
  gap: 0 !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.nav-container {
  padding-left: 0 !important;
}

/* --- Sobrescribir Tarjetas de Servicios para que conserven el fondo oscuro en secciones claras --- */
.light-section .service-detail-card.glass-card {
  background: var(--bg-space-dark) !important;
  border: 1px solid var(--glass-border) !important;
  color: var(--text-light) !important;
  box-shadow: 0 15px 40px rgba(0, 13, 26, 0.8), 0 0 20px rgba(0, 128, 255, 0.05) !important;
}

.light-section .service-detail-card.glass-card h3 {
  color: var(--cyan-neon) !important;
}

.light-section .service-detail-card.glass-card p,
.light-section .service-detail-card.glass-card .technical-desc,
.light-section .service-detail-card.glass-card .human-desc,
.light-section .service-detail-card.glass-card .benefits-list li {
  color: var(--text-gray) !important;
}

.light-section .service-detail-card.glass-card:hover {
  border-color: var(--glass-border-hover) !important;
  box-shadow: 0 15px 40px rgba(0, 13, 26, 0.9), 0 0 25px rgba(0, 217, 255, 0.15) !important;
  transform: translateY(-5px);
}

/* --- Footer Dropdown Horizontal --- */
.footer-dropdown {
  position: relative;
}

.footer-dropdown-menu {
  display: none;
  position: absolute;
  bottom: 100%;
  right: 0;
  transform: translateY(-10px);
  background: rgba(0, 13, 26, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 0.75rem 1.2rem;
  flex-direction: row;
  gap: 1.5rem;
  white-space: nowrap;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 217, 255, 0.15);
  z-index: 1002;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease;
}

/* Enable display flex for hover */
.footer-dropdown:hover .footer-dropdown-menu,
.footer-dropdown.active .footer-dropdown-menu {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.footer-dropdown-menu a {
  font-family: var(--font-title);
  font-size: 0.7rem !important;
  color: var(--text-gray) !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: var(--transition-smooth);
  padding: 0.25rem 0;
}

.footer-dropdown-menu a:hover {
  color: var(--cyan-neon) !important;
  text-shadow: 0 0 8px rgba(0, 217, 255, 0.4);
}

@media (max-width: 768px) {
  .footer-dropdown-menu {
    right: 50%;
    transform: translateX(50%) translateY(-10px);
    flex-wrap: wrap;
    justify-content: center;
    min-width: 290px;
    padding: 1rem;
    gap: 1rem;
  }
  
  .footer-dropdown:hover .footer-dropdown-menu,
  .footer-dropdown.active .footer-dropdown-menu {
    transform: translateX(50%) translateY(0);
  }
}

