/* Landings mayoristas (/distribuidores/…) — template-distribuidores.php + shortcodes de hypro-core */

.dist {
	--dist-blue: var(--wp--preset--color--hypro-blue, #1526be);
	--dist-blue-dark: var(--wp--preset--color--hypro-blue-dark, #0b1590);
	--dist-bg: var(--wp--preset--color--hypro-off-white, #f4f3ef);
	--dist-ink: var(--wp--preset--color--hypro-near-black, #0c0c0a);
	--dist-muted: var(--wp--preset--color--hypro-muted, #6b6b68);
	--dist-lime: var(--wp--preset--color--hypro-lime, #c5ff47);
	color: var(--dist-ink);
	font-size: 1rem;
	line-height: 1.6;
	overflow-x: clip;
}

.dist-breadcrumb {
	max-width: 1080px;
	margin: 0 auto;
	padding: 1rem 1.25rem 0;
	font-size: .875rem;
	color: var(--dist-muted);
}
.dist-breadcrumb a { color: inherit; text-decoration: underline; }

/* Hero */
.dist-hero {
	max-width: 880px;
	margin: 0 auto;
	padding: 3rem 1.25rem 2rem;
	text-align: center;
}
.dist-hero__eyebrow {
	margin: 0 0 .75rem;
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--dist-blue);
}
.dist-hero__title {
	margin: 0 0 1rem;
	font-size: clamp(2rem, 5vw, 3.25rem);
	line-height: 1.1;
}
.dist-hero__sub {
	margin: 0 auto 1.75rem;
	max-width: 640px;
	font-size: 1.125rem;
	color: var(--dist-muted);
}
.dist-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	justify-content: center;
}

/* Botones */
.dist-btn {
	display: inline-block;
	padding: .9rem 1.6rem;
	border: 1.5px solid var(--dist-ink);
	border-radius: 0;
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}
.dist-btn--primary { background: var(--dist-blue); color: #fff; }
.dist-btn--primary:hover { background: var(--dist-blue-dark); color: #fff; }
.dist-btn--wa { background: #25d366; border-color: var(--dist-ink); color: var(--dist-ink); }
.dist-btn--wa:hover { background: #1fb457; color: var(--dist-ink); }
.dist-btn--ghost { background: transparent; color: var(--dist-ink); }
.dist-btn--ghost:hover { background: var(--dist-ink); color: #fff; }
.dist-btn[disabled] { opacity: .6; cursor: wait; }

/* Contenido */
.dist-content {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 1.25rem;
}
.dist-section { padding: 2.5rem 0; }
.dist-section > h2 {
	margin: 0 0 1rem;
	font-size: clamp(1.5rem, 3vw, 2.125rem);
	line-height: 1.2;
}
.dist-section > p { max-width: 720px; }
.dist-section--tint {
	background: var(--dist-bg);
	margin-inline: calc(50% - 50vw);
	padding-inline: calc(50vw - 50%);
}

.dist-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	margin-top: 1.25rem;
}
.dist-card {
	padding: 1.25rem;
	background: #fff;
	border: 1.5px solid var(--dist-ink);
}
.dist-card h3 { margin: 0 0 .5rem; font-size: 1.125rem; }
.dist-card p { margin: 0; color: var(--dist-muted); }

.dist-steps {
	counter-reset: dist-step;
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	margin: 1.25rem 0 0;
	padding: 0;
	list-style: none;
}
.dist-steps li {
	counter-increment: dist-step;
	position: relative;
	padding: 1.25rem 1.25rem 1.25rem 3.5rem;
	background: #fff;
	border: 1.5px solid var(--dist-ink);
}
.dist-steps li::before {
	content: counter(dist-step);
	position: absolute;
	left: 1rem;
	top: 1.1rem;
	width: 1.75rem;
	height: 1.75rem;
	display: grid;
	place-items: center;
	background: var(--dist-lime);
	border: 1.5px solid var(--dist-ink);
	font-weight: 700;
}

.dist-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1rem; }
.dist-links a { color: var(--dist-blue); text-decoration: underline; font-weight: 600; }

/* FAQ */
.dist-faq__item {
	border-bottom: 1px solid rgba(12, 12, 10, .2);
	padding: .9rem 0;
}
.dist-faq__item summary {
	cursor: pointer;
	font-weight: 600;
	font-size: 1.0625rem;
}
.dist-faq__item p { margin: .75rem 0 0; color: var(--dist-muted); max-width: 720px; }

/* CTA final */
.dist-cta-end {
	max-width: 880px;
	margin: 2.5rem auto;
	padding: 2.5rem 1.25rem;
	text-align: center;
	background: var(--dist-lime);
	border: 1.5px solid var(--dist-ink);
}
.dist-cta-end h2 { margin: 0 0 .5rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.dist-cta-end p { margin: 0 0 1.25rem; }

/* Formulario */
.dist-form {
	max-width: 760px;
	margin: 2.5rem auto;
	padding: 1.75rem 1.25rem;
	background: #fff;
	border: 1.5px solid var(--dist-ink);
}
.dist-form__title { margin: 0 0 .5rem; font-size: 1.5rem; }
.dist-form__intro { margin: 0 0 1.25rem; color: var(--dist-muted); }
.dist-form__grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	margin-bottom: 1rem;
}
.dist-form label { display: block; font-weight: 600; font-size: .9375rem; }
.dist-form input[type="text"],
.dist-form input[type="tel"],
.dist-form select,
.dist-form textarea {
	display: block;
	width: 100%;
	margin-top: .35rem;
	padding: .75rem;
	border: 1.5px solid var(--dist-ink);
	border-radius: 0;
	background: #fff;
	font: inherit;
	font-weight: 400;
}
.dist-form .is-invalid { border-color: #c62828; background: #fff5f5; }
.dist-form__consent { display: flex !important; gap: .6rem; align-items: flex-start; margin: 1rem 0; font-weight: 400 !important; }
.dist-form__consent input { margin-top: .3rem; }
.dist-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dist-form__status { min-height: 1.5rem; margin: .75rem 0 0; font-weight: 600; }
.dist-form__fallback { margin-top: .5rem; }
.dist-form__fallback[hidden] { display: none; }

/* Botón flotante */
.dist-float-wa {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 90;
	padding: .8rem 1.1rem;
	background: #25d366;
	color: var(--wp--preset--color--hypro-near-black, #0c0c0a);
	border: 1.5px solid var(--wp--preset--color--hypro-near-black, #0c0c0a);
	font-weight: 700;
	text-decoration: none;
	box-shadow: 4px 4px 0 rgba(12, 12, 10, .85);
}
.dist-float-wa:hover { background: #1fb457; color: var(--wp--preset--color--hypro-near-black, #0c0c0a); }

@media (max-width: 600px) {
	.dist-hero { padding-top: 2rem; }
	.dist-btn { width: 100%; text-align: center; }
}
