/* ==========================================================================
   LCV — portada: hero, ventajas, categorías, carruseles, banners, marcas
   ========================================================================== */

.lcv-home-section {
	padding: 45px 0;
}

.lcv-home-section--tight {
	padding: 25px 0;
}

.lcv-home-section--soft {
	background-color: var(--lcv-bg-soft);
}

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

.lcv-hero {
	position: relative;
	overflow: hidden;
	background-color: #eceff1;
}

.lcv-hero__track {
	display: flex;
	transition: transform 0.5s ease;
}

.lcv-hero__slide {
	position: relative;
	flex: 0 0 100%;
	min-height: 480px;
	display: flex;
	align-items: center;
	background-position: center;
	background-size: cover;
}

@media (max-width: 768px) {
	.lcv-hero__slide {
		min-height: 320px;
	}
}

.lcv-hero__content {
	max-width: 520px;
	padding: 40px 0;
}

.lcv-hero__content--center {
	margin: 0 auto;
	text-align: center;
}

.lcv-hero__content--right {
	margin-left: auto;
	text-align: right;
}

.lcv-hero__subtitle {
	margin-bottom: 10px;
	color: var(--lcv-primary);
	font-family: var(--lcv-font-title);
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.lcv-hero__title {
	margin-bottom: 15px;
	font-size: 46px;
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.02em;
}

@media (max-width: 768px) {
	.lcv-hero__title {
		font-size: 30px;
	}
}

.lcv-hero__text {
	margin-bottom: 25px;
	font-size: 16px;
}

.lcv-hero__nav {
	position: absolute;
	top: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	min-height: 0;
	padding: 0;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.9);
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	color: var(--lcv-title);
	font-size: 18px;
	transform: translateY(-50%);
	opacity: 0;
	transition: opacity 0.25s ease, background-color 0.25s ease;
}

.lcv-hero:hover .lcv-hero__nav {
	opacity: 1;
}

.lcv-hero__nav:hover {
	background-color: #fff;
	color: var(--lcv-primary);
}

.lcv-hero__nav--prev { left: 20px; }
.lcv-hero__nav--next { right: 20px; }

/* En táctil no hay hover: las flechas quedan visibles y el carrusel acepta swipe. */
@media (max-width: 1024px) {
	.lcv-hero__nav {
		width: 36px;
		height: 36px;
		font-size: 15px;
		opacity: 0.9;
	}

	.lcv-hero__nav--prev { left: 10px; }
	.lcv-hero__nav--next { right: 10px; }

	.lcv-hero__dot {
		width: 8px;
		height: 8px;
		/* Área táctil mayor sin agrandar el punto. */
		box-shadow: 0 0 0 8px transparent;
	}
}

.lcv-hero__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.lcv-hero__dot {
	width: 9px;
	height: 9px;
	min-height: 0;
	padding: 0;
	border-radius: 50%;
	background-color: rgba(0, 0, 0, 0.25);
}

.lcv-hero__dot.is-active {
	background-color: var(--lcv-primary);
}

/* --- Barra de ventajas --------------------------------------------------- */

.lcv-features {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	padding: 28px 0;
	border-bottom: 1px solid var(--lcv-border);
}

@media (max-width: 1024px) {
	.lcv-features {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px;
		padding: 22px 0;
	}
}

@media (max-width: 420px) {
	.lcv-features {
		grid-template-columns: minmax(0, 1fr);
	}
}

.lcv-feature {
	display: flex;
	align-items: center;
	gap: 15px;
}

.lcv-feature__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	color: var(--lcv-primary);
	font-size: 30px;
}

.lcv-feature__title {
	margin: 0 0 2px;
	font-family: var(--lcv-font-title);
	font-size: 15px;
	font-weight: 600;
	text-transform: uppercase;
}

.lcv-feature__text {
	margin: 0;
	font-size: 13px;
	line-height: 1.4;
}

/* --- Banners promocionales ---------------------------------------------- */

.lcv-banners {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

@media (max-width: 768px) {
	.lcv-banners {
		grid-template-columns: minmax(0, 1fr);
	}
}

.lcv-banner {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 220px;
	overflow: hidden;
	padding: 30px;
	background-color: var(--lcv-bg-soft);
	background-position: center;
	background-size: cover;
}

.lcv-banner__content {
	position: relative;
	z-index: 1;
	max-width: 75%;
}

.lcv-banner__title {
	display: block;
	margin-bottom: 8px;
	color: var(--lcv-title);
	font-family: var(--lcv-font-title);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.25;
}

.lcv-scheme-light .lcv-banner__title {
	color: #fff;
}

.lcv-banner__text {
	display: block;
	margin-bottom: 15px;
	font-size: 14px;
}

.lcv-banner__link {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	border-bottom: 2px solid currentColor;
	padding-bottom: 2px;
}

.lcv-banner::after {
	content: "";
	position: absolute;
	inset: 0;
	background-color: rgba(255, 255, 255, 0.05);
	transition: background-color 0.4s ease;
}

.lcv-banner:hover::after {
	background-color: rgba(255, 255, 255, 0.15);
}

/* --- Carrusel genérico --------------------------------------------------- */

.lcv-carousel {
	position: relative;
}

.lcv-carousel__viewport {
	display: flex;
	gap: 20px;
	margin: 0;
	padding: 0 0 5px;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}

.lcv-carousel__viewport::-webkit-scrollbar {
	display: none;
}

/* Cada hijo directo es una diapositiva (también los <li> de WooCommerce). */
.lcv-carousel__viewport > * {
	flex: 0 0 calc((100% - (var(--lcv-carousel-cols, 5) - 1) * 20px) / var(--lcv-carousel-cols, 5));
	scroll-snap-align: start;
}

@media (max-width: 1024px) {
	.lcv-carousel__viewport > * {
		flex-basis: calc((100% - 2 * 20px) / 3);
	}
}

@media (max-width: 768px) {
	.lcv-carousel__viewport {
		gap: 10px;
	}

	.lcv-carousel__viewport > * {
		flex-basis: calc((100% - 10px) / 2);
	}
}

.lcv-carousel__nav {
	position: absolute;
	top: 38%;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	min-height: 0;
	padding: 0;
	border-radius: 50%;
	background-color: #fff;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.12);
	color: var(--lcv-title);
	font-size: 16px;
	opacity: 0;
	transform: translateY(-50%);
	transition: opacity 0.25s ease, color 0.25s ease;
}

.lcv-carousel:hover .lcv-carousel__nav {
	opacity: 1;
}

.lcv-carousel__nav:hover {
	background-color: #fff;
	color: var(--lcv-primary);
}

.lcv-carousel__nav[disabled] {
	opacity: 0 !important;
	pointer-events: none;
}

.lcv-carousel__nav--prev { left: -18px; }
.lcv-carousel__nav--next { right: -18px; }

@media (max-width: 1024px) {
	.lcv-carousel__nav {
		display: none;
	}
}

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

.lcv-cat-tiles {
	display: grid;
	grid-template-columns: repeat(var(--lcv-cols, 6), minmax(0, 1fr));
	gap: 20px;
}

@media (max-width: 1024px) {
	.lcv-cat-tiles {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 576px) {
	.lcv-cat-tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}
}

.lcv-cat-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 20px 10px;
	border: 1px solid var(--lcv-border);
	background-color: #fff;
	text-align: center;
	transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.lcv-cat-tile:hover {
	border-color: transparent;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.lcv-cat-tile img {
	width: 90px;
	height: 90px;
	object-fit: contain;
}

.lcv-cat-tile__title {
	color: var(--lcv-entity-title);
	font-family: var(--lcv-font-title);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
}

.lcv-cat-tile__count {
	font-size: 12px;
}

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

.lcv-brands {
	display: grid;
	grid-template-columns: repeat(var(--lcv-cols, 6), minmax(0, 1fr));
	gap: 20px;
	align-items: center;
}

@media (max-width: 768px) {
	.lcv-brands {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.lcv-brand img {
	width: 100%;
	filter: grayscale(1);
	opacity: 0.6;
	transition: filter 0.25s ease, opacity 0.25s ease;
}

.lcv-brand:hover img {
	filter: grayscale(0);
	opacity: 1;
}

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

.lcv-newsletter {
	padding: 45px 0;
	background-color: var(--lcv-primary);
	color: rgba(255, 255, 255, 0.85);
	text-align: center;
}

.lcv-newsletter__title {
	margin-bottom: 8px;
	color: #fff;
	font-size: 26px;
}

.lcv-newsletter__text {
	margin-bottom: 22px;
	font-size: 15px;
}

.lcv-newsletter__form {
	display: flex;
	gap: 10px;
	max-width: 520px;
	margin: 0 auto;
}

.lcv-newsletter__form input[type="email"] {
	height: 46px;
	border-color: transparent;
}

.lcv-newsletter__form .lcv-btn {
	flex: 0 0 auto;
	min-height: 46px;
	background-color: #fff;
	color: var(--lcv-primary);
}

.lcv-newsletter__form .lcv-btn:hover {
	background-color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 576px) {
	.lcv-newsletter__form {
		flex-direction: column;
	}
}

/* --- Bloque de contenido libre de la portada ---------------------------- */

.lcv-home-editor {
	padding: 40px 0;
}
