/*
Theme Name: Trazza
Description: Tema de bloques (FSE) para talleres automotrices. Trabaja junto al plugin Trazza Core: reservas online y portal del cliente conectados al ERP.
Version: 2.2.0
Requires at least: 6.4
Requires PHP: 7.4
License: Apache-2.0
Text Domain: trazza
*/

/* El grueso del diseño vive en theme.json. Aquí solo lo que theme.json no expresa. */
a {
	text-underline-offset: 3px;
}

.trazza-header {
	position: sticky;
	top: 0;
	z-index: 20;
}

.wp-block-button__link {
	transition: background-color 0.15s ease;
}

.trazza-card-service {
	height: 100%;
	border: 1px solid #d9dde6;
	border-radius: 12px;
}

/* Carrusel de productos (scroll-snap, sin JS) */
.trazza-carousel {
	display: flex;
	flex-wrap: nowrap;
	gap: 1.25rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 1rem;
	-webkit-overflow-scrolling: touch;
}
.trazza-carousel > .trazza-product {
	flex: 0 0 clamp(220px, 28%, 300px);
	scroll-snap-align: start;
	border: 1px solid #d9dde6;
	border-radius: 12px;
	padding: 1rem;
	background: #fff;
}
.trazza-product__img {
	aspect-ratio: 4 / 3;
	border-radius: 8px;
	margin-bottom: 1rem;
	background: linear-gradient(135deg, #0D1B39, #D4006B);
}
.trazza-product h3 {
	margin-bottom: 0.5rem;
}

/* Preguntas frecuentes */
.wp-block-details {
	border-bottom: 1px solid #d9dde6;
	padding: 1rem 0;
}
.wp-block-details summary {
	cursor: pointer;
	font-weight: 700;
	color: #0D1B39;
}

/* Sin hueco blanco entre cabecera, contenido y pie */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}
.wp-block-site-title a {
	text-decoration: none;
}

/* Botones de contorno sobre fondo claro (la variación global es blanca) */
.trazza-product .is-style-outline .wp-block-button__link {
	color: #0D1B39;
	border-color: #0D1B39;
}
.trazza-product .is-style-outline .wp-block-button__link:hover {
	color: #fff;
}
.trazza-carousel {
	align-items: stretch;
}

/* Enlaces legibles sobre el pie azul */
footer.wp-block-template-part a {
	color: #fff;
}
footer.wp-block-template-part a:hover {
	color: #FF1F84;
}

/* ---- Cabecera en tres filas: barra, logo+buscador, menú ---- */
.trazza-topbar a {
	color: #fff;
	text-decoration: none;
}
.trazza-topbar a:hover {
	color: #FF1F84;
}
.trazza-search {
	flex: 1 1 320px;
	max-width: 520px;
}
.trazza-search .wp-block-search__inside-wrapper {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	border: 0;
	padding: 0;
}
.trazza-search .wp-block-search__input {
	border: 0;
	padding: 0.7rem 1rem;
	background: transparent;
}
.trazza-search .wp-block-search__button {
	margin: 0;
	border: 0;
	border-radius: 0;
	background: #D4006B;
	color: #fff;
	padding: 0 1.1rem;
}
.trazza-search .wp-block-search__button:hover {
	background: #0D1B39;
}
.trazza-navrow .wp-block-navigation,
.trazza-navrow .wp-block-navigation a {
	color: #0D1B39;
	text-transform: uppercase;
	font-size: 0.85rem;
	letter-spacing: 0.04em;
}
.trazza-navrow .wp-block-navigation a:hover {
	color: #D4006B;
}

/* ---- Banner deslizable ---- */
.trazza-slider {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	gap: 0;
}
.trazza-slider::-webkit-scrollbar {
	display: none;
}
.trazza-slider > .trazza-slide {
	flex: 0 0 100%;
	scroll-snap-align: start;
	min-height: clamp(380px, 52vh, 560px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: var(--wp--preset--spacing--70) var(--wp--preset--spacing--50);
	box-sizing: border-box;
}
.trazza-slide--1 { background: linear-gradient(110deg, #0D1B39 35%, #1d2f66 100%); }
.trazza-slide--2 { background: linear-gradient(110deg, #0D1B39 20%, #D4006B 140%); }
.trazza-slide--3 { background: linear-gradient(110deg, #162040 30%, #0D1B39 100%), #0D1B39; }

/* ---- Catálogo: lista lateral + tarjetas de categoría ---- */
.trazza-catlist {
	border: 1px solid #d9dde6;
	border-radius: 12px;
	padding: 1.25rem;
}
.trazza-catlist ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.trazza-catlist li {
	border-top: 1px solid #e6e9f0;
}
.trazza-catlist li:first-child {
	border-top: 0;
}
.trazza-catlist a {
	display: block;
	padding: 0.65rem 0.25rem;
	color: #1E293B;
	text-decoration: none;
	font-weight: 600;
}
.trazza-catlist a:hover {
	color: #D4006B;
}
.trazza-cat-card {
	height: 100%;
	justify-content: space-between;
	gap: 1rem;
	border: 1px solid #d9dde6;
	border-radius: 12px;
	padding: 1.25rem;
	background: #fff;
}
.trazza-cat-card h3 {
	margin-bottom: 0.5rem;
	font-size: 1.6rem;
}
.trazza-cat-card p {
	margin: 0;
}
.trazza-cat-card__img {
	flex: 0 0 88px;
	height: 88px;
	border-radius: 12px;
	background: #F2F3F7;
	display: flex;
	align-items: center;
	justify-content: center;
}
.trazza-cat-card__img p {
	margin: 0;
}

/* ---- Banners y marcas ---- */
.trazza-promo {
	border-radius: 12px;
	height: 100%;
}
.trazza-promo p {
	margin-bottom: 1rem;
}
.trazza-brand {
	margin: 0;
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 800;
	font-size: 1.4rem;
	letter-spacing: 0.08em;
	color: #9aa3b5;
}

/* Texto del banner alineado a la izquierda, con el borde del contenedor */
.trazza-slider > .trazza-slide {
	align-items: flex-start;
	padding-left: max(1.5rem, calc((100% - 1200px) / 2));
	padding-right: max(1.5rem, calc((100% - 1200px) / 2));
}
.trazza-slider > .trazza-slide > * {
	margin-left: 0 !important;
	margin-right: 0 !important;
	max-width: 760px;
}

/* Móvil: tarjetas de categoría en una columna */
@media (max-width: 781px) {
	.trazza-cat-grid {
		grid-template-columns: 1fr !important;
	}
	.trazza-slider > .trazza-slide {
		min-height: 360px;
	}
}

/* ---- Catálogo dinámico (plugin: trazza/term-list y trazza/product-price) ---- */
.trazza-accent { color: #D4006B; }
.trazza-cat-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}
a.trazza-cat-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	color: inherit;
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
a.trazza-cat-card:hover {
	border-color: #D4006B;
	box-shadow: 0 4px 14px rgba(13, 27, 57, 0.08);
	color: inherit;
}
.trazza-cat-card h3 {
	margin: 0 0 0.5rem;
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 800;
	text-transform: uppercase;
	line-height: 1.05;
	color: #0D1B39;
}
.trazza-cat-card__text p {
	font-size: 0.875rem;
}
.trazza-catlist + .trazza-catlist {
	margin-top: 1rem;
}
.trazza-catlist h3 {
	margin-bottom: 0.5rem;
}
.trazza-brands {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem 3rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
a.trazza-brand {
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 800;
	font-size: 1.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #9aa3b5;
	text-decoration: none;
}
a.trazza-brand:hover {
	color: #D4006B;
}
.trazza-empty {
	color: #6b7488;
}

/* Tarjetas de producto del Query Loop */
.trazza-carousel {
	list-style: none;
	margin: 0;
	padding: 0 0 1rem;
}
.trazza-carousel > li {
	flex: 0 0 clamp(220px, 28%, 300px);
	scroll-snap-align: start;
	margin: 0;
}
.trazza-product {
	height: 100%;
	box-sizing: border-box;
	border: 1px solid #d9dde6;
	border-radius: 12px;
	padding: 1rem;
	background: #fff;
}
.trazza-product__img {
	overflow: hidden;
}
.trazza-product__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.trazza-product__img .wp-block-post-featured-image {
	margin: 0;
}
.trazza-product__cat,
.trazza-product__cat a {
	color: #D4006B;
	font-weight: 700;
	text-transform: uppercase;
	text-decoration: none;
	margin: 0 0.5rem 0.25rem 0;
	display: inline-block;
}
.trazza-product .wp-block-post-title {
	margin: 0 0 0.5rem;
	font-size: 1.25rem;
}
.trazza-product .wp-block-post-title a {
	color: #0D1B39;
	text-decoration: none;
}
.trazza-price {
	margin: 0 0 1rem;
	font-weight: 700;
	font-size: 1.1rem;
	color: #0D1B39;
}
.trazza-price--ask {
	font-weight: 600;
	font-size: 0.95rem;
	color: #6b7488;
}
.trazza-product .wp-block-read-more {
	display: inline-block;
	border: 2px solid #0D1B39;
	border-radius: 8px;
	padding: 0.5rem 1.1rem;
	color: #0D1B39;
	font-weight: 700;
	text-decoration: none;
}
.trazza-product .wp-block-read-more:hover {
	background: #0D1B39;
	color: #fff;
}
.trazza-product-grid {
	list-style: none;
	padding: 0;
}
@media (max-width: 781px) {
	.trazza-cat-grid { grid-template-columns: 1fr; }
}

/* Las tarjetas de categoría miden lo que mide su contenido */
a.trazza-cat-card {
	height: auto;
}

/* Botón de contorno: azul por defecto, blanco sobre el banner */
.trazza-slide .is-style-outline .wp-block-button__link {
	color: #fff;
	border-color: #fff;
}
.is-style-outline .wp-block-button__link:hover {
	background: #0D1B39;
	color: #fff;
}

/* Sin hueco entre las filas de la cabecera */
.trazza-header > * {
	margin-block-start: 0;
}

.trazza-card-service {
	padding: 1.5rem;
	box-sizing: border-box;
}

/* ---- Nosotros ---- */
.trazza-dark .is-style-outline .wp-block-button__link {
	color: #fff;
	border-color: #fff;
}
.trazza-panel {
	border-radius: 12px;
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}
.trazza-panel__row {
	gap: 1rem;
	align-items: center;
}
.trazza-panel__row > p {
	margin: 0;
	flex: 0 0 auto;
}
.trazza-panel__row p {
	margin-top: 0;
	margin-bottom: 0;
}
.trazza-why {
	background: #fff;
	height: 100%;
}
.trazza-why h3 {
	margin-bottom: 0.5rem;
}
.trazza-why > p:first-child {
	margin: 0 0 0.5rem;
	line-height: 1;
}

.trazza-panel__row {
	justify-content: flex-start !important;
}
.trazza-panel__row .wp-block-group {
	text-align: left;
}
.wp-block-group.has-navy-background-color .wp-block-column > .has-large-font-size {
	font-size: 1.15rem;
	line-height: 1.6;
}

.trazza-panel > * {
	width: 100%;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* Mapa de contacto */
.trazza-map {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 280px;
	border: 0;
	border-radius: 12px;
}
.trazza-visit .trazza-card-service {
	height: 100%;
}

/* Disponibilidad (viene de la Bodega del ERP) */
.trazza-stock {
	display: inline-block;
	margin: -0.5rem 0 1rem;
	padding: 0.15rem 0.6rem;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
}
.trazza-stock--ok { background: #e7f6ec; color: #136c3a; }
.trazza-stock--low { background: #fff3d6; color: #8a5a00; }
.trazza-stock--out { background: #fde8e8; color: #9b1c1c; }

/* Lista larga de modelos: desplazable */
.trazza-catlist ul { max-height: 24rem; overflow-y: auto; }
/* Tabla de opciones de los productos con variaciones */
.single-trazza_producto .wp-block-table table { font-size: 0.9rem; }
.single-trazza_producto .wp-block-table td, .single-trazza_producto .wp-block-table th { padding: 0.45rem 0.7rem; }

/* Compra en línea */
.trazza-buy { margin: 0 0 1rem; }
.trazza-buy--out { color: #9b1c1c; font-weight: 600; }
.wc-block-mini-cart__button { color: #fff; }
.wc-block-mini-cart__badge { background: #D4006B; color: #fff; }
.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout { font-size: 1rem; }
.wc-block-components-button:not(.is-link) { background: #D4006B; color: #fff; border-radius: 8px; }
.wc-block-components-button:not(.is-link):hover { background: #0D1B39; color: #fff; }
/* ================= v2: interfaz ordenada ================= */
:root {
	--tz-navy: #0D1B39;
	--tz-navy2: #162040;
	--tz-mag: #D4006B;
	--tz-gray: #F2F3F7;
	--tz-line: #d9dde6;
	--tz-muted: #6b7488;
	--tz-r: 12px;
}

/* ---- Ritmo vertical único: toda sección respira igual ---- */
.trazza-section {
	padding: clamp(2.5rem, 5vw, 4rem) 1.5rem;
}
.trazza-section--gray {
	background: var(--tz-gray);
}
.trazza-section > *,
.trazza-home-hero > *,
.trazza-trust > * {
	margin-left: auto;
	margin-right: auto;
}
.trazza-section h2 {
	margin: 0 0 1.5rem;
	font-size: clamp(1.6rem, 3vw, 2.1rem);
}
.trazza-section__head {
	margin-bottom: 1.5rem;
}
.trazza-section__head h2 {
	margin: 0;
}
.trazza-section__link,
.trazza-section__link a {
	margin: 0;
	font-weight: 700;
	text-decoration: none;
}

/* ---- Cabecera: dos filas ---- */
.trazza-header { position: sticky; top: 0; z-index: 30; }
.trazza-topbar {
	background: var(--tz-navy2);
	color: #fff;
	padding: 0.35rem 1.5rem;
	font-size: 0.8rem;
}
.trazza-topbar p { margin: 0; }
.trazza-topbar a { color: #fff; text-decoration: none; }
.trazza-topbar a:hover { color: #FF1F84; }
.trazza-mainbar {
	background: var(--tz-navy);
	color: #fff;
	padding: 0.7rem 1.5rem;
}
.trazza-mainbar__row { gap: 0.75rem 1.25rem; flex-wrap: wrap; }
.trazza-mainbar .wp-block-site-title { margin: 0; }
.trazza-nav .wp-block-navigation-item__content,
.trazza-nav a { color: #fff; font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.trazza-nav a:hover { color: #FF1F84; }
.trazza-nav .wp-block-navigation__submenu-container {
	background: #fff !important;
	border: 1px solid var(--tz-line);
	border-radius: 10px;
	padding: 0.4rem 0;
	min-width: 15rem;
}
.trazza-nav .wp-block-navigation__submenu-container a { color: var(--tz-navy) !important; font-weight: 500; }
.trazza-nav .wp-block-navigation__submenu-container a:hover { color: var(--tz-mag) !important; background: var(--tz-gray); }
.trazza-search { flex: 1 1 220px; max-width: 360px; margin-left: auto; }
.trazza-cta-header .wp-block-button__link {
	color: #fff; border-color: #fff; padding: 0.55rem 1.1rem; font-size: 0.95rem;
}
.trazza-cta-header .wp-block-button__link:hover { background: #fff; color: var(--tz-navy); }
.trazza-chip {
	display: inline-flex; align-items: center; gap: 0.4rem;
	background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.28);
	color: #fff; border-radius: 999px; padding: 0.4rem 0.8rem; font-size: 0.85rem; font-weight: 600;
	text-decoration: none; white-space: nowrap; max-width: 15rem;
}
.trazza-chip:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }
.trazza-chip.is-set { background: var(--tz-mag); border-color: var(--tz-mag); }
.trazza-chip__txt { overflow: hidden; text-overflow: ellipsis; }
.trazza-chip__clear {
	background: transparent; border: 0; color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; padding: 0 0 0 0.2rem;
}

/* ---- Portada: héroe con selector ---- */
.trazza-home-hero {
	background: linear-gradient(115deg, var(--tz-navy) 40%, #1d2f66 100%);
	color: #fff;
	padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
}
.trazza-home-hero h1 { color: #fff; margin: 0 0 1rem; font-size: clamp(2rem, 5vw, 3.4rem); max-width: 18ch; }
.trazza-eyebrow { color: #FF1F84; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 0.75rem; }
.trazza-home-hero__lead { font-size: 1.15rem; max-width: 46ch; margin: 0 0 1.75rem; }
.trazza-home-hero__alt { margin: 1.25rem 0 0; font-size: 0.95rem; }
.trazza-home-hero__alt a { color: #fff; font-weight: 700; }

/* ---- Selector de vehículo ---- */
.trazza-vehicle { background: #fff; color: var(--tz-navy); border-radius: 14px; padding: 1.1rem 1.25rem; }
.trazza-vehicle--hero { max-width: 880px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.trazza-vehicle__title { margin: 0 0 0.6rem; font-weight: 700; }
.trazza-vehicle__fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 0.75rem; align-items: end; }
.trazza-vehicle label span {
	display: block; margin-bottom: 0.25rem; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--tz-muted);
}
.trazza-vehicle select {
	width: 100%; padding: 0.7rem 0.6rem; border: 1px solid var(--tz-line); border-radius: 8px; background: #fff; font: inherit; color: var(--tz-navy);
}
.trazza-vehicle select:disabled { background: var(--tz-gray); color: #9aa3b5; }
.trazza-vehicle__go {
	background: var(--tz-mag); color: #fff; border: 0; border-radius: 8px; padding: 0.8rem 1.4rem; font: inherit; font-weight: 700; cursor: pointer;
}
.trazza-vehicle__go:hover:not(:disabled) { background: var(--tz-navy); }
.trazza-vehicle__go:disabled { opacity: 0.45; cursor: not-allowed; }
.trazza-vehicle__hint { margin: 0.6rem 0 0; font-size: 0.82rem; color: var(--tz-muted); }
.trazza-vehicle--compact { border: 1px solid var(--tz-line); padding: 0.9rem; border-radius: 10px; margin-bottom: 1rem; }
.trazza-vehicle--compact .trazza-vehicle__fields { grid-template-columns: 1fr; }
.trazza-vehicle--compact .trazza-vehicle__go { width: 100%; }

/* ---- Franja de confianza ---- */
.trazza-trust { background: #fff; border-bottom: 1px solid var(--tz-line); padding: 1.1rem 1.5rem; }
.trazza-trust__row { margin: 0 auto; gap: 1rem 2rem; }
.trazza-trust__t, .trazza-trust__d { margin: 0; font-size: 0.9rem; line-height: 1.35; }
.trazza-trust__d { color: var(--tz-muted); font-size: 0.82rem; }
.trazza-trust__d a { color: var(--tz-mag); text-decoration: none; font-weight: 600; }

/* ---- Dos puertas ---- */
.trazza-doors { gap: 1.25rem; }
.trazza-door { border-radius: 16px; padding: clamp(1.5rem, 3vw, 2.25rem); height: 100%; box-sizing: border-box; }
.trazza-door h2 { margin: 0 0 0.6rem; font-size: 1.7rem; }
.trazza-door p { margin: 0 0 1.25rem; }
.trazza-door--shop { background: var(--tz-gray); border: 1px solid var(--tz-line); }
.trazza-door--shop2 { background: var(--tz-navy); color: #fff; }
.trazza-door--shop2 h2 { color: #fff; }
.trazza-door--shop2 .is-style-outline .wp-block-button__link { color: #fff; border-color: #fff; }
.trazza-door--shop2 .is-style-outline .wp-block-button__link:hover { background: #fff; color: var(--tz-navy); }

/* ---- Categorías en mosaico ---- */
.trazza-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.9rem; }
.trazza-tile {
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.2rem;
	background: #fff; border: 1px solid var(--tz-line); border-radius: var(--tz-r); padding: 1.1rem 0.6rem;
	text-decoration: none; color: var(--tz-navy); transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.trazza-tile:hover { border-color: var(--tz-mag); box-shadow: 0 6px 16px rgba(13, 27, 57, 0.08); transform: translateY(-2px); color: var(--tz-navy); }
.trazza-tile__icon { font-size: 2rem; line-height: 1.1; }
.trazza-tile__name { font-weight: 700; font-size: 0.95rem; line-height: 1.2; }
.trazza-tile__count { font-size: 0.78rem; color: var(--tz-muted); }

/* ---- Tarjeta de producto única ---- */
.trazza-product-grid { list-style: none; margin: 0; padding: 0; gap: 1.1rem; }
.trazza-product-grid > li { margin: 0; display: flex; }
.trazza-product {
	display: flex; flex-direction: column; gap: 0.3rem; width: 100%; box-sizing: border-box;
	background: #fff; border: 1px solid var(--tz-line); border-radius: var(--tz-r); padding: 0.85rem; transition: box-shadow 0.15s;
}
.trazza-product:hover { box-shadow: 0 6px 18px rgba(13, 27, 57, 0.08); }
.trazza-product > * { margin-top: 0; margin-bottom: 0; }
.trazza-product__img {
	aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; margin-bottom: 0.5rem;
	background: #eef0f5 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8bfcd' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='3'/><path d='M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 0 1-4 0v-.1a1.7 1.7 0 0 0-1.1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 0 1 0-4h.1a1.7 1.7 0 0 0 1.5-1.1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 0 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9a1.7 1.7 0 0 0 1.5 1H21a2 2 0 0 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1z'/></svg>") center / 34% no-repeat;
}
.trazza-product__img img { width: 100%; height: 100%; object-fit: contain; background: #fff; display: block; }
.trazza-product__cat, .trazza-product__cat a { margin: 0; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--tz-mag); text-decoration: none; }
.trazza-product__title { margin: 0; font-size: 1.02rem; line-height: 1.25; min-height: 2.5em; text-transform: none; }
.trazza-product__title,
.trazza-product__title a {
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--tz-navy); text-decoration: none; font-family: 'Barlow', sans-serif; font-weight: 700;
}
.trazza-compat { margin: 0; font-size: 0.78rem; color: var(--tz-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trazza-compat span { color: var(--tz-mag); font-weight: 700; }
.trazza-compat--none { font-style: italic; }
.trazza-product .trazza-price { margin: 0.35rem 0 0; font-size: 1.15rem; }
.trazza-product .trazza-stock { margin: 0.1rem 0 0.6rem; align-self: flex-start; }
.trazza-product > .trazza-btn { margin-top: auto; }
.trazza-btn {
	display: inline-block; text-align: center; border: 2px solid var(--tz-navy); color: var(--tz-navy); border-radius: 8px;
	padding: 0.55rem 1rem; font-weight: 700; text-decoration: none; background: transparent;
}
.trazza-btn:hover { background: var(--tz-navy); color: #fff; }
.trazza-btn--primary { background: var(--tz-mag); border-color: var(--tz-mag); color: #fff; }
.trazza-btn--primary:hover { background: var(--tz-navy); border-color: var(--tz-navy); }

/* ---- Cómo funciona el taller ---- */
.trazza-steps { gap: 1.5rem 2rem; margin-bottom: 1.75rem; }
.trazza-step__n {
	display: inline-flex; align-items: center; justify-content: center; width: 2.3rem; height: 2.3rem; border-radius: 50%;
	background: var(--tz-mag); color: #fff; font-weight: 800; margin: 0 0 0.6rem;
}
.trazza-steps h3 { margin: 0 0 0.4rem; font-size: 1.25rem; }
.trazza-steps p { margin-top: 0; }

/* ---- Marcas + contacto ---- */
.trazza-brandscontact { gap: 2rem; }
.trazza-brandscontact h3 { margin: 0 0 0.9rem; }
.trazza-brands { justify-content: flex-start; gap: 0.6rem; }
a.trazza-brand {
	display: inline-block; font-family: 'Barlow Condensed', sans-serif; font-size: 1.25rem; letter-spacing: 0.06em;
	color: var(--tz-navy); border: 2px solid var(--tz-line); border-radius: 10px; padding: 0.55rem 1.1rem; background: #fff;
}
a.trazza-brand:hover { border-color: var(--tz-mag); color: var(--tz-mag); }

/* ---- Listados y filtros ---- */
.trazza-listing { padding: 2rem 1.5rem clamp(2.5rem, 5vw, 4rem); }
.trazza-listing h1 { margin: 0 0 0.5rem; font-size: clamp(2rem, 4vw, 2.8rem); }
.trazza-filterbox { border: 0; }
.trazza-filterbox > summary { display: none; font-weight: 700; cursor: pointer; padding: 0.7rem 1rem; border: 1px solid var(--tz-line); border-radius: 10px; background: #fff; }
.trazza-catlist { border-radius: 10px; padding: 0.9rem 1rem; margin-bottom: 1rem; }
.trazza-catlist h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.trazza-filters__more { border: 1px solid var(--tz-line); border-radius: 10px; padding: 0.2rem 1rem 0.5rem; }
.trazza-filters__more > summary { font-weight: 700; padding: 0.7rem 0; cursor: pointer; }
.trazza-filters__more .trazza-catlist { border: 0; padding: 0; }

/* ---- Ficha: compatibilidad y avisos ---- */
.trazza-fit { border: 1px solid var(--tz-line); background: var(--tz-gray); border-radius: 10px; padding: 0.8rem 1rem; margin: 0 0 1rem; }
.trazza-fit p { margin: 0; font-size: 0.92rem; }
.trazza-fit__list { margin-top: 0.4rem !important; color: var(--tz-muted); font-size: 0.82rem !important; }
.trazza-fit.is-yes { background: #e7f6ec; border-color: #9ad3ae; }
.trazza-fit.is-yes .trazza-fit__status { color: #136c3a; font-weight: 700; }
.trazza-fit.is-no { background: #fff3d6; border-color: #f0cf85; }
.trazza-fit.is-no .trazza-fit__status { color: #8a5a00; font-weight: 600; }
.trazza-notes { margin-top: 1.25rem; font-size: 0.88rem; color: var(--tz-muted); line-height: 1.6; }

/* ---- Barra inferior en móvil ---- */
.trazza-mobilebar { display: none; }
@media (max-width: 781px) {
	body { padding-bottom: 64px; }
	.trazza-mobilebar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex;
		background: #fff; border-top: 1px solid var(--tz-line); box-shadow: 0 -4px 14px rgba(13, 27, 57, 0.08);
	}
	.trazza-mobilebar a {
		flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.1rem; padding: 0.55rem 0.2rem 0.6rem;
		font-size: 0.72rem; font-weight: 700; color: var(--tz-navy); text-decoration: none;
	}
	.trazza-mobilebar a span { font-size: 1.25rem; line-height: 1.1; }
	.trazza-topbar { display: none; }
	.trazza-chip { display: none; }
	.trazza-cta-header { display: none; }
	.trazza-search { order: 5; flex-basis: 100%; max-width: none; }
	.trazza-vehicle__fields { grid-template-columns: 1fr; }
	.trazza-vehicle__go { width: 100%; }
	.trazza-filterbox > summary { display: block; }
	.trazza-home-hero h1 { max-width: none; }
}

/* Héroe: todo alineado a la izquierda con el borde del contenido */
.trazza-home-hero {
	padding-left: max(1.5rem, calc((100% - 1200px) / 2));
	padding-right: max(1.5rem, calc((100% - 1200px) / 2));
}
.trazza-home-hero > * {
	margin-left: 0 !important;
	margin-right: 0 !important;
	max-width: none;
}
.trazza-home-hero h1 { max-width: 18ch; }
.trazza-home-hero__lead { max-width: 46ch; }
.trazza-vehicle--hero { max-width: 880px; }

/* Cabecera en una sola fila en escritorio; sin ícono de cuenta (la compra es sin registro) */
.wp-block-woocommerce-customer-account { display: none !important; }
@media (min-width: 782px) {
	.trazza-mainbar__row { flex-wrap: nowrap; gap: 1rem; }
	.trazza-search { flex: 1 1 200px; max-width: 320px; min-width: 160px; }
	.trazza-nav { flex: 0 0 auto; }
}

/* Botón principal del formulario de reservas */
.trazza-form .trazza-btn { background: #D4006B; border-color: #D4006B; color: #fff; padding: 0.75rem 1.6rem; font-size: 1.05rem; }
.trazza-form .trazza-btn:hover { background: #0D1B39; border-color: #0D1B39; }

/* ---- Vitrina de servicios ---- */
.trazza-svc-intro { color: var(--tz-muted); max-width: 60ch; margin: 0 0 1.75rem; }
.trazza-svc-grid { list-style: none; margin: 0; padding: 0; gap: 1.25rem; }
.trazza-svc-grid > li { margin: 0; display: flex; }
.trazza-svc-card {
	display: flex; flex-direction: column; gap: 0.35rem; width: 100%; box-sizing: border-box;
	background: #fff; border: 1px solid var(--tz-line); border-radius: var(--tz-r); padding: 1rem; transition: box-shadow 0.15s, transform 0.15s;
}
.trazza-svc-card:hover { box-shadow: 0 8px 22px rgba(13, 27, 57, 0.09); transform: translateY(-2px); }
.trazza-svc-card > * { margin-top: 0; margin-bottom: 0; }
.trazza-svc-card__img { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #fff; margin-bottom: 0.5rem; }
.trazza-svc-card__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.trazza-svc-card__img .wp-block-post-featured-image { margin: 0; height: 100%; }
.trazza-svc-card__title, .trazza-svc-card__title a { margin: 0; font-size: 1.15rem; line-height: 1.2; color: var(--tz-navy); text-decoration: none; font-family: 'Barlow', sans-serif; font-weight: 700; text-transform: none; }
.trazza-svc-price { margin: 0.2rem 0 0.4rem; font-weight: 700; font-size: 1.1rem; color: var(--tz-navy); }
.trazza-svc-price span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--tz-muted); margin-right: 0.3rem; }
.trazza-svc-card .wp-block-post-excerpt { color: var(--tz-muted); font-size: 0.85rem; }
.trazza-svc-card .wp-block-read-more { margin-top: auto; }
.trazza-svc-card .wp-block-read-more { display: block; text-align: center; background: var(--tz-mag); border: 2px solid var(--tz-mag); color: #fff; border-radius: 8px; padding: 0.6rem 1rem; font-weight: 700; text-decoration: none; }
.trazza-svc-card .wp-block-read-more:hover { background: var(--tz-navy); border-color: var(--tz-navy); }
.trazza-svc-other { margin-top: 2rem; }
.trazza-crumbs { font-size: 0.85rem; color: var(--tz-muted); margin: 0 0 1rem; }
.trazza-crumbs a { color: var(--tz-muted); }
.trazza-svc-single { gap: 2rem; align-items: flex-start; }
.trazza-svc-single h1 { margin: 0 0 0.5rem; font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.trazza-svc-card__img--big { border: 1px solid var(--tz-line); border-radius: var(--tz-r); padding: 1rem; box-sizing: border-box; }
.trazza-svc-single .trazza-svc-price { font-size: 1.5rem; }
.trazza-svc-lead { color: var(--tz-muted); margin: 0 0 1.25rem; }
.trazza-svc-single .trazza-booking .trazza-grid { grid-template-columns: 1fr 1fr; }
.trazza-svc-single .trazza-form { border: 0; padding: 0; box-shadow: none; }
@media (max-width: 781px) { .trazza-svc-single .trazza-booking .trazza-grid { grid-template-columns: 1fr; } }
