/* Landing mayorista "visual" (template-distribuidores-visual.php).
   Reusa tokens y componentes de lp.css (lp-hero__*, lp-why__*, lp-btn, lp-eyebrow)
   y pisa los estilos base de distribuidores.css para que se vea como la home. */

.dlp {
	--dlp-ink: var(--hypro-near-black, #0c0c0a);
	--dlp-off: var(--hypro-off-white, #f4f3ef);
	--dlp-blue: var(--hypro-blue, #1526be);
	--dlp-muted: var(--hypro-muted, #6b6b68);
	--dlp-display: var(--hypro-font-display, 'Yumex', serif);
	background: #fff;
}

.dlp-inner { max-width: 1160px; }

.dlp-h2 {
	font-family: var(--dlp-display);
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 700;
	line-height: 1.15;
	margin: 0;
}
.dlp-lead {
	font-size: 1.0625rem;
	line-height: 1.7;
	margin: 16px 0 0;
	max-width: 640px;
}
.dlp-center { text-align: center; }
.dlp-center .dlp-lead { margin-inline: auto; }

/* Botones del plugin (WhatsApp) con la forma de .lp-btn */
.dlp .dist-btn {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	border: 2px solid transparent;
	border-radius: .5rem;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	transition: background-color .2s ease, transform .15s ease;
}
.dlp .dist-btn:hover { transform: translateY(-1px); }
.dlp .dist-btn--wa { background: #25d366; border-color: #25d366; color: var(--dlp-ink); }
.dlp .dist-btn--wa:hover { background: #1fb457; border-color: #1fb457; }
.dlp .dist-btn__icon { flex-shrink: 0; margin-right: 10px; }
.dlp .dist-btn--primary { background: var(--dlp-blue); border-color: var(--dlp-blue); color: #fff; }
.dlp .dist-form__fallback[hidden] { display: none; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.dlp-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(560px, 80vh, 820px);
	background: var(--dlp-ink);
	color: #fff;
	overflow: hidden;
}
.dlp-hero__media,
.dlp-hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.dlp-hero__image { object-fit: cover; object-position: center; }
.dlp-hero__shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(12, 12, 10, .94) 0%, rgba(12, 12, 10, .82) 30%, rgba(12, 12, 10, .35) 55%, rgba(12, 12, 10, 0) 72%),
		linear-gradient(0deg, rgba(12, 12, 10, .55) 0%, rgba(12, 12, 10, 0) 30%);
}
.dlp-hero--right .dlp-hero__shade {
	background:
		linear-gradient(270deg, rgba(12, 12, 10, .94) 0%, rgba(12, 12, 10, .86) 34%, rgba(12, 12, 10, .4) 50%, rgba(12, 12, 10, 0) 62%),
		linear-gradient(0deg, rgba(12, 12, 10, .55) 0%, rgba(12, 12, 10, 0) 30%);
}
.dlp-hero__inner { position: relative; width: 100%; }
.dlp-hero__text {
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-width: 660px;
	padding-block: 96px;
}
.dlp-hero--right .dlp-hero__text { margin-left: auto; max-width: 620px; }
.dlp-hero--focus-top .dlp-hero__image { object-position: center top; }
.dlp-hero--focus-bottom .dlp-hero__image { object-position: center bottom; }
.dlp-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Mobile: la foto arriba, entera y sin texto encima (fade a negro abajo);
   el texto va debajo, más compacto, para que se vean las latas. */
@media (max-width: 767px) {
	.dlp-hero { display: block; min-height: 0; }
	.dlp-hero__media {
		position: relative;
		display: block;
		height: auto;
		aspect-ratio: 900 / 837;
	}
	.dlp-hero__image { object-position: center; }
	.dlp-hero__shade,
	.dlp-hero--right .dlp-hero__shade {
		inset: auto 0 0;
		top: 0;
		aspect-ratio: 900 / 837;
		height: auto;
		background: linear-gradient(0deg, rgba(12, 12, 10, 1) 0%, rgba(12, 12, 10, .6) 14%, rgba(12, 12, 10, 0) 32%);
	}
	.dlp-hero__inner { margin-top: -28px; box-sizing: border-box; }
	.dlp-hero__text { gap: 12px; max-width: none; padding-block: 0 32px; }
	.dlp-hero .lp-hero__eyebrow { font-size: .625rem; }
	.dlp-hero .lp-hero__heading { font-size: 2rem; }
	.dlp-hero .lp-hero__subtext { font-size: .9375rem; line-height: 1.55; }
	.dlp-hero__actions { gap: 8px; margin-top: 4px; }
	.dlp-hero__actions .lp-btn,
	.dlp-hero__actions .dist-btn { width: 100%; padding: 12px 20px; font-size: .9375rem; }
}

/* ── Prueba social: logos + números ───────────────────────────────────── */
.dlp-proof {
	background: var(--dlp-off);
	padding-block: 88px;
}
.dlp-proof .lp-eyebrow,
.dlp-types .lp-eyebrow,
.dlp-steps-wrap .lp-eyebrow,
.dlp-faq .lp-eyebrow { color: var(--dlp-muted); }
.dlp-logos {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 32px 64px;
	margin: 56px 0 0;
	padding: 0;
	list-style: none;
}
.dlp-logo { display: flex; align-items: center; height: 72px; }
.dlp-logo img {
	display: block;
	width: auto;
	height: auto;
	max-width: 180px;
	max-height: 44px;
}
.dlp-logo--square img { max-height: 72px; }
/* Logos de dos líneas (texto apilado): necesitan más alto para leerse igual. */
.dlp-logo--stacked img { max-height: 60px; }

.dlp-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin: 64px 0 0;
	padding-top: 48px;
	border-top: 1px solid rgba(12, 12, 10, .12);
}
.dlp-stat { margin: 0; text-align: center; }
.dlp-stat__num {
	display: block;
	font-family: var(--dlp-display);
	font-size: clamp(3rem, 6vw, 4.5rem);
	font-weight: 800;
	line-height: 1;
	color: var(--dlp-blue);
	font-variant-numeric: tabular-nums;
}
.dlp-stat__label {
	display: block;
	margin-top: 12px;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--dlp-muted);
}

@media (max-width: 600px) {
	.dlp-proof { padding-block: 64px; }
	.dlp-logos { gap: 24px 36px; margin-top: 40px; }
	.dlp-logo { height: 56px; }
	.dlp-logo img { max-width: 132px; max-height: 32px; }
	.dlp-logo--square img { max-height: 56px; }
	.dlp-logo--stacked img { max-height: 44px; }
	.dlp-stats { gap: 8px; margin-top: 48px; padding-top: 36px; }
	.dlp-stat__num { font-size: 2.25rem; }
	.dlp-stat__label { font-size: .625rem; letter-spacing: .08em; }
}

/* Variante sin logos (landing general): 4 números, sin la línea divisoria */
.dlp-stats--solo { margin-top: 48px; padding-top: 0; border-top: 0; }
.dlp-stats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 767px) {
	.dlp-stats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
}

/* ── Tipos de negocio: tarjetas con link a cada landing ──────────────── */
.dlp-types { background: var(--dlp-off); padding-block: 96px; }
.dlp-types__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin-top: 48px;
	text-align: left;
}
.dlp-type {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 28px 24px;
	background: #fff;
	border: 1px solid rgba(12, 12, 10, .08);
	border-radius: 16px;
}
.dlp-type h3 {
	margin: 0;
	font-family: var(--dlp-display);
	font-size: 1.25rem;
	line-height: 1.25;
}
.dlp-type p { margin: 0; color: var(--dlp-muted); line-height: 1.6; }
.dlp .dlp-type a { margin-top: auto; padding-top: 8px; text-decoration: none; }
.dlp .dlp-type a:hover { text-decoration: underline; }
@media (max-width: 1024px) { .dlp-types__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
	.dlp-types { padding-block: 64px; }
	.dlp-types__grid { grid-template-columns: 1fr; margin-top: 32px; }
}

/* ── Beneficios: .lp-why de la home ───────────────────────────────────── */
.dlp .lp-why { padding-block: 100px; }
/* Los <img> del editor llevan width/height: sin height:auto ganan al aspect-ratio 1:1. */
.dlp .lp-why__reason-image { height: auto; }

/* ── Cómo sumarlo: split imagen + pasos (como "Clear Protein" en la home) */
.dlp-steps-wrap {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: stretch;
	background: #fff;
}
.dlp-steps-wrap__media { position: relative; min-height: 520px; }
.dlp-steps-wrap__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.dlp-steps-wrap__media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0) 60%, #fff 100%);
}
.dlp-steps-wrap__body { padding: 88px 48px 88px 40px; max-width: 640px; }
.dlp-steps {
	counter-reset: dlp-step;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid rgba(12, 12, 10, .12);
}
.dlp-steps li {
	counter-increment: dlp-step;
	display: grid;
	grid-template-columns: 48px 1fr;
	gap: 4px 12px;
	padding: 20px 0;
	border-bottom: 1px solid rgba(12, 12, 10, .12);
	color: var(--dlp-muted);
	line-height: 1.6;
}
.dlp-steps li::before {
	content: counter(dlp-step, decimal-leading-zero);
	grid-row: span 2;
	font-family: var(--dlp-display);
	font-size: 1.125rem;
	font-weight: 700;
	color: rgba(12, 12, 10, .35);
}
.dlp-steps strong { color: var(--dlp-ink); font-weight: 700; }
.dlp-more {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 28px 0 0;
}
.dlp-more span {
	width: 100%;
	margin-bottom: 4px;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--dlp-muted);
}
.dlp .dlp-more a {
	padding: 8px 14px;
	border: 1px solid rgba(12, 12, 10, .15);
	border-radius: 999px;
	font-size: .875rem;
	font-weight: 600;
	color: var(--dlp-ink);
	text-decoration: none;
	transition: border-color .2s ease, color .2s ease;
}
.dlp .dlp-more a:hover { border-color: var(--dlp-blue); color: var(--dlp-blue); }
.dlp a:not(.lp-btn):not(.dist-btn) { color: var(--dlp-blue); font-weight: 600; }

@media (max-width: 900px) {
	.dlp-steps-wrap { grid-template-columns: 1fr; }
	.dlp-steps-wrap__media { min-height: 320px; }
	.dlp-steps-wrap__media::after { background: linear-gradient(180deg, rgba(255, 255, 255, 0) 65%, #fff 100%); }
	.dlp-steps-wrap__body { padding: 32px 24px 64px; }
}

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.dlp-faq { background: var(--dlp-off); padding-block: 96px; }
.dlp-faq .lp-inner { max-width: 840px; }
.dlp-faq__list { margin-top: 40px; border-top: 1px solid rgba(12, 12, 10, .14); }
.dlp .dist-faq__item { padding: 0; border-bottom: 1px solid rgba(12, 12, 10, .14); }
.dlp .dist-faq__item summary {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 0;
	font-size: 1.0625rem;
	font-weight: 600;
	list-style: none;
}
.dlp .dist-faq__item summary::-webkit-details-marker { display: none; }
.dlp .dist-faq__item summary::after {
	content: '+';
	flex-shrink: 0;
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1;
	transition: transform .2s ease;
}
.dlp .dist-faq__item[open] summary::after { transform: rotate(45deg); }
.dlp .dist-faq__item p { margin: 0 0 22px; color: var(--dlp-muted); line-height: 1.7; }

/* ── Formulario ───────────────────────────────────────────────────────── */
.dlp-form-wrap { padding: 96px 24px; background: #fff; }
.dlp .dist-form {
	max-width: 760px;
	margin: 0 auto;
	padding: 40px;
	border: 1px solid rgba(12, 12, 10, .1);
	border-radius: 20px;
	box-shadow: 0 20px 60px rgba(12, 12, 10, .08);
}
.dlp .dist-form__title {
	font-family: var(--dlp-display);
	font-size: clamp(1.5rem, 3vw, 2rem);
	line-height: 1.2;
}
.dlp .dist-form input[type="text"],
.dlp .dist-form input[type="tel"],
.dlp .dist-form select,
.dlp .dist-form textarea {
	box-sizing: border-box;
	border: 1px solid rgba(12, 12, 10, .25);
	border-radius: .5rem;
}
.dlp .dist-form input:focus,
.dlp .dist-form select:focus,
.dlp .dist-form textarea:focus { outline: 2px solid var(--dlp-blue); outline-offset: 1px; }
@media (max-width: 600px) {
	.dlp-form-wrap { padding: 64px 16px; }
	.dlp .dist-form { padding: 28px 20px; }
}

/* ── CTA final ────────────────────────────────────────────────────────── */
.dlp-cta-end {
	padding: 96px 0;
	background: var(--dlp-ink);
	color: #fff;
	text-align: center;
}
.dlp-cta-end .dlp-lead { margin: 16px auto 32px; color: rgba(255, 255, 255, .7); }

