@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600&display=swap');

body {
  font-family: 'Quicksand', sans-serif;
  text-align: center;
  margin: 0;
  background-color: #dcdcdc;
  transition: background-color 1s ease;
}

header {
  padding-top: 1em;
}

img.logo {
  width: 380px;
  height: auto;
  margin-bottom: 0.5em;
}

.titulo-principal {
  font-size: 1.5em;
  font-weight: 600;
  margin: 0.2em;
}

.hidden { display: none; }

#bienvenida, #contenido, #pantallaInicioJuego, #cargando {
  padding: 2em 1em;
}

.anio {
  font-size: 2.3em;
  font-weight: 700;
  margin-top: 0.2em;
}

.inicio-label {
  font-size: 1.4em;
  font-weight: 600;
}

.inicio-anio {
  font-size: 2.5em;
  font-weight: 700;
}

.cuarteto-numero {
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 1em;
}

#pantallaInicioJuego h3 {
  font-size: 1.6em;
  font-weight: 600;
  margin-bottom: 1em;
}

#detalles {
  min-height: 4em;
  transition: opacity 0.3s ease;
}

.invisible {
  opacity: 0;
  visibility: hidden;
}

button {
  padding: 0.8em 1.5em;
  margin: 0.5em;
  font-size: 1em;
  border: none;
  border-radius: 10px;
  background-color: #222;
  color: white;
  font-weight: 600;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button:hover {
  background-color: #444;
}

#audio-container {
  margin: 1em auto;
  width: 95%;
  max-width: 500px;
  transition: all 0.5s ease;
}

/* === AÑADIDO PARA LOS NUEVOS BOTONES DE AUDIO === */
.custom-audio-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1em;
  margin-top: 0.5em;
}

.audio-btn {
  background-color: #222;
  border: none;
  border-radius: 10px;
  padding: 0.6em;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.2);
}

.audio-btn:hover {
  background-color: #444;
}

.audio-btn svg {
  width: 28px;
  height: 28px;
  stroke: #fff;
}
/* === FIN AÑADIDO === */

#botones {
  display: none;
  justify-content: center;
  gap: 1em;
  flex-wrap: wrap;
}

#botonSolucion { margin-top: 1.2em; }
#reinicio { margin-top: 1.5em; }

#boton-reglas-global {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  background-color: #555;
  color: #fff;
  padding: 1em;
  font-weight: 600;
  cursor: pointer;
  z-index: 1000;
  border-top: 2px solid #222;
  transition: background-color 0.3s;
}

#boton-reglas-global:hover {
  background-color: #333;
}
