:root {
	--ink: #0b1a22; --ink2: #0f2530; --panel: #16303c; --panel2: #1b3944; --line: #24404e;
	--muted: #8fa8b5; --fg: #eaf2f5; --amber: #f2a03d; --amber-d: #c97e26; --coral: #e86a4c; --mint: #46b98a;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--ink); color: var(--fg); font-family: 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }

.pm-top { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 54px; display: flex; align-items: center; gap: 12px;
	padding: 0 14px; padding-top: env(safe-area-inset-top); background: rgba(11,26,34,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.pm-back { color: var(--fg); text-decoration: none; font-size: 22px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); }
.pm-title { display: flex; flex-direction: column; line-height: 1.1; }
.pm-title span { font-family: 'Anton', sans-serif; font-size: 20px; letter-spacing: .3px; color: var(--amber); }
.pm-title small { font-size: 11px; color: var(--muted); }

.pm-app { position: relative; height: 100%; padding-top: 54px; display: flex; flex-direction: column; }
.pm-map { flex: 0 0 42vh; min-height: 250px; background: var(--ink2); z-index: 1; }
.pm-sheet { flex: 1; overflow-y: auto; background: var(--panel); border-radius: 18px 18px 0 0; margin-top: -14px; position: relative; z-index: 2;
	padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(0,0,0,.35); }
@media (min-width: 900px) {
	.pm-app { flex-direction: row; }
	.pm-map { flex: 1; min-height: 0; }
	.pm-sheet { flex: 0 0 420px; margin: 0; border-radius: 0; box-shadow: none; border-left: 1px solid var(--line); }
}

.pm-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--ink2); padding: 4px; border-radius: 12px; margin-bottom: 10px; }
.pm-seg__btn { border: 0; background: transparent; color: var(--muted); font: 600 14px 'Inter', sans-serif; padding: 10px; border-radius: 9px; cursor: pointer; }
.pm-seg__btn.is-on { background: var(--amber); color: #201202; }
.pm-hint { margin: 8px 2px 14px; font-size: 12.5px; color: var(--muted); }

.pm-btn { display: block; width: 100%; border: 0; border-radius: 12px; padding: 14px; font: 700 15px 'Inter', sans-serif; cursor: pointer; }
.pm-btn--main { background: var(--amber); color: #201202; margin-top: 12px; }
.pm-btn--main:disabled { opacity: .55; cursor: default; }
.pm-btn--ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); padding: 11px; font-weight: 600; }
.pm-btn--danger { background: transparent; color: var(--coral); border: 1px solid var(--coral); }

#pm-form { display: flex; flex-direction: column; gap: 12px; }
#pm-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
#pm-form input[type=text], #pm-form input[type=tel], #pm-form select {
	width: 100%; background: var(--ink2); border: 1px solid var(--line); color: var(--fg); border-radius: 10px; padding: 12px; font: 500 16px 'Inter', sans-serif; }
#pm-form input:focus, #pm-form select:focus { outline: 2px solid var(--amber); border-color: transparent; }
.pm-hp { position: absolute !important; left: -9999px; height: 0; opacity: 0; }
.pm-pago { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pm-pago legend { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-bottom: 6px; padding: 0; }
.pm-radio { position: relative; }
.pm-radio input { position: absolute; opacity: 0; }
.pm-radio span { display: block; text-align: center; padding: 11px 6px; border: 1px solid var(--line); border-radius: 10px; color: var(--fg); font-size: 14px; font-weight: 600; cursor: pointer; background: var(--ink2); }
.pm-radio input:checked + span { border-color: var(--amber); background: rgba(242,160,61,.15); color: var(--amber); }

.pm-precio { display: flex; justify-content: space-between; align-items: center; background: var(--ink2); border: 1px solid var(--amber); border-radius: 12px; padding: 12px 14px; }
.pm-precio span { font-size: 13px; color: var(--muted); }
.pm-precio strong { font-family: 'Anton', sans-serif; font-size: 26px; color: var(--amber); font-weight: 400; }
.pm-error { color: var(--coral); font-size: 13px; min-height: 0; }
.pm-error:empty { display: none; }

.pm-pin { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.pm-pin--o { background: var(--mint); } .pm-pin--d { background: var(--amber); }

.pm-estado { text-align: center; padding: 8px 0 4px; }
.pm-estado__ico { font-size: 44px; display: block; }
.pm-estado__ico.is-buscando { animation: pm-bounce 1s ease-in-out infinite; }
.pm-estado h2 { font-family: 'Anton', sans-serif; font-weight: 400; font-size: 24px; margin: 6px 0 2px; }
.pm-estado p { margin: 0; color: var(--muted); font-size: 14px; }
.pm-detalle { margin: 16px 0; display: flex; flex-direction: column; gap: 8px; }
.pm-fila { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pm-fila span { color: var(--muted); } .pm-fila strong { text-align: right; }
.pm-moto { background: var(--ink2); border: 1px solid var(--mint); border-radius: 12px; padding: 12px 14px; }
.pm-moto b { display: block; font-size: 16px; }
.pm-acciones { display: flex; flex-direction: column; gap: 8px; }
.pm-acciones a { text-align: center; text-decoration: none; }
@keyframes pm-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .pm-estado__ico.is-buscando { animation: none; } }

.pm-moto-marker { width: 40px; height: 40px; border-radius: 50%; background: #16303c; border: 3px solid var(--amber); display: grid; place-items: center; font-size: 22px; box-shadow: 0 2px 10px rgba(0,0,0,.55); }
