/* Look & feel de jobs.vlk.com.mx — VLK Talent Solutions */
:root {
  --brand: #034b93;
  --brand-2: #848589;
  --navy: #0a2647;
  --accent: #3d8bd9;
  --ink: #0d1b2e;
  --muted: #5b6677;
  --line: #e3e8ef;
  --paper: #fff;
  --wash: #f5f8fc;
  --sky: #eaf2fb;

  --green: #15803d;
  --green-bg: #e8f6ee;
  --amber: #b45309;
  --amber-bg: #fdf3e2;
  --red: #c62828;
  --red-bg: #fdecec;
  --shadow: 0 18px 40px -28px rgba(3, 40, 80, 0.45);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--brand); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }
h1 { font-size: clamp(30px, 4.6vw, 44px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.08; margin: 0 0 10px; }
h1 em, h1 .hl { font-style: normal; color: var(--brand); }
h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 16px; }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); margin: 0 0 10px; }
.lead { font-size: 17px; color: var(--muted); margin: 0; max-width: 560px; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; width: 100%; }
.wrap.wide { max-width: 1200px; }
main.wrap { padding-top: 40px; padding-bottom: 72px; flex: 1; }

/* Header (mismas medidas que jobs.vlk.com.mx: 73 px de alto, logo de 40 px) */
.top { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand img { height: 40px; width: auto; display: block; }
.brand .app { font-size: 11.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); padding-left: 14px; border-left: 1px solid var(--line); line-height: 26px; }
.nav { display: flex; gap: 26px; align-items: center; margin-left: auto; height: 100%; }
.nav a { color: var(--ink); font-size: 14.5px; font-weight: 600; height: 100%; display: flex; align-items: center; border-bottom: 2px solid transparent; border-top: 2px solid transparent; white-space: nowrap; }
.nav a:hover { color: var(--brand); text-decoration: none; }
.nav a.on { color: var(--brand); border-bottom-color: var(--brand); }
.userbox { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.userbox .me { display: inline-flex; }
.link.out { font-size: 13px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; }
.link.out:hover { color: var(--ink); border-color: var(--muted); }
.inline { display: inline; margin: 0; }
.link { background: none; border: 0; cursor: pointer; font: inherit; }
.link.out { border: 1px solid var(--line); background: #fff; }

@media (max-width: 900px) {
  /* Fila 1: logo + usuario. Fila 2: menú desplazable */
  .top .wrap { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "brand user" "nav nav"; height: auto; gap: 0 12px; padding-top: 10px; }
  .brand { grid-area: brand; height: 44px; }
  .brand img { height: 34px; }
  .brand .app { display: none; }
  .userbox { grid-area: user; }
  .nav { grid-area: nav; margin: 6px -20px 0; padding: 0 20px; gap: 22px; height: 44px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { font-size: 14px; }
}

/* Footer */
.foot { background: var(--wash); color: var(--muted); font-size: 13.5px; border-top: 1px solid var(--line); }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.foot b { color: var(--ink); }

/* Tarjetas */
.card { background: var(--paper); border-radius: 16px; padding: 26px; margin-bottom: 20px; border: 1px solid var(--line); }
.card.narrow { max-width: 460px; margin: 0 auto; }
.card.raised { box-shadow: var(--shadow); }
.center { text-align: center; }
.big-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--sky); color: var(--brand); display: grid; place-items: center; font-size: 26px; margin: 0 auto 14px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: clamp(28px, 3.6vw, 36px); }
.back { display: inline-block; font-size: 13.5px; margin-bottom: 14px; }

/* Formularios */
input, select {
  font: inherit; font-size: 15px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
  width: 100%; min-width: 0; height: 46px;
}
input:focus, select:focus { outline: 3px solid var(--sky); border-color: var(--accent); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--brand); }
label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); letter-spacing: 0.02em; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 10px; align-items: flex-end; }
.wrap-row { flex-wrap: wrap; }
.wrap-row > * { flex: 1 1 170px; }
.wrap-row > .btn { flex: 0 0 auto; }
.searchbox { border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: var(--shadow); background: #fff; }
.searchbox input { border: 0; }
.searchbox input:focus { outline: none; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 15px; font-weight: 700; padding: 0 22px; height: 46px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink); white-space: nowrap;
}
.btn:hover { text-decoration: none; border-color: var(--ink); }
.btn.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn.primary:hover { background: #023d78; }
.btn.ghost { background: transparent; }
.btn.big { height: 52px; padding: 0 40px; font-size: 16px; margin-top: 10px; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn.danger { color: var(--red); }
.btn:disabled { opacity: .6; cursor: wait; }
.arrow::after { content: '→'; font-weight: 700; }

.alert { padding: 13px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 14px; font-weight: 500; }
.alert.ok { background: var(--green-bg); color: #14532d; }
.alert.bad { background: var(--red-bg); color: #7f1d1d; }
.alert.warn { background: var(--amber-bg); color: #78350f; }

/* Botón Google */
.btn.google { width: 100%; height: 52px; background: #fff; color: var(--ink); border: 1px solid var(--line); gap: 12px; font-size: 15.5px; box-shadow: 0 1px 2px rgba(13,27,46,.06); }
.btn.google:hover { border-color: var(--brand); background: var(--wash); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; margin: 22px 0 16px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* Checador (panel navy, como "Recently posted") */
.clock-card { background: var(--navy); color: #fff; border-radius: 18px; padding: 26px; margin-bottom: 20px; text-align: center; }
.clock-card .muted, .clock-card .small { color: rgba(255,255,255,.65); }
.who { display: flex; justify-content: space-between; align-items: center; text-align: left; gap: 12px; flex-wrap: wrap; }
.who .eyebrow { color: rgba(255,255,255,.6); margin: 0 0 4px; }
.hello { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: rgba(255,255,255,.75); }
.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.2); }
.chip { background: #fff; border: 1px solid var(--line); padding: 5px 10px; border-radius: 6px; font-size: 13px; color: var(--ink); font-weight: 500; display: inline-block; }
.clock-card .chip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: #fff; }
.clock { font-size: clamp(58px, 15vw, 92px); font-weight: 700; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; margin-top: 22px; line-height: 1; }
.date { margin-top: 10px; }
.times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 26px 0; }
.times > div { background: rgba(255,255,255,.06); border-radius: 12px; padding: 14px 8px; display: flex; flex-direction: column; gap: 2px; }
.lbl { font-size: 11.5px; font-weight: 700; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .12em; }
.val { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.val.sm { font-size: 15px; padding-top: 6px; }
.btn.punch { width: 100%; max-width: 400px; height: 60px; font-size: 18px; border: 0; color: #fff; border-radius: 12px; }
.btn.punch.in { background: var(--accent); }
.btn.punch.out { background: #fff; color: var(--navy); }
.btn.punch:hover { filter: brightness(1.06); }
.done { font-size: 17px; font-weight: 700; color: #86efac; padding: 16px; background: rgba(255,255,255,.06); border-radius: 12px; max-width: 400px; margin: 0 auto; }
.late { color: var(--amber); font-weight: 700; }
.clock-card .late { color: #fcd34d; }
.bad-t { color: var(--red); font-weight: 700; }

/* Tablas */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--wash); }
td.c { text-align: center; }
table.edit td { padding: 7px 6px; }
table.edit input, table.edit select { height: 38px; padding: 6px 10px; font-size: 14px; }
select.needs { border-color: #f0c27a; background: #fffaf0; }
tr.inactive td { opacity: .5; }

.badge { display: inline-block; padding: 3px 9px; border-radius: 6px; font-size: 12px; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.badge.ok { background: var(--green-bg); color: var(--green); }
.badge.info { background: var(--sky); color: var(--brand); }
.badge.warn { background: var(--amber-bg); color: var(--amber); }
.badge.bad { background: var(--red-bg); color: var(--red); }
.badge.muted { background: #fff; color: var(--muted); border-color: var(--line); }

/* Avatares */
.person { display: flex; align-items: center; gap: 12px; }
.person.big { gap: 18px; margin-top: 6px; }
.avatar-wrap { display: inline-block; flex: 0 0 auto; border-radius: 50%; overflow: hidden; background: var(--sky); }
img.avatar { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.avatar.ini { display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; letter-spacing: .02em; }
.clock-card .avatar.ini { background: var(--accent); }
.clock-card .avatar-wrap { box-shadow: 0 0 0 3px rgba(255,255,255,.15); }

/* Usuarios */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 14px; border-bottom: 1px solid var(--line); }
.tabs a { color: var(--muted); font-size: 14.5px; padding: 10px 12px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a span { font-size: 12px; background: var(--wash); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; margin-left: 4px; color: var(--muted); }
.tabs a.on { color: var(--brand); border-bottom-color: var(--brand); }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.filters { margin-bottom: 16px; }
.filters input, .filters select { height: 42px; }
.filters .btn { height: 42px; }
.table-wrap.users-wrap { overflow: visible; }
@media (max-width: 1100px) { .table-wrap.users-wrap { overflow-x: auto; } .pop-body { position: static; width: auto; margin-top: 8px; } }
.row-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.row-actions form { margin: 0; }
table.users td { vertical-align: top; }
table.users td:nth-child(5), table.users td:nth-child(6), table.users td:nth-child(7), table.users td:nth-child(3), table.users td:nth-child(4) { vertical-align: middle; }
details.pop { position: relative; }
details.pop > summary { list-style: none; }
details.pop > summary::-webkit-details-marker { display: none; }
.pop-body { position: absolute; right: 0; top: 40px; z-index: 5; width: 290px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; box-shadow: var(--shadow); text-align: left; }
.pop-body label { font-size: 12px; }
.pop-body input { height: 40px; }
.btn.danger-fill { background: var(--red); color: #fff; border-color: var(--red); }
.btn.danger-fill:hover { filter: brightness(1.08); }

/* Calendario, horario y ausencias */
.badge.violet { background: #f1ecfb; color: #6d3fc0; }
.badge.teal { background: #e3f6f3; color: #0f766e; }
.dayoff { background: rgba(255,255,255,.08); border-radius: 12px; padding: 14px 16px; margin: 0 auto 20px; max-width: 520px; font-size: 14.5px; color: rgba(255,255,255,.9); }
.agenda { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.agenda li { padding: 10px 14px; background: var(--wash); border-radius: 10px; font-size: 14px; }
tr.past td { opacity: .55; }
.card-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card-head h2 { margin: 0; }
h3.sub { font-size: 14px; font-weight: 700; margin: 26px 0 12px; color: var(--ink); }
.seg { display: grid; gap: 8px; }
.seg label { flex-direction: row; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: var(--ink); letter-spacing: 0; }
.seg input { width: 18px; height: 18px; accent-color: var(--brand); }
.custom-fields { display: grid; gap: 14px; padding: 16px; background: var(--wash); border-radius: 12px; }
.days { display: flex; gap: 6px; flex-wrap: wrap; }
.day { flex-direction: row; }
.day input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.day span { display: inline-grid; place-items: center; width: 46px; height: 38px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; letter-spacing: 0; }
.day input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.day input:focus-visible + span { outline: 3px solid var(--sky); }
a.sched-link { color: var(--muted); font-weight: 500; }

/* Estadísticas (como "11 open positions") */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 32px; }
.stat { border-top: 2px solid var(--ink); padding-top: 12px; color: var(--muted); font-size: 13.5px; }
.stat span { display: block; font-size: 40px; font-weight: 700; color: var(--ink); letter-spacing: -0.04em; line-height: 1.1; }
.stat span.late { color: var(--amber); }
.grid2 { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; }
.grid2 .card { margin-bottom: 0; }
.grid2 + .card { margin-top: 20px; }

/* Login hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding-top: 20px; }
.hero .card { margin: 0; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: baseline; color: var(--muted); }
.steps b { color: var(--brand); font-size: 13px; font-weight: 700; min-width: 22px; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid2 { grid-template-columns: 1fr; }
}
