html {
	box-sizing: border-box;
}

*, *:before, *:after {
	box-sizing: inherit;
}

body.gi-shell,
body.gi-menu-body,
body.gi-login-body,
body.gi-doc-body {
	margin: 0;
	font-family: Arial, Helvetica, sans-serif;
	color: #243142;
	background: #f4f6f8;
}

.gi-header {
	min-height: 112px;
	padding: 12px 20px;
	color: #fff;
	background: #f7941d;
	border-bottom: 4px solid #d97706;
}

.gi-header__inner {
	display: flex;
	align-items: center;
	gap: 22px;
	width: 100%;
}

.gi-brand {
	min-width: 210px;
}

.gi-brand__name {
	font-size: 30px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0;
}

.gi-brand__meta {
	margin-top: 8px;
	font-size: 12px;
	line-height: 1.45;
}

.gi-company-logo {
	width: 140px;
	min-width: 120px;
	text-align: center;
}

.gi-company-logo img {
	max-width: 132px;
	max-height: 64px;
	object-fit: contain;
	border-radius: 6px;
	background: transparent;
}

.gi-session {
	display: grid;
	grid-template-columns: auto minmax(220px, 1fr);
	gap: 4px 10px;
	min-width: 300px;
	max-width: 640px;
	font-size: 14px;
	line-height: 1.25;
}

.gi-session__label {
	color: rgba(255, 255, 255, 0.82);
}

.gi-session__value {
	font-weight: 700;
}

.gi-session__location {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.gi-session__location .botonLink span {
	color: #1f2937;
	background: #fff;
	border-radius: 4px;
	padding: 2px 8px;
	text-decoration: none;
}

.gi-session__location .Links {
	color: #fff;
	font-weight: 700;
	min-width: 120px;
	max-width: 360px;
}

.gi-standards {
	margin-left: auto;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	min-width: 260px;
	text-align: right;
	font-size: 14px;
	font-weight: 700;
}

.gi-standards img {
	max-height: 22px;
	background: #fff;
}

.gi-logout {
	display: inline-block;
	margin-left: 12px;
	padding: 7px 12px;
	color: #fff !important;
	border: 1px solid rgba(255,255,255,0.55);
	border-radius: 4px;
	text-decoration: none !important;
	white-space: nowrap;
}

.gi-menu-wrap {
	padding: 24px;
}

body.gi-menu-body {
	min-height: 100vh;
	background:
		linear-gradient(rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.62)),
		url(images/login-red-malla-clara.png) center center / cover no-repeat fixed;
}

.gi-menu-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(320px, 1fr));
	gap: 16px;
	max-width: 1480px;
}

.gi-menu-support {
	max-width: 1480px;
	margin: 0 24px 24px;
	padding-top: 12px;
	color: #64748b;
	font-size: 12px;
	line-height: 1.4;
	border-top: 1px solid #d8dee7;
}

.gi-menu-support span {
	font-weight: 600;
}

.gi-menu-support a {
	color: #475569;
	text-decoration: none;
}

.gi-menu-support a:hover,
.gi-menu-support a:focus {
	color: #1d4ed8;
	text-decoration: underline;
}

.gi-module-card {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	min-height: 190px;
	background: #fff;
	border: 1px solid #d8dee7;
	border-left: 5px solid var(--gi-card-color, #f7941d);
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
	overflow: hidden;
}

.gi-module-card__visual {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
	background: #fff7ed;
}

.gi-module-card__visual img {
	max-width: 112px;
	max-height: 112px;
	object-fit: contain;
}

.gi-module-card__content {
	padding: 16px 18px;
}

.gi-module-card__title {
	margin: 0 0 14px 0;
	font-size: 17px;
	font-weight: 800;
	color: #111827;
	text-transform: uppercase;
}

.gi-module-card__links {
	display: grid;
	grid-template-columns: repeat(2, minmax(150px, 1fr));
	grid-template-rows: repeat(4, auto);
	grid-auto-flow: column;
	gap: 8px 18px;
}

.gi-module-card .botonLinkAzul {
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
}

.gi-module-card .botonLinkAzul > span {
	display: flex;
	align-items: center;
	gap: 7px;
	width: 100%;
	padding: 7px 9px;
	color: #1d4ed8;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25;
	text-align: left;
	text-decoration: none;
	overflow-wrap: break-word;
	word-break: normal;
	border-radius: 4px;
}

.gi-module-card .botonLinkAzul > span:hover {
	color: #0f172a;
	background: #eff6ff;
}

.gi-menu-treated__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	color: #14964f;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
	background: #ffffff;
	border: 1px solid #14964f;
	border-radius: 50%;
}

.gi-module-card .botonLinkAzul > span:hover .gi-menu-treated__mark {
	color: #0f6b3d;
	background: #ffffff;
	border-color: #0f6b3d;
}

.gi-menu-treated__text {
	min-width: 0;
	font-family: Verdana, Helvetica, Helv !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.25 !important;
	color: inherit !important;
	text-decoration: none !important;
}

.gi-module-card .botonLinkAzul .gi-menu-treated__mark,
.gi-module-card .botonLinkAzul .gi-menu-treated__text,
.gi-module-card .botonLinkAzul > span:hover .gi-menu-treated__text {
	text-decoration: none;
}

body.gi-login-body {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px;
	background: url(images/login-red-malla-clara.png) center center / cover no-repeat;
}

.gi-login-panel {
	display: grid;
	grid-template-columns: minmax(260px, 420px) minmax(280px, 380px);
	width: min(860px, 100%);
	min-height: 430px;
	background: rgba(255,255,255,0.96);
	border-radius: 8px;
	box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
	overflow: hidden;
}

.gi-login-info {
	padding: 42px;
	color: #fff;
	background:
		linear-gradient(135deg, rgba(255,255,255,0.16) 1px, transparent 1px),
		linear-gradient(135deg, #f7941d, #e67f10);
	background-size: 28px 28px, auto;
}

.gi-login-brand {
	font-size: 34px;
	font-weight: 800;
	line-height: 1;
}

.gi-login-info-mode {
	display: none;
}

.gi-login-info-mode--active {
	display: block;
}

.gi-login-copy {
	margin-top: 18px;
	font-size: 15px;
	line-height: 1.55;
}

.gi-login-info-note {
	margin-top: 28px;
	padding-top: 18px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.45;
	border-top: 1px solid rgba(255,255,255,0.35);
}

.gi-login-form {
	padding: 38px 42px;
	color: #1f2937;
}

.gi-login-form h1 {
	margin: 0 0 18px 0;
	font-size: 22px;
	color: #111827;
}

.gi-login-tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	margin-bottom: 22px;
	padding: 4px;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
}

.gi-login-tab {
	display: block;
	padding: 8px 6px;
	color: #475569;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	border-radius: 4px;
}

.gi-login-tabs .gi-login-tab--active {
	color: #ffffff;
	background: #f7941d;
	box-shadow: 0 2px 6px rgba(217,119,6,0.24);
}

.gi-login-tab:hover {
	text-decoration: none;
}

.gi-login-form input[type=text],
.gi-login-form input[type=password],
.gi-login-form select {
	width: 100%;
	height: 40px;
	margin-bottom: 12px;
	padding: 8px 10px;
	color: #111827;
	background: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	font-size: 15px;
}

.gi-login-form input[type=text]:focus,
.gi-login-form input[type=password]:focus,
.gi-login-form select:focus {
	outline: 2px solid rgba(247,148,29,0.28);
	border-color: #f7941d;
}

.gi-login-form input[type=button] {
	width: 100%;
	height: 42px;
	margin-top: 4px;
	color: #fff;
	background: #f7941d;
	border: 0;
	border-radius: 4px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.gi-login-form input[type=button]:hover {
	background: #d97706;
}

.gi-login-form input::-webkit-input-placeholder {
	color: #64748b;
}

.gi-login-form input::-moz-placeholder {
	color: #64748b;
	opacity: 1;
}

.gi-login-form input:-ms-input-placeholder {
	color: #64748b;
}

.gi-login-mode {
	display: none;
}

.gi-login-mode--active {
	display: block;
}

.gi-login-message {
	min-height: 20px;
	margin-top: 12px;
	color: #b91c1c;
	font-weight: 700;
}

.gi-doc-body {
	min-height: 100vh;
}

.gi-doc-shell {
	padding: 18px;
}

.gi-doc-panel {
	display: flex;
	flex-direction: column;
	min-height: calc(100vh - 36px);
	background: #fff;
	border: 1px solid #d8dee7;
	border-radius: 8px;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
	overflow: hidden;
}

.gi-doc-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 13px 18px;
	color: #fff;
	background: #ef4444;
}

.gi-doc-header--blue {
	background: #0ea5e9;
}

.gi-doc-title {
	font-size: 18px;
	font-weight: 800;
	letter-spacing: 0;
}

.gi-doc-meta {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	min-width: 0;
	font-size: 12px;
	font-weight: 700;
	text-align: right;
}

.gi-doc-meta span {
	max-width: 420px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.gi-doc-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 10px 12px;
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
}

.gi-doc-tab {
	max-width: 280px;
	padding: 8px 12px;
	color: #1d4ed8;
	background: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	cursor: pointer;
	text-align: left;
}

.gi-doc-tab strong,
.gi-doc-tab span {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.gi-doc-tab span {
	margin-top: 2px;
	font-size: 12px;
	color: #475569;
}

.gi-doc-tab--active {
	color: #111827;
	background: #fff7ed;
	border-color: #f7941d;
}

.gi-doc-viewer {
	flex: 1;
	min-height: 520px;
	background: #eef2f7;
}

.gi-doc-frame {
	display: block;
	width: 100%;
	height: calc(100vh - 120px);
	min-height: 520px;
	border: 0;
	background: #fff;
}

.gi-doc-empty,
.gi-doc-attachment {
	margin: 28px;
	padding: 28px;
	background: #fff;
	border: 1px solid #d8dee7;
	border-radius: 8px;
}

.gi-doc-attachment__title {
	font-size: 18px;
	font-weight: 800;
	color: #111827;
}

.gi-doc-attachment__text {
	margin-top: 8px;
	color: #475569;
}

.gi-doc-attachment__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 18px;
}

.gi-doc-attachment__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	box-sizing: border-box;
	margin: 0;
	padding: 9px 14px;
	color: #0c2a45;
	background: #ffffff;
	border: 1px solid #b8c9dc;
	border-radius: 6px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.1;
	text-decoration: none;
	cursor: pointer;
	appearance: none;
}


a.gi-doc-attachment__link,
button.gi-doc-attachment__link {
	font-family: Arial, Helvetica, sans-serif !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 1.15 !important;
}
.gi-doc-attachment__actions .gi-doc-attachment__close {
	color: #04733d;
	background: #f4fff8;
	border-color: #18a058;
}

.gi-doc-attachment__link:hover {
	color: #0c2a45;
	background: #fffaf2;
	border-color: #ff9700;
}

.gi-doc-attachment__actions .gi-doc-attachment__close:hover {
	color: #04733d;
	background: #f4fff8;
	border-color: #ff9700;
}

@media (max-width: 1100px) {
	.gi-header__inner {
		flex-wrap: nowrap;
		gap: 12px;
	}

	.gi-brand {
		min-width: 190px;
	}

	.gi-brand__name {
		font-size: 28px;
	}

	.gi-company-logo {
		width: 120px;
		min-width: 110px;
	}

	.gi-session {
		min-width: 260px;
		font-size: 13px;
	}

	.gi-standards {
		min-width: 210px;
		font-size: 12px;
		gap: 8px;
		margin-left: 0;
		text-align: right;
	}

	.gi-logout {
		padding: 6px 9px;
	}

	.gi-menu-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 720px) {
	.gi-header {
		padding: 14px;
	}

	.gi-brand,
	.gi-company-logo,
	.gi-session,
	.gi-standards {
		width: 100%;
		min-width: 0;
	}

	.gi-session {
		grid-template-columns: 90px minmax(0, 1fr);
	}

	.gi-menu-wrap {
		padding: 14px;
	}

	.gi-menu-support {
		margin: 0 14px 14px;
	}

	.gi-module-card {
		grid-template-columns: 1fr;
	}

	.gi-module-card__visual {
		min-height: 100px;
	}

	.gi-module-card__links {
		grid-template-columns: 1fr;
		grid-template-rows: none;
		grid-auto-flow: row;
	}

	.gi-login-panel {
		grid-template-columns: 1fr;
	}

	.gi-login-info,
	.gi-login-form {
		padding: 28px;
	}

	.gi-doc-shell {
		padding: 10px;
	}

	.gi-doc-panel {
		min-height: calc(100vh - 20px);
	}

	.gi-doc-header {
		align-items: flex-start;
		flex-direction: column;
	}

	.gi-doc-meta {
		justify-content: flex-start;
		text-align: left;
	}

	.gi-doc-frame {
		height: calc(100vh - 170px);
	}
}

/* Mapa de Procesos como documento unico: paleta Procesos. */
.gi-doc-body--procesos {
	background: #f4f7fb;
}

.gi-doc-body--procesos .gi-doc-shell {
	padding: 10px;
}

.gi-doc-body--procesos .gi-doc-panel {
	min-height: calc(100vh - 20px);
	border-color: #d5dee9;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.gi-doc-body--procesos .gi-doc-header {
	position: relative;
	min-height: 42px;
	padding: 0 18px 0 0;
	background: #326BF5;
	overflow: hidden;
}

.gi-doc-body--procesos .gi-doc-header:before {
	content: "";
	align-self: stretch;
	width: 26px;
	margin-right: 14px;
	background: #2957C7;
	flex: 0 0 auto;
}

.gi-doc-body--procesos .gi-doc-title {
	font-size: 16px;
	font-weight: 800;
}

.gi-doc-body--procesos .gi-doc-meta {
	margin-left: auto;
}

.gi-doc-body--procesos .gi-doc-tabs {
	background: #f8fbfe;
	border-bottom-color: #d5dee9;
}

.gi-doc-body--procesos .gi-doc-tab {
	color: #1f2933;
	border-color: #b8c9dc;
	border-radius: 5px;
	font-weight: 700;
}

.gi-doc-body--procesos .gi-doc-tab:hover {
	background: #fff6ea;
	border-color: #ff9700;
}

.gi-doc-body--procesos .gi-doc-tab--active {
	color: #ffffff;
	background: #326BF5;
	border-color: #326BF5;
}

.gi-doc-body--procesos .gi-doc-tab--active span {
	color: #ffffff;
}

.gi-doc-body--procesos .gi-doc-viewer {
	background: #ffffff;
}

.gi-doc-body--procesos .gi-doc-frame {
	height: calc(100vh - 108px);
	min-height: 560px;
}

.gi-doc-body--procesos .gi-doc-empty,
.gi-doc-body--procesos .gi-doc-attachment {
	border-color: #d5dee9;
	box-shadow: none;
}

.gi-doc-body--procesos .gi-doc-attachment__link:hover {
	background: #fff6ea;
	border-color: #ff9700;
}

/* Retorno: conserva el fondo verde suave y destaca solo el borde. */
.gi-doc-body--procesos .gi-doc-attachment__actions .gi-doc-attachment__close:hover {
	color: #04733d;
	background: #f4fff8;
	border-color: #ff9700;
}

@media (max-width: 700px) {
	.gi-doc-body--procesos .gi-doc-header {
		align-items: stretch;
		flex-direction: row;
		flex-wrap: wrap;
		padding-right: 12px;
	}

	.gi-doc-body--procesos .gi-doc-header:before {
		width: 20px;
		margin-right: 10px;
	}

	.gi-doc-body--procesos .gi-doc-title {
		padding-top: 11px;
	}

	.gi-doc-body--procesos .gi-doc-meta {
		width: calc(100% - 30px);
		margin: 0 0 10px 30px;
		justify-content: flex-start;
		text-align: left;
	}
}
/* Documentos unicos de Estrategia: paleta roja. */
.gi-doc-body--estrategia {
	background: #f4f7fb;
}

.gi-doc-body--estrategia .gi-doc-shell {
	padding: 10px;
}

.gi-doc-body--estrategia .gi-doc-panel {
	min-height: calc(100vh - 20px);
	border-color: #d5dee9;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.gi-doc-body--estrategia .gi-doc-header {
	position: relative;
	min-height: 42px;
	padding: 0 18px 0 0;
	background: #EF4444;
	overflow: hidden;
}

.gi-doc-body--estrategia .gi-doc-header:before {
	content: "";
	align-self: stretch;
	width: 26px;
	margin-right: 14px;
	background: #C93636;
	flex: 0 0 auto;
}

.gi-doc-body--estrategia .gi-doc-title {
	font-size: 16px;
	font-weight: 800;
}

.gi-doc-body--estrategia .gi-doc-meta {
	margin-left: auto;
}

.gi-doc-body--estrategia .gi-doc-tabs {
	background: #f8fbfe;
	border-bottom-color: #d5dee9;
}

.gi-doc-body--estrategia .gi-doc-tab {
	color: #1f2933;
	border-color: #b8c9dc;
	border-radius: 5px;
	font-weight: 700;
}

.gi-doc-body--estrategia .gi-doc-tab:hover {
	color: #1f2933;
	background: #fff6ea;
	border-color: #ff9700;
}

.gi-doc-body--estrategia .gi-doc-tab:hover span {
	color: #475569;
}

.gi-doc-body--estrategia .gi-doc-tab--active {
	color: #ffffff;
	background: #EF4444;
	border-color: #EF4444;
}

.gi-doc-body--estrategia .gi-doc-tab--active span {
	color: #ffffff;
}

.gi-doc-body--estrategia .gi-doc-viewer {
	background: #ffffff;
}

.gi-doc-body--estrategia .gi-doc-frame {
	height: calc(100vh - 108px);
	min-height: 560px;
}

.gi-doc-body--estrategia .gi-doc-empty,
.gi-doc-body--estrategia .gi-doc-attachment {
	border-color: #d5dee9;
	box-shadow: none;
}

.gi-doc-body--estrategia .gi-doc-attachment__link:hover {
	background: #fff6ea;
	border-color: #ff9700;
}

/* Retorno: conserva el fondo verde suave y destaca solo el borde. */
.gi-doc-body--estrategia .gi-doc-attachment__actions .gi-doc-attachment__close:hover {
	color: #04733d;
	background: #f4fff8;
	border-color: #ff9700;
}

@media (max-width: 700px) {
	.gi-doc-body--estrategia .gi-doc-header {
		align-items: stretch;
		flex-direction: row;
		flex-wrap: wrap;
		padding-right: 12px;
	}

	.gi-doc-body--estrategia .gi-doc-header:before {
		width: 20px;
		margin-right: 10px;
	}

	.gi-doc-body--estrategia .gi-doc-title {
		padding-top: 11px;
	}

	.gi-doc-body--estrategia .gi-doc-meta {
		width: calc(100% - 30px);
		margin: 0 0 10px 30px;
		justify-content: flex-start;
		text-align: left;
	}
}

/* Avance de modernizacion: se conserva el marcado en HTML para una segunda pasada, pero no se exhibe en el menu. */
.gi-menu-treated__mark {
  display: none !important;
}
