/* Minimodal Home Banking — independiente de Bootstrap .modal */
#masthead .bottom-header,
#masthead .bottom-header .container,
#masthead .bottom-header .row,
#masthead .lnzdrs,
#responsivehead {
	overflow: visible;
}

.hb-minimodal-wrap {
	position: relative;
}

.hb-minimodal,
#masthead .bottom-header .hb-minimodal,
#masthead .lnzdrs .hb-minimodal,
#responsivehead .hb-minimodal {
	position: fixed !important;
	top: 0;
	right: 12px;
	left: auto;
	z-index: 100001 !important;
	width: 320px;
	max-width: calc(100vw - 24px);
	margin: 0;
	padding: 18px 18px 16px;
	background: #fff;
	border: 2px solid #243353;
	border-radius: 14px;
	outline: none;
	-webkit-box-shadow: 0 8px 30px 6px rgba(43, 90, 176, 0.7);
	-moz-box-shadow: 0 8px 30px 6px rgba(43, 90, 176, 0.7);
	box-shadow: 0 8px 30px 6px rgba(43, 90, 176, 0.7);
	text-align: left;
	text-transform: none;
	color: var(--colorazul, #243353);
	font-family: inherit;
	line-height: 1.35;
}

.hb-minimodal[hidden],
#masthead .bottom-header .hb-minimodal[hidden],
#responsivehead .hb-minimodal[hidden] {
	display: none !important;
}

.hb-minimodal__badge {
	display: inline-block;
	margin-bottom: 8px;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--colorverde, #007E3A);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.2;
}

.hb-minimodal__title {
	margin: 0 0 4px;
	font-size: 20px;
	font-weight: 700;
	color: var(--colorazul, #243353);
	line-height: 1.2;
}

.hb-minimodal__title-nuevo {
	color: var(--colorverde, #007E3A);
}

.hb-minimodal__subtitle {
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 400;
	color: var(--colorgris, #777777);
}

.hb-minimodal__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.hb-minimodal__icon {
	flex: 0 0 auto;
	line-height: 0;
}

.hb-minimodal__cta {
	flex: 1 1 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 16px;
	border-radius: 10px;
	background: var(--colorverde, #007E3A);
	color: #fff !important;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none !important;
	text-transform: none;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.hb-minimodal__cta:hover,
.hb-minimodal__cta:focus {
	background: #006531;
	color: #fff !important;
	text-decoration: none !important;
}

.hb-minimodal__legacy {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	padding-top: 12px;
	border-top: 1px solid #E8ECF0;
	font-size: 15px;
	color: var(--colorazul, #243353);
	line-height: 1.4;
}

.hb-minimodal__legacy a {
	display: block;
	margin-top: 4px;
}

.hb-minimodal__shield {
	flex: 0 0 auto;
	margin-top: 1px;
}

.hb-minimodal__legacy a {
	color: #2F6FED;
	font-weight: 600;
	text-decoration: none;
}

.hb-minimodal__legacy a:hover,
.hb-minimodal__legacy a:focus {
	text-decoration: underline;
}

/* Evitar que reglas del header pisen el CTA */
#masthead .lnzdrs .hb-minimodal a.hb-minimodal__cta {
	display: inline-flex;
	width: auto;
	padding: 10px 16px;
	text-transform: none;
}

#masthead .lnzdrs .hb-minimodal__legacy a {
	display: block;
	width: auto;
	padding: 0;
	text-transform: none;
}

/* Mobile: anclar al botón HOME BANKING del header responsive */
#responsivehead .hb-minimodal-wrap {
	position: relative;
	display: block;
}

#responsivehead .hb-minimodal-wrap > .btn-group-success,
#responsivehead .hb-minimodal-wrap > a.btn-group-success {
	display: block;
	width: 100%;
}

#responsivehead .hb-minimodal-wrap {
	display: block;
}

/* Banner Home Banking Mi BSE (home, debajo del slider) */
.hb-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: nowrap;
	margin: 24px 0 28px;
	padding: 20px 24px;
	background: #F4F6F8;
	border: 1px solid #D5DCE6;
	border-radius: 16px;
	-webkit-box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
	-moz-box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
	color: var(--colorazul, #243353);
	text-align: left;
}

.hb-banner__copy {
	flex: 0 1 420px;
	max-width: 46%;
	padding-right: 8px;
}

.hb-banner__title {
	margin: 8px 0 6px;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--colorazul, #243353);
}

.hb-banner__title span {
	color: var(--colorverde, #007E3A);
}

.hb-banner__subtitle {
	margin: 0 0 18px;
	font-size: 15px;
	color: var(--colorgris, #777777);
}

.hb-banner__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}

.hb-banner__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 22px;
	border-radius: 10px;
	background: var(--colorverde, #007E3A);
	color: #fff !important;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none !important;
	text-transform: none;
}

.hb-banner__cta:hover,
.hb-banner__cta:focus {
	background: #006531;
	color: #fff !important;
	text-decoration: none !important;
}

.hb-banner__divider {
	display: inline-block;
	width: 1px;
	height: 28px;
	margin: 0 16px;
	background: #C5CDD6;
}

.hb-banner__legacy {
	color: #2F6FED !important;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none !important;
}

.hb-banner__legacy:hover,
.hb-banner__legacy:focus {
	text-decoration: underline !important;
}

.hb-banner__visual {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	min-width: 0;
	padding: 0 0 0 8px;
}

.hb-banner__devices {
	position: relative;
	flex: 1 1 auto;
	width: auto;
	min-width: 160px;
	height: 158px;
}

.hb-banner__laptop {
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 82%;
	max-width: 280px;
	height: auto;
	margin-left: -38%;
}

.hb-banner__phone {
	position: absolute;
	left: 50%;
	bottom: 2px;
	width: 26%;
	max-width: 78px;
	height: auto;
	margin-left: 8%;
}

.hb-banner__note {
	display: flex;
	align-items: flex-start;
	flex: 0 0 170px;
	width: 170px;
	max-width: 170px;
	margin: 0;
	padding-left: 8px;
	font-size: 13px;
	line-height: 1.35;
	color: var(--colorverde, #007E3A);
}

.hb-banner__note svg {
	flex: 0 0 auto;
	margin-right: 8px;
	margin-top: 2px;
}

.hb-banner__note strong {
	font-weight: 700;
}

@media (max-width: 991px) {
	.hb-banner {
		flex-wrap: wrap;
		padding: 20px;
	}

	.hb-banner__copy {
		flex: 1 1 100%;
		max-width: none;
		padding-right: 0;
	}

	.hb-banner__title {
		font-size: 22px;
	}

	.hb-banner__visual {
		flex: 1 1 100%;
		margin-top: 8px;
		padding-left: 0;
	}

	.hb-banner__note {
		flex-basis: 170px;
		margin-left: 0;
	}
}

@media (max-width: 575px) {
	.hb-banner__divider {
		display: none;
	}

	.hb-banner__legacy {
		margin-top: 12px;
		width: 100%;
	}

	.hb-banner__note {
		max-width: none;
	}

	.hb-banner__devices {
		display: none;
	}
}

.hb-banner + .hb-banner {
	margin-top: 0;
}

.hb-banner--app {
	position: relative;
	overflow: hidden;
	margin-top: 16px;
}

.hb-banner--app:after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 58%;
	pointer-events: none;
	background-image: url(../images/hb-login-bg.jpg);
	background-size: cover;
	background-position: center right;
	background-repeat: no-repeat;
	opacity: 0.65;
	-webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.55) 28%, #000 55%);
	mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.55) 28%, #000 55%);
}

.hb-banner--app > * {
	position: relative;
	z-index: 1;
}

.hb-banner--app .hb-banner__copy {
	flex: 1 1 auto;
	max-width: none;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	padding-right: 20px;
}

.hb-banner--app .hb-banner__title {
	margin: 0 20px 0 0;
	white-space: nowrap;
}

.hb-banner--app .hb-banner__actions {
	margin-top: 0;
}

.hb-banner--app .hb-banner__brand {
	flex: 0 1 280px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	min-width: 0;
}

.hb-banner--app .hb-banner__logo {
	display: block;
	max-width: 100%;
	width: auto;
	height: 96px;
	object-fit: contain;
	border-radius: 10px;
}

@media (max-width: 991px) {
	.hb-banner--app {
		flex-wrap: wrap;
	}

	.hb-banner--app .hb-banner__copy {
		flex: 1 1 100%;
		padding-right: 0;
	}

	.hb-banner--app .hb-banner__title {
		margin: 0 0 12px;
		white-space: normal;
	}

	.hb-banner--app .hb-banner__brand {
		flex: 1 1 100%;
		justify-content: flex-start;
		margin-top: 12px;
	}

	.hb-banner--app .hb-banner__logo {
		height: 80px;
	}
}

@media (max-width: 575px) {
	.hb-banner--app .hb-banner__logo {
		height: 64px;
		width: auto;
		max-width: 100%;
		object-fit: contain;
	}
}
