/**
 * Agronorte - Home Page Styles — MVP v3
 *
 * Matches the new Figma design (Page / Home — MVP v3).
 * Uses theme.json custom properties.
 *
 * @package Agronorte
 * @since 1.1.0
 */

/* ─── Section Header Pattern ───────────────────────────── */

.agronorte-home-section-header {
	display: grid;
	grid-template-columns: 320px 80px 1fr;
	gap: 24px;
	align-items: start;
}

.agronorte-home-section-header__label {
	display: flex;
	align-items: center;
	gap: 16px;
}

.agronorte-home-section-header__label::after {
	content: none;
}

.agronorte-home-section-header__divisor {
	width: 2px;
	height: 30px;
	background: var(--wp--preset--color--neutral-300);
	flex-shrink: 0;
}

.agronorte-home-section-header__tag {
	font-family: var(--wp--preset--font-family--host-grotesk);
	font-size: 13px;
	font-weight: 600;
	color: var(--wp--preset--color--neutral-400);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	white-space: nowrap;
}

.agronorte-home-section-header__content {
	grid-column: 3;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.agronorte-home-section-header__title {
	font-family: var(--wp--preset--font-family--heading, 'Titillium Web', sans-serif);
	font-size: clamp(2rem, 4.5vw, 4rem);
	font-weight: 600;
	line-height: 1.02;
	color: var(--wp--preset--color--neutral-900);
	margin: 0;
}

.agronorte-home-section-header__desc {
	font-family: var(--wp--preset--font-family--host-grotesk);
	font-size: 17px;
	line-height: 1.75;
	color: var(--wp--preset--color--neutral-500);
	margin: 0;
}

.agronorte-home-section-header__desc strong {
	color: var(--wp--preset--color--neutral-900);
	font-weight: 600;
}

/* Inverse variant for dark sections */
.agronorte-home-section-header--inverse .agronorte-home-section-header__title {
	color: var(--wp--preset--color--white);
}

.agronorte-home-section-header--inverse .agronorte-home-section-header__desc {
	color: var(--wp--preset--color--neutral-400);
}

/* ─── Sections ────────────────────────────────────────── */

.agronorte-home-section {
	padding: 160px 75px;
}

.agronorte-home-section__inner {
	max-width: 1290px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 64px;
}

.agronorte-home-section--ecosistema {
	background: #1d1d1b;
}

.agronorte-home-section--cobertura {
	background: var(--wp--preset--color--neutral-50);
}

/* News block uses margin-inline: -40px on mobile for edge-to-edge scroll;
   clip on the wrapping section so the body doesn't get a horizontal scrollbar. */
.agronorte-home-section--noticias {
	overflow-x: clip;
}

.agronorte-home-section--diferencial {
	position: relative;
	overflow-x: clip;
	overflow-y: visible;
}

.agronorte-home-section--rrhh {
	background: var(--wp--preset--color--neutral-50);
	position: relative;
	overflow: hidden;
}

.agronorte-home-section__bg-img {
	position: absolute;
	top: 0;
	left: -40%;
	width: 85%;
	height: 100%;
	object-fit: cover;
	object-position: right center;
	pointer-events: none;
	z-index: 0;
}

/* RRHH (Oportunidades Laborales): rendered as a CSS background only at
   desktop+ widths so the browser skips the fetch on mobile (no img tag,
   no request). Image has subjects on the left and white-fade on the
   right, so anchor it left, lower it, and blend with the section bg. */
.agronorte-home-section--rrhh .agronorte-home-section__bg-img {
	top: 300px;
	left: 0;
	width: 100%;
	height: 70%;
	background-size: cover;
	background-position: left center;
	background-repeat: no-repeat;
	mix-blend-mode: multiply;
}

/* Sobre Nosotros (Diferencial): smaller, vertically nudged photo with a
   darken blend so it integrates with the section background. */
.agronorte-home-section--diferencial .agronorte-home-section__bg-img {
	top: 255px;
	left: -10%;
	width: 75%;
	height: 80%;
	transform-origin: right center;
	mix-blend-mode: darken;
}

.agronorte-home-section--diferencial .agronorte-home-section__inner,
.agronorte-home-section--rrhh .agronorte-home-section__inner {
	position: relative;
	z-index: 1;
}

/* ─── Buttons ─────────────────────────────────────────── */

.agronorte-home-btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 14px 24px;
	border-radius: var(--wp--custom--border-radius--small);
	font-family: var(--wp--preset--font-family--host-grotesk);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
		border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
		color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	cursor: pointer;
	border: 1px solid transparent;
	white-space: nowrap;
}

/* Arrow nudge on hover for the "Ver X →" buttons. */
.agronorte-home-btn--outline-dark > span,
.agronorte-home-btn--outline > span:not(.agronorte-home-btn__wa) {
	display: inline-flex;
	align-items: center;
	transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.agronorte-home-btn--outline-dark:hover > span,
.agronorte-home-btn--outline:hover > span:not(.agronorte-home-btn__wa) {
	transform: translateX(4px);
}

.agronorte-home-btn--dark {
	background: var(--wp--preset--color--neutral-900);
	color: var(--wp--preset--color--white);
	padding: 18px 24px 18px 28px;
	height: 56px;
}

.agronorte-home-btn--dark:hover {
	background: var(--wp--preset--color--neutral-800);
}

.agronorte-home-btn__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 999px;
	background: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--neutral-900);
	font-size: 14px;
	font-weight: 600;
	transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.agronorte-home-btn:hover .agronorte-home-btn__arrow {
	transform: translateX(4px);
}

.agronorte-home-btn--outline {
	background: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--neutral-200);
	color: var(--wp--preset--color--neutral-900);
	height: 56px;
	padding: 18px 28px;
}

.agronorte-home-btn--outline:hover {
	border-color: var(--wp--preset--color--neutral-400);
	background: var(--wp--preset--color--neutral-50);
}

.agronorte-home-btn__wa {
	flex-shrink: 0;
}

.agronorte-home-btn--outline-dark {
	background: transparent;
	border-color: var(--wp--preset--color--neutral-200);
	color: var(--wp--preset--color--neutral-900);
	font-size: 14px;
	padding: 14px 24px;
	align-self: flex-start;
	width: fit-content;
}

.agronorte-home-btn--outline-dark:hover {
	border-color: var(--wp--preset--color--neutral-400);
}

/* ─── Hero ────────────────────────────────────────────── */

.agronorte-home-hero {
	position: relative;
	height: 680px;
	/* Clip horizontally so __bg (right: -480px) doesn't create page-wide
	   horizontal scroll, but keep vertical visible so the image can bleed
	   under the next section without being cut. `clip` (vs `hidden`)
	   does NOT force the other axis to `auto`. */
	overflow-x: clip;
	overflow-y: visible;
	background: var(--wp--preset--color--white);
	margin-top: -100px;
	padding-top: 100px;
}

.agronorte-home-hero__field-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	pointer-events: none;
	z-index: 0;
}

.agronorte-home-hero__bg {
	position: absolute;
	top: 100px;
	right: -480px;
	width: 85%;
	height: 110%;
	z-index: 1;
}

/* The hero harvester is rendered as a CSS background only at desktop+
   widths so the browser skips the fetch on mobile (no img tag, no request). */
@media (min-width: 769px) {
	.agronorte-home-hero__bg {
		background-image: var(--hero-bg-img);
		background-size: contain;
		background-position: right center;
		background-repeat: no-repeat;
	}
}

/* RRHH bg image only loads above 1024px — tablet/mobile skip the
   fetch entirely. */
@media (min-width: 1025px) {
	.agronorte-home-section--rrhh .agronorte-home-section__bg-img {
		background-image: url('../images/agronorte-oportunidades-laborales.webp');
	}
}

/* Hide Sobre Nosotros (Diferencial) bg image at 1024 and below. */
@media (max-width: 1024px) {
	.agronorte-home-section--diferencial .agronorte-home-section__bg-img {
		display: none;
	}
}

.agronorte-home-hero__watermark {
	position: absolute;
	top: 140px;
	right: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 260px;
	font-weight: 600;
	font-style: italic;
	line-height: 220px;
	color: rgba(255, 255, 255, 0.3);
	z-index: 0;
	pointer-events: none;
	user-select: none;
	white-space: nowrap;
	text-align: right;
}

.agronorte-home-hero__inner {
	position: relative;
	z-index: 3;
	max-width: 1440px;
	margin: 0 auto;
	padding: 100px var(--agronorte-layout-inline) 140px;
}

.agronorte-home-hero__content {
	max-width: 900px;
}

.agronorte-home-hero__badge {
	display: inline-block;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 13px;
	font-weight: 600;
	color: var(--wp--preset--color--neutral-700);
	text-transform: uppercase;
	margin-bottom: 20px;
}

.agronorte-home-hero__title {
	margin: 0 0 32px;
	line-height: 1;
}

.agronorte-home-hero__title--green,
.agronorte-home-hero__title--yellow {
	display: block;
	font-size: clamp(3rem, 6.5vw, 5.625rem);
	font-weight: 600;
	line-height: 1;
}

.agronorte-home-hero__title--green {
	color: var(--wp--preset--color--primary);
}

.agronorte-home-hero__title--yellow {
	color: var(--wp--preset--color--accent-orange);
}

.agronorte-home-hero__subtitle {
	font-family: var(--wp--preset--font-family--host-grotesk);
	font-size: 20px;
	line-height: 1.7;
	color: var(--wp--preset--color--neutral-500);
	margin: 0 0 32px;
	max-width: 900px;
}

.agronorte-home-hero__subtitle strong {
	color: var(--wp--preset--color--neutral-900);
	font-weight: 600;
}

.agronorte-home-hero__actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

/* ─── Category Cards ──────────────────────────────────── */

.agronorte-home-cats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.agronorte-home-cat {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 520px;
	border-radius: 20px;
	overflow: hidden;
	text-decoration: none;
}

.agronorte-home-cat__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
	transition: transform 0.5s ease;
}

.agronorte-home-cat:hover .agronorte-home-cat__img {
	transform: scale(1.05);
}

.agronorte-home-cat__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0.85) 100%);
	z-index: 1;
}

.agronorte-home-cat__info {
	position: relative;
	z-index: 2;
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.agronorte-home-cat__name {
	font-family: var(--wp--preset--font-family--heading, 'Titillium Web', sans-serif);
	font-size: 32px;
	font-weight: 600;
	line-height: 1.05;
	color: var(--wp--preset--color--white);
	margin: 0;
}

.agronorte-home-cat__desc {
	font-family: var(--wp--preset--font-family--host-grotesk);
	font-size: 16px;
	line-height: 1.6;
	color: var(--wp--preset--color--white);
	margin: 0;
}

.agronorte-home-cat__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	/* Collapse the row by default so title+desc sit flush at the card's
	   bottom. The negative margin cancels the parent's `gap: 12px` so no
	   ghost space remains. On hover the row expands and pushes the title
	   upward, since `__info` is anchored to the bottom of the card. */
	max-height: 0;
	margin-top: -12px;
	padding-top: 0;
	opacity: 0;
	overflow: hidden;
	transition:
		max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
		margin-top 0.4s cubic-bezier(0.4, 0, 0.2, 1),
		padding-top 0.4s cubic-bezier(0.4, 0, 0.2, 1),
		opacity 0.3s ease 0.05s;
}

.agronorte-home-cat:hover .agronorte-home-cat__footer {
	max-height: 60px;
	margin-top: 0;
	padding-top: 12px;
	opacity: 1;
}

.agronorte-home-cat__count {
	font-family: var(--wp--preset--font-family--host-grotesk);
	font-size: 14px;
	font-weight: 600;
	color: var(--wp--preset--color--white);
}

.agronorte-home-cat__arrow-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--wp--custom--border-radius--small);
	background: rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: var(--wp--preset--color--white);
	font-size: 16px;
	font-weight: 600;
	transition: background 0.2s ease;
}

.agronorte-home-cat:hover .agronorte-home-cat__arrow-btn {
	background: rgba(255, 255, 255, 0.35);
}

/* Direct hover on the arrow box itself — brighter bump than card-hover. */
.agronorte-home-cat__arrow-btn:hover {
	background: rgba(255, 255, 255, 0.6);
	border-color: rgba(255, 255, 255, 0.3);
}

/* ─── Bento Grid (Ecosistema) ─────────────────────────── */

.agronorte-home-bento {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.agronorte-home-bento__row {
	display: flex;
	gap: 16px;
}

.agronorte-home-bento__card {
	position: relative;
	height: 460px;
	border-radius: var(--wp--custom--border-radius--small);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	border: none;
	outline: none;
	color: inherit;
	text-decoration: none;
}

.agronorte-home-bento__card--wide {
	flex: 1.8;
}

.agronorte-home-bento__card--narrow {
	flex: 1;
}

.agronorte-home-bento__card--light {
	background: var(--wp--preset--color--white);
}

.agronorte-home-bento__card--dark {
	background: var(--wp--preset--color--neutral-900);
}

.agronorte-home-bento__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
	transition: transform 0.5s ease;
}

.agronorte-home-bento__card:hover .agronorte-home-bento__bg {
	transform: scale(1.05);
}

.agronorte-home-bento__card--light .agronorte-home-bento__bg {
	object-position: right center;
}

.agronorte-home-bento__card--dark .agronorte-home-bento__bg {
	object-position: right center;
	opacity: 1;
}

.agronorte-home-bento__content {
	position: relative;
	z-index: 1;
	padding: 36px 36px 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.agronorte-home-bento__badge {
	display: inline-flex;
	align-self: flex-start;
	padding: 5px 12px;
	border-radius: var(--wp--custom--border-radius--small);
	font-family: var(--wp--preset--font-family--host-grotesk);
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 24px;
}

.agronorte-home-bento__card--light .agronorte-home-bento__badge {
	background: rgba(0, 0, 0, 0.08);
	color: var(--wp--preset--color--neutral-500);
}

.agronorte-home-bento__card--dark .agronorte-home-bento__badge {
	background: rgba(255, 255, 255, 0.2);
	color: var(--wp--preset--color--white);
}

.agronorte-home-bento__title {
	font-family: var(--wp--preset--font-family--heading, 'Titillium Web', sans-serif);
	font-size: clamp(1.5rem, 2.8vw, 2.5rem);
	font-weight: 600;
	line-height: 1.02;
	margin: 0 0 14px;
}

.agronorte-home-bento__card--light .agronorte-home-bento__title {
	color: var(--wp--preset--color--neutral-900);
}

.agronorte-home-bento__card--dark .agronorte-home-bento__title {
	color: var(--wp--preset--color--white);
}

.agronorte-home-bento__desc {
	font-family: var(--wp--preset--font-family--host-grotesk);
	font-size: 16px;
	line-height: 1.65;
	margin: 0;
	max-width: 380px;
}

.agronorte-home-bento__card--light .agronorte-home-bento__desc {
	color: var(--wp--preset--color--neutral-700);
}

.agronorte-home-bento__card--dark .agronorte-home-bento__desc {
	color: rgba(255, 255, 255, 0.85);
}

/* The Tecnología card has a phone graphic anchored to the bottom-right
   that intrudes higher than other narrow cards; clamp the desc so the
   text doesn't run into it. Drones uses the default desc width. */
.agronorte-home-bento__card--tecnologia .agronorte-home-bento__desc {
	max-width: 200px;
}

.agronorte-home-bento__footer {
	position: relative;
	z-index: 1;
	margin-top: auto;
	padding: 0 36px 36px;
}

.agronorte-home-bento__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--wp--preset--font-family--host-grotesk);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.agronorte-home-bento__link .agronorte-arrow-icon {
	transition: transform 0.2s ease;
}

.agronorte-home-bento__card:hover .agronorte-home-bento__link .agronorte-arrow-icon {
	transform: translateX(4px);
}

.agronorte-home-bento__card--light .agronorte-home-bento__link {
	color: var(--wp--preset--color--neutral-900);
}

/* Variant for links sitting on top of a dark area of the photo. */
.agronorte-home-bento__card--light .agronorte-home-bento__link--on-dark {
	color: var(--wp--preset--color--white);
}

.agronorte-home-bento__card--dark .agronorte-home-bento__link {
	color: var(--wp--preset--color--white);
}

.agronorte-home-bento__card:hover .agronorte-home-bento__link {
	opacity: 0.8;
}

/* ─── Stats (Diferencial) ─────────────────────────────── */

.agronorte-home-stats {
	padding-top: 40px;
	margin-top: 40px;
}

.agronorte-home-stats__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
}

.agronorte-home-stats__item {
	padding: 32px 32px 32px 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.agronorte-home-stats__item h3 {
	font-family: var(--wp--preset--font-family--heading, 'Titillium Web', sans-serif);
	font-size: 28px;
	font-weight: 600;
	line-height: 1.1;
	color: var(--wp--preset--color--neutral-900);
	margin: 0;
}

.agronorte-home-stats__item p {
	font-family: var(--wp--preset--font-family--host-grotesk);
	font-size: 16px;
	line-height: 1.65;
	color: var(--wp--preset--color--neutral-500);
	margin: 0;
}

/* ─── Map (Cobertura) ─────────────────────────────────── */

.agronorte-home-map {
	position: relative;
	border-radius: 20px;
	overflow: hidden;
	aspect-ratio: 1290 / 460;
}

.agronorte-home-map__leaflet {
	width: 100%;
	height: 100%;
	z-index: 0;
}

/* Custom hover tooltip for map markers — replaces the native title.
   Used by both home and sucursales maps via `agronorte-map-tooltip` class. */
.leaflet-tooltip.agronorte-map-tooltip {
	background: var(--wp--preset--color--neutral-900);
	color: var(--wp--preset--color--white);
	border: none;
	border-radius: 8px;
	padding: 6px 12px;
	font-family: var(--wp--preset--font-family--host-grotesk, sans-serif);
	font-size: 12px;
	font-weight: 600;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	white-space: nowrap;
	/* Entry animation. Leaflet sets `transform` inline for positioning,
	   so we animate `opacity` only — transform conflicts would jump the
	   tooltip away from the marker. */
	animation: agronorte-tooltip-in 0.16s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.leaflet-tooltip.agronorte-map-tooltip.is-leaving {
	animation: agronorte-tooltip-out 0.16s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.leaflet-tooltip.agronorte-map-tooltip::before {
	border-top-color: var(--wp--preset--color--neutral-900);
}

@keyframes agronorte-tooltip-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes agronorte-tooltip-out {
	from { opacity: 1; }
	to   { opacity: 0; }
}

.agronorte-home-map__label {
	position: absolute;
	bottom: 36px;
	left: 36px;
	z-index: 400;
	display: flex;
	flex-direction: column;
	gap: 4px;
	pointer-events: none;
}

.agronorte-home-map__label-tag {
	font-family: var(--wp--preset--font-family--host-grotesk);
	font-size: 10px;
	font-weight: 600;
	color: var(--wp--preset--color--neutral-900);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.agronorte-home-map__label-region {
	font-family: var(--wp--preset--font-family--heading, 'Titillium Web', sans-serif);
	font-size: clamp(1.2rem, 2.5vw, 2rem);
	font-weight: 600;
	color: var(--wp--preset--color--neutral-900);
	line-height: 1.15;
}

.agronorte-home-map__hq-badge {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, 16px);
	z-index: 400;
	background: var(--wp--preset--color--white);
	padding: 6px 12px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	font-family: var(--wp--preset--font-family--host-grotesk);
	font-size: 12px;
	font-weight: 500;
	color: var(--wp--preset--color--neutral-700);
	white-space: nowrap;
	pointer-events: none;
}

/* Leaflet marker overrides for home map */
.agronorte-home-map .agronorte-marker {
	background: none;
	border: none;
	color: var(--wp--preset--color--neutral-900);
}

/* ─── News Cards ──────────────────────────────────────── */

.agronorte-home-news {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.agronorte-home-news__card {
	display: flex;
	flex-direction: column;
	border-radius: 20px;
	overflow: hidden;
	text-decoration: none;
	border: 1px solid var(--wp--preset--color--neutral-200);
	background: var(--wp--preset--color--white);
	transition: border-color 0.3s ease;
}

.agronorte-home-news__card:hover {
	border-color: var(--wp--preset--color--neutral-300);
}

.agronorte-home-news__img {
	aspect-ratio: 414 / 240;
	overflow: hidden;
	background: var(--wp--preset--color--neutral-50);
}

.agronorte-home-news__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.agronorte-home-news__card:hover .agronorte-home-news__img img {
	transform: scale(1.05);
}

.agronorte-home-news__body {
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.agronorte-home-news__meta {
	display: flex;
	align-items: center;
	gap: 10px;
}

.agronorte-home-news__cat {
	font-family: var(--wp--preset--font-family--host-grotesk);
	font-size: 10px;
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.agronorte-home-news__dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: var(--wp--preset--color--neutral-400);
}

.agronorte-home-news__date {
	font-family: var(--wp--preset--font-family--host-grotesk);
	font-size: 11px;
	color: var(--wp--preset--color--neutral-500);
	white-space: nowrap;
	flex-shrink: 0;
}

.agronorte-home-news__title {
	font-family: var(--wp--preset--font-family--heading, 'Titillium Web', sans-serif);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--wp--preset--color--neutral-900);
	margin: 0;
}

/* ─── Job Listings (RRHH) ─────────────────────────────── */

.agronorte-home-jobs {
	padding-top: 16px;
}

.agronorte-home-jobs__list {
	display: flex;
	flex-direction: column;
}

.agronorte-home-jobs__item {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 24px 0;
	border-bottom: 1px solid var(--wp--preset--color--neutral-100);
	text-decoration: none;
	transition: background var(--wp--custom--transition--fast);
}

.agronorte-home-jobs__item:first-child {
	border-top: 1px solid var(--wp--preset--color--neutral-100);
}

.agronorte-home-jobs__item {
	position: relative;
	background: linear-gradient(90deg, transparent 0%, rgba(245,245,245,0) 15%, rgba(245,245,245,0) 85%, transparent 100%);
	transition: background var(--wp--custom--transition--slow);
}

.agronorte-home-jobs__item:hover {
	background: linear-gradient(90deg, transparent 0%, rgba(245,245,245,0.6) 15%, rgba(245,245,245,0.6) 85%, transparent 100%);
}

.agronorte-home-jobs__dept-wrap {
	width: 140px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
}

.agronorte-home-jobs__dept {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	background: var(--wp--preset--color--primary-light);
	color: var(--wp--preset--color--primary);
	border-radius: var(--wp--custom--border-radius--large, 12px);
	font-family: var(--wp--preset--font-family--host-grotesk);
	font-size: 11px;
	font-weight: 500;
	white-space: nowrap;
	letter-spacing: 0.02em;
}

.agronorte-home-jobs__title {
	font-family: var(--wp--preset--font-family--heading, 'Titillium Web', sans-serif);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--wp--preset--color--neutral-900);
	white-space: nowrap;
}

.agronorte-home-jobs__spacer {
	flex: 1;
	min-width: 16px;
	height: 1px;
}

.agronorte-home-jobs__location {
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: var(--wp--preset--font-family--host-grotesk);
	font-size: 13px;
	color: #8c8c8c;
	white-space: nowrap;
	flex-shrink: 0;
}

.agronorte-home-jobs__location svg {
	flex-shrink: 0;
}

/* ─── Responsive ──────────────────────────────────────── */

@media (max-width: 1024px) {
	.agronorte-home-hero__subtitle {
		font-size: 17px;
		line-height: 1.6;
	}

	.agronorte-home-section {
		padding: 100px 40px;
	}

	.agronorte-home-section-header {
		display: flex;
		flex-direction: column;
		gap: 32px;
	}

	.agronorte-home-section-header__content {
		grid-column: auto;
	}

	.agronorte-home-hero__inner {
		padding-left: 40px;
		padding-right: 40px;
	}

	.agronorte-home-hero__bg {
		width: 80%;
	}

	.agronorte-home-hero__watermark {
		font-size: 160px;
		line-height: 140px;
	}

	.agronorte-home-cats {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.agronorte-home-cat {
		height: 400px;
	}

	.agronorte-home-bento__row {
		flex-direction: column;
	}

	.agronorte-home-stats__grid {
		grid-template-columns: 1fr;
	}

	.agronorte-home-news {
		display: flex;
		grid-template-columns: none;
		flex-wrap: nowrap;
		gap: 16px;
		overflow-x: auto;
		overflow-y: visible;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: 40px;
		padding-inline: 40px;
		margin-inline: -40px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.agronorte-home-news::-webkit-scrollbar {
		display: none;
	}

	.agronorte-home-news__card {
		flex: 0 0 280px;
		scroll-snap-align: start;
	}

	.agronorte-home-news__body {
		padding: 20px;
		gap: 12px;
	}

	.agronorte-home-news__title {
		font-size: 18px;
	}

	.agronorte-home-jobs__list {
		max-width: none;
	}

	.agronorte-home-jobs__item {
		flex-wrap: wrap;
		gap: 8px;
	}

	.agronorte-home-jobs__spacer {
		display: none;
	}
}

@media (max-width: 768px) {
	:root {
		--agronorte-home-bento-card-height-mobile: 360px;
	}

	.agronorte-home-hero__subtitle {
		font-size: 16px;
		line-height: 1.55;
	}

	.agronorte-home-section {
		padding: 80px 20px;
	}

	.agronorte-home-hero {
		height: 640px;
		min-height: 0;
	}

	.agronorte-home-hero__inner {
		padding: 40px 20px 32px;
	}

	.agronorte-home-hero__watermark {
		display: none;
	}

	.agronorte-home-hero__bg {
		display: none;
	}

	.agronorte-home-hero__actions {
		flex-direction: column;
	}

	.agronorte-home-hero__actions .agronorte-home-btn {
		justify-content: center;
	}

	/* Sticky-stacked bento cards on mobile.
	   Rows become display:contents so all 4 cards are siblings of bento,
	   enabling sticky offsets that grow per card to peek the badge area.
	   Padding-bottom gives the last card a brief "stick window" so it
	   doesn't release instantly — kept small to avoid a visible empty gap
	   below the section. */
	.agronorte-home-bento {
		padding-bottom: 96px;
	}

	.agronorte-home-bento__row {
		display: contents;
	}

	.agronorte-home-bento__card {
		position: sticky;
		height: var(--agronorte-home-bento-card-height-mobile);
		min-height: var(--agronorte-home-bento-card-height-mobile);
		max-height: var(--agronorte-home-bento-card-height-mobile);
	}

	.agronorte-home-bento__card--posventa {
		top: 16px;
	}

	.agronorte-home-bento__card--tecnologia {
		top: 96px;
	}

	.agronorte-home-bento__card--drones {
		top: 176px;
	}

	.agronorte-home-bento__card--usados {
		top: 256px;
	}

	/* Apply same mobile image-control approach to Posventa. */
	.agronorte-home-bento__card--posventa .agronorte-home-bento__bg {
		top: 0;
		left: 0;
		right: auto;
		bottom: auto;
		width: 118%;
		height: calc(118% + 30px);
		max-width: none;
		object-position: left top !important;
		transform: none;
	}

	/* Ecosistema mobile: shift these backgrounds to the right so subjects
	   don't collide with text blocks. */
	.agronorte-home-bento__card--drones .agronorte-home-bento__bg {
		top: 0;
		left: -20px;
		right: auto;
		bottom: auto;
		width: calc(100% + 20px);
		height: 100%;
		max-width: none;
		object-position: left top !important;
		transform: none;
	}

	.agronorte-home-bento__card--usados .agronorte-home-bento__bg {
		top: 0;
		left: 0;
		right: auto;
		bottom: auto;
		width: 118%;
		height: 118%;
		max-width: none;
		object-position: left top !important;
		transform: none;
	}

	.agronorte-home-stats__grid {
		grid-template-columns: 1fr;
	}

	.agronorte-home-stats {
		padding-top: 8px;
		margin-top: 16px;
	}

	.agronorte-home-stats__item {
		padding: 14px 0;
		gap: 8px;
	}

	.agronorte-home-stats__item h3 {
		font-size: 17px;
		line-height: 1.2;
	}

	.agronorte-home-stats__item p {
		font-size: 14px;
		line-height: 1.5;
	}

	.agronorte-home-section--diferencial .agronorte-home-section__bg-img {
		display: none;
	}

	.agronorte-home-map {
		aspect-ratio: 1 / 1;
	}

	.agronorte-home-section-header__title {
		font-size: clamp(1.75rem, 6vw, 2.5rem);
	}

	.agronorte-home-hero__title--green,
	.agronorte-home-hero__title--yellow {
		font-size: clamp(2.2rem, 8vw, 3.5rem);
	}

	.agronorte-home-news {
		gap: 12px;
		scroll-padding-inline: 20px;
		padding-inline: 20px;
		margin-inline: -20px;
	}

	.agronorte-home-news__card {
		flex: 0 0 78%;
		max-width: 280px;
	}

	.agronorte-home-news__body {
		padding: 18px;
		gap: 10px;
	}

	.agronorte-home-news__title {
		font-size: 17px;
	}

	.agronorte-home-jobs__item {
		padding: 16px 0;
		gap: 12px;
	}

	.agronorte-home-jobs__title {
		font-size: 17px;
		white-space: normal;
	}

	.agronorte-home-jobs__location {
		font-size: 12px;
	}
}

/* ─── Responsive Polish (migrated from temporary layer) ───────────── */

:root {
	--agronorte-section-pad-block: clamp(80px, 9vw, 148px);
	--agronorte-section-pad-inline: clamp(20px, 5.2vw, 75px);
	--agronorte-section-gap: clamp(32px, 4.8vw, 64px);
}

@media (min-width: 768px) {
	:root {
		--agronorte-section-pad-inline: clamp(32px, 4.4vw, 56px);
	}
}

@media (min-width: 1024px) {
	:root {
		--agronorte-section-pad-inline: 75px;
	}
}

.agronorte-home-section {
	padding-block: var(--agronorte-section-pad-block);
	padding-inline: var(--agronorte-section-pad-inline);
}

.agronorte-home-section__inner {
	gap: var(--agronorte-section-gap);
}

.agronorte-home-hero__br-desktop {
	display: none;
}

@media (min-width: 1024px) {
	.agronorte-home-hero__br-desktop {
		display: inline;
	}
}

@media (min-width: 769px) and (max-width: 1300px) {
	.agronorte-home-hero {
		height: clamp(620px, 68vw, 740px);
		margin-top: -92px;
		padding-top: 92px;
	}

	.agronorte-home-hero__inner {
		padding-top: clamp(72px, 9vw, 110px);
		padding-right: var(--agronorte-section-pad-inline);
		padding-left: var(--agronorte-section-pad-inline);
		padding-bottom: clamp(84px, 11vw, 140px);
	}

	.agronorte-home-hero__bg {
		top: clamp(132px, 14vw, 196px);
		right: clamp(-460px, -33vw, -220px);
		width: clamp(72%, 78vw, 86%);
		height: 100%;
		background-size: contain;
		background-position: right 62%;
	}

	.agronorte-home-section--diferencial .agronorte-home-section__bg-img {
		top: clamp(210px, 20vw, 270px);
		left: clamp(-22%, -12vw, -8%);
		width: clamp(70%, 76vw, 82%);
		height: clamp(54%, 62vw, 74%);
		object-position: 72% center;
	}

	.agronorte-home-section--rrhh .agronorte-home-section__bg-img {
		top: clamp(248px, 23vw, 320px);
		left: clamp(-10%, -4vw, 0);
		width: clamp(104%, 112vw, 122%);
		height: clamp(46%, 52vw, 60%);
		background-size: cover;
		background-position: 26% center;
	}
}

@media (min-width: 769px) and (max-width: 1023px) {
	.agronorte-home-hero__subtitle {
		max-width: min(60ch, 62%);
	}
}

@media (min-width: 1024px) and (max-width: 1300px) {
	.agronorte-home-hero__subtitle {
		max-width: min(62ch, 68%);
	}
}

@media (min-width: 1200px) {
	.agronorte-home-section--diferencial .agronorte-home-section__bg-img {
		left: -22%;
		top: auto;
		bottom: -45px;
	}
}

@media (min-width: 1025px) and (max-width: 1199px) {
	.agronorte-home-section--diferencial .agronorte-home-section__bg-img {
		left: -26%;
		top: auto;
		bottom: -45px;
	}
}

@media (min-width: 1025px) {
	.agronorte-home-section--diferencial::after {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(
			to right,
			rgba(245, 245, 245, 0) 58%,
			rgba(245, 245, 245, 0.85) 78%,
			rgba(245, 245, 245, 1) 100%
		);
		pointer-events: none;
		z-index: 1;
	}

	.agronorte-home-section--diferencial .agronorte-home-section__inner {
		position: relative;
		z-index: 2;
	}

	.agronorte-home-section--rrhh .agronorte-home-section__bg-img {
		top: auto;
		bottom: -1px;
		height: 62%;
	}
}

@media (min-width: 1400px) {
	.agronorte-home-section--rrhh .agronorte-home-section__bg-img {
		left: 0%;
		width: 104%;
		background-position: 24% 36%;
	}
}

@media (min-width: 1200px) and (max-width: 1399px) {
	.agronorte-home-section--rrhh .agronorte-home-section__bg-img {
		left: 0%;
		width: 108%;
		background-position: 22% 34%;
	}
}

@media (min-width: 1025px) and (max-width: 1199px) {
	.agronorte-home-section--rrhh .agronorte-home-section__bg-img {
		left: 0%;
		width: 112%;
		background-position: 20% 32%;
		bottom: -1px;
		height: 58%;
	}
}

@media (min-width: 769px) and (max-width: 1024px) {
	.agronorte-home-section--diferencial .agronorte-home-section__bg-img {
		display: none;
	}
}
