/* ---------------- Reset y base ---------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

/* Fondo negro */
body {
  background: #000;
  color: #fff;
  height: 100vh;
  width: 100vw;
  overflow-x: hidden;
  font-family: system-ui, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------------- Cubos de fondo ---------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 56px);
  grid-auto-rows: 56px;
  gap: 6px;
  width: 100vw;
  height: 100vh;
  align-content: start;
  justify-content: start;
  padding: 6px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.cube {
  width: 56px;
  height: 56px;
  background: linear-gradient(145deg, #0d0d0d, #141414);
  border: 2px solid rgba(255,255,255,0.06);
  border-radius: 3px;
  box-shadow:
    inset -6px -6px 10px rgba(0,0,0,0.8),
    inset 6px 6px 10px rgba(255,255,255,0.02),
    0 2px 6px rgba(0,0,0,0.8);
}

/* ---------------- Contenedor central ---------------- */
.intro {
  position: relative;
  top: 50px;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.profile-frame {
  width: 150px;
  height: 150px;
  margin: 0 auto 20px;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 15px #fff, 0 0 30px #fff, 0 0 50px #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-pic {
  width: 130px;
  height: 130px;
  background: #000;
  border-radius: 50%;
}

.text-frame {
  display: inline-block;
  padding: 20px 30px;
  border: 2px solid #fff;
  border-radius: 12px;
  box-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #fff;
  font-size: 1rem;
  line-height: 1.5;
  background: rgba(0,0,0,0.5);
}

/* ---------------- Botones inferiores ---------------- */
.nav-buttons {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  z-index: 10;
}

.btn-neon {
  padding: 12px 18px;
  background: #000;
  color: #fff;
  font-size: 1.5rem;
  text-decoration: none;
  border: 2px solid #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #fff;
  transition: all 0.3s ease;
}

.btn-neon:hover {
  box-shadow: 0 0 20px #fff, 0 0 40px #fff, 0 0 60px #fff, 0 0 80px #fff;
}

/* ---------------- Proyectos ---------------- */
.projects-container {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 50px auto 120px;
  padding: 20px;
  text-align: center;
  color: #fff;
}

.project {
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.project.show {
  opacity: 1;
  transform: translateY(0);
}

.project-title {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #00d9ff;
  text-shadow: 0 0 5px #00d9ff, 0 0 10px #00d9ff;
  text-align: center;
}

/* Cuadro de imagen */
.project-image-frame {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 15px;
  border: 3px solid #00d9ff;
  border-radius: 12px;
  box-shadow: 0 0 10px #00d9ff, 0 0 20px #00d9ff;
}

.project-image-frame img {
  width: 100%;
  border-radius: 10px;
}

/* Cuadro de descripción */
.project-desc-frame {
  max-width: 600px;
  margin: 0 auto 40px;
  background: rgba(0,0,0,0.6);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #00d9ff;
  box-shadow: 0 0 10px #00d9ff, 0 0 20px #00d9ff;
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.5;
}
