/* ==========================================================================
   GRAXSOFT CORPORATE WEB DESIGN SYSTEM — HOLOGRAPHIC VOLUMETRIC CYBER-GRID
   Estilo: Propuesta D.5 (Obsidiana Holográfica, Foco Dual Lima-Cian, Malla Volumétrica)
   Normativa: IDS Coding Standard v5.1 | Estilo Académico-Profesional
   ========================================================================== */

:root {
  /* Paleta Vivid Trust (Navy, Cobalt, Azure, Cyan, White) */
  --bg-primary: #0A192F;       /* Trust Navy */
  --bg-secondary: #0B1E3B;     /* Trust Navy Elevado */
  --accent-primary: #0066FF;   /* Vivid Azure */
  --accent-secondary: #00F2FE; /* Electric Cyan */
  --accent-tertiary: #1A56DB;  /* Cobalt Blue */
  --text-primary: #FFFFFF;     /* Clean White */
  --text-muted: #94A3B8;       
  --border-fine: rgba(255, 255, 255, 0.06);
  --border-active-glow: linear-gradient(135deg, #0066FF, #00F2FE);

  /* Parámetros Estructurales */
  --border-width: 1px;
  --border-radius: 4px;
  
  /* Gradientes de Brillo Inmersivo (Dual Ambient Glow) */
  --glow-cyan: radial-gradient(circle at 80% 20%, rgba(0, 242, 254, 0.05), transparent 60%);
  --glow-lime: radial-gradient(circle at 20% 80%, rgba(0, 102, 255, 0.05), transparent 60%);
  
  /* Fuentes Tipográficas */
  --font-header: 'Satoshi', sans-serif;
  --font-sans: 'Inter', 'Satoshi', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Space Mono', monospace;
}

/* ==========================================================================
   RESET & CONFIGURACIÓN GLOBAL
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

/* ==========================================================================
   FONDO INMERSIVO VOLUMÉTRICO Y MULTI-MALLA (VOLUMETRIC CYBER-GRID)
   ========================================================================== */
.viewport-bg {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-primary);
  /* Doble capa de iluminación ambiental integrada */
  background-image: 
    var(--glow-cyan),
    var(--glow-lime);
}

/* Canvas de topología de red animada — Network Engine */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.app-container {
  position: relative;
  width: 100%;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.section-container {
  width: 100%;
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ==========================================================================
   HEADER / NAVEGACIÓN premium
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: #0A111F;
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent 0%, var(--accent-secondary) 50%, transparent 100%) 1;
  box-shadow: inset 0 -1px 15px rgba(0, 229, 255, 0.05);
  z-index: 100;
  transition: all 0.4s ease;
}

.header-inner-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  height: 100%;
  transition: opacity 0.3s ease;
}

.logo-wrap:hover {
  opacity: 0.85;
}

.logo-img {
  height: 100px;
  width: auto;
  margin-top: -22px;
  margin-bottom: -22px;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav a {
  position: relative;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -6px;
  left: 50%;
  background-color: var(--accent-secondary);
  box-shadow: 0 0 8px var(--accent-secondary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

.nav a:hover {
  color: var(--text-primary);
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.8);
}

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

.btn-contacto {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: transparent;
  border: 1px solid rgba(0, 229, 255, 0.5);
  color: var(--text-primary) !important;
  padding: 10px 24px;
  border-radius: var(--border-radius);
  font-weight: 600 !important;
  font-size: 13px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  animation: cyber-pulse 4s infinite ease-in-out;
}

@keyframes cyber-pulse {
  0%, 100% { box-shadow: 0 0 15px rgba(0, 229, 255, 0.1) inset; }
  50% { box-shadow: 0 0 25px rgba(0, 229, 255, 0.3) inset, 0 0 10px rgba(0, 229, 255, 0.1); }
}

.btn-contacto:hover {
  background-color: var(--accent-secondary);
  color: var(--bg-deep) !important;
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.6), 0 0 45px rgba(0, 229, 255, 0.2) inset;
  border-color: var(--accent-secondary);
  transform: translateY(-1px);
  animation: none;
}

.menu-toggle {
  display: none;
}

.mobile-only-contact {
  display: none;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  padding: 100px 0 110px 0;
  border-bottom: var(--border-width) solid rgba(255, 255, 255, 0.03);
}

.hero-content-width {
  max-width: 920px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(45, 140, 255, 0.08);
  border: var(--border-width) solid rgba(45, 140, 255, 0.3);
  padding: 6px 14px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #2D8CFF;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: #2D8CFF;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(45, 140, 255, 0.5);
  animation: blink-indicator 1.8s infinite ease-in-out;
}

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

.hero p {
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-muted);
}

.hero h1 {
  font-family: var(--font-header);
  font-size: 54px;
  font-weight: 800;
  color: transparent;
  background: linear-gradient(180deg, #FFFFFF 0%, #94A3B8 100%);
  background-clip: text;
  -webkit-background-clip: text;
  letter-spacing: -2.5px;
  line-height: 1.15;
  margin-bottom: 24px;
  text-transform: lowercase;
}

/* ==========================================================================
   BENTO GRID & SERVICES
   ========================================================================== */
.services-grid-section {
  padding: 100px 0 140px 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ==========================================================================
   BENTO CARD — Alta Visibilidad (Glassmorphism + Borde Cian + Sombra Profunda)
   ========================================================================== */
/* ==========================================================================
   HUD Sci-Fi Cards (Reemplaza a .bento-card)
   ========================================================================== */
.hud-card {
  position: relative;
  background-color: rgba(4, 10, 15, 0.85);
  background-image: 
    radial-gradient(circle at center top, rgba(0, 229, 255, 0.05) 0%, transparent 60%),
    radial-gradient(circle at center, transparent 40%, rgba(2, 6, 10, 0.8) 100%),
    radial-gradient(rgba(0, 229, 255, 0.12) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 12px 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 229, 255, 0.15);
  clip-path: polygon(25px 0, 100% 0, 100% calc(100% - 25px), calc(100% - 25px) 100%, 0 100%, 0 25px);
  min-height: 520px;
  display: flex;
  flex-direction: column;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: 35px 25px 25px 25px;
  z-index: 2;
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.1), inset -1px -1px 15px rgba(0, 229, 255, 0.05);
  /* Cuerpo 3D mediante Drop-Shadows secuenciales */
  filter: drop-shadow(2px 2px 0px rgba(0, 229, 255, 0.4)) 
          drop-shadow(4px 4px 0px rgba(0, 229, 255, 0.15)) 
          drop-shadow(0 15px 30px rgba(0, 0, 0, 0.9));
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
  transform-style: preserve-3d;
}

.hud-card:hover {
  border-color: rgba(0, 229, 255, 0.7);
  box-shadow: inset 1px 1px 5px rgba(255, 255, 255, 0.2), inset -1px -1px 30px rgba(0, 229, 255, 0.2);
  /* Extrusión ampliada y sombra proyectada */
  filter: drop-shadow(3px 4px 0px rgba(0, 229, 255, 0.7)) 
          drop-shadow(7px 8px 0px rgba(0, 229, 255, 0.3)) 
          drop-shadow(15px 25px 40px rgba(0, 0, 0, 1));
  /* Inclinación 3D realista */
  transform: perspective(1000px) translateY(-8px) rotateX(3deg) rotateY(-4deg) scale(1.02);
}

/* Esquinas y decoraciones */
.hud-card::before, .hud-card::after {
  content: ''; position: absolute; pointer-events: none; border: 1px solid rgba(0, 229, 255, 0.5); width: 25px; height: 25px; transition: all 0.3s;
}
.hud-card::before { top: 12px; left: 12px; border-bottom: none; border-right: none; }
.hud-card::after { bottom: 12px; right: 12px; border-top: none; border-left: none; }
.hud-card:hover::before, .hud-card:hover::after { width: 35px; height: 35px; border-color: rgba(0, 229, 255, 1); box-shadow: 0 0 15px rgba(0, 229, 255, 0.6); }

/* HUD Top Bar */
.hud-top-bar {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-sans); font-size: 10px; letter-spacing: 1px;
  color: rgba(0, 229, 255, 0.6); border-bottom: 1px solid rgba(0, 229, 255, 0.2);
  padding-bottom: 8px; margin-bottom: 25px; text-transform: uppercase;
}

/* Edge text */
.hud-edge-text {
  position: absolute; font-family: var(--font-sans); font-size: 10px;
  color: rgba(0, 229, 255, 0.3); text-transform: uppercase; letter-spacing: 2px;
  writing-mode: vertical-rl; transform: rotate(180deg);
}
.hud-edge-text.left { top: 80px; left: 8px; }
.hud-edge-text.right { bottom: 80px; right: 8px; transform: none; }

/* Header and Icon */
.hud-header h3 {
  font-size: 1.1rem; font-weight: 700; color: #fff; text-transform: uppercase;
  letter-spacing: 1.5px; text-align: center; margin-bottom: 5px;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}
.hud-subtitle {
  font-size: 0.75rem; color: rgba(0, 229, 255, 0.8); text-align: center;
  font-family: var(--font-sans); text-transform: uppercase; margin-bottom: 25px;
}

/* Icon Rings */
.hud-icon-container {
  position: relative; width: 100px; height: 100px; margin: 0 auto 25px auto;
  display: flex; justify-content: center; align-items: center;
}
.hud-icon-container i { font-size: 36px; color: rgba(0, 229, 255, 0.9); z-index: 2; text-shadow: 0 0 15px rgba(0, 229, 255, 0.8); }
.hud-ring { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%; border: 1px solid transparent; }
.hud-ring.outer { border-top-color: rgba(0, 229, 255, 0.6); border-bottom-color: rgba(0, 229, 255, 0.2); animation: hud-spin 8s linear infinite; }
.hud-ring.inner { width: 80%; height: 80%; top: 10%; left: 10%; border-left-color: rgba(0, 229, 255, 0.8); border-right-color: rgba(0, 229, 255, 0.3); animation: hud-spin-reverse 5s linear infinite; border-style: dashed; }
@keyframes hud-spin { 100% { transform: rotate(360deg); } }
@keyframes hud-spin-reverse { 100% { transform: rotate(-360deg); } }

/* Body Paragraph & List */
.hud-body p {
  font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); text-align: center; line-height: 1.6; margin-bottom: 15px; flex-grow: 0;
}

.hud-services-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hud-services-list li {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-sans);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.hud-services-list li::before {
  content: '>';
  color: rgba(0, 229, 255, 0.8);
  font-weight: bold;
}

/* Stats Grid */
.hud-stats-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: auto;
  border-top: 1px solid rgba(0, 229, 255, 0.2); border-bottom: 1px solid rgba(0, 229, 255, 0.2); padding: 15px 0;
}
.hud-stat { display: flex; flex-direction: column; align-items: center; text-align: center; border-right: 1px solid rgba(0, 229, 255, 0.1); }
.hud-stat:last-child { border-right: none; }
.hud-stat-label { font-family: var(--font-sans); font-size: 9px; color: rgba(0, 229, 255, 0.5); text-transform: uppercase; margin-bottom: 4px; }
.hud-stat-value { font-family: var(--font-sans); font-size: 11px; color: #fff; font-weight: bold; }

/* Bottom Bar Barcode */
.hud-bottom-bar { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 15px; }
.hud-barcode {
  width: 120px; height: 25px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.7), rgba(255,255,255,0.7) 2px, transparent 2px, transparent 4px, rgba(255,255,255,0.4) 4px, rgba(255,255,255,0.4) 5px, transparent 5px, transparent 8px, rgba(255,255,255,0.9) 8px, rgba(255,255,255,0.9) 11px);
}
.hud-status { font-family: var(--font-sans); font-size: 9px; color: rgba(0, 229, 255, 0.8); text-align: right; line-height: 1.3; }

.card-body {
  margin-top: 10px;
}

.card-body h3 {
  font-family: var(--font-header);
  font-size: 28px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.card-body p {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: var(--border-width) solid var(--border-fine);
  padding-top: 24px;
  margin-top: 24px;
}

.card-spec {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-primary);
  background-color: rgba(223, 255, 0, 0.03);
  border: 1px solid rgba(223, 255, 0, 0.12);
  padding: 4px 8px;
  border-radius: 2px;
  letter-spacing: 0.05em;
}

.card-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-secondary);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--accent-secondary);
  padding: 6px 14px;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.card-btn:hover {
  background-color: var(--accent-secondary);
  color: var(--bg-primary);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

/* ==========================================================================
   CONTACT & LOCATION GRID
   ========================================================================== */
.contact-grid {
  background-color: transparent;
  border-top: var(--border-width) solid rgba(0, 242, 254, 0.08);
  border-bottom: var(--border-width) solid rgba(0, 242, 254, 0.08);
  padding: 100px 0;
  position: relative;
}

.contact-grid::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.contact-grid-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  position: relative;
  z-index: 2;
}

.contact-info-block h2 {
  font-family: var(--font-header);
  font-size: 44px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.contact-info-block .subtitle {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 48px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 2px solid var(--accent-secondary);
  padding-left: 20px;
}

.detail-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.detail-link {
  font-family: var(--font-header);
  font-size: 22px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.detail-link:hover {
  color: var(--accent-secondary);
}

.social-links-glow {
  display: flex;
  gap: 16px;
}

.social-links-glow a {
  width: 44px;
  height: 44px;
  background-color: var(--bg-primary);
  border: var(--border-width) solid var(--border-fine);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links-glow a:hover {
  color: var(--accent-secondary);
  border-color: var(--accent-secondary);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.map-embed-wrapper {
  border: var(--border-width) solid rgba(0, 229, 255, 0.15);
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 480px;
}

.map-iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: invert(92%) hue-rotate(180deg) contrast(1.25);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  padding: 40px 0;
  border-top: var(--border-width) solid var(--border-fine);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.footer-right {
  display: flex;
  gap: 24px;
}

.footer-right a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-right a:hover {
  color: var(--accent-secondary);
}

/* FLOATING WHATSAPP BUTTON */
.whatsapp-float {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 60px;
  height: 60px;
  background-color: var(--bg-secondary);
  border: var(--border-width) solid var(--accent-secondary);
  color: var(--accent-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  text-decoration: none;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
  background-color: var(--accent-secondary);
  color: var(--bg-primary);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

/* ==========================================================================
   RESPONSIVE / CONSULTAS DE MEDIOS
   ========================================================================== */

/* ---- TABLET LANDSCAPE (≤1024px) ---- */
@media (max-width: 1024px) {
  .section-container {
    padding: 0 30px;
  }
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-card.card-large {
    grid-column: span 2;
  }
  .contact-grid-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hud-card {
    min-height: 480px;
  }
  .staff-card {
    width: calc(50% - 15px);
  }
}

/* ---- OPTIMIZACIÓN RESPONSIVE INTERMEDIA (769px a 1150px) ---- */
@media (max-width: 1150px) and (min-width: 769px) {
  .nav {
    gap: 16px;
  }
  .nav a {
    font-size: 10px;
    letter-spacing: 0.1em;
  }
  .btn-contacto {
    padding: 8px 16px;
    font-size: 11px !important;
  }
}

/* ---- TABLET PORTRAIT (≤768px) ---- */
@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
  .section-container {
    padding: 0 20px;
  }
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .bento-card.card-large {
    grid-column: span 1;
  }
  .card-split-container {
    flex-direction: column;
  }
  .card-image-panel {
    width: 100%;
    height: 200px;
  }
  .header-inner-wrap {
    height: 70px;
  }
  .logo-right-img {
    height: 70px;
  }
  .nav {
    display: none;
  }
  
  .btn-contacto {
    display: none !important;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 150;
    position: relative;
  }

  .menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--accent-secondary);
    transition: all 0.3s ease;
    box-shadow: 0 0 5px var(--accent-secondary);
  }

  /* Hamburger transform */
  #menu-toggle-cb:checked ~ .menu-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  #menu-toggle-cb:checked ~ .menu-toggle span:nth-child(2) {
    opacity: 0;
  }
  #menu-toggle-cb:checked ~ .menu-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Show Menu on checked */
  #menu-toggle-cb:checked ~ .nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: rgba(6, 17, 31, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    justify-content: center;
    align-items: center;
    gap: 36px;
    z-index: 140;
    border-top: 1px solid rgba(0, 229, 255, 0.1);
    animation: fadeMenuIn 0.3s ease-out forwards;
  }

  #menu-toggle-cb:checked ~ .nav a {
    font-size: 16px;
    letter-spacing: 0.2em;
    color: var(--text-primary);
  }

  .mobile-only-contact {
    display: block;
    margin-top: 20px;
    border: 1px solid var(--accent-secondary);
    padding: 10px 30px;
    border-radius: 4px;
    color: var(--text-primary) !important;
    font-family: var(--font-mono);
    font-size: 13px !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.1);
  }

  @keyframes fadeMenuIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .hero {
    padding: 120px 0 60px 0;
  }
  .hero h1 {
    font-size: 28px;
    letter-spacing: -1px;
  }
  .hero .typed-target {
    font-size: 14px;
  }
  .hud-card {
    min-height: 450px;
    padding: 25px 18px 18px 18px;
  }
  .hud-card {
    filter: drop-shadow(1px 1px 0px rgba(0, 229, 255, 0.3))
            drop-shadow(2px 2px 0px rgba(0, 229, 255, 0.1))
            drop-shadow(0 10px 20px rgba(0, 0, 0, 0.8));
  }
  .hud-card:hover {
    transform: perspective(1000px) translateY(-4px) scale(1.01);
  }
  .hud-top-bar {
    font-size: 8px;
  }
  .hud-edge-text {
    display: none;
  }
  .hud-header h3 {
    font-size: 1rem;
  }
  .hud-stats-grid {
    gap: 5px;
  }
  .hud-stat-label {
    font-size: 8px;
  }
  .hud-stat-value {
    font-size: 10px;
  }
  .staff-card {
    width: calc(50% - 15px);
  }
  #staff .section-header {
    margin-bottom: 30px;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
}

/* ---- MOBILE (≤640px) ---- */
@media (max-width: 640px) {
  .section-container {
    padding: 0 15px;
  }
  .section-padding {
    padding: 40px 0;
  }
  .hero {
    padding: 100px 0 40px 0;
  }
  .hero h1 {
    font-size: 22px;
  }
  .hero .typed-target {
    font-size: 13px;
  }
  .btn-contacto {
    padding: 8px 16px;
    font-size: 12px;
  }
  .hud-card {
    min-height: auto;
    padding: 20px 15px 15px 15px;
  }
  .hud-icon-container {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
  }
  .hud-icon-container i {
    font-size: 28px;
  }
  .hud-services-list li {
    font-size: 0.7rem;
  }
  .hud-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .staff-card {
    width: 100% !important;
    margin: 0;
  }
  .staff-grid {
    gap: 16px;
    padding: 0 4px;
  }
  .staff-photo {
    aspect-ratio: 3 / 2;
  }
  .staff-data h3 {
    font-size: 1rem;
  }
  .staff-skills li {
    font-size: 0.75rem;
  }
  .contact-details {
    gap: 15px;
  }
  .social-links-glow {
    justify-content: center;
  }
  .map-iframe {
    min-height: 250px;
  }
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 20px;
    bottom: 20px;
    right: 20px;
  }
}

/* ==========================================================================
   Staff Directory (Holographic Cyber-Cards)
   ========================================================================== */
#staff .section-header {
  margin-bottom: 50px;
}

.staff-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.staff-card {
  width: calc(33.333% - 20px);
  position: relative;
  background-color: rgba(4, 10, 15, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.2);
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
  display: flex;
  flex-direction: column;
  transition: all 0.5s ease;
  z-index: 2;
}

.staff-card:hover {
  border-color: rgba(0, 229, 255, 0.8);
  box-shadow: 0 15px 40px rgba(0, 229, 255, 0.1);
  transform: translateY(-5px);
}

.staff-photo {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 229, 255, 0.2);
}

.staff-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%) sepia(20%) hue-rotate(160deg) brightness(0.8) contrast(1.2);
  transition: all 0.5s ease;
}

.staff-card:hover .staff-photo img {
  filter: grayscale(0%) sepia(0%) brightness(1) contrast(1);
  transform: scale(1.05);
}

.staff-photo-overlay {
  position: absolute;
  bottom: 0; left: 0; width: 100%; height: 50%;
  background: linear-gradient(to top, rgba(4, 10, 15, 1), transparent);
  pointer-events: none;
}

.staff-data {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.staff-data h3 {
  font-family: var(--font-header);
  font-size: 1.2rem;
  color: #fff;
  margin: 0 0 5px 0;
}

.staff-role {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: rgba(0, 229, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  border-bottom: 1px dashed rgba(0, 229, 255, 0.3);
  padding-bottom: 10px;
}

.staff-skills {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
  flex-grow: 1;
}

.staff-skills li {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.staff-skills li i {
  color: rgba(0, 229, 255, 0.8);
  width: 15px;
  text-align: center;
}

.staff-lang {
  margin-top: auto;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: rgba(0, 229, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 8px;
}
