/* :root {
   --nav-bg: #0d1525;  
   --nav-bg-light: #3b3b3b;
   --nav-accent: #1e3a5f;  
   --accent: #2563a8;  
   --accent-light: #6aa6dd;
   --font-family-template:
      -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

   --background: #eef1f6;
}
 */

/* CONTENIDO — estilo cards */
.page {
   background: #eef1f6;
   min-height: calc(100vh - 48px);
   padding: 16px 20px 24px;
}

/* breadcrumb arriba (barra clara) */
.crumb {
   display: flex;
   align-items: center;
   gap: 8px;
   padding: 4px 4px 10px;
   font-size: 13px;
   color: #7a8699;
   /*   padding-bottom: 12px; */
}
.crumb i.home {
   font-size: 17px;
   color: #5b6b85;
}
.crumb a {
   color: #2563a8;
   cursor: pointer;
   text-decoration: none;
   font-weight: 500;
}
.crumb a:hover {
   text-decoration: underline;
}
.crumb .sep {
   color: #aab2c0;
   font-size: 13px;
}
.crumb .cur {
   color: #5b6b85;
}

/* card genérica */
/* .card {
   background: #fff;
   border: 1px solid #e3e7ee;
   border-radius: 10px;
   box-shadow: 0 1px 2px rgba(20, 40, 80, 0.04);
   margin-bottom: 16px;
   overflow: hidden;
} */

/* HEADER card */
.card-head {
   padding: 14px 22px;
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 16px;
   flex-wrap: wrap;
}
.ch-title {
   font-size: 19px;
   font-weight: 600;
   color: #3a4252;
   line-height: 1.2;
}
.ch-sub {
   font-size: 14px;
   color: #9aa3b2;
   margin-top: 3px;
}
.ch-actions {
   display: flex;
   gap: 8px;
   align-items: center;
}

/* FILTROS card */
.card-filter-title {
   font-size: 16px;
   font-weight: 600;
   color: #3a4252;
   padding: 16px 22px 0;
}
.filter-body {
   padding: 16px 22px 6px;
   /* display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 14px 28px; */
}
.fgroup {
   display: flex;
   flex-direction: column;
   gap: 6px;
}
.flabel {
   font-size: 13px;
   font-weight: 600 !important;
   color: #5b6b85;
   font-family: var(--font-family-template);
}
/* .fctrl {
   
   align-items: center;
   gap: 8px;
 
   border: 1px solid #d8dee8;
   border-radius: 7px;
   padding: 9px 12px;
   font-size: 13.5px;
   color: #5b6b85;
   cursor: pointer;
   transition: border-color 0.15s;
}
.fctrl:hover {
   border-color: #b9c3d2;
}
.fctrl.input-like {
   color: #3a4252;
}
.fctrl i {
   font-size: 15px;
   color: #9aa3b2;
   margin-left: auto;
}
.fctrl .ph {
   color: #aab2c0;
} */
.filter-foot {
   padding: 12px 22px 18px;
   border-top: 1px solid #eef1f6;
   display: flex;
   justify-content: flex-end;
   margin-top: 8px;
}

/* LISTADO card */
.card-list-head {
   padding: 18px 22px 4px;
}
.cl-title {
   font-size: 18px;
   font-weight: 600;
   color: #3a4252;
}
.cl-sub {
   font-size: 13.5px;
   color: #9aa3b2;
   margin-top: 2px;
}
table.t {
   width: 100%;
   border-collapse: collapse;
   font-size: 13.5px;
   /* margin-top: 10px; */
   margin: 0px !important;
   font-family: inherit;
}
table.t th {
   text-align: left;
   padding: 12px 22px;
   font-size: 11px !important;
   font-weight: 700 !important;
   text-transform: uppercase !important;
   letter-spacing: 0.04em !important;
   color: #9aa3b2 !important;
   background: #f6f8fb !important;
   border-top: 1px solid #eef1f6 !important;
   border-bottom: 1px solid #eef1f6 !important;
   white-space: nowrap !important;
}
table.t td {
   /* padding: 15px 22px; */
   border-bottom: 1px solid #f0f3f8;
   color: #4a5568;
   vertical-align: middle;
}

table.t.compact-cells td {
   padding: 0px 12px !important; /* Puedes ajustar estos valores */
}

table.t.compact-cells th {
   padding: 0px 12px !important; /* Puedes ajustar estos valores */
}

table.t tr:last-child td {
   border-bottom: none;
}
table.t tbody tr:hover td {
   background: #fafbfd;
}
.bdg {
   display: inline-flex;
   align-items: center;
   gap: 5px;
   padding: 4px 12px;
   border-radius: 20px;
   font-size: 11.5px;
   font-weight: 700;
   letter-spacing: 0.02em;
   text-transform: uppercase;
}
.bdg.on {
   background: #22b573;
   color: #fff;
}

.bdg.danger {
   background: #e63757;
   color: #fff;
}

.bdg.warning {
   background: #f5803e;
   color: #fff;
}

.bdg.info {
   background: #2c7be5;
   color: #fff;
}

.bdg.primary {
   background: #2c7be5;
   color: #fff;
}

.bdg.off {
   background: #94a3b8;
   color: #fff;
}
.bdg.open {
   background: #38bdf8;
   color: #fff;
}
.bdg.warn {
   background: #f5a623;
   color: #fff;
}
.act-btn {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   width: 30px;
   height: 30px;
   border-radius: 6px;
   color: #aab2c0;
   cursor: pointer;
   font-size: 18px;
   transition:
      background 0.12s,
      color 0.12s;
   background: transparent;
   border: none;
}

.act-btn:hover {
   background: #eef1f6;
   color: #5b6b85;
}

/* ── STAT CARDS (hero superior estilo gobernanza) ── */
.hero {
   background: linear-gradient(
      100deg,
      var(--nav-bg) 0%,
      var(--nav-bg) 55%,
      var(--accent) 80%,
      #6aa6dd 100%
   );
   border-radius: 10px;
   padding: 14px 22px;
   margin-bottom: 16px;
   color: #fff;
   position: relative;
   overflow: hidden;
   box-shadow: 0 2px 8px rgba(20, 40, 80, 0.12);

   display: flex;
   flex-direction: column;
}

.height-hero {
   min-height: 152.52px;
}

.hero-actions {
   display: flex;
   gap: 15px;
   align-items: center;
   flex-shrink: 0;

   margin-top: auto !important;
}

/* Page-header delgado: azul nav → azul claro */
.phead {
   background: linear-gradient(
      100deg,
      var(--nav-bg) 0%,
      var(--nav-bg) 55%,
      var(--accent) 80%,
      #6aa6dd 100%
   );
   border-radius: 10px;
   padding: 14px 22px;
   margin-bottom: 16px;
   color: #fff;
   display: flex;
   /* align-items: center; */

   box-shadow: 0 2px 8px rgba(20, 40, 80, 0.12);

   display: flex;
   flex-direction: column;
}
.phead-title {
   /* font-size: 19px;
   font-weight: 600;
   line-height: 1.2; */

   font-size: 22px;
   font-weight: 600;
   line-height: 23px;
}
.phead-desc {
   font-size: 13px;
   color: rgba(255, 255, 255, 0.8);
   margin-top: 3px;
}
.phead-actions {
   display: flex;
   gap: 8px;
   align-items: center;
   flex-shrink: 0;
}

@media (max-width: 734px) {
   .phead-actions {
      width: 100%;
      justify-content: end;
   }
}

@media (min-width: 992px) and (max-width: 1070px) {
   .phead-actions {
      width: 100%;
      justify-content: end;
   }
}

.hero-eyebrow {
   font-size: 11px;
   font-weight: 700;
   letter-spacing: 0.08em;
   text-transform: uppercase;
   color: #bfdbfed2;
}
.hero-title {
   font-size: 22px;
   font-weight: 600;
   line-height: 23px;
   /* margin: 3px 0 4px; */
}
.hero-desc {
   font-size: 13px;
   color: rgba(255, 255, 255, 0.8);
   max-width: 520px;
   line-height: 1.45;
}
.hero-grid {
   display: grid;
   grid-template-columns: 1.4fr 1fr;
   gap: 18px;
   /* align-items: center; */
}
.stat-row {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 8px;
}
.stat {
   background: rgba(255, 255, 255, 0.1);
   border: 1px solid rgba(255, 255, 255, 0.16);
   border-radius: 8px;
   padding: 7px 12px;
   backdrop-filter: blur(4px);
}
.stat-lbl {
   font-size: 9.5px;
   font-weight: 700;
   letter-spacing: 0.04em;
   text-transform: uppercase;
   color: rgba(255, 255, 255, 0.6);
}
.stat-val {
   font-size: 20px;
   font-weight: 700;
   line-height: 1.05;
   margin: 1px 0;
}
.stat-sub {
   font-size: 10.5px;
   color: rgba(255, 255, 255, 0.55);
}

/* ── DASHBOARD ── */
.dash-grid {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 14px;
   margin-bottom: 16px;
}
.dash-card {
   background: #fff;
   border: 1px solid #e3e7ee;
   border-radius: 10px;
   padding: 18px;
   box-shadow: 0 1px 2px rgba(20, 40, 80, 0.04);
}
.dash-card .dc-ico {
   width: 42px;
   height: 42px;
   border-radius: 10px;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 22px;
   margin-bottom: 12px;
}
.dash-card .dc-val {
   font-size: 26px;
   font-weight: 700;
   color: #3a4252;
   line-height: 1.1;
}
.dash-card .dc-lbl {
   font-size: 13px;
   color: #9aa3b2;
   margin-top: 3px;
}
.dash-card .dc-trend {
   font-size: 12px;
   font-weight: 600;
   margin-top: 6px;
}
.dash-2col {
   display: grid;
   grid-template-columns: 1.4fr 1fr;
   gap: 14px;
}
.panel {
   background: #fff;
   border: 1px solid #e3e7ee;
   border-radius: 10px;
   box-shadow: 0 1px 2px rgba(20, 40, 80, 0.04);
   overflow: hidden;
}
.panel-head {
   padding: 16px 20px;
   border-bottom: 1px solid #eef1f6;
   font-size: 15px;
   font-weight: 600;
   color: #3a4252;
   display: flex;
   align-items: center;
   justify-content: space-between;
}
.panel-body {
   padding: 8px 0;
}
.row-item {
   display: flex;
   align-items: center;
   gap: 12px;
   padding: 11px 20px;
   border-bottom: 1px solid #f4f6fa;
}
.row-item:last-child {
   border-bottom: none;
}
.ri-ico {
   width: 34px;
   height: 34px;
   border-radius: 8px;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 16px;
   flex-shrink: 0;
}
.ri-txt {
   flex: 1;
}
.ri-name {
   font-size: 13.5px;
   font-weight: 500;
   color: #3a4252;
}
.ri-meta {
   font-size: 11.5px;
   color: #9aa3b2;
}
.ri-val {
   font-size: 13px;
   font-weight: 600;
   color: #3a4252;
}
footer {
   text-align: center;
   padding: 10px 0;
   font-size: 12px;
   color: #aab2c0;
}

/*login */

.box {
   position: relative;
   z-index: 1;
   width: 100%;
   max-width: 380px;
   text-align: center;
   animation: fade 0.5s ease;
   /* margin-top: 30px; */
}
@keyframes fade {
   from {
      opacity: 0;
      transform: translateY(10px);
   }
   to {
      opacity: 1;
      transform: none;
   }
}

/* ── MARCA destacada ── */

.brand {
   margin-bottom: 36px;
}
.brand .brandmark {
   display: block;
   margin: 0 auto 18px;
   width: 270px;
   height: auto;
}
.brand .tag {
   display: inline-block;
   margin-top: 12px;
   font-size: 11px;
   font-weight: 700;
   letter-spacing: 0.14em;
   text-transform: uppercase;
   color: var(--accent);
   background: rgba(37, 99, 168, 0.08);
   border-radius: 30px;
   /* padding: 6px 16px; */
   padding: 4px 16px;
}

.field {
   margin-bottom: 18px;
   text-align: left;
}
.field label {
   display: block;
   font-size: 12.5px;
   font-weight: 600;
   color: #3a4252;
   margin-bottom: 8px;
}
.iw {
   display: flex;
   align-items: center;
   gap: 11px;
   border: none;
   border-bottom: 2px solid #e5e9f0;
   padding: 0 2px 2px;
   transition: border-color 0.18s;
}
.iw:focus-within {
   border-color: var(--accent);
}
.iw i {
   font-size: 19px;
   color: #b0b8c4;
   transition: color 0.18s;
}
.iw:focus-within i {
   color: var(--accent);
}
.iw input {
   flex: 1;
   border: none;
   outline: none;
   background: transparent;
   padding: 12px 0;
   font-size: 15px;
   color: #16202e;
   font-family: inherit;
}
.iw input::placeholder {
   color: #c2c9d4;
}

.is-invalid-iw {
   border-bottom: 2px solid red !important;
}

.tp {
   background: none;
   border: none;
   cursor: pointer;
   color: #b0b8c4;
   font-size: 19px;
   display: flex;
   padding: 4px;
}
.tp:hover {
   color: var(--accent);
}
.rb {
   display: flex;
   align-items: center;
   justify-content: space-between;
   margin: 20px 0 28px;
}
.rem {
   display: flex;
   align-items: center;
   gap: 8px;
   font-size: 13px;
   color: #5b6b85;
   cursor: pointer;
   user-select: none;
}
.rem input {
   width: 16px;
   height: 16px;
   accent-color: var(--accent);
}
.fg {
   font-size: 13px;
   color: var(--accent);
   text-decoration: none;
   font-weight: 600;
}
.fg:hover {
   text-decoration: underline;
}
.btn-login {
   width: 100%;
   border: none;
   border-radius: 12px;
   cursor: pointer;
   background: var(--nav-bg);
   color: #fff;
   font-size: 15px;
   font-weight: 600;
   padding: 16px;
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 9px;
   transition: 0.18s;
   font-family: inherit;
}
.btn-login:hover {
   background: var(--accent);
   transform: translateY(-2px);
   box-shadow: 0 12px 28px rgba(37, 99, 168, 0.3);
}

.color-btn {
   color: white !important;
}

.btn-login i {
   font-size: 19px;
}
.foot {
   margin-top: 30px;
   font-size: 12.5px;
   color: #aab2bf;
}
.foot a {
   color: var(--accent);
   text-decoration: none;
   font-weight: 600;
}
.foot a:hover {
   text-decoration: underline;
}
.ver {
   margin-top: 8px;
   font-size: 11px;
   color: #cdd5e0;
}

.action-btn-edit-hero {
   display: inline-flex;
   align-items: center;
   gap: 0.45rem;
   padding: 0.3rem 0.5rem;
   /* border-radius: 0.8rem; */
   border-radius: 0.5rem;
   background: #fff;
   color: #12335f;
   font-size: 0.76rem;
   font-weight: 700;
   text-decoration: none;
   box-shadow: 0 0.75rem 1.45rem rgba(15, 23, 42, 0.18);
   transition:
      transform 0.18s ease-in-out,
      box-shadow 0.18s ease-in-out;
}
