/* CRM Tarraco Horizon — estilos. Mobile-first, pensado para móvil y tablet. */
:root {
  --brand: #3C9FD6;
  --brand-2: #77CFFF;
  --brand-dark: #2578a8;
  --brand-soft: #e8f4fb;
  --ink: #1b2a3a;
  --muted: #6b7c8d;
  --line: #e3eaf1;
  --bg: #f4f7fa;
  --card: #ffffff;
  --ok: #1e9e5a;
  --bad: #d64545;
  --topbar-h: 58px;
  --sidebar-w: 236px;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 40, 60, .06), 0 4px 14px rgba(20, 40, 60, .05);
}
* { -webkit-tap-highlight-color: transparent; }
html { font-size: 15px; }
body.app { background: var(--bg); color: var(--ink); min-height: 100vh; padding-top: var(--topbar-h); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--brand-dark); }
.btn-primary { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark); --bs-btn-active-bg: var(--brand-dark); --bs-btn-active-border-color: var(--brand-dark); --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand); }
.btn-outline-primary { --bs-btn-color: var(--brand-dark); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand); --bs-btn-active-bg: var(--brand); }
.text-bg-primary { background-color: var(--brand) !important; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(60, 159, 214, .2); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.nowrap { white-space: nowrap; }
code { color: var(--brand-dark); background: var(--brand-soft); padding: .1rem .35rem; border-radius: 5px; font-size: .85em; }

/* ---------- Topbar ---------- */
.topbar { position: fixed; inset: 0 0 auto 0; height: var(--topbar-h); z-index: 1030; display: flex; align-items: center; gap: .5rem; padding: 0 .75rem; padding-left: max(.75rem, env(safe-area-inset-left)); padding-right: max(.75rem, env(safe-area-inset-right)); background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 1px 8px rgba(20, 40, 60, .04); }
.topbar-logo img { height: 44px; width: auto; display: block; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: .35rem; }
.btn-icon { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--ink); border-radius: 50%; font-size: 1.2rem; }
.btn-icon:hover { background: var(--brand-soft); color: var(--brand-dark); }
.user-chip { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--ink); padding: .15rem .5rem .15rem .15rem; border-radius: 999px; }
.user-chip:hover { background: var(--brand-soft); }
.user-name { font-weight: 600; font-size: .9rem; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--brand-soft); flex: none; }
.avatar-initials { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.avatar-sm { width: 30px; height: 30px; font-size: .85rem; }
.clock-pill { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .3rem .7rem; font-size: .82rem; font-weight: 600; color: var(--ink); }
.clock-pill .dot { width: 10px; height: 10px; border-radius: 50%; background: #b8c4cf; }
.clock-pill[data-state="in"] { border-color: var(--ok); color: var(--ok); background: #eefaf3; } .clock-pill[data-state="in"] .dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(30, 158, 90, .18); }
.clock-pill[data-state="out"] { border-color: var(--bad); color: var(--bad); background: #fdf1f1; } .clock-pill[data-state="out"] .dot { background: var(--bad); }

/* ---------- Layout ---------- */
.app-shell { display: flex; }
.sidebar { position: fixed; top: var(--topbar-h); bottom: 0; left: 0; width: var(--sidebar-w); background: #fff; border-right: 1px solid var(--line); z-index: 1025; display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .22s ease; overflow-y: auto; padding-left: env(safe-area-inset-left); }
body.sidebar-open .sidebar { transform: none; box-shadow: 8px 0 30px rgba(0, 0, 0, .15); }
.sidebar-backdrop { display: none; position: fixed; inset: var(--topbar-h) 0 0 0; background: rgba(15, 30, 45, .45); z-index: 1020; }
body.sidebar-open .sidebar-backdrop { display: block; }
.nav-list { list-style: none; margin: 0; padding: .75rem .6rem; }
.nav-item { display: flex; align-items: center; gap: .75rem; padding: .7rem .85rem; margin-bottom: 2px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 500; }
.nav-item i { color: var(--muted); font-size: 1.15rem; width: 22px; text-align: center; }
.nav-item:hover { background: var(--brand-soft); }
.nav-item.active { background: linear-gradient(90deg, var(--brand), var(--brand-2)); color: #fff; }
.nav-item.active i { color: #fff; }
.app-main { flex: 1; min-width: 0; padding: 1rem; padding-bottom: 6rem; padding-left: max(1rem, env(safe-area-inset-left)); padding-right: max(1rem, env(safe-area-inset-right)); }
body.no-sidebar .app-main { margin-left: 0; }
body.no-sidebar .app-shell { display: block; }
@media (min-width: 992px) {
  .sidebar { transform: none; }
  .app-main { margin-left: var(--sidebar-w); padding: 1.5rem 1.75rem 6rem; }
}
.page-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .25rem 1rem; margin-bottom: 1rem; }
.page-head h1 { font-size: 1.5rem; font-weight: 700; margin: 0; }
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--card); }
.card-title-sm { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; margin-bottom: .6rem; }
.section-title { font-size: 1.05rem; font-weight: 400; margin-bottom: .75rem; }
.section-title i { color: var(--brand); margin-right: .35rem; }

/* ---------- Escritorio ---------- */
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); height: 100%; }
.kpi-num { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.kpi-label { color: var(--muted); font-size: .82rem; margin-top: .15rem; }
.kpi-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border: 0; color: #fff; }
.kpi-primary .kpi-label { color: rgba(255, 255, 255, .9); }
.kpi-danger { border-color: var(--bad); }
.kpi-danger .kpi-num { color: var(--bad); }
.kpi-inline { display: inline-flex; align-items: baseline; gap: .5rem; padding: .5rem 1rem; height: auto; }
.kpi-inline .kpi-num { font-size: 1.6rem; }
.team-label, .team-name { font-weight: 700; margin-bottom: .4rem; }
.page-head-right { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.form-pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.form-pill { --c: var(--brand); display: inline-flex; align-items: center; gap: .3rem; padding: .28rem .6rem; border-radius: 999px; background: var(--c); color: #fff; text-decoration: none; font-size: .72rem; font-weight: 600; line-height: 1.2; white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,.15); transition: transform .1s, box-shadow .15s; }
.form-pill:hover, .form-pill:active { color: #fff; transform: translateY(-1px); box-shadow: 0 3px 8px rgba(0,0,0,.25); }
.form-pill i { font-size: .65rem; opacity: .85; }
.form-pill .zone { opacity: .85; font-weight: 400; }
.count-box { --c: var(--brand); background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--c); border-radius: 12px; padding: .7rem .9rem; display: flex; align-items: center; gap: .8rem; height: 100%; }
.count-box.person { --c: var(--brand-2); }
.count-box-click { cursor: pointer; transition: box-shadow .15s, transform .15s; }
.count-box-click:hover { box-shadow: 0 2px 10px rgba(0,0,0,.12); transform: translateY(-1px); }
.kpi-clickable { cursor: pointer; transition: box-shadow .15s, transform .15s; }
.kpi-clickable:hover { box-shadow: 0 2px 14px rgba(0,0,0,.18); transform: translateY(-1px); }
.count-box .n { font-size: 1.7rem; font-weight: 800; min-width: 2ch; text-align: center; }
.count-box .l { line-height: 1.2; font-weight: 600; min-width: 0; } .count-box .l small { display: block; font-weight: 400; color: var(--muted); }
.member-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: .4rem; vertical-align: middle; }
.member-dot.on { background: var(--ok); box-shadow: 0 0 0 3px rgba(30, 158, 90, .18); }
.member-dot.off { background: var(--bad); }
.simple-list { list-style: none; margin: 0; padding: 0; }
.simple-list li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.simple-list li:last-child { border-bottom: 0; }
.simple-list time { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.lead-rows { list-style: none; margin: 0; padding: 0; max-height: 55vh; overflow-y: auto; }
.lead-rows li { display: flex; align-items: center; gap: .65rem; padding: .55rem .1rem; border-bottom: 1px solid var(--line); }
.lead-rows li:last-child { border-bottom: 0; }
.lead-rows li i { color: var(--brand); font-size: 1.05rem; flex: none; }
.lead-rows li span { min-width: 0; }
.chart-wrap { position: relative; height: 260px; }
/* Ranking de captadores (P2.1): lista con scroll que muestra a todos los trabajadores, no solo el Top 10;
   #chCaptadoresWrap recibe su altura real por JS (según el número de filas) y este contenedor la recorta. */
.chart-scroll { max-height: 420px; overflow-y: auto; }
.chart-scroll .chart-wrap { height: auto; }
.period-switch .btn { padding: .35rem .8rem; }

/* ---------- Módulos (tabla) ---------- */
.module-bar { display: flex; gap: .6rem; align-items: center; margin-bottom: .75rem; flex-wrap: wrap; }
.search-box { position: relative; flex: 1 1 220px; }
.search-box i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-box input { padding-left: 2.3rem; height: 42px; border-radius: 10px; }
.bar-actions { display: flex; gap: .5rem; margin-left: auto; }
.bar-actions .btn { height: 42px; border-radius: 10px; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: .25rem; line-height: 1; }
.filters-panel { display: flex; gap: .75rem; flex-wrap: wrap; align-items: end; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .75rem; margin-bottom: .75rem; }
.filters-panel[hidden] { display: none; }
.filter { min-width: 140px; flex: 1 1 140px; } .filter label { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.table-card { overflow: hidden; }
.table-wrap { overflow-x: auto; }
.crm-table thead th { background: #f8fbfd; font-size: .74rem; text-transform: uppercase; letter-spacing: .02em; color: var(--muted); font-weight: 700; white-space: nowrap; border-bottom: 1px solid var(--line); padding: .75rem .5rem; }
.crm-table th.sortable { cursor: pointer; user-select: none; } .crm-table th.sortable i { opacity: .45; margin-left: .2rem; }
.crm-table td { padding: .6rem .5rem; }
.crm-table .col-check { width: 1%; padding: .65rem .15rem .65rem .5rem; text-align: center; }
.crm-table td.c-avatar, .crm-table th:nth-child(2) { padding-left: .25rem; padding-right: .25rem; } .crm-table .form-check-input { cursor: pointer; margin: 0; }
.crm-table tbody tr.row-selected { background: var(--brand-soft); }
.bulk-bar { display: flex; align-items: center; gap: .75rem; padding: .5rem .75rem; margin-bottom: .5rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.bulk-all { display: inline-flex; align-items: center; gap: .4rem; margin: 0; font-size: .85rem; font-weight: 600; cursor: pointer; }
.select2-container--bootstrap-5 .select2-selection { min-height: calc(1.5em + .75rem + 2px); }
.select2-container { z-index: 2100; }
/* Select2 en filtros y barra del calendario: misma altura/tipografía que el resto de selectores (42px) */
.filter .select2-container, .cal-filter .select2-container { display: block; width: 100% !important; }
.filter .select2-container--bootstrap-5 .select2-selection, .cal-filter .select2-container--bootstrap-5 .select2-selection { min-height: 42px; font-size: .875rem; padding-top: .35rem; padding-bottom: .35rem; display: flex; align-items: center; }
.filter .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered, .cal-filter .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered { padding: 0; line-height: 1.5; }
/* Calendario de fichajes: filtros y navegación en una sola fila */
.cal-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.cal-filter { flex: 1 1 190px; max-width: 260px; min-width: 150px; }
.cal-filter-type { flex: 0 1 190px; }
.cal-nav { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.cal-nav .btn { height: 42px; }
@media (max-width: 767.98px) { .cal-filter { max-width: none; } .cal-nav { width: 100%; justify-content: space-between; margin-left: 0; } }
.crm-table tbody tr:hover { background: #fafcfe; }
.crm-table td.c-avatar, .crm-table td.c-color { cursor: pointer; }
.col-actions { width: 1%; white-space: nowrap; }
.c-longtext { max-width: 320px; } .longtext { font-size: .85rem; color: #45566a; word-break: break-word; }
.table-foot { display: flex; align-items: center; justify-content: space-between; padding: .6rem .85rem; border-top: 1px solid var(--line); background: #fafcfe; }
.swatch { display: inline-block; width: 22px; height: 22px; border-radius: 6px; border: 1px solid rgba(0,0,0,.1); vertical-align: middle; }
.thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.thumb-btn { padding: 0; border: 0; background: none; }
.crm-tabs { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; }
.crm-tabs .nav-item { padding: .7rem .85rem 0 .85rem; }
.crm-tabs .nav-link { white-space: nowrap; }
.crm-tabs .nav-link { color: var(--muted); font-weight: 600; } .crm-tabs .nav-link.active { color: var(--brand-dark); border-bottom-color: #f4f7fa; }

/* Tabla → tarjetas en móvil */
@media (max-width: 767.98px) {
  .crm-table thead { display: none; }
  .crm-table, .crm-table tbody, .crm-table tr, .crm-table td { display: block; width: 100%; }
  .crm-table tr { padding: .6rem .8rem; border-bottom: 8px solid var(--bg); }
  .crm-table td { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border: 0; text-align: right; }
  .crm-table td::before { content: attr(data-label); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); text-align: left; flex: none; align-self: center; }
  .crm-table td.c-avatar, .crm-table td:empty { display: none; }
  .crm-table td.col-check { justify-content: flex-start; padding: .1rem 0 .3rem; } .crm-table td.col-check::before { display: none; }
  .crm-table td.col-actions { justify-content: flex-end; padding-top: .55rem; }
  .crm-table td.col-actions::before { display: none; }
  .crm-table td.col-actions .btn { min-width: 44px; height: 40px; }
  .c-longtext { max-width: none; }
}

/* ---------- Formularios / modales ---------- */
.form-section { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-dark); font-weight: 800; border-bottom: 1px solid var(--line); padding-bottom: .35rem; margin: .4rem 0 0; }
.form-control, .form-select { min-height: 42px; }
.form-control-color { min-height: 42px; padding: .25rem; }
.checklist { border: 1px solid var(--line); border-radius: 10px; padding: .6rem; background: #fbfdfe; }
.checklist-body { max-height: 200px; overflow-y: auto; }
.check-row { display: flex; align-items: center; gap: .6rem; padding: .45rem .4rem; border-radius: 8px; cursor: pointer; }
.check-row:hover { background: var(--brand-soft); } .check-row input { width: 1.15rem; height: 1.15rem; flex: none; }
.flags-box { border: 1px solid var(--line); border-radius: 10px; padding: .4rem .6rem; background: #fbfdfe; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.roster { border: 1px solid var(--line); border-radius: 10px; padding: .6rem; background: #fbfdfe; }
.roster-body { max-height: 280px; overflow-y: auto; }
.roster-row { display: flex; align-items: center; gap: .6rem; padding: .3rem .4rem; border-radius: 8px; }
.roster-row:hover { background: var(--brand-soft); }
.roster-coord { max-width: 230px; flex: none; }
.signature-img { max-height: 160px; background: #fff; padding: .5rem; }
.matrix-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.matrix { margin: 0; min-width: 420px; } .matrix th[data-col-toggle] { cursor: pointer; } .matrix th { background: #f8fbfd; font-size: .75rem; text-transform: uppercase; }
.matrix input[type=checkbox] { width: 1.2rem; height: 1.2rem; }
.detail-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-dark); font-weight: 800; margin: 1rem 0 .4rem; border-bottom: 1px solid var(--line); padding-bottom: .3rem; }
.detail-title:first-child { margin-top: 0; }
.detail-list { display: grid; grid-template-columns: 1fr; gap: .1rem 1rem; margin: 0; }
.detail-list dt { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: .4rem; }
.detail-list dd { margin: 0; word-break: break-word; }
.detail-list pre { white-space: pre-wrap; font-size: .85rem; background: #f8fbfd; padding: .5rem; border-radius: 8px; }
@media (min-width: 576px) { .detail-list { grid-template-columns: 200px 1fr; } .detail-list dt { margin-top: 0; padding: .3rem 0; } .detail-list dd { padding: .3rem 0; } }

/* ---------- Fichajes: calendario ---------- */
.cal-month-label { min-width: 150px; text-align: center; font-weight: 800; color: var(--brand-dark); }
.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 6px; text-align: center; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-cell { min-height: 74px; border: 1px solid var(--line); border-radius: 8px; padding: .35rem; background: #fff; }
.cal-cell-empty { background: transparent; border-color: transparent; }
.cal-cell.has-entries { cursor: pointer; background: #fbfdfe; }
.cal-cell.has-entries:hover { background: var(--brand-soft); border-color: var(--brand); }
.cal-cell.cal-today { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.cal-daynum { font-size: .78rem; font-weight: 700; color: var(--muted); }
.cal-today .cal-daynum { color: var(--brand-dark); }
.cal-badges { display: flex; flex-wrap: wrap; gap: 3px; margin-top: .3rem; }
.cal-badges .badge { font-weight: 600; }
.cal-entry-img { width: 56px; height: 56px; object-fit: cover; flex: none; background: #f2f2f2; }
@media (max-width: 575.98px) { .cal-cell { min-height: 54px; font-size: .8rem; } .cal-weekdays { font-size: .62rem; } }
.modal-fullscreen-sm-down .modal-content { border-radius: 0; }
.modal-dialog-scrollable .modal-content > form { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.modal-dialog-scrollable .modal-content > form > .modal-header, .modal-dialog-scrollable .modal-content > form > .modal-footer { flex: 0 0 auto; }
.modal-dialog-scrollable .modal-content > form > .modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }

/* ---------- Fichaje ---------- */
.clock-fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 1040; display: inline-flex; align-items: center; gap: .55rem; border: 0; color: #fff; font-weight: 700; padding: .85rem 1.15rem; border-radius: 999px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); background: #8a99a8; font-size: .95rem; min-height: 52px; }
.clock-fab i { font-size: 1.35rem; }
.clock-fab[data-state="in"] { background: var(--ok); animation: pulseOk 2.4s infinite; }
.clock-fab[data-state="out"] { background: var(--bad); }
@keyframes pulseOk { 0% { box-shadow: 0 8px 24px rgba(0,0,0,.25), 0 0 0 0 rgba(30,158,90,.5); } 70% { box-shadow: 0 8px 24px rgba(0,0,0,.25), 0 0 0 14px rgba(30,158,90,0); } 100% { box-shadow: 0 8px 24px rgba(0,0,0,.25), 0 0 0 0 rgba(30,158,90,0); } }
.selfie-box { position: relative; width: min(100%, 420px); aspect-ratio: 1; margin: 0 auto; background: #0e1a26; border-radius: 16px; overflow: hidden; }
.selfie-box video, .selfie-box img { width: 100%; height: 100%; object-fit: cover; }
.selfie-box video { transform: scaleX(-1); }
.selfie-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 1.5rem; color: #fff; text-align: center; background: rgba(14, 26, 38, .85); }
.selfie-msg.err { color: #ffb4b4; }

/* ---------- Mi cuenta ---------- */
.profile-avatar { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto; overflow: hidden; background: linear-gradient(135deg, var(--brand), var(--brand-2)); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 3rem; font-weight: 800; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Login ---------- */
.auth-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; background: radial-gradient(1200px 500px at 10% -10%, #d8eefb 0, transparent 60%), radial-gradient(900px 500px at 110% 110%, #e2f5ff 0, transparent 60%), var(--bg); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); }
.auth-card { position: relative; margin-top: 4.5rem; width: 100%; max-width: 420px; background: #fff; border-radius: 18px; padding: 2rem 1.75rem; box-shadow: 0 10px 40px rgba(30, 70, 110, .12); border: 1px solid var(--line); }
.auth-logo-link { display: block; text-align: center; transition: opacity .15s; }
.auth-logo-link:hover { opacity: .6; }
.auth-logo { display: inline-block; height: 110px; max-width: 100%; margin: -125px auto 1.4rem; filter: drop-shadow(0 6px 10px rgba(30, 70, 110, .18)); }
.auth-title { font-size: 1.25rem; font-weight: 700; text-align: center; margin-bottom: 1.25rem; }
.site-copy { text-align: center; font-size: .75rem; color: var(--muted); margin: 2rem 0 0; }
.site-copy a { color: var(--brand-dark); text-decoration: none; font-weight: 600; } .site-copy a:hover { text-decoration: underline; }
.auth-card .site-copy { margin-top: 1.5rem; }
.page-title-link { color: inherit; text-decoration: none; } .page-title-link:hover { color: var(--brand-dark); }
.auth-body .btn-primary { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark); }
.auth-card .form-control, .auth-card .input-group-text { font-size: 16px; }
.auth-body a { color: var(--brand-dark); }

/* ---------- Overlay bloqueante con progreso (p. ej. generación de PDF en bloque) ---------- */
.crm-blockoverlay { position: fixed; inset: 0; z-index: 2000; background: rgba(15, 30, 45, .55); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; }
.crm-blockoverlay-box { background: #fff; border-radius: 14px; padding: 2rem 2.25rem; width: 100%; max-width: 360px; text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.crm-blockoverlay-box > .fa-spinner { font-size: 1.75rem; color: var(--brand); margin-bottom: .75rem; }
.crm-blockoverlay-label { font-size: .9rem; color: var(--ink); margin-bottom: 1rem; }
.crm-blockoverlay-box .progress { height: 10px; border-radius: 6px; }
.crm-blockoverlay-pct { margin-top: .5rem; font-size: .8rem; color: var(--muted); font-weight: 600; }

/* Foto del candidato en el formulario de RRHH */
.file-thumb { max-width: 160px; max-height: 160px; object-fit: cover; }
