/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #0a0f1c;
  color: #f0f0f0;
  line-height: 1.6;
  padding: 2rem;
}

/* Hero */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}
.hero-content .logo-img img {
  width: 80px;
  display: none;
}

/* Nav */
.nav {
  background-color: #10172a;
  position: relative;
}

nav button img {
  border-radius: 8px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}
.menu-toggle img {
  width: 36px;
  height: 36px;
}
.nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 1rem;
  padding: 1rem;
}
.nav a {
  color: #f0f0f0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}
.nav a:hover {
  color: #1e90ff;
}

/* Contenedor principal */
.detalle-proyecto {
  max-width: 960px;
  margin: 4rem auto;
  background-color: #111;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

/* Título principal */
.titulo {
  text-align: center;
  color: #1e90ff;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

/* Imagen destacada del proyecto */
.imagen-proyecto {
  display: block;
  margin: 0 auto 2rem auto;
  max-width: 360px;
  width: 90%;
  border-radius: 10px;
  box-shadow: 0 0 10px #000;
}

/* Descripción del proyecto */
.descripcion {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 2rem;
}

/* Sección de tecnologías */
.tecnologias {
  text-align: center;
  margin-bottom: 2rem;
}
.tecnologias h2 {
  color: #1e90ff;
  margin-bottom: 1rem;
}
.iconos {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.iconos div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.iconos img {
  width: 40px;
  height: 40px;
}
.iconos span {
  font-size: 0.9rem;
}

/* Sección de retos y aprendizajes */
.retos {
  text-align: center;
  margin-bottom: 2rem;
}
.retos h2 {
  color: #1e90ff;
  margin-bottom: 1rem;
}
.retos ul {
  list-style: none;
  padding-left: 0;
}
.retos ul li {
  margin: 0.5rem 0;
  font-size: 1rem;
  text-align: center;
}

/* Sección de enlaces a GitHub y GitHub Pages */
.enlaces {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.enlaces a {
  text-decoration: none;
  background-color: #1e90ff;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}
.enlaces a:hover {
  background-color: #0077cc;
}

/* Botón de retorno */
.volver {
  text-align: center;
  margin-top: 2rem;
}
.volver a {
  text-decoration: none;
  color: #1e90ff;
  font-weight: bold;
  transition: color 0.3s ease;
}
.volver a:hover {
  color: #0077cc;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #0d1224;
  color: #c0c0c0;
  font-size: 0.9rem;
  margin-top: 3rem;
}
.footer-links {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}
.footer-links a {
  color: #1e90ff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-links img.icono-red {
  width: 20px;
  height: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav ul {
    display: none;
    flex-direction: column;
    background-color: #10172a;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    z-index: 999;
  }
  .nav ul.show {
    display: flex;
  }
  .nav ul li {
    padding: 0.5rem 0;
    text-align: center;
  }
  .titulo {
    font-size: 1.6rem;
  }
  .descripcion {
    font-size: 1rem;
  }
  .retos ul li {
    font-size: 0.95rem;
  }
  .enlaces a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  .iconos img {
    width: 30px;
    height: 30px;
  }
}
  /* Estilos para que el logo en pantallas mayores a 768px se vea */
  @media (min-width: 769px) {
    .hero-content .logo-img img {
      display: block;
    }
  }