/* ==========================================================================
   4H Racing UI
   ========================================================================== */

:root {
	--hr-red: #e10600;
	--hr-red-dark: #b30500;
	--hr-ink: #0e1114;
	--hr-ink-2: #181d22;
	--hr-ink-3: #252c33;
	--hr-text: #2b323a;
	--hr-muted: #66717c;
	--hr-line: #e4e8ec;
	--hr-soft: #f3f5f7;
	--hr-white: #fff;
	--hr-radius: 14px;
	--hr-radius-sm: 10px;
	--hr-shadow: 0 18px 40px -20px rgba(14, 17, 20, 0.38);
	--hr-font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
	--hr-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--hr-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Tipografía global ---------- */

body {
	--theme-font-family: var(--hr-font-body);
	--theme-text-color: var(--hr-text);
	-webkit-font-smoothing: antialiased;
	background-color: var(--hr-white);
}

body :is(h1, h2, h3, h4, h5, h6),
body .woocommerce-loop-product__title,
body .product_title {
	--theme-font-family: var(--hr-font-display);
	font-family: var(--hr-font-display);
	letter-spacing: 0.01em;
	color: var(--hr-ink);
}

body :is(h1, .product_title) { --theme-font-weight: 800; font-weight: 800; line-height: 1.05; }
body :is(h2, h3) { --theme-font-weight: 700; font-weight: 700; line-height: 1.1; }

:focus-visible {
	outline: 2px solid var(--hr-red);
	outline-offset: 3px;
}

.hr-container {
	width: min(100% - 32px, 1290px);
	margin-inline: auto;
}

.hr-icon {
	width: 1.25em;
	height: 1.25em;
	flex-shrink: 0;
}

/* ---------- Botones ---------- */

.hr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55em;
	min-height: 46px;
	padding: 0 22px;
	border: 2px solid transparent;
	border-radius: var(--hr-radius-sm);
	font-family: var(--hr-font-body);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--hr-ease);
}

.hr-btn:hover { transform: translateY(-1px); }
.hr-btn--lg { min-height: 54px; padding: 0 28px; font-size: 16px; }

body .hr-btn--primary { background: var(--hr-red); color: var(--hr-white); }
body .hr-btn--primary:hover { background: var(--hr-red-dark); color: var(--hr-white); }

body .hr-btn--ghost { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.35); color: var(--hr-white); backdrop-filter: blur(6px); }
body .hr-btn--ghost:hover { background: var(--hr-white); border-color: var(--hr-white); color: var(--hr-ink); }

body .hr-btn--outline { background: transparent; border-color: var(--hr-line); color: var(--hr-ink); }
body .hr-btn--outline:hover { border-color: var(--hr-ink); color: var(--hr-ink); }


.hr-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	font-weight: 600;
	font-size: 15px;
	color: var(--hr-ink);
	text-decoration: none;
	white-space: nowrap;
}

.hr-link .hr-icon { transition: transform 0.2s var(--hr-ease); }
.hr-link:hover { color: var(--hr-red); }
.hr-link:hover .hr-icon { transform: translateX(4px); }

.hr-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--hr-red);
}

.hr-eyebrow::before {
	content: "";
	width: 22px;
	height: 3px;
	background: currentColor;
	transform: skewX(-25deg);
}

.hr-eyebrow--hot::after {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
	animation: hr-pulse 1.6s infinite;
}

@keyframes hr-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(225, 6, 0, 0.5); }
	70%  { box-shadow: 0 0 0 8px rgba(225, 6, 0, 0); }
	100% { box-shadow: 0 0 0 0 rgba(225, 6, 0, 0); }
}

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

.hr-topbar {
	background: var(--hr-ink);
	color: rgba(255, 255, 255, 0.82);
	font-size: 13px;
	font-weight: 500;
}

.hr-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 38px;
}

.hr-topbar__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}

.hr-topbar__item .hr-icon { width: 16px; height: 16px; color: var(--hr-red); }

body .hr-topbar__cta { color: var(--hr-white); text-decoration: none; font-weight: 600; }
body .hr-topbar__cta:hover { color: var(--hr-white); text-decoration: underline; }

/* ---------- Cabecera (Blocksy) ---------- */

#header [data-row*="middle"] {
	border-bottom: 1px solid var(--hr-line);
}

/* Blocksy tiene activado el "header transparente" en algunas páginas, pero su fondo es
   blanco: solo provocaba que el header tapara el inicio del contenido. */
#header [data-device][data-transparent] {
	position: relative;
}

/* El menú debe caber siempre en una línea (el colapso a "Más" de Blocksy está
   desactivado en el plugin porque provocaba un parpadeo al cargar cada página). */
body[data-header] .ct-header [data-id="menu"] {
	--menu-items-spacing: clamp(12px, 1.6vw, 34px);
}

#header [data-device="desktop"] [data-id="menu"] > ul {
	flex-wrap: nowrap;
}

@media (max-width: 1279.98px) {
	#header [data-device="desktop"] .ct-menu-link {
		--theme-font-size: 14px;
		font-size: 14px;
	}

	@media (max-width: 1149.98px) {
		body[data-header] .ct-header [data-id="menu"] { --menu-items-spacing: 10px; }
		#header [data-device="desktop"] .ct-menu-link { --theme-font-size: 13px; font-size: 13px; }
		#header [data-device="desktop"] [data-id="logo"] img { max-width: 130px; height: auto; }
	}

	/* Oculta el subtotal del carrito (queda el ícono) para ganar espacio. */
	#header [data-device="desktop"] [data-id="cart"] .ct-label {
		display: none;
	}
}

/* Blocksy reparte la fila como 1fr auto 1fr; así el menú central toma todo el espacio libre. */
#header [data-device="desktop"] [data-row*="middle"] [data-column-set="3"] > div {
	grid-template-columns: auto minmax(0, 1fr) auto;
	column-gap: 24px;
}

#header [data-device="desktop"] [data-row*="middle"] [data-column="middle"] {
	justify-content: center;
}

#header .ct-menu-link {
	white-space: nowrap;
}

/* ---------- Tarjetas de producto ---------- */

body [data-products] {
	--grid-columns-gap: 24px;
	--grid-rows-gap: 24px;
}

body [data-products] .product {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 12px 12px 16px;
	background: var(--hr-white);
	border: 1px solid var(--hr-line);
	border-radius: var(--hr-radius);
	align-items: stretch;
	text-align: start;
	--horizontal-alignment: flex-start;
	--text-horizontal-alignment: start;
	transition: transform 0.3s var(--hr-ease), box-shadow 0.3s var(--hr-ease), border-color 0.3s;
}

body [data-products] .product:hover {
	transform: translateY(-4px);
	border-color: transparent;
	box-shadow: var(--hr-shadow);
}

body [data-products] .product figure {
	margin: 0 0 14px;
}

body [data-products] .product .ct-media-container {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	background: var(--hr-soft);
	border-radius: var(--hr-radius-sm);
	overflow: hidden;
}

body [data-products] .product .ct-media-container img {
	width: 100%;
	height: 100%;
	aspect-ratio: auto !important;
	object-fit: contain;
	padding: 8%;
	mix-blend-mode: multiply;
	border-radius: 0;
}

body [data-products] .product .onsale {
	top: 22px;
	left: 22px;
	right: auto;
	z-index: 2;
	padding: 5px 10px;
	border-radius: 6px;
	background: var(--hr-red);
	color: var(--hr-white);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

body [data-products] .woocommerce-loop-product__title {
	margin: 0 0 8px;
	font-size: 18px;
	line-height: 1.15;
	text-transform: uppercase;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.3em;
}

body [data-products] .woocommerce-loop-product__title a {
	color: var(--hr-ink);
	text-decoration: none;
}

body [data-products] .woocommerce-loop-product__title a:hover { color: var(--hr-red); }

body [data-products] .product .price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 8px;
	margin-bottom: 6px;
	font-size: 19px;
	font-weight: 700;
	color: var(--hr-ink);
}

body .price > .screen-reader-text {
	position: absolute !important;
}

body [data-products] .product .price del {
	order: 2;
	font-size: 13px;
	font-weight: 500;
	color: #98a1aa;
	opacity: 1;
}

body [data-products] .product .price ins {
	color: var(--hr-red);
	text-decoration: none;
	background: none;
}

body [data-products] .product .entry-meta {
	margin: 0;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	--theme-link-initial-color: var(--hr-muted);
}

body [data-products] .product .ct-woo-card-actions {
	margin-top: auto;
	padding-top: 14px;
	width: 100%;
	opacity: 1;
	visibility: visible;
}

body [data-products] .product .ct-woo-card-actions .button {
	--theme-button-background-initial-color: var(--hr-ink);
	--theme-button-background-hover-color: var(--hr-red);
	--theme-button-text-initial-color: var(--hr-white);
	--theme-button-text-hover-color: var(--hr-white);
	--theme-button-min-height: 44px;
	--theme-button-border-radius: var(--hr-radius-sm);
	width: 100%;
	min-height: 44px;
	border-radius: var(--hr-radius-sm);
	background-color: var(--hr-ink);
	color: var(--hr-white);
	font-size: 14px;
	font-weight: 600;
}

body [data-products] .product .ct-woo-card-actions .button:hover {
	background-color: var(--hr-red);
	color: var(--hr-white);
}

body [data-products] .product .added_to_cart {
	margin-top: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--hr-red);
}

/* ---------- Tienda / categorías ---------- */

/* Blocksy reserva espacio para la cabecera transparente (que dejamos relativa) y una altura mínima de 250px. */
body[data-prefix] .hero-section[data-type="type-2"] {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-top: 0;
	/* Rojo profundo con luz arriba a la derecha y líneas diagonales finas tipo tejido. */
	background:
		repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 7px),
		radial-gradient(120% 160% at 85% 0%, #e10600 0%, #a30400 42%, #5a0200 100%);
}

/* Grano sutil para que el rojo no se vea plano. */
body[data-prefix] .hero-section[data-type="type-2"]::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	opacity: 0.35;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body[data-prefix] .hero-section[data-type="type-2"]::after {
	content: "";
	position: absolute;
	left: -5%;
	bottom: 0;
	width: 30%;
	height: 5px;
	background: var(--hr-ink);
	transform: skewX(-30deg);
}

body[data-prefix] .hero-section[data-type="type-2"] .entry-header {
	min-height: 0;
	padding-block: clamp(28px, 3.5vw, 44px);
}

body .hero-section .page-title {
	color: var(--hr-white);
	font-size: clamp(36px, 5vw, 60px);
	text-transform: uppercase;
}

body .hero-section .page-description {
	max-width: 620px;
	margin-inline: auto;
	color: rgba(255, 255, 255, 0.72);
	font-size: 16px;
}

body .hero-section .ct-breadcrumbs {
	color: rgba(255, 255, 255, 0.75);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	--theme-link-initial-color: rgba(255, 255, 255, 0.75);
	--theme-link-hover-color: var(--hr-white);
}

body.woocommerce-shop .woo-listing-top,
body.tax-product_cat .woo-listing-top {
	margin-bottom: 24px;
}

.hr-chips {
	display: flex;
	gap: 8px;
	margin-top: clamp(24px, 3vw, 40px);
	margin-bottom: 28px;
	padding-bottom: 4px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.hr-chips::-webkit-scrollbar { display: none; }

body .hr-chip {
	flex-shrink: 0;
	padding: 9px 16px;
	border: 1px solid var(--hr-line);
	border-radius: 999px;
	background: var(--hr-white);
	color: var(--hr-ink);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

body .hr-chip:hover { border-color: var(--hr-ink); color: var(--hr-ink); }
body .hr-chip.is-active { background: var(--hr-ink); border-color: var(--hr-ink); color: var(--hr-white); }

.woocommerce-result-count {
	color: var(--hr-muted);
}

.woocommerce-ordering select {
	border-radius: var(--hr-radius-sm);
}

/* ---------- Ficha de producto ---------- */

body.single-product .ct-breadcrumbs .last-item {
	color: var(--hr-muted);
}

body.single-product .product_title {
	font-size: clamp(28px, 3.2vw, 40px);
	text-transform: uppercase;
	margin-bottom: 12px;
}

body.single-product .summary > .price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	font-size: clamp(26px, 2.6vw, 32px);
	font-weight: 800;
	color: var(--hr-red);
}

body.single-product .summary > .price del {
	order: 2;
	font-size: 0.6em;
	font-weight: 500;
	color: #98a1aa;
}

body.single-product .summary > .price ins { text-decoration: none; background: none; }

body.single-product .woocommerce-product-gallery {
	border-radius: var(--hr-radius);
}

body.single-product .woocommerce-product-gallery .ct-media-container {
	background: var(--hr-soft);
	border-radius: var(--hr-radius);
}

body.single-product .woocommerce-product-gallery .ct-media-container img {
	mix-blend-mode: multiply;
}

body.single-product form.cart .single_add_to_cart_button {
	--theme-button-background-initial-color: var(--hr-red);
	--theme-button-background-hover-color: var(--hr-red-dark);
	--theme-button-text-initial-color: var(--hr-white);
	--theme-button-text-hover-color: var(--hr-white);
	background-color: var(--hr-red);
	color: var(--hr-white);
	min-height: 54px;
	border-radius: var(--hr-radius-sm);
	font-size: 16px;
	font-weight: 700;
}

body.single-product form.cart .single_add_to_cart_button:hover {
	background-color: var(--hr-red-dark);
}

body.single-product form.cart .quantity {
	--quantity-height: 54px;
	border-radius: var(--hr-radius-sm);
}

.hr-product-help {
	margin: 4px 0 24px;
}

.hr-product-perks {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hr-product-perks li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	padding: 12px;
	background: var(--hr-soft);
	border-radius: var(--hr-radius-sm);
	font-size: 13px;
	line-height: 1.35;
	color: var(--hr-muted);
}

.hr-product-perks .hr-icon { width: 22px; height: 22px; color: var(--hr-red); }
.hr-product-perks strong { display: block; color: var(--hr-ink); font-size: 14px; }

/* Vehículos compatibles (ficha de producto) */
.hr-compat {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0 0 18px;
	padding: 10px 12px;
	border: 1px solid var(--hr-line);
	border-radius: var(--hr-radius-sm);
	font-size: 14px;
	line-height: 1.4;
	color: var(--hr-muted);
}
.hr-compat .hr-icon { flex: none; width: 20px; height: 20px; color: #1a8f3c; }
.hr-compat a { color: var(--hr-ink); font-weight: 700; }

/* Barra de envío gratis (carrito y checkout) */
.hr-freeship {
	margin: 0 0 20px;
	padding: 14px 16px;
	background: var(--hr-soft);
	border-radius: var(--hr-radius-sm);
	color: var(--hr-text);
	font-size: 15px;
}
.hr-freeship p { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; }
.hr-freeship .hr-icon { width: 22px; height: 22px; color: var(--hr-red); }
.hr-freeship__bar { display: block; height: 6px; background: var(--hr-line); border-radius: 99px; overflow: hidden; }
.hr-freeship__bar span { display: block; height: 100%; background: var(--hr-red); border-radius: inherit; }
.hr-freeship.is-done .hr-icon,
.hr-freeship.is-done strong { color: #1a8f3c; }
.hr-freeship.is-done .hr-freeship__bar span { background: #1a8f3c; }

body.single-product .woocommerce-tabs .tabs li a {
	font-weight: 700;
}

body.single-product .woocommerce-Tabs-panel h2 {
	font-size: 28px;
	text-transform: uppercase;
}

body.single-product :is(.related, .upsells) > h2 {
	font-size: clamp(24px, 2.4vw, 32px);
	text-transform: uppercase;
}

/* ==========================================================================
   Portada
   ========================================================================== */

.hr-home {
	overflow-x: clip;
}

.hr-section {
	padding-block: clamp(56px, 7vw, 96px);
}

.hr-section--tight { padding-block: clamp(40px, 5vw, 64px); }
.hr-section--soft { background: var(--hr-soft); }

.hr-section--dark {
	background: var(--hr-ink);
	color: rgba(255, 255, 255, 0.75);
}

.hr-section--dark .hr-section__title { color: var(--hr-white); }

.hr-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 32px;
	margin-bottom: clamp(24px, 3vw, 40px);
}

.hr-section__head--center {
	justify-content: center;
	text-align: center;
}

.hr-section__head--center .hr-eyebrow { justify-content: center; }

.hr-section__title {
	margin: 0;
	font-size: clamp(30px, 3.6vw, 46px);
	text-transform: uppercase;
}

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

.hr-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	min-height: min(88vh, 760px);
	padding-block: 96px 136px;
	background: var(--hr-ink);
	color: rgba(255, 255, 255, 0.85);
	overflow: hidden;
}

.hr-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 70% center;
}

.hr-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(14, 17, 20, 0.96) 0%, rgba(14, 17, 20, 0.86) 38%, rgba(14, 17, 20, 0.35) 70%, rgba(14, 17, 20, 0.15) 100%),
		linear-gradient(0deg, rgba(14, 17, 20, 0.85) 0%, rgba(14, 17, 20, 0) 35%);
}

.hr-hero::after {
	content: "";
	position: absolute;
	left: -5%;
	bottom: 0;
	z-index: -1;
	width: 42%;
	height: 6px;
	background: var(--hr-red);
	transform: skewX(-30deg);
}

.hr-hero__inner {
	max-width: 1290px;
}

.hr-hero__inner > * {
	max-width: 640px;
}

.hr-hero__title {
	margin: 0 0 20px;
	font-size: clamp(44px, 7vw, 86px);
	line-height: 0.95;
	text-transform: uppercase;
	color: var(--hr-white);
}

.hr-hero__title span {
	display: block;
	color: var(--hr-red);
	font-style: italic;
}

.hr-hero__lead {
	margin: 0 0 28px;
	font-size: clamp(16px, 1.4vw, 18px);
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.78);
}

.hr-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* ---------- Carrusel de la portada ---------- */

/* Los banners se apilan en la misma celda: el carrusel toma la altura del más alto. */
.hr-hero.hr-slider {
	display: grid;
	align-items: stretch; /* todos los banners ocupan el alto del más alto (si no, las fotos dejan una franja vacía en el celular) */
	padding: 0;
	min-height: 0;
}

.hr-slider::before { content: none; }
.hr-slider::after { z-index: 3; }

.hr-slide {
	grid-area: 1 / 1;
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	min-height: min(82vh, 720px);
	padding-block: 88px 156px;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.9s ease, visibility 0s linear 0.9s;
}

.hr-slide.is-active {
	z-index: 1;
	opacity: 1;
	visibility: visible;
	transition: opacity 0.9s ease;
}

.hr-slide::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgba(14, 17, 20, 0.95) 0%, rgba(14, 17, 20, 0.8) 38%, rgba(14, 17, 20, 0.3) 70%, rgba(14, 17, 20, 0.1) 100%),
		linear-gradient(0deg, rgba(14, 17, 20, 0.85) 0%, rgba(14, 17, 20, 0) 35%);
}

.hr-slide--right::before {
	background:
		linear-gradient(270deg, rgba(14, 17, 20, 0.95) 0%, rgba(14, 17, 20, 0.8) 38%, rgba(14, 17, 20, 0.3) 70%, rgba(14, 17, 20, 0.1) 100%),
		linear-gradient(0deg, rgba(14, 17, 20, 0.85) 0%, rgba(14, 17, 20, 0) 35%);
}

/* Zoom lento de la foto mientras el banner está visible. */
.hr-slider .hr-slide__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 70% center;
	border-radius: 0;
	transform: scale(1.08);
	transition: transform 7s ease-out;
}

.hr-slider .hr-slide.is-active .hr-slide__bg { transform: scale(1); }
.hr-slider .hr-slide--right .hr-slide__bg { object-position: 30% center; }

.hr-slider .hr-hero__title { font-size: clamp(40px, 6vw, 76px); }

.hr-slide--right .hr-slide__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: right;
}

.hr-slide--right .hr-hero__actions { justify-content: flex-end; }

/* El texto entra escalonado al activarse el banner. */
.hr-slide__inner > * {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s ease, transform 0.7s var(--hr-ease);
}

.hr-slide.is-active .hr-slide__inner > * { opacity: 1; transform: none; }
.hr-slide.is-active .hr-slide__inner > :nth-child(1) { transition-delay: 0.2s; }
.hr-slide.is-active .hr-slide__inner > :nth-child(2) { transition-delay: 0.3s; }
.hr-slide.is-active .hr-slide__inner > :nth-child(3) { transition-delay: 0.42s; }
.hr-slide.is-active .hr-slide__inner > :nth-child(4) { transition-delay: 0.54s; }
.hr-slide.is-active .hr-slide__inner > :nth-child(5) { transition-delay: 0.64s; }

.hr-slide__price {
	margin: -8px 0 26px;
	font-family: var(--hr-font-display);
	font-size: clamp(30px, 3vw, 40px);
	font-weight: 800;
	line-height: 1;
	color: var(--hr-white);
}

.hr-slide__price > span {
	margin-right: 4px;
	font-family: var(--hr-font-body);
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.65);
}

.hr-slide__price strong { font-weight: 800; }

/* Banner de producto: foto real sin fondo sobre fondo oscuro con brillo rojo detrás. */
.hr-slide--product {
	background:
		radial-gradient(55% 75% at 72% 52%, rgba(225, 6, 0, 0.5) 0%, rgba(225, 6, 0, 0.12) 45%, transparent 72%),
		repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 8px),
		linear-gradient(120deg, #0b0d10 0%, #14171b 55%, #1f0b0b 100%);
}

.hr-slide--product::before {
	background: linear-gradient(0deg, rgba(14, 17, 20, 0.7) 0%, rgba(14, 17, 20, 0) 30%);
}

.hr-slide--product .hr-slide__inner > * { max-width: min(600px, 46vw); }

.hr-slide__stage {
	position: absolute;
	top: 8%;
	right: 4%;
	bottom: 20%;
	z-index: -1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48%;
}

.hr-slide__stage img {
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 100%;
	border-radius: 0;
	filter: drop-shadow(0 34px 40px rgba(0, 0, 0, 0.65));
	opacity: 0;
	transform: translateX(60px) scale(0.94);
	transition: opacity 0.8s ease, transform 1s var(--hr-ease);
}

.hr-slide.is-active .hr-slide__stage img { opacity: 1; transform: none; transition-delay: 0.25s; }

/* Dos productos: uno delante del otro, ligeramente desplazados. */
.hr-slide--pair .hr-slide__stage img { max-width: 58%; }
.hr-slide--pair .hr-slide__stage img + img { margin-left: -12%; transform: translate(60px, 8%) scale(0.86); }
.hr-slide--pair.is-active .hr-slide__stage img + img { transform: translateY(8%) scale(0.9); transition-delay: 0.4s; }

body .hr-slider__arrow {
	position: absolute;
	top: calc(50% - 30px);
	z-index: 3;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	background: rgba(14, 17, 20, 0.35);
	color: var(--hr-white);
	backdrop-filter: blur(6px);
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.25s, background-color 0.2s, border-color 0.2s;
}

.hr-slider__arrow--prev { left: 20px; }
.hr-slider__arrow--next { right: 20px; }
.hr-slider:hover .hr-slider__arrow,
body .hr-slider__arrow:focus-visible { opacity: 1; }
body .hr-slider__arrow:hover { background: var(--hr-red); border-color: var(--hr-red); color: var(--hr-white); }
.hr-slider__arrow .hr-icon { width: 22px; height: 22px; }

.hr-slider__controls {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 100px;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: 1290px;
}

.hr-slider__dots {
	display: flex;
	gap: 8px;
}

/* Cada punto es una barra; la del banner activo se llena mientras corre su tiempo. */
body .hr-slider__dot {
	position: relative;
	width: 36px;
	height: 24px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.hr-slider__dot::before,
.hr-slider__dot span {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	height: 4px;
	margin-top: -2px;
	border-radius: 4px;
}

.hr-slider__dot::before { right: 0; background: rgba(255, 255, 255, 0.35); transition: background-color 0.2s; }
.hr-slider__dot:hover::before { background: rgba(255, 255, 255, 0.6); }
body .hr-slider__dot.is-active { width: 64px; }
.hr-slider__dot span { width: 0; background: var(--hr-red); }
.hr-slider__dot.is-active span { width: 100%; }
.hr-slider.is-ready .hr-slider__dot.is-active span { animation: hr-slide-progress 6s linear forwards; }
.hr-slider.is-paused .hr-slider__dot.is-active span { animation-play-state: paused; }

@keyframes hr-slide-progress {
	from { width: 0; }
	to { width: 100%; }
}

body .hr-slider__toggle {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	background: transparent;
	color: var(--hr-white);
	cursor: pointer;
	transition: background-color 0.2s, border-color 0.2s;
}

body .hr-slider__toggle:hover { background: rgba(255, 255, 255, 0.15); border-color: var(--hr-white); color: var(--hr-white); }
.hr-slider__toggle .hr-icon { width: 14px; height: 14px; }
.hr-slider__toggle-play,
.hr-slider.is-stopped .hr-slider__toggle-pause { display: none; }
.hr-slider.is-stopped .hr-slider__toggle-play { display: contents; }

/* ---------- Beneficios ---------- */

.hr-perks {
	position: relative;
	z-index: 2;
	margin-top: -72px;
}

.hr-perks__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
	background: var(--hr-white);
	border-radius: var(--hr-radius);
	box-shadow: 0 24px 60px -30px rgba(14, 17, 20, 0.45);
	overflow: hidden;
}

.hr-perks__list li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 0;
	padding: 26px 24px;
	border-left: 1px solid var(--hr-line);
}

.hr-perks__list li:first-child { border-left: 0; }

.hr-perks__list .hr-icon {
	width: 44px;
	height: 44px;
	padding: 10px;
	border-radius: 10px;
	background: rgba(225, 6, 0, 0.08);
	color: var(--hr-red);
}

.hr-perks__list strong {
	display: block;
	margin-bottom: 4px;
	font-family: var(--hr-font-display);
	font-size: 19px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--hr-ink);
}

.hr-perks__list span {
	display: block;
	font-size: 14px;
	line-height: 1.45;
	color: var(--hr-muted);
}

/* ---------- Vehículos ---------- */

.hr-vehicles {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

body .hr-vehicle {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 260px;
	padding: 24px;
	border-radius: var(--hr-radius);
	background: linear-gradient(160deg, var(--hr-ink-3), var(--hr-ink));
	color: var(--hr-white);
	text-decoration: none;
	overflow: hidden;
	isolation: isolate;
	transition: transform 0.3s var(--hr-ease), box-shadow 0.3s var(--hr-ease);
}

body .hr-vehicle:hover {
	color: var(--hr-white);
	transform: translateY(-4px);
	box-shadow: var(--hr-shadow);
}

.hr-vehicle::before {
	content: "";
	position: absolute;
	inset: auto -20% -40% auto;
	z-index: -1;
	width: 70%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(225, 6, 0, 0.45), transparent 65%);
	transition: transform 0.4s var(--hr-ease);
}

.hr-vehicle:hover::before { transform: scale(1.25); }

.hr-vehicle__body {
	position: relative;
	z-index: 1;
	max-width: 70%;
	text-shadow: 0 2px 12px rgba(14, 17, 20, 0.6);
}

.hr-vehicle__media {
	position: absolute;
	right: -10%;
	bottom: -12%;
	z-index: -1;
	width: 66%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.94);
	overflow: hidden;
	transition: transform 0.4s var(--hr-ease);
}

.hr-vehicle:hover .hr-vehicle__media { transform: scale(1.05) rotate(-3deg); }

.hr-vehicle__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 14%;
	mix-blend-mode: multiply;
}

.hr-vehicle__name {
	display: block;
	font-family: var(--hr-font-display);
	font-size: clamp(26px, 2.4vw, 32px);
	font-weight: 800;
	line-height: 1;
	text-transform: uppercase;
}

.hr-vehicle__count {
	display: block;
	margin-top: 6px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.7);
}

.hr-vehicle__arrow {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	margin-top: auto;
	border-radius: 50%;
	background: var(--hr-red);
	transition: transform 0.3s var(--hr-ease);
}

.hr-vehicle:hover .hr-vehicle__arrow { transform: translateX(4px); }

/* Tarjeta con foto del vehículo a todo el ancho. */
body .hr-vehicle--photo { min-height: 300px; }
.hr-vehicle--photo::before { content: none; }

.hr-vehicle--photo .hr-vehicle__media {
	inset: 0;
	width: 100%;
	aspect-ratio: auto;
	border-radius: 0;
	background: var(--hr-ink);
}

.hr-vehicle--photo .hr-vehicle__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(14, 17, 20, 0.85) 0%, rgba(14, 17, 20, 0.25) 45%, rgba(14, 17, 20, 0.1) 65%, rgba(14, 17, 20, 0.6) 100%);
}

.hr-vehicle--photo .hr-vehicle__media img {
	object-fit: cover;
	object-position: 60% 70%;
	padding: 0;
	border-radius: 0;
	mix-blend-mode: normal;
	transition: transform 0.6s var(--hr-ease);
}

.hr-vehicle--photo:hover .hr-vehicle__media { transform: none; }
.hr-vehicle--photo:hover .hr-vehicle__media img { transform: scale(1.06); }

/* ---------- Categorías ---------- */

.hr-cats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

body .hr-cat {
	display: flex;
	flex-direction: column;
	padding: 14px 14px 18px;
	border-radius: var(--hr-radius);
	background: var(--hr-white);
	border: 1px solid var(--hr-line);
	color: var(--hr-ink);
	text-decoration: none;
	transition: transform 0.3s var(--hr-ease), box-shadow 0.3s var(--hr-ease), border-color 0.3s;
}

body .hr-cat:hover {
	color: var(--hr-ink);
	border-color: transparent;
	transform: translateY(-4px);
	box-shadow: var(--hr-shadow);
}

.hr-cat__media {
	display: block;
	aspect-ratio: 4 / 3;
	margin-bottom: 14px;
	border-radius: var(--hr-radius-sm);
	background: var(--hr-soft);
	overflow: hidden;
}

.hr-cat__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 10%;
	mix-blend-mode: multiply;
	transition: transform 0.4s var(--hr-ease);
}

.hr-cat:hover .hr-cat__media img { transform: scale(1.06); }

.hr-cat__name {
	font-family: var(--hr-font-display);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.1;
	text-transform: uppercase;
}

.hr-cat__count {
	margin-top: 2px;
	font-size: 13px;
	color: var(--hr-muted);
}

/* ---------- Promo ---------- */

.hr-promo {
	position: relative;
	isolation: isolate;
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	align-items: center;
	gap: 32px;
	padding: clamp(32px, 5vw, 64px);
	border-radius: calc(var(--hr-radius) + 6px);
	background: linear-gradient(120deg, var(--hr-ink) 0%, var(--hr-ink-3) 100%);
	color: rgba(255, 255, 255, 0.78);
	overflow: hidden;
}

.hr-promo::before {
	content: "";
	position: absolute;
	right: -10%;
	top: -30%;
	z-index: -1;
	width: 60%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(225, 6, 0, 0.55), transparent 62%);
}

.hr-promo__title {
	margin: 0 0 14px;
	font-size: clamp(36px, 5vw, 64px);
	line-height: 0.95;
	text-transform: uppercase;
	color: var(--hr-white);
}

.hr-promo__title span { display: block; color: var(--hr-red); }

.hr-promo__lead {
	max-width: 460px;
	margin: 0 0 18px;
	font-size: 16px;
	line-height: 1.6;
}

.hr-promo__price {
	margin: 0 0 24px;
	font-family: var(--hr-font-display);
	font-size: 34px;
	font-weight: 800;
	color: var(--hr-white);
}

.hr-promo__price del { font-size: 0.6em; color: rgba(255, 255, 255, 0.5); margin-right: 8px; }
.hr-promo__price ins { text-decoration: none; background: none; }

.hr-promo__media {
	display: block;
	justify-self: center;
	width: min(100%, 420px);
	aspect-ratio: 1;
	padding: 8%;
	border-radius: 50%;
	background: radial-gradient(circle at 50% 45%, #fff 0%, #e9ecef 70%);
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
}

.hr-promo__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
	transition: transform 0.5s var(--hr-ease);
}

.hr-promo:hover .hr-promo__media img { transform: scale(1.05) rotate(-4deg); }

/* ---------- Marcas ---------- */

.hr-brands {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hr-brands li { margin: 0; }

body .hr-brands a {
	display: inline-flex;
	align-items: center;
	min-height: 54px;
	padding: 0 24px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: var(--hr-radius-sm);
	color: rgba(255, 255, 255, 0.85);
	font-family: var(--hr-font-display);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

body .hr-brands a:hover {
	border-color: var(--hr-red);
	background: rgba(225, 6, 0, 0.12);
	color: var(--hr-white);
}

/* ---------- CTA ---------- */

.hr-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 40px;
	padding: clamp(28px, 4vw, 48px);
	border: 1px solid var(--hr-line);
	border-left: 6px solid var(--hr-red);
	border-radius: var(--hr-radius);
	background: var(--hr-soft);
}

.hr-cta__title {
	margin: 0 0 6px;
	font-size: clamp(28px, 3vw, 38px);
	text-transform: uppercase;
}

.hr-cta p { margin: 0; color: var(--hr-muted); font-size: 16px; }

.hr-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* ==========================================================================
   Sobre nosotros
   ========================================================================== */

.hr-hero--page {
	min-height: min(70vh, 620px);
	padding-block: 96px;
}

.hr-hero--page .hr-hero__bg { object-position: 65% 60%; }

.hr-story {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: clamp(32px, 6vw, 80px);
}

.hr-story__media {
	position: relative;
}

.hr-story__media img,
.hr-story__video {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: calc(var(--hr-radius) + 6px);
	box-shadow: var(--hr-shadow);
}

.hr-story__media::before {
	content: "";
	position: absolute;
	inset: 24px -24px -24px 24px;
	z-index: -1;
	border: 3px solid var(--hr-red);
	border-radius: calc(var(--hr-radius) + 6px);
}

.hr-story__badge {
	position: absolute;
	left: -20px;
	bottom: 28px;
	padding: 16px 20px;
	border-radius: var(--hr-radius);
	background: var(--hr-ink);
	color: rgba(255, 255, 255, 0.75);
	box-shadow: var(--hr-shadow);
}

.hr-story__badge strong {
	display: block;
	font-family: var(--hr-font-display);
	font-size: 40px;
	font-weight: 800;
	line-height: 1;
	color: var(--hr-red);
}

.hr-story__badge span { font-size: 13px; font-weight: 600; }

/* Mascota 3D */

.hr-mascot {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(60% 70% at 72% 55%, rgba(225, 6, 0, 0.28), transparent 70%),
		var(--hr-ink);
	color: rgba(255, 255, 255, 0.75);
}

.hr-mascot .hr-section__title { color: var(--hr-white); }
.hr-mascot .hr-section__title span { display: block; color: var(--hr-red); }

.hr-mascot__inner {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	align-items: center;
	gap: clamp(24px, 5vw, 64px);
}

.hr-mascot__lead {
	margin: 18px 0 20px;
	font-size: 17px;
	line-height: 1.7;
}

.hr-mascot__hint {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 8px 14px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.85);
}

.hr-mascot__hint .hr-icon { width: 16px; height: 16px; color: var(--hr-red); }

.hr-mascot__stage model-viewer {
	display: block;
	width: 100%;
	height: clamp(360px, 48vw, 560px);
	--poster-color: transparent;
	--progress-bar-color: var(--hr-red);
	cursor: grab;
}

.hr-mascot__stage model-viewer:active { cursor: grabbing; }

.hr-mascot__model {
	animation: hr-mascot-float 3.2s ease-in-out infinite;
	outline: none;
}

.hr-mascot__model.is-jumping {
	animation: hr-mascot-jump 0.9s cubic-bezier(0.3, 0.7, 0.4, 1);
}

@keyframes hr-mascot-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-12px); }
}

@keyframes hr-mascot-jump {
	0% { transform: translateY(0) scale(1, 1); }
	15% { transform: translateY(6px) scale(1.04, 0.94); }
	50% { transform: translateY(-70px) scale(0.97, 1.04); }
	85% { transform: translateY(0) scale(1.03, 0.96); }
	100% { transform: translateY(0) scale(1, 1); }
}

.hr-story__lead {
	margin: 18px 0 24px;
	font-size: 17px;
	line-height: 1.7;
	color: var(--hr-muted);
}

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

.hr-checklist li {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-weight: 600;
	color: var(--hr-ink);
}

.hr-checklist .hr-icon {
	width: 28px;
	height: 28px;
	padding: 5px;
	border-radius: 50%;
	background: var(--hr-red);
	color: var(--hr-white);
	stroke-width: 2.6;
}

/* Cifras */

.hr-stats {
	background: var(--hr-red);
	background-image: repeating-linear-gradient(-60deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 22px);
	color: var(--hr-white);
}

.hr-stats__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.hr-stats__list li {
	margin: 0;
	padding: clamp(28px, 4vw, 44px) 16px;
	text-align: center;
	border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.hr-stats__list li:first-child { border-left: 0; }

.hr-stats__list strong {
	display: block;
	font-family: var(--hr-font-display);
	font-size: clamp(40px, 5vw, 60px);
	font-weight: 800;
	line-height: 1;
}

.hr-stats__list span {
	display: block;
	margin-top: 8px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
}

/* Misión / compromiso / visión */

.hr-values {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.hr-value {
	position: relative;
	padding: 32px 28px;
	border-radius: var(--hr-radius);
	background: var(--hr-white);
	border: 1px solid var(--hr-line);
	overflow: hidden;
	transition: transform 0.3s var(--hr-ease), box-shadow 0.3s var(--hr-ease);
}

.hr-value::after {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 4px;
	background: var(--hr-red);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.4s var(--hr-ease);
}

.hr-value:hover { transform: translateY(-4px); box-shadow: var(--hr-shadow); }
.hr-value:hover::after { transform: scaleX(1); }

.hr-value__num {
	position: absolute;
	right: 20px;
	top: 10px;
	font-family: var(--hr-font-display);
	font-size: 64px;
	font-weight: 800;
	line-height: 1;
	color: var(--hr-soft);
}

.hr-value > .hr-icon {
	position: relative;
	width: 52px;
	height: 52px;
	padding: 12px;
	border-radius: 12px;
	background: rgba(225, 6, 0, 0.08);
	color: var(--hr-red);
}

.hr-value__title {
	position: relative;
	margin: 18px 0 10px;
	font-size: 26px;
	text-transform: uppercase;
}

.hr-value p {
	position: relative;
	margin: 0;
	line-height: 1.65;
	color: var(--hr-muted);
}

/* Galería */

.hr-gallery {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	grid-template-rows: repeat(2, minmax(220px, 1fr));
	gap: 20px;
}

.hr-gallery__item {
	position: relative;
	margin: 0;
	border-radius: var(--hr-radius);
	overflow: hidden;
	background: var(--hr-ink);
}

.hr-gallery__item:first-child { grid-row: span 2; }

.hr-gallery__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--hr-ease);
}

.hr-gallery__item:hover img { transform: scale(1.05); }

/* Antes/después: las etiquetas están a la izquierda de la imagen. */
.hr-gallery__item:nth-child(2) img { object-position: left center; }

.hr-gallery__item figcaption {
	position: absolute;
	inset: auto 0 0 0;
	padding: 48px 22px 20px;
	background: linear-gradient(0deg, rgba(14, 17, 20, 0.92), rgba(14, 17, 20, 0));
	color: rgba(255, 255, 255, 0.8);
	font-size: 14px;
}

.hr-gallery__item figcaption strong {
	display: block;
	font-family: var(--hr-font-display);
	font-size: 24px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--hr-white);
}

/* Logos de marcas */

.hr-logos {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hr-logos li {
	display: grid;
	place-items: center;
	margin: 0;
	padding: 12px 18px;
	border-radius: var(--hr-radius);
	background: var(--hr-white);
	border: 1px solid var(--hr-line);
	overflow: hidden;
}

/* Los archivos de logo traen mucho margen vacío arriba y abajo: el recorte 2.6:1 lo elimina
   sin cortar el logo (medido en cada imagen). */
.hr-logos img {
	width: 100%;
	height: auto;
	aspect-ratio: 2.6 / 1;
	object-fit: cover;
	mix-blend-mode: multiply;
	filter: grayscale(1);
	opacity: 0.75;
	transition: filter 0.3s, opacity 0.3s, transform 0.3s var(--hr-ease);
}

.hr-logos li:hover img { filter: none; opacity: 1; transform: scale(1.06); }

/* CTA + newsletter */

.hr-promo--cta {
	grid-template-columns: 1.2fr 0.8fr;
	align-items: center;
}

.hr-newsletter {
	padding: 28px;
	border-radius: var(--hr-radius);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(6px);
}

.hr-newsletter__title {
	margin: 0 0 6px;
	font-size: 28px;
	text-transform: uppercase;
	color: var(--hr-white);
}

.hr-newsletter > p { margin: 0 0 16px; font-size: 15px; }

.hr-newsletter .wpforms-container {
	margin: 0 !important;
}

.hr-newsletter .wpforms-form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 10px;
}

.hr-newsletter .wpforms-field-container { flex: 1 1 200px; }
.hr-newsletter .wpforms-field { padding: 0 !important; }
.hr-newsletter .wpforms-field-label { display: none !important; }

body .hr-newsletter input[type="email"] {
	width: 100% !important;
	max-width: none !important;
	height: 50px !important;
	padding: 0 16px !important;
	border: 1px solid rgba(255, 255, 255, 0.2) !important;
	border-radius: var(--hr-radius-sm) !important;
	background: rgba(255, 255, 255, 0.95) !important;
	color: var(--hr-ink) !important;
	font-size: 15px !important;
}

.hr-newsletter .wpforms-submit-container { padding: 0 !important; margin: 0 !important; }

body .hr-newsletter button[type="submit"] {
	height: 50px !important;
	padding: 0 22px !important;
	border: 0 !important;
	border-radius: var(--hr-radius-sm) !important;
	background: var(--hr-red) !important;
	color: var(--hr-white) !important;
	font-weight: 700 !important;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	cursor: pointer;
}

body .hr-newsletter button[type="submit"]:hover { background: var(--hr-red-dark) !important; }

.hr-newsletter .wpforms-error,
.hr-newsletter .wpforms-confirmation-container-full {
	color: var(--hr-white) !important;
}

/* ---------- Productos dentro de la portada ---------- */

.hr-home .woocommerce { margin: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 999.98px) {
	.hr-perks__list,
	.hr-vehicles,
	.hr-cats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hr-perks__list li:nth-child(odd) { border-left: 0; }
	.hr-perks__list li:nth-child(n + 3) { border-top: 1px solid var(--hr-line); }

	.hr-promo { grid-template-columns: 1fr; text-align: left; }
	.hr-promo__media { width: min(80%, 340px); grid-row: 1; }

	.hr-story { grid-template-columns: 1fr; }
	.hr-story__media { max-width: 640px; }
	.hr-mascot__inner { grid-template-columns: 1fr; }
	.hr-mascot__stage { order: -1; }
	.hr-stats__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hr-stats__list li:nth-child(odd) { border-left: 0; }
	.hr-stats__list li:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, 0.2); }
	.hr-values { grid-template-columns: 1fr; }
	.hr-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }

	.hr-topbar__item--wide { display: none; }
}

@media (max-width: 689.98px) {
	body [data-products],
	body .related [data-products],
	body .upsells [data-products] {
		--shop-columns: repeat(2, minmax(0, 1fr));
		--grid-columns-gap: 12px;
		--grid-rows-gap: 12px;
	}

	body [data-products] .product { padding: 8px 8px 12px; }
	body [data-products] .product figure { margin-bottom: 10px; }
	body [data-products] .product .onsale { top: 14px; left: 14px; font-size: 10px; padding: 4px 8px; }
	body [data-products] .woocommerce-loop-product__title { font-size: 15px; }
	body [data-products] .product .price { font-size: 16px; }
	body [data-products] .product .entry-meta { display: none; }
	body [data-products] .product .ct-woo-card-actions { padding-top: 10px; }
	body [data-products] .product .ct-woo-card-actions .button {
		--theme-button-min-height: 40px;
		min-height: 40px;
		padding-inline: 6px;
		font-size: 13px;
	}

	.hr-hero {
		min-height: 0;
		padding-block: 56px 112px;
	}

	.hr-hero__bg { object-position: 78% center; }

	.hr-hero::before {
		background: linear-gradient(0deg, rgba(14, 17, 20, 0.97) 10%, rgba(14, 17, 20, 0.78) 60%, rgba(14, 17, 20, 0.55) 100%);
	}

	.hr-hero__actions .hr-btn { flex: 1 1 100%; }

	.hr-slide {
		min-height: 560px;
		align-items: flex-end;
		padding-block: 56px 140px;
	}

	.hr-slide::before,
	.hr-slide--right::before {
		background: linear-gradient(0deg, rgba(14, 17, 20, 0.97) 15%, rgba(14, 17, 20, 0.7) 60%, rgba(14, 17, 20, 0.3) 100%);
	}

	.hr-slider .hr-slide__bg { object-position: 72% center; }
	.hr-slider .hr-slide--right .hr-slide__bg { object-position: 35% center; }

	.hr-slide--right .hr-slide__inner { align-items: flex-start; text-align: left; }
	.hr-slide--right .hr-hero__actions { justify-content: flex-start; }

	/* En el celular el producto va arriba y el texto debajo. */
	.hr-slide--product { min-height: 0; padding-top: 262px; }
	.hr-slide--product .hr-slide__inner > * { max-width: none; }
	.hr-slide__stage { top: 20px; right: 16px; bottom: auto; left: 16px; width: auto; height: 220px; }
	.hr-slide--product::before { background: linear-gradient(0deg, rgba(14, 17, 20, 0.85) 0%, rgba(14, 17, 20, 0) 55%); }

	body .hr-slider__arrow { display: none; }
	.hr-slider__controls { bottom: 84px; }
	body .hr-slider__dot { width: 24px; }
	body .hr-slider__dot.is-active { width: 44px; }


	.hr-perks { margin-top: -64px; }
	.hr-perks__list li { flex-direction: column; gap: 10px; padding: 16px 14px; }
	.hr-perks__list li:nth-child(even) { border-left: 1px solid var(--hr-line); }
	.hr-perks__list .hr-icon { width: 38px; height: 38px; padding: 8px; }
	.hr-perks__list strong { font-size: 16px; }
	.hr-perks__list span { font-size: 13px; }

	.hr-vehicles,
	.hr-cats { gap: 12px; }

	body .hr-vehicle { min-height: 190px; padding: 16px; }
	.hr-vehicle__name { font-size: 22px; }
	.hr-vehicle__count { font-size: 13px; }
	.hr-vehicle__media { width: 78%; right: -14%; bottom: 4%; }
	.hr-vehicle--photo .hr-vehicle__media { width: 100%; }
	body .hr-vehicle--photo { min-height: 210px; }
	.hr-vehicle__arrow { width: 36px; height: 36px; }

	body .hr-cat { padding: 8px 8px 12px; }
	.hr-cat__name { font-size: 18px; }
	.hr-cat__count { font-size: 12px; }

	.hr-section__head .hr-link { font-size: 14px; }

	.hr-brands { gap: 8px; }
	body .hr-brands a { min-height: 44px; padding: 0 14px; font-size: 16px; }

	.hr-cta__actions,
	.hr-cta__actions .hr-btn { width: 100%; }
	.hr-cta__actions .hr-btn { white-space: normal; }

	.hr-hero--page { padding-block: 64px; }
	.hr-story__media::before { inset: 14px -10px -14px 14px; }
	.hr-story__badge { left: 12px; bottom: 12px; padding: 12px 14px; }
	.hr-story__badge strong { font-size: 30px; }
	.hr-gallery { grid-template-columns: 1fr; grid-template-rows: none; }
	.hr-gallery__item:first-child { grid-row: auto; }
	.hr-gallery__item { aspect-ratio: 4 / 3; }
	.hr-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.hr-logos li { padding: 8px 12px; }
	.hr-logos li:last-child:nth-child(odd) { grid-column: span 2; justify-self: center; width: calc(50% - 5px); }
	.hr-newsletter { padding: 20px; }
	.hr-newsletter button[type="submit"] { width: 100%; }

	.hr-product-perks { gap: 8px; }
	.hr-product-perks li { flex-direction: column; gap: 6px; padding: 10px; font-size: 12px; }
	.hr-product-perks strong { font-size: 13px; }

	.hr-topbar { font-size: 12px; }
}

/* ---------- Modo Halloween (body.hr-halloween, se activa desde hr_ui_config) ---------- */

.hr-halloween { --hr-orange: #ff7a1a; }

.hr-promo-bar {
	background: linear-gradient(90deg, #1a0d05, #3a1704 50%, #1a0d05);
	border-bottom: 1px solid rgba(255, 122, 26, 0.35);
	color: #ffe3cc;
	font-size: 14px;
}

.hr-promo-bar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 10px;
	min-height: 42px;
	padding-block: 6px;
	text-align: center;
}

.hr-promo-bar strong { color: var(--hr-orange); }
.hr-promo-bar__until { color: rgba(255, 227, 204, 0.7); font-size: 13px; }

body .hr-coupon {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 6px 4px 12px;
	border: 1.5px dashed var(--hr-orange);
	border-radius: 8px;
	background: rgba(255, 122, 26, 0.12);
	color: #fff;
	font-family: var(--hr-font-display);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.2s;
}

body .hr-coupon:hover { background: rgba(255, 122, 26, 0.25); color: #fff; }

.hr-coupon__hint {
	padding: 2px 8px;
	border-radius: 5px;
	background: var(--hr-orange);
	color: #1a0d05;
	font-family: var(--hr-font-body);
	font-size: 11px;
	letter-spacing: 0.02em;
}

/* Iconos y detalles en naranja, el rojo de marca se mantiene en botones */
.hr-halloween .hr-topbar__item .hr-icon { color: var(--hr-orange); }
.hr-halloween .hr-slide:first-child .hr-eyebrow { color: var(--hr-orange); }
.hr-halloween .hr-slide:first-child .hr-hero__title span { color: var(--hr-orange); }

/* Telaraña en la esquina del banner de Halloween */
.hr-halloween .hr-slide:first-child::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	z-index: 1;
	width: clamp(80px, 11vw, 160px);
	aspect-ratio: 1;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='white' stroke-opacity='.28' stroke-width='.7'%3E%3Cpath d='M100 0L0 100M100 0L30 100M100 0L0 30M100 0L65 100M100 0L0 65'/%3E%3Cpath d='M85 0Q88 12 100 15M68 0Q74 25 100 32M50 0Q60 40 100 50M32 0Q46 54 100 68M14 0Q32 68 100 86'/%3E%3C/svg%3E") no-repeat top right / contain;
	pointer-events: none;
}

/* Murciélagos que cruzan la pantalla de vez en cuando */
.hr-bats {
	position: fixed;
	inset: 0;
	z-index: 9;
	overflow: hidden;
	pointer-events: none;
}

.hr-bat {
	position: absolute;
	left: -80px;
	width: 46px;
	fill: #120a06;
	filter: drop-shadow(0 0 6px rgba(255, 122, 26, 0.55));
	opacity: 0;
	animation: hr-bat-fly 22s linear infinite;
}

.hr-bat--1 { top: 18vh; animation-delay: 3s; }
.hr-bat--2 { top: 30vh; width: 30px; animation-delay: 4.2s; animation-duration: 25s; }
.hr-bat--3 { top: 60vh; width: 38px; animation-delay: 13s; animation-duration: 28s; }

@keyframes hr-bat-fly {
	0%   { opacity: 0; transform: translate(0, 0) scaleY(1); }
	2%   { opacity: 0.9; }
	5%   { transform: translate(15vw, -4vh) scaleY(0.6); }
	10%  { transform: translate(30vw, 2vh) scaleY(1); }
	15%  { transform: translate(45vw, -3vh) scaleY(0.6); }
	20%  { transform: translate(60vw, 3vh) scaleY(1); }
	25%  { transform: translate(75vw, -2vh) scaleY(0.6); }
	32%  { opacity: 0.9; transform: translate(calc(100vw + 160px), -6vh) scaleY(1); }
	33%, 100% { opacity: 0; transform: translate(calc(100vw + 160px), -6vh); }
}

@media (max-width: 640px) {
	.hr-promo-bar { font-size: 13px; }
	.hr-promo-bar__until { display: none; }
	.hr-bat--3 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.hr-bats { display: none; }
}

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