/*
 * JV Tractors component rules.
 *
 * Mobile-first (375 px base, then 768 / 1024 px). Every color, size and spacing
 * value comes from theme.json presets (--wp--preset--*) or custom tokens
 * (--wp--custom--*). Icons are SVG masks painted with currentColor, so they stay
 * decorative and inherit the text color.
 *
 * The quote and WhatsApp controls are blocks of the jv-quote plugin; the plugin ships
 * their structure (layout, hiding, touch targets), this file their look.
 */

/* ---------- Base ---------- */

/*
 * Focus ring: every part comes from the custom focus-ring token in theme.json
 * (width, style, color, offset), so the outline is always complete.
 */
:root {
	/* Measured height of the sticky header (71-75px at 320-1440px), for scroll-padding. */
	--jv-header-height: 4.75rem;
	--jv-focus-outline: var(--wp--custom--focus-ring--width) var(--wp--custom--focus-ring--style) var(--wp--custom--focus-ring--color);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: var(--jv-focus-outline);
	outline-offset: var(--wp--custom--focus-ring--offset);
}

.wp-site-blocks > .jv-main,
.wp-site-blocks > footer {
	margin-block-start: 0;
}

main.jv-main {
	padding-block-end: var(--wp--preset--spacing--80);
}

main.jv-main > * + * {
	margin-block-start: var(--wp--preset--spacing--70);
}

main.jv-main > .jv-band + .jv-band {
	margin-block-start: var(--wp--preset--spacing--40);
}

main.jv-main:not(.jv-main--home) {
	padding-block-start: var(--wp--preset--spacing--60);
}

/* WooCommerce defaults the breadcrumbs to wide; align them with the content. */
main.jv-main > .wp-block-woocommerce-breadcrumbs.alignwide {
	max-width: var(--wp--style--global--content-size);
}

/* Breadcrumb and category links are short words: give them a 44 px target. */
.jv-main .wp-block-woocommerce-breadcrumbs a,
.jv-main .wp-block-post-terms a {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	min-width: var(--wp--custom--touch-target);
	min-height: var(--wp--custom--touch-target);
}

main.jv-main > .wp-block-woocommerce-breadcrumbs + * {
	margin-block-start: var(--wp--preset--spacing--40);
}

.wp-element-button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--30);
	min-height: var(--wp--custom--touch-target);
	text-decoration: none;
}

/*
 * Decorative icons: SVG masks painted with the current text color. Each component sets
 * --jv-icon; without it the fallback is a fully transparent mask, so a missing icon
 * leaves an empty space instead of a solid currentColor box.
 */
.jv-quote-cart-link .wp-block-button__link::before,
.jv-quote-add .wp-block-button__link::before,
.jv-quote-send .wp-block-button__link::after,
.jv-quote-advisor .wp-block-button__link::before,
.jv-quote-photo::before,
.jv-quote-photo-button .wp-block-button__link::before,
.jv-card__details::after,
.jv-search .wp-block-search__inside-wrapper::before,
.jv-search .wp-block-search__button::after,
.jv-band::before,
.jv-steps > li::after,
.jv-site-contact__map a::before,
.jv-footer__social .jv-quote-whatsapp-icon::before {
	content: "";
	flex: none;
	background-color: currentColor;
	-webkit-mask: var(--jv-icon, linear-gradient(transparent, transparent)) center / contain no-repeat;
	mask: var(--jv-icon, linear-gradient(transparent, transparent)) center / contain no-repeat;
}

/* ---------- Header ---------- */

/* The site header (logo, menu and "Mi cotización") stays at the top while the page
   scrolls. Pure CSS: the template part is a direct child of the tall .wp-site-blocks.
   It sits under the admin bar for logged-in staff (the bar only scrolls away below
   600px), and above page content but below the navigation overlay. */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
}

@media (max-width: 600px) {
	.admin-bar .wp-site-blocks > header.wp-block-template-part {
		top: 0;
	}
}

/* Anchor jumps and keyboard focus never end up hidden under the sticky header
   (WCAG 2.4.11 Focus Not Obscured). */
html {
	scroll-padding-top: calc(var(--jv-header-height) + var(--wp-admin--admin-bar--height, 0px) + 0.5rem);
}

.jv-header {
	background-color: var(--wp--preset--color--white);
	border-block-end: 1px solid var(--wp--preset--color--gray-200);
	padding-block: var(--wp--preset--spacing--30);
}

.jv-header__bar {
	gap: var(--wp--preset--spacing--30);
}

.jv-logo {
	display: inline-flex;
	align-items: center;
	min-height: var(--wp--custom--touch-target);
	margin-inline-end: auto;
}

/*
 * The logo is 8:1 (emblem + wordmark), so its text is about half as tall as its width
 * suggests. Phones give it the room the collapsed menu leaves (the cart and menu
 * buttons take about 11.5rem with the gaps); from 768 px the navigation shares the bar.
 * The footer keeps the 8:1 <img> of assets/logo.svg.
 */
.jv-logo img {
	display: block;
	width: clamp(9.5rem, 100vw - 11.5rem, 13rem);
	height: auto;
	aspect-ratio: 8;
}

/*
 * The header logo is inline SVG (patterns/header.php) with the emblem drawn 1.5x larger:
 * its viewBox is 55.6 units wider than logo.svg's 1224 (1279.6 x 153), so every width
 * below is the 8:1 logo's width times --jv-logo-header-scale and the wordmark keeps its
 * size. The larger emblem overflows the box on the left, above and below (overflow:
 * visible), so the box, and the header, keep their size and nothing shifts.
 */
.jv-logo__svg {
	--jv-logo-header-scale: 1.0454;
	display: block;
	width: calc(var(--jv-logo-header-scale) * clamp(9.5rem, 100vw - 11.5rem, 13rem));
	height: auto;
	aspect-ratio: 1279.6 / 153;
	overflow: visible;
}

/*
 * The excavator digs and then pushes the wordmark as the page scrolls down, and undoes
 * it as it scrolls up, so the bucket pulls the letters back: tied to the scroll position
 * (scroll-driven animations, no script). Three nested groups make a kinematic chain, each
 * turning about its pin in the emblem's own coordinates (the 1.5x group of the SVG): the
 * boom about its foot on the upper structure (87, 71), the stick about the boom tip
 * (156, 25.5) and the bucket about the stick tip (158.5, 91.5). Over the first 150vh of
 * scroll (or the whole scroll on shorter pages): the boom lowers while the stick pulls in
 * and the bucket curls (30 %); the stick swings out and the bucket opens until its back
 * touches the "J" (63 %); then both keep going and the wordmark slides 46 user units to
 * the right, in step with the bucket (px in an SVG transform are user units, so the push
 * scales with the logo: about 6 px on phones, 12 px on desktop, always clear of the menu
 * and the cart). Browsers without scroll timelines, and visitors who prefer reduced
 * motion, see the static logo.
 */
@supports (animation-timeline: scroll()) {
	@media (prefers-reduced-motion: no-preference) {
		.jv-logo__boom,
		.jv-logo__stick,
		.jv-logo__bucket,
		.jv-logo__wordmark {
			transform-box: view-box;
			animation: linear both;
			animation-timeline: scroll(root block);
			animation-range: 0 min(150vh, 100%);
		}

		.jv-logo__boom {
			transform-origin: 87px 71px;
			animation-name: jv-logo-boom;
		}

		.jv-logo__stick {
			transform-origin: 156px 25.5px;
			animation-name: jv-logo-stick;
		}

		.jv-logo__bucket {
			transform-origin: 158.5px 91.5px;
			animation-name: jv-logo-bucket;
		}

		.jv-logo__wordmark {
			animation-name: jv-logo-push;
		}
	}
}

@keyframes jv-logo-boom {
	30% {
		transform: rotate(5deg);
	}

	55% {
		transform: rotate(2deg);
	}

	to {
		transform: rotate(-2deg);
	}
}

@keyframes jv-logo-stick {
	30% {
		transform: rotate(8deg);
	}

	55% {
		transform: rotate(-8deg);
	}

	to {
		transform: rotate(-25deg);
	}
}

@keyframes jv-logo-bucket {
	30% {
		transform: rotate(30deg);
	}

	55% {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(-30deg);
	}
}

/* The bucket's back reaches the "J" at 63 % and moves almost linearly from there. */
@keyframes jv-logo-push {
	63% {
		transform: translateX(0);
	}

	to {
		transform: translateX(46px);
	}
}

.jv-header__nav {
	order: 3;
}

.jv-header__actions {
	order: 2;
}

.jv-header__nav .wp-block-navigation__responsive-container-open,
.jv-header__nav .wp-block-navigation__responsive-container-close {
	align-items: center;
	justify-content: center;
	width: var(--wp--custom--touch-target);
	height: var(--wp--custom--touch-target);
}

.jv-header__nav .wp-block-navigation-item__content {
	color: var(--wp--preset--color--gray-900);
	padding-block: var(--wp--preset--spacing--30);
}

.jv-header__nav .wp-block-navigation-item__content:hover,
.jv-header__nav .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--primary-strong);
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.jv-header__nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--60) var(--wp--style--root--padding-right) var(--wp--preset--spacing--60) var(--wp--style--root--padding-left);
}

.jv-header__nav .is-menu-open .wp-block-navigation-item__content {
	font-size: var(--wp--preset--font-size--large);
}

/*
 * Core draws the submenu toggle as a 0.6em chevron (about 10 px). Give it a 44 px
 * target. The vertical negative margins keep the row height; there is no negative
 * inline margin, so the next menu item never overlaps (and steals) part of the target.
 */
.jv-header__nav .wp-block-navigation-submenu > .wp-block-navigation__submenu-icon {
	box-sizing: border-box;
	width: var(--wp--custom--touch-target);
	height: var(--wp--custom--touch-target);
	margin-block: calc((var(--wp--custom--touch-target) - 0.6em) / -2);
	margin-inline: 0;
	padding: calc((var(--wp--custom--touch-target) - 0.6em) / 2) 0;
	text-align: start;
}

.jv-header__nav .wp-block-navigation-submenu > .wp-block-navigation__submenu-icon svg {
	width: 0.6em;
	height: 0.6em;
}

.jv-header__nav .wp-block-navigation__submenu-container {
	border: 1px solid var(--wp--preset--color--gray-200);
	border-radius: var(--wp--custom--radius--md);
	padding-block: var(--wp--preset--spacing--20);
}

.jv-header__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding-inline: var(--wp--preset--spacing--40);
}

/* "Mi cotización": icon-only below 1024 px, keeps its accessible name. */
.jv-quote-cart-link .wp-block-button__link {
	--jv-icon: url(../icons/quote.svg);
	position: relative;
	min-height: 46px;
	min-width: 46px;
	padding: 0;
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	border: 1.5px solid var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--large);
}

.jv-quote-cart-link .wp-block-button__link::before {
	width: 1.375rem;
	height: 1.5rem;
}

.jv-quote-cart-link .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--surface-warm);
	color: var(--wp--preset--color--ink);
}

/* Unit count badge on the top-right corner; hidden by the plugin while the list is empty. */
.jv-quote-cart-link__count {
	position: absolute;
	inset-block-start: calc(var(--wp--preset--spacing--20) * -1);
	inset-inline-end: calc(var(--wp--preset--spacing--20) * -1);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.375rem;
	height: 1.375rem;
	padding-inline: var(--wp--preset--spacing--10);
	border-radius: var(--wp--custom--radius--pill);
	background-color: var(--wp--preset--color--primary-strong);
	color: var(--wp--preset--color--white);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1;
}

.jv-quote-cart-link__label {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Core collapses the Navigation at 600 px; the design collapses it below 768 px. */
@media (min-width: 600px) and (max-width: 767.98px) {
	.jv-header__nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.jv-header__nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

@media (min-width: 768px) {
	.jv-header__bar {
		gap: var(--wp--preset--spacing--60);
	}

	.jv-logo {
		margin-inline-end: 0;
	}

	/* Bigger from 768 px, as wide as the menu and the cart button leave room for
	   (wordmark of the 259 px logo at 768, of the 312 px one from about 830 px). */
	.jv-logo__svg {
		width: calc(var(--jv-logo-header-scale) * clamp(13rem, 92vw - 28rem, 19.5rem));
	}

	.jv-header__nav {
		order: 0;
		flex: 1 1 auto;
	}

	.jv-header__actions {
		order: 0;
	}

	.jv-header__nav .wp-block-navigation__container {
		gap: var(--wp--preset--spacing--60);
	}
}

@media (min-width: 1024px) {
	.jv-header__bar {
		gap: var(--wp--preset--spacing--80);
	}

	/* The wider gaps and the "Mi cotización" label take room back: the logo is 264 px
	   at 1024 (the wordmark 4 % smaller than at 768) and grows with the viewport until
	   its wordmark is the 312 px logo's again, from about 1086 px. */
	.jv-logo__svg {
		width: clamp(16.5rem, 100vw - 47.5rem, var(--jv-logo-header-scale) * 19.5rem);
	}

	.jv-quote-cart-link .wp-block-button__link {
		padding-inline: var(--wp--preset--spacing--50);
	}

	.jv-quote-cart-link__label {
		position: static;
		width: auto;
		height: auto;
		margin: 0;
		overflow: visible;
		clip: auto;
	}
}

/* ---------- Hero ---------- */

main.jv-main > .jv-hero {
	margin-block-start: 0;
}

main.jv-main > .jv-hero + * {
	margin-block-start: var(--wp--preset--spacing--50);
}

/*
 * The whole band is a light cool gray, as in the mockup: `hero-start` (#FBFBFB) on the
 * text side to `hero-end` (#F3F5F7) behind the art. Mobile and tablet stack text over
 * art, so the gradient runs top to bottom; from 1024 px it runs left to right. The next
 * section stays on the white page, so the band ends with a clean edge.
 * `primary-strong` drops to 4.16-4.39:1 on this gray, below AA, so orange text in the
 * band uses `primary-deep` (4.63:1 even on `hero-end`). `primary` stays on the large
 * title line and the camera icon: 3.10:1 or more, and both need 3:1.
 */
.jv-hero {
	display: grid;
	overflow: hidden;
	background-color: var(--wp--preset--color--hero-start);
	background-image: linear-gradient(180deg, var(--wp--preset--color--hero-start), var(--wp--preset--color--hero-end));
}

/* Before `.jv-quote-photo:hover` in the source, so the hover color still applies. */
.jv-hero .jv-quote-photo {
	color: var(--wp--preset--color--primary-deep);
}

.jv-hero > * {
	margin-block: 0;
}

.jv-hero__content {
	padding: var(--wp--preset--spacing--60) var(--wp--style--root--padding-right) var(--wp--preset--spacing--40) var(--wp--style--root--padding-left);
}

.jv-hero__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--display);
	letter-spacing: -0.01em;
}

.jv-hero__accent {
	display: block;
	color: var(--wp--preset--color--primary);
}

/* Registered mark in the copy: ink, whatever the colour of the text around it. */
.jv-reg {
	color: var(--wp--preset--color--ink);
}

/* In large headings: a small superscript that does not open the line height. */
.wp-block-heading .jv-reg {
	font-size: 0.45em;
	line-height: 0;
	vertical-align: super;
}

.jv-hero__content .jv-hero__lead {
	max-width: 22em;
	margin-block-start: var(--wp--preset--spacing--40);
	color: var(--wp--preset--color--gray-700);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 500;
	line-height: 1.25;
}

.jv-hero__content .jv-search {
	max-width: 33.5rem;
	margin-block-start: var(--wp--preset--spacing--60);
}

.jv-hero__content .jv-hero__photo {
	margin-block-start: var(--wp--preset--spacing--20);
}

/*
 * The art box has the image's aspect ratio (width/height attributes, height auto), so
 * the stripes can be placed in container units (cqw) of the image itself.
 */
.jv-hero__media {
	position: relative;
	isolation: isolate;
	container-type: inline-size;
	/* Flush right, so the strong band runs off the viewport edge as in the mockup. */
	justify-self: end;
	width: 100%;
	max-width: 36rem;
	margin: 0;
	overflow: clip;
}

.jv-hero__media img {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: auto;
}

/*
 * Three slanted bands behind the art, measured on the mockup at 1440 px (left to
 * right: light orange, peach, strong orange; the last one is cut by the top edge and
 * runs off the right edge). Each band is a skewed box; its top edge stays in place.
 */
.jv-hero__stripes > span {
	position: absolute;
	transform: skewX(-35deg);
	transform-origin: top left;
}

.jv-hero__stripes > span:nth-child(1) {
	top: 9cqw;
	left: 39.2cqw;
	width: 12.7cqw;
	height: 26cqw;
	background-color: var(--wp--preset--color--primary-soft);
}

.jv-hero__stripes > span:nth-child(2) {
	top: 3.9cqw;
	left: 54.1cqw;
	width: 25.2cqw;
	height: 30cqw;
	background-color: var(--wp--preset--color--peach);
}

.jv-hero__stripes > span:nth-child(3) {
	top: 0;
	left: 85.8cqw;
	width: 40cqw;
	height: 22.4cqw;
	background-color: var(--wp--preset--color--primary);
}

@media (min-width: 1024px) {
	.jv-hero {
		/*
		 * Columns: gutter | text | art | gutter. Text gets ~58% below the content width and
		 * half of it from there up; the art takes the rest and runs to the right edge.
		 */
		grid-template-columns:
			minmax(var(--wp--style--root--padding-left), 1fr)
			min(calc(58% - var(--wp--style--root--padding-left)), calc(var(--wp--style--global--content-size) * 0.5))
			minmax(0, calc(var(--wp--style--global--content-size) * 0.5))
			minmax(0, 1fr);
		align-items: start;
		/* Left to right, about #F7F8F9 in the middle (the mockup's center is #F8F9FA). */
		background-image: linear-gradient(90deg, var(--wp--preset--color--hero-start), var(--wp--preset--color--hero-end));
	}

	/*
	 * Each title line stays on one line with the relaxed tracking: the title may run
	 * into the gap before the art (spacing 50, inside the art column's empty margin).
	 */
	.jv-hero__title {
		margin-inline-end: calc(-1 * var(--wp--preset--spacing--50));
	}

	.jv-hero__content {
		grid-row: 1;
		grid-column: 2;
		align-self: center;
		position: relative;
		z-index: 1;
		padding: var(--wp--preset--spacing--70) var(--wp--preset--spacing--30) var(--wp--preset--spacing--60) 0;
	}

	/* Top-aligned with the band, up to 800 px wide on very wide screens. */
	.jv-hero__media {
		grid-row: 1;
		grid-column: 3 / 5;
		max-width: 50rem;
	}
}

/* ---------- Search (hero, search results, 404) ---------- */

.jv-search.wp-block-search__button-inside .wp-block-search__inside-wrapper {
	--jv-icon: url(../icons/search.svg);
	flex-wrap: wrap;
	align-items: center;
	padding: 0;
	overflow: hidden;
	color: var(--wp--preset--color--gray-900);
	background-color: var(--wp--preset--color--white);
	border: 1.5px solid var(--wp--preset--color--gray-500);
	border-radius: var(--wp--custom--radius--sm);
}

.jv-search .wp-block-search__inside-wrapper::before {
	width: 1.375rem;
	height: 1.375rem;
	margin-inline: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30);
}

.jv-search .wp-block-search__inside-wrapper:focus-within {
	outline: var(--jv-focus-outline);
	outline-offset: var(--wp--custom--focus-ring--offset);
}

.jv-search .wp-block-search__input {
	flex: 1 1 0;
	min-width: 0;
	min-height: var(--wp--custom--search--height);
	padding: 0 var(--wp--preset--spacing--30) 0 0;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--ink);
	/* The base size keeps the whole placeholder visible at 375 px; 18 px from 480 px. */
	font-size: var(--wp--preset--font-size--medium);
}

/* The wrapper draws the focus ring (see :focus-within above). */
.jv-search .wp-block-search__input:focus-visible {
	outline: none;
}

.jv-search .wp-block-search__input::placeholder {
	color: var(--wp--preset--color--gray-600);
	opacity: 1;
}

.jv-search.wp-block-search__button-inside .wp-block-search__button {
	--jv-icon: url(../icons/arrow-right.svg);
	flex: 1 0 100%;
	margin: 0;
	min-height: var(--wp--custom--search--height);
	border-radius: 0;
	font-size: var(--wp--custom--search--button-font-size);
	font-weight: 500;
}

.jv-search .wp-block-search__button::after {
	width: 1.125rem;
	height: 1.125rem;
}

@media (min-width: 480px) {
	.jv-search .wp-block-search__input {
		font-size: var(--wp--custom--search--font-size);
	}

	.jv-search.wp-block-search__button-inside .wp-block-search__inside-wrapper {
		flex-wrap: nowrap;
	}

	.jv-search.wp-block-search__button-inside .wp-block-search__button {
		flex: none;
		align-self: stretch;
		padding-inline: var(--wp--preset--spacing--60);
	}
}

/* ---------- Quote and WhatsApp controls (jv-quote blocks) ---------- */

.jv-quote-photo {
	--jv-icon: url(../icons/camera.svg);
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--30);
	min-height: var(--wp--custom--touch-target);
	color: var(--wp--preset--color--primary-strong);
	text-underline-offset: 0.2em;
}

.jv-quote-photo::before {
	width: 1.625rem;
	height: 1.375rem;
	background-color: var(--wp--preset--color--primary);
}

.jv-quote-photo:hover {
	color: var(--wp--preset--color--ink);
}

.jv-quote-add .wp-block-button__link {
	--jv-icon: url(../icons/document.svg);
	padding-inline: 0.625rem;
	gap: var(--wp--preset--spacing--20);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
}

.jv-quote-add .wp-block-button__link::before {
	width: 1rem;
	height: 1.25rem;
}

/* Already in the quote: outline style; another click adds one more unit. */
.jv-quote-add .wp-block-button__link.is-added {
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--primary-strong);
	box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--primary-strong);
}

.jv-quote-add .wp-block-button__link.is-added:hover {
	background-color: var(--wp--preset--color--surface-warm);
}

.jv-quote-send .wp-block-button__link {
	--jv-icon: url(../icons/arrow-right.svg);
	width: 100%;
	min-height: 3.5rem;
	padding-inline: var(--wp--preset--spacing--60);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 500;
}

.jv-quote-send .wp-block-button__link::after {
	width: 1rem;
	height: 1rem;
}

.jv-quote-advisor .wp-block-button__link {
	--jv-icon: url(../icons/whatsapp.svg);
	width: 100%;
	min-height: 3.375rem;
	padding-inline: var(--wp--preset--spacing--50);
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--primary-strong);
	border: 1.5px solid var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 500;
}

.jv-quote-advisor .wp-block-button__link::before {
	width: 2rem;
	height: 2rem;
	background-color: var(--wp--preset--color--primary);
}

.jv-quote-advisor .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--primary-strong);
	border-color: var(--wp--preset--color--primary-strong);
	text-decoration: underline;
}

/* The photo variant with the "Botón" style (contact page): a secondary button. */
.jv-quote-photo-button .wp-block-button__link {
	--jv-icon: url(../icons/camera.svg);
	width: 100%;
	min-height: 3.375rem;
	gap: var(--wp--preset--spacing--30);
	padding-inline: var(--wp--preset--spacing--50);
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--primary-strong);
	border: 1.5px solid var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 500;
}

.jv-quote-photo-button .wp-block-button__link::before {
	width: 1.625rem;
	height: 1.375rem;
	background-color: var(--wp--preset--color--primary);
}

.jv-quote-photo-button .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--primary-strong);
	border-color: var(--wp--preset--color--primary-strong);
	text-decoration: underline;
}

/* ---------- Quote list ("Mi cotización" page) ---------- */

.jv-quote-list,
.jv-quote-list__content {
	display: grid;
	gap: var(--wp--preset--spacing--50);
}

.jv-quote-list p {
	margin: 0;
}

.jv-quote-list p.jv-quote-list__loading,
.jv-quote-list__unavailable {
	color: var(--wp--preset--color--gray-600);
}

/* The loading placeholder takes the empty state's box, so the swap does not shift the page. */
.jv-quote-list__loading,
.jv-quote-list__empty {
	display: grid;
	align-content: center;
	min-height: 16rem;
	box-sizing: border-box;
	justify-items: center;
	gap: var(--wp--preset--spacing--40);
	padding: var(--wp--preset--spacing--70) var(--wp--preset--spacing--50);
	border-radius: var(--wp--custom--radius--lg);
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--gray-700);
	text-align: center;
}

.jv-quote-list__empty-title {
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 600;
}

.jv-quote-list__item {
	padding: var(--wp--preset--spacing--40);
	border: 1px solid var(--wp--preset--color--gray-200);
	border-radius: var(--wp--custom--radius--md);
	background-color: var(--wp--preset--color--white);
}

.jv-quote-list__name {
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	line-height: 1.25;
	text-decoration: none;
}

.jv-quote-list__name[href]:hover {
	color: var(--wp--preset--color--primary-strong);
	text-decoration: underline;
}

.jv-quote-list__sku {
	margin-block-start: var(--wp--preset--spacing--10);
	color: var(--wp--preset--color--gray-600);
	font-size: var(--wp--preset--font-size--small);
}

.jv-quote-list__step,
.jv-quote-list__input {
	border: 1.5px solid var(--wp--preset--color--gray-500);
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--large);
}

.jv-quote-list__step {
	padding: 0;
}

.jv-quote-list__step:first-child {
	border-radius: var(--wp--custom--radius--sm) 0 0 var(--wp--custom--radius--sm);
}

.jv-quote-list__step:last-child {
	border-radius: 0 var(--wp--custom--radius--sm) var(--wp--custom--radius--sm) 0;
}

.jv-quote-list__step:hover:not(:disabled) {
	background-color: var(--wp--preset--color--surface);
}

.jv-quote-list__input {
	border-inline: 0;
	border-radius: 0;
}

.jv-quote-list__remove {
	padding-inline: var(--wp--preset--spacing--30);
	border: 0;
	background: none;
	color: var(--wp--preset--color--navy);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.jv-quote-list__remove:hover {
	color: var(--wp--preset--color--primary-strong);
}

.jv-quote-list__total {
	color: var(--wp--preset--color--ink);
	font-weight: 600;
}

.jv-quote-list__note label {
	margin-block-end: var(--wp--preset--spacing--20);
	color: var(--wp--preset--color--ink);
	font-weight: 600;
}

.jv-quote-list__note textarea {
	padding: var(--wp--preset--spacing--30);
	border: 1.5px solid var(--wp--preset--color--gray-500);
	border-radius: var(--wp--custom--radius--sm);
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--medium);
}

.jv-quote-list__note textarea::placeholder {
	color: var(--wp--preset--color--gray-600);
	opacity: 1;
}

.jv-quote-list__customer legend,
.jv-quote-list__field label {
	color: var(--wp--preset--color--ink);
	font-weight: 600;
}

.jv-quote-list__customer legend {
	margin-block-end: var(--wp--preset--spacing--20);
	font-size: var(--wp--preset--font-size--large);
}

.jv-quote-list__field label {
	margin-block-end: var(--wp--preset--spacing--20);
}

.jv-quote-list p.jv-quote-list__hint,
.jv-quote-photo-dialog p.jv-quote-list__hint {
	color: var(--wp--preset--color--gray-600);
	font-size: var(--wp--preset--font-size--small);
}

.jv-quote-list__field .jv-quote-list__hint {
	margin-block-start: var(--wp--preset--spacing--10);
}

.jv-quote-list__input-text {
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
	border: 1.5px solid var(--wp--preset--color--gray-500);
	border-radius: var(--wp--custom--radius--sm);
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--medium);
}

.jv-quote-list__input-text[aria-invalid="true"],
.jv-quote-list__consent input[aria-invalid="true"] {
	border-color: var(--wp--preset--color--primary-strong);
	box-shadow: 0 0 0 1px var(--wp--preset--color--primary-strong); /* The focus ring (outline) stays visible. */
}

.jv-quote-list__consent label {
	color: var(--wp--preset--color--gray-900);
}

.jv-quote-list__consent a {
	color: var(--wp--preset--color--navy);
	text-underline-offset: 0.2em;
}

.jv-quote-list__consent input {
	accent-color: var(--wp--preset--color--primary-strong);
}

/* Error text: primary-strong on white is 4.55:1 (AA). */
.jv-quote-list p.jv-quote-list__error,
.jv-quote-photo-dialog p.jv-quote-list__error {
	margin-block-start: var(--wp--preset--spacing--10);
	color: var(--wp--preset--color--primary-strong);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.jv-quote-list p.jv-quote-list__sending,
.jv-quote-photo-dialog p.jv-quote-list__sending {
	color: var(--wp--preset--color--gray-700);
}

.jv-quote-send .wp-block-button__link[aria-disabled="true"] {
	opacity: 0.7;
	cursor: progress;
}

.jv-quote-list__actions {
	gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--60);
}

.jv-quote-list__actions > .wp-block-button {
	flex: 1 1 100%;
}

.jv-quote-list .jv-quote-send .wp-block-button__link {
	--jv-icon: url(../icons/whatsapp.svg);
	box-sizing: border-box;
}

.jv-quote-list .jv-quote-send .wp-block-button__link::after {
	width: 1.5rem;
	height: 1.5rem;
}

.jv-quote-list__more {
	color: var(--wp--preset--color--navy);
	text-underline-offset: 0.2em;
}

/* ---------- Shared quote ("Cotización" page, opened from the WhatsApp link) ---------- */

.jv-shared-quote {
	display: grid;
	gap: var(--wp--preset--spacing--50);
}

.jv-shared-quote p {
	margin: 0;
}

.jv-shared-quote__item {
	padding: var(--wp--preset--spacing--40);
	border: 1px solid var(--wp--preset--color--gray-200);
	border-radius: var(--wp--custom--radius--md);
	background-color: var(--wp--preset--color--white);
}

.jv-shared-quote__media img,
.jv-shared-quote__placeholder {
	border-radius: var(--wp--custom--radius--sm);
	background-color: var(--wp--preset--color--surface);
}

.jv-shared-quote__name {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	letter-spacing: normal;
	line-height: 1.25;
}

.jv-shared-quote__name a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}

.jv-shared-quote__name a:hover {
	color: var(--wp--preset--color--primary-strong);
	text-decoration: underline;
}

.jv-shared-quote__sku {
	color: var(--wp--preset--color--gray-600);
	font-size: var(--wp--preset--font-size--small);
}

.jv-shared-quote__description {
	margin-block-start: var(--wp--preset--spacing--20);
	color: var(--wp--preset--color--gray-700);
	font-size: var(--wp--preset--font-size--medium);
}

.jv-shared-quote__qty {
	color: var(--wp--preset--color--gray-700);
}

.jv-shared-quote__qty-value {
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--x-large);
}

.jv-shared-quote__total {
	color: var(--wp--preset--color--ink);
	font-weight: 600;
}

.jv-shared-quote__empty {
	display: grid;
	justify-items: center;
	gap: var(--wp--preset--spacing--40);
	padding: var(--wp--preset--spacing--70) var(--wp--preset--spacing--50);
	border-radius: var(--wp--custom--radius--lg);
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--gray-700);
	text-align: center;
}

.jv-shared-quote__empty-title {
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 600;
}

@media (min-width: 768px) {
	.jv-quote-list__actions > .wp-block-button {
		flex: 0 0 auto;
	}

	.jv-quote-list .jv-quote-send .wp-block-button__link {
		width: auto;
	}
}

/* ---------- Catalog: heading, category pills, product grid ---------- */

.jv-catalog__head {
	gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
}

.jv-catalog__head + * {
	margin-block-start: var(--wp--preset--spacing--50);
}

.jv-catalog__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--huge);
}

.jv-filter .wp-block-navigation__container {
	gap: var(--wp--preset--spacing--20);
}

.jv-filter .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	min-height: var(--wp--custom--touch-target);
	padding-inline: var(--wp--preset--spacing--40);
	border-radius: var(--wp--custom--radius--pill);
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--gray-800);
	font-size: var(--wp--preset--font-size--small);
}

.jv-filter .wp-block-navigation-item__content:hover {
	background-color: var(--wp--preset--color--gray-200);
	color: var(--wp--preset--color--ink);
}

.jv-filter .current-menu-item > .wp-block-navigation-item__content,
.jv-filter:not(:has(.current-menu-item)) .jv-filter__all > .wp-block-navigation-item__content {
	background-color: var(--wp--preset--color--primary-strong);
	color: var(--wp--preset--color--white);
}

.jv-product-grid {
	--jv-grid-gap: var(--wp--preset--spacing--40);
}

/* 1 column at 375 px, 2 from 768 px, 3 from 1024 px; never more than 3. */
.jv-product-grid .wc-block-product-template.wc-block-product-template__responsive {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, max(18rem, calc((100% - 2 * var(--jv-grid-gap)) / 3))), 1fr));
	gap: var(--jv-grid-gap);
}

.jv-product-grid .wc-block-product {
	display: flex;
	flex-direction: column;
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	background-color: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--gray-200);
	border-radius: var(--wp--custom--radius--md);
}

.jv-product-grid .wc-block-product > * {
	margin-block: 0;
}

.jv-product-grid .wc-block-components-product-image {
	margin: 0;
}

.jv-product-grid .jv-card__title {
	margin: var(--wp--preset--spacing--30) 0 0;
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: 0;
}

.jv-product-grid .jv-card__actions {
	gap: var(--wp--preset--spacing--20);
	align-items: center;
	margin-block-start: auto;
	padding: var(--wp--preset--spacing--40) 0 0;
}

.jv-card__details {
	--jv-icon: url(../icons/arrow-right.svg);
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
	min-height: var(--wp--custom--touch-target);
	color: var(--wp--preset--color--navy);
	font-size: var(--wp--preset--font-size--small);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.jv-card__details::after {
	width: 0.75rem;
	height: 0.75rem;
}

.jv-pagination a,
.jv-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--wp--custom--touch-target);
	min-height: var(--wp--custom--touch-target);
}

/* ---------- Call-to-action bands ---------- */

.jv-band {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: var(--wp--preset--spacing--40);
	padding: var(--wp--preset--spacing--50);
	border-radius: var(--wp--custom--radius--lg);
}

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

.jv-band::before {
	width: 3rem;
	height: 3rem;
	color: var(--wp--preset--color--primary);
}

.jv-band--quote {
	--jv-icon: url(../icons/quote-request.svg);
	--jv-band-rule: var(--wp--preset--color--primary-soft);
	background-color: var(--wp--preset--color--surface-warm);
}

.jv-band--help {
	--jv-icon: url(../icons/headset.svg);
	--jv-band-rule: var(--wp--preset--color--gray-300);
	background-color: var(--wp--preset--color--surface);
}

.jv-band__title {
	margin: 0;
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0;
}

.jv-band--help .jv-band__title {
	font-size: var(--wp--preset--font-size--x-large);
}

.jv-band .jv-band__lead {
	margin-block-start: var(--wp--preset--spacing--10);
	color: var(--wp--preset--color--gray-600);
}

.jv-band__actions {
	grid-column: 1 / -1;
}

.jv-band__actions .wp-block-button {
	width: 100%;
}

@media (min-width: 768px) {
	.jv-band {
		grid-template-columns: 5rem minmax(0, 1fr) auto;
		gap: var(--wp--preset--spacing--60);
		padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60);
	}

	.jv-band::before {
		justify-self: center;
		width: 4.5rem;
		height: 4.5rem;
	}

	.jv-band__text {
		align-self: stretch;
		display: flex;
		flex-direction: column;
		justify-content: center;
		padding-inline-start: var(--wp--preset--spacing--60);
		border-inline-start: 1px solid var(--jv-band-rule);
	}

	.jv-band__actions {
		grid-column: auto;
	}

	.jv-band__actions .wp-block-button {
		width: auto;
	}
}

@media (min-width: 1024px) {
	.jv-band {
		grid-template-columns: 7.5rem minmax(0, 1fr) auto;
	}

	.jv-band::before {
		width: 5rem;
		height: 4.5rem;
	}
}

/* ---------- Single product ---------- */

.jv-product {
	gap: var(--wp--preset--spacing--70);
}

/*
 * Product gallery (woocommerce/product-gallery, vertical layout): the large image is
 * framed like the single image it replaced (1:1, contain, gray border), with a row of
 * thumbnails below. With one image WooCommerce renders no thumbnails and no arrows, so
 * the page looks as before. The thumbnails row keeps its height from an aspect ratio
 * set by WooCommerce, so nothing shifts when the script starts.
 */
.jv-gallery {
	gap: var(--wp--preset--spacing--30);
}

.jv-gallery .wc-block-product-gallery-large-image {
	box-sizing: border-box;
	border: 1px solid var(--wp--preset--color--gray-200);
	border-radius: var(--wp--custom--radius--md);
	background-color: var(--wp--preset--color--white);
}

.jv-gallery .wc-block-product-gallery-large-image__container:focus-visible {
	outline: var(--jv-focus-outline);
	outline-offset: calc(-1 * var(--wp--custom--focus-ring--width));
}

.jv-gallery .wc-block-product-gallery-thumbnails__thumbnail__image {
	box-sizing: border-box;
	border: 1px solid var(--wp--preset--color--gray-200);
	border-radius: var(--wp--custom--radius--sm);
	background-color: var(--wp--preset--color--white);
	object-fit: contain;
}

.jv-gallery .wc-block-product-gallery-thumbnails__thumbnail__image--is-active {
	border-color: var(--wp--preset--color--primary);
	box-shadow: inset 0 0 0 1px var(--wp--preset--color--primary);
	filter: none;
}

.jv-gallery .wc-block-product-gallery-thumbnails__thumbnail__image:focus-visible {
	outline: var(--jv-focus-outline);
	outline-offset: calc(-1 * var(--wp--custom--focus-ring--width));
}

.jv-gallery .wc-block-next-previous-buttons__button {
	width: var(--wp--custom--touch-target);
	height: var(--wp--custom--touch-target);
	border: 1px solid var(--wp--preset--color--gray-200);
	border-radius: var(--wp--custom--radius--pill);
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
}

.jv-gallery .wc-block-next-previous-buttons__button:focus-visible {
	outline: var(--jv-focus-outline);
	outline-offset: var(--wp--custom--focus-ring--offset);
}

.jv-product__title {
	font-size: var(--wp--preset--font-size--huge);
}

.jv-product__actions {
	gap: var(--wp--preset--spacing--30);
}

.jv-product__actions .wp-block-button__link {
	padding-inline: var(--wp--preset--spacing--50);
	min-height: 3.375rem;
	font-size: var(--wp--preset--font-size--large);
}

/* Sections without content are dropped on the server (jvtractors_drop_empty_section()). */
.jv-product__description h2,
.jv-product__specs h2,
.jv-related__title {
	font-size: var(--wp--preset--font-size--xx-large);
}

.jv-product__specs table {
	width: 100%;
	border-collapse: collapse;
}

.jv-product__specs figure {
	margin: 0;
}

/* Core's table style draws dark cell borders; keep only light row separators. */
.jv-product__specs th,
.jv-product__specs td {
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40) var(--wp--preset--spacing--30) 0;
	border: 0;
	border-block-end: 1px solid var(--wp--preset--color--gray-200);
	text-align: start;
	vertical-align: top;
}

.jv-product__specs th {
	width: 40%;
	color: var(--wp--preset--color--gray-700);
	font-weight: 600;
}

.jv-product__specs td p {
	margin: 0;
}

.jv-related__title {
	margin-block-end: var(--wp--preset--spacing--50);
}

/* ---------- Content pages: Contacto, Cómo cotizar ---------- */

.jv-page-lead {
	color: var(--wp--preset--color--gray-700);
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.35;
}

/*
 * Two cards: "Cotiza por WhatsApp" (45 %) and "Visítanos" (55 %) in the text column,
 * aligned with the title; one column below 782 px (core Columns), WhatsApp first.
 */
.jv-contact {
	gap: var(--wp--preset--spacing--50);
	margin-block-start: var(--wp--preset--spacing--60);
}

.jv-contact__card {
	padding: var(--wp--preset--spacing--50);
	border: 1px solid var(--wp--preset--color--gray-200);
	border-radius: var(--wp--custom--radius--md);
	background-color: var(--wp--preset--color--white);
}

/* White, not surface-warm: the primary-strong photo link needs white for 4.55:1. */
.jv-contact__card--whatsapp {
	border-block-start: 4px solid var(--wp--preset--color--primary);
}

.jv-contact__card > * {
	margin-block: 0;
}

.jv-contact__card > * + * {
	margin-block-start: var(--wp--preset--spacing--40);
}

.jv-contact__card h2 {
	font-size: var(--wp--preset--font-size--xx-large);
}

.jv-contact__card .jv-contact__social-title {
	margin-block-start: var(--wp--preset--spacing--50);
	font-size: var(--wp--preset--font-size--large);
}

.jv-contact__card p {
	color: var(--wp--preset--color--gray-800);
}

.jv-contact__actions {
	display: grid;
	gap: var(--wp--preset--spacing--30);
}

.jv-contact__actions > * {
	margin: 0;
}

/* On the contact page "Hablar con un asesor" is the primary button (filled). */
.jv-contact .jv-quote-advisor .wp-block-button__link {
	background-color: var(--wp--preset--color--primary-strong);
	color: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--primary-strong);
}

.jv-contact .jv-quote-advisor .wp-block-button__link::before {
	background-color: currentColor;
}

.jv-contact .jv-quote-advisor .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--ink);
	text-decoration: none;
}

/* "Visítanos" (jv-site/locations): tabs, address, click-to-load map, "Cómo llegar". */
.jv-site-locations__tab {
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
	border: 1px solid var(--wp--preset--color--gray-300);
	border-radius: var(--wp--custom--radius--pill);
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--gray-800);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.jv-site-locations__tab:hover {
	border-color: var(--wp--preset--color--primary-strong);
	color: var(--wp--preset--color--primary-strong);
}

@media (min-width: 768px) {
	.jv-site-locations__tab {
		padding-inline: var(--wp--preset--spacing--40);
	}
}

.jv-site-locations__tab[aria-selected="true"] {
	border-color: var(--wp--preset--color--primary-strong);
	background-color: var(--wp--preset--color--primary-strong);
	color: var(--wp--preset--color--white);
}

.jv-site-locations__name {
	font-size: var(--wp--preset--font-size--large);
}

.jv-contact__card .jv-site-locations__address {
	color: var(--wp--preset--color--gray-800);
}

.jv-site-locations__map {
	border: 1px solid var(--wp--preset--color--gray-200);
	border-radius: var(--wp--custom--radius--md);
	background-color: var(--wp--preset--color--surface);
}

/* The stacked fallback (no JavaScript, or a module that failed: jv-site blocks.css). */
:root:not([data-jv-locations-pending]) .jv-site-locations:not(.is-enhanced) .jv-site-locations__map {
	padding: var(--wp--preset--spacing--30);
}

.jv-site-locations__load {
	gap: var(--wp--preset--spacing--20);
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--50);
	border: 1px solid var(--wp--preset--color--gray-300);
	border-radius: var(--wp--custom--radius--sm);
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.jv-site-locations__load:hover {
	border-color: var(--wp--preset--color--ink);
	text-decoration: underline;
}

.jv-site-locations__directions.wp-element-button {
	--jv-icon: url(../icons/arrow-right.svg);
	gap: var(--wp--preset--spacing--20);
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--primary-strong);
	box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--primary);
	text-decoration: none;
}

.jv-site-locations__directions.wp-element-button::after {
	content: "";
	flex: none;
	width: 1rem;
	height: 1rem;
	background-color: currentColor;
	-webkit-mask: var(--jv-icon) center / contain no-repeat;
	mask: var(--jv-icon) center / contain no-repeat;
}

.jv-site-locations__directions.wp-element-button:hover {
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--primary-strong);
	box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--primary-strong);
	text-decoration: underline;
}

.jv-site-contact__list {
	display: grid;
	gap: var(--wp--preset--spacing--40);
}

.jv-site-contact dt {
	color: var(--wp--preset--color--ink);
	font-weight: 700;
}

.jv-site-contact dd address,
.jv-site-contact dd p {
	margin: 0;
}

.jv-site-contact__map a {
	--jv-icon: url(../icons/arrow-right.svg);
	gap: var(--wp--preset--spacing--20);
	color: var(--wp--preset--color--primary-strong);
	font-weight: 600;
}

.jv-site-contact__map a::before {
	order: 1;
	width: 1rem;
	height: 1rem;
}

.jv-contact .jv-site-social__link {
	width: var(--wp--custom--touch-target);
	height: var(--wp--custom--touch-target);
	border: 1px solid var(--wp--preset--color--gray-200);
	border-radius: var(--wp--custom--radius--pill);
	color: var(--wp--preset--color--gray-800);
}

.jv-contact .jv-site-social__link:hover {
	border-color: var(--wp--preset--color--primary-strong);
	color: var(--wp--preset--color--primary-strong);
}

/* "Cómo cotizar": numbered steps, each with an icon in a warm circle. */
.jv-steps {
	display: grid;
	gap: var(--wp--preset--spacing--40);
	margin-block: var(--wp--preset--spacing--60);
	padding: 0;
	list-style: none;
	counter-reset: jv-step;
}

.jv-steps > li {
	position: relative;
	min-height: 3.5rem;
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--50) var(--wp--preset--spacing--50) calc(var(--wp--preset--spacing--50) * 2 + 3.5rem);
	border: 1px solid var(--wp--preset--color--gray-200);
	border-radius: var(--wp--custom--radius--md);
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--gray-700);
	counter-increment: jv-step;
}

.jv-steps > li::before,
.jv-steps > li::after {
	position: absolute;
	top: var(--wp--preset--spacing--50);
	left: var(--wp--preset--spacing--50);
}

/* The circle. */
.jv-steps > li::before {
	content: "";
	width: 3.5rem;
	height: 3.5rem;
	border-radius: var(--wp--custom--radius--pill);
	background-color: var(--wp--preset--color--surface-warm);
}

/* The icon, centered in the circle. */
.jv-steps > li::after {
	width: 1.75rem;
	height: 1.75rem;
	margin: 0.875rem;
	color: var(--wp--preset--color--primary-strong);
}

.jv-steps > li:nth-child(1) {
	--jv-icon: url(../icons/search.svg);
}

.jv-steps > li:nth-child(2) {
	--jv-icon: url(../icons/quote.svg);
}

.jv-steps > li:nth-child(3) {
	--jv-icon: url(../icons/whatsapp.svg);
}

.jv-steps > li:nth-child(4) {
	--jv-icon: url(../icons/headset.svg);
}

.jv-steps > li > strong {
	display: block;
	margin-block-end: var(--wp--preset--spacing--10);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--large);
}

.jv-steps > li > strong::before {
	content: "Paso " counter(jv-step);
	display: block;
	color: var(--wp--preset--color--primary-strong);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.jv-page-actions {
	gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
}

@media (min-width: 768px) {
	.jv-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ---------- Footer ---------- */

.jv-footer {
	border-block-start: 1px solid var(--wp--preset--color--gray-200);
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40);
	color: var(--wp--preset--color--gray-700);
	font-size: var(--wp--preset--font-size--small);
}

.jv-footer__bar {
	display: grid;
	gap: var(--wp--preset--spacing--50);
}

.jv-footer__bar > * {
	margin-block: 0;
}

.jv-logo--footer img {
	width: 12.5rem;
}

.jv-footer .jv-footer__tagline {
	margin-block: var(--wp--preset--spacing--20) 0;
	color: var(--wp--preset--color--gray-800);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
}

.jv-footer .jv-site-contact address,
.jv-footer .jv-site-contact p {
	margin: 0;
	line-height: 1.5;
}

.jv-footer .jv-site-contact > * + * {
	margin-block-start: var(--wp--preset--spacing--20);
}

.jv-footer__social {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--30);
}

.jv-footer__social .jv-site-social__list {
	gap: var(--wp--preset--spacing--30);
}

.jv-footer__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--wp--custom--touch-target);
	height: var(--wp--custom--touch-target);
	border-radius: var(--wp--custom--radius--pill);
	background-color: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--gray-800);
}

.jv-footer__social a:hover {
	background-color: var(--wp--preset--color--gray-200);
	color: var(--wp--preset--color--ink);
}

.jv-footer__social .jv-site-social__icon {
	width: 1.375rem;
	height: 1.375rem;
}

/* The WhatsApp icon is the jv-quote/whatsapp-link block, variant "icon". */
.jv-footer__social .jv-quote-whatsapp-icon {
	--jv-icon: url(../icons/whatsapp.svg);
}

.jv-footer__social .jv-quote-whatsapp-icon::before {
	width: 1.375rem;
	height: 1.375rem;
}

.jv-footer__bottom {
	gap: 0 var(--wp--preset--spacing--50);
	align-items: center;
	margin-block-start: var(--wp--preset--spacing--50);
	padding-block-start: var(--wp--preset--spacing--30);
	border-block-start: 1px solid var(--wp--preset--color--gray-200);
}

.jv-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0 var(--wp--preset--spacing--50);
	margin: 0;
	padding: 0;
	list-style: none;
}

.jv-footer__links a {
	display: inline-flex;
	align-items: center;
	min-height: var(--wp--custom--touch-target);
	color: var(--wp--preset--color--gray-700);
	text-decoration: none;
}

.jv-footer__links a:hover {
	color: var(--wp--preset--color--primary-strong);
	text-decoration: underline;
}

.jv-footer .jv-footer__copy {
	margin: 0;
	padding-block: var(--wp--preset--spacing--30);
}

@media (min-width: 768px) {
	.jv-footer__bar {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto;
		align-items: start;
		column-gap: var(--wp--preset--spacing--70);
	}
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

/* ---------- Photo dialog (jv-quote whatsapp-link, photo variant) ---------- */

.jv-quote-photo-dialog {
	border: 0;
	border-radius: var(--wp--custom--radius--lg);
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--gray-900);
	box-shadow: 0 1.5rem 3rem color-mix(in srgb, var(--wp--preset--color--ink) 30%, transparent);
}

.jv-quote-photo-dialog::backdrop {
	background-color: color-mix(in srgb, var(--wp--preset--color--ink) 60%, transparent);
}

.jv-quote-photo-dialog__form {
	padding: var(--wp--preset--spacing--50);
}

.jv-quote-photo-dialog__title {
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.2;
}

.jv-quote-photo-dialog__close {
	border: 0;
	border-radius: var(--wp--custom--radius--sm);
	background: none;
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--xx-large);
}

.jv-quote-photo-dialog__close:hover {
	background-color: var(--wp--preset--color--surface);
}

.jv-quote-photo-dialog__pick-button {
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
	border: 1.5px solid var(--wp--preset--color--primary-strong);
	border-radius: var(--wp--custom--radius--sm);
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--primary-strong);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
}

.jv-quote-photo-dialog__pick-button:hover:not(:disabled) {
	background-color: var(--wp--preset--color--surface-warm);
}

.jv-quote-photo-dialog__thumb {
	border: 1px solid var(--wp--preset--color--gray-200);
	border-radius: var(--wp--custom--radius--sm);
	background-color: var(--wp--preset--color--surface);
}

.jv-quote-photo-dialog__fallback {
	color: var(--wp--preset--color--navy);
	text-underline-offset: 0.2em;
}

.jv-quote-photo-dialog__progress progress {
	accent-color: var(--wp--preset--color--primary-strong);
}

.jv-quote-photo-dialog :is(button, a, input, textarea):focus-visible {
	outline: var(--jv-focus-outline);
	outline-offset: var(--wp--custom--focus-ring--offset);
}

.jv-shared-quote__photo {
	border: 1px solid var(--wp--preset--color--gray-200);
	border-radius: var(--wp--custom--radius--md);
	background-color: var(--wp--preset--color--surface);
}
