body {
  font-family: Arial, sans-serif;
  background-color: #0a1931; /* Azul oscuro */
  color: white;
  margin: 0;
  padding: 0;
}

header {
  background: rgba(9, 30, 66, 0.7); /* Azul oscuro con transparencia */
  backdrop-filter: blur(10px); /* Desenfoque */
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

header h1 {
  margin: 0;
}

nav ul {
  list-style: none;
  padding: 0;
}

nav ul li {
  display: inline;
  margin: 0 15px;
}

nav ul li a {
  color: white;
  text-decoration: none;
}

.container {
  display: flex;
  justify-content: space-around;
  padding: 30px;
}

.profile {
  display: flex;
  align-items: center;
  gap: 30px; /* Más espacio entre imagen y texto */
}

.profile img {
  width: 600px;
  height: 600px;
  border-radius: 30px; /* Esquinas redondeadas */
  object-fit: cover;
  border: 4px solid #ff9500; /* Borde naranja */
}

.info {
  flex: 1;
  text-align: justify; /* Texto justificado */
}

.proyectos-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 20px;
}

.proyecto {
  background-color: #1b3a61;
  padding: 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.proyecto:hover {
  background-color: #2e5984;
}

.descripcion {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  color: black;
  padding: 20px;
  border-radius: 10px;
  display: none;
}

.descripcion.oculto {
  display: none;
}

#cerrar {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
}

#proyectos {
  text-align: center;
  padding: 50px 0;
  background-color: #0a192f; /* Azul oscuro */
  color: white;
}

.proyectos-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.proyecto {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  width: 250px;
}

.proyecto img {
  width: 100%;
  border-radius: 10px;
  max-height: 200px;
  object-fit: cover;
}

.proyecto h3 {
  margin: 10px 0 5px;
}

.proyecto p {
  font-size: 14px;
  color: #ccc;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.modal-content img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 30px;
  color: white;
  cursor: pointer;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1; /* Para que el contenido quede encima */
  background: #0a1931; /* Azul oscuro de fondo */
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 1s ease-in-out;
}

.redes {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.redes a {
  text-decoration: none;
  color: white;
  background: #007bff;
  padding: 10px 15px;
  border-radius: 5px;
  transition: 0.3s;
}

.redes a:hover {
  background: #0056b3;
}

/* 🔹 Estilos para que se vea bien en celulares */
@media (max-width: 768px) {
  body {
    font-size: 14px;
    padding: 10px;
  }

  .container {
    width: 100%;
    padding: 10px;
    flex-direction: column;
    align-items: center;
  }

  .profile {
    flex-direction: column; /* Apila imagen y texto */
    text-align: center;
  }

  .profile img {
    max-width: 60%; /* Reduce el tamaño de la imagen */
    height: auto;
  }

  .info {
    text-align: center; /* Centrar texto en móviles */
  }

  .redes {
    flex-direction: column;
    align-items: center;
  }

  .redes a {
    width: 80%; /* Botones más grandes y fáciles de tocar */
    text-align: center;
  }
}
