:root {
  --bhv-bg: #f3f6fb;
  --bhv-surface: #ffffff;
  --bhv-surface-soft: #eef3fa;
  --bhv-border: #d7deea;
  --bhv-text: #10233f;
  --bhv-muted: #4c5f7c;
  --bhv-primary: #0f3d73;
  --bhv-primary-2: #1e5aa7;
  --bhv-accent: #d98b2b;
  --bhv-success: #147a41;
  --bhv-danger: #b5232f;
  --bhv-radius: 10px;
  --bhv-shadow: 0 6px 20px rgba(16, 35, 63, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f8faff 0%, var(--bhv-bg) 100%);
  color: var(--bhv-text);
  font-family: "Segoe UI", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.35;
}

a {
  color: var(--bhv-primary-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.bhv-auth-page {
  padding: 28px 14px 40px;
}

.bhv-auth-page .tablalogin {
  width: min(760px, 100%);
  background: var(--bhv-surface);
  border: 1px solid var(--bhv-border);
  border-radius: var(--bhv-radius);
  box-shadow: var(--bhv-shadow);
  padding: 14px 16px;
}

.bhv-auth-page .titulo1 h1 {
  margin: 8px 0 0;
  color: var(--bhv-primary);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.bhv-auth-page .subtitulo1,
.bhv-auth-page .recuadroTabla {
  color: var(--bhv-text);
  font-weight: 600;
}

.bhv-auth-page .nav,
.bhv-auth-page input[type="text"],
.bhv-auth-page input[type="password"],
.bhv-auth-page select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--bhv-border);
  border-radius: 8px;
  padding: 7px 10px;
  background: #fff;
  color: var(--bhv-text);
}

.bhv-auth-page .nav:focus,
.bhv-auth-page input:focus,
.bhv-auth-page select:focus {
  outline: none;
  border-color: #87a7d8;
  box-shadow: 0 0 0 3px rgba(33, 84, 155, 0.15);
}

.bhv-auth-page .navLink {
  min-width: 170px;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--bhv-primary-2), var(--bhv-primary));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.bhv-auth-page .navLink:hover {
  filter: brightness(1.05);
}

.bhv-auth-note {
  width: min(760px, 100%);
  margin: 10px auto 0;
  border: 1px solid #cdd9eb;
  border-left: 5px solid var(--bhv-primary-2);
  border-radius: 8px;
  background: #f5f9ff;
  color: var(--bhv-muted);
  padding: 9px 12px;
  font-size: 14px;
}

.bhv-auth-msg {
  width: min(760px, 100%);
  margin: 10px auto 0;
  color: #6b1520;
  font-weight: 600;
  text-align: center;
}

.bhv-auth-actions {
  width: min(760px, 100%);
  margin: 10px auto 0;
  text-align: center;
}

.bhv-register-page {
  padding-top: 22px;
}

.bhv-register-page .bhv-register-form {
  width: min(980px, calc(100% - 24px));
  margin: 0 auto;
}

.bhv-register-page .bhv-register-card {
  width: 100%;
  max-width: 980px;
}

.bhv-register-page .bhv-register-card caption h2 {
  margin: 2px 0 0;
  font-size: 30px;
  color: var(--bhv-primary);
  letter-spacing: 0.2px;
}

.bhv-register-page .bhv-register-card td {
  padding: 8px 10px;
  vertical-align: middle;
}

.bhv-register-page .bhv-register-intro {
  text-align: left;
  font-weight: 500;
  color: var(--bhv-text);
}

.bhv-register-page .bhv-register-intro p {
  margin: 0 0 8px;
  line-height: 1.45;
}

.bhv-register-page .bhv-register-intro p:last-child {
  margin-bottom: 0;
}

.bhv-register-page .bhv-register-card td:first-child {
  width: 40%;
  font-weight: 700;
  color: var(--bhv-text);
  white-space: nowrap;
}

.bhv-register-page .bhv-register-card td:last-child {
  width: 60%;
}

.bhv-register-page .bhv-register-card select[name="dia"],
.bhv-register-page .bhv-register-card select[name="mes"],
.bhv-register-page .bhv-register-card select[name="ano"] {
  width: auto !important;
  min-width: 72px;
  display: inline-block;
  margin-right: 10px;
  vertical-align: middle;
}

.bhv-register-page .bhv-register-card select[name="ano"] {
  min-width: 96px;
  margin-right: 0;
}

.bhv-register-page .bhv-register-card input[type="file"] {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--bhv-border);
  border-radius: 8px;
  background: #fff;
  padding: 6px 8px;
}

.bhv-register-page .bhv-register-consent {
  width: min(980px, calc(100% - 24px));
  margin: 12px auto 0;
  border: 1px solid var(--bhv-border);
  border-radius: 10px;
  background: var(--bhv-surface);
  padding: 12px 14px;
  color: var(--bhv-text);
}

.bhv-register-page .bhv-register-consent-table {
  width: 100%;
}

.bhv-register-page .bhv-register-warning {
  width: min(980px, calc(100% - 24px));
  margin: 10px auto 0;
  color: var(--bhv-text);
}

.bhv-register-page .bhv-register-actions {
  width: min(980px, calc(100% - 24px));
}

.bhv-register-page .bhv-register-actions .navLink {
  min-width: 180px;
}

.bhv-register-page .bhv-register-feedback {
  padding-top: 8px;
  font-weight: 700;
}

.bhv-app-page {
  padding-bottom: 28px;
}

.bhv-app-page #tablap,
.bhv-app-page .tablamenu,
.bhv-app-page #tablacuerpo {
  width: min(1400px, calc(100% - 24px));
  margin-left: auto;
  margin-right: auto;
}

.bhv-app-page #tablap td {
  background: #f8fbff;
  border-bottom: 1px solid var(--bhv-border);
}

.bhv-app-page #tablap {
  border-collapse: separate;
  border-spacing: 8px 8px;
  background: var(--bhv-surface);
  border: 1px solid var(--bhv-border);
  border-radius: var(--bhv-radius);
  box-shadow: var(--bhv-shadow);
  padding: 8px 10px;
  margin-top: 8px;
}

.bhv-app-page #tablap td {
  background: transparent;
  border: 0;
  color: var(--bhv-text);
  font-weight: 600;
  white-space: nowrap;
}

.bhv-app-page #tablap input[type="text"],
.bhv-app-page #tablap select {
  min-height: 36px;
  border: 1px solid var(--bhv-border);
  border-radius: 8px;
  padding: 6px 10px;
  background: #fff;
  color: var(--bhv-text);
}

.bhv-app-page #tablap input[type="text"] {
  min-width: 170px;
}

.bhv-app-page #tablap .navLink {
  min-width: 110px;
  min-height: 36px;
}

.bhv-app-page #tablap a.cambiarclave {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 8px;
  background: #eef3fa;
  border: 1px solid var(--bhv-border);
  color: var(--bhv-primary);
  font-weight: 700;
}

.bhv-app-page #tablap a.cambiarclave:hover {
  background: #e1ebf8;
  text-decoration: none;
}

.bhv-app-page #tablamenu {
  border-collapse: separate;
  border-spacing: 4px;
  background: transparent;
  margin-top: 6px;
}

.bhv-app-page .tablamenu td {
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.bhv-app-page .tablamenu .seleccionado {
  background: #5f6a7a;
}

.bhv-app-page .tablamenu .noseleccionado {
  background: linear-gradient(180deg, #f6b23b, #e39a22);
}

.bhv-app-page #tablacuerpo {
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bhv-surface);
  border: 1px solid var(--bhv-border);
  border-radius: var(--bhv-radius);
  overflow: hidden;
  box-shadow: var(--bhv-shadow);
}

.bhv-app-page #tablacuerpo caption {
  background: linear-gradient(180deg, #1f4f8a, #163f71);
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 10px 14px;
}

.bhv-app-page #tablacuerpo td {
  border: 1px solid var(--bhv-border);
}

.bhv-app-page #tablacuerpo .recuadroTabla {
  background: #e9eff8;
  color: var(--bhv-text);
  font-weight: 700;
}

.bhv-app-page #tablacuerpo td:not(.recuadroTabla),
.bhv-app-page #tablacuerpo .recuadroTabla2 {
  background: #f3f2f1;
}

.bhv-app-page #tablacuerpo td>span.excel3,
.bhv-app-page #tablacuerpo td>span.excel4 {
  display: block;
  width: 100%;
  background: #f3f2f1;
}

.bhv-app-page .text,
.bhv-app-page #tablacuerpo input[type="text"],
.bhv-app-page #tablacuerpo select,
.bhv-app-page #tablacuerpo textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--bhv-border);
  border-radius: 8px;
  padding: 7px 10px;
  color: var(--bhv-text);
}

.bhv-app-page .navLink {
  min-width: 200px;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--bhv-primary-2), var(--bhv-primary));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.bhv-app-page .navLink:hover {
  filter: brightness(1.06);
}

/* Fecha (DD/MM/AAAA): separacion y anchos consistentes en admin/usuario */
.bhv-app-page select[name="dia"],
.bhv-app-page select[name="mes"],
.bhv-app-page select[name="dia2"],
.bhv-app-page select[name="mes2"] {
  width: auto !important;
  min-width: 64px;
  margin-right: 10px;
  display: inline-block;
  vertical-align: middle;
}

.bhv-app-page select[name="ano"],
.bhv-app-page select[name="ano2"] {
  width: auto !important;
  min-width: 96px;
  display: inline-block;
  vertical-align: middle;
}

.bhv-step-hint {
  width: min(1400px, calc(100% - 24px));
  margin: 10px auto 20px;
  border: 1px solid #cdd9eb;
  border-left: 5px solid var(--bhv-primary-2);
  border-radius: 8px;
  background: #f5f9ff;
  color: var(--bhv-muted);
  padding: 9px 12px;
  font-size: 14px;
}

.bhv-app-page #tablalogo {
  width: min(1400px, calc(100% - 24px));
  margin: 12px auto 8px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bhv-surface);
  border: 1px solid var(--bhv-border);
  border-radius: var(--bhv-radius);
  overflow: hidden;
  box-shadow: var(--bhv-shadow);
}

.bhv-app-page #tablalogo td {
  border-bottom: 1px solid var(--bhv-border);
  background: #f8fbff;
  color: var(--bhv-text);
  font-weight: 700;
}

/* Admin: legibilidad de consulta extensa */
.bhv-admin-page #tablacuerpo {
  font-size: 14px;
}

.bhv-admin-page #tablacuerpo td {
  padding: 9px 10px;
  vertical-align: top;
  line-height: 1.35;
}

.bhv-admin-page #tablacuerpo .recuadroTabla {
  background: #e6eef9;
  font-size: 13px;
  letter-spacing: 0.1px;
}

.bhv-admin-page #tablacuerpo tr.recuadroTabla2 td {
  background: #f9fbff;
}

.bhv-admin-page #tablacuerpo tr.recuadroTabla2:nth-of-type(even) td {
  background: #f2f7ff;
}

.bhv-admin-page #tablacuerpo td a {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid #b7c9e6;
  border-radius: 999px;
  background: #edf4ff;
  color: #0b3f7a;
  font-weight: 700;
  text-decoration: none;
}

.bhv-admin-page #tablacuerpo td a:hover {
  background: #dceaff;
  border-color: #8fb0de;
  color: #0a3464;
}

.bhv-admin-page #tablacuerpo td a:focus {
  outline: 2px solid #7ea2d6;
  outline-offset: 1px;
}

/* Admin: panel de revision (estado/comentario) */
.bhv-admin-page form.bhv-admin-review>table,
.bhv-admin-page table.bhv-admin-review-readonly {
  width: min(980px, calc(100% - 24px));
  margin: 10px auto 12px;
  border-collapse: separate;
  border-spacing: 8px 8px;
  background: var(--bhv-surface);
  border: 1px solid var(--bhv-border);
  border-radius: var(--bhv-radius);
  box-shadow: var(--bhv-shadow);
  padding: 8px 10px;
}

.bhv-admin-page form.bhv-admin-review select#admitido,
.bhv-admin-page form.bhv-admin-review select#categoria,
.bhv-admin-page table.bhv-admin-review-readonly select#admitido {
  min-width: 220px;
  min-height: 38px;
  border: 1px solid var(--bhv-border);
  border-radius: 8px;
  background: #fff;
  color: var(--bhv-text);
  font-weight: 700;
}

.bhv-admin-page form.bhv-admin-review textarea[name="comentario"],
.bhv-admin-page table.bhv-admin-review-readonly textarea[name="comentario"] {
  width: min(940px, calc(100% - 8px));
  min-height: 88px;
  border: 1px solid var(--bhv-border);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: var(--bhv-text);
  resize: vertical;
}

.bhv-admin-page form.bhv-admin-review input[type="button"][value="Guardar"] {
  min-width: 120px;
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--bhv-primary-2), var(--bhv-primary));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.bhv-admin-page form.bhv-admin-review a[href*="digitarresultadosExcel.php"] {
  display: inline-block;
  margin-left: 8px;
  padding: 8px 10px;
  border: 1px solid var(--bhv-border);
  border-radius: 8px;
  background: #eef3fa;
  color: var(--bhv-primary) !important;
  font-weight: 700;
  text-decoration: none;
}

.bhv-admin-page form.bhv-admin-review a[href*="digitarresultadosExcel.php"]:hover {
  background: #e1ebf8;
}

/* Admin: reportes por fecha (filtros + botones de modulo) */
.bhv-app-page .bhv-report-filters {
  width: min(960px, calc(100% - 24px)) !important;
  margin: 8px auto 10px;
  border-collapse: separate;
  border-spacing: 8px;
  background: var(--bhv-surface);
  border: 1px solid var(--bhv-border);
  border-radius: var(--bhv-radius);
  box-shadow: var(--bhv-shadow);
  padding: 10px;
}

.bhv-app-page .bhv-report-filters td {
  color: var(--bhv-text);
  font-weight: 600;
}

.bhv-app-page .bhv-report-filters select {
  min-height: 36px;
  border: 1px solid var(--bhv-border);
  border-radius: 8px;
  background: #fff;
  color: var(--bhv-text);
}

.bhv-app-page .bhv-report-modules {
  width: min(1400px, calc(100% - 24px)) !important;
  margin: 8px auto;
  border-collapse: separate;
  border-spacing: 8px 8px;
}

.bhv-app-page .bhv-report-modules input[type="button"] {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #c8d7ec;
  border-radius: 8px;
  background: #f4f8ff;
  color: #153d70;
  font-weight: 700;
  cursor: pointer;
}

.bhv-app-page .bhv-report-modules input[type="button"]:hover {
  background: #e5efff;
}

/* Iframe interno de query_fecha_* */
body>table[id^="tabla"] {
  width: min(1400px, 100%);
  margin: 0 auto 14px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bhv-surface);
  border: 1px solid var(--bhv-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--bhv-shadow);
}

body>table[id^="tabla"] th,
body>table[id^="tabla"] td {
  border: 1px solid var(--bhv-border);
  padding: 8px 10px;
  color: var(--bhv-text);
  font-size: 14px;
}

body>table[id^="tabla"] tr:first-child th {
  background: linear-gradient(180deg, #1f4f8a, #163f71);
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: none;
}

body>table[id^="tabla"] tr:nth-child(2) th {
  background: #e9eff8 !important;
  color: var(--bhv-text);
  font-size: 13px;
  font-weight: 700;
}

body>table[id^="tabla"] tr:nth-child(n+3):nth-child(even) th,
body>table[id^="tabla"] tr:nth-child(n+3):nth-child(even) td {
  background: #f8fbff;
}

/* Admin: encabezado fijo de consulta para scroll largo */
.bhv-admin-page #tablap {
  position: sticky;
  top: 0;
  z-index: 70;
}

.bhv-admin-page #tablamenu {
  position: sticky;
  top: 76px;
  z-index: 69;
  padding-top: 4px;
  padding-bottom: 4px;
  background: rgba(243, 246, 251, 0.96);
  backdrop-filter: blur(2px);
}

@media (max-width: 980px) {

  .bhv-admin-page #tablap,
  .bhv-admin-page #tablamenu {
    position: static;
  }
}

.bhv-app-page table.resultados {
  width: min(1400px, calc(100% - 24px));
  margin: 8px auto 16px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bhv-surface);
  border: 1px solid var(--bhv-border);
  border-radius: 10px;
  overflow: hidden;
}

.bhv-app-page table.resultados caption {
  background: linear-gradient(180deg, #1f4f8a, #163f71);
  color: #fff;
  font-weight: 700;
  font-size: 28px;
  padding: 8px 12px;
}

.bhv-app-page table.resultados th,
.bhv-app-page table.resultados td {
  border: 1px solid var(--bhv-border);
  padding: 8px 10px;
}

.bhv-app-page table.resultados th {
  background: #e9eff8;
  color: var(--bhv-text);
  font-weight: 700;
}

.bhv-app-page table.resultados tr:nth-child(even) td {
  background: #f8fbff;
}

@media (max-width: 980px) {
  .bhv-auth-page .titulo1 h1 {
    font-size: 28px;
  }

  .bhv-app-page #tablacuerpo caption {
    font-size: 28px;
  }

  .bhv-app-page table.resultados caption {
    font-size: 22px;
  }
}

@media (max-width: 760px) {
  .bhv-auth-page {
    padding: 18px 10px 28px;
  }

  .bhv-auth-page .tablalogin {
    padding: 10px;
  }

  .bhv-app-page #tablap,
  .bhv-app-page .tablamenu,
  .bhv-app-page #tablacuerpo,
  .bhv-step-hint {
    width: calc(100% - 12px);
  }
}

/* =========================================================
   MODERN SPLIT-SCREEN LOGIN STYLES 
   ========================================================= */

body.bhv-auth-page-modern {
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  display: flex;
  min-height: 100vh;
  font-family: "Segoe UI", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--bhv-text);
}

.bhv-split-layout {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* Left Panel - Branding */
.bhv-split-brand {
  flex: 1;
  background: linear-gradient(135deg, var(--bhv-primary) 0%, #061c38 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.bhv-brand-content {
  width: 100%;
  max-width: 480px;
  z-index: 2;
  text-align: center;
}

.bhv-brand-logo {
  display: block;
  max-width: 280px;
  margin: 0 auto 24px;
  background: rgba(255, 255, 255, 0.95);
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.bhv-brand-content h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.2;
}

.bhv-brand-content>p {
  max-width: 390px;
  font-size: 1.2rem;
  color: #aed1f7;
  margin: 0 auto 30px;
}

.bhv-brand-info {
  width: 100%;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1);
  padding: 24px;
  border-radius: var(--bhv-radius);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: left;
}

.bhv-brand-info p {
  margin: 0;
  line-height: 1.6;
  font-size: 0.95rem;
}

.bhv-brand-info .bhv-brand-links {
  margin-top: 8px;
  text-align: center;
}

.bhv-brand-info .bhv-brand-description {
  text-align: left;
}

.bhv-brand-info a {
  color: #fbbf24;
  font-weight: 600;
}

/* Right Panel - Form */
.bhv-split-form {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bhv-surface);
  padding: 40px;
}

.bhv-form-wrapper {
  width: 100%;
  max-width: 400px;
}

.bhv-form-header {
  margin-bottom: 32px;
  text-align: center;
}

.bhv-form-header h2 {
  font-size: 1.8rem;
  color: var(--bhv-primary);
  margin: 0 0 8px 0;
  font-weight: 700;
}

.bhv-form-header p {
  margin: 0;
  color: var(--bhv-muted);
}

/* Spacing optimization */
.bhv-input-group {
  margin-bottom: 10px;
}

.bhv-label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  color: var(--bhv-text);
  font-size: 0.875rem;
}

.bhv-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  background: #f9fafb;
}

.bhv-input:focus {
  outline: none;
  border-color: var(--bhv-primary-2);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(30, 90, 167, 0.15);
}

.bhv-btn-primary {
  width: 100%;
  padding: 14px;
  background: var(--bhv-primary-2);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 16px;
}

.bhv-btn-primary:hover {
  background: var(--bhv-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 61, 115, 0.2);
}

.bhv-btn-primary:active {
  transform: translateY(0);
}

.bhv-auth-links {
  margin-top: 14px;
  text-align: center;
  font-size: 0.95rem;
  color: #4c5f7c !important;
}

.bhv-register-cta {
  margin-top: 20px;
  text-align: center;
}

.bhv-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: #718096;
  font-size: 0.85rem;
}

.bhv-auth-divider::before,
.bhv-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--bhv-border);
}

.bhv-auth-divider span {
  flex: 0 0 auto;
}

.bhv-register-cta h3 {
  margin: 0 0 6px;
  color: var(--bhv-primary);
  font-size: 1.05rem;
}

.bhv-register-cta p {
  margin: 0 0 14px;
  color: var(--bhv-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.bhv-btn-secondary {
  display: inline-flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border: 1px solid var(--bhv-primary-2);
  border-radius: 8px;
  background: #fff;
  color: var(--bhv-primary-2) !important;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.bhv-btn-secondary:hover {
  background: #eef5ff;
  color: var(--bhv-primary) !important;
  box-shadow: 0 3px 10px rgba(15, 61, 115, 0.12);
}

.bhv-btn-secondary:focus-visible {
  outline: 3px solid rgba(30, 90, 167, 0.25);
  outline-offset: 2px;
}

.bhv-link,
.bhv-auth-links a {
  color: #1e5aa7 !important;
  font-weight: 600;
  text-decoration: none;
}

.bhv-link:hover,
.bhv-auth-links a:hover {
  text-decoration: underline;
  color: #0f3d73 !important;
}

.bhv-auth-msg {
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 16px;
  text-align: center;
  border: 1px solid transparent;
}

.bhv-auth-msg.error-msg {
  background-color: #fef2f2;
  color: #991b1b;
  border-color: #f87171;
}

.bhv-auth-msg.success-msg {
  background-color: #f0fdf4;
  color: #166534;
  border-color: #4ade80;
}

.bhv-auth-msg.sys-msg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background-color: #eff6ff;
  color: #1e40af;
  border-color: #93c5fd;
}

.bhv-auth-msg.sys-msg::before {
  content: "i";
  display: inline-flex;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #dbeafe;
  color: #1e40af;
  font-size: 0.78rem;
  font-weight: 800;
}

/* Responsiveness */
@media (max-width: 900px) {
  .bhv-split-layout {
    flex-direction: column;
  }

  .bhv-split-brand {
    padding: 30px 20px;
    flex: none;
  }

  .bhv-brand-content {
    text-align: center;
  }

  .bhv-split-form {
    padding: 30px 20px;
  }

  .bhv-brand-logo {
    margin: 0 auto 16px;
  }
}

/* =========================================================
   MODERN REGISTRATION GRID STYLES 
   ========================================================= */

body.bhv-register-page-modern {
  background-color: var(--bhv-bg);
  padding: 40px 20px;
}

.bhv-center-card-layout {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.bhv-center-card {
  width: 100%;
  max-width: 800px;
  background: var(--bhv-surface);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  padding: 40px 50px;
  border-top: 6px solid var(--bhv-primary-2);
}

.bhv-register-header h2 {
  color: var(--bhv-primary);
  font-size: 2rem;
  margin: 0 0 5px 0;
}

.bhv-register-header p {
  color: var(--bhv-accent);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 20px 0;
}

.bhv-register-intro {
  background: var(--bhv-surface-soft);
  padding: 15px 20px;
  border-radius: 8px;
  border: 1px solid var(--bhv-border);
  margin-bottom: 30px;
}

.bhv-register-intro p {
  margin: 5px 0;
  color: var(--bhv-text);
  font-size: 0.95rem;
}

.bhv-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.bhv-section-title {
  font-size: 1.25rem;
  color: var(--bhv-primary);
  margin-bottom: 15px;
  padding-bottom: 5px;
}

.bhv-divider {
  border: none;
  border-top: 1px solid var(--bhv-border);
  margin: 30px 0;
}

.bhv-register-consent-modern {
  background: #fdfaf6;
  border-left: 4px solid var(--bhv-accent);
  padding: 20px;
  border-radius: 8px;
  margin-top: 30px;
  font-size: 0.9rem;
}

.bhv-checkbox-group {
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bhv-checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

/* Validacion Nativa HTML5 CSS */
.bhv-input:valid {
  border-color: #4ade80;
}

.bhv-input:invalid:not(:placeholder-shown) {
  border-color: #f87171;
}

@media (max-width: 760px) {
  .bhv-center-card {
    padding: 30px 20px;
  }

  .bhv-form-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   DASHBOARD INNER CARDS & DATA TABLES
   ========================================================= */

.bhv-inner-card {
  width: 100%;
  background: var(--bhv-surface);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); /* Stronger shadow to see difference */
  padding: 15px 25px; /* Much smaller */
  margin-bottom: 20px;
  border-top: 5px solid var(--bhv-primary-2);
}

.bhv-inner-card-title {
  color: var(--bhv-primary);
  font-size: 1.6rem;
  margin-top: 0;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--bhv-border);
}

.bhv-date-group {
    display: flex;
    gap: 10px;
}
.bhv-input-mini {
    flex: 1;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    background: #f9fafb;
}

.bhv-select-wrapper {
    position: relative;
    width: 100%;
}
.bhv-select-wrapper select {
    width: 100%;
}

.bhv-data-table {
  width: 100%;
  background: var(--bhv-surface);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-collapse: collapse; /* Use collapse to avoid side spacing */
  overflow: hidden;
  border: 1px solid var(--bhv-border);
  margin-top: 15px;
}

.bhv-data-table caption {
  background: linear-gradient(135deg, var(--bhv-primary-2), var(--bhv-primary));
  color: #fff;
  font-weight: 700;
  padding: 12px 25px; /* Matched to card padding */
  font-size: 1.1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.bhv-data-table th {
  background: #f8fafc;
  color: var(--bhv-text);
  font-weight: 600;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 2px solid var(--bhv-border);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.bhv-data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #edf2f7;
  color: var(--bhv-text);
  vertical-align: middle;
  font-size: 0.825rem;
  line-height: 1.4;
}

.bhv-data-table tr:last-child td {
  border-bottom: none;
}

.bhv-data-table tr:hover td {
  background-color: #f8fbff;
}

.bhv-btn-danger-pill {
    display: inline-block;
    background: transparent;
    color: #dc2626 !important;
    border: 1px solid #dc2626;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.bhv-btn-danger-pill:hover {
    background: #dc2626 !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.2);
}

.bhv-btn-pill {
    display: inline-block;
    background: transparent;
    color: var(--bhv-primary) !important;
    border: 1px solid var(--bhv-primary);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.2s ease;
    text-decoration: none !important;
    cursor: pointer;
}

.bhv-btn-pill:hover {
    background: var(--bhv-primary) !important;
    color: #fff !important;
}

.bhv-btn-pill-success {
    display: inline-block;
    background: transparent;
    color: var(--bhv-success) !important;
    border: 1px solid var(--bhv-success);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.2s ease;
    text-decoration: none !important;
    cursor: pointer;
}

.bhv-btn-pill-success:hover {
    background: var(--bhv-success) !important;
    color: #fff !important;
}

/* =========================================================
   SHELL ACTION BAR OVERRIDES
   ========================================================= */
.bhv-action-bar {
  justify-content: center !important;
  align-items: center !important;
}

.bhv-action-bar button, .bhv-action-bar .bhv-btn {
  width: auto !important;
  height: 40px !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 25px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

/* =========================================================
   CATÁLOGO DE PERFILES CONVOCADOS
   ========================================================= */
.bhv-profile-status {
  min-height: 22px;
  margin-top: 12px;
  color: var(--bhv-muted);
  font-size: 13px;
}

.bhv-profile-card {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid #c8d8ec;
  border-left: 5px solid var(--bhv-primary);
  border-radius: 12px;
  background: #f8fbff;
}

.bhv-profile-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #d9e4f2;
}

.bhv-profile-card-header h3 {
  margin: 7px 0 5px;
  color: var(--bhv-primary-dark);
  font-size: 20px;
}

.bhv-profile-code {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bhv-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.bhv-profile-program {
  margin: 0;
  color: var(--bhv-muted);
  font-weight: 600;
}

.bhv-profile-vacancies {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 8px;
  background: #e8f2ff;
  color: var(--bhv-primary-dark);
  font-weight: 800;
}

.bhv-profile-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 0;
}

.bhv-profile-details > div {
  padding: 14px;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e1e8f2;
}

.bhv-profile-details dt {
  margin-bottom: 6px;
  color: var(--bhv-primary-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.bhv-profile-details dd {
  margin: 0;
  color: #334155;
  line-height: 1.5;
  white-space: pre-line;
}

.bhv-profile-detail-wide {
  grid-column: 1 / -1;
}

.bhv-profile-warning {
  margin: 16px 0 0;
  padding: 11px 13px;
  border: 1px solid #f1c46b;
  border-radius: 8px;
  background: #fff8e8;
  color: #7a5200;
  font-weight: 700;
}

.bhv-profile-actions {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.bhv-empty-cell {
  padding: 22px !important;
  color: var(--bhv-muted);
  text-align: center !important;
}

@media (max-width: 760px) {
  .bhv-profile-card-header {
    flex-direction: column;
  }

  .bhv-profile-details {
    grid-template-columns: 1fr;
  }

  .bhv-profile-detail-wide {
    grid-column: auto;
  }
}

