* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(160deg, #2b1055, #7597de);
  min-height: 100vh;
  color: #222;
}

.topbar {
  text-align: center;
  color: white;
  padding: 32px 16px 16px;
}
.topbar h1 {
  margin: 0;
  font-size: 28px;
}
.subtitulo {
  margin: 4px 0 0;
  opacity: 0.85;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
}

.tarjeta {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.oculto {
  display: none;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.tab {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: #eee;
  cursor: pointer;
  font-weight: 600;
  color: #666;
}
.tab.activo {
  background: #7597de;
  color: white;
}
.hint {
  font-weight: 400;
  color: #999;
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0;
}

form label, #vistaCategorias label, #vistaCanciones label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin: 12px 0 4px;
}

input, select {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 15px;
}

.boton-principal {
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: #2b1055;
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.boton-principal:disabled {
  opacity: 0.6;
  cursor: default;
}

.boton-secundario {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background: white;
  cursor: pointer;
  font-size: 13px;
  color: #555;
}

.mensaje {
  margin-top: 14px;
  font-size: 14px;
  text-align: center;
  min-height: 18px;
}
.mensaje.error {
  color: #c0392b;
}
.mensaje.exito {
  color: #1e8449;
}

.fila-saldo {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.saldo-label {
  margin: 0;
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.saldo-numero {
  margin: 2px 0 0;
  font-size: 32px;
  font-weight: 800;
  color: #2b1055;
}

.explicacion {
  font-size: 13px;
  color: #666;
  margin: 16px 0;
}

.lista-canciones {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid #eee;
  border-radius: 10px;
}
.lista-canciones li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}
.lista-canciones li:last-child {
  border-bottom: none;
}
.lista-canciones button {
  padding: 6px 12px;
  border: none;
  border-radius: 8px;
  background: #7597de;
  color: white;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  margin-left: 10px;
}
.lista-canciones button:disabled {
  opacity: 0.5;
  cursor: default;
}
