/**
 * Vallor Trucks - estilos que theme.json no cubre.
 * Los colores, fuentes y tamaños salen siempre de los tokens de theme.json
 * (var(--wp--preset--...)) para que cambiarlos ahí se refleje en todo el sitio.
 */

:root {
	--vt-icon-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
	--vt-icon-place: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
	--vt-icon-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
	--vt-icon-chat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 18.2c-1.5 0-3-.4-4.2-1.1l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8-.2-.1-.4-.1-.6.1l-.8 1c-.1.2-.3.2-.5.1-.7-.3-1.4-.7-2.1-1.3-.5-.5-1-1.1-1.3-1.7-.1-.2 0-.4.1-.5l.4-.4.2-.4v-.4l-.8-1.9c-.2-.5-.4-.4-.6-.4h-.5c-.2 0-.5.1-.7.3-.6.6-.9 1.4-.9 2.2.1.9.4 1.8 1 2.6 1.1 1.6 2.5 2.9 4.2 3.7.5.2.9.4 1.4.5.5.2 1 .2 1.5.1.6-.1 1.2-.5 1.5-1 .2-.4.2-.8.1-1.2l-.4-.2z'/%3E%3C/svg%3E");
	--vt-icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23555'%3E%3Cpath d='M15.5 14h-.79l-.28-.27a6.5 6.5 0 1 0-.7.7l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0a4.5 4.5 0 1 1 0-9 4.5 4.5 0 0 1 0 9z'/%3E%3C/svg%3E");
}

body {
	-webkit-font-smoothing: antialiased;
}

/* Las plantillas ya separan cabecera, contenido y pie: sin huecos entre ellos. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

.vt-section {
	padding-block: var(--wp--preset--spacing--40);
}

/* Transición: las páginas que aún son de Elementor traen sus propias secciones
 * a ancho completo; no deben quedar limitadas por el ancho de contenido.
 * Borrar cuando no quede ninguna página de Elementor. */
.wp-block-post-content:has(> .elementor) {
	padding-inline: 0;
}

.wp-block-post-content.is-layout-constrained > .elementor {
	max-width: none;
}

/* ---------------------------------------------------------------------------
 * Barra superior
 * ------------------------------------------------------------------------- */

.vt-topbar {
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--small);
}

.vt-topbar__inner,
.vt-header {
	padding-inline: var(--wp--style--root--padding-left);
}

.vt-topbar__inner {
	min-height: 44px;
	padding-block: 6px;
	gap: 8px 24px;
}

.vt-topbar p {
	margin: 0;
}

.vt-topbar a {
	color: inherit;
}

.vt-topbar__phone a::before {
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-right: 8px;
	vertical-align: -3px;
	background: var(--vt-icon-phone) center / contain no-repeat;
}

/* ---------------------------------------------------------------------------
 * Cabecera
 * ------------------------------------------------------------------------- */

.vt-header {
	background: var(--wp--preset--color--white);
}

.vt-header__main {
	gap: 10px;
	padding-block: 12px;
}

.vt-header__logo {
	flex-shrink: 0;
}

.vt-header .wp-block-buttons {
	flex-shrink: 0;
}

.vt-btn-outline .wp-block-button__link,
.vt-btn-outline.is-style-outline .wp-block-button__link {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--dark);
	border: 1px solid var(--wp--preset--color--dark);
	border-radius: var(--wp--custom--radius--small);
	padding: 10px 24px;
	font-weight: 500;
}

.vt-btn-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--dark);
}

.vt-btn-whatsapp .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--wp--preset--color--dark);
	font-size: var(--wp--preset--font-size--large);
	padding: 10px 24px;
	white-space: nowrap;
}

.vt-btn-whatsapp .wp-block-button__link::before {
	content: "";
	width: 20px;
	height: 20px;
	background: var(--vt-icon-chat) center / contain no-repeat;
}

.vt-btn-whatsapp .wp-block-button__link:hover,
.vt-btn-whatsapp .wp-block-button__link:focus-visible {
	background: var(--wp--preset--color--yellow);
	color: var(--wp--preset--color--ink);
}

.vt-btn-whatsapp .wp-block-button__link:hover::before,
.vt-btn-whatsapp .wp-block-button__link:focus-visible::before {
	filter: invert(1);
}

/* Buscador */
.vt-header__search {
	flex: 1 1 auto;
	min-width: 0;
}

.vt-header__search .wp-block-search__inside-wrapper,
.wp-block-search .wp-block-search__inside-wrapper {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--large);
	padding: 4px 12px;
	min-height: 56px;
	background: var(--wp--preset--color--white);
}

.wp-block-search .wp-block-search__input {
	border: 0;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--medium);
	color: var(--wp--preset--color--ink);
	background: transparent;
	padding-inline: 4px;
}

.wp-block-search .wp-block-search__input:focus {
	outline: none;
}

.wp-block-search .wp-block-search__inside-wrapper:focus-within {
	border-color: var(--wp--preset--color--navy);
	box-shadow: 0 0 0 1px var(--wp--preset--color--navy);
}

.vt-header__search .wp-block-search__button {
	order: -1;
	margin: 0;
	padding: 0 4px;
	background: transparent;
	color: var(--wp--preset--color--muted);
	border: 0;
}

.vt-header__search .wp-block-search__button svg {
	width: 28px;
	height: 28px;
	fill: currentColor;
}

/* Navegación por categorías con iconos */
/* El bloque de navegación repite la clase en el <ul>: los estilos de caja van solo al <nav>. */
nav.vt-catnav {
	padding-bottom: 8px;
}

.vt-catnav .wp-block-navigation__container {
	width: 100%;
	gap: 4px;
	justify-content: space-between;
}

.vt-catnav .vt-cat {
	flex: 1 1 0;
	justify-content: center;
}

.vt-catnav .vt-cat .wp-block-navigation-item__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	width: 100%;
	padding: 10px 8px;
	border-radius: var(--wp--custom--radius--large);
	color: var(--wp--preset--color--text);
	font-weight: 600;
	text-align: center;
	line-height: 1.2;
	transition: background-color 0.3s;
}

.vt-catnav .vt-cat .wp-block-navigation-item__content:hover,
.vt-catnav .vt-cat .wp-block-navigation-item__content:focus-visible,
.vt-catnav .vt-cat.current-menu-item .wp-block-navigation-item__content {
	background: var(--wp--preset--color--surface);
	text-decoration: none;
}

.vt-catnav .vt-cat .wp-block-navigation-item__content::before {
	content: "";
	width: 100px;
	height: 40px;
	background-position: center bottom;
	background-size: contain;
	background-repeat: no-repeat;
}

.vt-cat--furgones .wp-block-navigation-item__content::before { background-image: url("../img/icons/furgones.webp"); }
.vt-cat--camiones-hasta-7500 .wp-block-navigation-item__content::before { background-image: url("../img/icons/camiones-hasta-7500.webp"); }
.vt-cat--camiones-desde-7500 .wp-block-navigation-item__content::before { background-image: url("../img/icons/camiones-desde-7500.webp"); }
.vt-cat--tractoras .wp-block-navigation-item__content::before { background-image: url("../img/icons/tractoras.webp"); }
.vt-cat--autobuses .wp-block-navigation-item__content::before { background-image: url("../img/icons/autobuses.webp"); }
.vt-cat--remolques .wp-block-navigation-item__content::before { background-image: url("../img/icons/remolques.webp"); }
.vt-cat--construccion .wp-block-navigation-item__content::before { background-image: url("../img/icons/construccion.webp"); }
.vt-cat--otros .wp-block-navigation-item__content::before { background-image: url("../img/icons/otros.webp"); }

/* ---------------------------------------------------------------------------
 * Pie (estructura inspirada en basworld.com: borde superior curvo, logo y
 * columnas de enlaces, y una franja inferior con redes y textos legales)
 * ------------------------------------------------------------------------- */

.vt-footer {
	margin-top: var(--wp--preset--spacing--60);
	border-radius: 50% 50% 0 0 / 48px 48px 0 0;
	background: var(--wp--preset--color--navy);
	color: #fff;
}

.vt-footer__inner {
	max-width: var(--wp--style--global--content-size);
	margin-inline: auto;
	padding: 72px var(--wp--style--root--padding-left) 0;
}

.vt-footer p {
	margin: 0;
}

.vt-footer a {
	color: rgba(255, 255, 255, 0.78);
	text-decoration: none;
}

.vt-footer a:hover,
.vt-footer a:focus-visible {
	color: #fff;
	text-decoration: underline;
}

.vt-footer__main {
	display: grid;
	grid-template-columns: minmax(180px, 1.3fr) repeat(4, minmax(0, 1fr));
	gap: 32px 40px;
	padding-bottom: 48px;
}

.vt-footer__main > * {
	margin-block: 0;
}

/* El logo es a color sobre fondo blanco: en el pie se muestra en blanco. */
.vt-footer__logo img {
	width: 180px;
	height: auto;
	filter: brightness(0) invert(1);
}

.vt-footer__title {
	margin-bottom: 14px !important;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
}

.vt-footer__links .wp-block-navigation__container {
	gap: 10px;
}

.vt-footer__links a,
.vt-footer__item {
	font-size: 15px;
	line-height: 1.4;
}

.vt-footer__item {
	position: relative;
	padding-left: 26px;
	color: rgba(255, 255, 255, 0.78);
}

.vt-footer__item + .vt-footer__item {
	margin-top: 10px;
}

.vt-footer__item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	width: 16px;
	height: 16px;
	background: var(--vt-icon-place) center / contain no-repeat;
	opacity: 0.8;
}

.vt-footer__item--phone::before { background-image: var(--vt-icon-phone); }
.vt-footer__item--mail::before { background-image: var(--vt-icon-mail); }

.vt-footer__bottom {
	gap: 16px 32px;
	padding: 20px 0 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.vt-footer__bottom > *,
.vt-footer__legal-wrap > * {
	margin-block: 0;
}

.vt-footer__social {
	gap: 10px;
}

.vt-footer__social .wp-social-link {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.vt-footer__social .wp-social-link:hover {
	background: rgba(255, 255, 255, 0.24);
}

.vt-footer__legal-wrap {
	gap: 8px 24px;
}

.vt-footer__legal .wp-block-navigation__container {
	gap: 4px 20px;
}

.vt-footer__legal a,
.vt-footer__copy {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 900px) {
	.vt-footer {
		border-radius: 50% 50% 0 0 / 24px 24px 0 0;
	}

	.vt-footer__inner {
		padding-top: 48px;
	}

	.vt-footer__main {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.vt-footer__logo,
	.vt-footer__contact {
		grid-column: 1 / -1;
	}

	.vt-footer__bottom,
	.vt-footer__legal-wrap {
		justify-content: flex-start !important;
	}
}

/* ---------------------------------------------------------------------------
 * Páginas: títulos y portada
 * ------------------------------------------------------------------------- */

.vt-page-title {
	margin: 32px 0 24px;
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 700;
}

.wp-block-post-content > .vt-home-top:first-child {
	margin-top: 20px;
}

.vt-home-top {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
	gap: 30px;
}

.vt-hero__title {
	font-size: var(--wp--preset--font-size--hero);
	font-weight: 900;
	line-height: 1.25;
	text-transform: uppercase;
	color: #fff;
}

.vt-btn-cta .wp-block-button__link {
	background: var(--wp--preset--color--cta);
	border-radius: var(--wp--custom--radius--medium);
	font-weight: 600;
	padding: 10px 24px;
}

.vt-btn-cta .wp-block-button__link:hover {
	background: var(--wp--preset--color--navy);
}

.vt-home-side {
	display: grid;
	grid-auto-rows: 1fr;
	gap: 20px;
}

.vt-dark-card {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 32px;
	border-radius: 20px;
	background: var(--wp--preset--color--charcoal);
	color: #fff;
}

.vt-dark-card h2 {
	margin: 0 0 16px;
	font-size: var(--wp--preset--font-size--x-large);
	color: #fff;
}

.vt-arrow-link {
	margin: 0;
	font-size: 24px;
	line-height: 1.5;
}

.vt-arrow-link a {
	display: inline-flex;
	gap: 14px;
	color: #fff;
}

.vt-arrow-link a::before {
	content: "";
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	margin-top: 0.15em;
	border-radius: 50%;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23222'%3E%3Cpath d='M8.6 16.6 13.2 12 8.6 7.4 10 6l6 6-6 6z'/%3E%3C/svg%3E") center / 22px no-repeat;
}

.vt-home-section {
	margin-top: 60px;
}

.vt-promos {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.vt-promo h2 {
	font-size: var(--wp--preset--font-size--xx-large);
	line-height: 1.15;
}

.vt-promo__kicker {
	font-size: var(--wp--preset--font-size--medium);
}

.vt-btn-ghost .wp-block-button__link {
	background: transparent;
	border: 1px solid #fff;
	border-radius: var(--wp--custom--radius--medium);
	font-weight: 600;
	padding: 8px 24px;
}

.vt-btn-ghost .wp-block-button__link:hover {
	background: #fff;
	color: var(--wp--preset--color--ink);
}

@media (max-width: 900px) {
	.vt-home-top,
	.vt-promos {
		grid-template-columns: minmax(0, 1fr);
	}

	.vt-arrow-link {
		font-size: 20px;
	}
}

/* ---------------------------------------------------------------------------
 * Ficha de vehículo
 * Escritorio: galería y detalles a la izquierda, panel de contacto fijo a la
 * derecha. Móvil: galería, panel de contacto y después los detalles.
 * ------------------------------------------------------------------------- */

/* Como en basworld.com, la ficha va en un bloque centrado y no a todo el ancho. */
.vt-vehicle {
	/* 1232 px de contenido más el margen lateral, que va por dentro. */
	--vt-vehicle-width: calc(1232px + 2 * var(--wp--style--root--padding-left));
}

.vt-vehicle__titlebar {
	background: var(--wp--preset--color--surface);
	padding: 12px var(--wp--style--root--padding-left);
}

.vt-vehicle__titlebar-inner {
	max-width: var(--vt-vehicle-width);
	margin-inline: auto;
	gap: 16px;
}

.vt-vehicle__titlebar .wp-block-post-title {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 400;
}

.vt-vehicle__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 38%);
	grid-template-areas:
		"media aside"
		"details aside";
	gap: 0 40px;
	max-width: var(--vt-vehicle-width);
	margin-inline: auto;
	padding: 20px var(--wp--style--root--padding-left) 0;
}

.vt-vehicle__layout > * {
	margin-block-start: 0;
}

.vt-vehicle__media { grid-area: media; }
.vt-vehicle__details { grid-area: details; }
.vt-vehicle__aside { grid-area: aside; }

.vt-vehicle__panel {
	position: sticky;
	top: 20px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.vt-vehicle__panel > * {
	margin-block: 0;
}

.vt-vehicle__panel hr.wp-block-separator:not(.is-style-dots) {
	width: 100%;
	max-width: none;
	border: 0;
	border-top: 1px solid var(--wp--preset--color--line);
	opacity: 1;
}

/* La alineación del bloque Ref es de texto, no un flotado. */
.vt-vehicle__panel .vt-ref.alignright {
	float: none;
	margin: 0;
	text-align: right;
}

.vt-vehicle__heading {
	margin: 48px 0 16px;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
}

.vt-vehicle__details > .vt-vehicle__heading:first-child {
	margin-top: 32px;
}

.vt-vehicle__details .vt-axles {
	margin-top: 40px;
}

/* Asesor */
.vt-advisor {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 20px;
	align-items: center;
}

.vt-advisor p {
	margin: 0;
}

.vt-advisor__text > * + * {
	margin-top: 12px;
}

.vt-advisor__title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
}

.vt-advisor__phone a::before {
	content: "";
	display: inline-block;
	width: 18px;
	height: 18px;
	margin-right: 8px;
	vertical-align: -3px;
	background: var(--wp--preset--color--navy);
	-webkit-mask: var(--vt-icon-phone) center / contain no-repeat;
	mask: var(--vt-icon-phone) center / contain no-repeat;
}

.vt-advisor__person {
	text-align: center;
}

.vt-advisor__photo {
	margin: 0 auto;
}

.vt-advisor__photo img {
	width: 100px;
	height: 100px;
	object-fit: cover;
}

.vt-advisor__name {
	font-weight: 700;
	font-size: 17px;
}

.vt-advisor__langs img {
	display: inline-block;
	width: 30px;
	height: 30px;
	margin: 4px;
	vertical-align: middle;
}

/* Bloque foto + texto */
.vt-feature {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 30px;
	align-items: center;
}

.vt-feature__media {
	margin: 0;
}

.vt-feature__media img {
	display: block;
	width: 100%;
	border-radius: var(--wp--custom--radius--card);
}

.vt-feature__body h3 {
	margin-top: 0;
	font-size: 18px;
	font-weight: 700;
}

.vt-feature__body p {
	font-size: 15px;
	line-height: 1.6;
}

/* Cosas que debes saber */
.vt-know {
	gap: 20px;
}

.vt-know__item {
	display: flex;
	flex-direction: column;
	padding: 24px;
	border: 1px solid var(--wp--preset--color--line-soft);
	border-radius: var(--wp--custom--radius--card);
}

.vt-know__item h3 {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 700;
}

.vt-know__item p {
	flex: 1;
	font-size: 15px;
	line-height: 1.6;
}

.vt-btn-arrow .wp-block-button__link::after {
	content: " →";
}

/* Relacionados */
.vt-vehicle__related {
	max-width: var(--vt-vehicle-width);
	margin: 48px auto 0;
	padding: 8px var(--wp--style--root--padding-left) 0;
	border-top: 1px solid var(--wp--preset--color--line);
}

/* ---------------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------------- */

@media (min-width: 1200px) {
	.vt-catnav .vt-cat .wp-block-navigation-item__content {
		white-space: nowrap;
	}
}

@media (max-width: 1100px) {
	.vt-btn-whatsapp .wp-block-button__link {
		font-size: var(--wp--preset--font-size--medium);
	}
}

@media (max-width: 900px) {
	.vt-vehicle__layout {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"media"
			"aside"
			"details";
	}

	.vt-vehicle__aside {
		margin-top: 20px;
	}

	.vt-vehicle__panel {
		position: static;
	}

	.vt-feature {
		grid-template-columns: minmax(0, 1fr);
	}

	.vt-header__main {
		flex-wrap: wrap !important;
	}

	.vt-header__services {
		margin-left: auto;
	}

	.vt-header__search {
		order: 3;
		flex-basis: 100%;
	}

	.vt-header__contact {
		order: 4;
		flex-basis: 100%;
	}

	.vt-header__contact .wp-block-button,
	.vt-header__contact .wp-block-button__link {
		width: 100%;
		justify-content: center;
	}

	/* En móvil las categorías pasan a una fila deslizable en lugar de una lista vertical. */
	nav.vt-catnav {
		margin-inline: calc(-1 * var(--wp--style--root--padding-left));
	}

	.vt-catnav .wp-block-navigation__container {
		flex-wrap: nowrap;
		overflow-x: auto;
		scroll-snap-type: x proximity;
		padding-inline: var(--wp--style--root--padding-left);
		scrollbar-width: none;
	}

	.vt-catnav .wp-block-navigation__container::-webkit-scrollbar {
		display: none;
	}

	.vt-catnav .vt-cat {
		flex: 0 0 108px;
		scroll-snap-align: start;
	}

	.vt-catnav .vt-cat .wp-block-navigation-item__content {
		font-size: var(--wp--preset--font-size--xs);
	}

	.vt-catnav .vt-cat .wp-block-navigation-item__content::before {
		width: 80px;
		height: 32px;
	}
}

@media (max-width: 600px) {
	.vt-topbar__inner {
		justify-content: center !important;
	}

	.vt-topbar__claim {
		display: none;
	}

	.vt-header__logo img {
		width: 150px !important;
	}





}

.vt-vehicle__related .vt-grid-section__heading {
	margin-top: 32px;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 700;
}

.vt-vehicle__related:not(:has(.vt-grid-section)) {
	display: none;
}

/* Las rejillas propias controlan su espaciado: sin el margen superior de flujo. */
.vt-home-top > *,
.vt-home-side > *,
.vt-promos > * {
	margin-block: 0;
}

.vt-media-card.has-text-align-center .wp-block-buttons {
	justify-content: center;
}

/* ---------------------------------------------------------------------------
 * Iconos de tipos de vehículo (los usa el bloque vt/section-nav)
 * ------------------------------------------------------------------------- */

.vt-icon--furgones::before { background-image: url("../img/icons/furgones.webp"); }
.vt-icon--camiones-hasta-7500::before { background-image: url("../img/icons/camiones-hasta-7500.webp"); }
.vt-icon--camiones-desde-7500::before { background-image: url("../img/icons/camiones-desde-7500.webp"); }
.vt-icon--tractoras::before { background-image: url("../img/icons/tractoras.webp"); }
.vt-icon--semi-remolques::before { background-image: url("../img/icons/semi-remolques.webp"); }
.vt-icon--remolques::before { background-image: url("../img/icons/remolques.webp"); }
.vt-icon--agricolas::before { background-image: url("../img/icons/agricolas.webp"); }
.vt-icon--coches::before { background-image: url("../img/icons/coches.webp"); }
.vt-icon--construccion::before { background-image: url("../img/icons/construccion.webp"); }
.vt-icon--maquinaria::before { background-image: url("../img/icons/maquinaria.webp"); }
.vt-icon--autobuses::before { background-image: url("../img/icons/autobuses.webp"); }
.vt-icon--otros::before { background-image: url("../img/icons/otros.webp"); }

/* ---------------------------------------------------------------------------
 * Páginas de contenido (Ocasión, Nuevos, Servicios, Reacondicionamiento)
 * ------------------------------------------------------------------------- */

.vt-page-hero {
	padding: 40px 0 8px;
	text-align: center;
}

.vt-page-hero .vt-page-title {
	margin: 0;
}

/* Subrayado amarillo bajo el título, como en el diseño anterior. */
.vt-page-hero .vt-page-title::after {
	content: "";
	display: block;
	width: 64px;
	height: 4px;
	margin: 12px auto 0;
	border-radius: 2px;
	background: var(--wp--preset--color--yellow);
}

.vt-page-hero__intro {
	max-width: 760px;
	margin: 16px auto 0;
	color: var(--wp--preset--color--muted);
	font-size: 17px;
}

.vt-section-layout {
	display: grid;
	grid-template-columns: 320px minmax(0, 1fr);
	gap: 48px;
	align-items: start;
	margin-top: 40px;
}

.vt-section-layout > *,
.vt-split > * {
	margin-block: 0;
}

.vt-section-layout__aside {
	position: sticky;
	top: 20px;
}

.vt-prose {
	font-size: 16px;
	line-height: 1.7;
	color: var(--wp--preset--color--text);
}

.vt-prose > * + * {
	margin-block-start: 1em;
}

.vt-prose a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.vt-prose h2 {
	margin-top: 1.6em;
	font-size: var(--wp--preset--font-size--x-large);
}

.vt-prose .wp-block-list {
	padding-left: 1.4em;
}

.vt-content-image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--wp--custom--radius--card);
}

.vt-split {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 48px;
	align-items: center;
	margin-top: 40px;
}

.vt-section-heading {
	margin-top: 72px;
	text-align: center;
}

.vt-features {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.vt-features__item {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 4px 20px;
}

.vt-features__item > * {
	margin: 0;
}

.vt-features__item .wp-block-image {
	grid-row: span 2;
}

.vt-features__item .wp-block-image img {
	width: 72px;
	height: 72px;
	object-fit: contain;
	border-radius: 50%;
	border: 2px solid var(--wp--preset--color--line-soft);
}

.vt-features__item h3 {
	font-size: 18px;
	font-weight: 700;
	text-transform: uppercase;
}

.vt-features__item p {
	font-size: 15px;
	line-height: 1.6;
	color: var(--wp--preset--color--text);
}

.vt-section-layout__main .vt-grid-section {
	margin-top: 48px;
}

@media (max-width: 900px) {
	.vt-section-layout,
	.vt-split {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	/* En móvil el contenido va primero y el menú de tipos después. */
	.vt-section-layout__aside {
		position: static;
		order: 2;
	}
}

/* ---------------------------------------------------------------------------
 * Landings (página de IVECO)
 * ------------------------------------------------------------------------- */

.vt-landing-hero {
	margin-top: 20px;
}

.vt-landing-hero__title {
	max-width: 900px;
	font-size: clamp(32px, 4.5vw, 52px);
	font-weight: 700;
	line-height: 1.15;
}

.vt-landing-hero__subtitle {
	font-size: clamp(18px, 2vw, 24px);
	font-weight: 600;
}

.vt-highlight {
	color: #ffdb00;
}

.vt-band {
	margin-top: 60px;
	padding-block: 56px;
	background: #f5fafd;
}

.vt-band + .vt-band,
.vt-landing-section + .vt-band {
	margin-top: 60px;
}

.vt-band--center {
	text-align: center;
}

.vt-band--center p {
	max-width: 960px;
	margin-inline: auto;
	color: var(--wp--preset--color--text);
	line-height: 1.7;
}

.vt-band h2,
.vt-landing-section h2 {
	margin-top: 0;
	color: var(--wp--preset--color--blue-strong);
}

.vt-band__head {
	margin-bottom: 24px;
}

.vt-band__head h2 {
	margin: 0;
}

.vt-landing-section {
	margin-top: 60px;
}

.vt-split--top {
	align-items: start;
}

.vt-landing-section h3 {
	margin-top: 0;
	color: var(--wp--preset--color--blue-strong);
	font-size: 20px;
	font-weight: 700;
}

.vt-kicker {
	margin: 0;
	color: var(--wp--preset--color--ink);
	font-weight: 700;
}

.vt-checks .wp-block-list {
	padding-left: 0;
	list-style: none;
}

.vt-checks .wp-block-list li {
	position: relative;
	padding-left: 30px;
}

.vt-checks .wp-block-list li + li {
	margin-top: 10px;
}

.vt-checks .wp-block-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--wp--preset--color--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.vt-btn-green .wp-block-button__link {
	background: var(--wp--preset--color--green);
	color: #fff;
	font-weight: 600;
}

.vt-btn-green .wp-block-button__link:hover {
	background: var(--wp--preset--color--green-dark);
}

.vt-cta-link a {
	color: var(--wp--preset--color--blue-strong);
	font-weight: 700;
}

/* Tarjetas y botones dentro de textos no heredan el subrayado de los enlaces. */
.vt-prose .vt-card a,
.vt-prose .wp-block-button__link {
	text-decoration: none;
}

/* Con el contenido a todo el ancho, las fotos antiguas (500 px) no deben
 * estirarse hasta pixelarse. */
.vt-section-layout__main .vt-content-image {
	max-width: 900px;
}


/* ---------------------------------------------------------------------------
 * Ficha de vehículo (diseño inspirado en basworld.com)
 * ------------------------------------------------------------------------- */

.vt-vehicle__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px 32px;
	max-width: var(--vt-vehicle-width);
	margin-inline: auto;
	padding: 28px var(--wp--style--root--padding-left) 0;
}

.vt-vehicle__head > *,
.vt-vehicle__heading > * {
	margin-block: 0;
}

.vt-vehicle__title {
	font-size: clamp(24px, 2.4vw, 30px);
	font-weight: 700;
	line-height: 1.2;
}

.vt-vehicle__head-side {
	flex-shrink: 0;
	gap: 20px;
}

.vt-vehicle .vt-vehicle__layout {
	padding-top: 20px;
}

.vt-vehicle__media > * + * {
	margin-block-start: 16px;
}

/* Tarjetas del panel lateral */
.vt-box {
	padding: 20px;
	border: 1px solid var(--wp--preset--color--line-soft);
	border-radius: 8px;
	background: #fff;
}

.vt-box > * {
	margin-block: 0;
}

.vt-box > * + * {
	margin-block-start: 14px;
}

.vt-box .wp-block-separator {
	width: 100%;
	max-width: none;
	border: 0;
	border-top: 1px solid var(--wp--preset--color--line-soft);
	opacity: 1;
}

.vt-offer__label {
	color: var(--wp--preset--color--muted);
	font-size: 14px;
}

.vt-box > .vt-offer__price {
	margin-top: 0;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--wp--preset--color--navy);
}

.vt-dealer__company,
.vt-dealer__advisor {
	display: flex;
	align-items: center;
	gap: 14px;
}

.vt-dealer__company > *,
.vt-dealer__advisor > *,
.vt-dealer__info > *,
.vt-dealer__person > * {
	margin: 0;
}

.vt-dealer__logo img {
	width: 96px;
	height: auto;
}

.vt-dealer__name {
	font-weight: 700;
}

.vt-dealer__place,
.vt-dealer__role {
	color: var(--wp--preset--color--muted);
	font-size: 14px;
}

.vt-dealer__photo {
	flex-shrink: 0;
}

.vt-dealer__photo img {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
}

.vt-dealer__actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.vt-dealer__actions .wp-block-button,
.vt-dealer__actions .wp-block-button__link {
	width: 100%;
}

.vt-dealer__actions .wp-block-button__link {
	padding: 9px 12px;
	font-size: 15px;
	text-align: center;
}

/* Secciones de detalle */
.vt-vehicle__heading-section,
.vt-vehicle__details .vt-features__title,
.vt-vehicle__details .vt-axles__title,
.vt-vehicle__details .vt-vehicle__heading {
	margin: 0 0 16px;
	font-size: 22px;
	font-weight: 700;
}

.vt-vehicle__details > .vt-vehicle__heading-section:first-child {
	margin-top: 32px;
}

.vt-vehicle__details .vt-vehicle__section,
.vt-vehicle__details > .vt-vehicle__heading {
	margin-top: 40px;
	padding-top: 32px;
	border-top: 1px solid var(--wp--preset--color--line-soft);
}

@media (max-width: 700px) {
	.vt-vehicle__head {
		flex-direction: column;
	}
}

/* ---------------------------------------------------------------------------
 * Páginas de contenido (Servicios, Reacondicionamiento, Ocasión, Nuevos,
 * IVECO): contenido centrado en 1232 px como la ficha. Las franjas de color
 * (alignfull) siguen a todo el ancho y centran su contenido igual.
 * ------------------------------------------------------------------------- */

.wp-block-post-content:has(> .vt-page-hero):not(:has(> .wp-block-vt-vehicle-catalog)),
.wp-block-post-content:has(> .vt-landing-hero) {
	--wp--style--global--content-size: 1232px;
}

/* Las páginas con listado y filtros (/nuevos/, /flota/) van a todo el ancho,
 * igual que el resto de páginas de catálogo. */

/* Botones del asesor, uno al lado del otro (el bloque Botones trae su propio flex). */
.vt-dealer__actions.wp-block-buttons {
	display: grid;
}

.vt-vehicle__details .vt-features__title {
	margin-bottom: 0;
}

/* ===========================================================================
 * EFECTOS GENERALES
 * Todo lo animado está dentro de prefers-reduced-motion: no-preference.
 * ======================================================================== */

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}

	/* Aparición al hacer scroll (la clase la pone assets/js/effects.js). */
	.vt-js .vt-reveal {
		opacity: 0;
		transform: translateY(24px);
		transition:
			opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--vt-reveal-delay, 0ms),
			transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--vt-reveal-delay, 0ms);
	}

	.vt-js .vt-reveal.is-revealed {
		opacity: 1;
		transform: none;
	}

	/* Tras aparecer, tarjetas y casillas recuperan su animación de hover rápida. */
	.vt-js .vt-card.is-revealed,
	.vt-js .vt-highlights__item.is-revealed,
	.vt-js .vt-know__item.is-revealed {
		transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
	}

	/* Entrada del texto del hero de portada. */
	.vt-hero .vt-media-card__content > * {
		animation: vt-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
	}

	.vt-hero .vt-media-card__content > *:nth-child(2) {
		animation-delay: 0.15s;
	}

	@keyframes vt-rise {
		from {
			opacity: 0;
			transform: translateY(18px);
		}
		to {
			opacity: 1;
			transform: none;
		}
	}

	/* Banners: el fondo se acerca despacio al pasar el ratón. */
	.vt-promo .vt-media-card__bg,
	.vt-landing-hero .vt-media-card__bg {
		transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1);
	}

	.vt-promo:hover .vt-media-card__bg {
		transform: scale(1.05);
	}

	/* Iconos de categorías: se elevan al pasar el ratón. */
	.vt-catnav .vt-cat .wp-block-navigation-item__content::before {
		transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
	}

	.vt-catnav .vt-cat .wp-block-navigation-item__content:hover::before {
		transform: translateY(-4px);
	}

	.vt-arrow-link a::before {
		transition: transform 0.25s ease;
	}

	.vt-arrow-link a:hover::before {
		transform: translateX(4px);
	}

	.wp-element-button,
	.wp-block-button__link {
		transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	}

	.wp-block-button__link:hover {
		transform: translateY(-1px);
	}
}

/* Foco visible y consistente para teclado. */
:where(a, button, input, select, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--navy);
	outline-offset: 2px;
}

/* ---------------------------------------------------------------------------
 * Cabecera compacta fija (al bajar): logo, buscador y franja de zonas
 * ------------------------------------------------------------------------- */

.vt-header.is-stuck {
	position: fixed;
	top: var(--wp-admin--admin-bar--height, 0px);
	left: 0;
	right: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(12px);
	box-shadow: 0 10px 30px -18px rgba(17, 24, 39, 0.45);
}

@media (prefers-reduced-motion: no-preference) {
	.vt-header.is-stuck {
		animation: vt-slide-down 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
	}

	@keyframes vt-slide-down {
		from {
			transform: translateY(-100%);
		}
		to {
			transform: none;
		}
	}
}

.vt-header.is-stuck .vt-header__main {
	padding-block: 6px;
}

.vt-header.is-stuck .vt-header__logo img {
	width: 120px !important;
}

.vt-header.is-stuck .wp-block-search__inside-wrapper {
	min-height: 42px;
}

.vt-header.is-stuck .vt-btn-whatsapp .wp-block-button__link {
	font-size: var(--wp--preset--font-size--medium);
	padding-block: 9px;
}

@media (max-width: 900px) {
	/* En móvil la parte fija se queda en logo + buscador y la franja compacta. */
	.vt-header.is-stuck .vt-header__main {
		flex-wrap: nowrap !important;
	}

	.vt-header.is-stuck .vt-header__services,
	.vt-header.is-stuck .vt-header__contact {
		display: none;
	}

	.vt-header.is-stuck .vt-header__logo img {
		width: 90px !important;
	}

	.vt-header.is-stuck .vt-header__search {
		order: 0;
		flex: 1 1 auto;
	}
}

/* ---------------------------------------------------------------------------
 * Volver arriba
 * ------------------------------------------------------------------------- */

.vt-to-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 80;
	width: 46px;
	height: 46px;
	border: 0;
	border-radius: 50%;
	background: var(--wp--preset--color--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E") center / 20px no-repeat;
	box-shadow: 0 12px 24px -10px rgba(31, 36, 102, 0.6);
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transform: translateY(12px);
	transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
}

.vt-to-top.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: none;
}

.vt-to-top:hover {
	background-color: var(--wp--preset--color--dark);
}

@media (max-width: 900px) {
	/* Por encima de la barra de contacto de la ficha. */
	body:has(.is-bar.is-visible) .vt-to-top {
		bottom: 88px;
	}
}

/* ===========================================================================
 * FICHA DE VEHÍCULO - acabado final
 * ======================================================================== */

.vt-vehicle [id] {
	scroll-margin-top: calc(var(--vt-header-h, 0px) + 90px);
}

.vt-vehicle__head {
	padding-top: 36px;
	align-items: flex-end;
}

.vt-vehicle__title {
	font-size: clamp(28px, 3vw, 40px);
	letter-spacing: -0.01em;
}

.vt-vehicle .vt-vehicle__layout {
	padding-top: 24px;
}

.vt-vehicle .vt-gallery__stage {
	border-radius: 18px;
	box-shadow: 0 30px 60px -40px rgba(17, 24, 39, 0.55);
}

.vt-vehicle .vt-gallery__thumb {
	border-radius: 12px;
}

/* Tarjeta de precio */
.vt-box.vt-offer {
	position: relative;
	overflow: hidden;
	padding: 24px;
	border: 0;
	border-radius: 18px;
	background: var(--wp--preset--color--navy);
	color: #fff;
	box-shadow: 0 30px 50px -30px rgba(31, 36, 102, 0.75);
	isolation: isolate;
}

.vt-box.vt-offer::after {
	content: "";
	position: absolute;
	top: -90px;
	right: -90px;
	z-index: -1;
	width: 240px;
	height: 240px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(252, 188, 52, 0.28), transparent 70%);
}

.vt-offer__label {
	color: rgba(255, 255, 255, 0.7);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.vt-box > .vt-offer__price {
	margin-top: 2px;
	color: #fff;
	font-size: 34px;
	letter-spacing: -0.01em;
}

.vt-box > .vt-offer__note {
	margin-top: 6px;
	color: rgba(255, 255, 255, 0.8);
	font-size: 14px;
	line-height: 1.5;
}

.vt-offer .vt-contact-actions.is-cta {
	margin-top: 18px;
}

.vt-offer .vt-contact-actions__cta--offer {
	box-shadow: 0 10px 24px -12px rgba(252, 188, 52, 0.9);
}

.vt-offer .vt-contact-actions__cta--whatsapp {
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: rgba(255, 255, 255, 0.1);
}

.vt-offer .vt-contact-actions__cta--whatsapp:hover {
	background: rgba(255, 255, 255, 0.18);
}

.vt-offer__perks {
	display: grid;
	gap: 8px;
	margin-top: 18px !important;
	padding: 16px 0 0;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	list-style: none;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.9);
}

.vt-offer__perks li {
	position: relative;
	padding-left: 26px;
}

.vt-offer__perks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	width: 16px;
	height: 16px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fcbc34' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Tarjeta del concesionario */
.vt-box.vt-dealer {
	border-radius: 18px;
}

.vt-dealer__photo img {
	box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(31, 36, 102, 0.15);
}

/* Secciones de detalle */
.vt-vehicle__details .vt-tabs {
	margin-top: 40px;
}

.vt-vehicle__details > .vt-vehicle__heading-section:first-child,
.vt-vehicle__details > .vt-tabs + .vt-vehicle__heading-section {
	margin-top: 32px;
}

.vt-vehicle__heading-section,
.vt-vehicle__details .vt-features__title,
.vt-vehicle__details .vt-axles__title,
.vt-vehicle__details .vt-vehicle__heading {
	position: relative;
	padding-left: 16px;
	letter-spacing: -0.005em;
}

/* Acento amarillo a la izquierda de los títulos de sección. */
.vt-vehicle__heading-section::before,
.vt-vehicle__details .vt-features__title::before,
.vt-vehicle__details .vt-axles__title::before,
.vt-vehicle__details .vt-vehicle__heading::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	bottom: 0.2em;
	width: 4px;
	border-radius: 4px;
	background: var(--wp--preset--color--yellow);
}

/* Hoja técnica en tarjeta, con filas alternas */
.vt-vehicle .vt-specs.is-list {
	padding: 20px 24px 24px;
	border: 1px solid var(--wp--preset--color--line-soft);
	border-radius: 18px;
	background: #fff;
}

.vt-vehicle .vt-specs.is-list .vt-specs__title {
	margin-bottom: 8px;
	color: var(--wp--preset--color--blue-strong);
	font-size: 13px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.vt-vehicle .vt-specs.is-list .vt-specs__row {
	padding: 10px 12px;
	border: 0;
	border-radius: 8px;
}

.vt-vehicle .vt-specs.is-list .vt-specs__row:nth-child(odd) {
	background: #f6f7fb;
}

/* Equipamiento por grupos en tarjetas suaves */
.vt-vehicle .vt-features__group {
	padding: 16px 18px;
	border-radius: 14px;
	background: #f6f7fb;
}

.vt-vehicle .vt-features__group-title {
	color: var(--wp--preset--color--blue-strong);
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* Ejes en tarjeta */
.vt-vehicle .vt-axles__list {
	padding: 20px 24px;
	border: 1px solid var(--wp--preset--color--line-soft);
	border-radius: 18px;
}

.vt-vehicle .vt-axles__item + .vt-axles__item {
	padding-top: 20px;
	border-top: 1px dashed var(--wp--preset--color--line);
}

.vt-vehicle .vt-feature__media img {
	border-radius: 18px;
}

.vt-know__item {
	border-radius: 18px;
	transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.vt-know__item:hover {
	border-color: transparent;
	box-shadow: 0 18px 40px -20px rgba(31, 36, 102, 0.35);
	transform: translateY(-3px);
}

.vt-vehicle__related .vt-grid-section__heading {
	font-size: var(--wp--preset--font-size--x-large);
}

@media (max-width: 900px) {
	.vt-vehicle__head {
		align-items: flex-start;
		padding-top: 24px;
	}

	.vt-vehicle .vt-specs.is-list {
		padding: 16px;
	}

	/* Hueco para la barra de contacto fija. */
	.vt-vehicle {
		padding-bottom: 72px;
	}
}

/* Los títulos de "Estado" y "Cosas que debes saber" separan con margen, no con
 * relleno, para que el acento amarillo no se estire hacia arriba. */
.vt-vehicle__details > .vt-vehicle__heading {
	margin-top: 64px;
	padding-top: 0;
	border-top: 0;
}

/* ===========================================================================
 * ZONAS: Ocasión (amarillo) y Nuevos (azul)
 * El plugin añade al <body> la clase vt-zone-ocasion o vt-zone-nuevo.
 * ======================================================================== */

body {
	--vt-accent: var(--wp--preset--color--yellow);
}

body.vt-zone-nuevo {
	--vt-accent: var(--wp--preset--color--navy);
}

.vt-page-hero .vt-page-title::after,
.vt-vehicle__heading-section::before,
.vt-vehicle__details .vt-features__title::before,
.vt-vehicle__details .vt-axles__title::before,
.vt-vehicle__details .vt-vehicle__heading::before,
.vt-tabs__link::after {
	background: var(--vt-accent);
}

.vt-section-nav__heading {
	border-bottom-color: var(--vt-accent);
}

.vt-section-nav__link[aria-current="page"] {
	box-shadow: inset 4px 0 0 var(--vt-accent);
}

/* Cabecera de las páginas de zona (/nuevos/ y /flota/): igual que el resto de
 * páginas, solo con una etiqueta pequeña y un punto del color de la zona. */
.vt-zone-hero__kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	color: var(--wp--preset--color--muted);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.vt-zone-hero__kicker::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--vt-accent);
}

.wp-block-post-content > .vt-zone-hero + .wp-block-vt-vehicle-catalog {
	margin-top: 32px;
}

.vt-zone-more {
	margin-top: 80px;
}

/* Etiquetas de condición: azul en nuevos, amarillo en ocasión. */
.vt-gallery__badge--nuevo {
	background: var(--wp--preset--color--navy);
}

.vt-chip.is-nuevo {
	background: rgba(31, 36, 102, 0.1);
	color: var(--wp--preset--color--navy);
}



/* Texto solo para lectores de pantalla y buscadores (p. ej. el H1 de los listados). */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.wp-block-post-content > .screen-reader-text:first-child + .wp-block-vt-vehicle-catalog {
	margin-top: 24px;
}

/* Tarjeta de precio con fondo liso, sin el brillo de la esquina. */
.vt-box.vt-offer::after {
	display: none;
}

/* ---------------------------------------------------------------------------
 * WhatsApp: color corporativo y botón flotante
 * ------------------------------------------------------------------------- */

:root {
	--vt-whatsapp: #25d366;
	--vt-whatsapp-dark: #1ebe5b;
	--vt-icon-wa-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 18.2c-1.5 0-3-.4-4.2-1.1l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8-.2-.1-.4-.1-.6.1l-.8 1c-.1.2-.3.2-.5.1-.7-.3-1.4-.7-2.1-1.3-.5-.5-1-1.1-1.3-1.7-.1-.2 0-.4.1-.5l.4-.4.2-.4v-.4l-.8-1.9c-.2-.5-.4-.4-.6-.4h-.5c-.2 0-.5.1-.7.3-.6.6-.9 1.4-.9 2.2.1.9.4 1.8 1 2.6 1.1 1.6 2.5 2.9 4.2 3.7.5.2.9.4 1.4.5.5.2 1 .2 1.5.1.6-.1 1.2-.5 1.5-1 .2-.4.2-.8.1-1.2l-.4-.2z'/%3E%3C/svg%3E");
}

/* Botones de WhatsApp de la ficha (tarjeta de precio y barra móvil). */
.vt-offer .vt-contact-actions__cta--whatsapp,
.vt-contact-actions__cta--whatsapp {
	border: 0;
	background: var(--vt-whatsapp);
	color: #fff;
}

.vt-offer .vt-contact-actions__cta--whatsapp:hover,
.vt-contact-actions__cta--whatsapp:hover {
	background: var(--vt-whatsapp-dark);
	color: #fff;
}

.vt-bar__icon--whatsapp {
	background-color: var(--vt-whatsapp);
}

/* Botón flotante */
.vt-wa-float {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 95;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	width: 58px;
	height: 58px;
	border-radius: 999px;
	background: var(--vt-whatsapp) var(--vt-icon-wa-white) right 15px center / 28px no-repeat;
	box-shadow: 0 14px 30px -12px rgba(37, 211, 102, 0.75), 0 4px 10px rgba(0, 0, 0, 0.15);
	overflow: hidden;
	text-decoration: none;
	transition: width 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.2s ease, transform 0.2s ease;
}

.vt-wa-float__label {
	padding: 0 64px 0 20px;
	color: #fff;
	font-weight: 700;
	white-space: nowrap;
	opacity: 0;
	transition: opacity 0.2s ease;
}

@media (hover: hover) {
	.vt-wa-float:hover {
		width: 172px;
		background-color: var(--vt-whatsapp-dark);
		text-decoration: none;
	}

	.vt-wa-float:hover .vt-wa-float__label {
		opacity: 1;
	}
}

/* Volver arriba, por encima del botón de WhatsApp. */
.vt-to-top {
	bottom: 90px;
	right: 26px;
}

@media (max-width: 900px) {
	.vt-wa-float {
		right: 16px;
		bottom: 16px;
		width: 54px;
		height: 54px;
		background-position: center;
	}

	/* En la ficha móvil la barra de contacto ya incluye WhatsApp. */
	body:has(.is-bar.is-visible) .vt-wa-float {
		opacity: 0;
		pointer-events: none;
	}

	body:has(.is-bar.is-visible) .vt-to-top {
		bottom: 88px;
	}

	.vt-to-top {
		bottom: 82px;
		right: 20px;
	}
}

/* ---------------------------------------------------------------------------
 * Páginas legales
 * ------------------------------------------------------------------------- */

.vt-legal {
	max-width: 860px;
	margin: 32px auto 0;
}

.vt-legal h2 {
	margin-top: 2em;
	font-size: 20px;
	font-weight: 700;
	color: var(--wp--preset--color--navy);
}

.vt-legal-table {
	overflow-x: auto;
}

.vt-legal-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.vt-legal-table th,
.vt-legal-table td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--wp--preset--color--line-soft);
	text-align: left;
	vertical-align: top;
}

.vt-legal-table th {
	background: var(--wp--preset--color--surface);
	font-weight: 700;
}

/* ---------------------------------------------------------------------------
 * Quiénes somos: bloque de financiación (MOVES III) y llamada a la acción
 * ------------------------------------------------------------------------- */

.vt-funding {
	margin-top: 64px;
	padding: 32px;
	border: 1px solid var(--wp--preset--color--line-soft);
	border-radius: 18px;
	background: #fff;
}

.vt-funding > * {
	margin-block: 0;
}

.vt-funding > * + * {
	margin-block-start: 14px;
}

.vt-funding h3 {
	font-size: 20px;
	font-weight: 700;
	color: var(--wp--preset--color--navy);
}

.vt-funding p {
	color: var(--wp--preset--color--text);
	line-height: 1.65;
}

.vt-funding__logos img {
	display: block;
	width: 100%;
	height: auto;
}

.vt-funding__note {
	font-size: 14px;
	font-weight: 600;
}

.vt-cta-band {
	margin-top: 64px;
	padding: 40px;
	border-radius: 18px;
	background: var(--wp--preset--color--surface);
	text-align: center;
}

.vt-cta-band > * {
	margin-block: 0;
}

.vt-cta-band > * + * {
	margin-block-start: 14px;
}

.vt-cta-band .wp-block-buttons {
	justify-content: center;
	margin-top: 22px;
}

/* ---------------------------------------------------------------------------
 * Página de contacto
 * ------------------------------------------------------------------------- */

.vt-contact-layout {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 32px;
	align-items: start;
	margin-top: 40px;
}

.vt-contact-layout > *,
.vt-contact-cards > * {
	margin-block: 0;
}

.vt-contact-cards {
	display: grid;
	gap: 12px;
}

.vt-contact-card {
	position: relative;
	padding: 18px 20px 18px 78px;
	border: 1px solid var(--wp--preset--color--line-soft);
	border-radius: 14px;
	background: #fff;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.vt-contact-card:hover {
	border-color: rgba(31, 36, 102, 0.25);
	box-shadow: 0 12px 26px -18px rgba(31, 36, 102, 0.5);
}

.vt-contact-card::before {
	content: "";
	position: absolute;
	left: 20px;
	top: 50%;
	width: 42px;
	height: 42px;
	margin-top: -21px;
	border-radius: 50%;
	background: var(--wp--preset--color--navy) var(--vt-icon-place) center / 20px no-repeat;
}

.vt-contact-card--phone::before { background-image: var(--vt-icon-phone); }
.vt-contact-card--mail::before { background-image: var(--vt-icon-mail); }
.vt-contact-card--whatsapp::before { background-color: var(--vt-whatsapp); background-image: var(--vt-icon-wa-white); }

.vt-contact-card p {
	margin: 0;
}

.vt-contact-card__title {
	color: var(--wp--preset--color--muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.vt-contact-card__text {
	margin-top: 2px !important;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.45;
}

.vt-contact-form {
	padding: 28px;
	border-radius: 18px;
}

.vt-contact-form h2 {
	font-size: var(--wp--preset--font-size--x-large);
}

@media (max-width: 900px) {
	.vt-contact-layout {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------------------------------------------------------------------------
 * Cabecera en móvil: barra superior en una sola línea fina y botón
 * "Servicios" centrado en el hueco que queda a la derecha del logo.
 * ------------------------------------------------------------------------- */
@media (max-width: 600px) {
	.vt-topbar__inner {
		flex-wrap: nowrap !important;
		justify-content: space-between !important;
		min-height: 34px;
		padding-block: 4px;
		gap: 12px;
		font-size: 12px;
	}

	.vt-topbar .vt-review-badge__link {
		gap: 6px;
	}

	.vt-topbar .vt-review-badge__label {
		display: none;
	}

	.vt-topbar .vt-review-badge__stars {
		width: 76px;
		height: auto;
	}

	.vt-topbar__phone {
		white-space: nowrap;
	}

	.vt-topbar__phone a::before {
		width: 13px;
		height: 13px;
		margin-right: 6px;
		vertical-align: -2px;
	}

	/* "Servicios" alineado a la derecha, con el borde del buscador. */
	.vt-header__services {
		flex: 1 1 auto;
		justify-content: flex-end;
		margin-left: 0;
	}
}

/* ---------------------------------------------------------------------------
 * Distintivo "Concesionario oficial IVECO · Exportación" junto a las reseñas.
 * Pendiente de sustituir el escudo por el logotipo oficial que facilite IVECO.
 * ------------------------------------------------------------------------- */
.vt-topbar__left {
	gap: 16px;
}

.vt-topbar__left > * {
	margin: 0;
}

.vt-topbar__dealer {
	padding-left: 16px;
	border-left: 1px solid rgba(255, 255, 255, 0.3);
	white-space: nowrap;
}

.vt-topbar__dealer a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-weight: 600;
}

.vt-topbar__dealer a::before {
	content: "";
	width: 15px;
	height: 15px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fcbc34' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.4 8 11 4.6-1.6 8-6 8-11V5z'/%3E%3Cpath d='m8.5 12 2.5 2.5 4.5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.vt-topbar__dealer-short {
	display: none;
}

@media (max-width: 600px) {
	.vt-topbar__left {
		gap: 10px;
	}

	.vt-topbar .vt-review-badge__count {
		display: none;
	}

	.vt-topbar__dealer {
		padding-left: 10px;
	}

	.vt-topbar__dealer-long {
		display: none;
	}

	.vt-topbar__dealer-short {
		display: inline;
	}
}

/* Aire entre la franja Ocasión / Nuevos y el primer bloque de la página
 * (hero de la portada y de la página de IVECO). */
.wp-block-post-content > .vt-landing-hero:first-child,
.wp-block-post-content > .vt-home-top:first-child {
	margin-block-start: 40px;
}

@media (max-width: 900px) {
	.wp-block-post-content > .vt-landing-hero:first-child,
	.wp-block-post-content > .vt-home-top:first-child {
		margin-block-start: 24px;
	}
}

/* Barra superior: reseñas y distintivo a la izquierda; frase y teléfono
 * agrupados a la derecha (sin texto suelto en el centro). */
.vt-topbar__claim {
	margin-left: auto !important;
	padding-right: 16px;
	border-right: 1px solid rgba(255, 255, 255, 0.3);
	opacity: 0.85;
}

@media (max-width: 1100px) {
	.vt-topbar__claim {
		display: none;
	}
}

/* Asesor sin foto: círculo con iniciales. */
.vt-dealer__avatar {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin: 0 auto;
	border-radius: 50%;
	background: var(--wp--preset--color--navy);
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.04em;
	box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(31, 36, 102, 0.15);
}

.vt-dealer__advisor .vt-dealer__avatar {
	margin: 0;
}

/* ===========================================================================
 * BLOG
 * ======================================================================== */

.vt-blog {
	max-width: calc(1232px + 2 * var(--wp--style--root--padding-left));
	margin-inline: auto;
	padding: 48px var(--wp--style--root--padding-left) 0;
}

.vt-blog > * {
	margin-block: 0;
}

.vt-blog__head {
	margin-bottom: 36px;
	text-align: center;
}

.vt-blog__head > * {
	margin-block: 0;
}

.vt-blog__title {
	margin-top: 4px !important;
	font-size: clamp(30px, 4vw, 46px);
	font-weight: 700;
	letter-spacing: -0.01em;
}

.vt-blog__intro {
	max-width: 640px;
	margin: 12px auto 0 !important;
	color: var(--wp--preset--color--muted);
	font-size: 17px;
}

/* Categorías como píldoras */
.vt-blog__cats {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 24px 0 0 !important;
	padding: 0;
	list-style: none;
}

.vt-blog__cats li a {
	display: inline-block;
	padding: 7px 16px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	color: var(--wp--preset--color--text);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.vt-blog__cats li a:hover,
.vt-blog__cats li.current-cat a {
	border-color: var(--wp--preset--color--navy);
	background: var(--wp--preset--color--navy);
	color: #fff;
	text-decoration: none;
}

.vt-blog__grid {
	gap: 28px 24px !important;
}

/* Tarjeta de artículo */
.vt-post-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--line-soft);
	border-radius: 18px;
	background: #fff;
	transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.vt-post-card > * {
	margin-block: 0;
}

.vt-post-card:hover {
	border-color: transparent;
	box-shadow: 0 18px 40px -16px rgba(31, 36, 102, 0.3);
	transform: translateY(-4px);
}

.vt-post-card__media {
	margin: 0;
	overflow: hidden;
}

.vt-post-card__media img {
	display: block;
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.vt-post-card:hover .vt-post-card__media img {
	transform: scale(1.05);
}

.vt-post-card__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 18px 20px 22px;
}

.vt-post-card__body > * {
	margin: 0;
}

.vt-post-card__meta {
	gap: 6px 14px;
	font-size: 13px;
}

.vt-post-card__meta > * {
	margin: 0;
}

.vt-post-card__cat a {
	color: var(--wp--preset--color--blue-strong);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
}

.vt-post-card__date {
	color: var(--wp--preset--color--muted);
}

.vt-post-card__title {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
}

.vt-post-card__title a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

/* Toda la tarjeta clicable a través del título. */
.vt-post-card {
	position: relative;
}

.vt-post-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.vt-post-card__cat {
	position: relative;
	z-index: 1;
}

.vt-post-card__excerpt {
	color: var(--wp--preset--color--text);
	font-size: 15px;
	line-height: 1.55;
}

.vt-post-card__excerpt .wp-block-post-excerpt__more-text {
	display: none;
}

.vt-blog__pagination {
	gap: 6px;
	margin-top: 48px !important;
}

.vt-blog__pagination a,
.vt-blog__pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 10px;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.vt-blog__pagination .page-numbers.current {
	border-color: var(--wp--preset--color--navy);
	background: var(--wp--preset--color--navy);
	color: #fff;
}

/* ---------------------------------------------------------------------------
 * Artículo
 * ------------------------------------------------------------------------- */

.vt-article {
	--vt-read: 760px;
	padding: 48px var(--wp--style--root--padding-left) 0;
}

.vt-article > * {
	margin-block: 0;
}

.vt-article__head {
	max-width: var(--vt-read);
	margin: 0 auto;
	text-align: center;
}

.vt-article__head > * {
	margin-block: 0;
}

.vt-article__title {
	margin-top: 14px !important;
	font-size: clamp(30px, 4.4vw, 50px);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.015em;
}

.vt-article__lead {
	margin-top: 16px !important;
	color: var(--wp--preset--color--muted);
	font-size: 20px;
	line-height: 1.5;
}

.vt-article__lead .wp-block-post-excerpt__more-text {
	display: none;
}

.vt-article__cover {
	max-width: 1100px;
	margin: 40px auto 0 !important;
}

.vt-article__cover img {
	border-radius: 22px;
	box-shadow: 0 40px 70px -45px rgba(17, 24, 39, 0.6);
}

.vt-article__content {
	max-width: var(--vt-read);
	margin: 48px auto 0 !important;
	font-size: 18px;
	line-height: 1.8;
}


.vt-article__content .wp-block-image img {
	border-radius: 14px;
}

.vt-article__footer {
	max-width: var(--vt-read);
	margin: 40px auto 0 !important;
	padding-top: 20px;
	border-top: 1px solid var(--wp--preset--color--line-soft);
	gap: 12px;
}

.vt-article__terms {
	margin: 0;
	font-size: 14px;
	color: var(--wp--preset--color--muted);
}

.vt-article__cta {
	max-width: var(--vt-read);
	margin: 56px auto 0 !important;
	padding: 36px;
	border-radius: 22px;
	background: var(--wp--preset--color--navy);
	color: #fff;
	text-align: center;
}

.vt-article__cta > * {
	margin-block: 0;
}

.vt-article__cta > * + * {
	margin-block-start: 12px;
}

.vt-article__cta h2 {
	color: #fff;
	font-size: 26px;
}

.vt-article__cta .wp-block-buttons {
	justify-content: center;
	margin-top: 20px !important;
}

.vt-article__related {
	max-width: 1232px;
	margin: 72px auto 0 !important;
}

.vt-article__related:not(:has(.vt-post-card)) {
	display: none;
}

@media (max-width: 900px) {
	.vt-article__related .vt-blog__grid {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.vt-article__content {
		font-size: 17px;
	}
}

/* ---------------------------------------------------------------------------
 * Selector de idioma (TranslatePress) en la barra superior
 * ------------------------------------------------------------------------- */
.vt-topbar__lang {
	position: relative;
	z-index: 200;
	padding-left: 16px;
	border-left: 1px solid rgba(255, 255, 255, 0.3);
}

/* TranslatePress 3.x: un "anchor" invisible reserva el sitio y el "overlay"
 * (posición absoluta) es el botón real, que crece hacia abajo al abrirse. */
.vt-topbar__lang .trp-shortcode-switcher {
	padding: 3px 0;
}

.vt-topbar__lang .trp-current-language-item__wrapper:not(.trp-hide-arrow) {
	padding-right: 4px;
}

.vt-topbar__lang .trp-language-item {
	gap: 7px;
	padding: 4px 6px 4px 8px;
}

.vt-topbar__lang .trp-language-item-name {
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.vt-topbar__lang .trp-shortcode-arrow {
	width: 16px;
	height: 16px;
}

/* Abierto: tarjeta blanca con texto oscuro. */
.vt-topbar__lang .trp-shortcode-overlay.is-open {
	--text: var(--wp--preset--color--ink);
	--text-hover: var(--wp--preset--color--ink);
	--bg-hover: var(--wp--preset--color--surface);
	background: #fff;
	box-shadow: 0 18px 40px -16px rgba(17, 24, 39, 0.45);
}

.vt-topbar__lang .trp-switcher-dropdown-list .trp-language-item {
	padding: 8px 10px;
}

@media (max-width: 600px) {
	.vt-topbar__lang {
		padding-left: 6px;
	}

	/* En móvil, solo la bandera en el botón (la lista sí lleva el nombre). */
	.vt-topbar__lang .trp-current-language-item__wrapper .trp-language-item-name {
		display: none;
	}

	.vt-topbar__lang .trp-shortcode-overlay {
		right: 0;
		left: auto;
	}
}
