.ftm-slider-wrap {
	position: relative;
	--ftm-blue: rgb(5, 55, 155);
	--ftm-gray: rgb(66, 89, 104);
	--ftm-orange: #ff6600;
}

.ftm-slider-wrap * {
	box-sizing: border-box;
}

.ftm-filter-slider {
	position: relative;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	min-height: 560px;
	padding: 30px 0 60px;
	overflow: hidden;
	font-family: 'Montserrat', Arial, Helvetica, sans-serif;
	background-color: transparent;
}

/* --- Selector / filtro superior --- */
.ftm-selection-wrapper {
	display: flex;
	justify-content: center;
	position: relative;
	z-index: 5;
	margin-bottom: 40px;
}

.ftm-selection-container {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	background: #fff;
	border-radius: 4px;
	overflow: visible;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}

.ftm-selection-container li {
	padding: 26px 34px;
	font-size: 14px;
	font-weight: 700;
	font-family: 'Montserrat', Arial, Helvetica, sans-serif;
	letter-spacing: 0.5px;
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	border-right: 1px solid #e5e5e5;
	white-space: nowrap;
}

.ftm-selection-container li:last-child {
	border-right: none;
}

.ftm-colored {
	color: var(--ftm-blue);
}

.ftm-filter-selection {
	position: relative;
	color: var(--ftm-gray);
}

.ftm-current-model::after {
	content: '';
	display: inline-block;
	width: 0;
	height: 0;
	margin-left: 8px;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid var(--ftm-orange);
	vertical-align: middle;
}

.ftm-all-vehicles {
	color: var(--ftm-gray);
	display: flex;
	align-items: center;
	gap: 8px;
}

.ftm-all-blocks {
	width: 14px;
	height: 14px;
	display: inline-grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 2px;
}

.ftm-all-blocks::before,
.ftm-all-blocks::after {
	content: '';
}

.ftm-all-blocks {
	background-image:
		linear-gradient(var(--ftm-blue), var(--ftm-blue));
	background-size: 6px 6px;
	background-repeat: space;
}

/* --- Popup "Todos los modelos" --- */
.ftm-all-models-popup {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	background: #fff;
	z-index: 30;
	padding: 50px 60px 40px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
	border-radius: 0 0 8px 8px;
}

.ftm-all-models-popup.ftm-open {
	display: block;
}

.ftm-all-models-close {
	position: absolute;
	top: 20px;
	right: 30px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid #ccc;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	color: #333;
	cursor: pointer;
	background: #fff;
}

.ftm-all-models-close:hover {
	background: #eee;
}

.ftm-all-models-group {
	margin-bottom: 26px;
}

.ftm-all-models-title {
	color: var(--ftm-orange);
	font-weight: 800;
	font-family: 'Montserrat', Arial, Helvetica, sans-serif;
	font-size: 14px;
	letter-spacing: 0.5px;
	margin-bottom: 14px;
}

.ftm-all-models-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.ftm-all-models-item {
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 16px 22px;
	background: #fff;
	color: var(--ftm-gray);
	font-weight: 600;
	font-family: 'Montserrat', Arial, Helvetica, sans-serif;
	cursor: pointer;
	text-align: center;
	transition: background 0.15s, border-color 0.15s;
}

.ftm-all-models-item:hover {
	border-color: #ff6600;
}

.ftm-all-models-item.ftm-active {
	background: #fde3d0;
	border-color: #fde3d0;
	color: #ff6600;
}

@media (max-width: 767px) {
	.ftm-all-models-popup {
		padding: 40px 20px 30px;
	}
	.ftm-all-models-item {
		padding: 12px 16px;
		font-size: 13px;
	}
}

.ftm-filter-dropdown {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	list-style: none;
	margin: 4px 0 0;
	padding: 6px 0;
	min-width: 220px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
	border-radius: 4px;
	z-index: 20;
	max-height: 320px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: #ff6600 #f0f0f0;
}

.ftm-filter-dropdown::-webkit-scrollbar {
	width: 6px;
}

.ftm-filter-dropdown::-webkit-scrollbar-track {
	background: #f0f0f0;
}

.ftm-filter-dropdown::-webkit-scrollbar-thumb {
	background: #ff6600;
	border-radius: 3px;
}

.ftm-filter-selection.ftm-open .ftm-filter-dropdown {
	display: block;
}

.ftm-filter-dropdown li {
	padding: 12px 22px;
	font-weight: 600;
	font-family: 'Montserrat', Arial, Helvetica, sans-serif;
	color: var(--ftm-gray);
	border-right: none;
}

.ftm-filter-dropdown li:hover,
.ftm-filter-dropdown li.ftm-active {
	background: #f5f5f5;
	color: var(--ftm-orange);
}

/* --- Carrusel --- */
.ftm-swiper {
	position: relative;
	z-index: 3;
	overflow: hidden;
}

.ftm-filter-item {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 420px;
	padding: 0 20px;
}

.ftm-filter-img {
	position: absolute;
	left: 8%;
	top: 55%;
	transform: translateY(-50%);
	max-width: 480px;
	width: 42%;
	z-index: 2;
}

.ftm-filter-img img {
	width: 100%;
	height: auto;
	display: block;
	filter: drop-shadow(0 20px 20px rgba(0, 0, 0, 0.35));
}

.ftm-item-info {
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
	padding: 30px 30px 25px;
	max-width: 480px;
	width: 100%;
	margin-left: auto;
	margin-right: 4%;
	position: relative;
	z-index: 3;
	text-align: center;
}

.ftm-item-name {
	font-size: 26px;
	font-weight: 800;
	font-family: 'Montserrat', Arial, Helvetica, sans-serif;
	color: var(--ftm-gray);
	margin-bottom: 20px;
	letter-spacing: 1px;
}

.ftm-item-props {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 22px;
}

.ftm-item-prop {
	border: 1px solid #e8e8e8;
	border-radius: 6px;
	padding: 18px 10px;
}

.ftm-item-prop-icon {
	display: block;
	max-width: 34px;
	max-height: 34px;
	width: auto;
	height: auto;
	margin: 0 auto 12px;
	object-fit: contain;
}

.ftm-prop-label {
	font-size: 12px;
	font-family: 'Montserrat', Arial, Helvetica, sans-serif;
	color: #999;
	margin-bottom: 4px;
	text-transform: none;
}

.ftm-prop-value {
	font-size: 17px;
	font-weight: 800;
	font-family: 'Montserrat', Arial, Helvetica, sans-serif;
	color: var(--ftm-gray);
}

.ftm-prop-small {
	font-size: 14px;
	font-weight: 600;
}

.ftm-btn-detail {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--ftm-orange);
	font-weight: 700;
	font-family: 'Montserrat', Arial, Helvetica, sans-serif;
	font-size: 14px;
	text-decoration: none;
	letter-spacing: 0.5px;
}

.ftm-btn-detail:hover {
	text-decoration: underline;
}

.ftm-arrow {
	font-size: 18px;
	line-height: 1;
}

/* --- Navegación --- */
.ftm-nav-control {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.85);
	color: #ff6600;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	cursor: pointer;
	z-index: 10;
	user-select: none;
}

.ftm-nav-left {
	left: 16px;
}

.ftm-nav-right {
	right: 16px;
}

.ftm-nav-control:hover {
	background: #fff;
}

/* Swiper overrides */
.ftm-swiper .swiper-pagination {
	position: relative;
	margin-top: 20px;
	z-index: 5;
}

.ftm-swiper .swiper-pagination-bullet {
	background: rgba(255, 255, 255, 0.6);
	opacity: 1;
}

.ftm-swiper .swiper-pagination-bullet-active {
	background: #ff6600;
}

/* --- Responsive --- */
@media (max-width: 991px) {
	.ftm-filter-item {
		flex-direction: column;
		min-height: auto;
		padding: 40px 16px;
	}
	.ftm-filter-img {
		position: static;
		transform: none;
		width: 80%;
		margin: 0 auto 20px;
	}
	.ftm-item-info {
		margin: 0 auto;
	}
	.ftm-selection-container {
		flex-wrap: wrap;
	}
	.ftm-selection-container li {
		padding: 14px 16px;
		font-size: 12px;
	}
}

@media (max-width: 480px) {
	.ftm-item-props {
		grid-template-columns: 1fr 1fr;
	}
	.ftm-item-info {
		padding: 22px 16px 18px;
	}
}
