/* Alma Transporte — perfil Taxi.
   Tokens en un solo bloque. Noche = negro tinta + ámbar taxi (sin blanco puro que encandile).
   Sol = alto contraste para pantalla bajo luz fuerte. Verde = ganancia; rojo solo deuda o pérdida. */
:root {
  --bg: #0B0B0C;
  --sup: #151517;
  --sup2: #1E1E21;
  --sup3: #29292D;
  --borde: #2E2E33;
  --txt: #F1EDE4;
  --txt2: #BDB7AB;
  --txt3: #8F897E;
  --ambar: #FFB800;
  --ambar-txt: #FFC633;
  --ambar-suave: rgba(255, 184, 0, .14);
  --sobre-ambar: #111111;
  --verde: #4ADE80;
  --verde-suave: rgba(74, 222, 128, .13);
  --rojo: #FF7A6E;
  --rojo-suave: rgba(255, 122, 110, .13);
  --azul: #7CB4FF;
  --wa: #25D366;
  --sombra: 0 10px 30px rgba(0, 0, 0, .45);
  --r1: 12px; --r2: 18px; --r3: 26px;
  --e1: 8px; --e2: 12px; --e3: 16px; --e4: 24px; --e5: 32px;
  --toque: 56px;
  --toque-grande: 64px;
  --t-rapida: 90ms;
  --t-media: 220ms;
  --fuente: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", system-ui, sans-serif;
  --fuente-num: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, system-ui, sans-serif;
  color-scheme: dark;
}
:root.sol {
  --bg: #F4F1EA;
  --sup: #FFFFFF;
  --sup2: #F1EDE4;
  --sup3: #E4DFD3;
  --borde: #D6D0C3;
  --txt: #121212;
  --txt2: #3F3B34;
  --txt3: #615B50;
  --ambar: #FFB800;
  --ambar-txt: #8A5A00;
  --ambar-suave: rgba(255, 184, 0, .22);
  --verde: #0E7A3A;
  --verde-suave: rgba(14, 122, 58, .10);
  --rojo: #B42318;
  --rojo-suave: rgba(180, 35, 24, .09);
  --azul: #1D5FBF;
  --wa: #128C4A;
  --sombra: 0 10px 30px rgba(40, 30, 10, .14);
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; font-family: var(--fuente); font-size: 1rem; line-height: 1.4; color: var(--txt); background: var(--bg);
  min-height: 100dvh; overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
.num { font-family: var(--fuente-num); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.oculto { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg.ic { width: 26px; height: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- estructura ---------- */
#app { max-width: 560px; margin: 0 auto; min-height: 100dvh; padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: var(--e2);
  padding: calc(env(safe-area-inset-top) + 10px) var(--e3) 10px; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.top h1 { font-size: 1.6rem; line-height: 1.1; margin: 0; font-weight: 800; letter-spacing: -.02em; }
.top .sub { color: var(--txt2); font-size: .9rem; margin-top: 2px; }
.top .titulo { flex: 1; min-width: 0; }
.btn-ico { width: var(--toque); height: var(--toque); border-radius: 50%; display: grid; place-items: center; color: var(--txt2); background: var(--sup); border: 1px solid var(--borde); }
.btn-ico:active { transform: scale(.94); }

.pastilla {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px;
  font-size: .78rem; font-weight: 650; background: var(--sup); border: 1px solid var(--borde); color: var(--txt2); white-space: nowrap;
}
.pastilla.ok { color: var(--verde); }
.pastilla.pend { color: var(--ambar-txt); border-color: color-mix(in srgb, var(--ambar) 40%, var(--borde)); background: var(--ambar-suave); }
.pastilla svg.ic { width: 16px; height: 16px; }
.punto { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

main { padding: 4px var(--e3) var(--e4); }
.seccion { margin-top: var(--e4); }
.seccion > h2, .h2 { font-size: 1.05rem; font-weight: 750; margin: 0 0 var(--e2); color: var(--txt); letter-spacing: -.01em; }
.h2 small { color: var(--txt3); font-weight: 600; margin-left: 6px; }

.tarjeta { background: var(--sup); border: 1px solid var(--borde); border-radius: var(--r3); padding: var(--e4) var(--e4); }
.tarjeta + .tarjeta { margin-top: var(--e2); }

/* ---------- portada: ganancia ---------- */
.heroe { padding: var(--e4) var(--e4) var(--e3); position: relative; overflow: hidden; }
.heroe .etq { font-size: .95rem; color: var(--txt2); font-weight: 650; display: flex; align-items: center; gap: 8px; }
.heroe .grande { font-size: clamp(3.1rem, 15vw, 4.3rem); font-weight: 800; line-height: 1.02; margin: 6px 0 4px; color: var(--verde); letter-spacing: -.035em; }
.heroe .grande.neg { color: var(--rojo); }
.heroe .formula { color: var(--txt2); font-size: .95rem; }
.heroe .formula b { color: var(--txt); font-weight: 700; }
.chip-est { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--ambar-suave); color: var(--ambar-txt); letter-spacing: .02em; }
.meta { margin-top: var(--e3); }
.meta .fila { display: flex; justify-content: space-between; font-size: .88rem; color: var(--txt2); margin-bottom: 7px; }
.meta .fila b { color: var(--txt); }
.barra { height: 12px; border-radius: 99px; background: var(--sup3); overflow: hidden; }
.barra > i { display: block; height: 100%; border-radius: inherit; background: var(--verde); transition: width var(--t-media) ease; }
.barra.ambar > i { background: var(--ambar); }
.barra.roja > i { background: var(--rojo); }
.libre { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: var(--e3); padding-top: var(--e3); border-top: 1px solid var(--borde); }
.libre .l { color: var(--txt2); font-size: .92rem; }
.libre .v { font-weight: 800; font-size: 1.35rem; }
.desglose { margin-top: var(--e2); }
.desglose summary { list-style: none; color: var(--ambar-txt); font-weight: 650; font-size: .9rem; min-height: 44px; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.desglose summary::-webkit-details-marker { display: none; }
.desglose ul { margin: 4px 0 0; padding: 0; list-style: none; font-size: .88rem; color: var(--txt2); }
.desglose li { padding: 6px 0; border-top: 1px dashed var(--borde); display: flex; justify-content: space-between; gap: 12px; }
.desglose li span:last-child { text-align: right; color: var(--txt); }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--e2); margin-top: var(--e2); }
.tile { background: var(--sup); border: 1px solid var(--borde); border-radius: var(--r2); padding: 14px 12px; min-width: 0; }
.tile .v { font-size: 1.5rem; font-weight: 800; line-height: 1.1; white-space: nowrap; }
.tile .v small { font-size: .8rem; font-weight: 700; color: var(--txt2); margin-left: 2px; }
.tile .l { color: var(--txt2); font-size: .8rem; margin-top: 4px; }
.tile .f { color: var(--txt3); font-size: .72rem; margin-top: 2px; }

/* ---------- botones ---------- */
.btn {
  min-height: var(--toque); border-radius: var(--r2); padding: 0 var(--e4); display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; font-weight: 750; font-size: 1.05rem; background: var(--sup2); color: var(--txt); border: 1px solid var(--borde);
  transition: transform var(--t-rapida) ease, filter var(--t-rapida) ease; user-select: none; -webkit-user-select: none;
}
.btn:active { transform: scale(.975); filter: brightness(.92); }
.btn.ancho { width: 100%; }
.btn.prim { background: var(--ambar); color: var(--sobre-ambar); border-color: transparent; box-shadow: 0 6px 20px rgba(255, 184, 0, .22); }
.btn.grande { min-height: var(--toque-grande); font-size: 1.2rem; border-radius: var(--r3); }
.btn.verde { background: var(--verde); color: #0B0B0C; border-color: transparent; }
.btn.wa { background: var(--wa); color: #fff; border-color: transparent; }
:root.sol .btn.verde { color: #fff; }
.btn.peligro { color: var(--rojo); }
.btn.texto { background: none; border-color: transparent; color: var(--ambar-txt); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.acciones { display: grid; gap: var(--e2); margin-top: var(--e3); }
.acciones.dos { grid-template-columns: 1fr 1fr; }

/* ---------- listas ---------- */
.lista { background: var(--sup); border: 1px solid var(--borde); border-radius: var(--r3); overflow: hidden; }
.item { display: flex; align-items: center; gap: var(--e2); min-height: 68px; padding: 12px var(--e3); width: 100%; text-align: left; }
.item + .item { border-top: 1px solid var(--borde); }
.item:active { background: var(--sup2); }
.item .cuerpo { flex: 1; min-width: 0; }
.item .t1 { font-weight: 700; font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .t2 { color: var(--txt2); font-size: .85rem; margin-top: 2px; }
.item .monto { font-weight: 800; font-size: 1.15rem; white-space: nowrap; }
.item .hora { color: var(--txt2); font-weight: 700; width: 3.1em; font-size: .95rem; }
.item .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--sup3); font-weight: 800; color: var(--txt2); flex: none; }
.vacio { text-align: center; color: var(--txt2); padding: var(--e5) var(--e4); }
.vacio svg.ic { width: 44px; height: 44px; color: var(--txt3); margin-bottom: 8px; }
.etiqueta { font-size: .74rem; font-weight: 750; padding: 3px 9px; border-radius: 99px; background: var(--sup3); color: var(--txt2); white-space: nowrap; }
.etiqueta.cuenta { background: var(--rojo-suave); color: var(--rojo); }
.etiqueta.transf { color: var(--azul); }
.deuda { color: var(--rojo); }
.ganancia { color: var(--verde); }

.aviso { display: flex; gap: 12px; align-items: flex-start; padding: 14px var(--e3); border-radius: var(--r2); background: var(--ambar-suave); color: var(--txt); margin-bottom: var(--e2); font-size: .93rem; }
.aviso svg.ic { color: var(--ambar-txt); margin-top: 1px; }
.aviso .btn { min-height: 44px; padding: 0 14px; font-size: .9rem; margin-top: 8px; }

/* ---------- barra inferior ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr);
  max-width: 560px; margin: 0 auto; padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--sup) 94%, transparent); border-top: 1px solid var(--borde);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.tab { min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--txt3); font-size: .74rem; font-weight: 700; border-radius: 16px; }
.tab svg.ic { width: 27px; height: 27px; }
.tab[aria-current="page"] { color: var(--ambar-txt); }
.tab[aria-current="page"] svg.ic { stroke-width: 2.4; }
.tab:active { background: var(--sup2); }
.tab .badge { position: absolute; }

/* ---------- hoja inferior ---------- */
.velo { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity var(--t-media); }
.velo.ver { opacity: 1; }
.hoja {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; max-width: 560px; margin: 0 auto; max-height: 94dvh; overflow-y: auto;
  background: var(--bg); border-radius: 28px 28px 0 0; border-top: 1px solid var(--borde); box-shadow: var(--sombra);
  padding: 8px var(--e3) calc(var(--e4) + env(safe-area-inset-bottom)); transform: translateY(102%); transition: transform var(--t-media) cubic-bezier(.2, .8, .2, 1);
  overscroll-behavior: contain;
}
.hoja.ver { transform: none; }
.hoja .asa { width: 44px; height: 5px; border-radius: 9px; background: var(--sup3); margin: 4px auto 10px; }
.hoja-cab { display: flex; align-items: center; gap: var(--e2); margin-bottom: var(--e3); }
.hoja-cab h2 { flex: 1; margin: 0; font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.hoja-cab .btn { min-height: 48px; padding: 0 16px; font-size: .95rem; }
.paso-sub { color: var(--txt2); margin: -8px 0 var(--e3); }

.campo { margin-bottom: var(--e3); }
.campo > label, .campo > .lbl { display: block; font-weight: 700; margin-bottom: 8px; font-size: .95rem; }
.campo .ayuda { color: var(--txt3); font-size: .82rem; margin-top: 6px; }
.entrada {
  width: 100%; min-height: var(--toque); border-radius: var(--r2); border: 1.5px solid var(--borde); background: var(--sup);
  padding: 0 var(--e3); font-size: 1.15rem; outline: none;
}
.entrada:focus { border-color: var(--ambar); box-shadow: 0 0 0 3px var(--ambar-suave); }
.entrada.num-grande { font-size: 2rem; font-weight: 800; min-height: 72px; font-variant-numeric: tabular-nums; }
textarea.entrada { padding: 12px var(--e3); min-height: 96px; }
.error-campo { color: var(--rojo); font-size: .88rem; margin-top: 6px; font-weight: 600; }

.opciones { display: grid; gap: 10px; grid-template-columns: repeat(var(--cols, 4), 1fr); }
.opcion {
  min-height: var(--toque); border-radius: var(--r2); background: var(--sup); border: 1.5px solid var(--borde); font-weight: 750; font-size: 1.05rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px;
}
.opcion[aria-pressed="true"] { border-color: var(--ambar); background: var(--ambar-suave); color: var(--txt); box-shadow: inset 0 0 0 1px var(--ambar); }
.opcion:active { transform: scale(.97); }
.opcion small { font-size: .72rem; color: var(--txt2); font-weight: 650; }

.montos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.montos .opcion { min-height: 72px; font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.monto-elegido { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 14px var(--e3); border-radius: var(--r2); background: var(--sup); border: 1px solid var(--borde); margin-bottom: var(--e3); width: 100%; text-align: left; }
.monto-elegido .v { font-size: 2.2rem; font-weight: 800; }
.monto-elegido .c { color: var(--ambar-txt); font-weight: 700; font-size: .9rem; }
.pagos { display: grid; gap: 10px; }
.pagos .btn { min-height: 68px; font-size: 1.2rem; justify-content: flex-start; padding: 0 var(--e4); }
.pagos .btn .ic { width: 28px; height: 28px; }
.pagos .btn span.d { margin-left: auto; font-size: .82rem; color: var(--txt2); font-weight: 600; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin: 0 calc(-1 * var(--e3)) var(--e3); padding-left: var(--e3); padding-right: var(--e3); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { min-height: 48px; padding: 0 16px; border-radius: 999px; background: var(--sup); border: 1.5px solid var(--borde); font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.chip[aria-pressed="true"] { border-color: var(--ambar); background: var(--ambar-suave); }

/* teclado numérico propio (no salta el teclado del sistema ni mueve la pantalla) */
.visor { text-align: center; font-size: 3rem; font-weight: 800; padding: 6px 0 12px; min-height: 76px; font-variant-numeric: tabular-nums; }
.visor.vacio-v { color: var(--txt3); }
.teclado { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tecla { min-height: 64px; border-radius: var(--r2); background: var(--sup); border: 1px solid var(--borde); font-size: 1.6rem; font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.tecla:active { background: var(--sup3); transform: scale(.97); }
.tecla.sec { font-size: 1.1rem; color: var(--txt2); }

/* gastos: grilla de categorías */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cat { min-height: 104px; border-radius: var(--r2); background: var(--sup); border: 1px solid var(--borde); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 10px 6px; font-weight: 700; font-size: .9rem; text-align: center; line-height: 1.15; }
.cat .ico-cat { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--ambar-suave); color: var(--ambar-txt); }
.cat .ico-cat svg.ic { width: 28px; height: 28px; }
.cat:active { transform: scale(.97); background: var(--sup2); }

/* ---------- modo carrera (pantalla completa, un botón) ---------- */
.modo-carrera {
  position: fixed; inset: 0; z-index: 60; background: #000; color: #F1EDE4; display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top) + 18px) 20px calc(env(safe-area-inset-bottom) + 20px);
}
:root.sol .modo-carrera { background: #0B0B0C; }
.modo-carrera .estado-gps { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #BDB7AB; font-size: 1rem; min-height: 32px; }
.modo-carrera .estado-gps .punto { width: 12px; height: 12px; }
.modo-carrera .estado-gps.bueno { color: #4ADE80; }
.modo-carrera .estado-gps.malo { color: #FFC633; }
.modo-carrera .cifras { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 26px; }
.modo-carrera .cifra .v { font-size: clamp(4.5rem, 24vw, 7rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.modo-carrera .cifra .l { font-size: 1.15rem; color: #BDB7AB; font-weight: 650; margin-top: 4px; }
.modo-carrera .nota-wake { color: #8F897E; font-size: .9rem; margin-bottom: 14px; text-align: center; }
.btn-terminar { min-height: 104px; border-radius: 30px; background: #FFB800; color: #111; font-size: 1.6rem; font-weight: 850; width: 100%; box-shadow: 0 10px 40px rgba(255, 184, 0, .3); }
.btn-terminar:active { transform: scale(.98); }
.modo-carrera .descartar { min-height: 64px; color: #BDB7AB; font-weight: 700; margin-top: 8px; width: 100%; }

/* ---------- números ---------- */
.segmento { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: var(--sup); border: 1px solid var(--borde); border-radius: 18px; margin-bottom: var(--e3); }
.segmento button { min-height: 50px; border-radius: 14px; font-weight: 750; color: var(--txt2); }
.segmento button[aria-pressed="true"] { background: var(--sup3); color: var(--txt); }
.grafico svg { width: 100%; height: auto; display: block; overflow: visible; }
.grafico .leyenda { display: flex; gap: 16px; font-size: .82rem; color: var(--txt2); margin-top: 10px; flex-wrap: wrap; }
.grafico .leyenda i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; }
.resumen-7 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--e2); margin-top: var(--e2); }
.detalle-dia { margin-top: var(--e3); padding-top: var(--e3); border-top: 1px solid var(--borde); }
.fila-dato { display: flex; justify-content: space-between; padding: 8px 0; font-size: .95rem; }
.fila-dato span:first-child { color: var(--txt2); }
.fila-dato span:last-child { font-weight: 750; }
.hbar { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 8px 0; }
.hbar .ico-cat { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--ambar-suave); color: var(--ambar-txt); }
.hbar .ico-cat svg.ic { width: 20px; height: 20px; }
.hbar .nom { font-size: .9rem; font-weight: 650; margin-bottom: 5px; }
.hbar .v { font-weight: 800; }
.equivale { font-size: 1.05rem; line-height: 1.45; }
.equivale b { color: var(--ambar-txt); }

/* ---------- agenda pronto ---------- */
.pronto { text-align: center; padding: var(--e5) var(--e4); }
.pronto .ilus { width: 120px; height: 120px; margin: 0 auto var(--e3); border-radius: 36px; display: grid; place-items: center; background: var(--ambar-suave); color: var(--ambar-txt); }
.pronto .ilus svg.ic { width: 60px; height: 60px; stroke-width: 1.6; }
.pronto h2 { font-size: 1.5rem; margin: 0 0 8px; }
.pronto p { color: var(--txt2); margin: 0 auto; max-width: 30ch; }
.pronto ul { text-align: left; margin: var(--e4) auto 0; padding: 0; list-style: none; max-width: 340px; }
.pronto li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--borde); }
.pronto li svg.ic { color: var(--ambar-txt); width: 22px; height: 22px; margin-top: 2px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(100px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 80;
  min-height: 60px; width: min(92vw, 520px); display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px;
  background: #F1EDE4; color: #111; border-radius: 20px; box-shadow: var(--sombra); font-weight: 700; opacity: 0; pointer-events: none;
  transition: opacity var(--t-media), transform var(--t-media);
}
:root.sol .toast { background: #121212; color: #F4F1EA; }
.toast.ver { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast .msg { flex: 1; }
.toast .ok { color: #0E7A3A; }
:root.sol .toast .ok { color: #4ADE80; }
.toast button { min-height: 44px; padding: 0 14px; border-radius: 14px; font-weight: 800; background: rgba(0, 0, 0, .08); }
:root.sol .toast button { background: rgba(255, 255, 255, .14); }

/* ---------- acceso ---------- */
.acceso { position: fixed; inset: 0; z-index: 90; background: var(--bg); display: grid; place-items: center; padding: var(--e4); }
.acceso .caja { width: 100%; max-width: 380px; text-align: center; }
.acceso .logo { width: 84px; height: 84px; border-radius: 24px; margin: 0 auto var(--e3); display: block; }
.acceso h1 { margin: 0; font-size: 1.7rem; }
.acceso p { color: var(--txt2); }
.demo-banda { background: var(--ambar); color: #111; font-weight: 750; font-size: .88rem; text-align: center; padding: 8px 12px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.demo-banda button { min-height: 36px; padding: 0 12px; border-radius: 10px; background: rgba(0, 0, 0, .12); font-weight: 800; }

.foto-boleta { width: 100%; max-height: 260px; object-fit: contain; border-radius: var(--r2); background: var(--sup2); margin-top: 10px; }
.mini { font-size: .82rem; color: var(--txt3); }
.copiar { display: flex; gap: 8px; align-items: center; }
.copiar code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--sup2); border: 1px solid var(--borde); padding: 12px; border-radius: 12px; font-size: .82rem; }
.copiar .btn { min-height: 48px; padding: 0 14px; font-size: .9rem; }
hr.sep { border: 0; border-top: 1px solid var(--borde); margin: var(--e4) 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ajustes tras revisión en 390 px */
a.btn, a.btn-ico { text-decoration: none; }
.item .t1, .item .t2 { display: block; }
.chip-est { white-space: nowrap; }
.acciones.dos .btn { padding: 0 12px; white-space: nowrap; }
.pastilla { min-height: 44px; }
.libre { flex-direction: column; align-items: stretch; gap: 4px; }
.libre .fila { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.libre .fila .l b { color: var(--txt); }
.pagada { margin-top: 6px; color: var(--txt3); font-size: .85rem; }
.item .t1.envuelve { white-space: normal; }
.acciones.dos .btn { min-width: 0; }
.btn.apilado { flex-direction: column; gap: 4px; min-height: 76px; font-size: 1rem; padding: 8px; white-space: normal; text-align: center; line-height: 1.15; }
#app { overflow-x: clip; }
.hbar { grid-template-columns: 34px 1fr 6.2em; }
.hbar .v { text-align: right; }
.demo-banda { position: sticky; top: 0; z-index: 25; }
.demo-banda + #app .top { top: 0; }

/* ---------- jornada automática ---------- */
.nota-auto { display: flex; align-items: center; gap: 8px; color: var(--txt2); font-size: .9rem; font-weight: 650; margin-bottom: var(--e2); }
.nota-auto svg.ic { width: 20px; height: 20px; color: var(--ambar-txt); }
.pasos { list-style: none; margin: 0; padding: 0; }
.paso { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--borde); }
.paso.sep { display: block; padding: 16px 14px; margin: 8px 0; border: 0; border-radius: var(--r2); background: var(--ambar-suave); }
.paso-num { width: 40px; height: 40px; border-radius: 50%; background: var(--ambar); color: #111; font-weight: 850; display: grid; place-items: center; font-size: 1.1rem; }
.paso-cuerpo { min-width: 0; font-size: .98rem; line-height: 1.45; }
/* pantalla de iPhone dibujada (ilustración del paso; siempre clara, como iOS) */
.tel { width: 172px; margin-top: 10px; border-radius: 26px; border: 3px solid #3A3A3F; background: #F2F2F7; color: #111; padding: 22px 8px 10px; position: relative; font-size: .7rem; line-height: 1.25; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.tel-isla { position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 46px; height: 9px; border-radius: 9px; background: #111; }
.tel-cab { font-weight: 800; font-size: .82rem; margin: 2px 4px 6px; }
.tel-fila { background: #fff; border-radius: 9px; padding: 7px 8px; margin-top: 4px; color: #333; }
.tel-fila.marca { outline: 2.5px solid #FFB800; background: #FFF6D6; color: #111; }
.tel-nota { color: #555; margin: 6px 4px 0; }
.opcion { text-align: center; }
.url-paso { margin-top: 10px; padding: 12px; border-radius: var(--r2); background: var(--sup2); border: 1px solid var(--borde); }
.url-paso code { display: block; margin: 6px 0 10px; font-size: .82rem; line-height: 1.4; word-break: break-all; color: var(--txt); }
.url-paso .btn { min-height: 52px; font-size: 1rem; }
#casa-txt svg.ic { width: 16px; height: 16px; vertical-align: -3px; color: var(--verde); }
