/* ---------- ESTILOS BUSCADOR DE ACORDES ----------- */

.contenedor-acordes {
  max-width: 600px;
  margin: 40px auto 0 auto;
  background: rgba(255,255,255,0.92);
  border-radius: 16px;
  padding: 28px 14px 36px 14px;
  box-shadow: 0 6px 28px 0 #0003;
}

.titulo-acordes {
  text-align: center;
  margin-bottom: 14px;
  color: #244;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.buscador-acordes {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
  gap: 10px;
}

.input-acordes {
  font-size: 1em;
  border-radius: 7px;
  padding: 6px 13px;
  background: #e6eaff;
  border: 1.5px solid #345;
  color: #222;
  width: 70%;
  max-width: 320px;
}

.boton-acordes {
  font-size: 1em;
  border-radius: 7px;
  padding: 7px 17px;
  background: linear-gradient(90deg,#191970 10%, #5a74f2 100%);
  border: none;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 7px 0 #0002;
  transition: background 0.1s;
}

.boton-acordes:hover {
  background: #234;
}

.resultados-acordes {
  margin: 22px auto 0 auto;
  min-height: 54px;
  background: #f3f6ff;
  border-radius: 9px;
  padding: 12px;
  box-shadow: 0 1.5px 7px 0 #0001;
  color: #223;
  font-size: 1.06em;
  word-break: break-word;
}

@media (max-width: 700px) {
  .contenedor-acordes { max-width: 99vw; padding: 9px 2vw 28px 2vw;}
  .buscador-acordes { flex-direction: column; gap: 12px;}
  .input-acordes { width: 99%; }
}

/* ----------- ESTILOS PIANO SÓLO PARA piano.html ----------- */
.piano-wrapper .piano-container {
  max-width: 900px;
  margin: 40px auto 0 auto;
  background: rgba(255,255,255,0.85);
  border-radius: 18px;
  padding: 28px 14px 36px 14px;
  box-shadow: 0 6px 36px 0 #0005;
  position: relative;
}
.piano-wrapper h1 {
  text-align: center;
  margin-bottom: 12px;
  color: #244;
  font-weight: 700;
  letter-spacing: 1.5px;
}
.piano-wrapper .selector-instrumento {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
}
.piano-wrapper .selector-instrumento label {
  margin-right: 8px;
  font-weight: bold;
  color: #294;
}
.piano-wrapper .selector-instrumento select {
  font-size: 1em;
  border-radius: 8px;
  padding: 5px 12px;
  background: #d0e5ff;
  border: 1.5px solid #345;
  color: #222;
}
.piano-wrapper .piano {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: 26px;
  user-select: none;
  touch-action: manipulation;
}
.piano-wrapper .tecla {
  position: relative;
  width: 32px;
  height: 180px;
  border: 1.5px solid #bbb;
  margin-right: -7px;
  border-radius: 0 0 8px 8px;
  background: #fff;
  z-index: 1;
  box-shadow: 0 2px 8px 0 #0001;
  transition: background 0.09s, box-shadow 0.09s;
}
.piano-wrapper .tecla:last-child {
  margin-right: 0;
}
.piano-wrapper .tecla.negra {
  position: absolute;
  width: 22px;
  height: 110px;
  background: linear-gradient(180deg,#222,#555 70%,#eee 100%);
  border: 1.5px solid #555;
  z-index: 2;
  margin-right: -11px;
  margin-left: -11px;
  left: 22px;
  box-shadow: 0 4px 20px 0 #0004;
}
.piano-wrapper .piano .tecla:nth-child(2), .piano-wrapper .piano .tecla:nth-child(4),
.piano-wrapper .piano .tecla:nth-child(7), .piano-wrapper .piano .tecla:nth-child(9),
.piano-wrapper .piano .tecla:nth-child(11), .piano-wrapper .piano .tecla:nth-child(14),
.piano-wrapper .piano .tecla:nth-child(16), .piano-wrapper .piano .tecla:nth-child(19),
.piano-wrapper .piano .tecla:nth-child(21), .piano-wrapper .piano .tecla:nth-child(23) {
  margin-left: -11px;
}
.piano-wrapper .tecla.tocada {
  background: #f7d448 !important;
  box-shadow: 0 0 18px 2px #ffe70088;
}
.piano-wrapper .tecla.negra.tocada {
  background: #f9b908 !important;
  box-shadow: 0 0 16px 2px #ffe00099;
}
.piano-wrapper .instrucciones {
  text-align: center;
  color: #357;
  font-size: 1.02em;
}
.boton-piano {
  display: inline-block;
  background: linear-gradient(90deg,#191970 10%, #5a74f2 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-weight: 600;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px 0 #0002;
  transition: background 0.1s;
}
.boton-piano:hover {
  background: #234;
}
@media (max-width: 700px) {
  .piano-wrapper .piano-container { max-width: 99vw; padding: 9px 2vw 28px 2vw;}
  .piano-wrapper .piano {flex-wrap: wrap;}
  .piano-wrapper .tecla { width: 19px; height: 110px; }
  .piano-wrapper .tecla.negra { width: 13px; height: 64px; left: 14px; }
}