/* =====================================================================
   Estilos del Portal de Agentes - mismos colores que la maqueta
   (azul CSISA #0b4f7c -> verde azulado #0f8b8d). Pensado primero para
   celular; en computadora se centra en una columna cómoda.
   ===================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Inter, Roboto, Arial, sans-serif; background: #f3f7fa; color: #12324a; min-height: 100vh; }
.contenedor { max-width: 560px; margin: 0 auto; min-height: 100vh; background: #f3f7fa; padding-bottom: 40px; }

/* Encabezado */
.hd { background: linear-gradient(135deg, #0b4f7c, #0f8b8d); color: #fff; padding: 18px 20px 26px; }
.hd h1 { font-size: 19px; }
.hd p { font-size: 13.5px; opacity: .92; margin-top: 4px; }
.hd .fila { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ro { display: inline-block; margin-top: 8px; font-size: 11.5px; background: rgba(255,255,255,.2); padding: 3px 9px; border-radius: 10px; }
.btn-link { background: none; border: 0; color: #fff; font-size: 13.5px; cursor: pointer; opacity: .92; padding: 4px 0; }
.btn-link:hover { opacity: 1; text-decoration: underline; }

/* Buscador */
.se { margin: -16px 16px 10px; position: relative; }
.se input { width: 100%; border: 0; background: #fff; border-radius: 14px; padding: 13px 14px; font-size: 15px; color: #12324a; box-shadow: 0 4px 12px rgba(0,0,0,.08); outline: none; }
.se input:focus { box-shadow: 0 0 0 2px #0f8b8d, 0 4px 12px rgba(0,0,0,.08); }

.sec { font-size: 12px; color: #678; margin: 14px 20px 4px; text-transform: uppercase; letter-spacing: .5px; }

/* Tarjeta de cliente en la lista */
.cd { background: #fff; margin: 8px 16px; border-radius: 14px; padding: 13px 15px; display: flex; justify-content: space-between; align-items: center; gap: 10px; box-shadow: 0 2px 6px rgba(0,0,0,.05); cursor: pointer; text-decoration: none; color: inherit; }
.cd:hover { box-shadow: 0 3px 10px rgba(0,0,0,.1); }
.cd b { font-size: 15px; color: #12324a; }
.cd small { display: block; color: #678; font-size: 12.5px; margin-top: 3px; }
.bd { font-size: 11px; padding: 4px 8px; border-radius: 9px; background: #e0f4f3; color: #0b7a7c; font-weight: 600; text-align: center; white-space: nowrap; }
.bd.w { background: #fff1dc; color: #b06a00; }

/* Detalle */
.box { background: #fff; margin: 8px 16px; border-radius: 14px; box-shadow: 0 2px 6px rgba(0,0,0,.05); }
.f { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; border-bottom: 1px solid #eef2f5; font-size: 14px; }
.f:last-child { border-bottom: 0; }
.f span { color: #678; }
.f b { color: #12324a; text-align: right; }
.chip { font-size: 11px; padding: 3px 8px; border-radius: 9px; background: #fde3e3; color: #c0392b; margin-left: 6px; font-weight: 600; }
.chip.ok { background: #e0f4f3; color: #0b7a7c; }
.tel { color: #fff; text-decoration: none; }
.tel:hover { text-decoration: underline; }
.gris { color: #678; font-weight: 400; font-size: 12px; }

.vacio, .error { margin: 24px 20px; text-align: center; color: #678; font-size: 14px; }
.error { color: #c0392b; }
.ft { text-align: center; font-size: 11.5px; color: #8a9aa6; margin-top: 22px; padding: 0 20px; }

/* Login */
.login { max-width: 400px; margin: 0 auto; padding: 0 0 40px; }
.login .tarjeta { background: #fff; margin: -16px 16px 0; border-radius: 16px; padding: 22px 20px; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.login label { display: block; font-size: 13px; color: #678; margin: 12px 0 4px; }
.login input { width: 100%; border: 1px solid #d5dee5; border-radius: 10px; padding: 11px 12px; font-size: 15px; }
.login button.primario { width: 100%; margin-top: 16px; background: #0b4f7c; color: #fff; border: 0; border-radius: 10px; padding: 12px; font-size: 15px; font-weight: 600; cursor: pointer; }
.login button.primario:hover { background: #0f8b8d; }
.separador { text-align: center; color: #8a9aa6; font-size: 12px; margin: 18px 0 6px; }
#boton-google { display: flex; justify-content: center; min-height: 44px; }
.oculto { display: none !important; }

/* ---------- v2: logo, etiquetas Individual/Flota, vehículos ---------- */
.hd { position: relative; padding-right: 116px; }
.hd .logo { position: absolute; top: 12px; right: 14px; background: #fff; border-radius: 8px; padding: 4px 6px; line-height: 0; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.hd .logo img { width: 86px; height: auto; display: block; }
.placa { display: inline-block; font-weight: 700; font-size: 12.5px; color: #12324a; background: #f3f7fa; border: 1px solid #d5dee5; padding: 1px 7px; border-radius: 6px; letter-spacing: .3px; white-space: nowrap; }
.hd .placa { color: #12324a; background: #fff; font-size: 14px; }
.placa.sin { font-weight: 400; color: #8a9aa6; }
.hd h1 { margin-top: 6px; }
.badge-hd { margin-top: 8px; }
.tipo { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .3px; padding: 2px 8px; border-radius: 8px; margin-bottom: 4px; text-transform: uppercase; }
.tipo.ind { background: #e3eef8; color: #0b4f7c; }
.tipo.flota { background: #fff1dc; color: #a35a00; }
.hd .tipo.ind { background: rgba(255,255,255,.9); }
.hd .tipo.flota { background: #ffe2b5; }
.cd.veh { justify-content: flex-start; align-items: center; }
.cd.veh .ico { font-size: 22px; }
.cd.veh .cuerpo { flex: 1; }
.cd.veh .monto { text-align: right; font-weight: 700; font-size: 13.5px; color: #12324a; white-space: nowrap; }
.cd.veh .monto small { display: block; font-weight: 400; font-size: 11px; }
.res { display: grid; grid-template-columns: 1fr 1fr; }
.res .g { padding: 11px 14px; border-bottom: 1px solid #eef2f5; }
.res .g:nth-child(odd) { border-right: 1px solid #eef2f5; }
.res .g > span { display: block; font-size: 11.5px; color: #678; }
.res .g b { font-size: 15px; }
.se2 { margin: 12px 16px 2px; }
.se2 input { width: 100%; border: 1px solid #d5dee5; background: #fff; border-radius: 12px; padding: 12px 14px; font-size: 15px; outline: none; }
.se2 input:focus { border-color: #0f8b8d; box-shadow: 0 0 0 2px rgba(15,139,141,.2); }
.lin { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 11px 16px; border-bottom: 1px solid #eef2f5; text-decoration: none; color: #12324a; font-size: 14px; }
.lin:last-child { border-bottom: 0; }
.lin small { color: #678; }
.lin .pl { font-size: 12px; color: #678; background: #f3f7fa; padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.nada { margin: 18px 16px; padding: 18px; background: #fff; border-radius: 14px; text-align: center; color: #678; font-size: 13.5px; line-height: 1.5; }
.nada b { color: #12324a; }
.demo { margin: 12px auto 0; width: max-content; font-size: 11px; color: #a35a00; background: #fff1dc; padding: 3px 10px; border-radius: 8px; }
.aviso { background: #e0f4f3; color: #0b7a7c; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin-bottom: 8px; }
.cd .tipo { display: table; }
