/* =========================================================
   CSS ORGANIZADO - SPE / PROCESO EDITORIAL
========================================================= */

/* =========================================================
   01. BASE / BODY / TIPOGRAFÍA
========================================================= */
html,
body {
  height: 100%;
  background: #e8e8e8;
}

body {
  color: #373e4a;
}

.container.main {
  margin-top: 80px;
}

body.login {
  background: url(../img/layout/MVI_1205.jpg);
  background-size: cover;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Ropa Sans', sans-serif;
}

h4 {
  font-size: 22px;
}

h5 {
  font-size: 18px;
}

a {
  color: #c7e5ff;
  text-decoration: none;
}

a:hover {
  color: #0072bc;
}

.footer {
  position: relative;
  width: 100%;
  margin: 20px auto 40px;
  color: #000000;
  text-align: center;
  text-shadow: 0 .05rem .1rem rgba(0, 0, 0, .5);
}

.site-wrapper {
  display: table;
  width: 100%;
  height: 100%;
  min-height: 100%;
  box-shadow: inset 0 0 5rem rgba(0, 0, 0, .5);
}

.site-wrapper-inner {
  display: table-cell;
  vertical-align: middle;
}

.cover-container {
  margin-right: auto;
  margin-left: auto;
}

.tiempo-tans {
  margin: 10px 0;
  font-size: 50px;
  font-family: 'Ropa Sans', sans-serif;
}


/* =========================================================
   02. NAVEGACIÓN
========================================================= */
.navbar-default .navbar-brand,
.navbar-default .navbar-nav > li > a {
  color: #373e4a;
}

.navbar-default .navbar-brand:hover,
.navbar-default .navbar-nav > li > a:hover {
  color: #0072bc;
}

.nav-dropdown {
  display: none;
  position: absolute;
  z-index: 1;
  margin: 0;
  padding: 0;
  list-style: none;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.opciones-dropdown {
  float: left;
  position: relative;
  min-width: 160px;
  list-style: none;
}

.opcion-dropdown {
  display: block;
  padding: 15px;
  background: #222222;
  color: #9d9d9d;
  line-height: 20px;
  text-decoration: none;
}

.opcion-dropdown:hover {
  background: #d3f3ff;
  color: #0a0a0a;
  text-decoration: none;
}

.opcion-dropdown:active {
  text-decoration: none;
}

.opcion-dropdown:not(:only-child):after {
  content: ' ▾';
  padding-left: 4px;
}


/* =========================================================
   03. UTILIDADES
========================================================= */
.block {
  display: block;
}

.inline {
  display: inline;
}

.no-display {
  display: none;
}

.text-nowrap {
  white-space: nowrap;
}

.text-white {
  color: #fdfffe;
}

.text-muted {
  color: #7E8697;
}

.text-primary {
  color: #DD4D00;
}

.text-success {
  color: #045702;
}

.text-info {
  color: #0072bc;
}

.text-warning {
  color: #574802;
}

.text-danger {
  color: #ac1818;
}

a.text-primary:hover,
a.text-primary:focus {
  color: #7b7b7b;
}

a.text-success:hover,
a.text-success:focus {
  color: #022501;
}

a.text-info:hover,
a.text-info:focus {
  color: #215f79;
}

a.text-warning:hover,
a.text-warning:focus {
  color: #251f01;
}

a.text-danger:hover,
a.text-danger:focus {
  color: #7f1212;
}

.m-10 {
  margin: 10px;
}

.m-b {
  margin-bottom: 10px;
}

.m-t {
  margin-top: 10px;
}

.m-l {
  margin-left: 10px;
}

.m-r {
  margin-right: 10px;
}


/* =========================================================
   04. COLORES / BADGES / BOTONES
========================================================= */
.bg-primary {
  background-color: #DD4D00;
  color: #fff;
}

.bg-secondary {
  background-color: #303641;
  color: #fff;
}

.bg-success {
  background-color: #00a651;
  color: #fff;
}

.bg-info {
  background: #0072bc;
  color: #fff;
}

.bg-warning {
  background-color: #f8ac59;
  color: #fff;
}

.bg-danger {
  background-color: #cc2424;
  color: #fff;
}

.badge.badge-primary,
.badge-publicaciones {
  background-color: #303641;
  color: #fff;
}

.badge.badge-secondary {
  background-color: #ee4749;
  color: #fff;
}

.badge.badge-success {
  background-color: #00a651;
  color: #fff;
}

.badge.badge-info {
  background-color: #21a9e1;
  color: #fff;
}

.badge.badge-warning {
  background-color: #f8ac59;
  color: #fff;
}

.badge.badge-danger {
  background-color: #cc2424;
  color: #fff;
}

.badge-publicaciones {
  margin-right: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 20px;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.label-sm {
  padding: 5px 8px;
  border-radius: 0;
  font-size: 13px;
  font-weight: normal;
  text-align: center;
}

.label-admin-task {
  margin-left: 8px;
  vertical-align: middle;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .3px;
}

.btn-round {
  border-radius: 17px;
}

.btn-square {
  border-radius: 0;
}

/* Botones de los diálogos SweetAlert2 un poco más grandes que el tamaño
   por defecto de Bootstrap (se usa buttonsStyling:false, así que son
   botones .btn normales del proyecto dentro de .swal2-actions). */
.swal2-actions .btn {
  padding: .5rem 1.25rem;
  font-size: 1.1rem;
}

.btn-primary,
.btn-primary:focus {
  margin: 1px;
  background-color: #DD4D00;
  border-color: #DD4D00;
  color: #fff;
}

.btn-primary:hover {
  background-color: #b03d00;
  border-color: #b03d00;
  color: #fff;
}

.btn-primary.disabled {
  background-color: #DD4D00;
  border-color: #DD4D00;
}

.btn-info {
  background-color: #0072bc;
  border-color: #0072bc;
  color: #fff;
}

.btn-info:hover {
  background-color: #005389;
  border-color: #004d7f;
  color: #fff;
}

.btn-success {
  background-color: #00a651;
  border-color: #008d45;
  color: #fff;
}

.btn-success:hover {
  background-color: #007338;
  border-color: #004f27;
  color: #fff;
}

.btn-danger {
  background-color: #cc2424;
  color: #fff;
}

.btn-danger:hover {
  background-color: #850c0c;
  border-color: #560404;
  color: #fff;
}


/* =========================================================
   05. FORMULARIOS
========================================================= */

/* Bootstrap 3 estilizaba .has-error/.has-success con su propio CSS; Bootstrap 5 no trae estas
   clases (usa .is-invalid/.is-valid en el input directamente). Se preserva aquí el mismo
   nombre de clase que ya usa el JS del proyecto (principal.js, administracion/departamentos.js)
   para no reescribir esa lógica — ver CLAUDE.md "Migración a Bootstrap 5". */
.has-error .form-control,
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #dc3545;
}

.has-error .form-text,
.form-group.has-error .form-text {
  color: #dc3545;
}

.has-success .form-control,
.form-group.has-success input,
.form-group.has-success select,
.form-group.has-success textarea {
  border-color: #198754;
}

.input-group-text {
  color: #373e4a;
}

.date-readonly .input-group-text {
  background-color: #eeeeee;
  color: #999999;
  cursor: not-allowed;
  pointer-events: none;
}

.input-append.date:not(.date-readonly) .form-control[readonly] {
  background-color: #ffffff;
  cursor: pointer;
}

.input-group .b-danger {
  background-color: #f2dede;
  color: #cc2424;
}

.input-group .b-info {
  background-color: #d9edf7;
  color: #21a9e1;
}

.b-primary {
  border-color: #303641;
}

.b-secondary,
.b-info {
  border-color: #21a9e1;
}

.b-success {
  border-color: #00a651;
}

.b-warning {
  border-color: #fad839;
}

.b-danger {
  border-color: #cc2424;
}

.jsComLine {
  width: 100%;
  padding: 5px 10px;
  border: solid 1px #cccccc;
  color: #555;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
  transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}

.jsComLine[disabled] {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.select-group > input.form-control:first-of-type {
  width: 70%;
}

.select-group > select.form-control:first-of-type {
  width: 30%;
}

.custom-group {
  margin-bottom: 0;
}

.custom-group .row div:nth-child(1) {
  padding-right: 0;
}

.custom-group .row div:nth-child(2) {
  padding-left: 0;
}

.custom-group .date input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.custom-group .row div:nth-child(2) input {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

#frmLogin {
  margin-bottom: 20px;
}

#frmLogin .form-control {
  border-radius: 2px;
}

#frmLogin.form-inline .form-group {
  margin-right: 15px;
}

.login-info {
  margin-top: 200px;
  margin-bottom: 40px;
}

.login-info h4 {
  margin: auto;
  line-height: 1.5;
  font-family: 'Ropa Sans', sans-serif;
}

.tarea-check {
  margin-top: 6px;
  padding: 8px 10px;
  background: #f7f8fa;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}


/* =========================================================
   06. TABLAS / DATATABLES
========================================================= */
.table-publicaciones {
  border-top: solid 1px #cccccc;
  background: #fafbfc;
}

.table-publicaciones > tbody > tr > td,
.table-publicaciones > tbody > tr > th,
.table-publicaciones > tfoot > tr > td,
.table-publicaciones > tfoot > tr > th,
.table-publicaciones > thead > tr > td,
.table-publicaciones > thead > tr > th {
  padding: 5px 10px;
  border-top: solid 1px #dee7f2;
  vertical-align: middle;
}

.table-publicaciones tr {
  cursor: pointer;
}

.table-publicaciones > tbody > tr:hover {
  background-color: #dfe9f2;
}

table.dataTable thead th,
table.dataTable thead td,
table.dataTable.no-footer {
  border-bottom: 1px solid #cccccc;
}

.dt-length {
  margin: 15px 0 10px 15px;
}

.dt-search {
  margin: 15px 15px 10px;
}

.dt-info {
  margin: 10px 10px 10px 15px;
}

.dt-paging {
  margin: 8px 10px 13px;
}

.dt-length .form-control,
.dt-search .form-control {
  display: inline;
  width: auto;
}


/* =========================================================
   07. DASHBOARD
========================================================= */
.dashboard-publicaciones {
  margin-bottom: 25px;
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid #e5e9f0;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf0f5;
}

.dashboard-header h2 {
  margin: 0;
  color: #2f3542;
  font-size: 20px;
  font-weight: 700;
}

.dashboard-header p {
  margin: 5px 0 0;
  color: #7b8490;
  font-size: 12px;
}

.dashboard-total {
  min-width: 120px;
  text-align: right;
}

.dashboard-total span {
  display: block;
  color: #DD4D00;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.dashboard-total small {
  color: #7b8490;
  font-size: 11px;
}

.dashboard-acciones {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #edf0f5;
}

.dashboard-action-btn {
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.dashboard-action-btn i {
  margin-right: 3px;
}


/* =========================================================
   08. DASHBOARD / ESTATUS RESUMEN
========================================================= */
.estatus-resumen {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.estatus-item {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e8edf3;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.estatus-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.estatus-item:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
}

.estatus-item.proceso:before {
  background: #00a651;
}

.estatus-item.terminadas:before {
  background: #303641;
}

.estatus-item.canceladas:before {
  background: #cc2424;
}

.estatus-info strong,
.estatus-item strong {
  display: block;
  color: #2f3542;
  font-size: 18px;
  line-height: 1;
}

.estatus-item span {
  display: block;
  margin-top: 6px;
  color: #7b8490;
  font-size: 11px;
}

.estatus-porcentaje {
  min-width: 50px;
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid #dce2ea;
  color: #303641;
  font-size: 16px;
  font-weight: 700;
  text-align: right;
}

.estatus-progress {
  display: flex;
  height: 12px;
  overflow: hidden;
  background: #edf0f4;
  border-radius: 999px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12);
}

.estatus-progress-bar {
  height: 100%;
  min-width: 38px;
  color: transparent;
  font-size: 10px;
  font-weight: 700;
  line-height: 12px;
  text-align: center;
  transition: width .35s ease;
}

.estatus-proceso {
  background: #00a651;
}

.estatus-finalizadas {
  background: #303641;
}

.estatus-canceladas {
  background: #cc2424;
}


/* =========================================================
   09. PANELES / HEADERS / ACCIONES
========================================================= */
.card {
  border: 0;
}

.card .card-header {
  background: #ffffff;
  border: 0;
}

.card .card-title {
  font-size: 22px;
}

.panel-heading-publicaciones {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-heading-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.panel-heading-flex .btn-group {
  margin-left: auto;
  padding-left: 15px;
}

.panel-subtitle {
  display: block;
  margin-top: 2px;
  color: #7b8490;
  font-size: 12px;
}

.panel-title-count {
  font-weight: 600;
}

.card-header .btn {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
}

.card-header .btn + .btn {
  margin-left: 6px;
}

.acciones-publicacion {
  text-align: right;
  white-space: nowrap;
}

.acciones-btn-group {
  display: inline-flex;
  white-space: nowrap;
}

.acciones-btn-group .btn {
  padding: 5px 8px;
}

.acciones-secundarias {
  vertical-align: middle;
}

.btnVerProgreso {
  margin-right: 6px;
  background: #34495e;
  border-color: #2c3e50;
  color: #fff;
}

.btnVerProgreso:hover,
.btnVerProgreso:focus {
  background: #2c3e50;
  border-color: #1f2d3a;
  color: #fff;
}

.btnEdit:hover {
  background: #f0ad4e;
  border-color: #eea236;
  color: #fff;
}

.btnReporte:hover {
  background: #5bc0de;
  border-color: #46b8da;
  color: #fff;
}

.btnDelete:hover {
  background: #d9534f;
  border-color: #d43f3a;
  color: #fff;
}


/* =========================================================
   10. PUBLICACIONES / META
========================================================= */
.pub-publicacion {
  display: block;
  margin-bottom: 4px;
  color: #2f3542;
}

.pub-meta {
  font-size: 12px;
  line-height: 1.5;
}

.pub-meta strong {
  color: #606770;
}

.publicacion-titulo {
  margin: -15px -15px 10px;
  padding: 10px;
  background: #f3f6fb;
  border-color: #e7eaec;
  border-style: solid none solid;
  border-width: 1px;
}


/* =========================================================
   11. PUBLICACIONES / ESTATUS
========================================================= */
.pub-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  overflow: hidden;
  background: #fff;
  border-radius: 4px;
}

.pub-status-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #fff;
  font-size: 14px;
}

.pub-status-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 34px;
  padding: 0 14px;
  margin-left: -1px;
  background: #fff;
  color: #333;
  border-top: 1px solid transparent;
  border-right: 1px solid transparent;
  border-bottom: 1px solid transparent;
  border-radius: 0 4px 4px 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}

.pub-status-success .pub-status-icon {
  background: #00a65a;
}

.pub-status-success .pub-status-text {
  border-color: #00a65a;
}

.pub-status-secondary .pub-status-icon {
  background: #6c757d;
}

.pub-status-secondary .pub-status-text {
  border-color: #6c757d;
}

.pub-status-danger .pub-status-icon {
  background: #dd4b39;
}

.pub-status-danger .pub-status-text {
  border-color: #dd4b39;
}

.pub-status-default .pub-status-icon {
  background: #6c757d;
}

.pub-status-default .pub-status-text {
  border-color: #6c757d;
}


/* =========================================================
   12. PUBLICACIONES / PROCESO
========================================================= */
.pub-proceso {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  background: #fff;
  border-radius: 4px;
  font-weight: 600;
}

.pub-proceso-area {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-width: 38px;
  padding: 0 10px;
  margin-right: -1px;
  background: #fff;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  border-left: 1px solid transparent;
  border-radius: 4px 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.pub-proceso-etapa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 32px;
  padding: 0 10px;
  /*color: #fff;*/
  font-size: 12px;
  font-weight: 700;
}

.pub-proceso-texto {
  display: inline-flex;
  align-items: center;
  width: 160px;
  height: 32px;
  padding: 0 14px 0 12px;
  margin-left: -1px;
  background: #fff;
  color: #333;
  border-top: 1px solid transparent;
  border-right: 1px solid transparent;
  border-bottom: 1px solid transparent;
  border-radius: 0 4px 4px 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}

.pub-proceso-cp .pub-proceso-area {
  background: #0073b7;
  color: #fff;
  border-color: #0073b7;
}

.pub-proceso-cp .pub-proceso-etapa {
  background: #fff;
  color: #0073b7;
  border-top: 1px solid #0073b7;
  border-bottom: 1px solid #0073b7;
}

.pub-proceso-cp .pub-proceso-texto {
  border-color: #0073b7;
}

.pub-proceso-dge .pub-proceso-area {
  background: #d35400;
  color: #fff;
  border-color: #d35400;
}

.pub-proceso-dge .pub-proceso-etapa {
  margin-left: -1px;
  background: #fff;
  color: #d35400;
  border-top: 1px solid #d35400;
  border-bottom: 1px solid #d35400;
}

.pub-proceso-dge .pub-proceso-texto {
  border-color: #d35400;
}

.pub-proceso-default .pub-proceso-area {
  color: #6c757d;
  border-color: #6c757d;
}

.pub-proceso-default .pub-proceso-etapa {
  background: #6c757d;
}

.pub-proceso-default .pub-proceso-texto {
  border-color: #6c757d;
}


/* =========================================================
   13. DETALLE DE PUBLICACIÓN
========================================================= */
.detalle-publicacion .dashboard-publicaciones {
  margin-bottom: 20px;
}

.detalle-publicacion .card {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.detalle-publicacion .card-body {
  background: #ffffff;
}

.detalle-card {
  margin-bottom: 18px;
}

.detalle-meta p {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf0f5;
}

.detalle-meta p:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.detalle-etapa {
  display: flex;
  align-items: center;
  gap: 12px;
}

.detalle-etapa-numero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 28px;
    padding: 0 8px;
    background: #DD4D00;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.detalle-etapa-numero2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    height: 28px;
    padding: 0 8px;
    background: #7a00dd;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.detalle-estatus-heading {
  min-height: 72px;
}

.detalle-estatus-heading .pub-status {
  flex-shrink: 0;
}

.dashboard-header-publicacion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.dashboard-publicacion-info {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.dashboard-publicacion-estatus {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.dashboard-estatus-label {
  width: 100%;
  margin-bottom: 6px;
  color: #7b8490;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .5px;
}


/* =========================================================
   14. TAREAS / DISPONIBLES Y REALIZADAS
========================================================= */
.task {
  position: relative;
  min-height: 48px;
  padding: 12px 14px;
  background: #ffffff;
  border-top: 1px solid #edf0f5;
  border-left: 4px solid #DD4D00;
  transition: background .15s ease, border-color .15s ease;
}

.task:first-child {
  border-top: 0;
}

.task:hover {
  background: #fbfcfe;
}

.task.deleted {
  opacity: .5;
}

.task.deleted:hover {
  opacity: 1;
}

.task .list-inline {
  margin-bottom: 0;
  padding: 0;
  font-size: 12px;
}

.task .list-inline > li {
  padding-left: 0;
}

.task .bi {
  margin-right: 4px;
}

.task .btn-group .btn {
  border-radius: 20px;
}

.task-realizada {
  /*border-left-color: #00a651;*/
  border-left-color: #0072bc;
}

.task-realizada strong {
  display: block;
  margin-bottom: 4px;
  color: #2f3542;
  font-size: 13px;
}

.task-realizada span {
  display: block;
  color: #555;
  font-size: 13px;
}

.task-realizada .float-end.text-primary {
  color: #00a651;
}

.task-footer {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #edf0f5;
}

.task-footer .list-inline {
  padding: 0;
}

.task-footer .list-inline > li {
  margin-right: 10px;
}

.task-empty {
  padding: 18px;
  color: #7b8490;
  text-align: center;
}

.task-empty i {
  margin-right: 4px;
}

.btn-task-action {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2px;
  box-shadow: 0 2px 6px rgba(221, 77, 0, 0.15);
  transition: all .15s ease;
}

.btn-task-action i {
  margin-right: 4px;
}

.btn-task-action:hover {
  transform: translateY(-1px);
}

.task-actions {
  display: inline-flex;
  gap: 6px;
}

.task-actions .btn {
  padding: 5px 10px;
  border-radius: 20px !important;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2px;
}

.task-actions .btn i {
  margin-right: 4px;
}

.btn-task-view:hover {
  background: #0072bc;
  border-color: #0072bc;
  color: #fff;
}

.btn-task-edit:hover {
  background: #f8ac59;
  border-color: #f8ac59;
  color: #fff;
}

.btn-task-delete:hover {
  background: #cc2424;
  border-color: #cc2424;
  color: #fff;
}


/* =========================================================
   15. MODALES
========================================================= */
.modal-form .modal-content {
  border: none;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.modal-form .modal-body {
  padding: 24px;
  padding-bottom: 0;
}

.modal-header-publicacion {
  padding: 20px 24px;
  background: #f7f8fa;
  border-bottom: 1px solid #e5e7eb;
}

.modal-header-publicacion .modal-title {
  color: #2f3542;
  font-weight: 600;
}

.modal-subtitle {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 13px;
}

.modal-form .form-group {
  margin-bottom: 18px;
}

.modal-form label {
  margin-bottom: 6px;
  color: #3f4652;
  font-weight: 600;
}

.modal-form .form-control {
  border-radius: 6px;
  box-shadow: none;
}

.modal-form .form-control:focus {
  border-color: #6b7cff;
  box-shadow: 0 0 0 2px rgba(107, 124, 255, 0.12);
}

.modal-form .help-block {
  margin-bottom: 0;
  color: #8b95a1;
  font-size: 12px;
}

.modal-form .modal-footer,
.modal-footer-publicacion {
  padding: 16px 24px;
  background: #f7f8fa;
  border-top: 1px solid #e5e7eb;
}

.modal-form .btn {
  min-width: 110px;
}

.modal-msg i {
  font-size: 90px;
}

.modal-msg h4 {
  line-height: 1.5;
}


/* =========================================================
   16. PROCESO EDITORIAL / STEPPER
========================================================= */
.proceso-editorial {
  position: relative;
  top: 51px;
  z-index: 99;
  width: 100%;
  margin-bottom: 80px;
  padding: 20px;
}

.etapas-toggle-header {
  text-align: right;
  padding: 4px 5px 0;
}

.proceso-editorial2 {
  position: relative;
  top: 10px;
  z-index: 99;
  width: 100%;
  margin-bottom: 10px;
  padding: 5px;
}

.proceso-step > .step .proceso-nombre2 {
  position: relative;
  z-index: 5;
  margin-bottom: -2px;
  color: #195b73;
  font-family: 'Ropa Sans', sans-serif;
  font-size: 15px;
}


.proceso-step {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 105px;
  margin: 0 auto;
  padding: 0;
  background-image: linear-gradient(#d3f3ff, #d3f3ff);
  background-repeat: no-repeat;
  background-position: center 42px;
}

.proceso-step > .step {
  flex: 1;
  position: relative;
  min-height: 105px;
  padding: 0;
  text-align: center;
}

.proceso-step > .step .proceso-nombre {
  position: relative;
  z-index: 5;
  margin-bottom: -2px;
  color: #d3f3ff;
  font-family: 'Ropa Sans', sans-serif;
  font-size: 15px;
}

.proceso-step > .step .proceso-nombre .link-proceso {
  color: #d3f3ff;
  text-decoration: none;
}

.proceso-step > .step .proceso-nombre .link-proceso:hover {
  color: #ffffff;
  text-decoration: none;
}

.proceso-step > .step .departamento {
  position: absolute;
  top: 68px;
  left: 0;
  z-index: 5;
  width: 100%;
  color: #aaabae;
  font-family: 'Ropa Sans', sans-serif;
  font-size: 14px;
}

.proceso-step > .step .departamento2 {
  position: absolute;
  top: 68px;
  left: 0;
  z-index: 5;
  width: 100%;
  color: #195b73;
  font-family: 'Ropa Sans', sans-serif;
  font-size: 14px;
}

.proceso-step > .step > .progress {
  display: none;
}

.proceso-step > .step > .progress > .progress-bar {
  width: 0;
  height: 8px;
  background: transparent;
  box-shadow: none;
}

.proceso-step > .step > .step-dot {
  position: absolute;
  top: 38px;
  left: 50%;
  z-index: 10;
  display: block;
  width: 40px;
  height: 40px;
  margin-top: -15px;
  margin-left: -20px;
  border-radius: 50%;
  background: #e8e8e8;
}

.proceso-step > .step > .step-dot > span {
  position: absolute;
  top: 5px;
  left: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  background: #d8d8d8;
  border-radius: 50%;
  color: #aaaaaa;
  font-weight: bold;
}

.proceso-step > .step.complete > .step-dot {
  background: #4886a1;
}

.proceso-step > .step.complete > .step-dot > span {
  background: #4886a1;
  color: #b3e7ff;
}

.nodoActual {
  background: #4886a1 !important;
  color: #ffffff !important;
}

.jsNodoBtn {
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.jsNodoBtn:hover {
  background: #273650 !important;
  color: #fff !important;
  transform: scale(1.12);
}

.jsNodoBtn.nodo-navegando {
  background: #e67e22 !important;
  color: #fff !important;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px #e67e22;
}

.proceso-step > .step.real .step-dot span {
  background: #303641;
}

.proceso-step > .step.actual .step-dot span {
  background: #e67e22;
  color: #ffffff;
}

.proceso-step > .step.real > .step-dot {
  background: #d3f3ff;
}

.proceso-step > .step.actual > .step-dot {
  background: #ffe5c8;
}

.proceso-step > .step.disabled > .step-dot {
  background: #f5f5f5;
}

.proceso-step > .step.disabled .step-dot span {
  background: #303641;
}

.proceso-step > .step.disabled a.step-dot,
.proceso-step > .step.active a.step-dot {
  pointer-events: none;
}

.proceso-step > .step.active.con_subetapas a.step-dot {
  pointer-events: initial;
}

.proceso-step > .step.complete > .step-dot span:hover,
.proceso-step > .step.real > .step-dot span:hover {
  background: #273650;
}

.proceso-step > .step.actual > .step-dot span:hover {
  background: #d35400;
}

.proceso-step > .step.real > .step-dot span:hover {
  background: #4d5768;
}

.proceso-step > .step.pending > .step-dot {
  background: #eeeeee;
}

.proceso-step > .step.pending > .step-dot > span {
  background: #e0e0e0;
  color: #b0b0b0;
}

.proceso-step > .step.pending .proceso-nombre {
  color: #c0c0c0;
}

.proceso-step > .step.pending .departamento {
  color: #d0d0d0;
}


/* =========================================================
   17. TIMELINE
========================================================= */
.timeline-container .label {
  display: table;
  margin: auto;
  padding: 4px 15px;
  background: #40a9bc;
  font-family: 'Ropa Sans', sans-serif;
  font-size: 15px;
  font-weight: normal;
}

.timeline {
  position: relative;
  margin-bottom: 0;
  padding-top: 20px;
  padding-left: 0;
  list-style: none;
}

.timeline:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 1;
  width: 4px;
  margin-left: -2px;
  background-color: #40a9bc;
}

.timeline > li {
  position: relative;
  float: left;
  clear: both;
  width: 30%;
  margin-bottom: 0 !important;
  padding-right: 5px;
}

.timeline > li:last-child {
  margin-bottom: 0;
}

.timeline > li.odd {
  float: right;
  padding-right: 0;
  padding-left: 20px;
}

.timeline > li.odd .tl-icon,
.timeline > li.odd .tl-time,
.timeline > li.odd .tl-title {
  right: 100%;
  left: auto;
  margin-left: 0;
}

.timeline > li.odd .tl-icon,
.timeline > li.odd .tl-time {
  margin-right: 15px;
}

.timeline > li.odd .tl-title {
  margin-right: 20px;
  text-align: right;
}

.timeline > li.odd .tl-arrow {
  right: auto;
  left: 13px;
  margin-top: -8px;
  border-right-width: 8px;
  border-right-color: #ddd;
  border-left-width: 0;
}

.timeline > li.odd .tl-arrow:after {
  right: auto;
  left: 1px;
  border-right-width: 7px;
  border-right-color: #fff;
  border-left-width: 0;
}

.timeline > li.odd .tl-content {
  float: left;
  box-shadow: 1px 0 2px #eee;
}

.timeline > li.odd .tl-content:after {
  left: 0;
  margin-left: -9px;
}

.tl-icon {
  position: absolute;
  left: 100%;
  margin-left: 15px;
  color: #40a9bc;
  font-size: 28px;
}

.tl-time {
  position: absolute;
  left: 100%;
  margin-top: 35px;
  margin-left: 15px;
  color: #777;
  font-size: 11px;
}

.tl-title {
  position: absolute;
  left: 100%;
  width: 85%;
  margin-top: 15px;
  margin-left: 20px;
  color: #40a9bc;
  font-size: 12px;
}

.tl-arrow,
.tl-arrow:after {
  position: absolute;
  display: block;
  width: 0;
  height: 0;
  border-color: transparent;
  border-style: solid;
}

.tl-arrow {
  top: 23px;
  right: 13px;
  margin-top: -8px;
  border-width: 8px;
  border-right-width: 0;
  border-left-color: #ddd;
}

.tl-arrow:after {
  content: "";
  right: -6px;
  bottom: -7px;
  border-width: 7px;
  border-right-width: 0;
  border-left-color: #fff;
}

.tl-content {
  display: inline-block;
  float: right;
  margin-top: 7px;
  padding: 5px 10px;
  background-color: #fafafa;
  border: 1px solid #e2dfe6;
  color: #888;
  text-align: justify;
  box-shadow: -1px 0 2px #eee;
}

.tl-content p {
  margin-bottom: 0;
}

.tl-content:after {
  content: "";
  position: absolute;
  top: 13px;
  left: 100%;
  z-index: 9;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  background-color: #40a9bc;
  border: 2px solid #fff;
  border-radius: 100%;
}

.tl-date {
  padding-bottom: 7px;
  color: #444;
}

.tl-numb-day {
  float: left;
  margin-right: 5px;
  font-size: 40px;
  font-weight: bold;
  line-height: 33px;
}

.tl-date-small .tl-numb-day {
  float: none;
  font-size: 14px;
  line-height: 15px;
}

.tl-text-day {
  display: block;
  margin-right: 5px;
  font-weight: bold;
}

.tl-date-small .tl-text-day {
  float: left;
  font-weight: normal;
}

.tl-date-small .tl-text-day:after {
  content: ", ";
}

.tl-month {
  display: block;
  color: #888;
}

.tl-date-small .tl-text-day,
.tl-date-small .tl-month {
  display: inline-block;
}

.timeline > li.clearfix {
  float: none;
}


/* =========================================================
   18. MENSAJES / EXTRAS
========================================================= */
.form-group.textarea-container {
  margin-right: -15px;
  margin-bottom: 0;
  margin-left: -15px;
  padding: 15px;
  background: #f6f7f9;
  border-top: 1px solid #ddd;
}

.list-msg {
  margin-bottom: 0;
}

.list-msg div:last-child {
  background: #f6f7f9;
}

blockquote {
  margin: 0 0 10px;
  padding: 5px 15px;
  font-size: inherit;
}

blockquote a {
  margin-right: 5px;
}

blockquote small:before {
  content: none;
}

.fixtures {
  display: none;
}

.select-options,
.select-answers {
  margin-bottom: 1em;
}

.default-label,
option:disabled {
  padding: 0.6em 0.5em;
  background-color: #333;
  color: #fff;
}

.comentarios-pendientes {
  margin-top: 5px;
  padding: 18px;
  background: #ffffff;
  border: 1px dashed #b9d7ec;
  border-radius: 10px;
  color: #0072bc;
  text-align: center;
}

.order-num {
  margin-right: 8px;
  padding: 5px 5px 3px 9px;
  font-size: 13px;
}

.order-item {
  line-height: 2;
}

.order-item i {
  top: 8px;
  margin-left: 10px;
  font-size: 19px;
}

.order-item .badge {
  position: absolute;
  top: -4px;
  margin-left: -8px;
  border: solid 2px;
  border-radius: 2px;
}

.info-box {
  border-left: solid 3px #0072bc;
  border-radius: 0;
}

.info-box h5 {
  margin-top: 5px;
}

.thumb {
  float: left;
  margin-right: 10px;
  padding: 20px 22px 10px 20px;
  background: #242424;
  border-radius: 100%;
  color: #fff;
  font-size: 35px;
}


/* =========================================================
   19. RESPONSIVE
========================================================= */
@media (min-width: 768px) {
  .modal-dialog {
    margin: 200px auto;
  }
}

@media (max-width: 768px) {
  .dashboard-header,
  .estatus-resumen {
    display: block;
  }

  .dashboard-total {
    margin-top: 15px;
    text-align: left;
  }

  .estatus-item {
    margin-bottom: 12px;
  }

  .dashboard-acciones {
    justify-content: flex-start;
  }

  .dashboard-header-publicacion {
    display: block;
  }

  .dashboard-publicacion-estatus {
    align-items: flex-start;
    margin-top: 15px;
  }

  .detalle-etapa {
    display: block;
  }

  .detalle-etapa-numero {
    margin-bottom: 10px;
  }

.detalle-etapa-numero2 {
    margin-bottom: 10px;
  }

  .detalle-estatus-heading {
    display: block;
  }

  .detalle-estatus-heading .pub-status {
    margin-top: 12px;
  }
}

/* =========================================================
   AJUSTES TAREAS REALIZADAS
========================================================= */

.task-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.task-info {
  flex: 1;
  min-width: 0;
}

.task-title {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}

.task-title strong {
  margin-bottom: 0;
}

.task-info span {
  display: block;
  color: #555;
  font-size: 13px;
}

.task-actions {
  flex-shrink: 0;
}

.permiso-label{
    margin-right:4px;
    display:inline-block;
}

.btn-nueva-publicacion{
    font-weight:600;
    border-radius:18px;
    padding:6px 14px;
    box-shadow:0 2px 5px rgba(0,0,0,.12);
}

.btn-nueva-publicacion i{
    margin-right:4px;
}

.btn-usuarios{
    border-radius:18px;
    padding:6px 12px;
    color:#555;
}

.btn-usuarios i{
    margin-right:4px;
}

.panel-heading-usuarios{
    background:#fff;
    border-bottom:1px solid #eee;
    padding:10px 15px;
}

.panel-heading-usuarios .panel-subtitle{
    color:#777;
    font-size:12px;
    font-weight:500;
}

.dashboard-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;

    font-size: 12px;
    color: #999;
}

.dashboard-nav-link {
    color: #888;
    text-decoration: none;
}

.dashboard-nav-link:hover {
    color: #337ab7;
    text-decoration: none;
}

.dashboard-nav-current {
    color: #555;
    font-weight: 600;
}

.panel-debug{
    border-color: #dcdcdc;
    margin-bottom: 20px;
}

.panel-debug .panel-heading{
    background: #fafafa;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #666;
}

.debug-item{
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f1f1;
}

.debug-item:last-child{
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.debug-item small{
    display: block;
    color: #888;
    font-size: 11px;
}

.debug-item strong{
    display: block;
    font-size: 15px;
    color: #2c3e50;
}

.debug-floating {
    position: fixed;
    left: 15px;
    top: 0;
    width: 300px;
    max-height: 90vh;
    overflow-y: auto;

    background: rgba(32, 36, 44, .95);
    color: #d7dde5;

    border-radius: 10px;
    padding: 14px;

    font-size: 12px;
    z-index: 999;

    box-shadow: 0 4px 18px rgba(0,0,0,.2);
}

.debug-floating strong {
    display: block;
    margin-bottom: 10px;
    color: #fff;
}

.usuarios-toolbar{
    margin-bottom: 15px;
}

.usuarios-toolbar .btn{
    font-weight: 600;
}

.td-rol-permisos{
    vertical-align: middle !important;
}

.usuario-rol{
    font-weight: 600;
    margin-bottom: 6px;
}

.usuario-permisos{
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.permiso-label{
    display: inline-block;
}

.required{
    color: #a94442;
    font-weight: bold;
}

.campo-requerido{
    border-left: 4px solid #d9534f;
}

/* =========================================================
   ADMINISTRACIÓN / DASHBOARD
========================================================= */

.dashboard-admin {
    margin-top: 20px;
}

.dashboard-admin .dashboard-header {
    margin-bottom: 25px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dashboard-header p {
    margin: 5px 0 0;
    color: #777;
}

.dashboard-publicacion-info {
    display: flex;
    flex-direction: column;
}

.dashboard-titles {
    padding-left: 2px;
}

/* =========================================================
   ADMINISTRACIÓN / NAVEGACIÓN
========================================================= */

.dashboard-navigation {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.dashboard-nav-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #555;
    background: #fff;
    text-decoration: none;
}

.dashboard-nav-btn:hover {
    background: #f5f5f5;
    text-decoration: none;
}

.dashboard-nav-link {
    color: #337ab7;
    text-decoration: none;
    font-weight: 500;
}

.dashboard-nav-link:hover {
    text-decoration: underline;
}

.dashboard-nav-separator {
    color: #bbb;
}

.dashboard-nav-current {
    color: #777;
    font-weight: 600;
}

/* =========================================================
   ADMINISTRACIÓN / TARJETAS RESUMEN
========================================================= */

.dashboard-cards {
    margin-bottom: 20px;
}

.admin-card {
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 95px;
    padding: 18px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    transition: all .2s ease;
}

.admin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.admin-card-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    font-size: 22px;
}

.admin-card-info {
    display: flex;
    flex-direction: column;
}

.admin-card-label {
    color: #777;
    font-size: 13px;
}

.admin-card-info strong {
    color: #222;
    font-size: 24px;
    font-weight: 600;
}

/* =========================================================
   ADMINISTRACIÓN / OPCIONES
========================================================= */

.admin-option-groups {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.admin-option-group h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px 0;
    color: #333;
    font-size: 15px;
    font-weight: 600;
}

.admin-option-group h4 i {
    color: #337ab7;
}

.admin-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.admin-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    background: #fff;
    color: #333;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    text-decoration: none;
    transition: all .2s ease;
}

.admin-option:hover {
    background: #f7fbff;
    border-color: #337ab7;
    text-decoration: none;
}

.admin-option i {
    color: #337ab7;
    font-size: 20px;
}

/* =========================================================
   ADMINISTRACIÓN / ESTADO DEL SISTEMA
========================================================= */

.admin-status {
    padding: 0;
    margin: 0;
    list-style: none;
}

.admin-status li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.admin-status li:last-child {
    border-bottom: none;
}