/* Tipografía base */
body {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  background: #f5eee6;
  color: #5c3e36;
  padding-bottom: 80px;
  margin: 0;
}

/* Títulos */
h1, h2 {
  text-align: center;
  font-weight: 300;
  margin-top: 1rem;
}

/* Botonera */
.botonera {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.botonera button {
  background: #765348;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  min-width: 160px;
}

.botonera button:hover {
  background: #5c3e36;
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

#cargando {
  text-align: center;
  margin: 2rem auto;
  font-size: 1.1rem;
  font-weight: bold;
  color: #5c3e36;
}

/* Cajas de audiciones */

.audicion-caja button {
  background: #765348;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease;
  min-width: 160px;
}

/* Contenedor de las cajas en columna */
.audiciones-columna {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 700px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Caja de audición */
.audicion-caja {
  background-color: #e8ddd3;
  border-radius: 10px;
  padding: 1.5rem 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* ← sombra más visible */
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 80px;
}

/* Botón de audición */
.boton-audicion,
.boton-solucion {
  background: #765348;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.3s ease;
  min-width: 160px;
  margin-bottom: 0.8rem;
}

.boton-solucion {
  background: #a37a68;
}

.boton-solucion:hover {
  background: #5c3e36;
}

.boton-audicion.activo {
  background-color: #2d8f5d !important; /* verde */
}

.boton-audicion.pausado {
  background-color: #e0913f !important; /* naranja */
}

.boton-audicion:hover {
  filter: brightness(0.9);
}

.selector-solucion {
  width: 100%;
  margin-top: 6px;
  padding: 0.4rem 0.6rem;
  font-size: 0.95rem;
  border: 2px solid #765348;
  border-radius: 6px;
  background-color: #fff7f0;
  color: #5c3e36;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.selector-solucion:focus {
  outline: none;
  border-color: #5c3e36;
  box-shadow: 0 0 4px rgba(92, 62, 54, 0.5);
}

.selector-solucion option:first-child {
  text-align: center;
  color: #bbb;
}

.correcto {
  background-color: #d4edda;
  color: #155724;
}

.incorrecto {
  background-color: #f8d7da;
  color: #721c24;
}

/* Botón general de soluciones */
#mostrar-soluciones {
  margin: 3rem auto 2rem;
  background-color: #765348;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  display: block;
}

#mostrar-soluciones:hover:enabled {
  background-color: #5c3e36;
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

#mostrar-soluciones:disabled {
  background-color: #aaa;
  cursor: default;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

.boton-audicion.activo {
  background-color: #4caf50; /* verde */
}

.boton-audicion.pausado {
  background-color: #ff9800; /* naranja */
}

.boton-audicion.activo:hover,
.boton-audicion.pausado:hover {
  filter: brightness(0.9); /* efecto leve al pasar el ratón */
}

/* Pie de página */
.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #5c3e36;
  color: white;
  text-align: center;
  padding: 0.7rem 1rem;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.15);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  z-index: 100;
}

.footer a {
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.footer-icon {
  height: 24px;
  width: 24px;
}

.footer-title {
  font-size: 1rem;
  font-weight: 700; /* negrita */
}

.mensaje-final {
  margin-top: 2rem;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 8px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.mensaje-final.exito {
  background-color: #d4edda;
  color: #155724;
}

.mensaje-final.bien {
  background-color: #fff3cd;
  color: #856404;
}

.mensaje-final.medio {
  background-color: #e2e3e5;
  color: #383d41;
}

.mensaje-final.bajo {
  background-color: #f8d7da;
  color: #721c24;
}

