/* Landing template */

.page-template-page-landing .main-content {
	padding: 0;
	margin: 0;
}


.landing-hero,
.landing-hero *,
.landing-products,
.landing-products * {
	font-family: 'Poppins', sans-serif;
}

/* Barra de título/breadcrumb de página: la landing ya tiene su propio hero. */
.thot-landing-page .page-top {
	display: none !important;
}

/* Hero: ocupa todo el ancho de la ventana, el contenido adentro queda centrado (.container) */
/* Aspect ratio fijo (1440 x 668, ~2.16:1) para que el hero siempre se vea igual de proporcionado */
.landing-hero {
	position: relative;
	width: 100vw;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	aspect-ratio: 1440 / 668;
	display: flex;
	align-items: center;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	color: #fff;
	padding: 0;
	overflow: hidden;
	margin-bottom: 30px;
}

/* Hero en modalidad imagen plana: solo la imagen a todo el ancho, con su proporción original (sin aspect-ratio fijo). */
.landing-hero.landing-hero--image-only {
	aspect-ratio: auto;
	display: block;
	background: none;
	line-height: 0;
}

.landing-hero--image-only .landing-hero__flat-link {
	display: block;
}

.landing-hero--image-only .landing-hero__flat-image {
	display: block;
	width: 100%;
	height: auto;
}

.landing-hero__overlay {
	position: absolute;
	inset: 0;
	background: rgba( 0, 0, 0, 0.45 );
	z-index: 0;
}

.landing-hero__badge-wrap {
	position: absolute;
	top: 24px;
	left: 0;
	right: 0;
	z-index: 2;
}

.landing-hero__badge {
	line-height: 0;
}

.landing-hero__badge svg {
	width: 322px;
	height: 62px;
}

.landing-hero__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 40px;
	margin-top: 3.5em;
}

.landing-hero__featured-image {
	flex: 0 0 auto;
	max-width: 420px;
}

.landing-hero__featured-image img {
	width: 100%;
	height: auto;
	display: block;
}

.landing-hero__content {
	flex: 1 1 320px;
}

.landing-hero__title {
	font-size: 3.2em;
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 16px;
	color: inherit;
}

.landing-hero__subtitle {
	max-width: 600px;
	font-size: 1.15em;
	margin: 0 0 20px;
	opacity: 0.9;
}

/* Siempre pegados abajo de todo, a 20px del final de la sección */
.landing-hero__highlights-wrap {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 20px;
	z-index: 1;
}

.landing-hero__highlights {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	font-size: 1.1em;
    font-weight: 500;
}

.landing-hero__highlights li {
	position: relative;
	min-height: 24px;
	padding-left: 32px;
	display: flex;
	align-items: center;
}

.landing-hero__highlights li::before {
	content: '\2713';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY( -50% );
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var( --landing-accent, #e8590c );
	color: #fff;
	font-size: 0.7em;
	font-weight: bold;
	line-height: 1;
}

.landing-hero .landing-hero__button {
	display: inline-block;
	padding: 14px 32px;
	background: var( --landing-accent, #e8590c );
	color: #fff;
	font-size: 1.6em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	border-radius: 8px;
	text-decoration: none;
	border: none;
	transition: opacity 0.2s ease;
}

.landing-hero .landing-hero__button:hover {
	background: var( --landing-accent, #e8590c );
	border-color: var( --landing-accent, #e8590c );
	opacity: 0.85;
	color: #fff;
}

@media ( max-width: 767px ) {
	.landing-hero {
		aspect-ratio: auto;
		padding: 50px 0 100px;
		text-align: center;
	}

	.landing-hero__inner {
		flex-direction: column;
	}
}

/* Landing template — grilla de productos */
.landing-products {
	padding: 50px 0;
}

/* La barra solo tiene "Ordenar por" y va después de los destacados: ordena únicamente el listado de abajo. */
.landing-products__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 16px;
	margin: 32px 0 24px;
}

.landing-products__title + .landing-products__toolbar,
.landing-products > .landing-products__toolbar:first-child {
	margin-top: 0;
}

.landing-products__title {
	margin: 0 0 24px;
	font-size: 1.4em;
	font-weight: 700;
	color: #202328;
}

.landing-products__controls {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-left: auto;
}

.landing-products__control {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9em;
	color: #8a8f98;
	white-space: nowrap;
}

.landing-products__control select {
	-webkit-appearance: none;
	appearance: none;
	padding: 8px 30px 8px 14px;
	border: 1px solid #e3e5e8;
	border-radius: 8px;
	background: #fff url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238a8f98' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E" ) no-repeat right 12px center;
	color: #202328;
	font-weight: 500;
	cursor: pointer;
}

@media ( max-width: 576px ) {
	.landing-products__toolbar {
		flex-direction: column;
		align-items: flex-start;
	}

	.landing-products__controls {
		margin-left: 0;
	}
}

.landing-products-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.landing-products-grid > li.product {
	width: calc( 25% - 18px );
	margin: 0 !important;
	float: none !important;
}

.landing-products-grid > li.product.landing-product--featured {
	width: 100%;
	max-height: 420px;
}

.landing-products-grid > li.product.landing-product--half {
	width: calc( 50% - 12px );
}

@media ( max-width: 992px ) {
	.landing-products-grid > li.product.landing-product--quarter {
		width: calc( 50% - 12px );
	}
}

@media ( max-width: 576px ) {
	.landing-products-grid > li.product,
	.landing-products-grid > li.product.landing-product--half,
	.landing-products-grid > li.product.landing-product--quarter {
		width: 100%;
	}
}

/* Card de producto */
.landing-product-card {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba( 0, 0, 0, 0.08 );
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.landing-product-card:hover {
	box-shadow: 0 10px 26px rgba( 0, 0, 0, 0.12 );
	transform: translateY( -2px );
}

.landing-product-card__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* Toda la card es un único link (mejor usabilidad que links sueltos en imagen/título/botón) */
.landing-product-card__link {
	position: absolute;
	inset: 0;
	z-index: 2;
}

.landing-product-card__image {
	position: relative;
	display: block;
	aspect-ratio: 5 / 4;
	overflow: hidden;
	background: #fff;
}

.landing-product-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Cards destacadas (featured 100% y secundarias 50%): foto a la izquierda, contenido a la derecha */
.landing-product--featured .landing-product-card__inner,
.landing-product--half .landing-product-card__inner {
	flex-direction: row;
}

.landing-product--half .landing-product-card__image {
	flex: 0 0 45%;
	aspect-ratio: auto;
}

.landing-product--featured .landing-product-card__image {
	flex: 0 0 70%;
	aspect-ratio: auto;
}

.landing-product--featured .landing-product-card__image img {
	object-fit: contain;
}

.landing-product--featured .landing-product-card__content,
.landing-product--half .landing-product-card__content {
	flex: 1 1 auto;
}

@media ( max-width: 576px ) {
	.landing-product--featured .landing-product-card__inner,
	.landing-product--half .landing-product-card__inner {
		flex-direction: column;
	}

	.landing-product--featured .landing-product-card__image,
	.landing-product--half .landing-product-card__image {
		flex: none;
		aspect-ratio: 5 / 4;
	}
}

.landing-product-card .labels {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 1;
}

.landing-product-card .onsale {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 0.75em;
	font-weight: 700;
	line-height: 1.4;
}

.landing-product-card__content {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 18px;
}

.landing-product-card__stock {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 10px;
	font-size: 0.78em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #2ecc71;
}

.landing-product-card__stock-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
	flex-shrink: 0;
}

.landing-product-card__stock--out {
	color: #9aa0a6;
}

.landing-product-card__title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0 0 14px;
	font-weight: 700;
	line-height: 1.35;
	color: #202328;
	text-decoration: none;
}

.landing-product-card__price {
	margin: 0 0 6px;
}

.landing-product-card__price del {
	display: block;
	opacity: 0.55;
	text-decoration: line-through;
	font-size: 0.85em;
}

.landing-product-card__price ins {
	display: block;
	text-decoration: none;
	font-size: 1.6em;
	font-weight: 700;
	line-height: 1.2;
}

.landing-product-card__price ins .woocommerce-Price-amount,
.landing-product-card__price ins .amount {
	font-size: inherit;
	font-weight: inherit;
}

.landing-product-card__installments {
	margin: 0 0 16px;
	font-size: 0.8em;
	opacity: 0.7;
}

.landing-product-card__button {
	margin-top: auto;
	display: block;
	text-align: center;
	padding: 11px 16px;
	border: 1.5px solid var( --landing-accent, #e8590c );
	border-radius: 8px;
	color: var( --landing-accent, #e8590c );
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-size: 0.85em;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.landing-product-card:hover .landing-product-card__button {
	background: var( --landing-accent, #e8590c );
	color: #fff;
}

.landing-products__sentinel {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	padding: 30px 0;
	text-align: center;
}

.landing-products__spinner {
	display: none;
	width: 32px;
	height: 32px;
	border: 3px solid rgba( 0, 0, 0, 0.1 );
	border-top-color: rgba( 0, 0, 0, 0.5 );
	border-radius: 50%;
	animation: landing-spin 0.8s linear infinite;
}

.landing-products__status {
	display: none;
	margin: 0;
	font-size: 0.9em;
	color: #6c757d;
}

.landing-products__sentinel.is-loading .landing-products__spinner,
.landing-products__sentinel.is-loading .landing-products__status {
	display: block;
}

.landing-products__sentinel.is-done .landing-products__status {
	display: block;
	font-weight: 700;
	color: inherit;
}

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