.kbx-carretera {
	--kbx-red: #e21613;
	--kbx-red-hover: #c41210;
	--kbx-ink: #171717;
	--kbx-muted: #5c5c5c;
	width: 100%;
	max-width: 100%;
	margin: 0;
	background: #fff;
	border: 0;
	border-radius: 0;
	color: var(--kbx-ink);
	font-family: Raleway, Arial, sans-serif;
	line-height: 1.4;
	box-sizing: border-box;
}

.kbx-carretera *,
.kbx-carretera *::before,
.kbx-carretera *::after {
	box-sizing: border-box;
}

.kbx-carretera__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 22px 28px 16px;
}

.kbx-carretera__intro {
	min-width: 0;
}

.kbx-carretera__title {
	margin: 0;
	color: var(--kbx-ink);
	font-family: inherit;
	font-size: clamp(26px, 3vw, 40px);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.05;
	text-transform: uppercase;
}

.kbx-carretera__title::after {
	content: "";
	display: block;
	width: 72px;
	height: 3px;
	margin-top: 10px;
	background: var(--kbx-red);
}

.kbx-carretera__subtitle {
	max-width: 520px;
	margin: 12px 0 0;
	color: var(--kbx-muted);
	font-size: 15px;
	font-weight: 500;
}

.kbx-carretera__subtitle em,
.kbx-carretera__hint em {
	color: var(--kbx-red);
	font-style: italic;
	font-weight: 700;
}

.kbx-carretera__actions {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	gap: 18px;
}

.kbx-carretera button.kbx-carretera__btn {
	font-family: inherit;
	cursor: pointer;
}

.kbx-carretera button.kbx-carretera__btn--full {
	border: 0;
	border-radius: 999px;
	background: var(--kbx-red);
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 1;
	padding: 15px 22px;
	text-transform: uppercase;
}

.kbx-carretera button.kbx-carretera__btn--full:hover,
.kbx-carretera button.kbx-carretera__btn--full:focus-visible {
	background: var(--kbx-red-hover);
}

.kbx-carretera button.kbx-carretera__btn--tour {
	display: inline-flex;
	align-items: center;
	gap: 0;
	border: 0;
	background: transparent;
	color: var(--kbx-ink);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 1.1;
	padding: 0;
	text-transform: uppercase;
}

.kbx-carretera button.kbx-carretera__btn--tour:disabled {
	cursor: default;
	opacity: 0.45;
}

.kbx-carretera__play {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--kbx-red);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
	color: #fff;
	flex: 0 0 auto;
}

.kbx-carretera button.kbx-carretera__btn--tour [data-kbx-tour-label] {
	position: relative;
	z-index: 0;
	margin-left: -16px;
	padding: 10px 18px 10px 28px;
	border-radius: 999px;
	background: #e8e8e8;
	color: #171717;
}

.kbx-carretera__play svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

.kbx-carretera__icon-pause {
	display: none;
}

.kbx-carretera button.kbx-carretera__btn--tour.is-playing .kbx-carretera__icon-play {
	display: none;
}

.kbx-carretera button.kbx-carretera__btn--tour.is-playing .kbx-carretera__icon-pause {
	display: block;
}

.kbx-carretera__stage {
	position: relative;
}

.kbx-carretera__viewport {
	position: relative;
}

.kbx-carretera__scene {
	position: relative;
	width: 100%;
	aspect-ratio: var(--kbx-w) / var(--kbx-h);
	background: #d7e2e4;
	container-type: inline-size;
}

.kbx-carretera__bg {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: fill;
}

.kbx-carretera__sequence {
	position: absolute;
	inset: 0;
	z-index: 8;
}

.kbx-carretera__sequence[hidden] {
	display: none;
}

.kbx-carretera__sequence-frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: fill;
}

.kbx-carretera__sequence-frame[data-kbx-sequence-b] {
	z-index: 1;
	opacity: 0;
	transition: opacity var(--kbx-seq-fade, 0.7s) ease;
}

.kbx-carretera__sequence-frame[data-kbx-sequence-b].is-on {
	opacity: 1;
}

.kbx-carretera__sequence-frame.is-instant {
	transition: none;
}

.kbx-carretera.is-sequence .kbx-carretera__pin,
.kbx-carretera.is-sequence .kbx-carretera__badge,
.kbx-carretera.is-sequence .kbx-carretera__missing {
	visibility: hidden;
	pointer-events: none;
}

.kbx-carretera button.kbx-carretera__btn--exit {
	display: none;
	border: 0;
	border-radius: 999px;
	background: #e8e8e8;
	color: var(--kbx-ink);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 1;
	padding: 15px 18px;
	text-transform: uppercase;
}

.kbx-carretera.is-sequence button.kbx-carretera__btn--exit {
	display: inline-block;
}

.kbx-carretera button.kbx-carretera__btn--exit:hover,
.kbx-carretera button.kbx-carretera__btn--exit:focus-visible {
	background: #d5d5d5;
}

.kbx-carretera__missing {
	position: absolute;
	right: 16px;
	bottom: 16px;
	left: 16px;
	z-index: 4;
	margin: 0;
	padding: 12px 14px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.94);
	color: var(--kbx-ink);
	text-align: center;
}

.kbx-carretera__badge {
	position: absolute;
	z-index: 1;
	min-width: 8.8em;
	padding: 12px 16px 11px;
	border-radius: 10px;
	background: var(--kbx-red);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
	color: #fff;
	font-family: Oswald, Impact, sans-serif;
	text-align: center;
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.kbx-carretera__badge-num {
	display: block;
	font-family: Oswald, Impact, sans-serif;
	font-size: clamp(26px, 3.1cqi, 38px);
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 0.9;
}

.kbx-carretera__badge-label {
	display: block;
	margin-top: 8px;
	font-family: Oswald, Impact, sans-serif;
	font-size: clamp(11px, 1.15cqi, 14px);
	font-weight: 500;
	letter-spacing: 0.06em;
	line-height: 1.15;
	text-transform: uppercase;
}

.kbx-carretera button.kbx-carretera__pin {
	--kbx-plus: 2.45em;
	position: absolute;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 0;
	max-width: 36cqi;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: #1a1a1a;
	font-family: inherit;
	font-size: clamp(11px, 1.15cqi, 15px);
	font-weight: 700;
	line-height: 1.15;
	text-align: left;
	cursor: pointer;
	transform: translate(calc(var(--kbx-plus) / -2), -50%);
}

.kbx-carretera button.kbx-carretera__pin.is-active {
	z-index: 3;
}

.kbx-carretera__plus {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: var(--kbx-plus);
	height: var(--kbx-plus);
	padding: 0.18em;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
	flex: 0 0 auto;
}

.kbx-carretera__plus svg {
	display: block;
	width: 100%;
	height: 100%;
}

.kbx-carretera__plus circle {
	fill: var(--kbx-red);
}

.kbx-carretera__plus path {
	fill: #fff;
}

.kbx-carretera__pill {
	position: relative;
	z-index: 0;
	min-width: 0;
	margin-left: calc(var(--kbx-plus) * -0.46);
	padding: 0.38em 0.95em 0.38em calc(var(--kbx-plus) * 0.58);
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}

.kbx-carretera button.kbx-carretera__pin.is-active .kbx-carretera__plus {
	animation: kbx-carretera-pulse 1.4s ease-out infinite;
}

.kbx-carretera__card {
	position: absolute;
	z-index: 6;
	width: min(320px, calc(100% - 24px));
	padding: 22px 40px 18px 20px;
	border: 0;
	border-top: 3px solid var(--kbx-red);
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
	color: var(--kbx-ink);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.28s ease, transform 0.28s ease;
}

.kbx-carretera__card.is-open {
	opacity: 1;
	transform: none;
}

.kbx-carretera__card[hidden],
.kbx-carretera__card-kicker[hidden],
.kbx-carretera__card-links[hidden] {
	display: none !important;
}

.kbx-carretera button.kbx-carretera__card-close {
	position: absolute;
	top: 16px;
	right: 10px;
	width: 28px;
	height: 28px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #666;
	font-family: inherit;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
}

.kbx-carretera__card-kicker {
	position: relative;
	z-index: 2;
	margin: 0 0 6px;
	color: var(--kbx-red);
	font-family: Oswald, Impact, sans-serif;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.04em;
	line-height: 1.1;
	text-transform: uppercase;
}

.kbx-carretera__card-title {
	position: relative;
	z-index: 2;
	margin: 0 0 8px;
	color: var(--kbx-ink);
	font-family: Oswald, Impact, sans-serif;
	font-size: 28px;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1.05;
	text-transform: uppercase;
}

.kbx-carretera__card-text {
	position: relative;
	z-index: 2;
	margin: 0;
	color: #444;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
	white-space: pre-line;
}

.kbx-carretera__card-links {
	position: relative;
	z-index: 2;
	display: grid;
	gap: 8px;
	max-height: 220px;
	margin: 14px 0 0;
	padding: 0;
	overflow: auto;
	list-style: none;
}

.kbx-carretera__card-links a {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	color: var(--kbx-red);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 1.3;
	text-decoration: none;
	text-transform: uppercase;
}

.kbx-carretera__card-links a::before {
	content: "";
	flex: 0 0 auto;
	width: 7px;
	height: 7px;
	margin-top: 0.42em;
	border-radius: 50%;
	background: currentColor;
}

.kbx-carretera__arrow {
	display: block;
	width: 14px;
	height: 14px;
	flex: 0 0 auto;
}

.kbx-carretera__card-links a:hover {
	color: var(--kbx-red-hover);
}

.kbx-carretera__hint {
	margin: 0;
	padding: 14px 20px 18px;
	color: #6d6d6d;
	font-size: 14px;
	text-align: center;
}

.kbx-carretera button:focus-visible,
.kbx-carretera a:focus-visible {
	outline: 2px solid var(--kbx-ink);
	outline-offset: 3px;
}

@keyframes kbx-carretera-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(193, 7, 8, 0.45);
	}
	100% {
		box-shadow: 0 0 0 12px rgba(193, 7, 8, 0);
	}
}

@media (max-width: 767px) {
	.kbx-carretera__header {
		flex-direction: column;
		align-items: flex-start;
		padding: 18px 16px 12px;
	}

	.kbx-carretera__actions {
		flex-shrink: 1;
		flex-wrap: wrap;
		justify-content: flex-start;
		gap: 10px;
		width: 100%;
		min-width: 0;
	}

	.kbx-carretera button.kbx-carretera__btn--full,
	.kbx-carretera button.kbx-carretera__btn--exit {
		max-width: 100%;
		padding: 12px 16px;
		font-size: 12px;
	}

	.kbx-carretera button.kbx-carretera__btn--tour {
		flex: 1 1 100%;
		max-width: 100%;
		min-width: 0;
		font-size: 12px;
	}

	.kbx-carretera button.kbx-carretera__btn--tour [data-kbx-tour-label] {
		min-width: 0;
		white-space: normal;
	}

	.kbx-carretera__play {
		width: 40px;
		height: 40px;
	}

	.kbx-carretera__viewport {
		max-height: 56vh;
		overflow: auto;
		-webkit-overflow-scrolling: touch;
	}

	.kbx-carretera__scene {
		width: 1080px;
		max-width: none;
	}

	.kbx-carretera__card {
		position: relative;
		left: auto;
		top: auto;
		width: auto;
		max-width: none;
		margin: 10px 12px 4px;
	}
}

.kbx-carretera:fullscreen,
.kbx-carretera.is-expanded {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	max-width: none;
	border: 0;
	border-radius: 0;
	background: #000;
	overflow: hidden;
}

.kbx-carretera.is-expanded {
	position: fixed;
	inset: 0;
	z-index: 100000;
	height: 100dvh;
	padding: 12px 16px;
}

.kbx-carretera:fullscreen {
	padding: 16px 20px 12px;
}

.kbx-carretera:fullscreen .kbx-carretera__header,
.kbx-carretera.is-expanded .kbx-carretera__header,
.kbx-carretera:fullscreen .kbx-carretera__hint,
.kbx-carretera.is-expanded .kbx-carretera__hint {
	flex-shrink: 0;
}

.kbx-carretera:fullscreen .kbx-carretera__title,
.kbx-carretera.is-expanded .kbx-carretera__title {
	color: #fff;
}

.kbx-carretera:fullscreen .kbx-carretera__subtitle,
.kbx-carretera.is-expanded .kbx-carretera__subtitle,
.kbx-carretera:fullscreen .kbx-carretera__hint,
.kbx-carretera.is-expanded .kbx-carretera__hint {
	color: rgba(255, 255, 255, 0.78);
}

.kbx-carretera:fullscreen .kbx-carretera__stage,
.kbx-carretera.is-expanded .kbx-carretera__stage {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
}

.kbx-carretera:fullscreen .kbx-carretera__viewport,
.kbx-carretera.is-expanded .kbx-carretera__viewport {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	min-height: 0;
	max-height: none;
	overflow: hidden;
	container-type: size;
}

.kbx-carretera:fullscreen .kbx-carretera__scene,
.kbx-carretera.is-expanded .kbx-carretera__scene {
	width: min(100cqw, calc(100cqh * var(--kbx-ar, 1.7778)));
	max-width: 100%;
	height: auto;
}

.kbx-carretera:fullscreen .kbx-carretera__card,
.kbx-carretera.is-expanded .kbx-carretera__card {
	position: absolute;
	width: min(320px, calc(100% - 24px));
	margin: 0;
}

html.kbx-carretera-lock,
html.kbx-carretera-lock body {
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.kbx-carretera__card,
	.kbx-carretera__pin,
	.kbx-carretera__plus {
		transition: none;
		animation: none !important;
	}
}
