/* ==================================================
   Componentes compartidos: portadas, cifras, mapa,
   bento, pilares, canales, pasos, FAQ y misión.
   Se carga en todo el sitio.
   ================================================== */

:root {
	--cj-i-box-g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2373BA00' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M3 7.5 12 3l9 4.5v9L12 21l-9-4.5v-9Z'/%3E%3Cpath d='M3 7.5 12 12l9-4.5M12 12v9'/%3E%3C/svg%3E");
	--cj-i-shield-g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2373BA00' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 5 6v6c0 4 3 7.5 7 9 4-1.5 7-5 7-9V6l-7-3Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
	--cj-i-catalog-g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2373BA00' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16M4 10h16M4 15h8M4 20h6'/%3E%3Cpath d='m14 17.5 2.5 2.5 4.5-5'/%3E%3C/svg%3E");
	--cj-i-help-g: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2373BA00' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14v-2a8 8 0 0 1 16 0v2'/%3E%3Cpath d='M4 14h3v5H5a1 1 0 0 1-1-1v-4ZM20 14h-3v5h2a1 1 0 0 0 1-1v-4Z'/%3E%3Cpath d='M17 19c0 1.1-1.3 2-3 2h-2'/%3E%3C/svg%3E");
	--cj-shadow-float: 0 1px 2px rgba(14, 24, 56, 0.06), 0 18px 44px rgba(14, 24, 56, 0.14);
}

/* Entrada al hacer scroll, sin JS. Solo escritorio: en móvil recalcular en cada paso de scroll cuesta más de lo que aporta. */
@supports (animation-timeline: view()) {
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
	.cj-rv {
		animation: cj-rise linear both;
		animation-timeline: view();
		animation-range: entry 0% cover 24%;
	}

	.cj-rv:nth-child(2) { animation-range: entry 4% cover 28%; }

	.cj-rv:nth-child(3) { animation-range: entry 8% cover 32%; }

	.cj-rv:nth-child(4) { animation-range: entry 12% cover 36%; }
}
}

@keyframes cj-rise {
	from { opacity: 0; transform: translateY(32px); }
}

/* ---------- Portada ---------- */

.cj-ph { position: relative; overflow: hidden; isolation: isolate; background: var(--cj-navy); }

.cj-ph::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--cj-glow), var(--cj-hatch);
	pointer-events: none;
}

.cj-ph__inner {
	position: relative;
	display: grid;
	gap: 20px;
	justify-items: start;
	align-content: center;
	padding-block: clamp(56px, 8vw, 112px) clamp(112px, 12vw, 168px);
}

.cj-ph__title {
	max-width: 15ch;
	font-size: clamp(2.5rem, 5.6vw, 4.75rem);
	line-height: 1.02;
	letter-spacing: -0.03em;
	font-weight: 600;
	color: #fff;
}

.cj-hl {
	position: relative;
	white-space: nowrap;
	background: none;
	color: var(--cj-accent);
}

.cj-hl::after {
	content: "";
	position: absolute;
	left: 0.02em;
	right: 0.02em;
	bottom: 0.02em;
	height: 0.07em;
	border-radius: 2px;
	background: currentColor;
	transform-origin: left;
	animation: cj-draw 900ms 350ms var(--cj-ease) both;
}

@keyframes cj-draw {
	from { transform: scaleX(0); }
}

.cj-ph__lead,
.cj-ph__lead p {
	margin: 0;
	max-width: 54ch;
	font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
	color: var(--cj-on-dark-2);
}

.cj-ph__lead strong { color: #fff; }

/* Foto de bodega recortada en diagonal.
   El corte sigue al contenedor (no a la pantalla): el texto nunca lo cruza. */
.cj-ph--about {
	--cj-cut-ratio: 0.53;
	--cj-cut: calc(max(var(--cj-gutter), (100% - var(--cj-container)) / 2) + min(100% - var(--cj-gutter) * 2, var(--cj-container)) * var(--cj-cut-ratio));
}

.cj-ph--about .cj-ph__inner { min-height: clamp(560px, 80vh, 780px); }

@media (min-width: 900px) {
	.cj-ph--about .cj-ph__lead { max-width: min(42ch, calc(100% * var(--cj-cut-ratio) - 32px)); }
}

.wp-block-image.cj-ph__bg {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: var(--cj-cut);
	z-index: -2;
	margin: 0;
	clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}

.cj-ph__bg img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }

.cj-ph__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(14, 24, 56, 0.9) 0%, rgba(14, 24, 56, 0.2) 45%, rgba(14, 24, 56, 0.35) 100%),
		linear-gradient(0deg, rgba(14, 24, 56, 0.7), transparent 45%);
}

/* Línea verde sobre el corte */
.cj-ph--about::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: var(--cj-cut);
	z-index: -1;
	background: var(--cj-accent);
	clip-path: polygon(14% 0, calc(14% + 3px) 0, 3px 100%, 0 100%);
	pointer-events: none;
}

/* Contacto: texto + canales */
.cj-ph__split {
	/* Columna de canales con ancho fijo: el correo entra en una línea */
	grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
	justify-items: stretch;
	align-items: start;
	gap: clamp(32px, 5vw, 72px);
}

.cj-ph__copy { display: grid; gap: 20px; justify-items: start; }

.cj-ph--contact .cj-ph__inner { padding-block: clamp(48px, 6vw, 88px); }

/* Estado abierto/cerrado */
.cj-open {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 4px 0 0;
	padding: 8px 16px 8px 12px;
	border: 1px solid var(--cj-line-dark);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	color: var(--cj-on-dark-2);
	font-size: 0.9375rem;
	line-height: 1.3;
}

.cj-open__dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--cj-on-dark-2); }

.cj-open.is-open { border-color: rgba(115, 186, 0, 0.45); background: rgba(115, 186, 0, 0.1); color: #fff; }

.cj-open.is-open .cj-open__dot { background: var(--cj-accent); animation: cj-beat 2s infinite; }

.cj-open.is-closed .cj-open__dot { background: #F5A524; }

@keyframes cj-beat {
	0% { box-shadow: 0 0 0 0 rgba(115, 186, 0, 0.6); }
	70%, 100% { box-shadow: 0 0 0 9px rgba(115, 186, 0, 0); }
}

/* ---------- Cifras ---------- */

.cj-kpis { position: relative; z-index: 3; margin-top: clamp(-96px, -8vw, -64px); }

.cj-kpis__grid {
	display: grid;
	grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
	margin: 0;
	background: var(--cj-surface);
	border: 1px solid var(--cj-border);
	border-radius: var(--cj-r-lg);
	box-shadow: var(--cj-shadow-float);
}

.cj-kpi {
	position: relative;
	display: flex;
	flex-direction: column-reverse;
	justify-content: flex-end;
	gap: 6px;
	padding: clamp(22px, 2.6vw, 34px) clamp(18px, 2.4vw, 32px);
}

.cj-kpi + .cj-kpi { border-left: 1px solid var(--cj-border); }

.cj-kpi::before {
	content: "";
	position: absolute;
	top: -1px;
	left: clamp(18px, 2.4vw, 32px);
	width: 32px;
	height: 3px;
	background: var(--cj-accent);
}

.cj-kpi__value {
	margin: 0;
	font-size: clamp(2rem, 3.6vw, 3.125rem);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--cj-blue);
}

.cj-kpi__value small { font-size: 0.42em; font-weight: 600; letter-spacing: 0.02em; vertical-align: 0.4em; color: var(--cj-ink-2); }

.cj-kpi__label {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cj-ink-2);
}

/* Sello de respaldo en lugar de cifra */
.cj-kpi--badge .cj-kpi__value {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 1em;
	font-size: clamp(1.25rem, 1.9vw, 1.625rem);
	line-height: 1.15;
	letter-spacing: -0.015em;
	color: var(--cj-ink);
}

.cj-kpi--badge svg { flex: none; width: 1.5em; height: 1.5em; color: var(--cj-accent-text); }

/* ---------- Quiénes somos ---------- */

.cj-who__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: clamp(48px, 7vw, 112px);
	align-items: center;
}

.cj-who__text { display: grid; gap: 20px; justify-items: start; }

.cj-who__body > * { margin: 0 0 1em; max-width: 60ch; color: var(--cj-ink-2); font-size: 1.0625rem; }

.cj-who__body > :first-child { color: var(--cj-ink); font-size: clamp(1.125rem, 1.5vw, 1.25rem); }

.cj-who__body > :last-child { margin-bottom: 0; }

/* Ficha técnica de la empresa */
.cj-sheet { width: 100%; margin: 8px 0 0; border-top: 2px solid var(--cj-ink); }

.cj-sheet__row {
	display: grid;
	grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--cj-border);
}

.cj-sheet dt {
	padding-top: 3px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--cj-ink-2);
}

.cj-sheet dd { margin: 0; font-weight: 600; color: var(--cj-ink); }

.cj-who__media { position: relative; padding: 36px 0 clamp(56px, 7vw, 88px) clamp(40px, 6vw, 88px); }

.wp-block-image.cj-who__photo { position: relative; margin: 0; }

.cj-who__photo img {
	display: block;
	width: 100%;
	aspect-ratio: 5 / 4;
	object-fit: cover;
	border-radius: var(--cj-r-lg);
	box-shadow: var(--cj-shadow);
}

.cj-who__photo::before,
.cj-who__photo::after {
	content: "";
	position: absolute;
	width: 56px;
	height: 56px;
	pointer-events: none;
}

.cj-who__photo::before { top: -12px; left: -12px; border-top: 2px solid var(--cj-accent); border-left: 2px solid var(--cj-accent); }

.cj-who__photo::after { right: -12px; bottom: -12px; border-right: 2px solid var(--cj-accent); border-bottom: 2px solid var(--cj-accent); }

.wp-block-image.cj-who__part {
	position: absolute;
	left: 0;
	bottom: 0;
	display: grid;
	place-items: center;
	width: clamp(150px, 40%, 250px);
	aspect-ratio: 1;
	margin: 0;
	padding: 18px;
	border: 6px solid var(--cj-bg);
	border-radius: 14px;
	background: radial-gradient(70% 70% at 55% 35%, #2E53B8, var(--cj-navy) 75%);
	box-shadow: var(--cj-shadow-lg);
}

.cj-who__part img {
	width: 100%;
	height: auto;
	filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.45));
	transform: rotate(-10deg);
	transition: transform 600ms var(--cj-ease);
}

.cj-who__media:hover .cj-who__part img { transform: rotate(0) scale(1.05); }

/* Sello giratorio */
.cj-seal {
	position: absolute;
	top: 0;
	right: clamp(12px, 3vw, 32px);
	z-index: 2;
	display: grid;
	place-items: center;
	width: clamp(108px, 11vw, 136px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--cj-accent);
	color: var(--cj-navy);
	box-shadow: 0 14px 34px rgba(115, 186, 0, 0.35);
}

.cj-seal__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: cj-spin 24s linear infinite; }

.cj-seal__ring text { font: 700 9.4px var(--cj-font); letter-spacing: 0.06em; fill: var(--cj-navy); }

.cj-seal__core { width: 32%; height: 32%; fill: none; stroke: var(--cj-navy); stroke-width: 1.6; stroke-linejoin: round; }

@keyframes cj-spin {
	to { transform: rotate(360deg); }
}

/* ---------- Líneas (bento) ---------- */

.cj-bento {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-rows: minmax(240px, auto);
	gap: 16px;
}

.cj-bento__item { position: relative; min-width: 0; border-radius: var(--cj-r-lg); overflow: hidden; isolation: isolate; }

.cj-bento__item--main { grid-column: span 2; grid-row: span 2; }

.cj-bento__link {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
	gap: 6px;
	height: 100%;
	padding: clamp(20px, 2.2vw, 28px);
	background: radial-gradient(70% 60% at 72% 28%, rgba(52, 86, 186, 0.7), transparent 72%), var(--cj-navy);
	color: #fff;
	text-decoration: none;
	/* Contexto propio: la foto (z-index -1) va sobre el fondo del enlace */
	isolation: isolate;
}

.cj-bento__link::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--cj-hatch); }

.cj-bento__item--photo .cj-bento__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(0deg, rgba(14, 24, 56, 0.96) 8%, rgba(14, 24, 56, 0.3) 52%, transparent 70%);
}

.cj-bento__img {
	position: absolute;
	z-index: -1;
	top: -2%;
	right: -4%;
	/* Por alto: en tarjetas anchas y bajas la foto no baja hasta el texto. */
	width: auto;
	height: 62%;
	max-width: 64%;
	object-fit: contain;
	filter: drop-shadow(0 20px 26px rgba(0, 0, 0, 0.5));
	transition: transform 700ms var(--cj-ease);
}

.cj-bento__item--main .cj-bento__img { top: 2%; right: 2%; width: 74%; height: auto; max-width: none; }

.cj-bento__link:hover { color: #fff; }

.cj-bento__link:hover .cj-bento__img { transform: translateY(-8px) rotate(-5deg) scale(1.04); }

.cj-bento__count {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--cj-accent);
	font-variant-numeric: tabular-nums;
}

.cj-bento__name { margin: 0; font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; color: #fff; }

.cj-bento__item--main .cj-bento__name { font-size: clamp(1.75rem, 3.2vw, 2.625rem); }

.cj-bento__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 0.9375rem; font-weight: 600; color: var(--cj-on-dark-2); transition: color var(--cj-fast); }

.cj-bento__go svg { width: 18px; height: 18px; transition: transform var(--cj-fast) var(--cj-ease); }

.cj-bento__link:hover .cj-bento__go { color: #fff; }

.cj-bento__link:hover .cj-bento__go svg { transform: translateX(4px); }

.cj-bento__link:focus-visible { outline: 3px solid var(--cj-accent); outline-offset: -3px; }

/* Línea con icono */
.cj-bento__item--icon .cj-bento__link { background: radial-gradient(80% 70% at 80% 10%, rgba(255, 255, 255, 0.16), transparent 60%), var(--cj-blue); }

.cj-bento__icon {
	position: absolute;
	top: clamp(20px, 2.2vw, 28px);
	left: clamp(20px, 2.2vw, 28px);
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: var(--cj-accent);
	transition: transform 500ms var(--cj-ease);
}

.cj-bento__icon svg { width: 30px; height: 30px; }

.cj-bento__link:hover .cj-bento__icon { transform: rotate(-12deg) scale(1.06); }

.cj-bento__item--icon .cj-bento__count { color: #CFE89F; }

/* Resto de líneas */
.cj-bento__item--all {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: clamp(20px, 2.2vw, 28px);
	background: var(--cj-bg);
	border: 1px solid var(--cj-border);
}

.cj-bento__more { margin: 0; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cj-ink-2); }

.cj-bento__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }

.cj-bento__chips a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1px solid var(--cj-border);
	border-radius: 999px;
	background: var(--cj-surface);
	color: var(--cj-ink);
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
	transition: border-color var(--cj-fast), color var(--cj-fast);
}

.cj-bento__chips a span { color: var(--cj-ink-2); font-size: 0.8125rem; }

.cj-bento__chips a:hover { border-color: var(--cj-blue); color: var(--cj-blue); }

.cj-bento__all { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-weight: 600; color: var(--cj-blue); text-decoration: none; }

.cj-bento__all svg { width: 18px; height: 18px; transition: transform var(--cj-fast) var(--cj-ease); }

.cj-bento__all:hover svg { transform: translateX(4px); }

/* ---------- Lo que nos distingue ---------- */

.cj-pillars { position: relative; overflow: hidden; isolation: isolate; }

.cj-pillars::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(40% 60% at 100% 0%, rgba(52, 86, 186, 0.45), transparent 70%), var(--cj-hatch);
}

.cj-pillars::after {
	content: "CARJATIVA";
	position: absolute;
	right: -0.04em;
	bottom: -0.2em;
	z-index: -1;
	font-size: clamp(5rem, 17vw, 17rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.04em;
	white-space: nowrap;
	color: transparent;
	-webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
	pointer-events: none;
}

.cj-pillars__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.cj-pillar {
	position: relative;
	display: grid;
	align-content: start;
	gap: 12px;
	padding: 28px 24px 30px;
	border: 1px solid var(--cj-line-dark);
	border-radius: var(--cj-r-lg);
	background: rgba(255, 255, 255, 0.03);
	overflow: hidden;
	transition: border-color var(--cj-mid), background-color var(--cj-mid), transform var(--cj-slow) var(--cj-ease);
}

.cj-pillar::before {
	content: "";
	width: 56px;
	height: 56px;
	margin-bottom: 12px;
	border: 1px solid rgba(115, 186, 0, 0.3);
	border-radius: 14px;
	background: var(--cj-i) center / 28px no-repeat, rgba(115, 186, 0, 0.1);
}

.cj-pillar--box { --cj-i: var(--cj-i-box-g); }

.cj-pillar--shield { --cj-i: var(--cj-i-shield-g); }

.cj-pillar--catalog { --cj-i: var(--cj-i-catalog-g); }

.cj-pillar--help { --cj-i: var(--cj-i-help-g); }

/* Luz que sigue al cursor */
.cj-pillar::after,
.cj-channel::after {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0;
	background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(115, 186, 0, 0.16), transparent 65%);
	transition: opacity var(--cj-slow);
	pointer-events: none;
}

.cj-pillar:hover { border-color: rgba(115, 186, 0, 0.45); background: rgba(255, 255, 255, 0.05); transform: translateY(-4px); }

.cj-pillar:hover::after,
.cj-channel:hover::after { opacity: 1; }

.cj-pillar__num {
	position: absolute;
	top: 22px;
	right: 24px;
	font-size: 2.75rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.04em;
	color: transparent;
	-webkit-text-stroke: 1px rgba(255, 255, 255, 0.24);
}

.cj-pillar__title { font-size: 1.25rem; font-weight: 600; color: #fff; }

.cj-dark .cj-pillar__text { margin: 0; font-size: 0.9375rem; color: var(--cj-on-dark-2); }

/* ---------- Cobertura ---------- */

.cj-coverage__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: clamp(32px, 5vw, 80px);
	align-items: center;
}

.cj-coverage__text { display: grid; gap: 20px; justify-items: start; }

.cj-regions { list-style: none; width: 100%; max-width: 520px; margin: 4px 0 8px; padding: 0; border-top: 2px solid var(--cj-ink); }

.cj-regions li {
	display: grid;
	grid-template-columns: 8.5rem minmax(0, 1fr);
	align-items: baseline;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid var(--cj-border);
	font-size: 0.9375rem;
	color: var(--cj-ink-2);
}

.cj-regions strong { display: inline-flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 600; color: var(--cj-ink); }

.cj-regions strong::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cj-accent); box-shadow: 0 0 0 3px rgba(115, 186, 0, 0.2); }

.cj-coverage__map {
	position: relative;
	padding: clamp(24px, 4vw, 48px);
	border-radius: var(--cj-r-xl);
	background: radial-gradient(60% 70% at 56% 34%, rgba(52, 86, 186, 0.55), transparent 72%), var(--cj-hatch), var(--cj-navy);
	box-shadow: var(--cj-shadow-lg);
	overflow: hidden;
}

.cj-coverage__map .cj-geo { max-width: 440px; margin-inline: auto; }

/* ---------- Mapa de puntos ---------- */

/* Mismo encuadre que el viewBox de ecuador-puntos.svg */
.cj-geo { position: relative; width: 100%; margin: 0; aspect-ratio: 372 / 406; }

.cj-geo__dots {
	position: absolute;
	inset: 0;
	background: linear-gradient(125deg, #9BD64A 0%, #73BA00 28%, #4F74D8 72%, #A8BCF2 100%);
	-webkit-mask: url("../images/ecuador-puntos.svg") 0 0 / 100% 100% no-repeat;
	mask: url("../images/ecuador-puntos.svg") 0 0 / 100% 100% no-repeat;
	opacity: 0.85;
}

.cj-geo__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.cj-geo__routes path {
	fill: none;
	stroke: rgba(255, 255, 255, 0.6);
	stroke-width: 1.1;
	stroke-linecap: round;
	stroke-dasharray: 2 5;
}

/* El flujo de rutas repinta el SVG en cada cuadro: corre unos segundos al verse y queda quieto. */
.cj-geo.is-inview .cj-geo__routes path { animation: cj-flow 1.2s linear 5; }

/* Animaciones continuas: solo mientras están en pantalla (pages.js marca .is-inview). */
.cj-geo:not(.is-inview) *,
.cj-seal:not(.is-inview) *,
.cj-open:not(.is-inview) * { animation-play-state: paused !important; }

@keyframes cj-flow {
	to { stroke-dashoffset: -14; }
}

.cj-geo__cities circle { fill: #fff; stroke: var(--cj-navy); stroke-width: 1.2; }

.cj-geo__labels text { font: 500 9.5px var(--cj-font); letter-spacing: 0.01em; fill: rgba(255, 255, 255, 0.88); paint-order: stroke; stroke: var(--cj-navy); stroke-width: 2.5px; }

.cj-geo__pin { fill: var(--cj-accent); stroke: #fff; stroke-width: 1.6; }

.cj-geo__core { fill: #fff; }

.cj-geo__ping { fill: var(--cj-accent); transform-box: fill-box; transform-origin: center; animation: cj-ping 2.8s var(--cj-ease) infinite; }

.cj-geo__ping--late { animation-delay: 1.4s; }

@keyframes cj-ping {
	from { transform: scale(1); opacity: 0.55; }
	to { transform: scale(4.4); opacity: 0; }
}

.cj-geo__tag {
	position: absolute;
	top: var(--y);
	left: var(--x);
	display: grid;
	gap: 1px;
	padding: 8px 12px;
	border-radius: 8px;
	background: #fff;
	box-shadow: var(--cj-shadow-lg);
	color: var(--cj-ink);
	font-size: 0.8125rem;
	line-height: 1.25;
	white-space: nowrap;
	transform: translate(20px, -50%);
	pointer-events: none;
}

.cj-geo__tag::before {
	content: "";
	position: absolute;
	top: 50%;
	left: -5px;
	width: 10px;
	height: 10px;
	background: #fff;
	transform: translateY(-50%) rotate(45deg);
}

.cj-geo__tag strong { font-size: 0.9375rem; }

.cj-geo__tag span { color: var(--cj-ink-2); }

/* ---------- Canales de contacto ---------- */

.cj-channels__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 14px;
}

.cj-channel {
	position: relative;
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr);
	column-gap: 18px;
	row-gap: 4px;
	align-content: start;
	min-width: 0;
	padding: 22px 22px 18px;
	border: 1px solid var(--cj-border);
	border-radius: var(--cj-r-lg);
	background: var(--cj-surface);
	box-shadow: var(--cj-shadow-float);
	overflow: hidden;
	transition: transform var(--cj-slow) var(--cj-ease), box-shadow var(--cj-slow), border-color var(--cj-mid);
}

.cj-channel::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: linear-gradient(90deg, var(--cj-accent), #A9DB5C);
	transform: scaleX(0.16);
	transform-origin: left;
	transition: transform 450ms var(--cj-ease);
}

.cj-channel::after { background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(35, 63, 146, 0.07), transparent 65%); }

.cj-channel:hover,
.cj-channel:focus-within { transform: translateY(-4px); border-color: #C9D3EA; box-shadow: 0 1px 2px rgba(14, 24, 56, 0.06), 0 26px 56px rgba(14, 24, 56, 0.18); }

.cj-channel:hover::before,
.cj-channel:focus-within::before { transform: scaleX(1); }

.cj-channel__icon {
	grid-row: span 4;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: var(--cj-navy);
	color: var(--cj-accent);
	transition: transform 450ms var(--cj-ease);
}

.cj-channel__icon svg { width: 26px; height: 26px; }

.cj-channel:hover .cj-channel__icon { transform: rotate(-8deg) scale(1.05); }

.cj-channel__title { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cj-ink-2); }

.cj-channel__value { margin: 0; max-width: 100%; font-size: 1.1875rem; font-weight: 600; line-height: 1.3; color: var(--cj-ink); overflow-wrap: anywhere; }

.cj-channel__value a { color: inherit; text-decoration: none; }

.cj-channel__value a:hover { color: var(--cj-blue); text-decoration: underline; }

.cj-channel__note { margin: 0; font-size: 0.875rem; color: var(--cj-ink-2); }

/* Tarjeta clara dentro de la portada oscura */
.cj-dark .cj-channel p { color: var(--cj-ink-2); }

.cj-dark .cj-channel .cj-channel__value { color: var(--cj-ink); }

.cj-channel__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; width: 100%; padding-top: 6px; }

.cj-channel__action { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-weight: 600; color: var(--cj-blue); text-decoration: none; }

.cj-channel__action svg { width: 18px; height: 18px; transition: transform var(--cj-fast) var(--cj-ease); }

.cj-channel__action:hover svg { transform: translateX(4px); }

.cj-channel__copy {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	padding: 0 12px;
	border: 1px solid var(--cj-border);
	border-radius: 999px;
	background: var(--cj-surface);
	color: var(--cj-ink-2);
	font: 500 0.8125rem var(--cj-font);
	cursor: pointer;
	transition: border-color var(--cj-fast), color var(--cj-fast);
}

.cj-channel__copy svg { width: 16px; height: 16px; }

.cj-channel__copy:hover { border-color: var(--cj-blue); color: var(--cj-blue); }

.cj-channel__copied { display: none; }

.cj-channel__copy.is-copied { border-color: var(--cj-accent); color: var(--cj-accent-text); }

.cj-channel__copy.is-copied .cj-channel__copied { display: inline; }

.cj-channel__copy.is-copied .cj-channel__copy-label { display: none; }

.cj-channel .licot-contacto { width: 100%; margin: 0; padding: 0; border: 0; background: none; }

/* ---------- Cotiza en tres pasos ---------- */

.cj-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); counter-reset: cj-step; }

.cj-step { position: relative; display: grid; gap: 10px; align-content: start; counter-increment: cj-step; }

.cj-step::before {
	content: counter(cj-step, decimal-leading-zero);
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	margin-bottom: 10px;
	border-radius: 50%;
	background: var(--cj-navy);
	color: #fff;
	font-size: 1.25rem;
	font-weight: 600;
	box-shadow: 0 0 0 6px var(--cj-surface), 0 0 0 7px var(--cj-border);
}

/* Conector entre pasos */
.cj-step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 30px;
	left: 80px;
	right: calc(clamp(24px, 3vw, 40px) * -1 + 12px);
	height: 2px;
	background: repeating-linear-gradient(90deg, var(--cj-accent) 0 8px, transparent 8px 14px);
	opacity: 0.8;
}

.cj-step__title { font-size: 1.25rem; font-weight: 600; }

.cj-step__text { margin: 0; max-width: 34ch; color: var(--cj-ink-2); }

/* ---------- Visítanos ---------- */

.cj-visit {
	display: grid;
	grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
	border: 1px solid var(--cj-border);
	border-radius: 14px;
	background: var(--cj-surface);
	box-shadow: var(--cj-shadow);
	overflow: hidden;
}

.cj-visit__card { order: -1; display: grid; gap: 18px; align-content: start; justify-items: start; padding: clamp(24px, 3.4vw, 44px); }

.cj-visit__title { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }

.cj-visit__addr { display: flex; gap: 12px; margin: 0; font-size: 1.0625rem; font-weight: 500; }

.cj-visit__addr svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--cj-accent-text); }

.cj-visit__hours { width: 100%; }

.cj-visit__label { margin: 0; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cj-ink-2); }

.cj-week { list-style: none; margin: 8px 0 0; padding: 0; display: grid; }

.cj-week__day {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 8px 10px;
	border-bottom: 1px dashed var(--cj-border);
	font-size: 0.9375rem;
	font-variant-numeric: tabular-nums;
}

.cj-week__day.is-closed { color: var(--cj-ink-2); }

.cj-week__day.is-today { border-radius: 6px; border-bottom-color: transparent; background: var(--cj-selected); color: var(--cj-blue); font-weight: 600; }

.cj-week__today { margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--cj-blue); color: #fff; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: 1px; }

.cj-visit__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

.cj-visit__actions .cj-btn svg { width: 18px; height: 18px; }

.cj-visit__map .cj-map { height: 100%; min-height: 480px; aspect-ratio: auto; border: 0; border-radius: 0; }

.cj-visit__map iframe { filter: grayscale(0.25) saturate(0.9); transition: filter var(--cj-slow); }

.cj-visit__map:hover iframe { filter: none; }

/* ---------- Preguntas frecuentes ---------- */

.cj-faq-sec__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: clamp(32px, 5vw, 88px);
	align-items: start;
}

.cj-faq-sec__head { display: grid; gap: 16px; justify-items: start; position: sticky; top: calc(var(--cj-sticky) + 32px); }

.cj-faq { display: grid; border-top: 1px solid var(--cj-border); interpolate-size: allow-keywords; }

.cj-faq__item { border-bottom: 1px solid var(--cj-border); }

.cj-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 22px 4px;
	list-style: none;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--cj-ink);
	cursor: pointer;
	transition: color var(--cj-fast);
}

.cj-faq__q::-webkit-details-marker { display: none; }

.cj-faq__q:hover { color: var(--cj-blue); }

.cj-faq__sign {
	position: relative;
	flex: none;
	width: 34px;
	height: 34px;
	border: 1px solid var(--cj-border-strong);
	border-radius: 50%;
	color: var(--cj-ink);
	transition: background-color var(--cj-mid), border-color var(--cj-mid), color var(--cj-mid);
}

.cj-faq__sign::before,
.cj-faq__sign::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 2px;
	background: currentColor;
	transform: translate(-50%, -50%);
	transition: transform var(--cj-slow) var(--cj-ease);
}

.cj-faq__sign::after { transform: translate(-50%, -50%) rotate(90deg); }

.cj-faq__item[open] .cj-faq__sign { border-color: var(--cj-navy); background: var(--cj-navy); color: var(--cj-accent); }

.cj-faq__item[open] .cj-faq__sign::after { transform: translate(-50%, -50%) rotate(0); }

.cj-faq__a { padding: 0 60px 22px 4px; color: var(--cj-ink-2); }

.cj-faq__a p { margin: 0; }

.cj-faq__item::details-content {
	block-size: 0;
	overflow: clip;
	transition: block-size var(--cj-slow) var(--cj-ease), content-visibility var(--cj-slow) allow-discrete;
}

.cj-faq__item[open]::details-content { block-size: auto; }

/* ---------- Misión: cita centrada ---------- */

.cj-mv--single .cj-mv__grid { grid-template-columns: minmax(0, 1fr); }

.cj-mv--single .cj-mv__item { justify-items: center; max-width: 1000px; margin-inline: auto; padding: 0; text-align: center; }

.cj-mv--single .cj-mv__item::before {
	content: "\201C";
	height: 0.42em;
	font-size: clamp(6rem, 10vw, 9rem);
	font-weight: 700;
	line-height: 0.8;
	color: var(--cj-accent);
}

.cj-mv--single .cj-mv__label { justify-content: center; }

.cj-mv--single .cj-mv__text {
	max-width: 34ch;
	justify-self: center;
	font-size: clamp(1.5rem, 3vw, 2.375rem);
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: -0.015em;
}

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

@media (max-width: 1100px) {
	.cj-pillars__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

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

	.cj-bento__item--main { grid-row: span 1; min-height: 340px; }
}

@media (max-width: 1023px) {
	/* Canales uno bajo otro: el correo no se corta */
	.cj-channels__list { grid-template-columns: minmax(0, 1fr); }

	.cj-ph__split,
	.cj-who__grid,
	.cj-coverage__grid,
	.cj-faq-sec__grid { grid-template-columns: minmax(0, 1fr); }

	.cj-faq-sec__head { position: static; }

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

	.cj-kpi:nth-child(3) { border-left: 0; }

	.cj-kpi:nth-child(n+3) { border-top: 1px solid var(--cj-border); }

	.cj-kpi:nth-child(n+3)::before { top: -1px; }

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

	.cj-visit__map .cj-map { min-height: 340px; }

	.cj-who__media { max-width: 640px; }
}

@media (max-width: 899px) {
	/* Foto a sangre, texto legible */
	.wp-block-image.cj-ph__bg { left: 0; clip-path: none; }

	.cj-ph__bg::after { background: linear-gradient(0deg, rgba(14, 24, 56, 0.96) 20%, rgba(14, 24, 56, 0.8)); }

	.cj-ph--about::after { display: none; }

	.cj-ph--about .cj-ph__inner { min-height: 0; }

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

	.cj-step { grid-template-columns: 60px minmax(0, 1fr); column-gap: 20px; }

	.cj-step::before { grid-row: span 2; margin: 0; }

	.cj-step:not(:last-child)::after { top: 72px; bottom: calc(clamp(24px, 3vw, 40px) * -1 + 8px); left: 29px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--cj-accent) 0 8px, transparent 8px 14px); }
}

@media (max-width: 599px) {
	.cj-bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: minmax(210px, auto); }

	.cj-bento__item--main { grid-column: auto; min-height: 300px; }

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

	.cj-sheet__row { grid-template-columns: minmax(0, 1fr); gap: 2px; }

	.cj-geo__labels { display: none; }

	.cj-regions li { grid-template-columns: minmax(0, 1fr); gap: 4px; }

	.cj-geo__tag { padding: 6px 10px; font-size: 0.75rem; }

	.cj-faq__a { padding-right: 4px; }

	.cj-who__media { padding-left: 28px; }

	/* Canal en columna: el correo entra en una línea */
	.cj-channel { grid-template-columns: minmax(0, 1fr); padding: 20px 18px 16px; }

	.cj-channel__icon { grid-row: auto; width: 44px; height: 44px; margin-bottom: 10px; }

	.cj-kpi__value { font-size: 1.875rem; }
}

@media (max-width: 339px) {
	.cj-kpis__grid { grid-template-columns: minmax(0, 1fr); }

	.cj-kpi + .cj-kpi { border-left: 0; border-top: 1px solid var(--cj-border); }
}

@media (prefers-reduced-motion: reduce) {
	.cj-rv,
	.cj-hl::after,
	.cj-seal__ring,
	.cj-geo__routes path,
	.cj-geo__ping,
	.cj-open.is-open .cj-open__dot { animation: none !important; }

	.cj-geo__ping { opacity: 0; }
}

/* ==================================================
   Encontrar repuestos: por vehículo y por lista
   ================================================== */

/* ---------- Hero: pestañas código / vehículo ---------- */

.cj-hero__copy .cj-finder { margin-top: 8px; }

.cj-finder { display: grid; gap: 14px; }

.cj-finder .cj-search { margin-top: 0; }

.cj-finder__tabs { display: grid; gap: 10px; }

.cj-finder__tablist {
	display: inline-flex;
	justify-self: start;
	gap: 4px;
	padding: 4px;
	border: 1px solid var(--cj-line-dark);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.05);
}

.cj-finder__tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 38px;
	padding: 0 16px;
	border: 0;
	border-radius: 999px;
	background: none;
	color: var(--cj-on-dark-2);
	font: 600 0.875rem/1 var(--cj-font);
	cursor: pointer;
	transition: background-color var(--cj-fast), color var(--cj-fast);
}

.cj-finder__tab svg { width: 18px; height: 18px; }

.cj-finder__tab:hover { color: #fff; }

.cj-finder__tab[aria-selected="true"] { background: #fff; color: var(--cj-navy); }

/* Formulario de vehículo con el mismo aspecto que la barra de búsqueda */
.cj-vfind {
	display: flex;
	align-items: stretch;
	gap: 5px;
	min-height: 64px;
	padding: 5px;
	border-radius: var(--cj-radius);
	background: var(--cj-surface);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 48px rgba(0, 0, 0, 0.32);
}

.cj-vfind:focus-within { box-shadow: 0 0 0 3px var(--cj-accent), 0 24px 48px rgba(0, 0, 0, 0.32); }

.cj-vfind .cj-veh { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); min-width: 0; }

.cj-vfind__submit { margin: 0; }

.cj-vfind__submit:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- Selects de vehículo ---------- */

.cj-veh__field { min-width: 0; }

.cj-veh__select { text-overflow: ellipsis; }

.cj-veh__select:disabled { color: #8A919C; background-color: var(--cj-bg); cursor: not-allowed; }

.cj-veh--hero .cj-veh__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.cj-veh--hero .cj-veh__select {
	height: 100%;
	min-height: 54px;
	border: 0;
	border-right: 1px solid var(--cj-border);
	border-radius: 0;
	padding-left: 14px;
	background-color: transparent;
	font-size: 1rem;
}

.cj-veh--hero .cj-veh__field:last-child .cj-veh__select { border-right: 0; }

.cj-veh--hero .cj-veh__select:disabled { background-color: transparent; }

.cj-veh--hero .cj-veh__select:focus-visible { outline: 2px solid var(--cj-blue); outline-offset: -2px; }

.cj-veh--filters { display: grid; gap: 10px; margin-top: 8px; }

.cj-veh--filters .cj-veh__label { display: block; margin-bottom: 4px; font-size: 0.8125rem; font-weight: 600; color: var(--cj-ink-2); }

.cj-veh--filters .cj-veh__select { height: 42px; font-size: 0.9375rem; }

/* ---------- Enlace "Cotizar por lista" ---------- */

.cj-bulk-link {
	display: inline-flex;
	align-items: center;
	justify-self: start;
	gap: 8px;
	padding: 4px 0;
	border: 0;
	background: none;
	color: #fff;
	font: 600 0.9375rem var(--cj-font);
	text-align: left;
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, 0.35);
	text-underline-offset: 4px;
	cursor: pointer;
	transition: text-decoration-color var(--cj-fast);
}

.cj-bulk-link svg { flex: none; width: 20px; height: 20px; color: var(--cj-accent); }

.cj-bulk-link:hover { text-decoration-color: var(--cj-accent); }

.cj-btn--on-dark { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.06); color: #fff; }

.cj-btn--on-dark:hover { border-color: var(--cj-accent); background: rgba(115, 186, 0, 0.12); color: #fff; }

.cj-catalog__head-inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }

.cj-catalog__head-text { display: grid; gap: 8px; }

.cj-btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Dentro de "Mi cotización" (plugin) */
.cj-bulk-in-quote { width: 100%; margin-top: 14px; border-style: dashed; }

.cj-bulk-in-quote svg { width: 18px; height: 18px; }

/* ---------- Resumen del vehículo sobre el listado ---------- */

.cj-vsum-wrap:empty { display: none; }

.cj-vsum { display: grid; gap: 12px; padding: 16px 20px; background: var(--cj-surface); border-bottom: 1px solid var(--cj-border); }

.cj-vsum__head { display: flex; align-items: center; gap: 12px; }

.cj-vsum__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--cj-navy); color: var(--cj-accent); }

.cj-vsum__icon svg { width: 22px; height: 22px; }

.cj-vsum__title { display: grid; margin: 0; line-height: 1.25; }

.cj-vsum__title span { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cj-ink-2); }

.cj-vsum__title strong { font-size: 1.125rem; }

.cj-vsum__lines { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }

.cj-vsum__line {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 34px;
	padding: 0 12px;
	border: 1px solid var(--cj-border-strong);
	border-radius: 999px;
	background: var(--cj-surface);
	color: var(--cj-ink);
	font: 500 0.875rem var(--cj-font);
	cursor: pointer;
	transition: border-color var(--cj-fast), color var(--cj-fast), background-color var(--cj-fast);
}

.cj-vsum__line span { font-size: 0.8125rem; color: var(--cj-ink-2); font-variant-numeric: tabular-nums; }

.cj-vsum__line:hover { border-color: var(--cj-blue); color: var(--cj-blue); }

.cj-vsum__line.is-active { border-color: var(--cj-navy); background: var(--cj-navy); color: #fff; }

.cj-vsum__line.is-active span { color: var(--cj-accent); }

.cj-vsum__note { margin: 0; font-size: 0.8125rem; color: var(--cj-ink-2); }

/* ---------- Diálogo "Cotizar por lista" ---------- */

html.cj-bulk-open { overflow: hidden; }

.cj-bulk {
	width: min(640px, calc(100vw - 32px));
	max-width: none;
	max-height: min(780px, calc(100dvh - 48px));
	padding: 0;
	border: 0;
	border-radius: var(--cj-r-xl);
	background: var(--cj-surface);
	color: var(--cj-ink);
	box-shadow: var(--cj-shadow-lg);
	overflow: hidden;
}

.cj-bulk[open] { display: flex; animation: cj-in var(--cj-mid) var(--cj-ease); }

.cj-bulk::backdrop { background: rgba(14, 24, 56, 0.55); }

.cj-bulk__panel { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: 100%; max-height: inherit; }

.cj-bulk__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 16px; border-bottom: 1px solid var(--cj-border); }

.cj-bulk__head > div { display: grid; gap: 6px; }

.cj-bulk__title { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.01em; }

.cj-bulk__body { display: grid; align-content: start; gap: 14px; padding: 20px 24px; overflow-y: auto; overscroll-behavior: contain; }

.cj-bulk__step { display: grid; gap: 10px; }

.cj-bulk__label { font-weight: 600; }

.cj-bulk__help { margin: 0; font-size: 0.875rem; color: var(--cj-ink-2); }

.cj-bulk__input {
	width: 100%;
	min-height: 200px;
	padding: 12px 14px;
	border: 1px solid var(--cj-border-strong);
	border-radius: var(--cj-radius);
	background: var(--cj-surface);
	color: var(--cj-ink);
	font: 500 1rem/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	resize: vertical;
}

.cj-bulk__input:focus { outline: none; border-color: var(--cj-blue); box-shadow: 0 0 0 3px rgba(35, 63, 146, 0.16); }

.cj-bulk__count { min-height: 1.3em; margin: 0; font-size: 0.8125rem; color: var(--cj-ink-2); }

.cj-bulk__summary { margin: 0; }

.cj-bulk__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

.cj-bulk__item { display: grid; gap: 6px; }

.cj-bulk__code { margin: 0; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cj-ink-2); }

.cj-bulk__matches { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }

.cj-bulk__match {
	display: grid;
	grid-template-columns: 20px 48px minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	padding: 8px 12px;
	border: 1px solid var(--cj-border);
	border-radius: var(--cj-r-lg);
	cursor: pointer;
	transition: border-color var(--cj-fast), background-color var(--cj-fast);
}

.cj-bulk__match:has(input:checked) { border-color: #C9D3EA; background: var(--cj-selected); }

.cj-bulk__match input { width: 18px; height: 18px; margin: 0; accent-color: var(--cj-blue); }

.cj-bulk__thumb { display: grid; place-items: center; width: 48px; height: 48px; overflow: hidden; border-radius: 6px; background: var(--cj-bg); }

.cj-bulk__thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

.cj-bulk__info { display: grid; gap: 1px; min-width: 0; }

.cj-bulk__info strong { font-size: 1rem; font-variant-numeric: tabular-nums; }

.cj-bulk__info span { overflow: hidden; font-size: 0.875rem; color: var(--cj-ink-2); white-space: nowrap; text-overflow: ellipsis; }

.cj-bulk__info small { font-size: 0.75rem; color: var(--cj-ink-2); }

.cj-bulk__info small.is-equiv { font-weight: 600; color: var(--cj-accent-text); }

.cj-bulk__missing { display: grid; gap: 8px; padding: 14px 16px; border: 1px dashed var(--cj-border-strong); border-radius: var(--cj-r-lg); background: var(--cj-bg); }

.cj-bulk__missing-title { margin: 0; font-weight: 600; }

.cj-bulk__codes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }

.cj-bulk__codes li { padding: 3px 10px; border: 1px solid var(--cj-border); border-radius: 999px; background: var(--cj-surface); font: 500 0.8125rem ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

.cj-bulk__error { margin: 0; font-size: 0.875rem; color: var(--cj-danger); }

.cj-bulk__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--cj-border); background: var(--cj-bg); }

.cj-bulk__foot .cj-btn svg { width: 18px; height: 18px; }

@media (max-width: 767px) {
	.cj-vfind { flex-direction: column; }

	.cj-vfind .cj-veh { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.cj-veh--hero .cj-veh__field:nth-child(2) .cj-veh__select { border-right: 0; }

	.cj-veh--hero .cj-veh__field:nth-child(-n+2) .cj-veh__select { border-bottom: 1px solid var(--cj-border); }

	.cj-vfind__submit { justify-content: center; min-height: 48px; }

	.cj-vfind__submit span { position: static; width: auto; height: auto; clip: auto; }

	.cj-bulk { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }

	.cj-bulk__foot .cj-btn { flex: 1; }
}

/* ==================================================
   Páginas legales
   ================================================== */

.cj-legal__updated { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: 0.875rem; color: var(--cj-on-dark-2); }

.cj-legal__updated svg { width: 18px; height: 18px; color: var(--cj-accent); }

/* Ojo: .cj-legal es el pie legal del footer; la página usa .cj-legal-layout */
.cj-legal-layout {
	display: grid;
	grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 80px);
	align-items: start;
	padding-block: clamp(40px, 6vw, 80px);
}

/* Índice */
.cj-legal__toc { position: sticky; top: calc(var(--cj-sticky) + 24px); }

.cj-legal__toc-box summary { list-style: none; margin-bottom: 12px; cursor: default; pointer-events: none; }

.cj-legal__toc-box summary::-webkit-details-marker { display: none; }

.cj-legal__toc ol { list-style: none; margin: 0; padding: 0; display: grid; border-left: 2px solid var(--cj-border); }

.cj-legal__toc a {
	display: block;
	margin-left: -2px;
	padding: 7px 0 7px 16px;
	border-left: 2px solid transparent;
	color: var(--cj-ink-2);
	font-size: 0.9375rem;
	line-height: 1.35;
	text-decoration: none;
	transition: color var(--cj-fast), border-color var(--cj-fast);
}

.cj-legal__toc a:hover { color: var(--cj-blue); }

.cj-legal__toc a.is-active { border-left-color: var(--cj-accent); color: var(--cj-ink); font-weight: 600; }

/* Texto */
.cj-legal__content { min-width: 0; max-width: 760px; font-size: 1.0625rem; line-height: 1.7; color: var(--cj-ink); }

.cj-legal__content > * { margin-block: 0 1em; }

.cj-legal__content h2 {
	margin: 2.4em 0 0.7em;
	padding-top: 1.2em;
	border-top: 1px solid var(--cj-border);
	font-size: clamp(1.375rem, 2.2vw, 1.75rem);
	line-height: 1.2;
	scroll-margin-top: calc(var(--cj-sticky) + 24px);
}

.cj-legal__content h3 { margin: 1.6em 0 0.5em; font-size: 1.1875rem; line-height: 1.3; }

/* Si al editar se quita el recuadro «En resumen», el primer título tampoco lleva margen. */
.cj-legal__content > .wp-block-heading:first-child,
.cj-legal__content > .cj-legal-box + h2 { margin-top: 0; }

.cj-legal__content ul,
.cj-legal__content ol { padding-left: 1.3em; }

.cj-legal__content li { margin-bottom: 0.5em; }

.cj-legal__content li::marker { color: var(--cj-accent-text); font-weight: 600; }

.cj-legal__content a { font-weight: 500; overflow-wrap: anywhere; }

.cj-legal__content strong { font-weight: 600; }

/* Caja "En resumen" */
.cj-legal-box {
	margin-bottom: 2.4em !important;
	padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 32px);
	border: 1px solid #C9D3EA;
	border-left: 4px solid var(--cj-accent);
	border-radius: var(--cj-r-lg);
	background: var(--cj-selected);
}

.cj-legal-box h2,
.cj-legal-box h3 { margin: 0 0 0.6em; padding: 0; border: 0; font-size: 0.8125rem; font-weight: 600; line-height: 1.4; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cj-blue); }

.cj-legal-box ul { margin: 0; }

.cj-legal-box li:last-child { margin-bottom: 0; }

/* Cierre: los tres documentos */
.cj-legal-nav { background: var(--cj-surface); border-top: 1px solid var(--cj-border); }

.cj-legal-nav__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }

.cj-legal-nav__text { display: grid; gap: 12px; }

.cj-legal-nav__title { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.015em; }

.cj-legal-nav__text p { margin: 0; color: var(--cj-ink-2); }

.cj-legal-nav__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.cj-legal-nav__card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 20px;
	border: 1px solid var(--cj-border);
	border-radius: var(--cj-r-lg);
	background: var(--cj-bg);
	color: var(--cj-ink);
	font-weight: 600;
	text-decoration: none;
	transition: border-color var(--cj-fast), background-color var(--cj-fast), transform var(--cj-slow) var(--cj-ease);
}

.cj-legal-nav__card svg { width: 20px; height: 20px; color: var(--cj-blue); transition: transform var(--cj-fast) var(--cj-ease); }

.cj-legal-nav__card:hover { border-color: var(--cj-blue); background: var(--cj-surface); color: var(--cj-blue); }

.cj-legal-nav__card:hover svg { transform: translateX(4px); }

.cj-legal-nav__card.is-current { border-color: var(--cj-navy); background: var(--cj-navy); color: #fff; }

.cj-legal-nav__card.is-current svg { color: var(--cj-accent); }

@media (max-width: 1023px) {
	.cj-legal-layout { grid-template-columns: minmax(0, 1fr); }

	/* Índice plegable arriba del texto */
	.cj-legal__toc { position: static; }

	.cj-legal__toc-box { padding: 14px 18px; border: 1px solid var(--cj-border); border-radius: var(--cj-r-lg); background: var(--cj-surface); }

	.cj-legal__toc-box summary { margin: 0; pointer-events: auto; cursor: pointer; }

	.cj-legal__toc-box[open] summary { margin-bottom: 10px; }

	.cj-legal-nav__inner { grid-template-columns: minmax(0, 1fr); }
}

/* Nota de privacidad dentro de "Mi cotización" */
.cj-quote-privacy { margin: 10px 0 0; font-size: 0.8125rem; line-height: 1.45; color: var(--cj-ink-2); }

.cj-quote-privacy a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ==================================================
   Consentimiento de cookies (inc/consent.php)
   ================================================== */

.cj-consent {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 950;
	width: min(440px, calc(100vw - 40px));
	border: 1px solid var(--cj-border);
	border-radius: var(--cj-r-xl);
	background: var(--cj-surface);
	color: var(--cj-ink);
	box-shadow: 0 18px 48px rgba(14, 24, 56, 0.22), 0 2px 6px rgba(14, 24, 56, 0.08);
	animation: cj-consent-in var(--cj-slow) var(--cj-ease) both;
}

.cj-consent[hidden] { display: none; }

@keyframes cj-consent-in {
	from { opacity: 0; transform: translateY(16px); }
}

/* Tarjeta abajo a la derecha: deja libres el buscador y los botones del inicio (columna izquierda). */
.cj-consent__inner { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px 14px; max-width: none; padding: 18px 20px; }

.cj-consent__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--cj-selected); color: var(--cj-blue); }

.cj-consent__icon svg { width: 20px; height: 20px; }

.cj-consent__title { display: block; margin: 7px 0 6px; font-size: 1rem; font-weight: 600; letter-spacing: 0; }

.cj-consent__text { margin: 0; font-size: 0.875rem; line-height: 1.55; color: var(--cj-ink-2); }

.cj-consent__text a,
.cj-consent-dlg__intro a { color: var(--cj-blue); text-underline-offset: 2px; }

.cj-consent__actions { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr 1fr; align-items: center; gap: 8px; }

.cj-consent__actions .cj-btn { min-width: 0; padding-inline: 12px; }

.cj-consent__more {
	padding: 10px 6px;
	border: 0;
	background: none;
	color: var(--cj-ink-2);
	font: 600 0.875rem/1.2 var(--cj-font);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.cj-consent__more:hover { color: var(--cj-blue); }

/* El aviso de "agregado" del cotizador aparece encima del aviso de cookies, no debajo. */
html.cj-consent-pending .licot-toast { bottom: calc(var(--cj-consent-h, 0px) + 12px); }

/* Aviso a todo el ancho: el pie no queda tapado */
@media (max-width: 899px) {
	html.cj-consent-pending .cj-footer { padding-bottom: var(--cj-consent-h, 0px); }
}

/* Tarjeta flotante: la fila legal le deja lugar */
@media (min-width: 900px) {
	html.cj-consent-pending .cj-legal { padding-right: 460px; }
}

/* Panel de preferencias */
html:has(.cj-consent-dlg[open]) { overflow: hidden; }

.cj-consent-dlg {
	width: min(580px, calc(100vw - 32px));
	max-width: none;
	max-height: min(760px, calc(100dvh - 48px));
	padding: 0;
	border: 0;
	border-radius: var(--cj-r-xl);
	background: var(--cj-surface);
	color: var(--cj-ink);
	box-shadow: var(--cj-shadow-lg);
	overflow: hidden;
}

.cj-consent-dlg[open] { display: flex; animation: cj-in var(--cj-mid) var(--cj-ease); }

.cj-consent-dlg::backdrop { background: rgba(14, 24, 56, 0.55); }

.cj-consent-dlg__panel { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: 100%; max-height: inherit; }

.cj-consent-dlg__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 16px; border-bottom: 1px solid var(--cj-border); }

.cj-consent-dlg__head > div { display: grid; gap: 6px; }

.cj-consent-dlg__title { margin: 0; font-size: 1.375rem; font-weight: 600; letter-spacing: -0.01em; }

.cj-consent-dlg__body { display: grid; align-content: start; gap: 16px; padding: 20px 24px; overflow-y: auto; overscroll-behavior: contain; }

.cj-consent-dlg__intro { margin: 0; font-size: 0.9375rem; color: var(--cj-ink-2); }

.cj-consent-cats { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }

.cj-consent-cat {
	display: grid;
	gap: 6px;
	padding: 16px 18px;
	border: 1px solid var(--cj-border);
	border-radius: var(--cj-r-lg);
	background: var(--cj-surface);
	transition: background-color var(--cj-fast) var(--cj-ease), border-color var(--cj-fast) var(--cj-ease);
}

.cj-consent-cat:has(.cj-switch:checked) { border-color: rgba(35, 63, 146, 0.35); background: var(--cj-selected); }

.cj-consent-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 26px; }

.cj-consent-cat__title { margin: 0; font-weight: 600; font-size: 1rem; color: var(--cj-ink); cursor: pointer; }

p.cj-consent-cat__title { cursor: default; }

.cj-consent-cat__desc { margin: 0; font-size: 0.875rem; color: var(--cj-ink-2); }

.cj-consent-cat__services { margin: 2px 0 0; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.02em; color: var(--cj-ink-2); }

.cj-consent-cat__always { display: inline-flex; align-items: center; gap: 4px; font-size: 0.8125rem; font-weight: 600; color: var(--cj-accent-text); white-space: nowrap; }

.cj-consent-cat__always svg { width: 16px; height: 16px; }

.cj-switch {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	flex: none;
	width: 46px;
	height: 26px;
	margin: 0;
	border-radius: 999px;
	background: var(--cj-border-strong);
	cursor: pointer;
	transition: background-color var(--cj-fast) var(--cj-ease);
}

.cj-switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(14, 24, 56, 0.3);
	transition: transform var(--cj-fast) var(--cj-ease);
}

.cj-switch:checked { background: var(--cj-blue); }

.cj-switch:checked::after { transform: translateX(20px); }

.cj-switch:focus-visible { outline: 2px solid var(--cj-blue); outline-offset: 3px; }

.cj-consent-dlg__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--cj-border); background: var(--cj-bg); }

/* Contenido bloqueado hasta tener permiso (mapa) */
.cj-embed { position: absolute; inset: 0; }

.cj-embed__ph {
	position: absolute;
	inset: 0;
	display: grid;
	place-content: center;
	justify-items: center;
	gap: 10px;
	padding: 28px 24px;
	text-align: center;
	background:
		radial-gradient(closest-side, var(--cj-bg) 55%, rgba(245, 246, 248, 0) 100%) center / 110% 110% no-repeat,
		linear-gradient(var(--cj-border) 1px, transparent 1px) 0 0 / 36px 36px,
		linear-gradient(90deg, var(--cj-border) 1px, transparent 1px) 0 0 / 36px 36px,
		var(--cj-bg);
}

.cj-embed.is-loaded .cj-embed__ph { display: none; }

.cj-embed__icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 4px; border-radius: 50%; background: var(--cj-blue); color: #fff; box-shadow: 0 0 0 10px rgba(35, 63, 146, 0.12); }

.cj-embed__icon svg { width: 26px; height: 26px; }

.cj-embed__title { margin: 0; font-size: 1.125rem; font-weight: 600; color: var(--cj-ink); }

.cj-embed__text { max-width: 38ch; margin: 0; font-size: 0.9375rem; color: var(--cj-ink-2); }

.cj-embed__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }

.cj-embed__note { margin: 2px 0 0; font-size: 0.8125rem; }

.cj-embed__note a { color: var(--cj-ink-2); text-underline-offset: 3px; }

.cj-embed__note a:hover { color: var(--cj-blue); }

html:not(.js) .cj-embed__load,
html:not(.js) .cj-embed__note,
html:not(.js) .cj-legal__consent { display: none; }

/* Enlace del pie */
.cj-legal__consent button { padding: 0; border: 0; background: none; color: var(--cj-on-dark-2); font: inherit; cursor: pointer; }

.cj-legal__consent button:hover { color: #fff; text-decoration: underline; }

@media (max-width: 899px) {
	.cj-consent { left: 12px; right: 12px; bottom: 12px; width: auto; }

	/* Compacto: no debe tapar el buscador del inicio. */
	.cj-consent__inner { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px 16px; }

	.cj-consent__icon { display: none; }

	.cj-consent__title { display: inline; margin: 0 4px 0 0; font-size: 0.875rem; }

	.cj-consent__text { display: inline; font-size: 0.8125rem; line-height: 1.5; }

	.cj-consent__actions .cj-btn { padding-inline: 10px; }

	.cj-consent__more { min-height: 44px; padding: 0 6px; font-size: 0.8125rem; }
}

@media (max-width: 639px) {

	.cj-consent-dlg__head,
	.cj-consent-dlg__body { padding-inline: 18px; }

	.cj-consent-dlg__foot { padding-inline: 18px; }

	.cj-consent-dlg__foot .cj-btn { flex: 1 1 auto; }

	.cj-consent-cat { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.cj-consent { animation: none; }
}

@media print {
	.cj-consent,
	.cj-consent-dlg { display: none !important; }
}

/* ==================================================
   Pantallas táctiles: zonas de toque cómodas
   Botones y chips ≥ 44 px; enlaces de texto con más área sin cambiar el diseño.
   ================================================== */
@media (pointer: coarse) {
	.cj-finder__tab,
	.cj-quick__chip,
	.cj-bento__chips a,
	.cj-slider-tab,
	.cj-btn--sm,
	.cj-visit__actions .cj-btn,
	.cj-channel__action,
	.cj-channel__copy,
	.cj-chip,
	.cj-consent__more { min-height: 44px; }

	.cj-more-link,
	.cj-bento__all,
	.cj-facts dd a,
	.cj-footer-list__all,
	.cj-footer .cj-contact a { display: inline-flex; align-items: center; min-height: 44px; }

	.cj-slider-pause { width: 44px; height: 44px; }

	.cj-nav .is-menu-open .wp-block-navigation-item__content { min-height: 44px; display: flex; align-items: center; }

	.cj-legal__toc a { display: block; padding-block: 12px; }

	.cj-legal__toc summary { display: flex; align-items: center; min-height: 44px; }

	.cj-breadcrumbs a { display: inline-block; padding-block: 12px; }

	.cj-footer-list,
	.cj-footer-nav .wp-block-navigation__container { gap: 0; }

	.cj-footer-list a,
	.cj-footer-nav .wp-block-navigation-item__content,
	.cj-legal a,
	.cj-legal__consent button { display: inline-block; padding-block: 12px; }
}

/* ==================================================
   Páginas por vehículo (/repuestos/)
   ================================================== */

.cj-kpis--veh .cj-kpi__value { font-size: clamp(1.75rem, 3.2vw, 2.75rem); white-space: nowrap; }

.cj-vp > .cj-container { display: grid; gap: clamp(28px, 3.4vw, 44px); }

.cj-vp__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }

.cj-vp-filter { flex: 0 1 320px; }

.cj-vp__none { margin: 0; color: var(--cj-ink-2); }

.cj-vp__block { display: grid; gap: 16px; justify-items: start; }

.cj-vp__subtitle {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 12px;
	font-size: clamp(1.25rem, 2vw, 1.625rem);
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.2;
}

.cj-vp__subtitle span {
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--cj-selected);
	color: var(--cj-blue);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0;
}

/* Marcas y modelos */
.cj-vgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }

.cj-vtile {
	position: relative;
	display: grid;
	gap: 4px;
	height: 100%;
	padding: 18px 48px 18px 20px;
	border: 1px solid var(--cj-border);
	border-radius: var(--cj-r-lg);
	background: var(--cj-surface);
	color: var(--cj-ink);
	text-decoration: none;
	transition: border-color var(--cj-fast), box-shadow var(--cj-mid), transform var(--cj-mid) var(--cj-ease);
}

.cj-vtile::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 20px;
	width: 28px;
	height: 3px;
	background: var(--cj-accent);
	transform: scaleX(0.6);
	transform-origin: left;
	transition: transform var(--cj-slow) var(--cj-ease);
}

.cj-vtile__name { font-size: 1.125rem; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }

.cj-vtile__meta { font-size: 0.875rem; color: var(--cj-ink-2); font-variant-numeric: tabular-nums; }

.cj-vtile__go { position: absolute; top: 50%; right: 18px; display: grid; color: var(--cj-blue); transform: translateY(-50%); transition: transform var(--cj-fast) var(--cj-ease); }

.cj-vtile__go svg { width: 20px; height: 20px; }

.cj-vtile:hover { border-color: #C9D3EA; box-shadow: var(--cj-shadow); transform: translateY(-2px); color: var(--cj-ink); }

.cj-vtile:hover::before { transform: scaleX(1.6); }

.cj-vtile:hover .cj-vtile__go { transform: translate(4px, -50%); }

/* Chips de líneas, motores y modelos */
.cj-vchips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }

.cj-vchip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	padding: 4px 14px;
	border: 1px solid var(--cj-border);
	border-radius: 999px;
	background: var(--cj-surface);
	color: var(--cj-ink);
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
	transition: border-color var(--cj-fast), color var(--cj-fast);
}

.cj-vchip span { color: var(--cj-ink-2); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }

a.cj-vchip:hover { border-color: var(--cj-blue); color: var(--cj-blue); }

.cj-vchips--plain .cj-vchip { background: transparent; font-size: 0.875rem; color: var(--cj-ink-2); }

/* Índice de líneas fijo al hacer scroll */
.cj-vp__toc {
	position: sticky;
	top: calc(var(--cj-sticky) + 12px);
	z-index: 5;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
	padding: 12px 16px;
	border: 1px solid var(--cj-border);
	border-radius: var(--cj-r-lg);
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(8px);
	box-shadow: 0 8px 24px rgba(14, 24, 56, 0.08);
}

.cj-vp__line { display: grid; gap: 16px; scroll-margin-top: calc(var(--cj-sticky) + 96px); }

/* Tarjeta de repuesto */
.cj-vcards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }

.cj-vcard {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px;
	border: 1px solid var(--cj-border);
	border-radius: var(--cj-r-lg);
	background: var(--cj-surface);
	transition: border-color var(--cj-fast), box-shadow var(--cj-mid);
}

.cj-vcard:hover { border-color: #C9D3EA; box-shadow: var(--cj-shadow); }

.cj-vcard__link { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 14px; align-items: start; color: var(--cj-ink); text-decoration: none; }

.cj-vcard__img { display: grid; place-items: center; aspect-ratio: 1; border-radius: 8px; background: var(--cj-bg); overflow: hidden; }

.cj-vcard__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

.cj-vcard__body { display: grid; gap: 4px; min-width: 0; }

.cj-vcard__sku { font-weight: 700; color: var(--cj-blue); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.cj-vcard__name {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	font-size: 0.9375rem;
	line-height: 1.35;
}

.cj-vcard__name { font-weight: 600; color: var(--cj-ink-2); }

.cj-vcard__spec { display: block; font-weight: 400; color: var(--cj-ink-2); font-variant-numeric: tabular-nums; }

.cj-vcard__spec strong { font-weight: 600; color: var(--cj-ink); }

.cj-vcard__link:hover .cj-vcard__sku { text-decoration: underline; text-underline-offset: 3px; }

.cj-vcard__brand img { width: auto; max-width: 56px; max-height: 28px; object-fit: contain; }

.cj-vcard__brand .cj-brand-name { font-size: 0.8125rem; font-weight: 700; color: var(--cj-ink-2); }

.cj-vcard__fit {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 10px 12px;
	border-left: 3px solid var(--cj-accent);
	border-radius: 0 6px 6px 0;
	background: var(--cj-bg);
	font-size: 0.8125rem;
	line-height: 1.4;
	color: var(--cj-ink);
}

.cj-vcard__fit-k { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cj-ink-2); }

.cj-vcard__more { color: var(--cj-ink-2); }

.cj-vcard__cta { margin-top: auto; }

.cj-vcard__cta .licot-btn { width: 100%; min-height: 40px; font-size: 0.875rem; }

.cj-vp__note { margin: 0; max-width: 72ch; font-size: 0.875rem; color: var(--cj-ink-2); }

/* Enlaces en la tabla de aplicación */
.cj-apps__make a,
.cj-apps td a { color: inherit; text-decoration: underline; text-decoration-color: var(--cj-border-strong); text-underline-offset: 3px; }

.cj-apps__make a:hover,
.cj-apps td a:hover { color: var(--cj-blue); text-decoration-color: currentColor; }

@media (max-width: 599px) {
	.cj-vp__toc { position: static; padding: 12px; }

	.cj-vp-filter { flex-basis: 100%; }

	.cj-vcard__link { grid-template-columns: 72px minmax(0, 1fr); }

	.cj-vcard__brand { display: none; }
}

@media (pointer: coarse) {
	.cj-vchip { min-height: 44px; }
}
