 /* ── Overrides & page-specific ───────────────────────── */

 /* Nav icon via Material Symbols */
 .nav-ms-icon {
     font-size: 20px;
     flex-shrink: 0;
     color: var(--color-text-light);
     transition: color var(--transition);
     font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
 }

 .nav-link.active .nav-ms-icon,
 .nav-link:hover .nav-ms-icon {
     color: var(--color-accent);
 }

 /* ── Crear-vacante page layout ───────────────────────── */
 .cv-page {
     flex: 1;
     padding: 28px 32px 60px;
     display: flex;
     flex-direction: column;
     gap: 0;
     background: var(--color-body-bg);
 }

 /* ── Page header ─────────────────────────────────────── */
 .cv-page-header {
     display: flex;
     align-items: flex-start;
     justify-content: space-between;
     flex-wrap: wrap;
     gap: 14px;
     margin-bottom: 8px;
 }

 .cv-page-title {
     font-size: 22px;
     font-weight: 700;
     color: #111827;
     font-family: 'Lato', sans-serif;
     line-height: 1.2;
 }

 .cv-header-actions {
     display: flex;
     align-items: center;
     gap: 10px;
 }

 /* ── Buttons ─────────────────────────────────────────── */
 .btn-guardar {
     display: inline-flex;
     align-items: center;
     gap: 6px;
     padding: 9px 24px;
     background: #111827;
     color: #fff;
     border: none;
     border-radius: 8px;
     font-size: 14px;
     font-weight: 600;
     font-family: var(--font-base);
     cursor: pointer;
     transition: background var(--transition), box-shadow var(--transition);
     white-space: nowrap;
 }

 .btn-guardar:hover {
     background: var(--color-brand);
     box-shadow: var(--shadow-md);
 }

 .btn-volver {
     display: inline-flex;
     align-items: center;
     gap: 6px;
     padding: 9px 16px;
     background: #fff;
     color: #374151;
     border: 1px solid #e5e7eb;
     border-radius: 8px;
     font-size: 14px;
     font-weight: 500;
     font-family: var(--font-base);
     cursor: pointer;
     text-decoration: none;
     transition: background var(--transition), border-color var(--transition);
     white-space: nowrap;
 }

 .btn-volver:hover {
     background: #f3f4f6;
     border-color: #d1d5db;
 }

 .btn-volver .nav-ms-icon {
     font-size: 17px;
     color: #374151;
 }

 /* ── Breadcrumb ──────────────────────────────────────── */
 .cv-breadcrumb {
     font-size: 12px;
     color: #9ca3af;
     display: flex;
     align-items: center;
     gap: 5px;
     margin-bottom: 22px;
 }

 .cv-breadcrumb a {
     color: #9ca3af;
     text-decoration: none;
     transition: color .15s;
 }

 .cv-breadcrumb a:hover {
     color: var(--color-brand);
 }

 .cv-breadcrumb span {
     color: #374151;
     font-weight: 500;
 }

 .cv-breadcrumb .bc-arrow {
     font-size: 14px;
     color: #d1d5db;
 }

 .cv-breadcrumb .bc-home {
     font-size: 16px;
     color: #9ca3af;
 }

 /* ── Tabs ────────────────────────────────────────────── */
 .cv-tabs {
     display: flex;
     border-bottom: 2px solid #e5e7eb;
     margin-bottom: 28px;
 }

 .cv-tab {
     padding: 10px 20px 10px 4px;
     font-size: 14px;
     font-weight: 500;
     color: #6b7280;
     cursor: pointer;
     background: none;
     border: none;
     font-family: var(--font-base);
     border-bottom: 3px solid transparent;
     margin-bottom: -2px;
     margin-right: 4px;
     transition: color .15s, border-color .15s;
 }

 .cv-tab:hover {
     color: #111827;
 }

 .cv-tab.active {
     color: #111827;
     font-weight: 700;
     border-bottom-color: #111827;
 }

 /* ── Tab panels ──────────────────────────────────────── */
 .cv-panel {
     display: none;
 }

 .cv-panel.active {
     display: block;
 }

 /* ── Info tab 2-col grid ─────────────────────────────── */
 .cv-info-grid {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 28px 48px;
 }

 @media (max-width: 860px) {
     .cv-info-grid {
         grid-template-columns: 1fr;
     }
 }

 .cv-info-col {
     display: flex;
     flex-direction: column;
     gap: 18px;
 }

 /* ── Form elements ───────────────────────────────────── */
 .cv-form-group {
     display: flex;
     flex-direction: column;
     gap: 6px;
 }

 .cv-form-label {
     font-size: 13px;
     font-weight: 600;
     color: #374151;
 }

 .cv-form-input,
 .cv-form-select,
 .cv-form-textarea {
     padding: 10px 14px;
     font-size: 13px;
     font-family: var(--font-base);
     background: #fff;
     border: 1px solid #e5e7eb;
     border-radius: 8px;
     outline: none;
     color: #111827;
     transition: border-color .15s, box-shadow .15s;
 }

 .cv-form-input:focus,
 .cv-form-select:focus,
 .cv-form-textarea:focus {
     border-color: var(--color-brand-light);
     box-shadow: 0 0 0 3px rgba(27, 78, 107, .1);
 }

 .cv-form-textarea {
     resize: vertical;
     min-height: 110px;
 }

 .cv-form-select {
     cursor: pointer;
 }

 .cv-char-count {
     font-size: 11px;
     color: #9ca3af;
     text-align: right;
 }

 /* ── Toggle switch ───────────────────────────────────── */
 .cv-toggle-row {
     display: flex;
     align-items: center;
     gap: 10px;
     font-size: 13px;
     color: #374151;
     margin-top: 4px;
 }

 .cv-toggle {
     position: relative;
     width: 44px;
     height: 24px;
     flex-shrink: 0;
 }

 .cv-toggle input {
     opacity: 0;
     width: 0;
     height: 0;
 }

 .cv-toggle-slider {
     position: absolute;
     inset: 0;
     background: #d1d5db;
     border-radius: 24px;
     cursor: pointer;
     transition: background .2s;
 }

 .cv-toggle-slider::before {
     content: '';
     position: absolute;
     width: 18px;
     height: 18px;
     left: 3px;
     top: 3px;
     background: #fff;
     border-radius: 50%;
     transition: transform .2s;
     box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
 }

 .cv-toggle input:checked+.cv-toggle-slider {
     background: #111827;
 }

 .cv-toggle input:checked+.cv-toggle-slider::before {
     transform: translateX(20px);
 }

 /* ── Skills tab card ─────────────────────────────────── */
 .cv-skills-card {
     background: #fff;
     border: 1px solid #e5e7eb;
     border-radius: 12px;
     padding: 24px;
 }

 .cv-skills-header {
     display: flex;
     align-items: center;
     justify-content: space-between;
     flex-wrap: wrap;
     gap: 12px;
     margin-bottom: 20px;
 }

 .cv-skills-title {
     font-size: 16px;
     font-weight: 700;
     color: #111827;
 }

 .cv-skills-header-right {
     display: flex;
     align-items: center;
     gap: 8px;
 }

 .cv-search-wrap {
     position: relative;
     display: flex;
     align-items: center;
 }

 .cv-search-wrap .material-symbols-outlined {
     position: absolute;
     left: 10px;
     font-size: 18px;
     color: #9ca3af;
     pointer-events: none;
 }

 .cv-search-input {
     padding: 8px 14px 8px 34px;
     font-size: 13px;
     font-family: var(--font-base);
     background: #fff;
     border: 1px solid #e5e7eb;
     border-radius: 8px;
     outline: none;
     width: 200px;
     transition: border-color .15s, box-shadow .15s;
 }

 .cv-search-input:focus {
     border-color: var(--color-brand-light);
     box-shadow: 0 0 0 3px rgba(27, 78, 107, .1);
 }

 .cv-icon-btn {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     width: 34px;
     height: 34px;
     background: #f3f4f6;
     border: 1px solid #e5e7eb;
     border-radius: 8px;
     cursor: pointer;
     color: #6b7280;
     transition: background .15s;
 }

 .cv-icon-btn:hover {
     background: #e5e7eb;
 }

 .cv-icon-btn .material-symbols-outlined {
     font-size: 18px;
 }

 .btn-crear-skill {
     display: inline-flex;
     align-items: center;
     gap: 5px;
     padding: 8px 16px;
     background: #fff;
     border: 1px solid #e5e7eb;
     border-radius: 8px;
     font-size: 13px;
     font-weight: 500;
     font-family: var(--font-base);
     cursor: pointer;
     color: #374151;
     transition: background .15s;
 }

 .btn-crear-skill:hover {
     background: #f3f4f6;
 }

 /* Skills table */
 .cv-skills-table {
     width: 100%;
     border-collapse: collapse;
 }

 .cv-skills-table thead tr {
     border-bottom: 1px solid #f3f4f6;
 }

 .cv-skills-table th {
     padding: 10px 12px;
     text-align: left;
     font-size: 12px;
     font-weight: 600;
     color: #6b7280;
 }

 .cv-skills-table tbody tr {
     border-bottom: 1px solid #f9fafb;
     transition: background .12s;
 }

 .cv-skills-table tbody tr:hover {
     background: #f9fafb;
 }

 .cv-skills-table td {
     padding: 14px 12px;
     font-size: 13px;
     color: #374151;
     vertical-align: middle;
 }

 .cv-checkbox {
     width: 17px;
     height: 17px;
     accent-color: #111827;
     cursor: pointer;
 }

 /* Category badges */
 .cv-badge {
     display: inline-flex;
     align-items: center;
     padding: 3px 12px;
     border-radius: 999px;
     font-size: 12px;
     font-weight: 500;
 }

 .cv-badge--hardskill {
     background: #ede9fe;
     color: #5b21b6;
 }

 .cv-badge--softskill {
     background: #d1fae5;
     color: #065f46;
 }

 .cv-badge--software {
     background: #dbeafe;
     color: #1e40af;
 }

 .cv-badge--tecnologia {
     background: #fef3c7;
     color: #92400e;
 }

 /* Pagination */
 .cv-pagination {
     display: flex;
     align-items: center;
     justify-content: space-between;
     padding-top: 16px;
     border-top: 1px solid #f3f4f6;
     margin-top: 8px;
 }

 .cv-pag-arrow {
     display: inline-flex;
     align-items: center;
     gap: 5px;
     font-size: 13px;
     color: #374151;
     cursor: pointer;
     background: none;
     border: none;
     font-family: var(--font-base);
     padding: 4px 0;
     transition: color .15s;
 }

 .cv-pag-arrow:hover {
     color: var(--color-brand);
 }

 .cv-pag-pages {
     display: flex;
     align-items: center;
     gap: 4px;
 }

 .cv-pag-btn {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     width: 32px;
     height: 32px;
     font-size: 13px;
     border-radius: 6px;
     cursor: pointer;
     background: none;
     border: none;
     font-family: var(--font-base);
     color: #374151;
     transition: background .12s, color .12s;
 }

 .cv-pag-btn:hover {
     background: #f3f4f6;
 }

 .cv-pag-btn.active {
     background: #111827;
     color: #fff;
     font-weight: 600;
 }

 .cv-pag-ellipsis {
     font-size: 13px;
     color: #9ca3af;
     padding: 0 4px;
 }

 /* ── Footer (inside window) ──────────────────────────── */
 .cv-footer {
     margin-top: auto;
     padding: 16px 32px;
     border-top: 1px solid var(--color-border);
     display: flex;
     align-items: center;
     justify-content: space-between;
     font-size: 11px;
     color: var(--color-text-light);
     background: #fff;
     gap: 12px;
     flex-wrap: wrap;
 }

 .cv-footer__links {
     display: flex;
     gap: 14px;
 }

 .cv-footer__links a {
     color: var(--color-text-light);
     text-decoration: none;
 }

 .cv-footer__links a:hover {
     text-decoration: underline;
 }

 .cv-footer__brand {
     display: flex;
     align-items: center;
     gap: 5px;
 }

 .cv-footer__brand img {
     height: 22px;
 }

/* ---------------------------------------------------------------
   MODAL — AÑADIR HABILIDAD
--------------------------------------------------------------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 28px 28px 24px;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #161719;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-label {
  font-size: 13px;
  font-weight: 600;
  color: #52555a;
}

.modal-select-wrap {
  position: relative;
}

.modal-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #e4e4e7;
  border-radius: 6px;
  padding: 10px 36px 10px 12px;
  font-size: 13px;
  font-family: inherit;
  color: #9ca3af;
  background: #f8f9fb;
  cursor: pointer;
  outline: none;
}

.modal-select:focus {
  border-color: #1b4e6b;
  color: #161719;
}

.modal-select-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #9ca3af;
  pointer-events: none;
}

.modal-input {
  border: 1px solid #e4e4e7;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  color: #161719;
  background: #f8f9fb;
  outline: none;
  width: 100%;
}

.modal-input::placeholder {
  color: #9ca3af;
}

.modal-input:focus {
  border-color: #1b4e6b;
}

.modal-radios {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #161719;
  cursor: pointer;
}

.modal-radio {
  width: 16px;
  height: 16px;
  accent-color: #1b4e6b;
  cursor: pointer;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 4px;
}

.modal-btn-cancel {
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: #1b4e6b;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background 0.15s;
}

.modal-btn-cancel:hover {
  background: #eaf1fb;
}

.modal-btn-save {
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: #ffffff;
  background: #1b4e6b;
  border: none;
  border-radius: 5px;
  padding: 8px 20px;
  cursor: pointer;
  transition: background 0.15s;
}

.modal-btn-save:hover {
  background: #256080;
}