/* GH 25-oct-2026: HostingCenter.com.co v2 (generada con generar_v2.py desde freehostv2): menu lateral, barra superior y tablero */
:root {
    --gh-teal: #07100b;
    --gh-teal-2: rgba(255,255,255,.07);
    --gh-teal-3: rgba(255,255,255,.12);
    --gh-green: #059669;
    --gh-green-d: #047f59;
    --gh-mint: #1fd78c;
    --gh-mint-soft: #e2f7ee;
    --gh-ink: #0b1a12;
    --gh-muted: #56635b;
    --gh-line: #e2eae5;
    --gh-bg: #f5f8f6;
    --gh-warn: #b7791f;
    --gh-warn-soft: #fff7e8;
    --gh-green-rgb: 5,150,105;
    --gh-brand2: #0c1f15;
    --gh-r: 14px;
    --gh-side: 264px;
    --gh-top: 64px;
    --gh-shadow: 0 1px 2px rgba(15,25,35,.04), 0 4px 16px rgba(15,25,35,.04);
}

/* ---------- Base ---------- */
body.gh2,
body.gh2.primary-bg-color {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--gh-ink);
    background: var(--gh-bg);
    -webkit-font-smoothing: antialiased;
}
.gh2 h1, .gh2 h2, .gh2 h3, .gh2 h4, .gh2 h5, .gh2 .h1, .gh2 .h2, .gh2 .h3, .gh2 .h4, .gh2 .h5 { font-family: inherit; color: var(--gh-teal); letter-spacing: -.01em; }
.gh2 a { color: var(--gh-green); }
.gh2 a:hover { color: var(--gh-green-d); }

.gh-textlogo { display: inline-block; line-height: 1; white-space: nowrap; color: var(--gh-ink); }

/* ---------- Estructura ---------- */
.gh2-shell { min-height: 100vh; }
.gh2-main { min-height: 100vh; display: flex; flex-direction: column; }
.gh2-main > .gh2-body { flex: 1 0 auto; }
.gh2-wrap { max-width: 1320px; padding-left: 28px; padding-right: 28px; }
@media (min-width: 992px) {
    .gh2-in .gh2-main { margin-left: var(--gh-side); }
}

/* ---------- Menu lateral ---------- */
.gh2-side {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 1040;
    width: var(--gh-side);
    background: var(--gh-teal);
    color: #c9d1d9;
    display: flex; flex-direction: column;
    transition: transform .22s ease;
}
.gh2-side-head { display: flex; align-items: center; justify-content: space-between; height: var(--gh-top); padding: 0 22px; border-bottom: 1px solid rgba(255,255,255,.06); }
.gh2-side .gh-textlogo { color: #fff; }
.gh2-side .gh2-brand:hover { text-decoration: none; }
.gh2-close { background: none; border: 0; color: #c9d1d9; font-size: 22px; }

.gh2-nav { flex: 1 1 auto; overflow-y: auto; padding: 14px 12px; }
.gh2-nav-title { margin: 18px 12px 6px; font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #6f7d8b; }
.gh2 .gh2-link {
    display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 9px 12px; margin-bottom: 2px;
    border: 0; border-radius: 10px; background: none;
    color: #c9d1d9; font-size: .93rem; font-weight: 500; text-align: left;
    transition: background-color .15s, color .15s;
}
.gh2 .gh2-link i.fa-fw { width: 20px; font-size: 1.02rem; color: #8b98a6; transition: color .15s; }
.gh2 .gh2-link:hover, .gh2 .gh2-link:focus { background: var(--gh-teal-2); color: #fff; text-decoration: none; outline: 0; }
.gh2 .gh2-link:hover i.fa-fw { color: #fff; }
.gh2 .gh2-link.active { background: var(--gh-teal-3); color: #fff; }
.gh2 .gh2-link.active i.fa-fw { color: var(--gh-mint); }
.gh2-chev { margin-left: auto; font-size: .7rem; opacity: .6; transition: transform .2s; }
.gh2-toggle:not(.collapsed) .gh2-chev { transform: rotate(180deg); }
.gh2-sub { padding: 2px 0 8px 44px; }
.gh2 .gh2-sublink {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 10px; border-radius: 8px;
    color: #9aa7b4; font-size: .875rem;
}
.gh2 .gh2-sublink:hover { color: #fff; background: var(--gh-teal-2); text-decoration: none; }
.gh2 .gh2-sublink.active { color: var(--gh-mint); font-weight: 600; }
.gh2-badge { margin-left: auto; min-width: 20px; padding: 1px 7px; border-radius: 999px; background: var(--gh-green); color: #fff; font-size: .72rem; font-weight: 700; text-align: center; }

.gh2-side-foot { display: flex; align-items: center; gap: 8px; padding: 14px 14px 16px; border-top: 1px solid rgba(255,255,255,.06); }
.gh2 .gh2-me { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; padding: 6px; border-radius: 10px; color: #fff; }
.gh2 .gh2-me:hover { background: var(--gh-teal-2); text-decoration: none; color: #fff; }
.gh2-avatar { flex: 0 0 36px; height: 36px; border-radius: 50%; background: var(--gh-green); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.gh2-me-txt { min-width: 0; line-height: 1.2; }
.gh2-me-txt strong, .gh2-me-txt small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gh2-me-txt strong { font-size: .86rem; font-weight: 600; }
.gh2-me-txt small { color: #8b98a6; font-size: .76rem; }
.gh2 .gh2-logout { flex: 0 0 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: #8b98a6; }
.gh2 .gh2-logout:hover { background: var(--gh-teal-2); color: #fff; }

.gh2-backdrop { display: none; }
@media (max-width: 991.98px) {
    .gh2-side { transform: translateX(-100%); }
    .gh2-open .gh2-side { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.25); }
    .gh2-open .gh2-backdrop { display: block; position: fixed; inset: 0; z-index: 1035; background: rgba(15,25,35,.45); }
    .gh2-open { overflow: hidden; }
}

/* ---------- Barra superior ---------- */
.gh2-top {
    position: sticky; top: 0; z-index: 1020;
    display: flex; align-items: center; gap: 16px;
    height: var(--gh-top); padding: 0 28px;
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(160%) blur(8px);
    border-bottom: 1px solid var(--gh-line);
}
.gh2-out .gh2-top { padding: 0 max(28px, calc((100vw - 1320px) / 2 + 28px)); }
.gh2-burger { background: none; border: 0; padding: 6px; color: var(--gh-teal); font-size: 20px; }
.gh2-top .gh2-brand:hover { text-decoration: none; }
.gh2-search {
    align-items: center; gap: 10px;
    width: 100%; max-width: 420px; height: 40px; padding: 0 14px;
    border: 1px solid var(--gh-line); border-radius: 10px; background: var(--gh-bg);
    color: var(--gh-muted);
}
.gh2-search:focus-within { border-color: var(--gh-green); background: #fff; box-shadow: 0 0 0 3px rgba(var(--gh-green-rgb),.12); }
.gh2-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; font-size: .9rem; color: var(--gh-ink); }
.gh2-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.gh2 .gh2-icon-btn {
    position: relative; width: 40px; height: 40px; border-radius: 10px; border: 0; background: none;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--gh-teal); font-size: 1.08rem;
}
.gh2 .gh2-icon-btn:hover, .gh2 .gh2-icon-btn:focus { background: var(--gh-bg); color: var(--gh-green); outline: 0; }
.gh2-dot { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gh-green); color: #fff; font-size: .68rem; font-weight: 700; line-height: 18px; text-align: center; }
.gh2-dot-empty { display: none; }
.gh2-account { flex-direction: row; }
.gh2-account > li > a { display: inline-flex; align-items: center; height: 40px; padding: 0 12px !important; border-radius: 10px; color: var(--gh-teal); font-weight: 600; font-size: .9rem; }
.gh2-account > li > a:hover { background: var(--gh-bg); text-decoration: none; color: var(--gh-green); }
.gh2 .dropdown-menu { border: 1px solid var(--gh-line); border-radius: 12px; box-shadow: 0 12px 32px rgba(15,25,35,.12); padding: 6px; }
.gh2 .dropdown-menu .dropdown-item { border-radius: 8px; }
.gh2 .dropdown-menu li.dropdown-item { padding: 0; }
.gh2 .dropdown-menu li.dropdown-item > a { padding: 7px 10px !important; color: var(--gh-ink); font-size: .9rem; }
.gh2 .dropdown-menu .dropdown-item:hover, .gh2 .dropdown-menu .dropdown-item:focus { background: var(--gh-mint-soft); }
.gh2-guest-links { gap: 24px; margin-left: 32px; }
.gh2-guest-links a { color: var(--gh-teal); font-weight: 600; font-size: .92rem; }
.gh2-login-btn { margin-left: 6px; }
@media (max-width: 575.98px) {
    .gh2-top { padding: 0 14px; gap: 8px; }
    .gh2-top .gh-textlogo { font-size: 22px; }
    .gh2-account > li > a { padding: 0 8px !important; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; line-height: 40px; }
    .gh2-wrap { padding-left: 16px; padding-right: 16px; }
}

/* ---------- Ruta (breadcrumb) ---------- */
.gh2 .master-breadcrumb { background: transparent; padding-top: 18px; }
.gh2 .master-breadcrumb .breadcrumb { background: transparent; padding: 0; margin: 0; font-size: .84rem; }
.gh2 .master-breadcrumb .breadcrumb a { color: var(--gh-muted); }
.gh2 .master-breadcrumb .breadcrumb-item.active { color: var(--gh-ink); font-weight: 600; }
.gh2 #main-body { padding-top: 20px; padding-bottom: 40px; background: transparent; }

/* ---------- Botones ---------- */
.gh2 .btn { border-radius: 10px; font-weight: 600; }
.gh2 .btn-primary, .gh2 .btn-success { background-color: var(--gh-green); border-color: var(--gh-green); color: #fff; }
.gh2 .btn-primary:hover, .gh2 .btn-primary:focus, .gh2 .btn-success:hover, .gh2 .btn-success:focus,
.gh2 .btn-primary:not(:disabled):not(.disabled):active, .gh2 .btn-success:not(:disabled):not(.disabled):active { background-color: var(--gh-green-d); border-color: var(--gh-green-d); color: #fff; }
.gh2 .btn-default { border: 1px solid var(--gh-line); color: var(--gh-ink); background: #fff; }
.gh2 .btn-default:hover { border-color: var(--gh-green); color: var(--gh-green); background: #fff; }

/* ---------- Tarjetas y tablas ---------- */
.gh2 .card { border: 1px solid var(--gh-line); border-radius: var(--gh-r); box-shadow: var(--gh-shadow); overflow: hidden; }
.gh2 .card-header { background: #fff; border-bottom: 1px solid var(--gh-line); padding: 14px 18px; }
.gh2 .card-title { font-weight: 700; font-size: 1rem; color: var(--gh-teal); }
.gh2 .card-title > i { color: var(--gh-green); }
.gh2 .card-footer { background: #fbfcfc; border-top: 1px solid var(--gh-line); }
.gh2 .card-footer:empty { display: none; }
.gh2 .list-group-item { border-color: var(--gh-line); }
.gh2 .list-group-item-action:hover { background: #f8faf9; }
.gh2 .list-group-item.active { background-color: var(--gh-mint-soft); border-color: var(--gh-line); color: var(--gh-teal); font-weight: 600; }
.gh2 .sidebar .card-header { padding: 12px 16px; }
.gh2 .sidebar .card-title { font-size: .92rem; }
.gh2 .table thead th, .gh2 table.dataTable thead th { border-bottom: 1px solid var(--gh-line); border-top: 0; color: var(--gh-muted); font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.gh2 .table td { border-color: var(--gh-line); vertical-align: middle; }
.gh2 .label, .gh2 .badge { border-radius: 999px; font-weight: 600; padding: .32em .7em; }
.gh2 .label-success, .gh2 .badge-success, .gh2 .status-active, .gh2 .status-paid { background-color: var(--gh-green); }
.gh2 .form-control { border-radius: 10px; border-color: #d9dee2; }
.gh2 .form-control:focus { border-color: var(--gh-green); box-shadow: 0 0 0 3px rgba(var(--gh-green-rgb),.12); }
.gh2 .alert { border-radius: 12px; }
.gh2 .header-lined h1, .gh2 .primary-content > h1 { font-weight: 700; }

/* ---------- Tablero (inicio) ---------- */
.gh2-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 6px 0 22px; }
.gh2 .gh2-hello { margin: 0; font-size: 1.75rem; font-weight: 700; }
.gh2-hello-sub { margin: 4px 0 0; color: var(--gh-muted); }
.gh2-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.gh2-due { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; padding: 16px 18px; border: 1px solid #f1dfba; border-radius: var(--gh-r); background: var(--gh-warn-soft); }
.gh2-due-ico { flex: 0 0 44px; height: 44px; border-radius: 12px; background: #fde9c4; color: var(--gh-warn); display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.gh2-due-txt { flex: 1; min-width: 0; }
.gh2-due-txt strong { display: block; color: var(--gh-ink); }
.gh2-due-txt span { color: var(--gh-muted); font-size: .9rem; }
@media (max-width: 575.98px) { .gh2-due { flex-wrap: wrap; } .gh2-due .btn { width: 100%; } }

.gh2-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
@media (max-width: 1199.98px) { .gh2-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gh2 .gh2-kpi {
    display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
    padding: 18px; border: 1px solid var(--gh-line); border-radius: var(--gh-r); background: #fff; box-shadow: var(--gh-shadow);
    color: var(--gh-ink); transition: border-color .15s, transform .15s, box-shadow .15s;
}
.gh2 .gh2-kpi:hover { border-color: var(--gh-green); text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(15,25,35,.07); color: var(--gh-ink); }
.gh2-kpi-ico { grid-row: 1 / span 2; width: 46px; height: 46px; border-radius: 12px; background: var(--gh-mint-soft); color: var(--gh-green); display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.gh2-kpi-num { font-size: 1.6rem; font-weight: 700; line-height: 1.1; color: var(--gh-teal); }
.gh2-kpi-lbl { color: var(--gh-muted); font-size: .86rem; font-weight: 500; }
.gh2-kpi-warn .gh2-kpi-ico { background: var(--gh-warn-soft); color: var(--gh-warn); }

/* Paneles de WHMCS en el inicio */
.gh2 .client-home-cards .card { margin-bottom: 18px; }
.gh2 .client-home-cards .card .btn.btn-xs[class*="bg-color-"] { background: var(--gh-mint-soft) !important; color: var(--gh-green-d) !important; border: 0; border-radius: 8px; padding: 3px 10px; font-size: .8rem; }
.gh2 .client-home-cards [menuitemname="Register a New Domain"] .card-body { overflow: hidden; }
.gh2 .div-service-item { flex-wrap: wrap; row-gap: 6px; }
.gh2 .div-service-item .div-service-name { flex: 1 1 200px; min-width: 200px; }

.gh2 .gh2-section { font-size: 1.05rem; font-weight: 700; margin: 10px 0 12px; }
.gh2-help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.gh2 .gh2-help-grid a { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--gh-line); border-radius: var(--gh-r); background: #fff; color: var(--gh-ink); transition: border-color .15s, background-color .15s; }
.gh2 .gh2-help-grid a:hover { border-color: var(--gh-green); background: var(--gh-mint-soft); text-decoration: none; }
.gh2-help-grid i { flex: 0 0 40px; height: 40px; border-radius: 10px; background: var(--gh-mint-soft); color: var(--gh-green); display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.gh2-help-grid strong, .gh2-help-grid small { display: block; }
.gh2-help-grid strong { font-size: .92rem; font-weight: 600; }
.gh2-help-grid small { color: var(--gh-muted); font-size: .8rem; }

/* ---------- Ingreso ---------- */
.gh2-auth { display: grid; grid-template-columns: 1fr 1fr; max-width: 1000px; margin: 24px auto 40px; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--gh-line); box-shadow: 0 20px 60px rgba(15,25,35,.08); }
.gh2-auth-brand { padding: 48px 44px; color: #c9d1d9; background: radial-gradient(120% 90% at 0% 0%, var(--gh-brand2) 0%, var(--gh-teal) 60%); }
.gh2-auth-brand .gh-textlogo { color: #fff; }
.gh2 .gh2-auth-brand h2 { margin: 56px 0 22px; color: #fff; font-size: 2rem; font-weight: 700; line-height: 1.15; }
.gh2-auth-brand ul { list-style: none; padding: 0; margin: 0; }
.gh2-auth-brand li { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.gh2-auth-brand li i { color: var(--gh-mint); }
.gh2-auth-form { display: flex; flex-direction: column; justify-content: center; }
.gh2 .gh2-auth-form .card { border: 0; box-shadow: none; margin: 0 !important; max-width: none; border-radius: 0; }
.gh2 .gh2-auth-form .card-footer { background: #fff; }
@media (max-width: 767.98px) {
    .gh2-auth { grid-template-columns: 1fr; margin-top: 8px; }
    .gh2-auth-brand { padding: 28px 24px; }
    .gh2 .gh2-auth-brand h2 { margin: 20px 0 14px; font-size: 1.4rem; }
}

/* ---------- Pie ---------- */
.gh2-foot { border-top: 1px solid var(--gh-line); padding: 18px 0; font-size: .84rem; color: var(--gh-muted); background: transparent; }
.gh2-foot-row { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; }
.gh2-foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.gh2 .gh2-foot-links a, .gh2 .gh2-foot-links .btn-link { color: var(--gh-muted); font-size: .84rem; font-weight: 500; }
.gh2 .gh2-foot-links a:hover { color: var(--gh-green); }

/* El fondo del menu lateral llega hasta abajo aunque la pagina sea larga */
@media (min-width: 992px) {
    body.gh2.gh2-in.primary-bg-color { background: linear-gradient(to right, var(--gh-teal) var(--gh-side), var(--gh-bg) var(--gh-side)); }
}

@media (max-width: 575.98px) {
    .gh2-kpis { gap: 10px; }
    .gh2 .gh2-kpi { padding: 14px; column-gap: 10px; }
    .gh2-kpi-ico { width: 36px; height: 36px; border-radius: 10px; font-size: 1rem; }
    .gh2-kpi-num { font-size: 1.3rem; }
    .gh2-kpi-lbl { font-size: .78rem; line-height: 1.25; }
    .gh2 .gh2-hello { font-size: 1.45rem; }
}

/* ---------- Propio de la marca (traido de hostingcenterco) ---------- */
.gh-textlogo { display: inline-block; line-height: 1; white-space: nowrap; color: var(--gh-ink); }
.navbar-brand:hover .gh-textlogo { color: var(--gh-ink); }
footer.footer .gh-textlogo { color: #fff; margin-bottom: 1rem; }
.gh-textlogo { font-family: 'Hanken Grotesk', 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 28px; letter-spacing: -.03em; }
.gh-textlogo i { font-style: normal; color: var(--gh-green); }
footer.footer .gh-textlogo i { color: var(--gh-mint); }
h1, h2, h3, .h1, .h2, .h3 { font-family: 'Hanken Grotesk', 'Plus Jakarta Sans', sans-serif; }
@media (max-width: 575px) {
    .header .navbar-light .container { flex-wrap: nowrap; }
    .header .navbar-brand { min-width: 0; margin-right: 0 !important; }
    .header .gh-textlogo { font-size: 20px; }
    .header .toolbar .nav-item.ml-3 { margin-left: .5rem !important; }
}

/* ---------- Logo de la marca en el marco v2 ---------- */
.gh2 .gh2-brand .logo-img { height: 30px; max-height: 30px; width: auto; }
.gh2-side .gh2-brand .logo-img { height: 32px; max-height: 32px; filter: brightness(0) invert(1); }
.gh2-auth-brand .logo-img { height: 40px; max-height: 40px; width: auto; filter: brightness(0) invert(1); }
.gh2-side .gh-textlogo, .gh2-auth-brand .gh-textlogo { color: #fff; }
.gh2-side .gh-textlogo span, .gh2-side .gh-textlogo i, .gh2-auth-brand .gh-textlogo span, .gh2-auth-brand .gh-textlogo i { color: var(--gh-mint); }
.gh2 .gh2-top .gh-textlogo { font-size: 24px; }
@media (max-width: 575.98px) { .gh2 .gh2-top .gh-textlogo { font-size: 20px; } .gh2 .gh2-top .gh2-brand .logo-img { height: 26px; } }
/* logo de texto largo: mas chico para que quepa en el menu lateral */
.gh2-side .gh-textlogo { font-size: 21px; }
