.amarillo-carrusel {
	--ca-visible: var(--ca-visible-escritorio, 3);
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	column-gap: 0.75rem;
	row-gap: 0.75rem;
	width: 100%;
}

.amarillo-carrusel__ventana {
	min-width: 0;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
	-webkit-overflow-scrolling: touch;
}

.amarillo-carrusel__ventana::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

.amarillo-carrusel__pista {
	display: flex;
	width: 100%;
}

.amarillo-carrusel__diapositiva {
	box-sizing: border-box;
	flex: 0 0 calc(100% / var(--ca-visible));
	min-width: 0;
	padding: 0 0.375rem;
	scroll-snap-align: start;
}

.amarillo-carrusel__diapositiva[hidden] {
	display: none;
}

.amarillo-carrusel__imagen {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	border-radius: 0.375rem;
}

.amarillo-carrusel__flecha {
	display: inline-grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 1px solid currentColor;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.amarillo-carrusel__flecha[hidden] {
	display: none;
}

.amarillo-carrusel__flecha svg {
	width: 1.25rem;
	height: 1.25rem;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
}

.amarillo-carrusel__flecha:focus-visible,
.amarillo-carrusel__punto:focus-visible,
.amarillo-carrusel__ventana:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.amarillo-carrusel__paginacion {
	grid-column: 2;
	display: flex;
	justify-content: center;
	gap: 0.5rem;
}

.amarillo-carrusel__paginacion:empty {
	display: none;
}

.amarillo-carrusel__punto {
	width: 0.625rem;
	height: 0.625rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: currentColor;
	cursor: pointer;
	opacity: 0.35;
}

.amarillo-carrusel__punto[aria-current="true"] {
	opacity: 1;
}

.amarillo-carrusel-vacio {
	padding: 1rem;
	border: 1px dashed currentColor;
	text-align: center;
}

@media (max-width: 767px) {
	.amarillo-carrusel {
		--ca-visible: var(--ca-visible-movil, 1);
		column-gap: 0.375rem;
	}

	.amarillo-carrusel__flecha {
		width: 2rem;
		height: 2rem;
	}
}

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