@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500&display=swap');

/* FONDO ANIMADO TIPO ESPACIO */

.background-img {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.background-img img {
  width: 110%; /* ligeramente más grande para movimiento */
  height: 110%;
  object-fit: cover;
  animation: float 80s linear infinite;
}

@keyframes float {
  0% { transform: translate(0,0); }
  50% { transform: translate(-20px, -10px); }
  100% { transform: translate(0,0); }
}




body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(circle at 50% 50%, #0a0a0a 0%, #010101 100%);
  color: #fff;
  overflow-x: hidden;
  position: relative;
}


@keyframes starMove {
  from { transform: translate(0,0); }
  to { transform: translate(-1000px, -1000px); }
}

/* Contenedor central tipo holográfico */
.container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(10,10,30,0.85);
  border-radius: 15px;
  box-shadow: 0 0 40px #0ff;
  backdrop-filter: blur(5px);
  position: relative;
  z-index: 1;
}

/* Cabecera */
.header img {
  display: block;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1rem auto;
  border: 2px solid #0ff;
}

h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
  color: #0ff;
}

h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.2rem;
  margin-top: 1rem;
  border-bottom: 2px solid #0ff;
  padding-bottom: 0.3rem;
}

h3 {
  margin: 0.3rem 0 0.1rem 0;
}

p {
  line-height: 1.4;
  font-size: 0.95rem;
  margin: 0.2rem 0;
}

.skills span {
  display: inline-block;
  background: #0ff;
  color: #000;
  font-weight: bold;
  padding: 0.3rem 0.7rem;
  margin: 0.2rem;
  border-radius: 5px;
  font-size: 0.85rem;
}

.toggle-btn {
  background: transparent;
  border: none;
  color: #0ff;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

#cursos-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

#cursos-content.expanded {
  max-height: 2000px;
}

a {
  color: #0ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Animaciones al scroll */
.animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media screen and (max-width: 600px){
  .container {
    margin: 1rem;
    padding: 1rem;
  }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1rem; }
}

/* Habilidades nuevo botones con descripcion debajo */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 columnas en escritorio */
  gap: 1rem;
  margin-top: 1rem;
}

/* Habilidades */
.skill-item button {
  background: #0ff;
  color: #000;
  font-weight: bold;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s;
  width: 100%;
}

.skill-item button:hover {
  background: #08cfcf;
  transform: scale(1.05);
}

.skill-desc {
  display: none;
  margin-top: 0.5rem;
  padding: 0.5rem;
  font-size: 0.9rem;
  background: rgba(0, 255, 255, 0.1);
  border-left: 3px solid #0ff;
  border-radius: 6px;
  text-align: left;
}

/* Responsive */
@media (max-width: 1200px) {
  .skills-grid {
    grid-template-columns: repeat(4, 1fr); /* 4 columnas en tablets grandes */
  }
}

@media (max-width: 992px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columnas en tablets */
  }
}

@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en móviles grandes */
  }
}

@media (max-width: 480px) {
  .skills-grid {
    grid-template-columns: 1fr; /* 1 columna en móviles pequeños */
  }
}


/* final habilidades*/

#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -3; /* detrás del fondo y container */
  background-color: #000010; /* fondo oscuro profundo */
}
