
:root { --mc-principal: #1d4f9c; --mc-oscuro: #163a7a; --mc-oscuro2: #0e264f; --mc-acento: #7dc142; --mc-suave: #e8edf5; --mc-claro: #c5e3aa; }
/* ---------- Login ---------- */
.login-story { background: radial-gradient(120% 90% at 0% 0%, var(--mc-oscuro) 0%, var(--mc-oscuro2) 100%) !important; color: #f3f6fb !important; }
.login-story::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -1px; height: 86px; background: var(--mc-acento); clip-path: ellipse(70% 60% at 40% 100%); opacity: .95; pointer-events: none; }
.login-stamp { z-index: 2; }
.login-stamp, .login-stamp strong, .login-stamp small { color: #fff !important; text-shadow: 0 1px 2px #0003; }
.login-eyebrow, .login-stamp { color: var(--mc-claro) !important; }
.login-story h1 em { color: var(--mc-acento) !important; }
.login-brand { color: #fff !important; }
.login-orbit { border-color: #ffffff1c !important; }
.login-page .button.primary, .login-submit { background: var(--mc-principal) !important; box-shadow: 0 6px 16px #1d4f9c33 !important; }
.login-lock { background: var(--mc-suave) !important; border-color: #c7d3e6 !important; color: var(--mc-principal) !important; }
.login-page input:focus { outline: none !important; border-color: var(--mc-principal) !important; box-shadow: 0 0 0 3px #1d4f9c26 !important; }
html.tz-marca-titulo .login-story h1:not(.tz-marca-h1), html.tz-marca-titulo .login-story > p:not(.tz-marca-p) { display: none !important; }
.tz-marca-login { position: relative; z-index: 2; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 0 0 34px; }
.tz-marca-cli { background: #fff; border-radius: 18px; padding: 14px 18px; box-shadow: 0 14px 40px #0000003d; display: inline-flex; }
.tz-marca-cli img { display: block; height: 86px; width: auto; max-width: 260px; object-fit: contain; }
.tz-marca-x { color: #ffffffa8; font: 300 26px/1 Inter, "Segoe UI", Arial, sans-serif; }
.tz-marca-prop { display: inline-flex; align-items: center; gap: 10px; background: #ffffff14; border: 1px solid #ffffff26; border-radius: 14px; padding: 10px 14px; color: #fff; }
.tz-marca-prop img { height: 54px; width: auto; max-width: 160px; object-fit: contain; }
.tz-marca-prop span { font: 600 12px/1.25 Inter, "Segoe UI", Arial, sans-serif; color: #ffffffd9; }
.tz-marca-prop span b { display: block; font-size: 14px; color: #fff; }
.tz-marca-h1 { position: relative; z-index: 1; white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
.tz-marca-p { position: relative; z-index: 1; }
.tz-marca-tarjeta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 22px; }
.tz-marca-tarjeta img.cli { height: 52px; width: auto; max-width: 180px; object-fit: contain; }
.tz-marca-tarjeta img.prop { height: 42px; width: auto; max-width: 110px; object-fit: contain; opacity: .9; }
@media (max-width: 760px) {
  .tz-marca-login { margin-bottom: 22px; }
  .tz-marca-cli img { height: 60px; }
  .tz-marca-prop img { height: 38px; }
  .login-story::after { display: none; }
  .tz-marca-tarjeta { display: none; }
  .tz-marca-h1 { font-size: 26px !important; }
}
/* ---------- Dentro del portal: logo del cliente arriba del menú ---------- */
.tz-marca-menu { margin: 0 0 18px; background: #fff; border-radius: 12px; padding: 8px 10px; display: flex; align-items: center; justify-content: center; }
.tz-marca-menu img { display: block; max-height: 46px; max-width: 100%; object-fit: contain; }
html.tz-mini .tz-marca-menu { padding: 4px; }
html.tz-mini .tz-marca-menu img { max-height: 26px; }

/* ---------- Toda la plataforma con los colores de la marca ---------- */
:root { --green: var(--mc-principal) !important; --green-dark: var(--mc-oscuro) !important; --green-soft: var(--mc-suave) !important; }
.nav-item.active { background: #37568d !important; color: var(--mc-claro) !important; }
.brand-mark { color: var(--mc-acento) !important; }
.tz-plegar { background: #2d4e87 !important; border-color: #506b9b !important; color: var(--mc-claro) !important; }
.tz-btn:not(.sec):not(.ter) { background: var(--mc-principal); }
.tz-sector-cab { background: var(--mc-oscuro) !important; }
