* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f4f6f8;
  color: #1a1f2b;
  font-size: 14px;
  line-height: 1.45;
}

header.barra {
  background: #1f3b5c;
  color: #fff;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}
header.barra .marca { font-weight: 600; font-size: 15px; }
header.barra nav a {
  color: #cfd8e3;
  text-decoration: none;
  margin-right: 16px;
  padding: 4px 8px;
  border-radius: 3px;
}
header.barra nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
header.barra .participante {
  margin-left: auto;
  background: #e8eef4;
  color: #1f3b5c;
  padding: 4px 10px;
  border-radius: 3px;
  font-weight: 500;
}

main { max-width: 1200px; margin: 24px auto; padding: 0 20px; }
h1 { color: #1f3b5c; font-size: 22px; margin: 0 0 16px 0; }
h2 { color: #1f3b5c; font-size: 17px; margin: 24px 0 12px 0; border-bottom: 1px solid #d7dde3; padding-bottom: 6px; }

.panel {
  background: #fff;
  border: 1px solid #d7dde3;
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 16px;
}

table { width: 100%; border-collapse: collapse; }
table th, table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid #eef1f4;
}
table th { background: #e8eef4; color: #1f3b5c; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; }
table tbody tr:hover { background: #fafbfd; }

.chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
}
.chip.talent { background: #dfe9d9; color: #3d5c1f; }
.chip.chamillo { background: #f2e0d0; color: #7a4e1c; }
.chip.vacio { background: #eef1f4; color: #6b7280; }
.chip.proc { background: #d3e0f2; color: #1f3b5c; }
.chip.desc { background: #eef1f4; color: #6b7280; }
.chip.ses { background: #d5eddc; color: #1e5c34; }
.chip.bandeja { background: #f5e5c2; color: #7a5a1c; }

.boton, button, input[type=submit] {
  background: #1f3b5c;
  color: #fff;
  border: none;
  padding: 7px 14px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 13px;
  text-decoration: none;
  display: inline-block;
}
.boton:hover, button:hover { background: #16304d; }
.boton.claro { background: #e8eef4; color: #1f3b5c; }
.boton.claro:hover { background: #d7dde3; }

form.formulario label {
  display: block;
  margin-top: 10px;
  font-weight: 500;
  color: #1f3b5c;
  font-size: 13px;
}
form.formulario input[type=text], form.formulario input[type=date], form.formulario textarea {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #d7dde3;
  border-radius: 3px;
  font: inherit;
  margin-top: 4px;
}
form.formulario .acciones { margin-top: 20px; }

.credenciales {
  background: #eef1f4;
  border-left: 3px solid #1f3b5c;
  padding: 10px 14px;
  font-family: "Consolas", "Menlo", monospace;
  font-size: 12px;
  margin: 10px 0;
}
.credenciales div { margin: 2px 0; }

.pequeno { font-size: 12px; color: #6b7280; }
details.correo summary { cursor: pointer; padding: 6px 0; }
details.correo .cuerpo {
  background: #fafbfd;
  border-left: 3px solid #d7dde3;
  padding: 10px 12px;
  margin-top: 6px;
  white-space: pre-wrap;
  font-family: "Consolas", "Menlo", monospace;
  font-size: 12px;
}

/* ===== Tema TalentLMS (naranja) ===== */
body.tema-talent { background: #f7f8fa; }
body.tema-talent h1 { color: #2b3a4a; font-size: 22px; }
body.tema-talent h2 { color: #2b3a4a; border-bottom-color: #e4e7ec; }
body.tema-talent .boton, body.tema-talent button, body.tema-talent input[type=submit] {
  background: #e05f2b;
}
body.tema-talent .boton:hover, body.tema-talent button:hover { background: #c04d1e; }
body.tema-talent .boton.claro { background: #f2ede9; color: #7a3a1c; }
body.tema-talent .boton.claro:hover { background: #e6dcd3; }
body.tema-talent form.formulario label { color: #7a3a1c; }
body.tema-talent .credenciales { border-left-color: #e05f2b; }
body.tema-talent table th { background: #fdf1eb; color: #7a3a1c; }
body.tema-talent .chip.proc { background: #ffe1d0; color: #7a3a1c; }

.capa-talent { display: flex; min-height: 100vh; }
.lateral {
  width: 220px;
  background: #2b3a4a;
  color: #d7dde3;
  padding: 20px 0;
  flex-shrink: 0;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.lateral .marca-talent {
  display: flex; align-items: center; gap: 10px;
  padding: 0 20px 20px 20px;
  border-bottom: 1px solid #3d4d5f;
}
.lateral .marca-talent .logo {
  width: 34px; height: 34px; border-radius: 6px;
  background: #e05f2b; color: #fff;
  font-weight: 700; display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.lateral .marca-talent .tit { color: #fff; font-weight: 600; font-size: 14px; }
.lateral .marca-talent .sub { color: #8a99ab; font-size: 11px; }
.lateral nav { padding: 12px 0; display: flex; flex-direction: column; }
.lateral nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 20px;
  color: #cfd8e3; text-decoration: none;
  font-size: 13px;
  border-left: 3px solid transparent;
}
.lateral nav a:hover { background: rgba(255,255,255,0.05); color: #fff; }
.lateral nav a.activo {
  background: rgba(224,95,43,0.12);
  color: #fff;
  border-left-color: #e05f2b;
}
.lateral nav a .ico { font-size: 14px; width: 18px; text-align: center; }
.lateral nav .separador {
  color: #6b7f95; font-size: 10px; letter-spacing: 0.08em;
  padding: 16px 20px 6px 20px; text-transform: uppercase;
  border-top: 1px solid #3d4d5f;
  margin-top: 8px;
}
.contenido {
  flex: 1;
  padding: 32px 40px;
  max-width: none;
}
@media (max-width: 800px) {
  .capa-talent { flex-direction: column; }
  .lateral { width: 100%; height: auto; position: static; }
  .lateral nav { flex-direction: row; flex-wrap: wrap; }
  .contenido { padding: 20px; }
}
