.calc {
  max-width: 420px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.pantalla {
  padding: 1rem 1.1rem;
  border: 1px solid var(--borde);
  border-radius: 12px;
  background: var(--superficie-2);
  text-align: right;
  overflow-x: auto;
}

.pantalla__valor {
  display: block;
  min-height: 2.4rem;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.calc .aviso {
  margin: 0;
}

.teclado {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.tecla {
  padding: 0.95rem 0;
  border: 1px solid var(--borde);
  border-radius: 12px;
  background: var(--superficie);
  color: var(--texto);
  font: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.05s ease;
}

.tecla:hover {
  background: var(--superficie-2);
}

.tecla:active {
  transform: translateY(1px);
}

.tecla--op {
  background: var(--superficie-2);
  color: var(--primario);
}

.tecla--fn {
  color: var(--texto-suave);
}

.tecla--igual {
  background: var(--primario);
  border-color: transparent;
  color: var(--primario-texto);
}

.tecla--igual:hover {
  background: color-mix(in srgb, var(--primario) 88%, black);
}

.ayuda {
  margin: 0;
  font-size: 0.8rem;
}
