/*
 * LU Food Service · estilos complementarios.
 *
 * Colores, tipografía y botones viven en theme.json. Aquí solo va lo que
 * theme.json no puede expresar: estados hover de las tarjetas, íconos de los
 * botones y el acomodo de los bloques de WooCommerce.
 */

:root {
	--lf-naranja: var(--wp--preset--color--naranja);
	--lf-naranja-claro: var(--wp--preset--color--naranja-claro);
	--lf-gris-claro: var(--wp--preset--color--gris-claro);
	--lf-gris-oscuro: var(--wp--preset--color--gris-oscuro);
	--lf-beige: var(--wp--preset--color--beige);
	--lf-transicion: 180ms ease;
	/* Convierte un ícono negro al naranja de la marca (#CB4412). */
	--lf-filtro-naranja: brightness(0) saturate(100%) invert(31%) sepia(84%) saturate(2386%) hue-rotate(4deg) brightness(89%) contrast(92%);
}

html {
	scroll-behavior: smooth;
}

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

/* El texto resaltado de los títulos (herramienta "Resaltado") nunca lleva fondo. */
mark.has-inline-color {
	background: none;
}

/* ───────────── Botones con ícono ───────────── */

.wp-block-button.is-style-flecha .wp-block-button__link,
.wp-block-button.is-style-whatsapp .wp-block-button__link,
.wp-block-button.is-style-agregar .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 14px;
}

.wp-block-button.is-style-flecha .wp-block-button__link::after,
.wp-block-button.is-style-whatsapp .wp-block-button__link::after,
.wp-block-button.is-style-agregar .wp-block-button__link::after {
	content: "";
	flex: none;
	background-color: currentColor;
	-webkit-mask: var(--lf-icono) center / contain no-repeat;
	mask: var(--lf-icono) center / contain no-repeat;
	transition: transform var(--lf-transicion);
}

.wp-block-button.is-style-flecha .wp-block-button__link::after {
	--lf-icono: url(../icons/flecha.svg);
	width: 26px;
	height: 13px;
}

.wp-block-button.is-style-flecha .wp-block-button__link:hover::after {
	transform: translateX(4px);
}

.wp-block-button.is-style-whatsapp .wp-block-button__link::after {
	--lf-icono: url(../icons/whatsapp.svg);
	width: 23px;
	height: 23px;
	margin-left: 18px;
}

.wp-block-button.is-style-agregar .wp-block-button__link::after {
	--lf-icono: url(../icons/agregar.svg);
	width: 15px;
	height: 15px;
}

.wp-element-button,
.wp-block-button__link {
	transition: background-color var(--lf-transicion), color var(--lf-transicion);
}

/* ───────────── Etiquetas ───────────── */

.is-style-etiqueta {
	color: var(--lf-naranja);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.15;
	text-transform: uppercase;
}

/* ───────────── Encabezado ───────────── */

.lf-header {
	position: relative;
	z-index: 20;
}

.lf-header__fila {
	min-height: 93px;
	gap: 24px;
}

.lf-header__logo img {
	width: 161px;
	height: auto;
}

.lf-header__menu .wp-block-navigation-item.current-menu-item > a,
.lf-header__menu .wp-block-navigation-item__content[aria-current="page"] {
	color: var(--lf-naranja);
}

/* Íconos redondos de la derecha: buscar, mi cuenta y carrito. */
.lf-header__iconos {
	align-items: flex-start;
}

.lf-header__iconos .lf-icono-circulo,
.lf-header__buscar .wp-block-search__button,
.lf-header__cuenta a::before,
.lf-header__carrito .wc-block-mini-cart__button::before {
	width: 44px;
	height: 44px;
	flex: none;
	background: center / 44px 44px no-repeat;
	border-radius: 50%;
	transition: box-shadow var(--lf-transicion);
}

.lf-header__buscar .wp-block-search__button:hover,
.lf-header__cuenta a:hover::before,
.lf-header__carrito .wc-block-mini-cart__button:hover::before {
	box-shadow: 0 0 0 2px var(--lf-naranja-claro);
}

/* Buscar */
.lf-header__buscar .wp-block-search__inside-wrapper {
	border: 0;
	padding: 0;
}

.lf-header__buscar .wp-block-search__button {
	margin: 0;
	padding: 0;
	border: 0;
	background-color: transparent;
	background-image: url(../icons/buscar.svg);
	color: transparent;
}

.lf-header__buscar .wp-block-search__button svg {
	opacity: 0;
}

.lf-header__buscar .wp-block-search__input {
	height: 44px;
	border: 0.5px solid var(--lf-gris-oscuro);
	border-radius: 0;
	font-size: var(--wp--preset--font-size--xs);
}

.lf-header__buscar:not(.wp-block-search__searchfield-hidden) .wp-block-search__input {
	margin-right: 8px;
}

/* Mi cuenta */
.lf-header__cuenta a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	color: var(--wp--preset--color--negro);
	font-size: 10px;
	font-weight: 700;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}

.lf-header__cuenta a::before {
	content: "";
	background-image: url(../icons/cuenta.svg);
}

.lf-header__cuenta svg {
	display: none;
}

.lf-header__cuenta .label {
	padding: 0;
}

/* Carrito */
.lf-header__carrito .wc-block-mini-cart__button {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 0;
	color: var(--wp--preset--color--negro);
	font-family: inherit;
}

.lf-header__carrito .wc-block-mini-cart__button::before {
	content: "";
	background-image: url(../icons/carrito.svg);
}

.lf-header__carrito .wc-block-mini-cart__button::after {
	content: "Carrito";
	font-size: 10px;
	font-weight: 700;
	line-height: 1.3;
	text-transform: uppercase;
}

.lf-header__carrito .wc-block-mini-cart__quantity-badge {
	position: absolute;
	top: -4px;
	right: -6px;
}

.lf-header__carrito .wc-block-mini-cart__icon {
	display: none;
}

.lf-header__carrito .wc-block-mini-cart__badge {
	position: static;
	min-width: 18px;
	height: 18px;
	margin: 0;
	border: 0;
	background: var(--lf-naranja);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	transform: none;
}

.lf-header__carrito .wc-block-mini-cart__amount {
	display: none;
}

@media (max-width: 781px) {
	.lf-header__fila {
		min-height: 64px;
		gap: 12px;
	}

	.lf-header__logo img {
		width: 110px;
	}

	.lf-header__iconos {
		gap: 10px !important;
		margin-left: auto;
	}

	.lf-header__cuenta .label,
	.lf-header__carrito .wc-block-mini-cart__button::after {
		display: none;
	}

	.lf-header__menu {
		order: 3;
	}

	.lf-header__menu .wp-block-navigation__responsive-container-open {
		width: 44px;
		height: 44px;
		justify-content: center;
	}

	.lf-header__menu .wp-block-navigation__responsive-container.is-menu-open {
		padding: 24px;
		font-size: var(--wp--preset--font-size--md);
	}

	.lf-header__menu .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		gap: 24px;
	}
}

/* ───────────── Portadas (hero) ───────────── */

.lf-hero.wp-block-cover {
	min-height: clamp(460px, 47vw, 643px);
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
}

.lf-hero .wp-block-cover__inner-container {
	max-width: 1183px;
	margin-inline: auto;
}

.lf-hero .lf-hero__texto {
	max-width: 551px;
}

@media (max-width: 781px) {
	.lf-hero.wp-block-cover {
		align-items: flex-end;
	}

	/* En móvil la foto queda detrás del texto: se oscurece para que se lea. */
	.lf-hero .wp-block-cover__background {
		opacity: 0.55 !important;
		background: linear-gradient(to top, #000 35%, transparent) !important;
	}
}

/* ───────────── Tarjeta de categoría ───────────── */

.is-style-tarjeta-categoria {
	position: relative;
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: 128px;
	padding: 20px clamp(20px, 3vw, 34px) 20px clamp(20px, 3.5vw, 44px);
	container-type: inline-size;
	background: var(--lf-gris-claro);
	transition: background-color var(--lf-transicion);
}

.is-style-tarjeta-categoria > * {
	margin: 0 !important;
}

.is-style-tarjeta-categoria .wp-block-image {
	flex: none;
	width: 72px;
	display: flex;
	justify-content: center;
}

.is-style-tarjeta-categoria .wp-block-image img {
	width: auto;
	max-width: 72px;
	height: auto;
	max-height: 60px;
	transition: filter var(--lf-transicion);
}

.is-style-tarjeta-categoria :where(h2, h3, h4) {
	/* Se ajusta al ancho de la tarjeta para que la flecha nunca se encime. */
	font-size: clamp(17px, 6.3cqi, 24px);
	line-height: 1.15;
	transition: color var(--lf-transicion);
}

.is-style-tarjeta-categoria :where(h2, h3, h4) a {
	color: inherit;
	text-decoration: none;
}

/* Toda la tarjeta es clic. */
.is-style-tarjeta-categoria a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.is-style-tarjeta-categoria::after {
	content: "";
	flex: none;
	width: 26px;
	height: 13px;
	margin-left: auto;
	background-color: var(--wp--preset--color--negro);
	-webkit-mask: url(../icons/flecha.svg) center / contain no-repeat;
	mask: url(../icons/flecha.svg) center / contain no-repeat;
	transition: background-color var(--lf-transicion), transform var(--lf-transicion);
}

.is-style-tarjeta-categoria:hover,
.is-style-tarjeta-categoria:focus-within {
	background: var(--lf-naranja-claro);
}

.is-style-tarjeta-categoria:hover :where(h2, h3, h4),
.is-style-tarjeta-categoria:focus-within :where(h2, h3, h4) {
	color: var(--lf-naranja);
}

.is-style-tarjeta-categoria:hover .wp-block-image img,
.is-style-tarjeta-categoria:focus-within .wp-block-image img {
	filter: var(--lf-filtro-naranja);
}

.is-style-tarjeta-categoria:hover::after {
	background-color: var(--lf-naranja);
	transform: translateX(4px);
}

/* ───────────── Tarjeta con ícono (tipo de cliente) ───────────── */

.is-style-tarjeta-cliente {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 0 30px 26px 43px;
	background: linear-gradient(to bottom, transparent 40px, var(--lf-gris-claro) 40px);
	transition: background var(--lf-transicion);
}

.is-style-tarjeta-cliente > * {
	margin: 0 !important;
}

.is-style-tarjeta-cliente .wp-block-image img {
	width: 80px;
	height: 80px;
}

.is-style-tarjeta-cliente :where(h2, h3, h4) {
	font-size: var(--wp--preset--font-size--xl);
	line-height: 1.15;
	transition: color var(--lf-transicion);
}

.is-style-tarjeta-cliente :where(h2, h3, h4) a {
	color: inherit;
	text-decoration: none;
}

.is-style-tarjeta-cliente a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.is-style-tarjeta-cliente:hover,
.is-style-tarjeta-cliente:focus-within {
	background: linear-gradient(to bottom, transparent 40px, var(--lf-naranja-claro) 40px);
}

.is-style-tarjeta-cliente:hover :where(h2, h3, h4),
.is-style-tarjeta-cliente:focus-within :where(h2, h3, h4) {
	color: var(--lf-naranja);
}

/* ───────────── Tarjeta con foto ───────────── */

.is-style-tarjeta-foto {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding-bottom: 30px;
	background: var(--lf-gris-claro);
	transition: background-color var(--lf-transicion);
}

.is-style-tarjeta-foto > * {
	margin: 0 !important;
	padding-inline: clamp(24px, 3vw, 40px);
}

.is-style-tarjeta-foto > .wp-block-image:first-child {
	padding: 0;
}

.is-style-tarjeta-foto > .wp-block-image:first-child img {
	display: block;
	width: 100%;
	aspect-ratio: 377 / 235;
	object-fit: cover;
}

/* El ícono redondo se monta sobre la foto. */
.is-style-tarjeta-foto > .wp-block-image:nth-child(2) {
	margin-top: -52px !important;
	position: relative;
}

.is-style-tarjeta-foto > .wp-block-image:nth-child(2) img {
	width: 80px;
	height: 80px;
}

.is-style-tarjeta-foto :where(h2, h3, h4) {
	font-size: var(--wp--preset--font-size--xl);
	line-height: 1.15;
	transition: color var(--lf-transicion);
}

.is-style-tarjeta-foto :where(h2, h3, h4) a {
	color: inherit;
	text-decoration: none;
}

.is-style-tarjeta-foto a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.is-style-tarjeta-foto p {
	font-size: var(--wp--preset--font-size--base);
	line-height: 1.25;
}

.is-style-tarjeta-foto:has(a):hover,
.is-style-tarjeta-foto:has(a):focus-within {
	background: var(--lf-naranja-claro);
}

.is-style-tarjeta-foto:has(a):hover :where(h2, h3, h4) {
	color: var(--lf-naranja);
}

/* ───────────── Tarjeta naranja (valores, horarios) ───────────── */

.is-style-tarjeta-valor {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 0 20px 28px;
	background: linear-gradient(to bottom, transparent 20px, var(--lf-naranja) 20px);
	color: var(--lf-beige);
	text-align: center;
}

.is-style-tarjeta-valor > * {
	margin: 0 !important;
}

.is-style-tarjeta-valor .wp-block-image {
	margin-bottom: 12px !important;
}

.is-style-tarjeta-valor .wp-block-image img {
	width: 98px;
	height: 98px;
}

.is-style-tarjeta-valor :where(h2, h3, h4) {
	color: var(--lf-beige);
	font-size: var(--wp--preset--font-size--md);
	line-height: 1.28;
}

.is-style-tarjeta-valor p {
	line-height: 1.3;
}

/* ───────────── Columnas con separadores ───────────── */

.wp-block-columns.is-style-separadores > .wp-block-column {
	text-align: center;
}

@media (min-width: 782px) {
	.wp-block-columns.is-style-separadores {
		gap: 0 !important;
	}

	.wp-block-columns.is-style-separadores > .wp-block-column {
		padding-inline: clamp(12px, 2vw, 32px);
	}

	.wp-block-columns.is-style-separadores > .wp-block-column + .wp-block-column {
		border-left: 1px solid var(--lf-gris-claro);
	}
}

@media (max-width: 781px) {
	.wp-block-columns.is-style-separadores > .wp-block-column + .wp-block-column {
		border-top: 1px solid rgba(217, 217, 217, 0.35);
		padding-top: 32px;
	}
}

.wp-block-columns.is-style-separadores .wp-block-image {
	display: flex;
	justify-content: center;
}

/* ───────────── Pasos numerados ───────────── */

.wp-block-columns.is-style-pasos {
	--lf-hueco: var(--wp--style--columns-gap-default, 2em);
}

.wp-block-columns.is-style-pasos > .wp-block-column {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.wp-block-columns.is-style-pasos > .wp-block-column > * {
	margin: 0;
}

.wp-block-columns.is-style-pasos .wp-block-image {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	height: 110px;
}

.wp-block-columns.is-style-pasos .wp-block-image img {
	width: auto;
	max-height: 110px;
}

.is-style-numero-paso {
	position: relative;
	width: 100%;
	height: 47px;
	margin-block: 21px 20px !important;
	background: radial-gradient(circle at center, var(--lf-naranja) 23px, transparent 23.5px);
	color: var(--lf-beige);
	font-size: var(--wp--preset--font-size--lg);
	font-weight: 700;
	line-height: 47px;
	text-align: center;
}

@media (min-width: 782px) {
	/* Línea punteada de un número al siguiente. */
	.wp-block-columns.is-style-pasos > .wp-block-column:not(:last-child) .is-style-numero-paso::before {
		content: "";
		position: absolute;
		z-index: -1;
		top: 50%;
		left: calc(50% + 24px);
		width: calc(100% + var(--lf-hueco) - 48px);
		border-top: 1px dashed var(--lf-naranja);
	}
}

.wp-block-columns.is-style-pasos :where(h3, h4) {
	margin-bottom: 8px !important;
	font-size: var(--wp--preset--font-size--lg);
	text-transform: none;
}

.wp-block-columns.is-style-pasos p:not(.is-style-numero-paso) {
	max-width: 260px;
	line-height: 1.3;
}

/* ───────────── Imágenes ───────────── */

.wp-block-image.is-style-marco-naranja {
	position: relative;
	isolation: isolate;
}

.wp-block-image.is-style-marco-naranja::before {
	content: "";
	position: absolute;
	z-index: -1;
	left: 17%;
	width: 51%;
	top: 16.7%;
	bottom: 0;
	background: url(../icons/marco-naranja.svg) center / 100% 100% no-repeat;
}

.wp-block-image.is-style-marco-naranja img {
	display: block;
	object-position: top center;
}

@media (min-width: 782px) {
	.wp-block-image.is-style-sobresale {
		margin-top: -120px !important;
	}
}

.wp-block-image.is-style-sobresale img {
	display: block;
}

/* ───────────── Logos de marcas ───────────── */

.lf-marcas {
	align-items: flex-end;
}

.lf-marcas .wp-block-image {
	margin: 0;
}

.lf-marcas img {
	width: auto;
	max-height: 90px;
	opacity: 0.85;
	transition: opacity var(--lf-transicion);
}

.lf-marcas img:hover {
	opacity: 1;
}

@media (max-width: 781px) {
	.lf-marcas {
		justify-content: center !important;
		gap: 24px 32px !important;
	}

	.lf-marcas img {
		max-height: 56px;
	}
}

/* ───────────── Pie de página ───────────── */

.lf-footer .wp-block-navigation {
	font-size: var(--wp--preset--font-size--diminuta);
}

.lf-footer .wp-block-navigation .wp-block-navigation__container {
	gap: 25px;
}

.lf-contacto a {
	color: var(--wp--preset--color--negro);
}

.lf-contacto .wp-block-image {
	margin: 0;
	flex: none;
}

.lf-redes.wp-block-social-links .wp-social-link {
	border-radius: 0;
	transition: background-color var(--lf-transicion), color var(--lf-transicion);
}

.lf-redes.wp-block-social-links .wp-social-link a {
	padding: 6px;
}

.lf-redes.wp-block-social-links .wp-social-link svg {
	width: 21px;
	height: 21px;
}

.lf-redes.wp-block-social-links .wp-social-link:hover {
	background-color: var(--lf-naranja-claro) !important;
	color: var(--lf-naranja) !important;
	transform: none;
}

.lf-footer__legal a {
	color: inherit;
}

/* ───────────── WooCommerce · tarjeta de producto ───────────── */

.lf-productos .wc-block-product {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	padding: 27px 24px 24px;
	background: var(--wp--preset--color--blanco);
	text-align: left;
}

.wp-block-woocommerce-product-collection.lf-productos--borde {
	margin-top: 12px;
}

.lf-productos--borde .wc-block-product {
	border: 0.5px solid var(--lf-gris-oscuro);
}

.lf-productos .wc-block-product > * {
	width: 100%;
	margin: 0 !important;
}

.lf-productos .wc-block-components-product-image {
	display: flex;
	justify-content: center;
}

.lf-productos .wc-block-components-product-image img {
	width: 135px !important;
	height: 178px !important;
	object-fit: contain;
}

.lf-productos .wc-block-components-product-button {
	align-items: center;
}

.lf-productos .wc-block-components-product-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 138px;
	justify-content: center;
	padding: 17px 18px;
	font-size: var(--wp--preset--font-size--base);
}

.lf-productos .wc-block-components-product-button .add_to_cart_button::after {
	content: "";
	width: 15px;
	height: 15px;
	background-color: currentColor;
	-webkit-mask: url(../icons/agregar.svg) center / contain no-repeat;
	mask: url(../icons/agregar.svg) center / contain no-repeat;
}

.lf-productos .wc-block-components-product-button .added_to_cart {
	margin-top: 6px;
	font-size: var(--wp--preset--font-size--xs);
}

.lf-productos .wc-block-components-product-price,
.wc-block-components-product-price {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	line-height: 1;
}

.lf-productos .wc-block-components-product-price del {
	order: -1;
	color: var(--lf-gris-oscuro);
	font-size: 13px;
	font-weight: 400;
}

.lf-productos .wc-block-components-product-price ins {
	text-decoration: none;
}

.lf-productos .wp-block-post-terms {
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 700;
}

.lf-productos .wp-block-post-terms a {
	color: var(--wp--preset--color--negro);
}

.lf-productos .wp-block-post-title {
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 400;
	line-height: 1.25;
	text-transform: none;
}

.lf-productos .wp-block-post-title a {
	color: var(--wp--preset--color--negro);
}

.lf-productos .wc-block-components-product-sale-badge {
	display: none;
}

/* ───────────── WooCommerce · tienda ───────────── */

.lf-tienda__filtros {
	padding: 13px 16px 24px;
	border: 0.5px solid var(--lf-gris-oscuro);
	background: var(--wp--preset--color--blanco);
}

.lf-tienda__filtros-titulo {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 14px;
	border-bottom: 0.5px solid var(--lf-gris-oscuro);
}

.lf-tienda__filtros-titulo::before {
	content: "";
	width: 21px;
	height: 17px;
	background: url(../icons/filtrar.svg) center / contain no-repeat;
}

.lf-tienda__filtros :where(.wp-block-heading, .wc-block-product-filter-taxonomy h3, h3) {
	font-size: var(--wp--preset--font-size--sm);
}

.lf-tienda__filtros .wc-block-product-filter-checkbox-list__label,
.lf-tienda__filtros .wc-block-product-filter-checkbox-list__text {
	color: var(--lf-gris-oscuro);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 700;
}

.lf-tienda__filtros input[type="checkbox"] {
	border-radius: 0;
	accent-color: var(--lf-naranja);
}

.lf-tienda__filtros .wc-block-product-filter-price-slider {
	--wc-product-filter-price-slider: var(--lf-naranja);
}

.lf-tienda__barra {
	gap: 16px 32px;
}

.lf-tienda__barra .wp-block-search {
	flex: 1 1 320px;
	max-width: 480px;
}

.lf-tienda__barra .wp-block-search__inside-wrapper,
.lf-busqueda .wp-block-search__inside-wrapper {
	padding: 0;
	border: 0.5px solid var(--lf-gris-oscuro);
	background: var(--wp--preset--color--blanco);
}

.lf-tienda__barra .wp-block-search__input,
.lf-busqueda .wp-block-search__input {
	height: 56px;
	padding: 0 24px;
	border: 0;
	font-size: var(--wp--preset--font-size--xs);
}

.lf-tienda__barra .wp-block-search__input::placeholder {
	color: var(--wp--preset--color--gris);
}

.lf-tienda__barra .wp-block-search__button {
	margin: 0;
	padding: 0 24px;
	background: transparent;
	color: var(--lf-gris-oscuro);
}

.lf-tienda__barra .wp-block-search__button:hover {
	background: var(--lf-naranja-claro);
	color: var(--lf-naranja);
}

.lf-tienda__barra .wp-block-search__button svg {
	width: 26px;
	height: 26px;
}

.wc-block-catalog-sorting select,
.woocommerce-ordering select {
	height: 28px;
	min-width: 195px;
	padding: 0 32px 0 18px;
	border: 0.5px solid var(--lf-gris-oscuro);
	border-radius: 0;
	background: #fff url(../icons/chevron.svg) right 14px center / 12px 7px no-repeat;
	-webkit-appearance: none;
	appearance: none;
	font-family: inherit;
	font-size: 10px;
	font-weight: 300;
}

.wc-block-catalog-sorting,
.woocommerce-ordering {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--lf-gris-oscuro);
	font-size: var(--wp--preset--font-size--xs);
}

.wc-block-product-results-count,
.woocommerce-result-count {
	color: var(--lf-gris-oscuro);
	font-size: var(--wp--preset--font-size--xs);
}

/* Paginación */
.wp-block-query-pagination {
	gap: 12px;
	font-size: var(--wp--preset--font-size--sm);
}

.wp-block-query-pagination-numbers {
	display: flex;
	gap: 13px;
}

.wp-block-query-pagination-numbers .page-numbers {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 0.5px solid var(--lf-gris-oscuro);
	color: var(--wp--preset--color--negro);
	text-decoration: none;
}

.wp-block-query-pagination-numbers .page-numbers.current {
	border-color: var(--lf-naranja);
	background: var(--lf-naranja);
	color: var(--lf-beige);
}

.wp-block-query-pagination-numbers .page-numbers.dots {
	border: 0;
}

.wp-block-query-pagination-numbers a.page-numbers:hover {
	background: var(--lf-naranja-claro);
	color: var(--lf-naranja);
}

.wp-block-query-pagination-next,
.wp-block-query-pagination-previous {
	color: var(--wp--preset--color--negro);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 300;
	text-decoration: underline;
}

/* ───────────── Accesibilidad ───────────── */

:where(a, button, input, select, textarea):focus-visible {
	outline: 2px solid var(--lf-naranja);
	outline-offset: 2px;
}

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

/* Cuadrículas con más aire entre filas (tarjetas con ícono encima). */
.lf-grid-holgada {
	row-gap: 45px !important;
}

/* Portadas: el texto se alinea con el contenido de la página. */
/* Clase repetida a propósito: el núcleo usa selectores con clases dobles. */
.wp-block-cover.lf-hero.lf-hero.lf-hero.has-custom-content-position .wp-block-cover__inner-container {
	width: 100%;
	max-width: 1183px;
	margin-inline: auto;
}

/* La caja negra del final de cada página se monta sobre el pie de página. */
.lf-empalme-footer {
	background: linear-gradient(to bottom, transparent calc(100% - 44px), var(--lf-beige) calc(100% - 44px));
}

/* ───────────── WooCommerce · producto, carrito y pago ───────────── */

.wc-block-components-product-sale-badge,
.wp-block-woocommerce-product-sale-badge .wc-block-components-product-sale-badge,
.onsale {
	border: 0 !important;
	border-radius: 0 !important;
	background: var(--lf-naranja) !important;
	color: #fff !important;
	font-size: var(--wp--preset--font-size--xs) !important;
	font-weight: 700;
	text-transform: uppercase;
}

.single-product .wp-block-woocommerce-product-price,
.single-product .wc-block-components-product-price {
	font-size: 32px;
	font-weight: 800;
}

.single-product .wc-block-components-product-price del {
	color: var(--lf-gris-oscuro);
	font-size: 16px;
	font-weight: 400;
}

.single-product .wc-block-components-product-price ins {
	text-decoration: none;
}

.single-product h1.wp-block-post-title {
	font-size: var(--wp--preset--font-size--titulo);
}

.woocommerce .quantity .qty,
.wc-block-components-quantity-selector {
	border-radius: 0 !important;
}

.wc-block-components-button:not(.is-link),
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
	border-radius: 0 !important;
	text-transform: uppercase;
	font-weight: 700;
}

.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-blocks-components-select__select,
.wc-block-components-textarea {
	border-radius: 0 !important;
}

.wp-block-woocommerce-breadcrumbs {
	font-size: var(--wp--preset--font-size--xs);
}

/* Las secciones van pegadas entre sí y al pie de página: el espacio lo da
   el relleno de cada sección, no el hueco entre bloques. */
.wp-site-blocks > main,
.wp-site-blocks > footer,
.wp-site-blocks > .wp-block-group.alignfull,
.wp-site-blocks > .wp-block-template-part + * {
	margin-block-start: 0;
}

.entry-content > .alignfull + .alignfull,
.wp-block-post-content > .alignfull + .alignfull {
	margin-block-start: 0;
}

.lf-header__iconos > * {
	margin: 0;
}

.lf-header__cuenta a {
	padding: 0;
	line-height: 1.3;
}

/* ───────────── Animaciones al hacer scroll ─────────────
 * Solo se ocultan los elementos cuando <html> tiene lf-anima-activa, que
 * pone el tema en el sitio publicado (nunca en el editor) y solo si el
 * visitante no pidió reducir el movimiento.
 */

:root {
	--lf-anima-duracion: 700ms;
	--lf-anima-curva: cubic-bezier(0.22, 0.61, 0.36, 1);
	--lf-anima-distancia: 28px;
}

.lf-anima-activa :is(.lf-anima-subir, .lf-anima-aparecer, .lf-anima-izquierda, .lf-anima-derecha, .lf-anima-zoom):not(.lf-fin),
.lf-anima-activa .lf-anima-cascada:not(.lf-fin) > * {
	opacity: 0;
	transition:
		opacity var(--lf-anima-duracion) var(--lf-anima-curva) var(--lf-retraso, 0ms),
		transform var(--lf-anima-duracion) var(--lf-anima-curva) var(--lf-retraso, 0ms);
	will-change: opacity, transform;
}

.lf-anima-activa .lf-anima-subir:not(.lf-fin),
.lf-anima-activa .lf-anima-cascada:not(.lf-fin) > * {
	transform: translate3d(0, var(--lf-anima-distancia), 0);
}

.lf-anima-activa .lf-anima-izquierda:not(.lf-fin) {
	transform: translate3d(calc(var(--lf-anima-distancia) * -1.5), 0, 0);
}

.lf-anima-activa .lf-anima-derecha:not(.lf-fin) {
	transform: translate3d(calc(var(--lf-anima-distancia) * 1.5), 0, 0);
}

.lf-anima-activa .lf-anima-zoom:not(.lf-fin) {
	transform: scale(0.96);
}

.lf-anima-activa .lf-visible:is(.lf-anima-subir, .lf-anima-aparecer, .lf-anima-izquierda, .lf-anima-derecha, .lf-anima-zoom):not(.lf-fin),
.lf-anima-activa .lf-anima-cascada.lf-visible:not(.lf-fin) > * {
	opacity: 1;
	transform: none;
}

/* Al terminar, el script marca el bloque con lf-fin y estas reglas dejan de
   aplicar: las tarjetas recuperan sus transiciones de hover. */

/* Portadas: la foto se asienta con un acercamiento muy leve al cargar. */
@keyframes lf-portada {
	from { transform: scale(1.06); }
	to { transform: scale(1); }
}

.lf-anima-activa .lf-hero .wp-block-cover__image-background {
	animation: lf-portada 1.6s var(--lf-anima-curva) both;
}

/* Pasos: la línea punteada se dibuja de un número al siguiente. */
.lf-anima-activa .wp-block-columns.is-style-pasos.lf-anima-cascada:not(.lf-fin) .is-style-numero-paso::before {
	transform-origin: left center;
	transition: transform 600ms var(--lf-anima-curva) calc(var(--lf-retraso, 0ms) + 350ms);
}

.lf-anima-activa .wp-block-columns.is-style-pasos.lf-anima-cascada:not(.lf-visible) .is-style-numero-paso::before {
	transform: scaleX(0);
}

/* Tarjetas: se levantan un poco al pasar el mouse. */
.is-style-tarjeta-categoria,
.is-style-tarjeta-cliente,
.is-style-tarjeta-foto:has(a) {
	transition:
		background-color var(--lf-transicion),
		background var(--lf-transicion),
		transform 250ms var(--lf-anima-curva),
		box-shadow 250ms var(--lf-anima-curva);
}

@media (hover: hover) {
	.is-style-tarjeta-categoria:hover,
	.is-style-tarjeta-foto:has(a):hover {
		transform: translateY(-3px);
		box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.35);
	}

	.is-style-tarjeta-cliente:hover {
		transform: translateY(-3px);
	}

	.lf-productos .wc-block-product {
		transition: transform 250ms var(--lf-anima-curva), box-shadow 250ms var(--lf-anima-curva);
	}

	.lf-productos .wc-block-product:hover {
		transform: translateY(-3px);
		box-shadow: 0 12px 28px -18px rgba(0, 0, 0, 0.4);
	}
}

@media (prefers-reduced-motion: reduce) {
	.lf-hero .wp-block-cover__image-background {
		animation: none !important;
	}

	.is-style-tarjeta-categoria:hover,
	.is-style-tarjeta-cliente:hover,
	.is-style-tarjeta-foto:hover,
	.lf-productos .wc-block-product:hover {
		transform: none !important;
	}
}
