/* ==========================================================================
   TAXI SEGURO — SISTEMA DE DISEÑO ELITE ERGONÓMICO v5.4 (/aplicativo/css/app.css)
   Paleta Aprobada: Blanco Perla (#F1F5F9), Tarjetas Puras (#FFFFFF),
   Azul Cobalto Real (#2563EB), Carbono (#0F172A), Esmeralda (#059669) y Coral (#E11D48).
   Botones y controles táctiles amplios (44px–48px) + Conductores en Modo Galería.
   ========================================================================== */

:root {
    --bg-app: #F1F5F9;
    --bg-card: #FFFFFF;
    --bg-soft: #F8FAFC;
    --text-main: #0F172A;
    --text-sub: #475569;
    --text-muted: #64748B;
    --border-light: #E2E8F0;
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-soft: #EFF6FF;
    --carbon: #0F172A;
    --emerald: #059669;
    --emerald-soft: #ECFDF5;
    --danger: #E11D48;
    --danger-soft: #FFF1F2;
    --amber: #D97706;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 10px;
    --shadow-card: 0 4px 16px rgba(15, 23, 42, 0.06);
    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    background: #0B1120;
    color: var(--text-main);
    font-family: var(--font);
    font-size: 15px;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   1. PANTALLA DE LOGIN Y REGISTRO ERGONÓMICA
   ========================================================================== */
.elite-auth-screen {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background: linear-gradient(160deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px));
}

.elite-auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border-radius: 22px;
    padding: 22px 18px;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
}

.elite-auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.elite-auth-logo {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
    flex-shrink: 0;
}

.elite-badge-top {
    display: inline-block;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 3px 8px;
    border-radius: 99px;
}

.elite-auth-brand h1 {
    font-size: 1.32rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.15;
}

.elite-auth-brand h1 span {
    color: var(--primary);
}

.elite-auth-brand p {
    font-size: 0.76rem;
    color: var(--text-muted);
}

/* Selector Segmentado Táctil (44px) */
.elite-segmented {
    display: flex;
    background: var(--bg-app);
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 12px;
    gap: 4px;
}

.seg-btn {
    flex: 1;
    min-height: 40px;
    border: none;
    background: transparent;
    color: var(--text-sub);
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 8px 6px;
    border-radius: 9px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.seg-btn.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

/* Formularios y Campos Táctiles Cómodos */
.elite-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.elite-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.elite-field label {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-sub);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.elite-field input,
.elite-field select,
.elite-form input[type="text"],
.elite-form input[type="password"],
.elite-form input[type="tel"],
.elite-form select,
.elite-input-full {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    background: var(--bg-soft);
    border: 1.5px solid var(--border-light);
    color: var(--text-main);
    font-family: var(--font);
    font-size: 0.86rem;
    font-weight: 600;
    padding: 10px 12px;
    border-radius: 11px;
    outline: none;
}

.elite-field input:focus,
.elite-field select:focus,
.elite-form input:focus {
    border-color: var(--primary);
    background: #FFFFFF;
}

.elite-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.elite-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.elite-role-picker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.role-card {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-soft);
    border: 1.5px solid var(--border-light);
    border-radius: 11px;
    padding: 10px;
    text-align: center;
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--text-sub);
    cursor: pointer;
}

.role-card input { display: none; }
.role-card.active {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary);
}

/* Botones Táctiles Amplios (46px de altura mínima para el dedo) */
.elite-btn-primary {
    width: 100%;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    color: #FFFFFF;
    border: none;
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 800;
    padding: 12px 14px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(37, 99, 235, 0.25);
    text-align: center;
    text-decoration: none;
}

.elite-btn-emerald {
    width: 100%;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #FFFFFF;
    border: none;
    font-family: var(--font);
    font-size: 0.86rem;
    font-weight: 800;
    padding: 12px 14px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(5, 150, 105, 0.24);
    text-align: center;
}

.elite-btn-secondary {
    width: 100%;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--bg-soft);
    border: 1.5px solid var(--border-light);
    color: var(--text-main);
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 800;
    padding: 10px 12px;
    border-radius: 11px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.elite-btn-danger {
    width: 100%;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--danger-soft);
    border: 1.5px solid rgba(225, 29, 72, 0.28);
    color: var(--danger);
    font-family: var(--font);
    font-size: 0.86rem;
    font-weight: 800;
    padding: 11px 14px;
    border-radius: 12px;
    cursor: pointer;
}

.elite-btn-ghost-danger {
    min-height: 38px;
    background: var(--danger-soft);
    border: 1px solid rgba(225, 29, 72, 0.25);
    color: var(--danger);
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 7px 12px;
    border-radius: 9px;
    cursor: pointer;
    flex-shrink: 0;
}

.elite-demo-box {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.demo-title {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.demo-pill {
    min-height: 42px;
    background: var(--bg-soft);
    border: 1.5px solid var(--border-light);
    color: var(--text-main);
    font-family: var(--font);
    font-size: 0.76rem;
    font-weight: 800;
    padding: 9px 6px;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
}

.demo-pill.admin {
    background: #FEF3C7;
    border-color: #FCD34D;
    color: #92400E;
}

/* ==========================================================================
   2. CONTENEDOR DEL APLICATIVO
   ========================================================================== */
.elite-app-shell {
    width: 100%;
    max-width: 500px;
    height: 100%;
    margin: 0 auto;
    background: var(--bg-app);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* BARRA SUPERIOR ERGONÓMICA */
.elite-topbar {
    min-height: calc(60px + env(safe-area-inset-top, 0px));
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    padding: env(safe-area-inset-top, 0px) 12px 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-shrink: 0;
    z-index: 40;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.topbar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    flex-shrink: 0;
}

.topbar-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.topbar-name-row strong {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.elite-pill-role {
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.66rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 99px;
    white-space: nowrap;
    flex-shrink: 0;
}

.topbar-zone {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.elite-icon-btn {
    min-height: 38px;
    background: var(--bg-soft);
    border: 1.5px solid var(--border-light);
    color: var(--text-main);
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 7px 12px;
    border-radius: 99px;
    cursor: pointer;
    white-space: nowrap;
}

.elite-sos-pill {
    min-height: 38px;
    background: var(--danger);
    color: #FFFFFF;
    border: none;
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 7px 12px;
    border-radius: 99px;
    cursor: pointer;
    white-space: nowrap;
}

/* BANNER DE EMERGENCIA */
.elite-emergency-banner {
    background: var(--danger);
    color: #FFFFFF;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-shrink: 0;
}

.emerg-info {
    display: flex;
    flex-direction: column;
    font-size: 0.74rem;
    min-width: 0;
}

.emerg-info strong {
    font-size: 0.8rem;
    font-weight: 800;
}

.emerg-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.emerg-map-btn,
.emerg-close-btn {
    min-height: 36px;
    padding: 6px 11px;
    border-radius: 8px;
    font-family: var(--font);
    font-weight: 800;
    font-size: 0.74rem;
    cursor: pointer;
    flex-shrink: 0;
}

.emerg-map-btn {
    background: #FFFFFF;
    color: var(--danger);
    border: none;
}

.emerg-close-btn {
    background: rgba(15, 23, 42, 0.35);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

/* ÁREA CENTRAL DE VISTAS */
.elite-main-viewport {
    flex: 1;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.elite-view {
    display: none;
    width: 100%;
    height: 100%;
}

.elite-view.active {
    display: flex;
    flex-direction: column;
}

.elite-scroll-page {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 10px 12px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.elite-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 14px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
}

.sheet-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    min-width: 0;
}

.sheet-title-row h2,
.sheet-title-row h3 {
    font-size: 0.96rem;
    font-weight: 800;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.elite-eyebrow {
    display: block;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--primary);
    text-transform: uppercase;
}

.muted-p {
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.35;
}

/* ==========================================================================
   3. MODO PASAJERO (MAPA + SOLICITUD TÁCTIL CÓMODA)
   ========================================================================== */
.passenger-layout {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.passenger-map-area {
    flex: 1;
    min-height: 54%;
    position: relative;
    background: #CBD5E1;
}

.map-canvas {
    width: 100%;
    height: 100%;
    z-index: 1;
}

.map-floating-bar {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 25;
    pointer-events: none;
}

.gps-live-badge,
.map-mini-btn {
    pointer-events: auto;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.9);
    color: #FFFFFF;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 99px;
    border: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.map-mini-btn {
    background: #FFFFFF;
    color: var(--text-main);
    cursor: pointer;
}

.passenger-bottom-sheet {
    flex-shrink: 0;
    max-height: 58%;
    overflow-y: auto;
    padding: 10px 12px;
    background: var(--bg-app);
    border-top: 1px solid var(--border-light);
}

.compact-sheet-card {
    padding: 13px;
}

.route-pill {
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 99px;
    white-space: nowrap;
}

.route-inputs-box {
    background: var(--bg-soft);
    border: 1.5px solid var(--border-light);
    border-radius: 12px;
    padding: 6px 10px;
    margin-bottom: 10px;
}

.route-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
}

.route-row + .route-row {
    border-top: 1px dashed var(--border-light);
}

.dot-origin,
.dot-dest {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-origin { background: var(--emerald); }
.dot-dest { background: var(--primary); }

.route-row input {
    flex: 1;
    min-width: 0;
    min-height: 36px;
    border: none;
    background: transparent;
    font-family: var(--font);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-main);
    outline: none;
}

.inline-chip {
    min-height: 34px;
    background: #FFFFFF;
    border: 1.5px solid var(--border-light);
    color: var(--primary);
    font-size: 0.74rem;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
}

.fare-payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.fare-offer-box label,
.pay-method-box label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-sub);
    margin-bottom: 4px;
}

.fare-Controls {
    display: flex;
    align-items: center;
    background: var(--bg-soft);
    border: 1.5px solid var(--border-light);
    border-radius: 10px;
    overflow: hidden;
    height: 44px;
}

.fare-Controls button {
    width: 40px;
    height: 100%;
    border: none;
    background: #E2E8F0;
    color: var(--text-main);
    font-size: 1.15rem;
    font-weight: 800;
    cursor: pointer;
}

.fare-Controls input {
    flex: 1;
    width: 100%;
    min-width: 0;
    border: none;
    background: transparent;
    text-align: center;
    font-family: var(--font);
    font-size: 0.94rem;
    font-weight: 800;
    color: var(--primary);
    outline: none;
}

.pay-method-box select {
    width: 100%;
    height: 44px;
    background: var(--bg-soft);
    border: 1.5px solid var(--border-light);
    border-radius: 10px;
    padding: 0 10px;
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-main);
}

.status-tag {
    display: inline-block;
    background: #FEF3C7;
    color: #92400E;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 99px;
}

.compact-route-summary {
    background: var(--bg-soft);
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--text-sub);
    margin-bottom: 10px;
}

.bids-list-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ==========================================================================
   4. MODO CONDUCTOR: RADAR + CONTROLES GRANDES PARA CAMBIAR PRECIO DE OFERTA
   ========================================================================== */
.driver-radar-card {
    background: linear-gradient(145deg, #0F172A 0%, #1E293B 100%);
    color: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 13px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.2);
    flex-shrink: 0;
}

.radar-visual-wrap {
    width: 72px;
    height: 72px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.radar-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.radar-circle.c1 { width: 72px; height: 72px; }
.radar-circle.c2 { width: 46px; height: 46px; border-color: rgba(56, 189, 248, 0.45); }

.radar-sweep {
    position: absolute;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(37, 99, 235, 0.55) 0deg, transparent 90deg);
    animation: radarSpin 2.6s linear infinite;
}

@keyframes radarSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.radar-center-icon {
    position: relative;
    z-index: 2;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.radar-info-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.radar-status-pill {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.66rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 99px;
}

.radar-status-pill.free {
    background: rgba(16, 185, 129, 0.2);
    color: #34D399;
}

.radar-status-pill.busy {
    background: rgba(245, 158, 11, 0.25);
    color: #FBBF24;
}

.pulse-green {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10B981;
}

.driver-radar-card h2 {
    font-size: 0.96rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.driver-radar-card p {
    font-size: 0.72rem;
    color: #94A3B8;
}

.radar-mini-actions {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.radar-mini-btn {
    min-height: 38px;
    flex: 1;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
    font-family: var(--font);
    font-size: 0.76rem;
    font-weight: 800;
    padding: 7px 10px;
    border-radius: 9px;
    cursor: pointer;
    white-space: nowrap;
}

/* CAJA TÁCTIL GRANDE PARA CAMBIAR EL PRECIO DE OFERTA DEL CONDUCTOR */
.driver-offer-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
}

.driver-price-stepper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.driver-price-stepper label {
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--text-sub);
    white-space: nowrap;
}

.stepper-group {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--primary-soft);
    border: 2px solid var(--primary);
    border-radius: 11px;
    overflow: hidden;
    height: 46px;
}

.stepper-btn {
    width: 46px;
    height: 100%;
    border: none;
    background: var(--primary);
    color: #FFFFFF;
    font-size: 1.3rem;
    font-weight: 800;
    cursor: pointer;
    flex-shrink: 0;
}

.stepper-btn:active {
    background: var(--primary-dark);
}

.stepper-input {
    flex: 1;
    width: 100%;
    min-width: 0;
    height: 100%;
    border: none;
    background: #FFFFFF;
    text-align: center;
    font-family: var(--font);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
    outline: none;
}

.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 2px;
}

.section-header-row h3 {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-main);
}

.count-pill {
    background: var(--primary);
    color: #FFFFFF;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 99px;
}

/* ==========================================================================
   5. CONDUCTORES EN MODO GALERÍA (2 COLUMNAS CON FOTO CARRO + RETRATO)
   ========================================================================== */
.drivers-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.driver-gallery-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}

.gallery-car-cover {
    position: relative;
    width: 100%;
    height: 96px;
    background: #0F172A;
}

.gallery-car-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.88;
}

.gallery-status-badge {
    position: absolute;
    top: 7px;
    right: 7px;
    font-size: 0.64rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 99px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.gallery-status-badge.free {
    background: #059669;
    color: #FFFFFF;
}

.gallery-status-badge.busy {
    background: #D97706;
    color: #FFFFFF;
}

.gallery-plate-badge {
    position: absolute;
    top: 7px;
    left: 7px;
    background: #0F172A;
    color: #FACC15;
    font-size: 0.66rem;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 6px;
    border: 1px solid rgba(250, 204, 21, 0.4);
}

.gallery-avatar-wrap {
    margin-top: -26px;
    padding: 0 10px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.gallery-driver-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #FFFFFF;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
    background: #FFFFFF;
}

.gallery-card-body {
    padding: 6px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    text-align: center;
}

.gallery-card-body h4 {
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-meta-line {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-sub);
}

.gallery-sub-line {
    font-size: 0.68rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-actions-col {
    margin-top: auto;
    padding-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gallery-btn {
    width: 100%;
    min-height: 40px;
    border-radius: 10px;
    font-family: var(--font);
    font-size: 0.76rem;
    font-weight: 800;
    padding: 8px;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.gallery-btn.car {
    background: var(--bg-soft);
    border: 1.5px solid var(--border-light);
    color: var(--text-main);
}

.gallery-btn.gps {
    background: var(--primary);
    color: #FFFFFF;
}

/* TARJETAS GENERALES DE CARRERAS Y OFERTAS */
.elite-cards-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.elite-item-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 12px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.driver-row-head {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.driver-photo-thumb {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    flex-shrink: 0;
}

.driver-main-meta {
    flex: 1;
    min-width: 0;
}

.driver-main-meta h4 {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.driver-badges-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 3px;
}

.tag-plate {
    background: #0F172A;
    color: #FACC15;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    white-space: nowrap;
}

.tag-dni {
    background: var(--bg-app);
    color: var(--text-sub);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    white-space: nowrap;
}

.tag-status-free {
    background: var(--emerald-soft);
    color: var(--emerald);
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    white-space: nowrap;
}

.tag-status-busy {
    background: #FEF3C7;
    color: #B45309;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    white-space: nowrap;
}

.card-actions-row {
    display: flex;
    gap: 8px;
}

.card-actions-row button,
.card-actions-row a {
    flex: 1;
    min-height: 42px;
    padding: 9px 10px;
    font-size: 0.8rem;
}

/* ==========================================================================
   6. RADIO WALKIE-TALKIE (CONTROLES GRANDES + MODALES)
   ========================================================================== */
.radio-clean-layout {
    width: 100%;
    height: 100%;
    padding: 10px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
}

.radio-top-card {
    padding: 12px;
    flex-shrink: 0;
}

.admin-radio-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.admin-radio-toolbar input {
    flex: 1;
    min-width: 0;
    min-height: 42px;
    background: var(--bg-soft);
    border: 1.5px solid var(--border-light);
    padding: 8px 12px;
    border-radius: 10px;
    font-family: var(--font);
    font-size: 0.82rem;
}

.channels-strip {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 8px;
}

.freq-pill {
    flex-shrink: 0;
    min-height: 38px;
    background: var(--bg-soft);
    border: 1.5px solid var(--border-light);
    border-radius: 10px;
    padding: 7px 12px;
    font-family: var(--font);
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--text-sub);
    cursor: pointer;
    white-space: nowrap;
}

.freq-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #FFFFFF;
}

.active-freq-banner {
    background: #0F172A;
    color: #FFFFFF;
    padding: 12px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.freq-main-info {
    min-width: 0;
}

.freq-tag {
    display: block;
    font-size: 0.62rem;
    font-weight: 800;
    color: #38BDF8;
    letter-spacing: 0.06em;
}

.freq-main-info h3 {
    font-size: 0.96rem;
    font-weight: 800;
}

.freq-mhz {
    font-size: 0.74rem;
    color: #94A3B8;
    display: block;
}

.freq-modal-triggers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.freq-trigger-btn {
    min-height: 42px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #FFFFFF;
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
}

/* Consola Central de Radio PTT */
.radio-ptt-center-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px;
    min-height: 290px;
}

.radio-controls-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.bt-pill-btn {
    min-height: 44px;
    background: var(--primary-soft);
    border: 1.5px solid #BFDBFE;
    color: var(--primary);
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
}

.bt-pill-btn.connected {
    background: var(--emerald-soft);
    border-color: #A7F3D0;
    color: var(--emerald);
}

.handsfree-pill {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--bg-soft);
    border: 1.5px solid var(--border-light);
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text-main);
    cursor: pointer;
}

.handsfree-pill input {
    width: 18px;
    height: 18px;
}

.giant-ptt-zone {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
}

.giant-ptt-button {
    width: 172px;
    height: 172px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #3B82F6 0%, #1D4ED8 70%, #1E3A8A 100%);
    border: 7px solid #DBEAFE;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.35);
    user-select: none;
    transition: transform 0.12s;
}

.giant-ptt-button:active,
.giant-ptt-button.talking {
    transform: scale(0.95);
    background: radial-gradient(circle at 30% 30%, #10B981 0%, #059669 75%, #064E3B 100%);
    border-color: #A7F3D0;
}

.ptt-mic-icon {
    font-size: 2.4rem;
}

.giant-ptt-button strong {
    font-size: 0.82rem;
    font-weight: 800;
    text-align: center;
    padding: 0 10px;
}

.giant-ptt-button small {
    font-size: 0.66rem;
    opacity: 0.9;
    text-align: center;
    padding: 0 14px;
}

.elite-sos-full-btn {
    width: 100%;
    min-height: 48px;
    background: linear-gradient(135deg, #E11D48 0%, #BE123C 100%);
    color: #FFFFFF;
    border: none;
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 800;
    padding: 12px 10px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 5px 16px rgba(225, 29, 72, 0.28);
}

.pass-inline-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.search-input-wrap input {
    width: 100%;
    min-height: 44px;
    background: var(--bg-soft);
    border: 1.5px solid var(--border-light);
    padding: 10px 12px;
    border-radius: 11px;
    font-family: var(--font);
    font-size: 0.84rem;
    outline: none;
}

/* ==========================================================================
   7. REPORTES Y PERFIL
   ========================================================================== */
.elite-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.metric-tile {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 10px 8px;
    text-align: center;
}

.metric-tile span {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 700;
}

.metric-tile strong {
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--primary);
}

.profile-photo-uploader {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-soft);
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.profile-avatar-lg {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    flex-shrink: 0;
}

.photo-upload-controls strong {
    display: block;
    font-size: 0.84rem;
    margin-bottom: 6px;
}

.elite-upload-btn {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    background: var(--primary);
    color: #FFFFFF;
    font-size: 0.76rem;
    font-weight: 800;
    padding: 7px 12px;
    border-radius: 9px;
    cursor: pointer;
}

.elite-driver-box {
    background: var(--bg-soft);
    border: 1px solid var(--border-light);
    padding: 12px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.car-photo-uploader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.car-preview-img {
    width: 100%;
    height: 135px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border-light);
}

.profile-actions-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.elite-chip-btn {
    min-height: 38px;
    background: var(--primary-soft);
    color: var(--primary);
    border: 1px solid #BFDBFE;
    font-family: var(--font);
    font-size: 0.76rem;
    font-weight: 800;
    padding: 7px 12px;
    border-radius: 9px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ==========================================================================
   8. BARRA INFERIOR DE NAVEGACIÓN TÁCTIL (64px)
   ========================================================================== */
.elite-bottom-nav {
    min-height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-shrink: 0;
    z-index: 40;
}

.bnav-btn {
    flex: 1;
    height: 64px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    min-width: 0;
}

.bnav-btn.active {
    color: var(--primary);
}

.bnav-ico {
    font-size: 1.25rem;
    line-height: 1;
}

.bnav-txt {
    font-size: 0.7rem;
    font-weight: 800;
    white-space: nowrap;
}

/* ==========================================================================
   9. MODALES
   ========================================================================== */
.elite-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(3px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

.elite-modal-card {
    width: 100%;
    max-width: 410px;
    max-height: 86vh;
    background: var(--bg-card);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.4);
}

.elite-modal-card.modal-lg {
    max-width: 460px;
}

.elite-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
}

.elite-modal-head h3 {
    font-size: 0.92rem;
    font-weight: 800;
}

.modal-x {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-soft);
    border-radius: 50%;
    font-size: 1.35rem;
    color: var(--text-main);
    cursor: pointer;
    line-height: 1;
}

.elite-modal-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
}

.modal-scroll-list {
    max-height: 60vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.peers-summary-strip {
    display: flex;
    gap: 8px;
}

.peer-stat {
    flex: 1;
    text-align: center;
    padding: 8px;
    border-radius: 9px;
    font-size: 0.78rem;
    font-weight: 800;
}

.peer-stat.online {
    background: var(--emerald-soft);
    color: var(--emerald);
}

.peer-stat.offline {
    background: var(--bg-app);
    color: var(--text-sub);
}

.modal-car-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
}

.modal-car-meta {
    font-size: 0.84rem;
    line-height: 1.5;
    color: var(--text-main);
}

.conclude-price-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-soft);
    color: var(--primary);
    padding: 10px 14px;
    border-radius: 11px;
    font-size: 0.82rem;
}

.conclude-price-banner strong {
    font-size: 1.2rem;
    font-weight: 800;
}

.elite-pay-box {
    background: var(--bg-soft);
    border: 1px solid var(--border-light);
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    line-height: 1.45;
}

.qr-center-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.74rem;
    color: var(--text-muted);
}

.elite-stars-picker {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.star-btn {
    border: none;
    background: transparent;
    font-size: 2rem;
    color: #CBD5E1;
    cursor: pointer;
}

.star-btn.active {
    color: #F59E0B;
}

/* Marcador GPS de Vehículo */
.gps-car-pin {
    background: #0F172A;
    color: #FFFFFF;
    border: 2px solid #2563EB;
    padding: 3px 8px;
    border-radius: 99px;
    font-family: var(--font);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.gps-car-pin.busy {
    border-color: #F59E0B;
    background: #78350F;
}

/* Toasts */
.elite-toast-container {
    position: fixed;
    top: calc(64px + env(safe-area-inset-top, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    width: 90%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
}

.elite-toast {
    background: #0F172A;
    color: #FFFFFF;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   10. MEJORAS FUNCIONALES Y ERGONÓMICAS v5.5
   ========================================================================== */
.live-speaker-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-soft);
    border: 1.5px solid var(--border-light);
    border-radius: 12px;
    padding: 8px 12px;
    transition: all 0.2s ease;
}

.live-speaker-banner.speaking {
    background: var(--emerald-soft);
    border-color: var(--emerald);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.16);
}

.live-speaker-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    flex-shrink: 0;
}

.live-speaker-banner.speaking .live-speaker-avatar {
    border-color: var(--emerald);
}

.live-speaker-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.live-speaker-tag {
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.live-speaker-banner.speaking .live-speaker-tag {
    color: var(--emerald);
}

.live-speaker-meta strong {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.online-switch-btn.online {
    background: rgba(5, 150, 105, 0.22) !important;
    border-color: rgba(16, 185, 129, 0.55) !important;
    color: #34D399 !important;
}

.online-switch-btn.resting {
    background: rgba(225, 29, 72, 0.22) !important;
    border-color: rgba(244, 63, 94, 0.55) !important;
    color: #FDA4AF !important;
}

.arrival-banner-green {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #FFFFFF;
    padding: 10px 12px;
    border-radius: 11px;
    font-size: 0.82rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.28);
}

.whatsapp-pill-btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: #DCFCE7;
    color: #15803D;
    border: 1.5px solid #86EFAC;
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 8px 12px;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
}

.copy-yape-btn {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: var(--primary-soft);
    color: var(--primary);
    border: 1px solid #BFDBFE;
    font-family: var(--font);
    font-size: 0.74rem;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 4px;
}

