@import url(./fonts/koulen_5.2.6.zip);

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  height: 100%;
  font-family: 'Arial', sans-serif;
}

.hero {
  background-image: url(../img/portada1.png);
  /* Cambia esto por el nombre de tu imagen */
  background-size: cover;
  background-position: center;
  height: 100vh;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  /* oscurece para que el texto resalte */
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 1rem;

}

.hero p {
  font-size: 2rem;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 2px 2px 4px #000;
  margin-bottom: 2rem;
}

.hero button {
  background-color: red;
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s ease;
}

.hero button:hover {
  background-color: #c40000;

}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #1e1e1e;
  color: #f0f0f0;
  line-height: 1.6;
  min-height: 100vh;

}


header {
  background-color: rgba(0, 0, 0, 0.85);
  padding: 1rem;
  text-align: center;
  border-bottom: 2px solid rgb(255, 0, 0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

header h1 {
  color: rgb(252, 252, 252);
  font-size: 2rem;
}

header p {
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

#logo {
  width: 40px;
  height: auto;
  margin-right: 10px;
  vertical-align: middle;
}

/* Menú de navegación */
.menu {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.menu a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: background 0.3s;
}

.menu a:hover,
.menu .active {
  background: rgb(255, 0, 0);
  color: white;
}

/* Imagen prin */
.landing-img {
  display: block;
  max-width: 100%;
  margin: 2rem auto;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

/* Main */
main {
  padding: 2rem;
  text-align: center;


}

/* Entradas de búsqueda */
input[type="text"] {
  padding: 0.7rem;
  width: 80%;
  max-width: 400px;
  border: none;
  border-radius: 8px;
  margin: 1rem 0;
  font-size: 1rem;
}

button {
  padding: 0.7rem 1.2rem;
  background-color: rgb(255, 0, 0);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background-color: darkred;
}

/* Resultados */
#resultado,
#generos {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
    justify-content: center;
}

.card {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 1rem;
  border-radius: 12px;
  max-width: 400px;
  margin: auto;
  color: white;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.85);
  color: #bbb;
  font-size: 0.9rem;
  bottom: 0;
  width: 100%;
}

footer {
  margin-top: 580px;
}

/* Responsive */
@media (max-width: 768px) {
  .menu {
    flex-direction: column;
    gap: 1rem;
  }

  input[type="text"] {
    width: 100%;
  }
}


.contenedor-artistas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.tarjeta-artista {
  background-color: #2c2c2c;
  border-radius: 10px;
  padding: 15px;
  width: 100%;
  max-width: 300px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease;
}

.tarjeta-artista:hover {
  transform: scale(1.03);
}

.tarjeta-artista img {
  width: 100%;
  border-radius: 10px;
}

.tarjeta-artista h3 {
  margin: 10px 0 5px;
  color: #fff;
}

.tarjeta-artista p {
  margin: 5px 0;
  color: #ccc;
}

.tarjeta-artista a {
  color: #ff0202;
  text-decoration: underline;
}


@media (max-width: 768px) {
  .contenedor-artistas {
    flex-direction: column;
    align-items: center;
  }
}


@media (min-width: 1024px) {
  .contenedor-artistas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* Contenedor para los géneros */
.contenedor-generos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
}

/* Estilo para cada tarjeta de género */
.genero-card {
  width: 100%;
  max-width: 300px;
  text-align: center;
  background-color: #727272;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}

.genero-card:hover {
  transform: scale(1.05);
}

.genero-card img {
  width: 100%;
  border-radius: 8px;
}

@media (min-width: 768px) {
  .contenedor-generos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center;
  }
}

