/* Teclado */
.teclado {
 width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: env(safe-area-inset-bottom); /* útil en móviles con notch */
}

.teclado div {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.tecla {
  flex: 1;
  background-color: var(--dark-3);
  border: none;
  color: white;
  padding: 10px 4px;
  margin: 1px;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.1s ease-in-out;
}

.tecla:hover {
  background-color: var(--dark-4);
}

@media (min-width: 768px) {
  .tecla {
    max-width: 60px;
    font-size: 0.95rem;
  }
}
/* Botones especiales como ENTER o ⌫ más anchos */
.tecla-especial {
  flex: 1.8;
  max-width: none;
}

/* Estilo al presionar */
.tecla:active {
  background-color: #555;
}



@keyframes pop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.8);
  }
  100% {
    transform: scale(1);
  }
}

.tecla.incorrecta {
  background-color: var(--dark-2);
  color: var(--white);
}

.tecla.presente {
  background-color: var(--yellow-color);
  color: var(--white);
}

.tecla.correcta {
  background-color: var(--green-color);
  color: var(--white);
}

.teclado > div:nth-child(3) .tecla:first-child{
    background-color: var(--blue-color) !important;
}

.teclado > div:nth-child(3) .tecla:last-child{
    background-color: var(--red-color) !important;
}
