/* ═══════════════════════════════════════════════════════════
   GastroJobs Admin — sistema visual
   ═══════════════════════════════════════════════════════════ */
:root {
  /* Manual de marca GastroJobs v1.0 */
  --esmeralda: #0B6B55; --noche: #0B2A26; --menta: #E4F6EE; --coral: #F55B3B; --claro: #5BE3A8; --gris: #3D5A54; --menta-txt: #BFEBD9;
  --gold: #0B6B55; --gold-600: #0B6B55; --gold-50: #EDF8F3; --gold-100: #D4EEE3;
  --bg: #EEF6F2; --surface: #FFFFFF; --surface-2: #F6FBF8; --surface-3: #E6F2EC;
  --border: #D9E8E1; --border-strong: #C3D9CF;
  --text: #0B2A26; --text-2: #3D5A54; --muted: #6A847D;
  --side-bg: #0B2A26; --side-text: #A3C7BC; --side-muted: #6E958A; --side-hover: #113530; --side-active: #0E3A33;
  --green: #0B6B55; --red: #D64545; --amber: #C77F00; --blue: #2F6FDE; --violet: #6D55C9; --orange: #E0552F; --slate: #5E716C;
  --shadow-sm: 0 1px 2px rgba(11,42,38,.05);
  --shadow: 0 1px 3px rgba(11,42,38,.06), 0 6px 18px -8px rgba(11,42,38,.14);
  --shadow-lg: 0 18px 50px -12px rgba(11,42,38,.28);
  --radius: 12px; --radius-sm: 8px;
  --font: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --gold: #5BE3A8; --gold-600: #5BE3A8; --gold-50: rgba(91,227,168,.08); --gold-100: rgba(91,227,168,.16);
  --bg: #071C19; --surface: #0E2B27; --surface-2: #113530; --surface-3: #15403A;
  --border: rgba(228,246,238,.12); --border-strong: rgba(228,246,238,.22);
  --text: #E4F6EE; --text-2: #BFEBD9; --muted: #A3C7BC;
  --side-bg: #051512; --side-hover: #0E2B27; --side-active: #113530;
  --green: #5BE3A8; --slate: #A3C7BC;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -10px rgba(0,0,0,.6);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { font-size: 14px; }
body { font-family: var(--font); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; line-height: 1.45; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
.ic { width: 18px; height: 18px; flex: none; }
.ic-xl { width: 40px; height: 40px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.mono { font-family: var(--display); font-size: .9em; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.mt { margin-top: 16px; } .mb { margin-bottom: 16px; } .mt-sm { margin-top: 8px; }
.flex { display: flex; gap: 8px; align-items: center; } .flex-wrap { flex-wrap: wrap; } .grow { flex: 1; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* ─── Layout ─────────────────────────────────────────────── */
.app { display: flex; min-height: 100vh; }
.sidebar { width: 252px; flex: none; background: var(--side-bg); color: var(--side-text); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2b2b28 transparent; z-index: 40; }
.brand { display: flex; align-items: center; gap: 11px; padding: 20px 20px 16px; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-mark img { width: 36px; height: 36px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { color: #fff; font-size: 1.05rem; letter-spacing: -.01em; }
.brand-text small { color: var(--side-muted); font-size: .75rem; }
.nav { padding: 4px 12px 12px; flex: 1; }
.nav-section { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--side-muted); padding: 16px 10px 6px; font-weight: 600; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 8px; font-size: .93rem; transition: background .12s, color .12s; position: relative; }
.nav-link:hover { background: var(--side-hover); color: #fff; }
.nav-link.is-active { background: var(--side-active); color: #fff; }
.nav-link.is-active::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--claro); }
.nav-link.is-active .ic { color: var(--claro); }
.nav-badge { margin-left: auto; font-style: normal; font-size: .72rem; font-weight: 700; background: var(--red); color: #fff; border-radius: 99px; padding: 1px 7px; }
.sidebar-foot { padding: 12px; border-top: 1px solid #1f1f1d; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 10px 28px; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); min-height: 62px; }
.topsearch { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0 10px; color: var(--muted); }
.topsearch:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-100); }
.topsearch input { flex: 1; border: 0; background: none; padding: 9px 0; outline: none; color: var(--text); font: inherit; }
.topsearch kbd { font-size: .72rem; border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; color: var(--muted); font-family: inherit; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--text-2); }
.icon-btn:hover { background: var(--surface-3); }
.icon-btn .dot { position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px; border-radius: 99px; background: var(--red); color: #fff; font-size: .66rem; font-weight: 700; display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--bg); }
.only-dark { display: none; } :root[data-theme="dark"] .only-dark { display: block; } :root[data-theme="dark"] .only-light { display: none; }
.user-btn { display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border-radius: 10px; }
.user-btn:hover { background: var(--surface-3); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .82rem; background: var(--gold-100); color: var(--gold-600); flex: none; }
:root[data-theme="dark"] .avatar { color: var(--gold); }
.avatar-lg { width: 64px; height: 64px; font-size: 1.3rem; }
.user-meta { display: flex; flex-direction: column; text-align: left; line-height: 1.2; }
.user-meta small { color: var(--muted); font-size: .75rem; }
.content { padding: 26px 28px 60px; max-width: 1480px; width: 100%; }
.only-mobile { display: none; }
.sidebar-backdrop { display: none; }

/* ─── Dropdown ───────────────────────────────────────────── */
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; right: 0; top: calc(100% + 6px); min-width: 210px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 50; }
.dropdown.is-open .dropdown-menu { display: block; }
.dropdown-menu > a, .dropdown-menu form button { display: flex; gap: 10px; align-items: center; width: 100%; padding: 9px 10px; border-radius: 8px; font-size: .92rem; text-align: left; }
.dropdown-menu > a:hover, .dropdown-menu form button:hover { background: var(--surface-3); }
.dropdown-wide { width: 370px; padding: 0; }
.dropdown-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.dropdown-foot { display: block !important; text-align: center; padding: 10px !important; border-top: 1px solid var(--border); color: var(--gold-600); font-weight: 600; border-radius: 0 0 12px 12px !important; }
.notif { display: flex !important; gap: 10px; padding: 11px 14px !important; border-radius: 0 !important; border-bottom: 1px solid var(--border); align-items: flex-start !important; }
.notif span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.notif strong { font-size: .88rem; font-weight: 600; }
.notif small { color: var(--text-2); font-size: .8rem; }
.notif em { color: var(--muted); font-size: .74rem; font-style: normal; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--blue); }
.notif-exito .notif-dot { background: var(--green); } .notif-alerta .notif-dot { background: var(--amber); } .notif-error .notif-dot { background: var(--red); }
.empty-sm { padding: 26px; text-align: center; color: var(--muted); }
.link-btn { color: var(--gold-600); font-weight: 600; font-size: .82rem; }
.link-btn:hover { text-decoration: underline; }
a.link { color: var(--gold-600); font-weight: 600; } a.link:hover { text-decoration: underline; }
:root[data-theme="dark"] a.link, :root[data-theme="dark"] .link-btn { color: var(--gold); }

/* ─── Page head ──────────────────────────────────────────── */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 1.65rem; letter-spacing: -.02em; font-weight: 700; }
.subtitle { color: var(--muted); margin-top: 3px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .88rem; margin-bottom: 6px; }
.back:hover { color: var(--text); }
.back .ic { width: 15px; height: 15px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ─── Botones ────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 14px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--surface); font-weight: 600; font-size: .9rem; white-space: nowrap; transition: all .12s; box-shadow: var(--shadow-sm); }
.btn:hover { background: var(--surface-3); }
.btn .ic { width: 16px; height: 16px; }
.btn-primary { background: var(--esmeralda); color: #fff; border-color: var(--esmeralda); }
.btn-primary:hover { background: #095C49; }
:root[data-theme="dark"] .btn-primary { background: var(--claro); color: var(--noche); border-color: var(--claro); }
:root[data-theme="dark"] .btn-primary:hover { background: #7aeab9; }
.btn-gold { background: var(--claro); color: var(--noche); border-color: var(--claro); }
.btn-gold:hover { background: #7aeab9; }
.btn-danger { color: var(--red); }
.btn-danger:hover { background: rgba(214,69,69,.08); border-color: var(--red); }
.btn-success { background: var(--green); border-color: var(--green); color: #fff; }
.btn-whatsapp { background: #25D366; border-color: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1fb658; }
.btn-ghost { border-color: transparent; background: transparent; box-shadow: none; }
.btn-sm { padding: 5px 10px; font-size: .82rem; border-radius: 7px; }
.btn-xs { padding: 3px 8px; font-size: .78rem; border-radius: 6px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-icon { padding: 6px; }
.btn.is-copied { border-color: var(--green); color: var(--green); }

/* ─── Cards ──────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 20px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-head h2, .card-head h3 { font-size: 1rem; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.card-head h2 .ic { color: var(--muted); }
.card-body { padding: 20px; }
.card-foot { padding: 12px 20px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.grid-side { grid-template-columns: 320px minmax(0, 1fr); }
.span-2 { grid-column: span 2; }

/* KPI */
.kpi { padding: 18px 20px; position: relative; overflow: hidden; }
.kpi-label { color: var(--muted); font-size: .84rem; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.kpi-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--gold-50); color: var(--gold-600); }
:root[data-theme="dark"] .kpi-icon { color: var(--gold); }
.kpi-icon .ic { width: 17px; height: 17px; }
.kpi-icon.red { background: rgba(214,69,69,.1); color: var(--red); }
.kpi-icon.green { background: rgba(47,158,91,.1); color: var(--green); }
.kpi-icon.blue { background: rgba(47,111,222,.1); color: var(--blue); }
.kpi-icon.violet { background: rgba(124,92,214,.1); color: var(--violet); }
.kpi-value { font-size: 1.95rem; font-weight: 700; letter-spacing: -.03em; margin-top: 10px; line-height: 1.1; }
.kpi-foot { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.delta-up { color: var(--green); font-weight: 600; } .delta-down { color: var(--red); font-weight: 600; }

/* ─── Badges ─────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: .76rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.badge-green { background: rgba(47,158,91,.1); color: var(--green); }
.badge-red { background: rgba(214,69,69,.1); color: var(--red); }
.badge-amber { background: rgba(217,142,4,.12); color: #B37400; }
.badge-blue { background: rgba(47,111,222,.1); color: var(--blue); }
.badge-violet { background: rgba(124,92,214,.1); color: var(--violet); }
.badge-orange { background: rgba(224,106,44,.1); color: var(--orange); }
.badge-gold { background: var(--gold-100); color: var(--gold-600); }
.badge-slate { background: rgba(107,114,128,.12); color: var(--slate); }
:root[data-theme="dark"] .badge-amber { color: #F0B43C; } :root[data-theme="dark"] .badge-gold { color: var(--gold); } :root[data-theme="dark"] .badge-slate { color: #A3A8B3; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 7px; background: var(--surface-3); font-size: .8rem; font-weight: 500; }
.brand-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }

/* ─── Tablas ─────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 11px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-2); }
.table tr.is-link { cursor: pointer; }
.table-compact td { padding: 8px 14px; }
.cell-person { display: flex; align-items: center; gap: 11px; min-width: 200px; }
.cell-person strong { display: block; font-weight: 600; }
.cell-person small { color: var(--muted); font-size: .8rem; }
.score { font-weight: 700; font-variant-numeric: tabular-nums; }
.score-hi { color: var(--green); } .score-mid { color: #B37400; } .score-lo { color: var(--red); }
:root[data-theme="dark"] .score-mid { color: #F0B43C; }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; }
.empty-state { text-align: center; padding: 50px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty-state h2 { font-size: 1.15rem; }

/* ─── Filtros ────────────────────────────────────────────── */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.filters .field { min-width: 150px; }
.filters .field-grow { flex: 1; min-width: 220px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tab { padding: 10px 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: flex; gap: 7px; align-items: center; }
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--text); border-color: var(--gold); }
.tab .count { background: var(--surface-3); border-radius: 99px; padding: 0 7px; font-size: .75rem; }
.seg { display: inline-flex; background: var(--surface-3); border-radius: 9px; padding: 3px; gap: 2px; }
.seg a { padding: 5px 12px; border-radius: 7px; font-weight: 600; font-size: .85rem; color: var(--muted); }
.seg a.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* ─── Formularios ────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 5px; }
.field > span, .field-label { font-size: .82rem; font-weight: 600; color: var(--text-2); }
.field small { color: var(--muted); font-size: .78rem; }
input[type=text], input[type=search], input[type=email], input[type=password], input[type=number], input[type=date], input[type=datetime-local], input[type=tel], input[type=url], input[type=color], select, textarea, input:not([type]) {
  width: 100%; padding: 8px 11px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; transition: border-color .12s, box-shadow .12s;
}
input[type=color] { padding: 3px; height: 38px; }
textarea { resize: vertical; min-height: 80px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-100); }
.topsearch input:focus { box-shadow: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; }
.check input { width: 16px; height: 16px; accent-color: var(--gold); }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }
.inline-form { display: inline; }
.input-sm { padding: 4px 8px !important; font-size: .88rem; width: 72px !important; text-align: center; }
.alert { padding: 11px 14px; border-radius: 9px; font-size: .9rem; border: 1px solid; margin-bottom: 14px; display: flex; gap: 10px; align-items: flex-start; }
.alert .ic { margin-top: 1px; }
.alert-error { background: rgba(214,69,69,.07); border-color: rgba(214,69,69,.3); color: var(--red); }
.alert-info { background: rgba(47,111,222,.06); border-color: rgba(47,111,222,.25); color: var(--text-2); }
.alert-warn { background: rgba(217,142,4,.07); border-color: rgba(217,142,4,.3); color: var(--text-2); }
.alert-ok { background: rgba(47,158,91,.07); border-color: rgba(47,158,91,.3); color: var(--text-2); }

/* ─── Toast ──────────────────────────────────────────────── */
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 100; display: flex; gap: 14px; align-items: center; padding: 13px 16px; border-radius: 11px; background: var(--text); color: var(--surface); box-shadow: var(--shadow-lg); font-weight: 500; animation: toastIn .25s ease; max-width: 420px; }
.toast button { color: inherit; opacity: .6; font-size: 1.2rem; line-height: 1; }
.toast-exito, .toast-ok { background: #1f7a45; color: #fff; }
.toast-error { background: #b83333; color: #fff; }
.toast-zone { position: fixed; right: 22px; bottom: 22px; z-index: 101; display: flex; flex-direction: column; gap: 8px; }
.toast-zone .toast { position: static; }
@keyframes toastIn { from { transform: translateY(10px); opacity: 0; } }

/* ─── Modal ──────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 90; display: none; align-items: flex-start; justify-content: center; padding: 6vh 16px; background: rgba(10,10,9,.55); backdrop-filter: blur(2px); overflow-y: auto; }
.modal.is-open { display: flex; }
.modal-box { background: var(--surface); border-radius: 14px; width: 100%; max-width: 560px; box-shadow: var(--shadow-lg); animation: toastIn .2s ease; }
.modal-box.lg { max-width: 760px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-head h3 { font-size: 1.05rem; }
.modal-body { padding: 20px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; background: var(--surface-2); border-radius: 0 0 14px 14px; }

/* ─── Dashboard ──────────────────────────────────────────── */
.chart-box { position: relative; height: 270px; }
.chart-box.sm { height: 220px; }
.chart-box.xs { height: 180px; }
.alert-list { display: flex; flex-direction: column; }
.alert-item { display: flex; gap: 12px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--border); font-size: .9rem; }
.alert-item:last-child { border-bottom: 0; }
.alert-item:hover { background: var(--surface-2); }
.alert-item .ai { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.alert-item .ai .ic { width: 16px; height: 16px; }
.ai-error { background: rgba(214,69,69,.1); color: var(--red); } .ai-alerta { background: rgba(217,142,4,.12); color: var(--amber); } .ai-info { background: rgba(47,111,222,.1); color: var(--blue); }
.alert-item .chev { margin-left: auto; color: var(--muted); width: 16px; }
.funnel { display: flex; flex-direction: column; gap: 10px; }
.funnel-row { display: grid; grid-template-columns: 170px 1fr 70px; gap: 12px; align-items: center; font-size: .88rem; }
.funnel-bar { height: 26px; background: var(--surface-3); border-radius: 7px; overflow: hidden; }
.funnel-bar div { height: 100%; border-radius: 7px; background: linear-gradient(90deg, var(--esmeralda), var(--claro)); min-width: 3px; transition: width .6s ease; }
.funnel-row .num { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.funnel-row .pct { color: var(--muted); font-weight: 500; font-size: .78rem; }
.timeline { list-style: none; position: relative; }
.timeline li { position: relative; padding: 0 0 16px 26px; font-size: .9rem; }
.timeline li::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: -6px; width: 2px; background: var(--border); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ''; position: absolute; left: 1px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--gold); }
.timeline li.t-etapa::after { border-color: var(--blue); } .timeline li.t-estatus::after { border-color: var(--red); } .timeline li.t-evaluacion::after { border-color: var(--violet); }
.timeline li.t-documento::after { border-color: var(--green); } .timeline li.t-nota::after { border-color: var(--amber); }
.timeline small { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.feed-item { display: flex; gap: 12px; padding: 11px 20px; border-bottom: 1px solid var(--border); font-size: .88rem; align-items: flex-start; }
.feed-item:last-child { border-bottom: 0; }
.feed-item small { color: var(--muted); display: block; font-size: .78rem; }
.welcome { background: linear-gradient(120deg, #0B2A26 0%, #0B6B55 140%); color: #fff; border: 0; padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 18px; overflow: hidden; position: relative; }
.welcome h2 { font-size: 1.3rem; letter-spacing: -.01em; }
.welcome p { color: var(--menta-txt); margin-top: 4px; }
.welcome::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(91,227,168,.35), transparent 70%); }
.welcome .btn { position: relative; z-index: 1; }

/* ─── Kanban ─────────────────────────────────────────────── */
.kanban { display: grid; grid-template-columns: repeat(6, minmax(250px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.kan-col { background: var(--surface-3); border-radius: 12px; padding: 10px; min-height: 300px; }
.kan-col.is-over { outline: 2px dashed var(--gold); outline-offset: -2px; }
.kan-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 10px; font-weight: 650; font-size: .9rem; }
.kan-head .count { background: var(--surface); border-radius: 99px; padding: 1px 9px; font-size: .78rem; color: var(--muted); }
.kan-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px; margin-bottom: 8px; cursor: grab; box-shadow: var(--shadow-sm); transition: box-shadow .12s, transform .12s; display: block; }
.kan-card:hover { box-shadow: var(--shadow); }
.kan-card.is-dragging { opacity: .5; transform: rotate(2deg); }
.kan-card strong { display: block; font-size: .92rem; }
.kan-card .meta { color: var(--muted); font-size: .8rem; margin-top: 3px; }
.kan-card .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 9px; gap: 6px; }
.kan-card.st-descartado, .kan-card.st-abandono { opacity: .65; }

/* ─── Candidato ──────────────────────────────────────────── */
.profile-head { display: flex; gap: 18px; align-items: center; padding: 22px; }
.profile-head h1 { font-size: 1.45rem; letter-spacing: -.02em; }
.profile-meta { display: flex; gap: 8px 16px; flex-wrap: wrap; margin-top: 6px; color: var(--text-2); font-size: .9rem; }
.profile-meta span { display: inline-flex; gap: 6px; align-items: center; }
.profile-meta .ic { width: 15px; height: 15px; color: var(--muted); }
.stepper { display: flex; gap: 0; padding: 0 22px 20px; overflow-x: auto; }
.step { flex: 1; min-width: 110px; position: relative; padding-top: 22px; font-size: .78rem; color: var(--muted); font-weight: 600; text-align: center; }
.step::before { content: ''; position: absolute; top: 7px; left: 0; right: 0; height: 3px; background: var(--border); }
.step::after { content: ''; position: absolute; top: 2px; left: 50%; transform: translateX(-50%); width: 13px; height: 13px; border-radius: 50%; background: var(--surface); border: 3px solid var(--border-strong); }
.step.done { color: var(--text-2); } .step.done::before { background: var(--gold); } .step.done::after { background: var(--gold); border-color: var(--gold); }
.step.current { color: var(--text); } .step.current::before { background: linear-gradient(90deg, var(--gold) 50%, var(--border) 50%); } .step.current::after { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-100); }
.dl { display: grid; grid-template-columns: 170px 1fr; gap: 10px 14px; font-size: .9rem; }
.dl dt { color: var(--muted); }
.dl dd { font-weight: 500; word-break: break-word; }
.bars { display: flex; flex-direction: column; gap: 11px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 44px; gap: 10px; align-items: center; font-size: .86rem; }
.bar { height: 9px; background: var(--surface-3); border-radius: 99px; overflow: hidden; position: relative; }
.bar div { height: 100%; border-radius: 99px; background: var(--gold); }
.bar div.bg-green { background: var(--green); } .bar div.bg-red { background: var(--red); } .bar div.bg-amber { background: var(--amber); } .bar div.bg-blue { background: var(--blue); }
.bar-row .v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.disc-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.disc-tile { border: 1px solid var(--border); border-radius: 10px; padding: 12px; text-align: center; }
.disc-tile small { color: var(--muted); display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.disc-tile strong { font-size: 1.6rem; display: block; margin: 2px 0; }
.disc-tile span { font-size: .8rem; color: var(--text-2); }
.score-ring { width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto; background: conic-gradient(var(--ring-color, var(--gold)) calc(var(--p) * 1%), var(--surface-3) 0); }
.score-ring > div { width: 86px; height: 86px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; text-align: center; }
.score-ring strong { font-size: 1.6rem; display: block; line-height: 1; }
.score-ring small { color: var(--muted); font-size: .72rem; }
.doc-list { display: flex; flex-direction: column; }
.doc-row { display: flex; align-items: center; gap: 12px; padding: 11px 20px; border-bottom: 1px solid var(--border); }
.doc-row:last-child { border-bottom: 0; }
.doc-num { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-size: .78rem; font-weight: 700; color: var(--muted); flex: none; }
.doc-row.ok .doc-num { background: rgba(47,158,91,.12); color: var(--green); }
.doc-info { flex: 1; min-width: 0; }
.doc-info small { display: block; color: var(--muted); font-size: .78rem; }
.link-box { display: flex; gap: 6px; align-items: center; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 6px 6px 6px 12px; }
.link-box code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; color: var(--text-2); }
.share-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.share-card:last-child { border-bottom: 0; }
.share-card .t { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: .9rem; }
.share-card .t .ic { color: var(--gold-600); width: 16px; height: 16px; }
.note { padding: 12px 14px; border-radius: 10px; background: var(--gold-50); border: 1px solid var(--gold-100); font-size: .9rem; white-space: pre-wrap; }

/* ─── Vacantes (matriz) ──────────────────────────────────── */
.det { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .78rem; padding: 3px 9px; border-radius: 6px; }
.det-publicar { background: rgba(214,69,69,.1); color: var(--red); }
.det-ok { background: rgba(47,158,91,.1); color: var(--green); }
.det-publicar::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.suc-block { margin-bottom: 18px; }
.mini-num { font-variant-numeric: tabular-nums; font-weight: 700; }

/* ─── Form builder ───────────────────────────────────────── */
.fb-list { display: flex; flex-direction: column; gap: 10px; }
.fb-item { border: 1px solid var(--border); border-radius: 11px; background: var(--surface); padding: 12px 14px; display: grid; grid-template-columns: 20px 1fr auto; gap: 12px; align-items: start; }
.fb-item.is-section { background: var(--gold-50); border-color: var(--gold-100); }
.fb-item.is-dragging { opacity: .4; }
.fb-grip { color: var(--muted); cursor: grab; padding-top: 8px; }
.fb-fields { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }
.fb-fields .full { grid-column: 1 / -1; }
.fb-opts { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.preview-frame { width: 100%; height: 720px; border: 1px solid var(--border); border-radius: 12px; background: #0C0C0C; }

/* ─── Pruebas ────────────────────────────────────────────── */
.item-card { border: 1px solid var(--border); border-radius: 11px; padding: 14px 16px; margin-bottom: 10px; }
.item-card .q { font-weight: 600; margin-bottom: 8px; }
.item-card ul { list-style: none; display: grid; gap: 5px; }
.item-card li { display: flex; gap: 8px; font-size: .88rem; }
.dim { flex: none; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: .72rem; font-weight: 800; background: var(--surface-3); }
.dim-L, .dim-D, .dim-R { background: rgba(47,111,222,.12); color: var(--blue); }
.dim-M, .dim-I, .dim-E { background: rgba(47,158,91,.12); color: var(--green); }
.dim-X, .dim-S { background: rgba(124,92,214,.12); color: var(--violet); }
.dim-C, .dim-A { background: rgba(214,69,69,.1); color: var(--red); }
.dim-O { background: rgba(217,142,4,.12); color: var(--amber); }

/* ─── Login ──────────────────────────────────────────────── */
.login-body { min-height: 100vh; display: grid; place-items: center; background: #0C0C0B; padding: 24px; }
.login-wrap { display: grid; grid-template-columns: 1.1fr 1fr; max-width: 940px; width: 100%; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); border: 1px solid #222; }
.login-side { background: radial-gradient(circle at 20% 0%, #2a2617 0%, #121211 60%); color: #EDEBE4; padding: 44px 40px; display: flex; flex-direction: column; gap: 18px; }
.login-side h2 { font-size: 1.7rem; letter-spacing: -.02em; line-height: 1.2; margin-top: 30px; }
.login-side p { color: #A8A69E; }
.login-side ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 8px; color: #D5D3CB; }
.login-side li { display: flex; gap: 10px; align-items: center; }
.login-side li .ic { color: var(--claro); width: 16px; }
.brand-lg .brand-text strong { font-size: 1.2rem; }
.login-card { background: #fff; color: #1B1B1A; padding: 44px 40px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.login-card h1 { font-size: 1.5rem; letter-spacing: -.02em; }
.login-card input { background: #fff; color: #1B1B1A; border-color: #D5D3CA; padding: 11px 12px; }
.login-card .btn-primary { background: #1B1B1A; color: #fff; border-color: #1B1B1A; padding: 12px; margin-top: 6px; }
.login-card .field > span { color: #4A4945; }

/* ─── Print ──────────────────────────────────────────────── */
@media print {
  .sidebar, .topbar, .page-actions, .no-print, .filters { display: none !important; }
  .content { padding: 0; } .card { box-shadow: none; break-inside: avoid; } body { background: #fff; }
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-main, .grid-side { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s ease; }
  body.sidebar-open .sidebar { transform: none; }
  body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 35; }
  .only-mobile { display: grid; }
  .topbar { padding: 10px 16px; }
  .content { padding: 18px 16px 50px; }
  .grid-2, .grid-3, .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .user-meta, .topsearch kbd { display: none; }
  .login-wrap { grid-template-columns: 1fr; } .login-side { display: none; }
  .dl { grid-template-columns: 1fr; gap: 2px 0; } .dl dd { margin-bottom: 8px; }
  .funnel-row { grid-template-columns: 110px 1fr 54px; }
  .fb-fields { grid-template-columns: 1fr; }
  .dropdown-wide { width: 320px; right: -60px; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 1.35rem; }
  .profile-head { flex-direction: column; align-items: flex-start; }
}


/* ─── Identidad GastroJobs (manual de marca) ─────────────── */
h1, h2, h3, .page-head h1, .kpi-value, .profile-head h1, .welcome h2, .modal-head h3, .card-head h2, .card-head h3 { font-family: var(--display); letter-spacing: -.035em; }
.card-head h2, .card-head h3 { font-size: .98rem; letter-spacing: -.02em; }
.page-head h1::after, .welcome h2::after, .login-card h1::after { content: '.'; color: var(--coral); }
.welcome h2::after { color: var(--claro); }
.kpi-value, .score, .mini-num, .funnel-row .num, .bar-row .v, .disc-tile strong, .score-ring strong, .kan-head .count, .dc-kpis strong { font-family: var(--display); font-variant-numeric: tabular-nums; }
.nav-section, .table th, .kpi-label, .field > span, .field-label { font-family: var(--display); letter-spacing: .08em; }
.nav-section { letter-spacing: .14em; }
.table th { font-size: .7rem; letter-spacing: .1em; }
.kpi-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; }
.field > span, .field-label { font-size: .72rem; text-transform: uppercase; }
.brand-text strong { font-family: var(--display); font-size: 1.02rem; letter-spacing: -.04em; }
.brand-text strong b { color: var(--claro); font-weight: 700; }
.brand-text strong i { color: var(--coral); font-style: normal; }
.card { border-radius: 14px; }
.kpi { border-top: 4px solid var(--esmeralda); }
:root[data-theme="dark"] .kpi { border-top-color: var(--claro); }
.badge-green { background: rgba(11,107,85,.1); color: var(--esmeralda); }
:root[data-theme="dark"] .badge-green { background: rgba(91,227,168,.12); color: var(--claro); }
.badge-gold { background: rgba(91,227,168,.18); color: #0A5A47; }
:root[data-theme="dark"] .badge-gold { color: var(--claro); }
.score-hi { color: var(--esmeralda); } :root[data-theme="dark"] .score-hi { color: var(--claro); }
.toast-exito, .toast-ok { background: var(--esmeralda); }
.det-ok { background: rgba(11,107,85,.1); color: var(--esmeralda); }
.welcome .btn-gold { background: var(--claro); }
.login-body { background: var(--noche); }
.login-wrap { border-color: #12403a; }
.login-side { background: radial-gradient(circle at 20% 0%, #0B6B55 0%, #0B2A26 65%); }
.login-side img { width: 260px; max-width: 100%; }
.login-side p { color: var(--menta-txt); }
.login-side ul { color: #E4F6EE; }
.login-card { color: var(--noche); }
.login-card .btn-primary { background: var(--esmeralda); border-color: var(--esmeralda); }
.login-card input:focus { border-color: var(--esmeralda); box-shadow: 0 0 0 3px #D4EEE3; }
.ticket-mini { border-top: 6px solid var(--esmeralda); }

/* ─── Panel en celular ───────────────────────────────────── */
@media (max-width: 900px) {
  .welcome { flex-direction: column; align-items: flex-start; padding: 20px; }
  .welcome > .flex { flex-wrap: wrap; width: 100%; }
  .welcome .btn { white-space: normal; }
  .page-head { align-items: flex-start; }
  .page-actions { width: 100%; }
  .page-actions .btn { white-space: normal; }
  .topsearch { min-width: 0; }
  .topsearch input { min-width: 0; }
  .seg { flex-wrap: wrap; }
  .filters .field, .filters .field-grow { min-width: 0; flex: 1 1 140px; }
  .card-head { flex-wrap: wrap; }
  .profile-head > .flex { width: 100%; }
  .link-box { min-width: 0; }
  .link-box code { min-width: 0; }
  .kanban { grid-template-columns: repeat(6, minmax(240px, 82vw)); scroll-snap-type: x mandatory; }
  .kan-col { scroll-snap-align: start; }
  .dropdown-menu { max-width: calc(100vw - 24px); }
  .tabs { margin-left: -16px; margin-right: -16px; padding: 0 16px; }
  .toast { left: 16px; right: 16px; bottom: 16px; max-width: none; }
  .modal { padding: 16px 10px; }
}
@media (max-width: 560px) {
  .topbar { gap: 6px; padding: 8px 12px; }
  .topsearch kbd { display: none; }
  .user-btn { padding: 4px; }
  .content { padding: 16px 12px 50px; }
  .kpi-value { font-size: 1.7rem; }
  .welcome h2 { font-size: 1.15rem; }
  .row-actions { flex-wrap: wrap; }
  .dl { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 110px 1fr 38px; }
}
.grid > *, .grid-main > *, .grid-side > * { min-width: 0; }
.profile-meta span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .tabs { margin-left: -12px; margin-right: -12px; padding: 0 12px; } }
.welcome .btn:not(.btn-gold) { color: var(--noche); background: #fff; border-color: #fff; }
.topsearch input[type=search] { border: 0; background: none; box-shadow: none; padding: 9px 0; }
.login-mobile-logo { display: none; }
@media (max-width: 900px) { .login-mobile-logo { display: block; width: 280px; max-width: 100%; margin: 0 auto 10px; } .login-card { padding: 32px 22px; } }
