/* ESTILOS APP MÓVIL MODO PASAJERO (DOC-RIDE-ESP-001 / DIR-004) */
.pas-shell {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 1.25rem 2.5rem;
}

.pas-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.pas-title-group h1 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pas-title-group p {
    margin: 0.15rem 0 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.pas-workspace {
    display: grid;
    grid-template-columns: 430px 1fr;
    gap: 1.25rem;
    align-items: start;
}

.pas-workspace.fullscreen-mobile {
    grid-template-columns: 1fr;
}

.pas-workspace.fullscreen-mobile .phone-frame {
    max-width: 100%;
    border-radius: 16px;
    border-width: 2px;
}

/* SMARTPHONE FRAME */
.phone-frame {
    width: 100%;
    max-width: 430px;
    background: var(--bg-surface);
    border: 6px solid var(--bg-elevated);
    border-radius: 30px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phone-notch {
    background: var(--bg-elevated);
    padding: 0.45rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-glass);
}

.phone-map {
    height: 240px;
    width: 100%;
    z-index: 1;
}

.pas-workspace.fullscreen-mobile .phone-map {
    height: 320px;
}

.phone-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

/* TABS & SELECTORS */
.mode-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    background: var(--bg-surface-alt);
    padding: 0.25rem;
    border-radius: 10px;
}

.mode-tab {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.45rem 0.4rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.mode-tab.active {
    background: var(--accent-secondary);
    color: #ffffff;
}

.category-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.cat-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 0.55rem 0.45rem;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    color: var(--text-primary);
}

.cat-card.active {
    border-color: var(--accent-primary);
    background: var(--accent-glow);
}

.cat-card .cat-icon { font-size: 1.25rem; }
.cat-card .cat-name { font-size: 0.74rem; font-weight: 700; }
.cat-card .cat-cap  { font-size: 0.66rem; color: var(--text-muted); }

/* ROUTE INPUTS */
.route-box {
    background: var(--bg-elevated);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.route-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.route-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dot-origin { background: #10b981; box-shadow: 0 0 8px #10b981; }
.dot-dest   { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }

.route-select {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 0.45rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    outline: none;
}

.route-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.74rem;
    color: var(--text-secondary);
    padding-top: 0.35rem;
    border-top: 1px dashed var(--border-glass);
}

/* FARE BIDDER */
.fare-bidder {
    background: var(--bg-elevated);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.fare-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.fare-display {
    text-align: center;
}

.fare-display .fare-amount {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 900;
    color: var(--accent-primary);
}

.fare-display .fare-band {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.dispatch-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
}

.dispatch-btn {
    padding: 0.4rem;
    border-radius: 8px;
    border: 1px solid var(--border-glass);
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
}
.dispatch-btn.active {
    border-color: var(--accent-primary);
    background: var(--accent-glow);
    color: var(--accent-primary);
}

/* OFERTAS EN VIVO & VIAJE EN CURSO */
.offers-feed {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.offer-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    animation: toastSlideIn 0.25s ease;
}

.offer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.driver-meta {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.driver-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offer-price {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--success);
}

.offer-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
}

.active-trip-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-highlight);
    border-radius: 14px;
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.trip-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

/* PANEL DE TELEMETRÍA DERECHO */
.telemetry-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.kv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.75rem;
}

.kv-box {
    background: var(--bg-elevated);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 0.75rem;
}

.kv-box span {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
}

.kv-box strong {
    font-size: 0.92rem;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.log-console {
    background: #050811;
    color: #a5f3fc;
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 0.85rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    max-height: 290px;
    overflow-y: auto;
    line-height: 1.55;
}

[data-theme="light"] .log-console {
    background: #0f172a;
    color: #e0f2fe;
}

@media (max-width: 980px) {
    .pas-workspace { grid-template-columns: 1fr; }
    .phone-frame { margin: 0 auto; }
}

