:root {
  font-size: 16px; /* 1rem = 16px */
  --verde-neon: #00ff00;
  --verde-neon-claro: #00ffcc;
  --negro: #000;
}

/* General */
* {
  box-sizing: border-box;
}
body {
  background-color: var(--negro);
  color: var(--verde-neon);
  font-family: monospace;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  text-align: center;
}

/* Navbar */
.nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  background-color: var(--negro);
  flex-wrap: wrap;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.9rem;
  border: 0.1rem solid var(--verde-neon);
  padding: 0.4rem 0.8rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background-color: var(--verde-neon);
  color: var(--negro);
  transform: scale(1.05);
  box-shadow: 0 0 0.5rem var(--verde-neon);
}

/* Título */
.titulo h1 {
  font-size: 4.5rem;
  margin: 1.5rem 0;
}

/* Foto perfil */
.foto-contenedor {
  position: relative;
  display: inline-block;
  margin: 2rem auto;
}

.foto-perfil {
  width: 16rem;
  height: auto;
  border-radius: 50%;
  border: 0.2rem solid var(--verde-neon);
  box-shadow: 0 0 1rem var(--verde-neon);
}

.grupo-texto {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* Niveles */
.niveles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem auto;
  max-width: 80rem;
}

.nivel {
  background-color: var(--negro);
  border: 0.2rem solid var(--verde-neon);
  padding: 1rem;
  width: 15rem;
  border-radius: 1rem;
  box-shadow: 0 0 1rem var(--verde-neon);
  transition: all 0.3s ease;
}

.nivel:hover {
  border-color: var(--verde-neon-claro);
  box-shadow: 0 0 1.5rem var(--verde-neon-claro);
  transform: scale(1.05);
}

.nivel h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

/* Estado cursada */
.matrix-info {
  margin: 2rem auto;
  border: 0.2rem solid var(--verde-neon);
  padding: 1.5rem;
  border-radius: 1rem;
  max-width: 25rem;
  box-shadow: 0 0 1rem var(--verde-neon);
  transition: all 0.3s ease;
}

.matrix-info:hover {
  border-color: var(--verde-neon-claro);
  box-shadow: 0 0 1.5rem var(--verde-neon-claro);
  transform: scale(1.03);
}

.neon-text {
  color: var(--verde-neon);
  font-weight: bold;
}

/* Barra de progreso */
.progress-container {
  margin-top: 0.5rem;
  background-color: #111;
  border-radius: 1rem;
  padding: 0.2rem;
}

.progress-bar {
  height: 1.5rem;
  width: 98%;
  background: linear-gradient(to right, var(--verde-neon), #00ff66);
  border-radius: 1rem;
}

.progress-label {
  font-size: 0.9rem;
  color: var(--verde-neon);
  display: block;
  margin-top: 0.3rem;
}

/* Botones integrantes */
.botones-integrantes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem auto;
}

.boton-integrante {
  border: 0.1rem solid var(--verde-neon);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
}

.boton-integrante:hover {
  background-color: var(--verde-neon);
  color: var(--negro);
  transform: scale(1.05);
  box-shadow: 0 0 0.5rem var(--verde-neon);
}

/* Clases */
.clases {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem auto;
}

.clase-btn {
  border: 0.1rem solid var(--verde-neon);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
}

.clase-btn:hover {
  background-color: var(--verde-neon);
  color: var(--negro);
  transform: scale(1.05);
  box-shadow: 0 0 0.5rem var(--verde-neon);
}

/* Footer */
footer {
  margin-top: 3rem;
  font-size: 0.8rem;
  padding: 1rem;
}

.logo {
  width: 4rem;
  height: auto;
}

.datos-academicos-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.datos-academicos-texto {
  max-width: 40rem;
}

/* Media queries para pantallas chicas */
@media (max-width: 40rem) {
  .niveles, .botones-integrantes, .clases, .datos-academicos-container {
    flex-direction: column;
    align-items: center;
  }

  .nivel, .boton-integrante, .clase-btn {
    width: 80%;
  }

  .titulo h1 {
    font-size: 2rem;
  }

  .foto-perfil {
    width: 8rem;
  }
}
