:root {
  /* Tema CLARO Mantaxi (como la portada) */
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-2: #f4f5f7;
  --line: #e6e8ec;
  --ink: #141414;
  --muted: #6b7280;
  --danger: #ef4444;
  --star: #FFB300;
  --accent: #FFC107;
  --accent-ink: #141414;
  --glow: rgba(255,193,7,.30);
}
[data-rol="chofer"]   { --accent: #FFC107; --accent-ink: #141414; --glow: rgba(255,193,7,.30); }
[data-rol="pasajero"] { --accent: #FFC107; --accent-ink: #141414; --glow: rgba(255,193,7,.30); }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body {
  font-family: "Poppins", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--ink); overflow: hidden; -webkit-font-smoothing: antialiased;
}
h1 { letter-spacing: -.02em; }
.oculto { display: none !important; }
svg.ic, svg.fi, svg.doc-ic { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.pantalla { position: fixed; inset: 0; }
.pantalla:not(.activa) { display: none; }

/* ===== Botones ===== */
.btn { width: 100%; padding: 17px; font-size: 16px; font-weight: 800; font-family: inherit; border: 0; border-radius: 16px; cursor: pointer; transition: transform .05s, opacity .15s; }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .5; }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 12px 34px var(--glow); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--line); margin-top: 10px; }

/* ===== AUTH ===== */
#pantalla-auth { background: radial-gradient(130% 55% at 100% 0%, var(--glow), transparent 62%), var(--bg); }
.paso { position: absolute; inset: 0; overflow: hidden; }
.paso.oculto { display: none; }
.scroll { height: 100%; overflow-y: auto; overflow-x: hidden; padding: 16px 18px calc(26px + env(safe-area-inset-bottom)); }

.btn-atras { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.03); color: var(--ink); cursor: pointer; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; }
.btn-atras .ic { width: 22px; height: 22px; }

/* Hero */
.hero { position: relative; min-height: 116px; margin: 4px 0 20px; }
.hero-tx h1 { font-size: 30px; font-weight: 800; line-height: 1.08; margin: 0 0 8px; }
.hero-rol { color: var(--accent); }
.hero-sub { color: var(--muted); font-size: 14px; margin: 0; max-width: 62%; line-height: 1.45; }
.hero-art { position: absolute; right: -8px; top: -14px; width: 50%; max-width: 210px; color: var(--accent); pointer-events: none; }
.hero-art svg { width: 100%; height: auto; display: block; }

/* Toggle de rol */
.rol-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.rol-btn { display: flex; align-items: center; gap: 10px; text-align: left; padding: 14px; border-radius: 15px; border: 1.5px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; }
.rol-btn .ic { width: 20px; height: 20px; flex: none; color: var(--muted); }
.rol-btn b { display: block; font-size: 14px; }
.rol-btn small { color: var(--muted); font-size: 11.5px; }
.rol-btn.sel { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.rol-btn.sel .ic { color: var(--accent-ink); }
.rol-btn.sel small { color: var(--accent-ink); opacity: .85; }

/* Secciones */
.sec { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; margin: 24px 0 12px; }
.sec-ic { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; }
.sec-ic .ic { width: 17px; height: 17px; }

/* Campos */
.form { display: flex; flex-direction: column; gap: 10px; }
.field { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.field:focus-within { border-color: var(--accent); }
.field .fi { width: 20px; height: 20px; color: var(--muted); flex: none; }
.field input, .field select { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--ink); font-size: 16px; font-family: inherit; }
.field input::placeholder { color: var(--muted); }
.field.two .fb { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.field.two label { font-size: 12px; color: var(--muted); font-weight: 600; }
.field.two input, .field.two select { font-size: 15px; }
.field.mini { padding: 12px 10px; gap: 8px; }
.field.mini .fi { width: 17px; height: 17px; }
.ojo { background: none; border: 0; color: var(--muted); cursor: pointer; width: 26px; height: 26px; flex: none; padding: 0; }
.ojo .ic { width: 20px; height: 20px; }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238a8a92' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; padding-right: 20px; }
select option { background: var(--panel-2); color: var(--ink); }

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

/* Documentos */
.docs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.doc { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 15px 4px; border-radius: 15px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; }
.doc .doc-ic { width: 26px; height: 26px; color: var(--muted); margin-bottom: 2px; }
.doc b { font-size: 12px; }
.doc small { font-size: 10px; color: var(--muted); }
.doc-badge { position: absolute; top: -7px; right: -7px; width: 21px; height: 21px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; }
.doc-badge .ic { width: 14px; height: 14px; stroke-width: 2.5; }
.doc.ok { border-color: var(--accent); }
.doc.ok .doc-ic { color: var(--accent); }

/* Tarjeta ubicación */
.ubic-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 15px; border-radius: 15px; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); background: color-mix(in srgb, var(--accent) 9%, var(--panel)); color: var(--ink); cursor: pointer; }
.ubic-card .ic { width: 24px; height: 24px; color: var(--accent); flex: none; }
.ubic-card span { flex: 1; }
.ubic-card b { display: block; font-size: 14px; }
.ubic-card small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.ubic-card em { font-style: normal; color: var(--accent); font-weight: 800; white-space: nowrap; }

/* Términos */
.terminos { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--muted); margin: 20px 0 4px; }
.terminos input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; margin-top: 1px; }
.terminos a { color: var(--accent); font-weight: 600; text-decoration: none; }

.msg-error { color: var(--danger); font-size: 14px; margin: 12px 0 0; }
.pie { text-align: center; color: var(--muted); font-size: 14px; margin: 18px 0 8px; }
.pie a { color: var(--accent); font-weight: 700; text-decoration: none; }

.btn-accent { margin-top: 16px; }

/* ===== Portada Mantaxi (logo + taxi + playa, como el boceto) ===== */
.splash { display: flex; flex-direction: column; background: #ffffff; font-family: "Poppins", "Manrope", sans-serif; }
.sm-logo-box { flex: none; display: flex; align-items: center; justify-content: center; padding: 16px 18px 2px; }
.sm-logo-img { width: 74%; max-width: 290px; height: auto; }
.sm-taxi { flex: none; width: 100%; overflow: hidden; border-radius: 0 0 46% 46% / 0 0 16% 16%; box-shadow: 0 16px 30px rgba(0,0,0,.14); }
.sm-taxi img { width: 100%; height: 258px; object-fit: cover; object-position: center 62%; display: block; }
.sm-cta { flex: 1; display: flex; flex-direction: column; justify-content: center; background: #ffffff; padding: 14px 20px 4px; font-family: "Poppins", sans-serif; }
.sm-bottom { flex: none; position: relative; }
.sm-beach { width: 100%; height: auto; display: block; }
.sm-foot { position: absolute; left: 0; right: 0; bottom: calc(6px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: center; gap: 8px; color: #4d4d4d; font-size: 13px; font-weight: 500; }
.sm-foot .ic { width: 16px; height: 16px; color: #FFB300; }
.sm-scroll { text-align: center; color: #111111; padding: 24px 20px calc(14px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.sm-logo { width: 92px; margin: 2px auto 4px; }
.sm-logo svg { width: 100%; height: auto; display: block; }
.sm-word { font-family: "Poppins", sans-serif; font-weight: 800; font-size: 42px; letter-spacing: -.01em; line-height: 1; }
.sm-man { color: #111111; } .sm-taxi { color: #FFB300; }
.sm-tag { display: flex; align-items: center; justify-content: center; gap: 10px; color: #555; font-size: 13.5px; margin-top: 8px; font-weight: 500; }
.sm-tag i { width: 26px; height: 2px; background: #cfd2d8; display: inline-block; }
.sm-hero { width: 100%; max-width: 370px; margin: 16px auto 6px; }
.sm-hero svg, .sm-hero img { width: 100%; height: auto; display: block; border-radius: 24px; }
.sm-btn { width: 100%; display: flex; align-items: center; gap: 12px; padding: 17px 18px; border-radius: 16px; font-size: 16px; font-weight: 600; font-family: "Poppins", sans-serif; cursor: pointer; border: 1.5px solid transparent; margin-bottom: 12px; }
.sm-btn span { flex: 1; text-align: center; }
.sm-btn .ic { width: 22px; height: 22px; }
.sm-btn .sm-chev { width: 17px; height: 17px; opacity: .55; }
.sm-primary { background: linear-gradient(180deg, #FFC107, #FFB300); color: #111111; box-shadow: 0 10px 24px rgba(255,179,0,.35); }
.sm-outline { background: #fff; color: #111111; border-color: #e5e7eb; }
.sm-or { display: flex; align-items: center; gap: 12px; color: #9aa0a6; font-size: 13px; margin: 4px 0 14px; }
.sm-or span { flex: none; } .sm-or::before, .sm-or::after { content: ""; flex: 1; height: 1px; background: #e5e7eb; }
.sm-social { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sm-soc { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 14px; border-radius: 14px; background: #fff; border: 1.5px solid #e5e7eb; font-size: 15px; font-weight: 600; color: #111111; cursor: pointer; font-family: "Poppins", sans-serif; }
.g-mark { color: #4285F4; font-weight: 800; font-size: 18px; font-family: "Poppins", sans-serif; }
.fb-mark { width: 22px; height: 22px; border-radius: 50%; background: #1877F2; color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.sm-bottom { margin-top: 16px; }
.sm-beach { width: 100%; height: 60px; display: block; }
.sm-foot { display: flex; align-items: center; justify-content: center; gap: 8px; color: #6b7280; font-size: 13px; font-weight: 500; padding: 8px 0 2px; }
.sm-foot .ic { width: 16px; height: 16px; color: #FFB300; }

/* ===== APP / MAPA ===== */
/* Dentro de la app el acento es la marca (amarillo), sin importar el rol. */
#pantalla-app { --accent: #FFC107; --accent-ink: #141414; --glow: rgba(255,193,7,.26); }
#mapa { position: absolute; inset: 0; z-index: 1; background: #e9edf1; }
.leaflet-container { background: #e9edf1 !important; }

/* Botón recentrar (mira) */
.btn-localizar { position: absolute; top: calc(70px + env(safe-area-inset-top)); right: 16px; z-index: 550; width: 46px; height: 46px; border-radius: 12px; border: 0; background: #fff; color: #111; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.btn-localizar.oculto { display: none; }
.btn-localizar .ic { width: 24px; height: 24px; }

/* Pin de recogida (persona en cuadro negro + punto azul) */
.pin-recogida { position: relative; width: 40px; height: 54px; }
.pin-sq { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 36px; height: 36px; border-radius: 11px; background: #111318; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(0,0,0,.4); }
.pin-sq .ic { width: 22px; height: 22px; color: #fff; }
.pin-dot { position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%); width: 16px; height: 16px; border-radius: 50%; background: #2f80ed; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(47,128,237,.25); }

/* Globo "Punto de recogida" (tooltip Leaflet) */
.leaflet-tooltip.callout { background: #fff; color: #111318; border: 0; border-radius: 12px; padding: 8px 12px; box-shadow: 0 4px 16px rgba(0,0,0,.25); font-family: inherit; white-space: nowrap; }
.leaflet-tooltip.callout b { display: block; font-size: 11px; color: #6b7280; font-weight: 600; }
.leaflet-tooltip.callout span { font-size: 14px; font-weight: 700; }
.leaflet-tooltip.callout::before { border-top-color: #fff !important; }

/* Barra de título del flujo de viaje */
.barra-viaje { position: absolute; top: 0; left: 0; right: 0; z-index: 600; display: flex; align-items: center; gap: 12px; padding: 14px 16px calc(14px + env(safe-area-inset-top)); background: linear-gradient(180deg, var(--bg) 55%, transparent); }
.barra-viaje.oculto { display: none; }
.bv-atras { width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.bv-atras .ic { width: 24px; height: 24px; }
#bv-titulo { font-size: 18px; font-weight: 700; flex: 1; }
.bv-acciones { display: flex; gap: 8px; }
.btn-ancho:disabled { opacity: .45; }

/* Radar "buscando conductor" */
.radar { position: absolute; top: 30%; left: 50%; transform: translate(-50%,-50%); z-index: 400; width: 220px; height: 220px; pointer-events: none; }
.radar span { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: pulso 2.4s ease-out infinite; }
.radar span:nth-child(2) { animation-delay: .8s; }
.radar span:nth-child(3) { animation-delay: 1.6s; }
.radar .centro { position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--accent); opacity: 1; animation: none; box-shadow: 0 0 20px var(--glow); }
@keyframes pulso { 0% { transform: scale(.15); opacity: .9; } 100% { transform: scale(1); opacity: 0; } }
.leaflet-container { background: #0d0f13; font-family: inherit; }

.topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 500; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px calc(12px + env(safe-area-inset-top)); }
.topbar-info { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px 8px 8px; }
.avatar-mini { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.topbar-info strong { display: block; font-size: 14px; line-height: 1.1; }
.rol-badge { font-size: 11px; color: var(--accent); font-weight: 700; text-transform: capitalize; }
.topbar-acciones { display: flex; align-items: center; gap: 8px; }
.btn-icono { width: 42px; height: 42px; border-radius: 13px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-size: 18px; cursor: pointer; }

.switch { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); padding: 7px 12px; border-radius: 13px; cursor: pointer; }
.switch input { display: none; }
.switch .slider { width: 40px; height: 22px; background: #ccd2d9; border-radius: 20px; position: relative; transition: .2s; }
.switch .slider::before { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider::before { transform: translateX(18px); }
.switch-label { font-size: 13px; font-weight: 700; }

.hoja { position: absolute; left: 0; right: 0; bottom: 0; z-index: 500; background: var(--panel); border: 1px solid var(--line); border-bottom: 0; border-top-left-radius: 22px; border-top-right-radius: 22px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); box-shadow: 0 -14px 40px rgba(0,0,0,.5); max-height: 56vh; overflow-y: auto; }
.hoja::before { content: ""; display: block; width: 38px; height: 4px; border-radius: 4px; background: #dce0e5; margin: 0 auto 10px; }
.hoja:empty { display: none; }
.hoja h3 { margin: 0 0 4px; font-size: 20px; font-weight: 800; }
.hoja .sub { color: var(--muted); font-size: 14px; margin: 0 0 16px; }

.campo-dir { display: flex; align-items: center; gap: 12px; background: var(--panel-2); border-radius: 13px; padding: 13px 15px; margin-bottom: 10px; }
.campo-dir .punto { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.punto.verde { background: var(--accent); }
.punto.rojo { background: var(--danger); }
.campo-dir input { border: 0; background: transparent; padding: 0; font-size: 15px; width: 100%; color: var(--ink); font-family: inherit; }

.fila-tarifa { display: flex; justify-content: space-between; align-items: center; margin: 16px 0; padding: 14px 16px; background: color-mix(in srgb, var(--accent) 12%, var(--panel-2)); border-radius: 14px; }
.fila-tarifa .precio { font-size: 28px; font-weight: 800; color: var(--accent); }
.fila-tarifa .detalle { color: var(--muted); font-size: 13px; text-align: right; font-weight: 600; }

.btn-ancho { width: 100%; padding: 14px; font-size: 16px; font-weight: 800; border: 0; border-radius: 14px; cursor: pointer; font-family: inherit; }
.btn-verde, .btn-amarillo { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 28px var(--glow); }
.btn-rojo { background: transparent; color: var(--danger); border: 1.5px solid color-mix(in srgb, var(--danger) 45%, transparent); }
.btn-gris { background: var(--panel-2); color: var(--ink); border: 1px solid var(--line); }
.btn-ancho + .btn-ancho { margin-top: 10px; }

.tarjeta-persona { display: flex; align-items: center; gap: 12px; background: var(--panel-2); border-radius: 16px; padding: 13px 15px; margin: 12px 0; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; flex: none; }
.tarjeta-persona .datos { flex: 1; }
.tarjeta-persona .datos b { display: block; font-size: 15px; }
.tarjeta-persona .datos small { color: var(--muted); }
.estrellas { color: var(--star); font-weight: 700; }
.btn-llamar { text-decoration: none; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; font-size: 20px; }

.estado-pill { display: inline-block; padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 700; background: color-mix(in srgb, var(--accent) 16%, var(--panel-2)); color: var(--accent); margin-bottom: 10px; }
.spinner { width: 30px; height: 30px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: giro 1s linear infinite; margin: 10px auto; }
@keyframes giro { to { transform: rotate(360deg); } }

/* Modal / toast */
.modal { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; justify-content: center; }
.modal-caja { width: 100%; max-width: 460px; background: var(--panel); border: 1px solid var(--line); border-top-left-radius: 24px; border-top-right-radius: 24px; padding: 24px 22px calc(24px + env(safe-area-inset-bottom)); }
.modal-caja h3 { margin: 0 0 14px; font-size: 20px; font-weight: 800; }
.estrellas-select { display: flex; justify-content: center; gap: 10px; margin: 16px 0; font-size: 40px; }
.estrellas-select span { cursor: pointer; filter: grayscale(1) opacity(.35); }
.estrellas-select span.on { filter: none; }
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2000; background: #000; color: #fff; padding: 13px 20px; border-radius: 14px; font-size: 14px; font-weight: 600; border: 1px solid var(--line); max-width: 90%; text-align: center; }
.marker-emoji { font-size: 30px; text-align: center; line-height: 1; filter: drop-shadow(0 3px 4px rgba(0,0,0,.5)); }

/* ===== Flujo de viaje (sheets) ===== */
.buscar-box { display: flex; align-items: center; gap: 10px; background: var(--panel-2); border-radius: 13px; padding: 13px 15px; margin-bottom: 12px; }
.buscar-box .ic { width: 20px; height: 20px; color: var(--muted); flex: none; }
.buscar-box input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--ink); font-size: 15px; font-family: inherit; }
.buscar-box input::placeholder { color: var(--muted); }
.sheet-label { font-size: 13px; color: var(--muted); font-weight: 600; margin: 12px 0 6px; }
.ruta-box { background: var(--panel-2); border-radius: 14px; padding: 2px 14px; }
.ruta-fila { display: flex; align-items: center; gap: 12px; padding: 11px 0; }
.ruta-fila + .ruta-fila { border-top: 1px solid var(--line); }
.ruta-fila .rp { width: 22px; height: 22px; flex: none; display: flex; align-items: center; justify-content: center; }
.ruta-fila .rp .ic { width: 20px; height: 20px; }
.rp.azul { color: #3b82f6; } .rp.rojo { color: var(--danger); }
.ruta-fila .rt { flex: 1; min-width: 0; }
.ruta-fila .rt label { display: block; font-size: 12px; color: var(--muted); }
.ruta-fila .rt b { font-size: 15px; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ruta-fila .chev { width: 18px; height: 18px; color: var(--muted); flex: none; }

.opcion-fila { display: flex; align-items: center; gap: 12px; background: var(--panel-2); border-radius: 14px; padding: 11px 13px; }
.opcion-fila .oic { width: 36px; height: 36px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 14%, var(--panel)); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.opcion-fila .oic .ic { width: 22px; height: 22px; }
.opcion-fila .ot { flex: 1; } .opcion-fila .ot b { display: block; font-size: 15px; } .opcion-fila .ot small { color: var(--muted); font-size: 13px; }
.opcion-fila .chev { width: 18px; height: 18px; color: var(--muted); }
.opcion-fila.sel { border: 1.5px solid var(--accent); }

/* Selector de método de pago (2 opciones) */
.pago-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pago-op { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--panel-2); border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 8px; color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; font-family: inherit; }
.pago-op .ic { width: 20px; height: 20px; color: var(--muted); flex: none; }
.pago-op.sel { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--panel-2)); }
.pago-op.sel .ic { color: var(--accent); }

/* Tarjeta del conductor */
.chofer-card { display: flex; align-items: center; gap: 12px; padding: 4px 0 14px; border-bottom: 1px solid var(--line); }
.chofer-card .avatar { width: 52px; height: 52px; font-size: 22px; }
.chofer-card .cc-datos { flex: 1; }
.chofer-card .cc-datos b { font-size: 16px; display: flex; align-items: center; gap: 6px; }
.chofer-card .cc-datos small { color: var(--muted); font-size: 13px; }
.cc-rating { color: var(--star); font-weight: 700; font-size: 14px; margin-left: auto; }
.eta { text-align: center; padding: 16px 0; }
.eta small { color: var(--muted); font-size: 14px; }
.eta b { display: block; font-size: 26px; font-weight: 800; }
.acciones-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Finalizado */
.fin-ok { width: 84px; height: 84px; margin: 6px auto 14px; color: #22c55e; }
.fin-ok .ic { width: 84px; height: 84px; stroke-width: 2; }
.fin-titulo { text-align: center; font-size: 22px; font-weight: 800; margin: 0 0 4px; }
.fin-sub { text-align: center; color: var(--muted); margin: 0 0 18px; }
.fin-total { text-align: center; padding: 16px; background: var(--panel-2); border-radius: 14px; margin-bottom: 18px; }
.fin-total small { color: var(--muted); font-size: 14px; }
.fin-total b { display: block; font-size: 30px; font-weight: 800; color: #22c55e; }
.cal-titulo { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.cal-comentario { width: 100%; background: var(--panel-2); border: 1px solid var(--line); border-radius: 13px; padding: 13px; color: var(--ink); font-family: inherit; font-size: 15px; resize: none; margin-bottom: 14px; }

/* ===== Conductor: lista de solicitudes (sin mapa) ===== */
#pantalla-app.modo-chofer #mapa { display: none; }
#pantalla-app.modo-chofer .hoja { top: 76px; bottom: 0; max-height: none; border-radius: 20px 20px 0 0; box-shadow: none; }
#pantalla-app.modo-chofer .hoja::before { display: none; }
.lista-titulo { font-size: 19px; font-weight: 800; margin: 2px 2px 10px; display: flex; align-items: center; gap: 9px; }
.lista-titulo span { background: var(--accent); color: var(--accent-ink); font-size: 13px; padding: 2px 10px; border-radius: 20px; }

/* Filas de solicitud estilo inDriver */
.sol-row { display: flex; align-items: center; gap: 14px; padding: 16px 2px; border-bottom: 1px solid #eef0f2; background: #fff; cursor: pointer; }
.sol-row:active { background: #fafafa; }
.sol-left { width: 58px; flex: none; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; }
.sol-left .avatar { width: 48px; height: 48px; margin-bottom: 2px; }
.sol-left b { font-size: 12.5px; font-weight: 700; max-width: 58px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sol-left .estrellas { font-size: 11.5px; }
.sol-time { font-size: 10.5px; color: var(--muted); }
.sol-right { flex: 1; min-width: 0; }
.sol-dist { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-bottom: 5px; }
.sol-pick { font-size: 16px; font-weight: 800; color: var(--ink); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sol-pago2 { display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; font-size: 12px; font-weight: 700; background: var(--panel-2); padding: 5px 11px; border-radius: 20px; }
.sol-pago2 .ic { width: 15px; height: 15px; color: var(--accent-text); }
.sol-chev { width: 20px; height: 20px; color: #c7c7c7; flex: none; align-self: center; }
#pantalla-app.modo-chofer #btn-localizar { display: none; }

.chofer-vacio { text-align: center; padding: 46px 20px; }
.chofer-vacio h3 { margin: 14px 0 6px; font-size: 20px; }
.cv-ic { font-size: 46px; }

@media (min-width: 520px) {
  .scroll, .modal-caja, .hoja { max-width: 460px; margin-left: auto; margin-right: auto; }
}

/* ============ TEMA CLARO: barra, menú lateral, verificaciones ============ */
:root { --accent-text: #a67c00; }
.pie a, .terminos a { color: var(--accent-text); }
.fila-tarifa .precio { color: var(--accent-text); }
.estado-pill { background: #fff8e1; color: var(--accent-text); }
.sol-pago2 { color: var(--accent-text); }
.sol-pick { color: #141414; }
.toast { background: #141414; border-color: #141414; }

/* Barra superior */
.appbar { position: absolute; top: 0; left: 0; right: 0; z-index: 600; display: flex; align-items: center; gap: 12px; padding: 12px 14px calc(12px + env(safe-area-inset-top)); background: linear-gradient(180deg, #ffffff 62%, rgba(255,255,255,0)); }
.appbar.oculto { display: none; }
.ab-menu { width: 44px; height: 44px; border-radius: 13px; border: 1px solid var(--line); background: #fff; color: #141414; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 12px rgba(0,0,0,.08); flex: none; }
.ab-menu .ic { width: 24px; height: 24px; }
#bv-titulo { font-size: 18px; font-weight: 700; flex: 1; color: #141414; }
#pantalla-app.modo-chofer .appbar { background: #ffffff; border-bottom: 1px solid var(--line); }

/* Menú lateral (drawer) */
.drawer-bg { position: fixed; inset: 0; z-index: 900; background: rgba(0,0,0,.4); }
.drawer-bg.oculto { display: none; }
.drawer { position: fixed; top: 0; left: 0; bottom: 0; z-index: 1000; width: 84%; max-width: 340px; background: #fff; box-shadow: 8px 0 40px rgba(0,0,0,.22); transform: translateX(-106%); transition: transform .25s ease; display: flex; flex-direction: column; padding: calc(20px + env(safe-area-inset-top)) 18px calc(16px + env(safe-area-inset-bottom)); font-family: "Poppins", sans-serif; }
.drawer.abierto { transform: none; }
.dw-perfil { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.dw-avatar { width: 54px; height: 54px; border-radius: 50%; background: var(--accent); color: #141414; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; background-size: cover; background-position: center; flex: none; }
.dw-datos { flex: 1; min-width: 0; }
.dw-datos b { display: block; font-size: 16px; }
.dw-datos small { color: var(--muted); }
.dw-edit { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line); background: #fff; color: #6b7280; cursor: pointer; flex: none; }
.dw-edit .ic { width: 18px; height: 18px; }
.dw-verif { display: inline-flex; align-items: center; gap: 6px; margin: 12px 0 2px; font-size: 12.5px; font-weight: 700; color: #b8860b; background: #fff8e1; padding: 7px 11px; border-radius: 20px; align-self: flex-start; }
.dw-verif.oculto { display: none; }
.dw-verif .ic { width: 15px; height: 15px; }
.dw-nav { flex: 1; display: flex; flex-direction: column; margin-top: 6px; overflow-y: auto; }
.dw-item { display: flex; align-items: center; gap: 14px; padding: 15px 4px; border: 0; background: none; color: #141414; font-size: 15.5px; font-family: inherit; cursor: pointer; text-align: left; border-bottom: 1px solid #f1f2f4; }
.dw-item .ic { width: 22px; height: 22px; color: #6b7280; flex: none; }
.dw-item span { flex: 1; }
.dw-item em { color: var(--muted); font-style: normal; font-size: 14px; }
.dw-modo { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 15px; border-radius: 14px; border: 0; background: var(--accent); color: #141414; font-weight: 800; font-size: 16px; font-family: inherit; cursor: pointer; margin-top: 12px; box-shadow: 0 10px 24px var(--glow); }
.dw-modo .ic { width: 22px; height: 22px; }
.dw-salir { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--danger); font-weight: 700; font-family: inherit; cursor: pointer; margin-top: 10px; }
.dw-salir .ic { width: 20px; height: 20px; }

/* Verificación facial */
.vf-video { width: 170px; height: 170px; border-radius: 50%; object-fit: cover; display: block; margin: 12px auto; background: #000; transform: scaleX(-1); }
.vf-video.oculto { display: none; }
.vf-face { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px; margin: 12px 0; border: 1.5px dashed var(--line); border-radius: 16px; color: var(--muted); }
.vf-face.ok { border-color: #22c55e; color: #16a34a; background: #f0fdf4; }
.vf-face.oculto { display: none; }
.vf-face .ic { width: 42px; height: 42px; }

/* Editar perfil */
.ep-foto { position: relative; width: 94px; height: 94px; border-radius: 50%; margin: 4px auto; background: var(--panel-2); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 34px; color: #141414; cursor: pointer; overflow: hidden; }
.ep-foto img { width: 100%; height: 100%; object-fit: cover; }
.ep-cam { position: absolute; right: 2px; bottom: 2px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.ep-cam .ic { width: 17px; height: 17px; color: #141414; }

/* Auth (registro/login) claro */
.auth { display: flex; flex-direction: column; }
.auth-head { text-align: center; margin: 2px 0 18px; }
.auth-logo { width: 168px; max-width: 60%; height: auto; margin: 6px auto 2px; display: block; }
.auth-title { font-size: 24px; font-weight: 800; margin: 4px 0 4px; }
.auth-sub { color: var(--muted); font-size: 14px; margin: 0; }

/* Óvalo de estado (Ocupado / Libre) igual a inDriver */
.pill-estado { position: relative; width: 200px; height: 44px; border-radius: 24px; border: 1.6px solid var(--danger); background: #fff; padding: 0; cursor: pointer; flex: none; transition: border-color .24s; }
.pill-estado.oculto { display: none; }
.pill-estado.libre { border-color: #16a34a; }
.pe-knob { position: absolute; top: 3px; left: 3px; height: 36px; width: 56%; border-radius: 21px; display: flex; align-items: center; justify-content: center; font-family: "Poppins", inherit; font-weight: 700; font-size: 15px; color: #fff; background: var(--danger); transition: left .24s ease, background .24s; }
.pill-estado.libre .pe-knob { left: 40%; background: #16a34a; }
#pantalla-app.modo-chofer #bv-titulo { display: none; }
#pantalla-app.modo-chofer .pill-estado { margin: 0 auto; }

/* Barra inferior del conductor */
.nav-cond { position: absolute; left: 0; right: 0; bottom: 0; z-index: 620; display: flex; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 20px rgba(0,0,0,.05); }
.nav-cond.oculto { display: none; }
.nc-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 0 9px; border: 0; background: none; color: #9aa0a6; font-family: "Poppins", inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.nc-item .ic { width: 23px; height: 23px; }
.nc-item.activa { color: #141414; }
.nc-item.activa .ic { color: var(--accent-text); }
#pantalla-app.modo-chofer .hoja { bottom: 62px; }

/* Desempeño */
.desempeno { padding: 4px 2px; }
.desempeno h3 { font-size: 19px; font-weight: 800; margin: 2px 0 14px; }
.dp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dp-card { background: #f6f7f9; border-radius: 16px; padding: 16px; }
.dp-card b { display: block; font-size: 26px; font-weight: 800; color: #141414; }
.dp-card small { color: var(--muted); font-size: 13px; }
.dp-card.amar { background: color-mix(in srgb, var(--accent) 16%, #fff); }

/* Banner de ubicación apagada (pasajero) */
.banner-ubic { position: absolute; top: 0; left: 0; right: 0; z-index: 700; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; background: var(--accent); color: #141414; border: 0; cursor: pointer; font-family: "Poppins", inherit; }
.banner-ubic.oculto { display: none; }
.banner-ubic b { font-size: 16px; font-weight: 800; }
.banner-ubic span { font-size: 13px; }
#pantalla-app.con-banner .appbar { top: 68px; }

/* Detalle de solicitud (conductor): mapa + aceptar */
.sol-detalle { position: fixed; inset: 0; z-index: 800; background: #fff; display: flex; flex-direction: column; }
.sol-detalle.oculto { display: none; }
.det-mapa { flex: 1; min-height: 0; background: #e9edf1; }
.sd-titulo { position: absolute; top: calc(14px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); background: #fff; padding: 9px 20px; border-radius: 22px; font-weight: 700; font-size: 16px; box-shadow: 0 3px 14px rgba(0,0,0,.14); z-index: 810; }
.sd-info { background: #fff; padding: 16px 20px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -12px 32px rgba(0,0,0,.12); border-radius: 22px 22px 0 0; margin-top: -20px; position: relative; z-index: 810; }
.sd-dist { text-align: center; color: var(--muted); font-size: 14px; font-weight: 600; margin: 8px 0 12px; }

/* Fila de dirección (pin pequeño + texto) */
.sol-dir { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--ink); margin: 6px 0; }
.sol-dir .ic { width: 20px; height: 20px; color: #16a34a; flex: none; }
.sol-dir span { flex: 1; min-width: 0; }

/* Pantalla de Configuración (tipo inDriver) */
.cfg-screen { position: fixed; inset: 0; z-index: 850; background: #f4f5f7; display: flex; flex-direction: column; font-family: "Poppins", sans-serif; }
.cfg-screen.oculto { display: none; }
.cfg-bar { display: flex; align-items: center; gap: 6px; padding: calc(14px + env(safe-area-inset-top)) 14px 14px; background: #fff; border-bottom: 1px solid var(--line); }
.cfg-bar span { font-size: 18px; font-weight: 700; }
.cfg-back { width: 40px; height: 40px; border: 0; background: none; color: #141414; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cfg-back .ic { width: 24px; height: 24px; }
.cfg-body { flex: 1; overflow-y: auto; padding: 16px; }
.cfg-modo { background: #fff; border-radius: 16px; padding: 16px; margin-bottom: 12px; }
.cfg-row { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 16px; margin-bottom: 14px; }
.cfg-row .ic { width: 22px; height: 22px; color: #141414; }
.seg { display: flex; gap: 8px; }
.seg button { flex: 1; padding: 12px; border-radius: 22px; border: 0; background: #f0f1f3; color: #444; font-family: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
.seg button.sel { background: #141414; color: #fff; }
.cfg-item { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 16px; padding: 16px; margin-bottom: 12px; width: 100%; text-align: left; border: 0; font-family: inherit; }
.cfg-item > .ic { width: 24px; height: 24px; color: #141414; flex: none; }
.cfg-tx { flex: 1; min-width: 0; }
.cfg-tx b { display: block; font-size: 15px; font-weight: 700; }
.cfg-tx small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.cfg-tap { cursor: pointer; }
.cfg-chev { width: 18px; height: 18px; color: var(--muted); flex: none; }
.sw2 { position: relative; width: 48px; height: 28px; flex: none; }
.sw2 input { display: none; }
.sw2 span { position: absolute; inset: 0; background: #d3d6db; border-radius: 20px; transition: .2s; }
.sw2 span::before { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.sw2 input:checked + span { background: #141414; }
.sw2 input:checked + span::before { transform: translateX(20px); }
