.viaje { padding-bottom: 3rem; }
.viaje .intro p { max-width: 62ch; }
.viaje-campos {
  display: grid;
  gap: 1.15rem;
  padding: clamp(1.05rem, 3vw, 1.65rem);
}
.campos-fila {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: .85rem;
}
.campo label {
  display: block;
  margin-bottom: .4rem;
  color: var(--ink);
  font-size: .96rem;
  font-weight: 650;
}
.cantidad {
  display: flex;
  align-items: center;
  min-height: 48px;
  border: 1px solid #718094;
  border-radius: 7px;
  color: var(--ink);
  background: var(--display);
}
.cantidad:focus-within { outline: 3px solid #fff; outline-offset: 3px; }
.cantidad:has([aria-invalid="true"]) { border-color: #ffc9c9; }
.cantidad input {
  width: 100%; min-width: 0; min-height: 46px;
  padding: .6rem .65rem;
  border: 0; border-radius: 7px;
  background: transparent; color: inherit;
  font: 550 1.12rem/1.3 var(--mono);
  font-variant-numeric: tabular-nums;
}
.cantidad input:focus-visible { outline: 0; }
.cantidad span { padding-right: .65rem; color: var(--muted); font-size: .88rem; white-space: nowrap; }
.campo small { display: block; margin-top: .35rem; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.vuelta {
  display: inline-flex; align-items: center; align-self: end; gap: .55rem;
  min-height: 48px; width: fit-content; cursor: pointer; font-weight: 650;
}
.vuelta input { flex: none; width: 1.22rem; height: 1.22rem; margin: 0; accent-color: #d7dbe2; }
.ver-coste { display: none; }
.viaje-ticket dl { margin: 0; }
.viaje-ticket dl div {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: .1rem .7rem;
}
.viaje-ticket dt { color: var(--muted); }
.viaje-ticket dd {
  margin: 0; max-width: 100%; overflow-wrap: anywhere;
  font-family: var(--mono); font-variant-numeric: tabular-nums;
}
.viaje-ticket .viaje-totales { padding: .85rem 0; border-bottom: 1px dashed #626c79; }
.viaje-totales div { padding: .25rem 0; }
.viaje-totales dt { color: var(--ink); font-weight: 600; }
.viaje-totales dd { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 650; letter-spacing: -.055em; }
.viaje-ticket .viaje-desglose { margin-top: .8rem; }
.viaje-desglose div { padding: .25rem 0; }
.viaje-desglose dd { font-weight: 600; }
#aviso-viaje, #ajuste-reparto { margin-top: .7rem; font-size: .92rem; }
#aviso-viaje { color: #ffd2d2; }
#ajuste-reparto { color: var(--muted); }
#aviso-viaje:empty, #ajuste-reparto:empty { display: none; }
@media (min-width: 681px) and (max-width: 850px) {
  .viaje .desk { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1rem; }
}
@media (max-width: 680px) {
  .ver-coste {
    display: block; padding: .65rem 1rem; border: 1px solid #858585; border-radius: 7px;
    background: var(--key); color: white; text-align: center; text-decoration: none; font-weight: 650;
  }
  .ver-coste:hover { background: var(--control); }
}
@media (max-width: 395px) {
  .viaje-campos { gap: .9rem; }
  .campos-fila { gap: .8rem; }
  .campos-fila:not(:first-child) { grid-template-columns: minmax(0, 1fr); }
}
