/* Banner canal B2B — barra superior compacta (no invasiva) */

.hb-b2b-notice {
	background: #c8ebe3;
	color: #1a3347;
	border-bottom: 1px solid rgba(26, 51, 71, 0.12);
	font-size: 13px;
	line-height: 1.45;
	position: relative;
	z-index: 99990;
}

.hb-b2b-notice.is-dismissed {
	display: none;
}

.hb-b2b-notice__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 8px 44px 8px 16px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 14px;
}

.hb-b2b-notice__badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	background: #1a3347;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	flex-shrink: 0;
}

.hb-b2b-notice__text {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
}

.hb-b2b-notice__text strong {
	font-weight: 700;
	font-size: 13px;
}

.hb-b2b-notice__text span {
	opacity: 0.92;
}

.hb-b2b-notice__switch {
	display: inline-block;
	padding: 5px 14px;
	border-radius: 4px;
	background: #1a3347;
	color: #fff !important;
	text-decoration: none !important;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	transition: background 0.15s ease;
}

.hb-b2b-notice__switch:hover,
.hb-b2b-notice__switch:focus {
	background: #0f2433;
	color: #fff !important;
}

.hb-b2b-notice__close {
	position: absolute;
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
	width: 28px;
	height: 28px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(26, 51, 71, 0.12);
	color: #1a3347;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.hb-b2b-notice__close:hover,
.hb-b2b-notice__close:focus {
	background: rgba(26, 51, 71, 0.22);
}

/* Cinta esquina — visible solo cuando el usuario cierra la barra */
.hb-b2b-corner-ribbon {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 99989;
	width: 120px;
	height: 120px;
	overflow: hidden;
	pointer-events: none;
}

body.hb-b2b-banner-dismissed .hb-b2b-corner-ribbon {
	display: block;
}

.hb-b2b-corner-ribbon span {
	position: absolute;
	top: 22px;
	left: -28px;
	width: 160px;
	padding: 6px 0;
	background: linear-gradient(135deg, #b83232 0%, #8f2424 100%);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-align: center;
	text-transform: uppercase;
	transform: rotate(-45deg);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

@media (max-width: 640px) {
	.hb-b2b-notice__inner {
		padding-right: 40px;
		justify-content: flex-start;
	}

	.hb-b2b-notice__text {
		flex-direction: column;
		align-items: flex-start;
		gap: 2px;
	}

	.hb-b2b-notice__switch {
		width: 100%;
		text-align: center;
	}
}
