﻿:root {
	--campo-verde: #173d2b;
	--campo-verde-claro: #2f6046;
	--campo-rojo: #c94726;
	--campo-crema: #f5f0e5;
	--campo-borde: #ddd5c5;
	--campo-tinta: #17251e;
}

.semillas-container {
	min-height: 70vh;
	padding: 30px 32px 58px;
	background: #faf8f2;
}

.semillas-encabezado {
	margin-bottom: 26px;
}

	.semillas-encabezado h1 {
		margin: 0;
		color: var(--campo-tinta);
		font-family: Georgia, serif;
		font-size: clamp(32px, 3.5vw, 48px);
		font-weight: 700;
		line-height: 1.1;
		letter-spacing: -0.02em;
	}

.semillas-body {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

.semillas-menu {
	position: sticky;
	top: 115px;
	padding: 15px;
	background: var(--campo-crema);
	border: 1px solid var(--campo-borde);
}

.menu-titulo {
	display: block;
	margin: 0 8px 12px;
	color: #7a756b;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.menu-item {
	display: block;
	margin-bottom: 4px;
	padding: 11px 13px;
	color: var(--campo-tinta);
	border-left: 3px solid transparent;
	text-decoration: none;
	transition: .18s ease;
}

	.menu-item:hover {
		color: var(--campo-verde);
		background: rgba(255,255,255,.7);
	}

	.menu-item.active {
		color: #fff;
		background: var(--campo-verde);
		border-left-color: var(--campo-rojo);
		font-weight: 800;
	}

.productos-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 15px;
}

.producto-card {
	min-width: 0;
	min-height: 225px;
	padding: 19px;
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid var(--campo-borde);
	border-radius: 18px;
	box-shadow: 0 8px 20px rgba(31, 48, 39, 0.05);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

	.producto-card:hover {
		transform: translateY(-3px);
		box-shadow: 0 14px 30px rgba(31, 48, 39, 0.10);
	}

.producto-nombre-wrap {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.producto-numero {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 29px;
	height: 29px;
	color: #fff;
	background: var(--campo-rojo);
	border-radius: 50%;
	font-size: 13px;
	font-weight: 900;
}

.producto-card h2 {
	overflow-wrap: anywhere;
	margin: 1px 0 0;
	color: var(--campo-tinta);
	font: 700 clamp(19px, 1.35vw, 25px)/1.12 Georgia, serif;
}

.producto-medida {
	margin: 16px 0 0 41px;
	color: var(--campo-rojo);
	font-size: 18px;
	line-height: 1.3;
	font-weight: 850;
}

.producto-acciones {
	margin-top: auto;
	padding-top: 22px;
}

.btn-agregar {
	display: grid;
	place-items: center;
	width: 100%;
	min-height: 45px;
	padding: 9px 12px;
	color: #fff;
	background: var(--campo-verde);
	text-align: center;
	text-decoration: none;
	font-size: 14px;
	font-weight: 900;
}

	.btn-agregar:hover {
		color: #fff;
		background: var(--campo-verde-claro);
	}

.selector-cantidad {
	min-height: 45px;
	display: grid;
	grid-template-columns: 44px minmax(48px, 1fr) 44px;
	border: 1px solid var(--campo-verde);
}

.btn-cantidad, .txt-cantidad {
	display: grid;
	place-items: center;
	min-width: 0;
	border: 0;
	border-radius: 0;
	background: #fff;
	color: var(--campo-tinta);
	text-align: center;
	text-decoration: none;
	font: inherit;
	font-weight: 900;
}

.btn-cantidad {
	background: var(--campo-crema);
	font-size: 20px;
}

	.btn-cantidad:hover {
		color: #fff;
		background: var(--campo-verde);
	}

.txt-cantidad {
	width: 100%;
	-moz-appearance: textfield;
}

	.txt-cantidad::-webkit-inner-spin-button {
		appearance: none;
	}

.sin-productos {
	padding: 36px;
	background: #fff;
	border: 1px dashed var(--campo-borde);
	color: #6d746e;
	text-align: center;
}

@media (max-width: 1450px) {
	.productos-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 1120px) {
	.productos-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.semillas-container {
		padding: 24px 18px 48px;
	}

	.semillas-body {
		grid-template-columns: 1fr;
	}

	.semillas-menu {
		position: static;
		display: flex;
		gap: 7px;
		overflow-x: auto;
	}

	.menu-titulo {
		display: none;
	}

	.menu-item {
		flex: 0 0 auto;
		margin: 0;
		border-left: 0;
		border-bottom: 3px solid transparent;
	}

		.menu-item.active {
			border-bottom-color: var(--campo-rojo);
		}
}

@media (max-width: 620px) {
	.productos-grid {
		grid-template-columns: 1fr;
	}

	.producto-card {
		min-height: 210px;
	}
}

.btn-presupuesto {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	border: 0;
}

.cantidad-presupuesto {
	min-width: 25px;
	height: 25px;
	padding: 0 7px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: #c94726;
	color: #ffffff;
	font-size: 13px;
	font-weight: 900;
}

	.cantidad-presupuesto.sin-productos {
		background: #8a948e;
	}

.semillas-precio {
	color: #176b42;
	font-size: 1.15rem;
	font-weight: 700;
	margin: 10px 0;
}
