/**
 * Agronorte - Careers / Trabaja con Nosotros Styles
 *
 * Based on Figma designs:
 *  - Listing grid: 189:457
 *  - Listing list:  261:267
 *  - Job detail:    189:734
 *
 * @package Agronorte
 * @since 1.0.0
 */

/* ─── Shared container width ─────────────────────────── */

.agronorte-careers-page,
.agronorte-job-single {
	--careers-container: 1290px;
	--careers-px: var(--agronorte-layout-inline);
	--careers-border: var(--wp--preset--color--neutral-200);
	--careers-muted: #8c8c8c;
	--careers-dark: var(--wp--preset--color--neutral-900);
	--careers-ink: #111;
	--careers-badge-bg: var(--wp--preset--color--primary-light);
	--careers-badge-text: var(--wp--preset--color--primary);
	--careers-soft: #f2faed;
}

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

.agronorte-careers-hero {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--neutral-900);
	padding: 48px var(--careers-px) 44px;
}

.agronorte-careers-hero__inner {
	max-width: var(--careers-container);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.agronorte-careers-hero h1 {
	font-family: var(--wp--preset--font-family--titillium);
	font-size: clamp(2.5rem, 6vw, 5rem);
	font-weight: 600;
	line-height: 1.15;
	margin: 0;
	color: var(--wp--preset--color--neutral-900);
}

.agronorte-careers-hero__tagline {
	font-family: var(--wp--preset--font-family--host-grotesk);
	font-size: 20px;
	line-height: 1.7;
	color: var(--wp--preset--color--neutral-700);
	margin: 0;
	max-width: 600px;
}

/* ─── Listings Section ───────────────────────────────── */

.agronorte-careers-listings {
	background: var(--wp--preset--color--white);
	padding: 60px var(--careers-px);
}

.agronorte-careers-listings__inner {
	max-width: var(--careers-container);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.agronorte-careers-listings__title {
	font-family: var(--wp--preset--font-family--titillium);
	font-size: 36px;
	font-weight: 600;
	color: var(--careers-dark);
	margin: 0;
}

/* Toolbar */
.agronorte-careers-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: nowrap;
}

.agronorte-careers-filters {
	display: flex;
	min-width: 0;
}

/* Dropdown auto-sizes to its label/selected option text. */
.agronorte-careers-filters .agronorte-select {
	min-width: 0;
}

/* View Toggle (grid/list) */
.agronorte-careers-view-toggle {
	display: inline-flex;
	gap: 4px;
	background: #1d1d1b;
	padding: 4px;
	border-radius: 10px;
	flex-shrink: 0;
}

/* .agronorte-view-btn styles are in global.css */

/* ─── Job Cards Grid (default view) ──────────────────── */

.agronorte-careers-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px 24px;
	align-items: stretch;
}

.agronorte-job-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px 20px 20px;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--careers-border);
	border-radius: var(--wp--custom--border-radius--small);
	text-decoration: none;
	transition: border-color var(--wp--custom--transition--fast),
	            box-shadow var(--wp--custom--transition--fast),
	            transform var(--wp--custom--transition--fast);
}

.agronorte-job-card[hidden] {
	display: none;
}

.agronorte-job-card:hover {
	border-color: var(--wp--preset--color--neutral-300);
	box-shadow: none;
}

.agronorte-job-card__badge {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	padding: 6px 12px;
	background: var(--careers-badge-bg);
	color: var(--careers-badge-text);
	border-radius: var(--wp--custom--border-radius--large);
	font-family: var(--wp--preset--font-family--host-grotesk);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.22px;
	white-space: nowrap;
}

.agronorte-job-card__title {
	font-family: var(--wp--preset--font-family--titillium);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--careers-dark);
	margin: 0;
}

.agronorte-job-card__location {
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: var(--wp--preset--font-family--host-grotesk);
	font-size: 13px;
	color: var(--careers-muted);
	margin-top: auto;
}

.agronorte-job-card__location svg {
	flex-shrink: 0;
}

/* ─── Job Cards List View ────────────────────────────── */

.agronorte-careers-grid.is-list-view {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.agronorte-careers-grid.is-list-view .agronorte-job-card {
	flex-direction: row;
	align-items: center;
	gap: 24px;
	padding: 24px 0;
	border: none;
	border-bottom: 1px solid #ededed;
	border-radius: 0;
	background: transparent;
}

.agronorte-careers-grid.is-list-view .agronorte-job-card:last-child {
	border-bottom: none;
}

.agronorte-careers-grid.is-list-view .agronorte-job-card:hover {
	background: linear-gradient(90deg, transparent 0%, rgba(245, 245, 245, 0.5) 25%, rgba(245, 245, 245, 0.5) 75%, transparent 100%);
	border-color: #ededed;
	transform: none;
	box-shadow: none;
}

.agronorte-careers-grid.is-list-view .agronorte-job-card {
	background: linear-gradient(90deg, transparent 0%, rgba(245, 245, 245, 0) 25%, rgba(245, 245, 245, 0) 75%, transparent 100%);
	transition: background var(--wp--custom--transition--slow);
}

.agronorte-careers-grid.is-list-view .agronorte-job-card__badges {
	width: 140px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
}

.agronorte-careers-grid.is-list-view .agronorte-job-card__badge {
	flex: 0 0 auto;
}

.agronorte-careers-grid.is-list-view .agronorte-job-card__title {
	flex: 0 1 auto;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.agronorte-careers-grid.is-list-view .agronorte-job-card__location {
	margin-left: auto;
	margin-top: 0;
	flex-shrink: 0;
}

/* Override mobile to stack */
@media (max-width: 768px) {
	.agronorte-careers-grid.is-list-view .agronorte-job-card__badges {
		width: auto;
	}
}

/* ─── Spontaneous CV Box ─────────────────────────────── */

.agronorte-careers-spontaneous {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--neutral-200);
	border-radius: var(--wp--custom--border-radius--small);
	padding: 60px 24px;
	text-align: center;
}

.agronorte-careers-spontaneous p {
	font-family: var(--wp--preset--font-family--host-grotesk);
	font-size: 15px;
	color: #595959;
	margin: 0;
}

.agronorte-careers-spontaneous .agronorte-email-obf,
.agronorte-careers-empty .agronorte-email-obf {
	color: var(--wp--preset--color--primary);
}

.agronorte-careers-spontaneous .agronorte-email-obf:hover,
.agronorte-careers-empty .agronorte-email-obf:hover {
	color: var(--wp--preset--color--primary-dark, #2D6830);
}

.agronorte-careers-spontaneous a:hover {
	text-decoration: underline;
}

.agronorte-careers-empty {
	padding: 48px 24px;
	text-align: center;
	color: var(--wp--preset--color--neutral-500);
}

.agronorte-careers-empty p {
	font-family: var(--wp--preset--font-family--host-grotesk);
	font-size: 15px;
	margin: 0 0 8px;
}

.agronorte-careers-empty__sub {
	color: var(--wp--preset--color--neutral-400);
	font-size: 13px !important;
}

.agronorte-careers-empty a {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

/* ─── Mission Callout ────────────────────────────────── */

.agronorte-careers-callout {
	padding: 0 75px 48px;
}

.agronorte-careers-callout__inner {
	max-width: var(--careers-container);
	margin: 0 auto;
	background: var(--careers-dark);
	border-radius: var(--wp--custom--border-radius--large);
	padding: 80px;
	min-height: 600px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 40px;
	position: relative;
	overflow: hidden;
}

.agronorte-careers-callout__bg {
	position: absolute;
	top: 0;
	right: 0;
	width: auto;
	height: 100%;
	object-fit: cover;
	object-position: center;
	z-index: 0;
	mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
	-webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
}

.agronorte-careers-callout__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 40px;
	max-width: 550px;
}

.agronorte-careers-callout__title {
	font-family: var(--wp--preset--font-family--titillium);
	font-size: 40px;
	font-weight: 400;
	line-height: 1.3;
	color: var(--wp--preset--color--white);
	margin: 0;
	max-width: 600px;
}

.agronorte-careers-callout__subtitle {
	font-family: var(--wp--preset--font-family--titillium);
	font-size: 28px;
	font-weight: 400;
	line-height: 1.3;
	color: var(--wp--preset--color--neutral-400);
	margin: 0;
	max-width: 600px;
}

/* ─── Benefits Section (3 columns with accent lines) ── */

.agronorte-careers-benefits {
	background: var(--wp--preset--color--white);
	padding: 80px var(--careers-px) 120px;
}

.agronorte-careers-benefits__inner {
	max-width: var(--careers-container);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.agronorte-careers-benefits__title {
	font-family: var(--wp--preset--font-family--titillium);
	font-size: 32px;
	font-weight: 600;
	color: var(--careers-dark);
	margin: 0;
}

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

.agronorte-benefits-col {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.agronorte-benefits-col__title {
	font-family: var(--wp--preset--font-family--heading, 'Titillium Web', sans-serif);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--careers-dark);
	margin: 0;
}

.agronorte-benefits-col__accent {
	width: 40px;
	height: 3px;
	border-radius: 2px;
	background: var(--wp--preset--color--primary);
}

.agronorte-benefits-col__list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.agronorte-benefits-col__item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.agronorte-benefits-col__item strong {
	font-family: var(--wp--preset--font-family--host-grotesk);
	font-size: 14px;
	font-weight: 600;
	color: var(--wp--preset--color--primary);
}

.agronorte-benefits-col__item span {
	font-family: var(--wp--preset--font-family--host-grotesk);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--wp--preset--color--neutral-500);
}

/* ─── Single Job Page ────────────────────────────────── */

.agronorte-job-single {
	background: var(--wp--preset--color--white);
}

.agronorte-job-single__outer {
	padding: 48px 80px 80px;
}

.agronorte-job-single__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--wp--preset--font-family--host-grotesk);
	font-size: 14px;
	font-weight: 600;
	color: var(--wp--preset--color--neutral-500);
	text-decoration: none;
	margin-bottom: 24px;
}

.agronorte-job-single__back:hover {
	color: var(--wp--preset--color--primary);
}

/* Two-column layout: content + 420px form */
.agronorte-job-single__layout {
	display: grid;
	grid-template-columns: 1fr 420px;
	gap: 48px;
	align-items: start;
}

/* Left column: content */
.agronorte-job-single__main {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.agronorte-job-single__header {
	display: flex;
	flex-direction: column;
	gap: 32px;
	margin: 0;
	padding: 0;
	border: none;
}

.agronorte-job-single__meta {
	display: none;
}

.agronorte-job-single__title-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.agronorte-job-single__title {
	font-family: var(--wp--preset--font-family--titillium);
	font-size: clamp(2rem, 5vw, 60px);
	font-weight: 600;
	line-height: 1.15;
	color: var(--careers-ink);
	margin: 0;
}

.agronorte-job-single__share {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
	margin-top: 8px;
}

.agronorte-share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid var(--wp--preset--color--neutral-200);
	border-radius: 8px;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--neutral-500);
	cursor: pointer;
	transition: all var(--wp--custom--transition--fast);
	text-decoration: none;
	padding: 0;
	font-size: 0;
}

.agronorte-share-btn:hover {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
	background: var(--careers-badge-bg);
}

.agronorte-share-btn.is-copied {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
	background: var(--wp--preset--color--primary);
}

/* Dept + Location as label:value pairs */
.agronorte-job-single__info {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.agronorte-job-single__info-row {
	display: flex;
	gap: 6px;
	font-family: var(--wp--preset--font-family--host-grotesk);
	font-size: 18px;
}

.agronorte-job-single__info-row strong {
	color: var(--careers-dark);
	font-weight: 600;
}

.agronorte-job-single__info-row span {
	color: var(--wp--preset--color--neutral-500);
	font-weight: 400;
}

/* Hide legacy location block from old layout */
.agronorte-job-single__location {
	display: none;
}

/* Content sections (description, responsabilidades, requisitos) */
.agronorte-job-single__content {
	font-family: var(--wp--preset--font-family--host-grotesk);
	font-size: 16px;
	color: var(--wp--preset--color--neutral-700);
	line-height: 1.75;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.agronorte-job-single__content h2,
.agronorte-job-single__content h3 {
	font-family: var(--wp--preset--font-family--titillium);
	font-size: 22px;
	font-weight: 600;
	color: #111;
	margin: 0;
}

.agronorte-job-single__content p {
	margin: 0;
	color: var(--wp--preset--color--neutral-700);
}

.agronorte-job-single__content ul,
.agronorte-job-single__content ol {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.agronorte-job-single__content li {
	position: relative;
	padding-left: 24px;
	line-height: 28px;
	color: var(--wp--preset--color--neutral-700);
}

.agronorte-job-single__content li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 12px;
	width: 8px;
	height: 4px;
	background: var(--wp--preset--color--primary);
	border-radius: 1px;
}

/* Each section block: heading + content grouped with internal gap */
.agronorte-job-single__content > div,
.agronorte-job-single__content > section {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* ¿Por qué Agronorte? perks section */
.agronorte-job-single__perks {
	margin: 0;
	padding: 16px 0 0;
	background: transparent;
	border-radius: 0;
	display: flex;
	flex-direction: column;
	gap: 36px;
}

.agronorte-job-single__perks-label {
	display: flex;
	align-items: center;
	gap: 12px;
}

.agronorte-job-single__perks-label::before {
	content: '';
	width: 2px;
	height: 20px;
	background: var(--wp--preset--color--primary);
	display: block;
}

.agronorte-job-single__perks h3,
.agronorte-job-single__perks-text {
	font-family: var(--wp--preset--font-family--host-grotesk);
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: var(--wp--preset--color--neutral-400);
	margin: 0;
}

.agronorte-job-single__perks-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px 32px;
}

.agronorte-perk {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.agronorte-perk::before {
	content: '';
	flex-shrink: 0;
	width: 2px;
	height: 24px;
	background: var(--wp--preset--color--primary);
	border-radius: 1px;
	margin-top: 2px;
}

.agronorte-perk svg {
	display: none;
}

.agronorte-perk > div {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.agronorte-perk strong {
	font-family: var(--wp--preset--font-family--host-grotesk);
	font-size: 15px;
	font-weight: 600;
	color: var(--careers-dark);
}

.agronorte-perk span {
	font-family: var(--wp--preset--font-family--host-grotesk);
	font-size: 13px;
	color: var(--careers-muted);
}

.agronorte-job-single__perks-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--wp--preset--font-family--host-grotesk);
	font-size: 14px;
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.agronorte-job-single__perks-link:hover {
	color: var(--wp--preset--color--primary);
}

/* ─── Benefits (detail page) ─────────────────────────── */

.agronorte-job-single__benefits {
	padding: 16px 0 0;
}

.agronorte-job-single__benefits-title {
	font-family: var(--wp--preset--font-family--heading, 'Titillium Web', sans-serif);
	font-size: 28px;
	font-weight: 600;
	color: #111;
	margin: 0 0 32px;
}

.agronorte-job-single__benefits-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px 48px;
}

.agronorte-job-single__benefits-col {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.agronorte-job-single__benefits-separator {
	width: 48px;
	height: 3px;
	background: var(--wp--preset--color--primary);
	border-radius: 2px;
	margin-bottom: 4px;
}

.agronorte-job-benefit {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.agronorte-job-benefit strong {
	font-family: var(--wp--preset--font-family--host-grotesk);
	font-size: 15px;
	font-weight: 600;
	color: var(--wp--preset--color--primary);
}

.agronorte-job-benefit span {
	font-family: var(--wp--preset--font-family--host-grotesk);
	font-size: 14px;
	color: var(--wp--preset--color--neutral-500);
}

.agronorte-job-single__benefits-btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: 36px;
	padding: 14px 28px;
	border: 1px solid var(--wp--preset--color--neutral-200);
	border-radius: var(--wp--custom--border-radius--small);
	font-family: var(--wp--preset--font-family--host-grotesk);
	font-size: 14px;
	font-weight: 600;
	color: var(--wp--preset--color--neutral-900);
	text-decoration: none;
	transition: border-color 0.2s ease;
}

.agronorte-job-single__benefits-btn:hover {
	border-color: #bbb;
}

.agronorte-job-single__benefits-btn span {
	font-size: 16px;
}

@media (max-width: 768px) {
	.agronorte-job-single__benefits-grid {
		grid-template-columns: 1fr;
	}
}

/* Right column: sticky dark form */
.agronorte-job-single__sidebar {
	position: sticky;
	top: 100px;
	width: 420px;
}

/* Mobile-only drawer trigger / overlay / close — hidden on desktop */
.agronorte-job-mobile-cta,
.agronorte-job-drawer-overlay,
.agronorte-job-drawer-close {
	display: none;
}

.agronorte-job-single__form-wrapper {
	background: #1f1f1f;
	border: 1px solid var(--wp--preset--color--neutral-200);
	border-radius: var(--wp--custom--border-radius--large);
	padding: 32px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.agronorte-job-single__form-title {
	font-family: var(--wp--preset--font-family--titillium);
	font-size: 22px;
	font-weight: 600;
	color: var(--wp--preset--color--white);
	margin: 0;
	text-align: left;
}

/* Kill nested .agronorte-form white wrapper inside dark sidebar */
.agronorte-job-single__form-wrapper .agronorte-form {
	background: transparent !important;
	box-shadow: none !important;
	padding: 0 !important;
	border-radius: 0 !important;
}

/* Force all form-row-half to stack vertically inside the narrow sidebar */
.agronorte-job-single__form-wrapper .agronorte-form .form-row-half {
	grid-template-columns: 1fr !important;
}

.agronorte-job-single__form-wrapper .agronorte-form .form-row {
	margin-bottom: 16px;
}

/* Dark form labels */
.agronorte-job-single__form-wrapper .agronorte-form label {
	font-family: var(--wp--preset--font-family--host-grotesk);
	font-size: 12px !important;
	font-weight: 600 !important;
	color: #b3b3b3 !important;
	display: block;
	margin-bottom: 6px;
	text-transform: none;
}

/* Dark form inputs, textareas, selects — high specificity to beat forms.css */
.agronorte-job-single__form-wrapper .agronorte-form .agronorte-input,
.agronorte-job-single__form-wrapper .agronorte-form .agronorte-textarea,
.agronorte-job-single__form-wrapper .agronorte-form .agronorte-select-input,
.agronorte-job-single__form-wrapper .agronorte-form select,
.agronorte-job-single__form-wrapper .agronorte-form input[type="text"],
.agronorte-job-single__form-wrapper .agronorte-form input[type="email"],
.agronorte-job-single__form-wrapper .agronorte-form input[type="tel"],
.agronorte-job-single__form-wrapper .agronorte-form .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-checkbox):not(.wpcf7-file) {
	width: 100% !important;
	padding: 12px 14px !important;
	background: #2e2e2e !important;
	border: 1px solid #4d4d4d !important;
	border-radius: var(--wp--custom--border-radius--small) !important;
	font-family: var(--wp--preset--font-family--host-grotesk) !important;
	font-size: 14px !important;
	color: var(--wp--preset--color--white) !important;
	box-shadow: none !important;
	transition: border-color var(--wp--custom--transition--fast) !important;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

/* Select arrow on dark bg */
.agronorte-job-single__form-wrapper .agronorte-form select,
.agronorte-job-single__form-wrapper .agronorte-form .agronorte-select-input {
	background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23737373' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 14px center !important;
	padding-right: 36px !important;
}

.agronorte-job-single__form-wrapper .agronorte-form input::placeholder,
.agronorte-job-single__form-wrapper .agronorte-form textarea::placeholder {
	color: var(--wp--preset--color--neutral-500) !important;
}

.agronorte-job-single__form-wrapper .agronorte-form .agronorte-input:focus,
.agronorte-job-single__form-wrapper .agronorte-form .agronorte-textarea:focus,
.agronorte-job-single__form-wrapper .agronorte-form .agronorte-select-input:focus,
.agronorte-job-single__form-wrapper .agronorte-form select:focus,
.agronorte-job-single__form-wrapper .agronorte-form input:focus,
.agronorte-job-single__form-wrapper .agronorte-form .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-checkbox):not(.wpcf7-file):focus {
	outline: none !important;
	border-color: rgba(255, 255, 255, 0.4) !important;
	box-shadow: none !important;
}

/* Dark custom select dropdowns (ubicaciones + provincia) */
.agronorte-job-single__form-wrapper .agronorte-select__trigger {
	background: #2e2e2e !important;
	border-color: #4d4d4d !important;
	color: var(--wp--preset--color--white);
}

.agronorte-job-single__form-wrapper .agronorte-select__trigger:hover {
	border-color: #666 !important;
}

.agronorte-job-single__form-wrapper .agronorte-select.is-open .agronorte-select__trigger,
.agronorte-job-single__form-wrapper .agronorte-select__trigger:focus,
.agronorte-job-single__form-wrapper .agronorte-select__trigger:focus-visible {
	border-color: rgba(255, 255, 255, 0.4) !important;
	outline: none;
	box-shadow: none;
}

.agronorte-job-single__form-wrapper .agronorte-select__label {
	color: #666;
	font-weight: 400;
}

.agronorte-job-single__form-wrapper .agronorte-select.has-value .agronorte-select__label {
	color: var(--wp--preset--color--white);
}

.agronorte-job-single__form-wrapper .agronorte-select__arrow {
	color: #666;
}

.agronorte-job-single__form-wrapper .agronorte-select__dropdown {
	background: var(--wp--preset--color--neutral-800);
	border-color: #4d4d4d;
}

.agronorte-job-single__form-wrapper .agronorte-select__search {
	border-bottom-color: #4d4d4d;
}

.agronorte-job-single__form-wrapper .agronorte-select__search-input {
	color: var(--wp--preset--color--white);
}

.agronorte-job-single__form-wrapper .agronorte-select__search-input::placeholder {
	color: #666;
}

.agronorte-job-single__form-wrapper .agronorte-select__search-icon {
	color: #666;
}

.agronorte-job-single__form-wrapper .agronorte-select__option {
	color: var(--wp--preset--color--neutral-400);
}

.agronorte-job-single__form-wrapper .agronorte-select__option:hover,
.agronorte-job-single__form-wrapper .agronorte-select__option:focus {
	background: #333;
	color: var(--wp--preset--color--white);
}

.agronorte-job-single__form-wrapper .agronorte-select__option.is-selected {
	background: #333;
	color: var(--wp--preset--color--white);
}

.agronorte-job-single__form-wrapper .agronorte-select__no-results {
	color: #666;
}

/* Yellow pill submit button */
.agronorte-job-single__form-wrapper .agronorte-form .wpcf7-submit,
.agronorte-job-single__form-wrapper .agronorte-form input[type="submit"],
.agronorte-job-single__form-wrapper .agronorte-form button[type="submit"] {
	width: 100% !important;
	padding: 16px 24px !important;
	background: var(--wp--preset--color--secondary) !important;
	color: var(--careers-dark) !important;
	border: none !important;
	border-radius: var(--wp--custom--border-radius--small) !important;
	font-family: var(--wp--preset--font-family--host-grotesk) !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	cursor: pointer;
	transition: filter var(--wp--custom--transition--fast) !important;
	box-shadow: none !important;
	margin-top: 8px;
}

.agronorte-job-single__form-wrapper .agronorte-form .wpcf7-submit:hover,
.agronorte-job-single__form-wrapper .agronorte-form input[type="submit"]:hover,
.agronorte-job-single__form-wrapper .agronorte-form button[type="submit"]:hover {
	filter: brightness(1.05);
}

/* File dropzone dark variant */
.agronorte-job-single__form-wrapper .agronorte-file-dropzone {
	background: #2e2e2e;
	border: 1px dashed #4d4d4d;
	border-radius: var(--wp--custom--border-radius--small);
	padding: 20px 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.agronorte-job-single__form-wrapper .agronorte-file-dropzone__text {
	font-family: var(--wp--preset--font-family--host-grotesk);
	font-size: 14px;
	font-weight: 600;
	color: #b3b3b3;
}

.agronorte-job-single__form-wrapper .agronorte-file-dropzone__or {
	font-family: var(--wp--preset--font-family--host-grotesk);
	font-size: 12px;
	color: var(--wp--preset--color--neutral-500);
}

.agronorte-job-single__form-wrapper .agronorte-file-btn {
	background: transparent;
	border: 1px solid #666;
	color: #b3b3b3;
	padding: 10px 18px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.agronorte-job-single__form-wrapper .agronorte-file-btn:hover {
	border-color: #999;
	color: #ccc;
}

.agronorte-job-single__form-wrapper .agronorte-file-btn:focus,
.agronorte-job-single__form-wrapper .agronorte-file-btn:focus-visible {
	outline: none !important;
	box-shadow: none !important;
	border-color: #666 !important;
}

.agronorte-job-single__form-wrapper .agronorte-file-dropzone:focus-within,
.agronorte-job-single__form-wrapper .agronorte-file-dropzone *:focus,
.agronorte-job-single__form-wrapper .agronorte-file-dropzone *:focus-visible,
.agronorte-job-single__form-wrapper .agronorte-form .form-cv-custom *:focus,
.agronorte-job-single__form-wrapper .agronorte-form .form-cv-custom *:focus-visible {
	outline: none !important;
	box-shadow: none !important;
}

.agronorte-job-single__form-wrapper .agronorte-file-dropzone {
	padding: 16px 24px !important;
	gap: 6px !important;
}

.agronorte-job-single__form-wrapper .agronorte-form textarea.wpcf7-form-control {
	min-height: 80px !important;
	height: 80px;
}

.agronorte-job-single__form-wrapper .agronorte-file-dropzone__icon svg {
	color: var(--wp--preset--color--neutral-500);
}

.agronorte-job-single__form-wrapper .agronorte-file-name {
	font-family: var(--wp--preset--font-family--host-grotesk);
	font-size: 12px;
	color: var(--wp--preset--color--neutral-400);
	word-break: break-all;
}

/* Dark theme overrides for CF7 response message — careers sidebar.
   Layout (flex+icon) inherits from forms.css; we only swap colors here. */
.agronorte-job-single__form-wrapper .wpcf7 form .wpcf7-response-output {
	background: rgba(255, 255, 255, 0.05);
	color: rgba(255, 255, 255, 0.85);
}

.agronorte-job-single__form-wrapper .wpcf7 form.sent .wpcf7-response-output,
.agronorte-job-single__form-wrapper .wpcf7 form .wpcf7-mail-sent-ok {
	background: rgba(54, 124, 43, 0.22);
	color: #c8efbb;
}

.agronorte-job-single__form-wrapper .wpcf7 form.failed .wpcf7-response-output,
.agronorte-job-single__form-wrapper .wpcf7 form.aborted .wpcf7-response-output,
.agronorte-job-single__form-wrapper .wpcf7 form .wpcf7-mail-sent-ng,
.agronorte-job-single__form-wrapper .wpcf7 form .wpcf7-aborted {
	background: rgba(255, 107, 107, 0.14);
	color: #ff8c8c;
}

.agronorte-job-single__form-wrapper .wpcf7 form.invalid .wpcf7-response-output,
.agronorte-job-single__form-wrapper .wpcf7 form.unaccepted .wpcf7-response-output,
.agronorte-job-single__form-wrapper .wpcf7 form .wpcf7-validation-errors,
.agronorte-job-single__form-wrapper .wpcf7 form .wpcf7-spam-blocked {
	background: rgba(255, 184, 92, 0.12);
	color: #ffc987;
}

/* ─── Related Careers ─────────────────────────────────── */

.agronorte-job-single__related {
	margin-top: 0;
	padding: 80px 0;
	border: none;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.agronorte-job-single__related > h3 {
	font-family: var(--wp--preset--font-family--titillium);
	font-size: 28px;
	font-weight: 600;
	color: var(--careers-ink);
	margin: 0;
}

.agronorte-job-single__related-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.agronorte-related-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 36px 24px;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--careers-border);
	border-radius: var(--wp--custom--border-radius--small);
	text-decoration: none;
	transition: border-color var(--wp--custom--transition--fast), box-shadow var(--wp--custom--transition--fast);
}

.agronorte-related-card:hover {
	border-color: var(--wp--preset--color--neutral-300);
	box-shadow: none;
}

.agronorte-related-card__badges {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.agronorte-related-card strong {
	font-family: var(--wp--preset--font-family--titillium);
	font-size: 20px;
	font-weight: 600;
	color: var(--careers-dark);
	line-height: 1.2;
}

.agronorte-related-card__location {
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: var(--wp--preset--font-family--host-grotesk);
	font-size: 13px;
	color: var(--careers-muted);
}

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

@media (max-width: 1200px) {
	.agronorte-careers-hero__tagline {
		font-size: 18px;
		line-height: 1.65;
	}

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

	.agronorte-job-single__layout {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.agronorte-job-single__sidebar {
		position: static;
		width: 100%;
	}

	.agronorte-job-single__mobile-cta {
		display: block;
	}
}

@media (max-width: 960px) {
	.agronorte-benefits-columns {
		grid-template-columns: 1fr;
		gap: 48px;
	}

	.agronorte-careers-callout__bg {
		width: 100%;
		left: 0;
		opacity: 0.3;
	}

	.agronorte-careers-callout__content {
		margin-left: 0;
		max-width: none;
	}

	.agronorte-job-single__perks-grid {
		grid-template-columns: 1fr;
	}

	.agronorte-job-single__related-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.agronorte-careers-hero__tagline {
		font-size: 16px;
		line-height: 1.55;
	}

	.agronorte-careers-hero {
		padding: 40px var(--agronorte-layout-inline) 36px;
	}

	.agronorte-careers-hero h1 {
		font-size: clamp(2rem, 8vw, 3rem);
	}

	.agronorte-careers-listings {
		padding: 40px var(--agronorte-layout-inline);
	}

	.agronorte-careers-listings__title {
		font-size: 28px;
	}

	/* Match the equipos catalog rhythm on mobile: 2 cols, tighter gap. */
	.agronorte-careers-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	/* Toolbar stays in one row on mobile: dropdown auto-sized + toggle right. */
	.agronorte-careers-toolbar {
		flex-direction: row;
		align-items: center;
	}

	.agronorte-careers-filters .agronorte-select {
		min-width: 0;
	}

	.agronorte-careers-callout {
		padding: 0 var(--agronorte-layout-inline) 48px;
	}

	.agronorte-careers-callout__inner {
		padding: 40px 24px;
		min-height: auto;
	}

	.agronorte-careers-callout__title {
		font-size: 28px;
	}

	.agronorte-careers-callout__subtitle {
		font-size: 18px;
	}

	.agronorte-careers-benefits {
		padding: 40px var(--agronorte-layout-inline);
	}

	/* Benefits → horizontal scroll on mobile (one column visible at a time). */
	.agronorte-benefits-columns {
		display: flex;
		grid-template-columns: none;
		flex-direction: row;
		flex-wrap: nowrap;
		gap: 16px;
		overflow-x: auto;
		overflow-y: visible;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: 20px;
		padding-inline: 20px;
		margin-inline: -20px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.agronorte-benefits-columns::-webkit-scrollbar {
		display: none;
	}

	.agronorte-benefits-col {
		flex: 0 0 280px;
		scroll-snap-align: start;
	}

	.agronorte-benefit-group {
		padding: 24px;
	}

	.agronorte-benefit-group__title {
		font-size: 24px;
		line-height: 28px;
	}

	.agronorte-job-single__outer {
		padding: 32px var(--agronorte-layout-inline) 24px;
	}

	.agronorte-job-single__title {
		font-size: 32px;
	}

	/* Single-column layout — kill the desktop 1fr 420px grid */
	.agronorte-job-single__layout {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	/* Tighten spacing around related list on mobile */
	.agronorte-job-single__related {
		padding: 40px 0 0;
	}

	/* Related opportunities — horizontal scroll on mobile */
	.agronorte-job-single__related-grid {
		display: flex;
		grid-template-columns: none;
		overflow-x: auto;
		gap: 12px;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		-ms-overflow-style: none;
	}

	.agronorte-job-single__related-grid::-webkit-scrollbar {
		display: none;
	}

	.agronorte-job-single__related-grid > * {
		flex: 0 0 280px;
		scroll-snap-align: start;
	}

	/* Sidebar becomes a slide-in drawer on mobile (reuses .agronorte-quote-panel pattern) */
	.agronorte-job-single__sidebar {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		left: auto;
		width: 480px;
		max-width: 100vw;
		transform: translateX(100%);
		transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
		z-index: 9999;
		overflow-y: auto;
		background: #1f1f1f;
	}

	.agronorte-job-single__sidebar.is-open {
		transform: translateX(0);
	}

	.agronorte-job-single__form-wrapper {
		padding: 64px 24px 24px;
		border-radius: 0;
		border: 0;
		box-shadow: none;
	}

	/* Close button inside drawer — top right */
	.agronorte-job-drawer-close {
		display: flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		top: 16px;
		right: 16px;
		width: 36px;
		height: 36px;
		padding: 0;
		background: transparent;
		border: 0;
		color: var(--wp--preset--color--white);
		cursor: pointer;
		z-index: 1;
	}

	/* Sticky bottom CTA bar — releases when reaching the footer */
	.agronorte-job-mobile-cta {
		display: block;
		position: sticky;
		bottom: 0;
		left: 0;
		right: 0;
		padding: 12px 16px;
		z-index: 100;
	}

	/* John (chat float) starts off-screen below the viewport on mobile
	   job-detail and slides up from below when the user reaches the
	   footer. Translation (instead of opacity) keeps the widget in its
	   natural layout position so its own auto-collapse logic still
	   fires before reveal. */
	body.single-oportunidad .agronorte-john-float {
		transform: translateY(150%);
		transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	}

	body.single-oportunidad.is-near-footer .agronorte-john-float {
		transform: translateY(0);
	}


	.agronorte-job-mobile-cta button {
		width: 100%;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		padding: 14px 20px;
		font-family: var(--wp--preset--font-family--host-grotesk);
		font-size: 15px;
		font-weight: 600;
		color: var(--wp--preset--color--white);
		background: var(--wp--preset--color--neutral-900);
		border: 0;
		border-radius: var(--wp--custom--border-radius--small);
		cursor: pointer;
	}

	/* Drawer overlay */
	.agronorte-job-drawer-overlay {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, 0.5);
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.3s;
		z-index: 9998;
	}

	.agronorte-job-drawer-overlay.is-open {
		opacity: 1;
		pointer-events: auto;
	}

	/* List view collapses to stacked on mobile */
	.agronorte-careers-grid.is-list-view .agronorte-job-card {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
		padding: 14px 0;
	}

	.agronorte-careers-grid.is-list-view .agronorte-job-card__badge {
		flex: 0 0 auto;
	}

	.agronorte-careers-grid.is-list-view .agronorte-job-card__title {
		white-space: normal;
		font-size: 17px;
	}

	.agronorte-careers-grid.is-list-view .agronorte-job-card__location {
		margin-left: 0;
		font-size: 12px;
	}

}

@media (max-width: 576px) {
	.agronorte-job-single__form-wrapper {
		padding: 16px;
	}
}


/* ─── Intermediate viewport refinements (tablet/laptop) ──── */

@media (max-width: 1024px) {
	/* Job listing grid 3 → 2 cols on tablet */
	.agronorte-careers-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Callout: tighter padding, no min-height lock on tablet */
	.agronorte-careers-callout__inner {
		padding: 48px;
		min-height: auto;
	}

	/* Benefits 3 → 2 cols */
	.agronorte-benefits-columns {
		grid-template-columns: repeat(2, 1fr);
	}

}

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

:root {
	--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-careers-page {
	--careers-px: var(--agronorte-section-pad-inline);
}

.agronorte-careers-listings__inner,
.agronorte-careers-benefits__inner {
	gap: var(--agronorte-section-gap);
}

.agronorte-careers-hero,
.agronorte-careers-listings,
.agronorte-careers-benefits,
.agronorte-job-single__outer,
.agronorte-careers-callout {
	padding-left: var(--agronorte-section-pad-inline);
	padding-right: var(--agronorte-section-pad-inline);
}
