/* RESET */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: #0b1120;
  overflow-x: hidden;
}

/* HEADER */
header {
  width: 100%;
  background: linear-gradient(90deg, #07152d, #00c4ff);
  padding: 20px 40px;
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* LOGO */
.logo a {
  text-decoration: none;
  color: white;
  font-size: 42px;
  font-weight: bold;
}

.logo a span {
  color: #00c4ff;
}

/* MENU */
nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  transition: 0.3s;
}

nav ul li a:hover {
  color: #ffdd00;
}

/* HERO */

.hero {

  position:absolute;
  overflow: hidden;

  height: 90vh;

  background:
  linear-gradient(rgba(5,10,25,0.75),
  rgba(5,10,25,0.9)),
  url("../img/rrpr.png");

  background-size: cover;
  background-position: center;

  display: flex;
  justify-content: center;
  align-items: center;

  text-align: center;
  color: white;
}

.hero-content {
  position:relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

.hero-content h2 {
  font-size: 70px;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 24px;
  line-height: 1.6;
  color: #d1d5db;
}

/* Network Canvas */

#network {

  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;

}

/* ABOUT */
.about-section {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 70px;

  padding: 120px 10%;

  min-height: 100vh;

  color: white;
}

/* TEXTO */
.about-section .text {
  flex: 1;
}

.about-section h2 {
  font-size: 55px;
  margin-bottom: 25px;
  color: #00c4ff;
}

.about-section p {
  font-size: 22px;
  line-height: 1.9;
  color: #d1d5db;
}

/* IMAGEN */
.about-section .image {
  flex: 1;
  text-align: center;
}

.about-section .image img {
  width: 100%;
  max-width: 500px;

  border-radius: 20px;

  box-shadow:
  0 0 20px rgba(0,196,255,0.3),
  0 0 50px rgba(0,196,255,0.2);

  transition: transform 0.4s ease;
}

.about-section .image img:hover {
  transform: scale(1.03);
}

/* ANIMACIONES */
.hidden-left {
  opacity: 0;
  transform: translateX(-120px);
  transition: all 1s ease;
}

.hidden-right {
  opacity: 0;
  transform: translateX(120px);
  transition: all 1s ease;
}

.show {
  opacity: 1;
  transform: translateX(0);
}

/* CHATBOT */
#chatbot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  text-align: center;
  z-index: 999;
}

.avatar {
  width: 120px;
  cursor: pointer;

  filter: drop-shadow(0 0 15px #00bfff);

  transition: transform 0.1s ease;
}

.avatar:hover {
  transform: scale(1.05);
}

/* VENTANA CHAT */
#chat-window {
  background: rgba(10,10,10,0.7);

  color: white;

  border: 1px solid #00c4ff;

  border-radius: 12px;

  width: 260px;

  padding: 12px;

  margin-top: 10px;

  backdrop-filter: blur(6px);
}

.hidden {
  display: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {

  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  nav ul {
    flex-direction: column;
    gap: 15px;
  }

  .logo a {
    font-size: 32px;
  }

  .hero-content h2 {
    font-size: 42px;
  }

  .hero-content p {
    font-size: 18px;
  }

  .about-section {
    flex-direction: column;
    text-align: center;
    padding: 80px 8%;
  }

  .about-section h2 {
    font-size: 40px;
  }

  .about-section p {
    font-size: 18px;
  }
}