.modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.46);z-index:70;backdrop-filter:blur(3px)}
.modal{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:min(900px,calc(100vw - 36px));max-height:86vh;background:var(--kb-card);border:1px solid rgba(3,4,94,.08);border-radius:14px;box-shadow:0 20px 56px rgba(15,23,42,.20);z-index:80;overflow:hidden;display:flex;flex-direction:column;animation:modalIn .18s ease-out}
.modal.small{width:min(540px,calc(100vw - 36px))}
.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:18px 20px 16px;border-bottom:1px solid rgba(3,4,94,.08)}
.modal-head h2{margin:0;font-size:19px;line-height:1.2;font-weight:700;letter-spacing:0;overflow-wrap:anywhere}
.modal-head p{margin:5px 0 0;color:var(--kb-muted);font-size:13px;font-weight:400;line-height:1.45;overflow-wrap:anywhere;opacity:.78}
.modal-head .close{width:30px;height:30px;border:1px solid rgba(3,4,94,.12);border-radius:50%;display:grid;place-items:center;background:transparent;color:var(--kb-text);font-size:16px;font-weight:500;line-height:1;padding:0;cursor:pointer;transition:all .16s ease}
.modal-head .close:hover{background:rgba(255,175,204,.2);border-color:#ffafcc;color:#03045e}
.modal-head .close:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(255,175,204,.24)}
.modal-body{padding:18px 20px;overflow:auto}
.modal-foot{padding:14px 20px;border-top:1px solid rgba(3,4,94,.08);display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap;background:rgba(255,255,255,.72)}
.modal-body::-webkit-scrollbar,.form-full-view::-webkit-scrollbar{width:8px}
.modal-body::-webkit-scrollbar-thumb,.form-full-view::-webkit-scrollbar-thumb{background:rgba(185,228,245,.8);border-radius:99px}
.quick-actions{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:16px}
.tabs{display:flex;gap:18px;border-bottom:1px solid rgba(3,4,94,.08);margin-bottom:16px;overflow:auto}
.tab{border:0;background:transparent;color:var(--kb-muted);padding:0 0 9px;font-size:13px;font-weight:500;white-space:nowrap;transition:color .16s ease,border-color .16s ease}
.tab.active{color:var(--kb-text);border-bottom:2px solid var(--kb-pink)}
.info-grid,.form-detail-grid,.document-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.info-box,.form-detail-row{border:1px solid rgba(3,4,94,.08);border-radius:10px;padding:11px 12px;background:var(--kb-card);min-width:0}
.info-box.full{grid-column:1/-1}
.info-box span,.form-detail-row span{display:block;color:var(--kb-muted);font-size:10px;font-weight:500;text-transform:uppercase;margin-bottom:4px;letter-spacing:.025em;opacity:.76}
.info-box strong,.form-detail-row strong{display:block;color:var(--kb-text);font-size:13px;font-weight:500;line-height:1.42;white-space:pre-wrap;overflow-wrap:anywhere}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.field{display:grid;gap:6px;min-width:0}
.field.full{grid-column:1/-1}
.field label{font-size:10.5px;font-weight:500;color:var(--kb-muted);text-transform:uppercase;line-height:1.25;letter-spacing:.025em;opacity:.78}
.field input,.field select,.field textarea{width:100%;border:1px solid rgba(3,4,94,.10);border-radius:9px;background:#fff;padding:8px 10px;outline:0;min-height:34px;color:var(--kb-text);font:inherit;font-size:13px;font-weight:400;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}
.field textarea{min-height:68px;resize:vertical;line-height:1.45}
.field input:focus,.field select:focus,.field textarea:focus{border-color:rgba(255,175,204,.95);box-shadow:0 0 0 3px rgba(255,175,204,.18)}
.form-full-view{display:flex;flex-direction:column;gap:14px;max-height:58vh;overflow:auto;padding-right:6px}
.form-section,.edit-section{background:var(--kb-card);border:1px solid rgba(3,4,94,.08);border-radius:12px;padding:14px}
.edit-section{margin-bottom:12px}
.form-section h3,.edit-section h3{margin:0 0 10px;font-size:14px;color:var(--kb-text);font-weight:700;line-height:1.25}
.doc-download{display:flex;align-items:center;gap:10px;text-decoration:none;background:var(--kb-card);border:1px solid rgba(3,4,94,.08);border-radius:10px;padding:10px 11px;color:var(--kb-text);font-weight:600;min-width:0}
.doc-download svg{width:18px;height:18px;color:var(--kb-pink);flex:none}
.doc-download span{flex:1;overflow-wrap:anywhere}
.doc-download strong{font-size:12px;font-weight:600;color:var(--kb-text);white-space:nowrap}
.existing-docs{margin-bottom:12px}
.candidate-photo-wrap{border:1px solid rgba(3,4,94,.08);border-radius:10px;padding:8px;background:var(--kb-card)}
.candidate-photo{width:100%;max-height:240px;object-fit:cover;border-radius:8px;display:block}
.timeline,.stage-list{display:grid;gap:10px}
.stage-list{margin-bottom:16px}
.stage-row{display:grid;grid-template-columns:34px minmax(170px,1fr) 44px 36px 36px 36px;gap:9px;align-items:center;border:1px solid rgba(3,4,94,.08);border-radius:10px;background:var(--kb-card);padding:8px}
.stage-handle,.stage-lock,.stage-delete,.stage-order-btn{width:32px;height:32px;border:0;background:transparent;border-radius:9px;display:grid;place-items:center;color:var(--kb-text)}
.stage-handle{cursor:grab}
.stage-handle:hover,.stage-delete:hover,.stage-order-btn:hover{background:rgba(185,228,245,.25)}
.stage-handle svg,.stage-lock svg,.stage-delete svg,.stage-order-btn svg{width:16px;height:16px}
.stage-row input[type=text]{height:36px;border:1px solid rgba(3,4,94,.10);border-radius:9px;background:var(--kb-card);padding:0 11px;font-weight:500;min-width:0}
.stage-row input[type=color]{width:34px;height:34px;border:1px solid rgba(3,4,94,.10);border-radius:8px;background:transparent;padding:0;overflow:hidden}
.stage-row.dragging{opacity:.5}
.stage-row.drag-over{outline:2px dashed var(--kb-pink);outline-offset:2px}
.stage-delete:hover{color:var(--kb-text)}
.stage-delete:disabled,.stage-order-btn:disabled{opacity:.35;cursor:not-allowed}
#addStage{margin-top:10px;align-self:flex-start}
.filters-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.public-form-frame-wrap{height:min(78vh,760px);border:1px solid rgba(3,4,94,.08);border-radius:10px;overflow:hidden;background:#fff}
.public-form-frame{width:100%;height:100%;border:0;display:block;background:#fff}
body[data-theme="dark"] .modal{border-color:rgba(185,228,245,.14)}
body[data-theme="dark"] .modal-foot{background:rgba(17,24,39,.78);border-color:rgba(185,228,245,.14)}
body[data-theme="dark"] .modal-head,body[data-theme="dark"] .tabs{border-color:rgba(185,228,245,.14)}
body[data-theme="dark"] .form-section,body[data-theme="dark"] .edit-section,body[data-theme="dark"] .info-box,body[data-theme="dark"] .form-detail-row,body[data-theme="dark"] .doc-download,body[data-theme="dark"] .stage-row{background:#111827;border-color:rgba(185,228,245,.14)}
body[data-theme="dark"] .field input,body[data-theme="dark"] .field select,body[data-theme="dark"] .field textarea,body[data-theme="dark"] .stage-row input[type=text]{background:#0f172a;color:#ffffff;border-color:rgba(185,228,245,.16)}
body[data-theme="dark"] .modal-head .close{border-color:rgba(185,228,245,.22);color:#ffffff}
body[data-theme="dark"] .modal-head .close:hover{background:rgba(255,175,204,.2);border-color:#ffafcc;color:#ffffff}
body[data-theme="dark"] .public-form-frame-wrap{background:#fff;border-color:rgba(185,228,245,.14)}
@media(max-width:760px){
  .form-grid,.info-grid,.form-detail-grid,.document-grid,.filters-panel{grid-template-columns:1fr}
  .modal{width:calc(100vw - 18px);max-height:92vh;border-radius:14px}
  .modal-head,.modal-body,.modal-foot{padding-left:15px;padding-right:15px}
  .modal-foot{justify-content:stretch}
  .modal-foot button{flex:1 1 auto}
  .stage-row{grid-template-columns:32px minmax(0,1fr) 40px 32px 32px 32px}
  .form-full-view{max-height:62vh}
}
@keyframes modalIn{from{opacity:0;transform:translate(-50%,-48%) scale(.985)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
.edit-photo-section{background:rgba(185,228,245,.18)}
.edit-photo-box{display:flex;align-items:center;gap:16px}
.edit-profile-photo{width:116px;height:116px;border-radius:50%;object-fit:cover;border:4px solid #fff;outline:3px solid var(--kb-pink);background:var(--kb-blue);box-shadow:0 12px 28px rgba(3,4,94,.10);flex:0 0 auto}
.edit-profile-avatar{display:grid;place-items:center;font-size:28px;font-weight:800;color:var(--kb-text)}
.edit-photo-box strong{display:block;font-size:18px;color:var(--kb-text)}
.edit-photo-box span{display:block;margin-top:6px;color:var(--kb-muted);font-size:13px;line-height:1.5}
@media(max-width:640px){.edit-photo-box{align-items:flex-start}.edit-profile-photo{width:92px;height:92px}}


/* V05 - Buscador de candidatas en Generar links para padre */
.candidate-results-list{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:12px;
  max-height:300px;
  overflow:auto;
  padding:4px;
}
.candidate-result-card{
  display:flex;
  align-items:center;
  gap:12px;
  border:1px solid var(--border, #dfe7f3);
  background:#fff;
  border-radius:16px;
  padding:12px;
  cursor:pointer;
  transition:.18s ease;
}
.candidate-result-card:hover,
.candidate-result-card.is-selected{
  border-color:var(--pink, #ff9fc7);
  box-shadow:0 10px 22px rgba(11,21,80,.08);
}
.candidate-result-card input{
  width:18px;
  height:18px;
  accent-color:var(--pink, #ff9fc7);
}
.candidate-mini-photo,
.candidate-mini-avatar{
  width:46px;
  height:46px;
  border-radius:999px;
  flex:0 0 46px;
}
.candidate-mini-photo{
  object-fit:cover;
  border:2px solid var(--pink, #ff9fc7);
}
.candidate-mini-avatar{
  display:grid;
  place-items:center;
  background:var(--soft-blue, #d6f2ff);
  color:var(--navy, #05045f);
  font-weight:800;
  border:2px solid var(--pink, #ff9fc7);
}
.candidate-result-info{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}
.candidate-result-info strong{
  color:var(--navy, #05045f);
  font-size:14px;
}
.candidate-result-info small{
  color:#5f6790;
  font-size:12px;
  line-height:1.35;
}
.selected-candidates-box{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  background:#f1fbff;
  border-radius:16px;
  padding:12px;
}
.selected-candidate-pill{
  display:flex;
  align-items:center;
  gap:8px;
  background:#fff;
  border:1px solid var(--border, #dfe7f3);
  border-radius:14px;
  padding:8px 10px;
}
.selected-candidate-pill .candidate-mini-photo,
.selected-candidate-pill .candidate-mini-avatar{
  width:34px;
  height:34px;
  flex-basis:34px;
}
.selected-candidate-pill button{
  border:0;
  background:#ffe2ee;
  color:#e7006d;
  width:24px;
  height:24px;
  border-radius:999px;
  cursor:pointer;
  font-weight:900;
}


/* ===== Modal Editar Perfil Premium - 3 pestañas ===== */
.premium-edit-form{
  display:flex;
  flex-direction:column;
  gap:18px;
}
.edit-tabs{
  display:flex;
  gap:8px;
  padding:6px;
  border:1px solid var(--border, #dfe7f3);
  background:#f8fbff;
  border-radius:18px;
  position:sticky;
  top:0;
  z-index:4;
}
.edit-tab{
  flex:1;
  border:0;
  background:transparent;
  color:#5f6790;
  border-radius:14px;
  padding:12px 14px;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  transition:transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.edit-tab:hover{
  transform:translateY(-1px);
  background:#fff;
}
.edit-tab.active{
  background:#fff;
  color:var(--navy, #05045f);
  box-shadow:0 8px 22px rgba(5,4,95,.08);
}
.edit-tab-panel{
  display:none;
}
.edit-tab-panel.active{
  display:block;
}
.premium-tab-section{
  border:1px solid var(--border, #dfe7f3);
  border-radius:22px;
  background:#fff;
  padding:18px;
  margin-bottom:14px;
}
.premium-tab-section h3,
.edit-section h3{
  font-size:15px;
  font-weight:700;
  color:var(--navy, #05045f);
  margin:0 0 14px;
}
.premium-help{
  margin:-6px 0 16px;
  color:#64708f;
  font-size:13px;
  line-height:1.5;
}
.premium-data-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:12px;
}
.premium-data-row{
  border:1px solid #e8edf6;
  background:#fbfdff;
  border-radius:16px;
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:7px;
}
.premium-data-row.full{
  grid-column:1 / -1;
}
.premium-data-row span{
  font-size:11px;
  letter-spacing:.02em;
  color:#74809d;
  font-weight:600;
}
.premium-data-row strong{
  font-size:14px;
  line-height:1.45;
  color:#111827;
  font-weight:600;
}
.premium-data-row textarea{
  min-height:44px;
  border:0;
  background:transparent;
  resize:vertical;
  outline:none;
  color:#111827;
  font:inherit;
  line-height:1.45;
}
.parent-config-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.parent-config-card{
  border:1px solid #e8edf6;
  background:#fbfdff;
  border-radius:18px;
  padding:12px;
}
.parent-config-card textarea{
  width:100%;
  min-height:48px;
  margin-top:10px;
  border:1px solid #edf1f7;
  background:#fff;
  border-radius:14px;
  padding:10px 12px;
  resize:vertical;
  outline:none;
  color:#111827;
}
.visibility-switch{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  cursor:pointer;
}
.visibility-switch span{
  color:var(--navy, #05045f);
  font-weight:700;
  font-size:13px;
}
.visibility-switch input{
  display:none;
}
.visibility-switch i{
  position:relative;
  width:46px;
  height:26px;
  flex:0 0 46px;
  background:#d9e2ef;
  border-radius:999px;
  transition:background .18s ease;
}
.visibility-switch i:after{
  content:'';
  position:absolute;
  width:20px;
  height:20px;
  left:3px;
  top:3px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 2px 8px rgba(0,0,0,.12);
  transition:transform .18s ease;
}
.visibility-switch input:checked + i{
  background:var(--pink, #ff9fc7);
}
.visibility-switch input:checked + i:after{
  transform:translateX(20px);
}
.profile-parent-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.profile-card.full{
  grid-column:1 / -1;
}
@media (max-width: 760px){
  .edit-tabs{flex-direction:column; position:relative;}
  .premium-data-grid,
  .parent-config-grid,
  .profile-parent-grid{grid-template-columns:1fr;}
}

/* Documentos limpios para postulantes: solo 4 archivos oficiales */
.documents-clean-section{background:#fff;border:1px solid rgba(3,4,94,.10);border-radius:18px;padding:16px}
.clean-document-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:12px}
.doc-slot-card{border:1px solid rgba(3,4,94,.10);border-radius:16px;background:#fff;padding:14px;display:flex;flex-direction:column;gap:12px;min-height:132px}
.doc-slot-head{display:flex;align-items:center;gap:10px;color:var(--kb-text)}
.doc-slot-head strong{font-size:14px;font-weight:800;line-height:1.25}
.doc-slot-icon{width:34px;height:34px;border-radius:12px;background:rgba(185,228,245,.45);display:grid;place-items:center;color:var(--kb-text);flex:0 0 auto}
.doc-slot-icon svg{width:18px;height:18px}
.doc-slot-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:auto}
.doc-action,.doc-upload-btn{border:1px solid rgba(3,4,94,.12);background:#fff;color:var(--kb-text);border-radius:10px;padding:9px 12px;font-weight:800;font-size:13px;text-decoration:none;cursor:pointer;line-height:1;font-family:inherit}
.doc-action:hover,.doc-upload-btn:hover{border-color:var(--kb-blue);background:rgba(185,228,245,.20)}
.doc-hidden-file{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important}.doc-selected-name{font-size:12px;font-weight:700;color:var(--kb-muted);width:100%;overflow-wrap:anywhere}
.doc-empty{font-size:13px;font-weight:700;color:var(--kb-muted);padding:9px 0}
body[data-theme="dark"] .documents-clean-section,body[data-theme="dark"] .doc-slot-card{background:#111827;border-color:rgba(185,228,245,.14)}
@media(max-width:760px){.clean-document-grid{grid-template-columns:1fr}.doc-slot-card{min-height:auto}.doc-slot-actions{align-items:stretch}.doc-action,.doc-upload-btn{flex:1;text-align:center}}

/* FIX V9: reparar diseño del modal Detalle postulante sin cambiar lógica ni eliminar funciones */
.premium-profile{
  display:flex;
  flex-direction:column;
  gap:16px;
  width:100%;
  max-width:100%;
  overflow:hidden;
}
.premium-profile svg{
  width:18px;
  height:18px;
  flex:0 0 18px;
  stroke-width:2;
}
.profile-hero{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:10px;
  border:1px solid rgba(3,4,94,.08);
  border-radius:18px;
  padding:22px 18px 20px;
  background:#fff;
  overflow:hidden;
}
.profile-photo-ring{
  width:128px;
  height:128px;
  border-radius:999px;
  display:grid;
  place-items:center;
  flex:0 0 128px;
  overflow:hidden;
  background:#fff;
  color:var(--kb-text);
  font-size:34px;
  font-weight:800;
  border:5px solid #fff;
  outline:3px solid var(--kb-pink);
  box-shadow:0 14px 30px rgba(3,4,94,.13);
}
.profile-photo-ring img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  border-radius:inherit;
}
.badge-row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
}
.premium-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:28px;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  color:var(--kb-text);
  background:#fff;
  border:1px solid rgba(3,4,94,.08);
  line-height:1;
}
.premium-badge svg{
  width:14px;
  height:14px;
  flex-basis:14px;
}
.premium-badge.ok{background:rgba(185,228,245,.45)}
.premium-badge.verified{background:rgba(255,175,204,.18)}
.profile-hero h1{
  margin:2px 0 0;
  max-width:100%;
  font-size:24px;
  line-height:1.15;
  color:var(--kb-text);
  overflow-wrap:anywhere;
}
.profile-hero p{
  margin:0;
  color:var(--kb-muted);
  font-size:14px;
  font-weight:600;
}
.profile-hero small{
  color:var(--kb-muted);
  font-size:13px;
  font-weight:500;
}
.profile-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
  width:100%;
}
.profile-card{
  border:1px solid rgba(3,4,94,.08);
  border-radius:18px;
  background:#fff;
  padding:16px;
  min-width:0;
}
.profile-card h3{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 0 12px;
  color:var(--kb-text);
  font-size:16px;
  line-height:1.25;
}
.profile-card h3 svg{
  width:18px;
  height:18px;
  flex-basis:18px;
}
.profile-row{
  display:flex;
  align-items:flex-start;
  gap:10px;
  min-width:0;
  padding:12px;
  border:1px solid rgba(3,4,94,.08);
  border-radius:14px;
  background:#fbfdff;
}
.profile-icon{
  width:34px;
  height:34px;
  border-radius:12px;
  display:grid;
  place-items:center;
  flex:0 0 34px;
  color:var(--kb-text);
  background:rgba(185,228,245,.42);
}
.profile-icon svg{
  width:17px;
  height:17px;
  flex-basis:17px;
}
.profile-row div{min-width:0;flex:1}
.profile-row small{
  display:block;
  margin-bottom:4px;
  color:var(--kb-muted);
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.02em;
}
.profile-row strong{
  display:block;
  color:var(--kb-text);
  font-size:14px;
  font-weight:600;
  line-height:1.35;
  overflow-wrap:anywhere;
}
.status-dot.ok{
  width:10px;
  height:10px;
  border-radius:999px;
  background:#22c55e;
  box-shadow:0 0 0 4px rgba(34,197,94,.12);
  margin-top:11px;
  flex:0 0 10px;
}
body[data-theme="dark"] .profile-hero,
body[data-theme="dark"] .profile-card,
body[data-theme="dark"] .profile-row{
  background:#111827;
  border-color:rgba(185,228,245,.14);
}
@media(max-width:760px){
  .profile-hero{padding:18px 14px}
  .profile-photo-ring{width:104px;height:104px;flex-basis:104px;font-size:28px}
  .profile-hero h1{font-size:20px}
  .profile-card{padding:13px}
  .profile-parent-grid{grid-template-columns:1fr}
}


/* ===== PRO V01 - Modal editar postulante más compacto y profesional ===== */
.premium-tab-section,.edit-section{border-radius:20px;border-color:#e6edf6;background:#fff;box-shadow:0 8px 20px rgba(5,4,95,.035)}
.premium-tab-section h3,.edit-section h3{font-size:15px;font-weight:800;letter-spacing:-.01em;color:#05045f;margin-bottom:8px}.premium-help{font-size:12.5px;line-height:1.45;color:#697493;margin:0 0 14px;font-weight:500}.edit-tabs{border-radius:18px;background:#f7fbff;border-color:#e6edf6}.edit-tab{font-size:13px;font-weight:800;color:#59627d}.edit-tab.active{color:#05045f}.premium-data-grid,.parent-config-grid,.form-grid{gap:10px}.premium-data-row,.parent-config-card,.field{border-radius:15px}.premium-data-row{padding:10px 12px;gap:4px;background:#fcfdff;border-color:#e8eef6}.premium-data-row span,.field label{font-size:10px;line-height:1.1;text-transform:uppercase;letter-spacing:.055em;color:#77829f;font-weight:800;opacity:1}.premium-data-row strong{font-size:13px;line-height:1.32;color:#111827;font-weight:600}.premium-data-row textarea,.field input,.field select,.field textarea,.parent-config-card textarea{font-size:13px;line-height:1.35;color:#172033;font-weight:500;border-radius:12px}.parent-config-card{padding:11px;background:#fcfdff;border-color:#e8eef6}.visibility-switch span{font-size:12.5px;font-weight:800;color:#05045f}.parent-config-card textarea{min-height:42px;margin-top:8px}.doc-slot-card{border-radius:18px;border-color:#e8eef6;box-shadow:0 8px 20px rgba(5,4,95,.035)}.doc-slot-head strong{font-size:13.2px}.doc-action,.doc-upload-btn{font-size:12.5px;border-radius:10px}.edit-photo-box strong{font-size:17px;font-weight:900}.edit-photo-box span{font-size:12.5px;color:#59627d;font-weight:500}.modal-body{background:#fbfdff}.modal-head h2{font-weight:900;letter-spacing:-.015em}.profile-row small{font-size:10px;text-transform:uppercase;letter-spacing:.055em;color:#77829f;font-weight:800}.profile-row strong{font-size:13px;line-height:1.32;font-weight:650;color:#111827}.profile-row svg,.profile-icon svg{color:#5f6790!important;stroke:#5f6790!important}.profile-icon{background:#f4f8fc!important;color:#5f6790!important}
/* Dark modal fix: superficies oscuras integradas y texto legible */
body[data-theme="dark"] .modal{background:#161916!important;color:#f8fafc!important;border-color:rgba(148,163,184,.18)!important;box-shadow:0 18px 44px rgba(0,0,0,.42)!important}
body[data-theme="dark"] .modal-head,body[data-theme="dark"] .modal-body,body[data-theme="dark"] .modal-foot{background:#161916!important;color:#f8fafc!important;border-color:rgba(148,163,184,.18)!important}
body[data-theme="dark"] .modal-head h2,body[data-theme="dark"] .modal .modal-head h2,body[data-theme="dark"] .profile-hero h1,body[data-theme="dark"] .profile-card h3,body[data-theme="dark"] .form-section h3,body[data-theme="dark"] .edit-section h3,body[data-theme="dark"] .premium-tab-section h3,body[data-theme="dark"] .edit-photo-box strong{color:#f8fafc!important}
body[data-theme="dark"] .modal-head p,body[data-theme="dark"] .profile-hero p,body[data-theme="dark"] .profile-hero small,body[data-theme="dark"] .premium-help,body[data-theme="dark"] .edit-photo-box span{color:#cbd5e1!important}
body[data-theme="dark"] .modal-head .close,body[data-theme="dark"] .modal-head .close:hover,body[data-theme="dark"] .modal-head .close:focus,body[data-theme="dark"] .modal-head .close:active{background:#010101!important;color:#f8fafc!important;border-color:rgba(148,163,184,.24)!important;box-shadow:none!important;outline:none!important}
body[data-theme="dark"] .modal-head .close:focus-visible{outline:1px solid rgba(255,175,204,.72)!important;outline-offset:2px}
body[data-theme="dark"] .form-full-view,body[data-theme="dark"] .premium-edit-form,body[data-theme="dark"] .profile-grid,body[data-theme="dark"] .trabajo-profile-layout{background:#161916!important}
body[data-theme="dark"] .form-section,body[data-theme="dark"] .edit-section,body[data-theme="dark"] .premium-tab-section,body[data-theme="dark"] .profile-hero,body[data-theme="dark"] .profile-card,body[data-theme="dark"] .profile-row,body[data-theme="dark"] .info-box,body[data-theme="dark"] .form-detail-row,body[data-theme="dark"] .profile-field-card,body[data-theme="dark"] .premium-data-row,body[data-theme="dark"] .parent-config-card,body[data-theme="dark"] .documents-clean-section,body[data-theme="dark"] .doc-slot-card,body[data-theme="dark"] .candidate-result-card,body[data-theme="dark"] .selected-candidates-box,body[data-theme="dark"] .selected-candidate-pill,body[data-theme="dark"] .transfer-box,body[data-theme="dark"] .edit-photo-section{background:#010101!important;color:#f8fafc!important;border-color:rgba(148,163,184,.18)!important;box-shadow:none!important}
body[data-theme="dark"] .edit-tabs{background:#010101!important;border-color:rgba(148,163,184,.18)!important;box-shadow:none!important}
body[data-theme="dark"] .tab,body[data-theme="dark"] .edit-tab{color:#cbd5e1!important;background:transparent!important;box-shadow:none!important}
body[data-theme="dark"] .tab:hover,body[data-theme="dark"] .tab:focus,body[data-theme="dark"] .tab:active,body[data-theme="dark"] .edit-tab:hover,body[data-theme="dark"] .edit-tab:focus,body[data-theme="dark"] .edit-tab:active{background:#161916!important;color:#f8fafc!important;box-shadow:none!important;transform:none!important;outline:none!important}
body[data-theme="dark"] .tab.active,body[data-theme="dark"] .edit-tab.active{background:#161916!important;color:#f8fafc!important;border-color:rgba(255,175,204,.55)!important;box-shadow:none!important}
body[data-theme="dark"] .field label,body[data-theme="dark"] .info-box span,body[data-theme="dark"] .form-detail-row span,body[data-theme="dark"] .profile-row small,body[data-theme="dark"] .premium-data-row span{color:#94a3b8!important;opacity:1!important}
body[data-theme="dark"] .info-box strong,body[data-theme="dark"] .form-detail-row strong,body[data-theme="dark"] .profile-row strong,body[data-theme="dark"] .premium-data-row strong,body[data-theme="dark"] .candidate-result-info strong,body[data-theme="dark"] .doc-slot-head strong,body[data-theme="dark"] .visibility-switch span{color:#f8fafc!important}
body[data-theme="dark"] .candidate-result-info small,body[data-theme="dark"] .doc-empty,body[data-theme="dark"] .doc-selected-name{color:#cbd5e1!important}
body[data-theme="dark"] .field input,body[data-theme="dark"] .field select,body[data-theme="dark"] .field textarea,body[data-theme="dark"] .premium-data-row textarea,body[data-theme="dark"] .parent-config-card textarea{background:#161916!important;color:#f8fafc!important;border-color:rgba(148,163,184,.22)!important;box-shadow:none!important}
body[data-theme="dark"] .doc-action,body[data-theme="dark"] .doc-upload-btn,body[data-theme="dark"] .cancel,body[data-theme="dark"] .modal-action{background:#161916!important;color:#f8fafc!important;border-color:rgba(148,163,184,.24)!important;box-shadow:none!important}
body[data-theme="dark"] .doc-action:hover,body[data-theme="dark"] .doc-upload-btn:hover,body[data-theme="dark"] .cancel:hover,body[data-theme="dark"] .modal-action:hover,body[data-theme="dark"] .doc-action:active,body[data-theme="dark"] .doc-upload-btn:active,body[data-theme="dark"] .cancel:active,body[data-theme="dark"] .modal-action:active{background:#010101!important;color:#f8fafc!important;box-shadow:none!important}
body[data-theme="dark"] .save,body[data-theme="dark"] .btn.primary{background:#ffafcc!important;color:#151e31!important;border-color:#ffafcc!important;box-shadow:none!important}
body[data-theme="dark"] .public-form-frame-wrap{background:#161916!important;border-color:rgba(148,163,184,.18)!important}
