/* =========================================================
   DSP Workers Orlando — Sistema de diseño
   Paleta: Azul oscuro #0B3D91 · Turquesa #00C2A8 · Azul claro #E6F7FF
   ========================================================= */
:root {
    --navy: #0B3D91;
    --navy-900: #0A2A5E;
    --navy-950: #082149;
    --teal: #00C2A8;
    --teal-600: #00A891;
    --sky: #E6F7FF;
    --bg: #F4F8FC;
    --white: #FFFFFF;
    --text: #1B2A41;
    --muted: #6B7A90;
    --border: #E2E8F0;
    --danger: #E5243B;
    --success: #12B76A;
    --warning: #F5A524;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(16, 24, 40, .06);
    --sidebar-w: 248px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--teal-600); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; color: var(--navy-900); }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border-radius: 10px; border: 1.5px solid transparent;
    font: 600 14px/1.2 inherit; font-family: inherit; cursor: pointer;
    transition: background .15s, color .15s, border-color .15s, transform .05s;
    text-align: center; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-xs { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-900); color: #fff; }
.btn-accent { background: var(--teal); color: #fff; }
.btn-accent:hover { background: var(--teal-600); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--sky); color: var(--navy); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #C81E32; color: #fff; }
.btn-soft { background: var(--sky); color: var(--navy); }
.btn-soft:hover { background: #D3EEFC; color: var(--navy); }
.icon-btn { background: none; border: 0; padding: 6px; color: inherit; cursor: pointer; border-radius: 8px; display: inline-flex; }
.icon-btn:hover { background: rgba(11, 61, 145, .08); }
.icon-btn .icon { width: 24px; height: 24px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); }
.logo-mark { width: 34px; height: 40px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text strong { font-size: 17px; color: var(--navy); }
.logo-text span { font-size: 16px; font-weight: 500; color: var(--teal); }
.logo-light .logo-text strong { color: #fff; }
.logo-light .logo-mark path:first-child { fill: #fff; }
.logo-light .logo-mark circle { fill: var(--navy); }

/* ---------- Topbar público ---------- */
.topbar { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.topnav { display: flex; align-items: center; gap: 28px; }
.topnav > a { color: var(--text); font-weight: 500; font-size: 14px; }
.topnav > a:hover { color: var(--teal-600); }
.topnav-actions { display: flex; gap: 10px; margin-left: 12px; }
.lang-switch { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: 999px; padding: 2px; background: #fff; }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 32px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.lang-switch a:hover { color: var(--navy); }
.lang-switch a.active { background: var(--navy); color: #fff; }
.lang-switch a:focus-visible { outline: 3px solid rgba(0,194,168,.35); outline-offset: 1px; }
.menu-toggle { display: none; color: var(--navy); }

/* ---------- Hero ---------- */
.hero {
    position: relative; color: #fff; overflow: hidden;
    background: linear-gradient(90deg, rgba(8,33,73,.96) 0%, rgba(11,61,145,.82) 45%, rgba(11,61,145,.15) 100%),
                var(--hero-img) center/cover no-repeat, var(--navy);
}
.hero-inner { padding: 88px 20px 96px; max-width: 1200px; margin: 0 auto; }
.hero h1 { color: #fff; font-size: clamp(30px, 4.4vw, 46px); max-width: 560px; margin-bottom: 18px; }
.hero p { max-width: 500px; font-size: 16px; color: rgba(255,255,255,.88); margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Secciones ---------- */
.section { padding: 56px 0; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: -56px; position: relative; z-index: 2; }
.feature { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.feature .icon { width: 30px; height: 30px; color: var(--navy); margin-bottom: 14px; }
.feature h3 { font-size: 15px; margin-bottom: 4px; }
.feature p { font-size: 13px; color: var(--muted); margin: 0; }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.panel-soft { background: #EEF6FD; border-radius: var(--radius-lg); padding: 28px; }
.panel-soft h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.panel-soft h2 .icon { color: var(--navy); width: 24px; height: 24px; }
.zone-list { columns: 3; column-gap: 24px; padding-left: 18px; margin: 16px 0 0; font-size: 14px; }
.zone-list li { margin-bottom: 8px; break-inside: avoid; }
.zone-list li::marker { color: var(--navy); }
.steps { list-style: none; padding: 0; margin: 16px 0 0; }
.steps li { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 14px; }
.steps .num { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 13px; flex-shrink: 0; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 12px; }
.faq summary { font-weight: 600; cursor: pointer; color: var(--navy-900); }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.section-title { font-size: 26px; text-align: center; margin-bottom: 28px; }

.site-footer { background: var(--navy-950); color: rgba(255,255,255,.8); padding: 26px 0; font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 0; }
.footer-links a { color: rgba(255,255,255,.85); padding: 0 16px; border-right: 1px solid rgba(255,255,255,.3); }
.footer-links a:first-child { padding-left: 0; }
.footer-links a:last-child { border-right: 0; }
.footer-links a:hover { color: var(--teal); }

/* ---------- Tarjetas y formularios ---------- */
.card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid #EDF1F6; }
.card-body { padding: 24px; }
.card-title { font-size: 16px; margin-bottom: 16px; }
.auth-page { min-height: calc(100vh - 72px); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; }
.auth-card { width: 100%; max-width: 560px; }
.auth-card.narrow { max-width: 440px; }
.auth-card .card-body { padding: 32px; }
.auth-card h1 { font-size: 24px; margin-bottom: 4px; }
.auth-card .lead { color: var(--muted); margin-bottom: 24px; font-size: 14px; }
.auth-foot { text-align: center; font-size: 13px; margin-top: 18px; color: var(--muted); }
.auth-foot a { font-weight: 600; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 16px; }
.field > label, .label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.field .req { color: var(--danger); }
.field .opt { color: var(--muted); font-weight: 400; }
.input, select.input, textarea.input {
    width: 100%; padding: 10px 12px; border: 1px solid #D5DEE9; border-radius: 10px;
    font: inherit; font-size: 14px; color: var(--text); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #A0AEC0; }
.input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,194,168,.18); }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7A90' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; padding-right: 34px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.check, .radio { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input, .radio input { width: 16px; height: 16px; accent-color: var(--teal); margin: 0; }
.radio-row { display: flex; gap: 28px; }
.divider { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }

.photo-picker { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; }
.photo-preview { width: 96px; height: 96px; border-radius: 50%; background: #E8EEF6; display: grid; place-items: center; overflow: hidden; flex-shrink: 0; border: 3px solid #fff; box-shadow: var(--shadow); }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-preview .icon { width: 44px; height: 44px; color: #8A9BB4; }
.photo-picker input[type=file] { display: none; }
.photo-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; }

/* ---------- Alertas y badges ---------- */
.alert { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 14px; }
.alert-error { background: #FDECEE; color: #A3122A; }
.alert-success { background: #E7F8EF; color: #0C7A47; }
.alert-info { background: var(--sky); color: var(--navy); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.badge .icon { width: 13px; height: 13px; }
.badge-blue { background: var(--sky); color: var(--navy); }
.badge-teal { background: #DDF8F3; color: #00806F; }
.badge-green { background: #E7F8EF; color: #0C7A47; }
.badge-red { background: #FDECEE; color: #C81E32; }
.badge-gray { background: #EEF1F5; color: var(--muted); }
.badge-amber { background: #FEF3DC; color: #9A6200; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-green { background: var(--success); }
.dot-red { background: var(--danger); }

/* ---------- Avatar ---------- */
.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-sm { width: 42px; height: 42px; }
.avatar-lg { width: 120px; height: 120px; border: 4px solid #fff; box-shadow: var(--shadow); }
.avatar-default { display: inline-grid; place-items: center; background: #E8EEF6; color: #8A9BB4; }
.avatar-default .icon { width: 55%; height: 55%; }

/* ---------- Layout de paneles ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
    width: var(--sidebar-w); background: var(--navy-900); color: #fff; flex-shrink: 0;
    position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column;
}
.sidebar-head { padding: 22px 20px 18px; }
.sidebar-user { display: flex; align-items: center; gap: 12px; padding: 14px 20px 20px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 12px; }
.sidebar-user strong { display: block; font-size: 14px; }
.sidebar-user small { color: rgba(255,255,255,.65); font-size: 12px; }
.sidebar-user .avatar-default { background: rgba(255,255,255,.15); color: #fff; }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 12px 20px; }
.sidebar-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; color: rgba(255,255,255,.88); font-size: 14px; font-weight: 500; }
.sidebar-nav a .icon { width: 18px; height: 18px; }
.sidebar-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar-nav a.active { background: var(--teal); color: #fff; }
.sidebar-backdrop { display: none; }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-topbar { display: flex; align-items: center; gap: 14px; padding: 22px 32px 8px; }
.app-title { font-size: 24px; margin: 0; flex: 1; }
.app-date { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.app-date .icon { width: 16px; height: 16px; }
.app-content { padding: 16px 32px 40px; }
.page-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }

/* ---------- Estadísticas ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat { padding: 18px 20px; }
.stat-head { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 8px; }
.stat-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.stat-ic .icon { width: 18px; height: 18px; }
.stat-ic.blue { background: var(--sky); color: var(--navy); }
.stat-ic.teal { background: #DDF8F3; color: var(--teal-600); }
.stat-ic.amber { background: #FEF3DC; color: #C77F00; }
.stat-ic.purple { background: #EFE9FC; color: #6A3FD1; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--navy-900); }
.stat-sub { font-size: 12px; color: var(--teal-600); font-weight: 600; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-dash { grid-template-columns: 1fr 2fr; margin-bottom: 20px; }
.hint .icon, .value .icon { width: 15px; height: 15px; vertical-align: -3px; }
.value .icon { color: var(--success); }

.bar-chart { display: flex; align-items: flex-end; gap: 14px; height: 180px; padding: 8px 4px 0; border-bottom: 1px solid var(--border); }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; min-width: 0; }
.bar { width: 100%; max-width: 38px; border-radius: 6px 6px 0 0; background: var(--navy); min-height: 4px; }
.bar-col:nth-child(even) .bar { background: var(--teal); }
.bar-val { font-size: 11px; font-weight: 600; color: var(--muted); }
.bar-labels { display: flex; gap: 14px; padding: 8px 4px 0; }
.bar-labels span { flex: 1; text-align: center; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Tablas ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; padding: 12px 16px; background: #F7FAFD; border-bottom: 1px solid var(--border); }
.table td { padding: 12px 16px; border-bottom: 1px solid #EEF2F6; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #FAFCFE; }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; }
.cell-user { display: flex; align-items: center; gap: 10px; }
.cell-user .avatar { width: 36px; height: 36px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; padding: 16px; border-bottom: 1px solid var(--border); }
.toolbar .input { max-width: 260px; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .icon { width: 40px; height: 40px; margin: 0 auto 10px; color: #B7C3D3; }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 20px; }
.pagination a, .pagination span { min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--text); border: 1px solid var(--border); background: #fff; padding: 0 8px; }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination .icon { width: 16px; height: 16px; }

/* ---------- Portal de empresas ---------- */
.search-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.filters { position: sticky; top: 20px; }
.filters .card-body { padding: 20px; }
.filters h3 { font-size: 17px; margin-bottom: 16px; }
.zone-filter { max-height: 220px; overflow-y: auto; display: grid; gap: 8px; padding: 10px 12px; border: 1px solid #D5DEE9; border-radius: 10px; }
.search-bar { display: flex; gap: 8px; margin-bottom: 18px; }
.search-bar .input { flex: 1; }
.results-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.results-head h2 { font-size: 17px; margin: 0; }
.driver-card { display: flex; gap: 16px; padding: 18px 20px; margin-bottom: 14px; align-items: flex-start; }
.driver-card .avatar { width: 72px; height: 72px; }
.driver-info { flex: 1; min-width: 0; }
.driver-info h3 { font-size: 15px; margin-bottom: 2px; color: var(--navy); }
.driver-meta { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.driver-meta .icon { width: 13px; height: 13px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.driver-side { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; align-self: stretch; gap: 12px; }
.star-btn { color: #9AA8BC; }
.star-btn.on { color: var(--warning); }
.star-btn.on svg { fill: currentColor; }

/* ---------- Perfil del conductor ---------- */
.profile-head { display: flex; align-items: center; gap: 24px; padding: 28px; }
.profile-photo { position: relative; }
.profile-photo .edit-photo { position: absolute; right: 2px; bottom: 6px; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; border: 3px solid #fff; }
.profile-photo .edit-photo .icon { width: 15px; height: 15px; }
.profile-head h2 { font-size: 22px; margin-bottom: 2px; color: var(--navy); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); padding: 0 20px; overflow-x: auto; }
.tabs a { padding: 12px 14px; font-size: 14px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.active, .tabs a:hover { color: var(--navy); border-bottom-color: var(--navy); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; }
.info-item .label { color: var(--muted); font-weight: 500; font-size: 12px; margin-bottom: 4px; }
.info-item .value { font-size: 14px; font-weight: 500; }
.info-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid var(--border); }
.profile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }

/* ---------- Ajustes / Interruptores ---------- */
.switch-list { display: grid; gap: 0; }
.switch-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid #EEF2F6; }
.switch-item:last-child { border-bottom: 0; }
.switch-item strong { display: block; font-size: 14px; }
.switch-item small { color: var(--muted); font-size: 12px; }
.switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #CBD5E1; border-radius: 999px; transition: .2s; cursor: pointer; }
.switch span::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--teal); }
.switch input:checked + span::before { transform: translateX(20px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px rgba(0,194,168,.3); }

/* ---------- Verificación OTP ---------- */
.otp-inputs { display: flex; gap: 10px; justify-content: center; margin: 20px 0; }
.otp-inputs input { width: 48px; height: 56px; text-align: center; font-size: 22px; font-weight: 700; border: 1.5px solid #D5DEE9; border-radius: 10px; color: var(--navy); }
.otp-inputs input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,194,168,.18); }
.otp-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--sky); color: var(--navy); display: grid; place-items: center; margin: 0 auto 16px; }
.otp-icon .icon { width: 30px; height: 30px; }
.text-center { text-align: center; }

/* ---------- Mensajería ---------- */
.nav-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; line-height: 1; }
.menu-toggle, .topbar-chat { position: relative; }
.topbar-chat .nav-count, .nav-count-dot { position: absolute; top: 0; right: 0; margin: 0; }
.nav-count-dot { min-width: 10px; width: 10px; height: 10px; padding: 0; border: 2px solid #fff; }
.topbar-chat { color: var(--navy); }
.chat { display: grid; grid-template-columns: 320px 1fr; height: calc(100vh - 170px); min-height: 460px; overflow: hidden; padding: 0; }
.chat-list { border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; }
.chat-list-head { padding: 16px; border-bottom: 1px solid var(--border); }
.chat-list-head h2 { font-size: 16px; margin-bottom: 10px; }
.chat-items { overflow-y: auto; flex: 1; }
.chat-empty-list { padding: 24px 16px; color: var(--muted); font-size: 14px; text-align: center; }
.chat-item { display: flex; gap: 12px; align-items: center; width: 100%; padding: 12px 16px; border: 0; border-bottom: 1px solid #EEF2F6; background: #fff; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.chat-item:hover { background: #F7FAFD; }
.chat-item.active { background: var(--sky); }
.chat-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.chat-item-top, .chat-item-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.chat-item-top strong { font-size: 14px; color: var(--navy-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-item-top time { font-size: 11px; color: var(--muted); flex-shrink: 0; }
.chat-item-last { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-item.unread .chat-item-last { color: var(--text); font-weight: 600; }
.chat-item.unread time { color: var(--teal-600); font-weight: 600; }
.avatar-initials { display: inline-grid; place-items: center; background: var(--navy); color: #fff; font-size: 14px; font-weight: 600; }
.chat-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #F7FAFD; }
.chat-placeholder { margin: auto; text-align: center; color: var(--muted); padding: 24px; }
.chat-placeholder .icon { width: 48px; height: 48px; color: #B7C3D3; margin-bottom: 10px; }
.chat-thread { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: #fff; border-bottom: 1px solid var(--border); }
.chat-peer strong { display: block; font-size: 15px; color: var(--navy-900); }
.chat-peer small { color: var(--muted); font-size: 12px; }
.chat-back { display: none; }
.chat-messages { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; }
.chat-more { align-self: center; margin-bottom: 12px; }
.msg { max-width: 72%; margin-bottom: 8px; display: flex; flex-direction: column; }
.msg-body { padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; word-wrap: break-word; overflow-wrap: anywhere; }
.msg-in { align-self: flex-start; }
.msg-in .msg-body { background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg-out { align-self: flex-end; align-items: flex-end; }
.msg-out .msg-body { background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.msg-meta { display: flex; gap: 6px; font-size: 11px; color: var(--muted); margin-top: 3px; padding: 0 4px; }
.msg-out.is-read .msg-state { color: var(--teal-600); font-weight: 600; }
.msg-out.is-pending .msg-body { opacity: .65; }
.msg-out.is-failed .msg-body { background: #A3122A; }
.msg-out.is-failed .msg-state { color: var(--danger); }
.msg-day { align-self: center; font-size: 11px; font-weight: 600; color: var(--muted); background: #E9EEF5; padding: 3px 10px; border-radius: 999px; margin: 8px 0 12px; }
.chat-form { display: flex; gap: 10px; align-items: flex-end; padding: 12px 18px; background: #fff; border-top: 1px solid var(--border); }
.chat-form textarea { resize: none; min-height: 42px; max-height: 140px; line-height: 1.4; }
.chat-send .icon { width: 16px; height: 16px; }
.chat-status { font-size: 12px; color: var(--muted); padding: 0 18px 8px; background: #fff; min-height: 8px; }
.chat-status.is-error { color: var(--danger); }
.chat-privacy { margin-top: 12px; display: flex; align-items: center; gap: 6px; }
.chat-privacy .icon { width: 14px; height: 14px; }
.chat-toast { position: fixed; right: 20px; bottom: 20px; z-index: 200; background: var(--navy-900); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow); font-size: 14px; transition: opacity .4s, transform .4s; }
.chat-toast a { color: #fff; }
.chat-toast.out { opacity: 0; transform: translateY(10px); }
.driver-side form { margin: 0; }

/* ---------- Experiencia laboral ---------- */
.form-section { border: 1px solid var(--border); border-radius: 14px; padding: 18px 18px 4px; margin: 0 0 18px; min-width: 0; }
.form-section legend { display: inline-flex; align-items: center; gap: 8px; padding: 0 8px; font-size: 15px; font-weight: 700; color: var(--navy); }
.form-section .step { width: 24px; height: 24px; border-radius: 50%; background: var(--teal); color: #fff; display: inline-grid; place-items: center; font-size: 12px; }
.exp-detail { border-left: 3px solid var(--sky); padding-left: 14px; margin-bottom: 16px; }
textarea.input { resize: vertical; min-height: 96px; }
.exp-row { align-items: flex-start; }
.exp-view { flex: 1; min-width: 0; }
.exp-view .card-title { display: flex; align-items: center; gap: 8px; }
.exp-view .card-title .icon { width: 18px; height: 18px; color: var(--teal-600); }
.exp-view .value.tags { margin: 0; }
.exp-desc { margin-top: 18px; }
.exp-desc p { margin: 0; font-size: 14px; line-height: 1.6; white-space: normal; overflow-wrap: anywhere; }
.filters-sub { display: flex; align-items: center; gap: 6px; font-size: 14px !important; margin: 22px 0 12px !important; padding-top: 16px; border-top: 1px solid var(--border); color: var(--navy); }
.filters-sub .icon { width: 16px; height: 16px; }
.driver-info h3 a { color: inherit; }
.exp-add { display: flex; gap: 8px; margin-top: 14px; }
.exp-add .input { max-width: 320px; }

/* ---------- Selector "Sexo" ---------- */
.choice-group { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border: 1.5px solid var(--border); border-radius: 12px; background: #fff; font-size: 14px; font-weight: 500; color: var(--navy); transition: border-color .15s, background .15s; }
.choice:hover span { border-color: var(--teal); }
.choice input:checked + span { border-color: var(--teal); background: var(--sky); font-weight: 600; }
.choice input:focus-visible + span { outline: 3px solid rgba(0,194,168,.35); outline-offset: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .features { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .menu-toggle { display: inline-flex; }
    .topnav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 20px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
    .topnav.open { display: flex; }
    .topnav > a { padding: 12px 0; border-bottom: 1px solid #F0F3F7; }
    .topnav-actions { margin: 14px 0 0; flex-direction: column; }
    .topnav-actions .lang-switch { align-self: flex-start; }
    .two-col, .grid-2, .search-layout { grid-template-columns: 1fr; }
    .filters { position: static; }
    .zone-list { columns: 2; }

    .sidebar { position: fixed; left: 0; top: 0; z-index: 100; transform: translateX(-100%); transition: transform .25s; }
    .sidebar.open { transform: none; }
    .sidebar.open + .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(8,33,73,.45); z-index: 90; }
    .app-topbar { padding: 16px 20px 4px; }
    .app-content { padding: 12px 20px 32px; }
    .app-date { display: none; }

    /* Chat en móvil/tablet: lista y conversación en pantallas independientes */
    .chat { grid-template-columns: 1fr; height: calc(100vh - 130px); height: calc(100dvh - 130px); }
    .chat .chat-main { display: none; }
    .chat.chat-has-open .chat-list { display: none; }
    .chat.chat-has-open .chat-main { display: flex; }
    .chat-back { display: inline-flex; }
    .msg { max-width: 85%; }
    .chat-send span { display: none; }
}
@media (max-width: 600px) {
    body { font-size: 14px; }
    .features, .stats, .grid-3, .form-row, .info-grid, .profile-actions { grid-template-columns: 1fr; }
    .hero-inner { padding: 56px 20px 80px; }
    .hero-actions .btn { width: 100%; }
    .check-grid { grid-template-columns: 1fr 1fr; }
    .auth-card .card-body { padding: 22px; }
    .profile-head { flex-direction: column; text-align: center; }
    .driver-card { flex-wrap: wrap; }
    .driver-side { flex-direction: row; width: 100%; align-items: center; }
    .footer-inner { flex-direction: column; text-align: center; }
    .otp-inputs input { width: 42px; height: 50px; }
    .table .hide-sm { display: none; }
    .form-section { padding: 14px 12px 2px; }
    .choice-group { flex-direction: column; }
    .choice span { width: 100%; }
    .exp-row { flex-direction: column; }
    .exp-add { flex-direction: column; }
    .exp-add .input { max-width: none; }
}
