body { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.barra { display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; padding-top: max(.55rem, env(safe-area-inset-top)); background: var(--app-barra, var(--azul)); color: #fff; z-index: 600; }
.barra-logo { width: 32px; height: 32px; border-radius: 8px; }
.barra .sec { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
main { flex: 1; display: flex; flex-direction: column; position: relative; min-height: 0; }
main.oculto { display: none; }
.mapa-pedir { height: 34vh; min-height: 200px; flex: none; }
.mapa-seguir { flex: 1; min-height: 240px; }
.mira { position: absolute; top: calc(17vh - 26px); left: 50%; transform: translateX(-50%); z-index: 500; pointer-events: none; }
.mira div { width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--rojo); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.hoja { background: #fff; padding: 1rem; padding-bottom: max(1rem, env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; box-shadow: 0 -4px 20px rgba(0,0,0,.1); z-index: 550; overflow-y: auto; margin-top: -14px; }
#vPedir .hoja { flex: 1; }
#vSeguir .hoja { max-height: 58vh; }
.tipos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: .8rem; }
.tipos button { background: var(--fondo); color: var(--tinta); border: 2px solid transparent; min-height: 70px; line-height: 1.3; }
.tipos button.activa { border-color: var(--azul); background: var(--azul-claro); color: var(--azul); }
.personas { display: flex; gap: .5rem; }
.personas button { flex: 1; background: var(--fondo); color: var(--tinta); border: 2px solid transparent; font-size: 1.2rem; }
.personas button.activa { border-color: var(--azul); background: var(--azul-claro); color: var(--azul); }
.estado-grande { font-size: 1.3rem; font-weight: 800; margin-bottom: .2rem; }
.pasos { display: flex; gap: 4px; margin: .6rem 0 1rem; }
.pasos div { flex: 1; height: 6px; border-radius: 3px; background: var(--linea); }
.pasos div.hecho { background: var(--azul); }
.conductor { display: flex; gap: .8rem; align-items: center; padding: .8rem; border: 1px solid var(--linea); border-radius: 14px; margin-bottom: .8rem; }
.conductor .foto { width: 72px; height: 72px; }
.contacto { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: .6rem; }

.banner-marca { display: none; height: 92px; border-radius: 14px; margin-bottom: .8rem; color: #fff; align-items: flex-end; padding: .7rem; font-weight: 800; font-size: 1.1rem; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.banner-marca.con-fondo { display: flex; }

/* v1.9 · botón y ventana de pánico */
dialog { border:0; border-radius:14px; padding:1rem; width:min(520px, 94vw); max-height:90vh; }
dialog::backdrop { background:rgba(0,0,0,.45); }
.dos-botones { display:grid; grid-template-columns:1fr 1fr; gap:.5rem; }
.dos-botones .boton { text-align:center; margin:0; }
.boton-panico-cliente { background:#c62828; color:#fff; font-weight:800; }
