/**
 * Jet Travel Carrusel.
 */

.jt-carrusel { position: relative; }

.jt-carrusel__cabeza {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 34px;
}

.jt-carrusel__titulo {
	font-family: var(--jt-fuente-titulo, "Archivo"), sans-serif;
	font-size: clamp(30px, 3.8vw, 50px);
	font-weight: 800;
	letter-spacing: -.028em;
	line-height: 1.02;
	max-width: 22ch;
	margin: 0;
}

.jt-carrusel__controles { display: flex; gap: 10px; }

.jt-carrusel__flecha {
	width: 46px;
	height: 46px;
	border-radius: 999px;
	border: 1px solid var(--jt-ink, #2c3538);
	background: transparent;
	color: var(--jt-ink, #2c3538);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: background .25s, color .25s, opacity .25s;
}
.jt-carrusel__flecha:hover:not(:disabled) { background: var(--jt-ink, #2c3538); color: #fff; }
.jt-carrusel__flecha:disabled { opacity: .3; cursor: default; }

.jt-carrusel__pista {
	display: flex;
	gap: 18px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding: 6px 2px 18px;
	scrollbar-width: thin;
	scrollbar-color: var(--jt-line, #dbe6e8) transparent;
}
.jt-carrusel__pista:focus-visible { outline: 2px solid var(--jt-primary, #12879b); outline-offset: 4px; }
.jt-carrusel__pista.is-arrastrando { scroll-behavior: auto; cursor: grabbing; scroll-snap-type: none; }

.jt-carrusel__pista::-webkit-scrollbar { height: 6px; }
.jt-carrusel__pista::-webkit-scrollbar-thumb { background: var(--jt-line, #dbe6e8); border-radius: 999px; }
.jt-carrusel__pista::-webkit-scrollbar-track { background: transparent; }

.jt-carrusel__pista > article {
	scroll-snap-align: start;
	flex: 0 0 var(--jt-carrusel-ancho, 320px);
	max-width: 86vw;
}

.jt-carrusel__puntos {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 6px;
}
.jt-carrusel__punto {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--jt-line, #dbe6e8);
	cursor: pointer;
	transition: width .25s, background .25s;
}
.jt-carrusel__punto.is-activo { width: 22px; background: var(--jt-primary, #12879b); }

.jt-carrusel .jt-nota { margin-top: 4px; }

@media (max-width: 860px) {
	.jt-carrusel__cabeza { margin-bottom: 24px; }
	.jt-carrusel__controles { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.jt-carrusel__pista { scroll-behavior: auto; }
}
