/* HV605 — guiado visual sin alterar reglas financieras */
#hv407-wallet-modal #hv605-wallet-use{
 cursor:pointer;display:inline-flex;align-items:center;justify-content:center;
 min-width:50px;min-height:35px;padding:6px 9px;margin:0 9px;
 border:1px solid #c1d46a;border-radius:9px;
 color:#fff;background:transparent;font:inherit;font-size:11px;font-weight:800;
 letter-spacing:.08em;vertical-align:middle;
}
#hv407-wallet-modal #hv605-wallet-use[hidden]{display:none!important}
#hv407-wallet-modal #hv605-wallet-use:focus-visible{outline:2px solid #d8e789;outline-offset:3px}
#hv605-trip-guide{
 position:fixed;inset:0;z-index:2147483000;background:rgba(13,20,46,.65);
 display:flex;align-items:center;justify-content:center;padding:3vh 3vw;
 box-sizing:border-box;
}
.hv605-trip-dialog{
 width:min(780px,100%);height:min(94dvh,960px);
 border-radius:22px;box-sizing:border-box;background:#fff;
 padding:clamp(16px,3vw,30px);overflow-y:auto;overscroll-behavior:contain;
 box-shadow:0 20px 70px rgba(9,15,38,.25);color:#303568;
}
.hv605-trip-dialog header{display:flex;justify-content:space-between;align-items:start;gap:12px;margin-bottom:20px}
.hv605-trip-dialog header small{font-size:11px;color:#849a30;font-weight:800;letter-spacing:.09em}
.hv605-trip-dialog h2{margin:6px 0 8px;font-size:clamp(21px,4vw,28px);line-height:1.2}
.hv605-trip-dialog header p{margin:0;font-size:14px;line-height:1.5;color:#485277}
#hv605-trip-close{flex:0 0 42px;width:42px;height:42px;border:1px solid #e2e6da;border-radius:50%;background:#fff;color:#303568;font-size:24px;cursor:pointer}
.hv605-trip-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:12px}
.hv605-trip-option{text-align:left;background:#f9faf5;border:1px solid #dfe5da;border-radius:14px;padding:16px;color:#303568;cursor:pointer;min-height:90px}
.hv605-trip-option strong{display:block;font-size:16px;margin-bottom:7px}
.hv605-trip-option span{font-size:12px;color:#718435}
.hv605-trip-option:hover,.hv605-trip-option:focus-visible{border-color:#93ac3b;outline:1px solid #93ac3b}
.hv605-empty{font-size:14px;color:#67727c}
#hv605-trip-feedback{color:#a12a36;font-size:13px}
#hv605-booking-hint,#hv605-expiry-note{display:block;color:#a62f38;font-size:12px;line-height:1.45;margin:6px 0}
@media(max-width:600px){#hv605-trip-guide{padding:1vh 1vw}.hv605-trip-dialog{height:98dvh;border-radius:16px;padding:18px}.hv605-trip-options{grid-template-columns:1fr}}

/* HV606 01-03: orden sin aumentar la altura de la franja azul. */
#hv407-wallet-modal :has(> #hv605-wallet-use){
 display:flex!important;flex-flow:row nowrap!important;align-items:center!important;
 gap:7px!important;min-height:0!important;
}
#hv407-wallet-modal :has(> #hv605-wallet-use)>:first-child:not(#hv407-wallet-total){
 font-size:clamp(9px,1.7vw,12px)!important;letter-spacing:0!important;
 line-height:1.2!important;min-width:0!important;
}
#hv407-wallet-modal #hv407-wallet-total{
 order:2!important;margin-left:auto!important;
 font-size:clamp(17px,3vw,28px)!important;
 white-space:nowrap!important;min-width:0!important;
 font-variant-numeric:tabular-nums!important;
}
#hv407-wallet-modal #hv605-wallet-use{
 order:3!important;flex:0 0 auto!important;
 height:34px!important;min-height:34px!important;
 min-width:48px!important;margin:0!important;padding:5px 8px!important;
 font-size:11px!important;line-height:1!important;
}
#hv605-trip-instruction{color:#a62f38!important;font-weight:560!important}
.hv605-trip-option{
 transform:translate3d(0,0,0) scale(1);
 transition:transform 180ms ease,box-shadow 180ms ease,border-color 180ms ease;
 will-change:transform;
}
.hv605-trip-option:hover,.hv605-trip-option:focus-visible{
 transform:translate3d(0,-5px,0) scale(1.018);
 box-shadow:0 18px 32px rgba(30,40,78,.17);
 position:relative;z-index:1;
}
.hv605-trip-option:disabled{opacity:.65;cursor:progress}
@media(max-width:480px){
 #hv407-wallet-modal #hv407-wallet-total{font-size:clamp(15px,4vw,21px)!important}
 #hv407-wallet-modal #hv605-wallet-use{height:32px!important;min-height:32px!important;min-width:44px!important;font-size:10px!important}
 #hv407-wallet-modal :has(> #hv605-wallet-use){gap:5px!important}
}
@media(prefers-reduced-motion:reduce){.hv605-trip-option{transition:none!important;transform:none!important}}

/* HV614: franja del saldo dividida sin alterar su ancho exterior. */
#hv407-wallet-modal .hv407-wallet-total.hv614-wallet-split {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(82px, 27%) !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  gap: clamp(7px, 1.6vw, 11px) !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  min-height: 0 !important;
  width: auto;
  max-width: 100%;
  box-sizing: border-box !important;
}
#hv407-wallet-modal .hv614-wallet-saldo,
#hv407-wallet-modal .hv614-wallet-accion {
  box-sizing: border-box !important;
  min-width: 0 !important;
  min-height: 64px !important;
  border-radius: 15px !important;
  background: #303768 !important;
  color: #fff !important;
}
#hv407-wallet-modal .hv614-wallet-saldo {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 5px !important;
  padding: 10px 14px !important;
}
#hv407-wallet-modal .hv614-wallet-saldo > small {
  display: block !important;
  margin: 0 !important;
  font-size: clamp(9px, 1.55vw, 11px) !important;
  font-weight: 790 !important;
  letter-spacing: .035em !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
  color: rgba(255,255,255,.88) !important;
}
#hv407-wallet-modal .hv614-wallet-saldo > #hv407-wallet-total {
  display: block !important;
  order: initial !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: clamp(18px, 3.5vw, 26px) !important;
  font-weight: 800 !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: -.025em !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
  color: #fff !important;
}
#hv407-wallet-modal .hv614-wallet-accion {
  display: flex !important;
  align-items: stretch !important;
  justify-content: center !important;
  padding: 8px !important;
}
#hv407-wallet-modal .hv614-wallet-accion > #hv605-wallet-use {
  order: initial !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 44px !important;
  height: auto !important;
  padding: 7px 5px !important;
  margin: 0 !important;
  border: 1px solid #c7da72 !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: #fff !important;
  font-size: clamp(11px, 2vw, 14px) !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  letter-spacing: .045em !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}
#hv407-wallet-modal .hv614-wallet-accion > #hv605-wallet-use::after {
  content: "↗";
  display: inline-block;
  font-size: 1.2em;
  font-weight: 700;
  line-height: 1;
}
#hv407-wallet-modal .hv614-wallet-accion > #hv605-wallet-use:focus-visible {
  outline: 2px solid #d9ed93 !important;
  outline-offset: 2px !important;
}
#hv407-wallet-modal .hv614-wallet-accion > #hv605-wallet-use:hover {
  background: rgba(255,255,255,.08) !important;
}
#hv407-wallet-modal .hv614-wallet-accion[hidden] { display: none !important; }
#hv407-wallet-modal .hv407-wallet-total.hv614-wallet-split.hv614-wallet-zero {
  grid-template-columns: minmax(0, 1fr) !important;
}
@media (max-width: 380px) {
  #hv407-wallet-modal .hv407-wallet-total.hv614-wallet-split {
    grid-template-columns: minmax(0, 1fr) minmax(70px, 26%) !important;
    gap: 6px !important;
  }
  #hv407-wallet-modal .hv614-wallet-saldo { padding: 9px 10px !important; }
  #hv407-wallet-modal .hv614-wallet-saldo > small { font-size: 9px !important; letter-spacing: 0 !important; }
  #hv407-wallet-modal .hv614-wallet-saldo > #hv407-wallet-total { font-size: 19px !important; }
  #hv407-wallet-modal .hv614-wallet-accion { padding: 6px !important; }
  #hv407-wallet-modal .hv614-wallet-accion > #hv605-wallet-use { gap: 3px !important; font-size: 10px !important; border-radius: 10px !important; }
}

/* HV614: el selector heredado :has(> #hv605-wallet-use) tiene prioridad superior.
   Garantizar que el bloque derecho no sea visible cuando no hay saldo. */
#hv407-wallet-modal .hv614-wallet-accion:has(> #hv605-wallet-use)[hidden] {
  display: none !important;
}
