/**
 * Cultiva Product Landing — estilos de la landing de los kits de fertilizante.
 * Usa los colores del tema (--greenex-*) con valores de respaldo.
 */

.gx-lp,
.gx-lp-bar {
	--lp-green: var(--greenex-primary, #228B22);
	--lp-dark: var(--greenex-dark, #006400);
	--lp-soil: #0f1a0f;
	--lp-mint: var(--greenex-bg-light, #E8F5E9);
	--lp-text: var(--greenex-text, #2D2D2D);
	--lp-muted: var(--greenex-muted, #5f6b5f);
	--lp-a: #6b5bd6;
	--lp-b: #2e9d3a;
	--lp-s: #e4572e;
	--lp-warn: #c98a00;
}

.gx-lp {
	clear: both;
	color: var(--lp-text);
	margin-top: 48px;
}

/* Secciones a todo el ancho con el contenido centrado */
.gx-lp-sec {
	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	padding: 72px max(20px, calc(50vw - 560px));
	box-sizing: border-box;
	text-align: center;
}

.gx-lp-sec:nth-child(even) {
	background: var(--lp-mint);
}

.gx-lp-eyebrow {
	margin: 0 0 10px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--lp-green);
}

.gx-lp-h2 {
	margin: 0 auto 36px;
	max-width: 22ch;
	font-size: clamp(1.8rem, 4.2vw, 2.9rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: var(--lp-soil);
	text-wrap: balance;
}

.gx-lp h3 {
	margin: 0 0 6px;
	font-size: 1.08rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--lp-soil);
}

.gx-lp p {
	margin: 0;
	color: var(--lp-muted);
	font-size: 0.97rem;
	line-height: 1.55;
}

.gx-lp-grid {
	display: grid;
	gap: 18px;
	text-align: left;
}

.gx-lp-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gx-lp-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gx-lp-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Íconos */
.gx-lp-ic {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 14px;
	border-radius: 16px;
	background: var(--lp-mint);
	color: var(--lp-dark);
}

.gx-lp-sec:nth-child(even) .gx-lp-ic {
	background: #fff;
}

.gx-lp-ic-warn {
	background: #fff6e0 !important;
	color: var(--lp-warn);
}

/* 1. Problema */
.gx-lp-pain,
.gx-lp-use,
.gx-lp-feat,
.gx-lp-trust-item {
	padding: 22px;
	border-radius: 18px;
	background: #fff;
	border: 1px solid rgba(0, 100, 0, 0.1);
	min-width: 0;
}

.gx-lp-pain h3 {
	margin: 0;
}

.gx-lp-bridge {
	max-width: 52ch;
	margin: 32px auto 0 !important;
	font-size: 1.12rem !important;
	color: var(--lp-soil) !important;
	font-weight: 600;
}

/* 2. Solución */
.gx-lp-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: 48px;
	align-items: center;
	text-align: left;
}

.gx-lp-split .gx-lp-h2 {
	margin-left: 0;
	margin-bottom: 24px;
}

.gx-lp-photo {
	margin: 0;
	border-radius: 24px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 18px 50px rgba(0, 60, 0, 0.15);
	aspect-ratio: 1 / 1;
	max-width: 100%;
}

.gx-lp-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gx-lp-photo-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	border: 2px dashed rgba(0, 100, 0, 0.25);
	border-radius: 24px;
	color: var(--lp-muted);
	font-weight: 600;
}

.gx-lp-formulas {
	display: grid;
	gap: 14px;
}

.gx-lp-formula {
	display: flex;
	gap: 16px;
	align-items: center;
	padding: 16px 18px;
	border-radius: 16px;
	background: #fff;
	border-left: 6px solid var(--f, var(--lp-green));
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.gx-lp-f-a { --f: var(--lp-a); }
.gx-lp-f-b { --f: var(--lp-b); }
.gx-lp-f-s { --f: var(--lp-s); }

.gx-lp-npk {
	flex: 0 0 auto;
	min-width: 70px;
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--f);
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
}

/* 5. Cómo se usa */
.gx-lp-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.gx-lp-steps li {
	position: relative;
	padding: 26px 22px;
	border-radius: 18px;
	background: #fff;
	border: 1px solid rgba(0, 100, 0, 0.1);
}

.gx-lp-step-n {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-bottom: 12px;
	border-radius: 50%;
	background: var(--lp-green);
	color: #fff;
	font-weight: 800;
	font-size: 1.15rem;
}

/* 6. Tamaños */
.gx-lp-kit {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px;
	border-radius: 18px;
	background: #fff;
	border: 1px solid rgba(0, 100, 0, 0.12);
	text-align: center;
	min-width: 0;
}

.gx-lp-kit.is-current {
	border: 2px solid var(--lp-green);
	box-shadow: 0 10px 30px rgba(34, 139, 34, 0.18);
}

.gx-lp-kit-badge {
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--lp-green);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}

.gx-lp-kit-img img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
}

.gx-lp-kit h3 a {
	color: inherit;
	text-decoration: none;
}

.gx-lp-kit-price {
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--lp-dark);
	margin-top: auto;
}

/* Botones */
.gx-lp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 1rem;
	text-decoration: none !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.gx-lp-btn:hover {
	transform: translateY(-2px);
}

.gx-lp-btn:focus-visible {
	outline: 3px solid var(--greenex-accent, #FFD700);
	outline-offset: 3px;
}

.gx-lp-btn-primary {
	background: var(--lp-green);
	color: #fff !important;
	box-shadow: 0 6px 20px rgba(34, 139, 34, 0.35);
}

.gx-lp-btn-primary:hover {
	background: var(--lp-dark);
}

.gx-lp-btn-ghost {
	background: transparent;
	color: var(--lp-dark) !important;
	border: 2px solid var(--lp-green);
}

.gx-lp-kit .gx-lp-btn {
	padding: 11px 18px;
	font-size: 0.92rem;
}

.gx-lp .added_to_cart {
	display: inline-block;
	margin-top: 8px;
	font-weight: 600;
	color: var(--lp-dark);
}

/* 7. Confianza */
.gx-lp-trust .gx-lp-ic {
	background: var(--lp-mint);
}

/* 8. Preguntas */
.gx-lp-faq details {
	max-width: 760px;
	margin: 0 auto 12px;
	padding: 0;
	border-radius: 14px;
	background: #fff;
	border: 1px solid rgba(0, 100, 0, 0.12);
	text-align: left;
}

.gx-lp-faq summary {
	position: relative;
	padding: 18px 52px 18px 20px;
	font-weight: 700;
	color: var(--lp-soil);
	cursor: pointer;
	list-style: none;
}

.gx-lp-faq summary::-webkit-details-marker {
	display: none;
}

.gx-lp-faq summary::after {
	content: "+";
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.5rem;
	font-weight: 400;
	color: var(--lp-green);
}

.gx-lp-faq details[open] summary::after {
	content: "–";
}

.gx-lp-faq details p {
	padding: 0 20px 18px;
}

/* 9. Cierre */
.gx-lp-final {
	background: linear-gradient(165deg, #01330a 0%, #045c14 55%, #0f7a1f 100%) !important;
	color: #fff;
}

.gx-lp-final .gx-lp-h2 {
	color: #fff;
	margin-bottom: 14px;
}

.gx-lp-final-price {
	margin-bottom: 26px;
	font-size: 2rem;
	font-weight: 800;
	color: var(--greenex-accent, #FFD700);
}

.gx-lp-final-price .woocommerce-Price-amount {
	color: inherit;
}

.gx-lp-ctas {
	display: flex;
	gap: 14px;
	justify-content: center;
	flex-wrap: wrap;
}

.gx-lp-final .gx-lp-btn-ghost {
	color: #fff !important;
	border-color: rgba(255, 255, 255, 0.75);
}

/* Barra de compra fija (solo celular) */
.gx-lp-bar {
	display: none;
}

@media (max-width: 768px) {
	.gx-lp-bar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 9990;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
		background: #fff;
		box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.12);
		transform: translateY(110%);
		transition: transform 0.3s ease;
	}

	.gx-lp-bar.is-on {
		transform: none;
	}

	.gx-lp-bar-info {
		display: flex;
		flex-direction: column;
		min-width: 0;
	}

	.gx-lp-bar-name {
		overflow: hidden;
		font-size: 0.85rem;
		font-weight: 600;
		color: var(--greenex-text, #2D2D2D);
		white-space: nowrap;
		text-overflow: ellipsis;
	}

	.gx-lp-bar-price {
		font-size: 1.1rem;
		font-weight: 800;
		color: var(--greenex-dark, #006400);
	}

	.gx-lp-bar .gx-lp-btn {
		flex: 0 0 auto;
		padding: 12px 22px;
	}

	.gx-lp-bar .added_to_cart {
		display: none;
	}

	/* El botón de WhatsApp sube para no tapar la barra */
	body.gx-lp-bar-on .whatsapp-float {
		bottom: 96px;
	}
}

/* Aparición suave (solo si el JS está activo) */
.gx-lp-anim .gx-lp-sec {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.gx-lp-anim .gx-lp-sec.is-in {
	opacity: 1;
	transform: none;
}

/* Responsivo */
@media (max-width: 1024px) {
	.gx-lp-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
	.gx-lp-sec { padding: 56px 18px; }
	.gx-lp-split { grid-template-columns: 1fr; gap: 28px; }
	.gx-lp-steps,
	.gx-lp-grid-3 { grid-template-columns: 1fr; }
	.gx-lp-h2 { margin-bottom: 26px; }
}

@media (max-width: 480px) {
	.gx-lp-grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
	.gx-lp-pain,
	.gx-lp-use,
	.gx-lp-feat,
	.gx-lp-trust-item { padding: 16px; }
	.gx-lp-ic { width: 46px; height: 46px; border-radius: 13px; }
	.gx-lp-sizes .gx-lp-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.gx-lp-anim .gx-lp-sec { opacity: 1; transform: none; transition: none; }
	.gx-lp-btn,
	.gx-lp-bar { transition: none; }
}

/* ============ Barra de anuncios con movimiento ============ */
.gx-lp-marquee {
	position: relative;
	z-index: 50;
	overflow: hidden;
	background: #01330a;
	color: #fff;
	border-bottom: 1px solid rgba(255, 215, 0, 0.25);
}

.gx-lp-marquee-track {
	display: flex;
	width: max-content;
	animation: gx-lp-marquee 28s linear infinite;
}

.gx-lp-marquee:hover .gx-lp-marquee-track {
	animation-play-state: paused;
}

.gx-lp-marquee-list {
	display: flex;
	flex-shrink: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gx-lp-marquee-list li {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 10px 28px;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
}

.gx-lp-marquee-list li .gx-ic {
	width: 18px;
	height: 18px;
	color: var(--greenex-accent, #FFD700);
}

.gx-lp-marquee-list li::after {
	content: "";
	width: 5px;
	height: 5px;
	margin-left: 28px;
	border-radius: 50%;
	background: rgba(255, 215, 0, 0.6);
}

@keyframes gx-lp-marquee {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

/* ============ Problema arriba de la foto ============ */
.gx-lp-top {
	margin-top: 0;
	margin-bottom: 40px;
}

.gx-lp-top .gx-lp-sec {
	background: linear-gradient(180deg, #fffaf0 0%, #fff 100%);
	padding-top: 56px;
	padding-bottom: 48px;
}

.gx-lp-down {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 22px;
	padding: 10px 20px;
	border-radius: 999px;
	background: var(--lp-green);
	color: #fff !important;
	font-weight: 700;
	text-decoration: none !important;
}

.gx-lp-down svg {
	animation: gx-lp-bounce 1.6s ease-in-out infinite;
}

@keyframes gx-lp-bounce {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(4px); }
}

.gx-lp-solution-tag {
	display: inline-block;
	margin: 0 0 10px !important;
	padding: 5px 14px;
	border-radius: 999px;
	background: var(--greenex-bg-light, #E8F5E9);
	color: var(--greenex-dark, #006400);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	scroll-margin-top: 90px;
}

@media (prefers-reduced-motion: reduce) {
	.gx-lp-marquee-track { animation: none; width: auto; justify-content: center; flex-wrap: wrap; }
	.gx-lp-marquee-list[aria-hidden="true"] { display: none; }
	.gx-lp-marquee-list { flex-wrap: wrap; justify-content: center; }
	.gx-lp-down svg { animation: none; }
}

/* ============ v1.1: página común para los 3 kits ============ */

/* Sin la barra de CultivaStore: arriba solo va la barra de anuncios */
body.gx-landing #masthead,
body.gx-landing .site-header {
	display: none !important;
}

/* Resumen junto a la foto */
.gx-lp-summary {
	--lp-green: var(--greenex-primary, #228B22);
	--lp-dark: var(--greenex-dark, #006400);
	scroll-margin-top: 24px;
}

.gx-lp-summary .gx-lp-title {
	margin: 4px 0 12px;
	font-size: clamp(1.9rem, 3.6vw, 2.7rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: #0f1a0f;
}

.gx-lp-summary-sub {
	margin: 0 0 16px;
	font-size: 1.08rem;
	line-height: 1.55;
	color: #3d4a3d;
}

.gx-lp-checks {
	display: grid;
	gap: 8px;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
}

.gx-lp-checks li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-weight: 600;
	color: #1f2a1f;
}

.gx-lp-checks .gx-ic,
.gx-lp-comp li .gx-ic {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	padding: 3px;
	border-radius: 50%;
	background: var(--greenex-bg-light, #E8F5E9);
	color: var(--greenex-dark, #006400);
	stroke-width: 2.6;
}

.gx-lp-size-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.gx-lp-size-chips span {
	padding: 6px 14px;
	border-radius: 999px;
	border: 1.5px solid rgba(0, 100, 0, 0.25);
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--greenex-dark, #006400);
}

.gx-lp-from {
	margin: 0 0 16px;
	font-size: 1.05rem;
	color: #3d4a3d;
}

.gx-lp-from strong,
.gx-lp-from .woocommerce-Price-amount {
	font-size: 1.7rem;
	font-weight: 800;
	color: var(--greenex-dark, #006400);
}

.gx-lp-summary .gx-lp-choose {
	width: 100%;
	max-width: 360px;
	padding: 16px 28px;
	font-size: 1.08rem;
}

/* Componentes */
.gx-lp-comp {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 0 0 22px;
	border-radius: 20px;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.06);
	box-shadow: 0 8px 26px rgba(0, 0, 0, 0.06);
	overflow: hidden;
	min-width: 0;
}

.gx-lp-comp-head {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 20px 22px;
	background: #f7f8f7;
	background: color-mix(in srgb, var(--f) 12%, #fff);
	border-bottom: 4px solid var(--f);
}

.gx-lp-comp-head h3 {
	margin: 0;
}

.gx-lp-comp-stage {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--f);
}

.gx-lp-comp-label {
	padding: 0 22px;
	font-weight: 700;
	color: #0f1a0f !important;
}

.gx-lp-comp ul {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0 22px;
	list-style: none;
}

.gx-lp-comp li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	color: #3d4a3d;
	line-height: 1.45;
}

.gx-lp-comp li .gx-ic {
	margin-top: 1px;
	background: color-mix(in srgb, var(--f) 14%, #fff);
	color: var(--f);
}

.gx-lp-extras {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 26px !important;
	font-weight: 600;
	color: #1f2a1f !important;
}

.gx-lp-extras .gx-ic {
	width: 22px;
	height: 22px;
	color: var(--greenex-dark, #006400);
}

/* Tamaños */
.gx-lp-kit.is-best {
	border: 2px solid var(--lp-green);
	box-shadow: 0 12px 32px rgba(34, 139, 34, 0.18);
}

.gx-lp-kit-use {
	display: inline-flex;
	align-self: center;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--lp-mint);
	color: var(--lp-dark);
	font-size: 0.8rem;
	font-weight: 700;
}

.gx-lp-kit-use .gx-ic {
	width: 16px;
	height: 16px;
}

.gx-lp-kit-text {
	min-height: 3em;
}

.gx-lp-kit .gx-lp-btn {
	padding: 13px 18px;
	font-size: 0.98rem;
}

@media (max-width: 768px) {
	.gx-lp-summary .gx-lp-choose { max-width: none; }
	.gx-lp-sizes .gx-lp-grid { grid-template-columns: 1fr; }
	.gx-lp-kit-text { min-height: 0; }
}
