/**
 * Composición específica de Home. Fiel a PROECO Sitio.dc.html.
 */

.home-layout {
	display: grid;
	grid-template-columns: 230px 1fr;
	gap: 0;
}

/* Hero — foto real a todo el ancho de fondo, con panel de texto en vidrio
   esmerilado encima (pedido del cliente 2026-08-09: mantener título/CTA,
   pero que se lean bien sobre la imagen). */
.home-hero {
	position: relative;
	background: linear-gradient(135deg, var(--color-surface) 55%, #E9F5C9 100%);
	padding: 48px 40px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 24px;
	min-height: 420px;
}

.home-hero.has-bg-image {
	background: var(--color-heading);
}

.home-hero-bg-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	z-index: 0;
}

/* Degradado suave que ayuda a la legibilidad general del lado izquierdo,
   además del panel de vidrio esmerilado del propio texto. */
.home-hero.has-bg-image::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(16, 20, 12, 0.55) 0%, rgba(16, 20, 12, 0.28) 38%, rgba(16, 20, 12, 0) 68%);
	z-index: 1;
}

.home-hero-copy {
	position: relative;
	z-index: 2;
	max-width: 380px;
}

.has-bg-image .home-hero-copy {
	background: rgba(255, 255, 255, 0.14);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: var(--radius-md);
	padding: 30px 28px;
}

.home-hero h1 {
	font-size: 34px;
	line-height: 1.15;
	margin: 0 0 16px;
}

.home-hero.has-bg-image h1 {
	color: #333333;
	text-shadow: none;
}

.home-hero.has-bg-image p {
	color: #1a1a1a;
	font-weight: 700;
	text-shadow: none;
}

.home-hero p {
	font-size: 15px;
	line-height: 1.6;
	color: var(--color-text-muted);
	margin: 0 0 26px;
}

.home-hero-media {
	flex-shrink: 0;
	display: flex;
	align-items: flex-end;
}

.home-hero-img {
	max-width: 420px;
	max-height: 320px;
}

.home-hero-bottles {
	display: flex;
	gap: 10px;
	align-items: flex-end;
}

.home-hero-bottle {
	width: 60px;
	border-radius: 6px 6px 3px 3px;
	position: relative;
	box-shadow: var(--shadow-md);
}

.home-hero-bottle-cap {
	position: absolute;
	top: -8px;
	left: 50%;
	transform: translateX(-50%);
	width: 22px;
	height: 12px;
	background: #ccc;
	border-radius: 2px;
}

/* Secciones con título centrado */
.product-lines h2,
.featured-products h2 {
	text-align: center;
	font-size: 26px;
	margin: 0 0 30px;
}

.product-lines {
	padding: 44px 40px;
}

.featured-products {
	padding: 0 40px 48px;
}

/* Líneas de producto */
.product-lines-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 18px;
}

.line-card {
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.line-card:hover {
	box-shadow: var(--shadow-md);
	transform: translateY(-3px);
}

.line-card-media {
	height: 120px;
	background: var(--color-border);
	overflow: hidden;
}

.line-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition-base);
}

.line-card:hover .line-card-img {
	transform: scale(1.05);
}

.line-card .placeholder-fallback {
	width: 100%;
	height: 100%;
	border-radius: 0;
	box-shadow: none;
}

.line-card-body {
	padding: 16px;
}

.line-card-name {
	font-weight: 600;
	font-size: 14.5px;
	margin-bottom: 6px;
	color: var(--color-heading);
}

.line-card-desc {
	font-size: 12.5px;
	color: var(--color-text-faint);
	line-height: 1.5;
	margin-bottom: 12px;
	min-height: 52px;
}

/* =========================================================
   Responsive — auditoría P0-1.
   ========================================================= */

@media (max-width: 1024px) {
	.product-lines-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.home-hero h1 {
		font-size: 28px;
	}

	.home-hero-img {
		max-width: 280px;
	}

	.has-bg-image .home-hero-copy {
		max-width: 340px;
	}
}

@media (max-width: 860px) {
	.home-layout {
		grid-template-columns: 1fr;
	}

	.category-sidebar {
		border-right: none;
		border-bottom: 1px solid var(--color-border);
	}

	.home-hero {
		flex-direction: column;
		text-align: center;
		padding: 36px 24px;
		min-height: 380px;
	}

	.home-hero-copy {
		max-width: none;
	}

	.has-bg-image .home-hero-copy {
		max-width: 420px;
	}

	.home-hero-media {
		align-items: center;
	}
}

@media (max-width: 640px) {
	.product-lines-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.product-lines,
	.featured-products {
		padding: 32px 16px;
	}

	.home-hero {
		padding: 24px 16px;
		min-height: 340px;
	}

	.home-hero h1 {
		font-size: 22px;
	}

	.home-hero p {
		font-size: 14px;
		margin-bottom: 18px;
	}

	.has-bg-image .home-hero-copy {
		padding: 20px 18px;
		max-width: 100%;
	}

	.home-hero-bottles {
		justify-content: center;
	}

	.line-card-desc {
		min-height: 0;
	}
}

@media (max-width: 420px) {
	.product-lines-grid {
		grid-template-columns: 1fr;
	}

	.home-hero {
		min-height: 300px;
		padding: 20px 14px;
	}

	.has-bg-image .home-hero-copy {
		padding: 16px 14px;
	}

	.home-hero h1 {
		font-size: 20px;
		margin-bottom: 10px;
	}

	.home-hero .btn {
		width: 100%;
		text-align: center;
	}
}
