/* Fuente neon */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Orbitron', sans-serif;
}

body {
  background-color: #0a0a0a;
  color: #00ffe5;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  min-height: 100vh;
}

/* Títulos */
h2 {
  color: #00ffe5;
  text-shadow: 0 0 5px #00ffe5, 0 0 10px #00ffe5;
  margin-bottom: 2rem;
  font-size: 2rem;
  text-align: center;
}

/* Formularios */
form {
  background-color: #111;
  border: 2px solid #00ffe5;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 0 20px #00ffe5;
  width: 100%;
  max-width: 400px;
  margin-bottom: 1.5rem;
}


input, select {
  width: 100%;
  padding: 0.8rem;
  margin: 0.5rem 0;
  border: 2px solid #00ffe5;
  border-radius: 10px;
  background-color: #000;
  color: #00ffe5;
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
}

input:focus, select:focus {
  box-shadow: 0 0 10px #00ffe5;
}

/* Botones */
button {
  width: 100%;
  padding: 0.8rem;
  background-color: #000;
  color: #00ffe5;
  border: 2px solid #00ffe5;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 1rem;
  transition: 0.3s;
  text-shadow: 0 0 5px #00ffe5;
}

button:hover {
  background-color: #00ffe5;
  color: #000;
  box-shadow: 0 0 20px #00ffe5;
}

/* Contenedor de personajes */
#personajesContainer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  width: 100%;
}

#personajesContainer div {
  background-color: #111;
  border: 2px solid #00ffe5;
  border-radius: 15px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 0 15px #00ffe5;
}

#personajesContainer img {
  width: 100px;
  height: auto;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 2px solid #00ffe5;
}

/* 🎯 RESPONSIVE para celular */
@media (max-width: 500px) {
  body {
    padding: 1rem;
  }

  form {
    padding: 1rem;
    border-radius: 10px;
  }

  h2 {
    font-size: 1.5rem;
  }

  input, button {
    font-size: 1rem;
  }

  #personajesContainer {
    grid-template-columns: 1fr;
  }
}
