
/* Home Tecsion - Admin UI v0.2
   Azul + blanco / responsive / tablas / formularios / navegaciÃ³n */
:root{
  --ht-blue:#1478bd;
  --ht-blue-dark:#0d5f98;
  --ht-blue-soft:#eaf4fb;
  --ht-bg:#f4f7fa;
  --ht-white:#fff;
  --ht-text:#183247;
  --ht-muted:#6b7c8f;
  --ht-border:#dce5ec;
  --ht-success:#16834b;
  --ht-danger:#c43d3d;
  --ht-shadow:0 8px 24px rgba(20,55,85,.08);
  --ht-radius:12px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--ht-bg);
  color:var(--ht-text);
  font-family:Inter,Segoe UI,Roboto,Arial,sans-serif;
  line-height:1.5;
}
a{color:var(--ht-blue);text-decoration:none;margin-right:14px}
a:hover{text-decoration:underline}
header,nav{
  background:var(--ht-white);
}
nav{
  display:flex!important;
  align-items:center;
  gap:8px;
  padding:16px 28px!important;
  border-bottom:1px solid var(--ht-border);
  box-shadow:0 2px 10px rgba(0,0,0,.04);
  flex-wrap:wrap;
}
nav a{margin:0;padding:8px 12px;border-radius:8px;font-weight:600}
nav a:hover{background:var(--ht-blue-soft);text-decoration:none}
main,.container,.content{
  width:min(1180px,calc(100% - 40px));
  margin:28px auto;
}
h1{font-size:30px;margin:0 0 8px;color:#12344d}
h2{font-size:22px;margin:0 0 12px}
p{color:var(--ht-muted)}
table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  background:var(--ht-white);
  border:1px solid var(--ht-border);
  border-radius:var(--ht-radius);
  overflow:hidden;
  box-shadow:var(--ht-shadow);
  margin:18px 0;
}
th,td{
  padding:13px 15px;
  text-align:left;
  border-bottom:1px solid var(--ht-border);
  vertical-align:middle;
}
th{
  background:#f7fafc;
  color:#35536b;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.03em;
}
tr:last-child td{border-bottom:0}
tr:hover td{background:#fbfdff}
button,input,select,textarea{
  font:inherit;
}
button,.button,input[type=submit],input[type=button]{
  border:1px solid var(--ht-blue);
  background:var(--ht-blue);
  color:white;
  padding:9px 15px;
  border-radius:8px;
  cursor:pointer;
  font-weight:600;
  margin:3px 5px 3px 0;
}
button:hover,.button:hover,input[type=submit]:hover,input[type=button]:hover{
  background:var(--ht-blue-dark);
  text-decoration:none;
}
input,select,textarea{
  width:100%;
  max-width:520px;
  padding:10px 12px;
  border:1px solid #cbd8e2;
  border-radius:8px;
  background:#fff;
  color:var(--ht-text);
}
label{display:block;font-weight:600;margin:14px 0 6px}
form{
  background:#fff;
  border:1px solid var(--ht-border);
  border-radius:var(--ht-radius);
  padding:22px;
  box-shadow:var(--ht-shadow);
}
.card,.panel,.box{
  background:#fff;
  border:1px solid var(--ht-border);
  border-radius:var(--ht-radius);
  padding:20px;
  box-shadow:var(--ht-shadow);
}
.alert,.message,.success,.error{
  padding:12px 15px;
  border-radius:8px;
  margin:12px 0;
}
.success{background:#eaf8f0;color:#12633b;border:1px solid #bfe8d0}
.error{background:#fff0f0;color:#9e2929;border:1px solid #efc2c2}
.badge{
  display:inline-block;
  padding:4px 9px;
  border-radius:999px;
  background:var(--ht-blue-soft);
  color:var(--ht-blue-dark);
  font-size:12px;
  font-weight:700;
}
.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
@media(max-width:760px){
  main,.container,.content{width:min(100% - 20px,1180px);margin:18px auto}
  nav{padding:12px 15px!important}
  table{display:block;overflow-x:auto;white-space:nowrap}
  h1{font-size:25px}
  th,td{padding:10px 11px}
  form{padding:16px}
}
.topbar strong + .muted {
    margin-left: 10px;
}

/* =========================================================
   HOME TECSION - DASHBOARD MODERNO
   ========================================================= */

.dashboard-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 42px 24px 70px;
}

/* HERO */

.dashboard-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 34px 38px;
    margin-bottom: 28px;
    background: linear-gradient(135deg, #ffffff 0%, #f4f9fd 100%);
    border: 1px solid #dbe7f1;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(20, 71, 110, 0.08);
}

.dashboard-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #146fb4;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.dashboard-hero h1 {
    margin: 0;
    color: #123f63;
    font-size: 32px;
    line-height: 1.2;
}

.dashboard-hero p {
    margin: 10px 0 0;
    color: #647b8e;
    font-size: 15px;
}

.dashboard-environment {
    min-width: 125px;
    padding: 16px 20px;
    text-align: center;
    background: #146fb4;
    color: #ffffff;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(20, 111, 180, 0.20);
}

.dashboard-environment span {
    display: block;
    margin-bottom: 5px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.85;
}

.dashboard-environment strong {
    font-size: 17px;
}

/* INFORMATION CARDS */

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 38px;
}

.dashboard-card {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 92px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #dbe7f1;
    border-radius: 16px;
    box-shadow: 0 5px 18px rgba(20, 71, 110, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 24px rgba(20, 71, 110, 0.10);
}

.dashboard-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    background: #eaf4fb;
    border-radius: 12px;
    font-size: 22px;
}

.dashboard-card-label {
    display: block;
    margin-bottom: 5px;
    color: #71879a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.dashboard-card strong {
    display: block;
    color: #123f63;
    font-size: 16px;
}

/* MODULES */

.dashboard-modules {
    margin-top: 10px;
}

.dashboard-section-title {
    margin-bottom: 20px;
}

.dashboard-section-title h2 {
    margin: 0 0 6px;
    color: #123f63;
    font-size: 22px;
}

.dashboard-section-title p {
    margin: 0;
    color: #71879a;
    font-size: 14px;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.module-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 145px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #dbe7f1;
    border-radius: 16px;
    box-shadow: 0 5px 18px rgba(20, 71, 110, 0.06);
    transition: all 0.2s ease;
}

.module-card:hover {
    transform: translateY(-3px);
    border-color: #b8d8ee;
    box-shadow: 0 10px 28px rgba(20, 71, 110, 0.11);
}

.module-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    background: #eaf4fb;
    border-radius: 12px;
    font-size: 23px;
}

.module-card strong {
    margin-bottom: 6px;
    color: #123f63;
    font-size: 16px;
}

.module-card small {
    color: #71879a;
    font-size: 13px;
}

/* RESPONSIVE */

@media (max-width: 900px) {

    .dashboard-cards,
    .module-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-environment {
        min-width: 110px;
    }
}

@media (max-width: 600px) {

    .dashboard-page {
        padding: 25px 16px 50px;
    }

    .dashboard-hero {
        padding: 25px;
    }

    .dashboard-hero h1 {
        font-size: 26px;
    }

    .dashboard-cards,
    .module-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-card {
        min-height: 82px;
    }
}
/* =========================================================
   FORMULARIOS ADMINISTRATIVOS - HOME TECSION
   Espaciado y alineaci¨®n
   ========================================================= */

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.admin-form > label {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: center;
    column-gap: 18px;
    margin-bottom: 16px;
    color: #123b5d;
    font-weight: 600;
}

.admin-form > label input,
.admin-form > label select,
.admin-form > label textarea {
    width: 100%;
    box-sizing: border-box;
}

.admin-form input[type="text"],
.admin-form input[type="email"],
.admin-form input[type="password"],
.admin-form input[type="tel"] {
    min-height: 42px;
    padding: 10px 13px;
    border: 1px solid #cbd9e6;
    border-radius: 8px;
    background: #ffffff;
    color: #123b5d;
    font-size: 14px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.admin-form input:focus {
    border-color: #1677b8;
    box-shadow: 0 0 0 3px rgba(22, 119, 184, .12);
}

.admin-form input[readonly] {
    background: #eef5fa;
    color: #526b7d;
}

/* Caja de roles */
.admin-form fieldset {
    margin: 10px 0 20px;
    padding: 18px 20px;
    border: 1px solid #d7e3ed;
    border-radius: 10px;
    background: #f9fcfe;
}

.admin-form fieldset legend {
    padding: 0 8px;
    color: #123b5d;
    font-weight: 700;
}

/* Cada rol */
.admin-form .check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 11px 0;
    padding: 7px 10px;
    border-radius: 7px;
    color: #234d6b;
    font-weight: 500;
}

.admin-form .check-row:hover {
    background: #edf6fc;
}

.admin-form .check-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #1677b8;
}

/* Bot¨®n guardar */
.admin-form button[type="submit"] {
    width: 100%;
    min-height: 44px;
    margin-top: 4px;
    padding: 11px 18px;
    border: 0;
    border-radius: 8px;
    background: #1677b8;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, transform .1s ease;
}

.admin-form button[type="submit"]:hover {
    background: #0f639d;
}

.admin-form button[type="submit"]:active {
    transform: translateY(1px);
}

/* Mensajes */
.admin-form + .alert,
.admin-card .alert {
    margin-bottom: 18px;
}

/* Responsive */
@media (max-width: 700px) {
    .admin-form > label {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 7px;
    }

    .admin-form fieldset {
        padding: 15px;
    }
}