@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@400;600&display=swap");

html {
    scroll-behavior: smooth;
    /* Ajusta el salto para que el navbar de 80px no tape los títulos */
    scroll-padding-top: 100px; 
}

:root {
  --purple-glow: #9d4edd;
  --cyan-glow: #00f0ff;
  --dark-turq: #041f26;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Rajdhani", sans-serif;
  color: white;
  overflow-x: hidden;
}

#vanta-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
}

/* --- NAVBAR IMPECABLE --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  background: rgba(4, 31, 38, 0.4);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-icon {
  font-size: 1.5rem;
  color: var(--cyan-glow);
}

.logo-text {
  font-family: "Orbitron", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: #fff;
  text-shadow: 0 0 10px var(--cyan-glow);
}

.system-status {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.8rem;
  color: #0f0;
  border: 1px solid #0f0;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 10px;
  box-shadow: 0 0 5px #0f0 inset;
}

/* Botones del Menú */
.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #a0aec0;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-btn i {
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.nav-btn:hover {
  color: #fff;
  border: 1px solid var(--purple-glow);
  background: rgba(157, 78, 221, 0.1);
  box-shadow: 0 0 15px rgba(157, 78, 221, 0.4) inset;
}

.nav-btn:hover i {
  color: var(--cyan-glow);
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: var(--cyan-glow);
  cursor: pointer;
}

/* --- SECCIÓN HERO --- */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column; /* Alinea los elementos en columna */
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 80px;
}

/* CONTENEDOR DEL HEXÁGONO Y LOGO */
.tech-hex-container {
  position: relative;
  width: 450px;
  height: 450px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px auto;
}

.hex-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: visible;
}

.hex-outer {
  fill: rgba(4, 31, 38, 0.4);
  stroke: var(--cyan-glow);
  stroke-width: 2.5;
}

.hex-inner {
  fill: none;
  stroke: var(--purple-glow);
  stroke-width: 1.5;
  stroke-dasharray: 10 5;
}

.circuit-node {
  fill: var(--cyan-glow);
  filter: drop-shadow(0 0 5px var(--cyan-glow));
}

.circuit-line {
  fill: none;
  stroke: var(--cyan-glow);
  stroke-width: 2;
  stroke-linecap: square;
}

/* EL SÍMBOLO 1D9 (SOLUCIÓN DE CALIDAD) */
.main-logo-symbol {
  position: relative;
  z-index: 10;
  width: 220px;
  height: auto; /* Mantenemos la proporción original sin forzar */
  /* Simplificamos el drop-shadow a uno solo y sutil para no ensuciar los bordes finos */
  filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.4));
  /* image-rendering le dice al navegador que priorice la calidad al escalar */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transform: translateZ(
    0
  ); /* Fuerza aceleración por hardware para mejor renderizado */
  will-change: transform, opacity; /* Prepara el navegador para la animación */
}

/* Reducimos un poco el zoom del hover para evitar que se vea borroso al agrandarse */
.tech-hex-container:hover .main-logo-symbol {
  transform: scale(1.05) translateZ(0);
}

/* TEXTOS Y BOTONES */
.title {
  font-family: "Orbitron", sans-serif;
  font-size: 2.5rem; /* Título más pequeño para dar protagonismo al logo */
  font-weight: 900;
  letter-spacing: 5px;
  margin: 10px 0;
  background: linear-gradient(90deg, var(--cyan-glow), var(--purple-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 1.5rem; /* Se mantiene igual */
  color: #cbd5e1;
  margin-bottom: 40px;
  letter-spacing: 1px;
}

.cta-button {
  background: transparent;
  color: var(--cyan-glow);
  border: 2px solid var(--cyan-glow);
  padding: 15px 40px;
  font-family: "Orbitron", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cta-button:hover {
  background: var(--cyan-glow);
  color: #000;
  box-shadow: 0 0 20px var(--cyan-glow);
}

/* --- RESPONSIVE (Móviles) --- */
@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 80px;
    right: -100%;
    flex-direction: column;
    background: rgba(4, 31, 38, 0.95);
    width: 100%;
    text-align: center;
    padding: 20px 0;
    backdrop-filter: blur(15px);
    transition: right 0.4s ease;
  }

  .nav-links.active {
    right: 0;
  }

  .tech-hex-container {
    width: 300px;
    height: 300px;
  }

  .main-logo-symbol {
    width: 150px;
  }

  .title {
    font-size: 1.8rem;
  }
  .system-status {
    display: none;
  }
}
