/* Oficinas de Empleo – colores del sitio (Propuesta B) */
.oe {
	--oe-celeste: var(--global-palette1, #0B6FA4);
	--oe-marino: #0A3550;
	--oe-texto: #1E2A33;
	--oe-gris: #55626C;
	--oe-claro: #EAF4FA;
	--oe-fondo: #F4F6F8;
	--oe-borde: #DCE3E8;
	color: var(--oe-texto);
}

/* ---------- Buscador ---------- */
.oe-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px;
	padding: 20px;
	background: var(--oe-fondo);
	border-radius: 16px;
}
.oe-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1 1 200px;
	min-width: 0;
}
.oe-field--search { flex: 2 1 280px; }
.oe-field label {
	font-size: 13px;
	font-weight: 700;
	color: var(--oe-marino);
}
.oe-input {
	width: 100%;
	min-height: 46px;
	padding: 0 14px;
	border: 1.5px solid var(--oe-borde);
	border-radius: 10px;
	background: #FFFFFF;
	font: inherit;
	font-size: 15px;
	color: var(--oe-texto);
	box-sizing: border-box;
}
.oe-input:focus {
	outline: none;
	border-color: var(--oe-celeste);
	box-shadow: 0 0 0 3px rgba(11, 111, 164, .2);
}
.oe-status {
	margin: 14px 2px;
	font-size: 14px;
	color: var(--oe-gris);
}

/* ---------- Botones ---------- */
.oe-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 18px;
	border-radius: 10px;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
	box-sizing: border-box;
}
.oe-btn--near,
.oe-btn--fill {
	border: 0;
	background: var(--oe-celeste);
	color: #FFFFFF !important;
}
.oe-btn--near:hover,
.oe-btn--fill:hover {
	background: var(--oe-marino);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(10, 53, 80, .2);
}
.oe-btn--line {
	border: 1.5px solid var(--oe-celeste);
	background: #FFFFFF;
	color: var(--oe-celeste) !important;
}
.oe-btn--line:hover {
	background: var(--oe-claro);
}
.oe-btn[disabled] { opacity: .6; cursor: wait; }
.oe-btn:focus-visible,
.oe-card a:focus-visible {
	outline: 3px solid var(--oe-marino);
	outline-offset: 2px;
}

/* ---------- Mapa ---------- */
.oe-map {
	height: 460px;
	border-radius: 20px;
	overflow: hidden;
	border: 1px solid var(--oe-borde);
	box-shadow: 0 12px 30px rgba(10, 53, 80, .10);
	z-index: 0;
}
.oe-pin-wrap { background: none; border: 0; }
.oe-pin {
	position: absolute;
	left: 3px;
	top: 0;
	width: 28px;
	height: 28px;
	border-radius: 50% 50% 50% 0;
	background: var(--oe-celeste);
	border: 2px solid #FFFFFF;
	transform: rotate(-45deg);
	box-shadow: 0 3px 8px rgba(10, 53, 80, .35);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color .2s ease;
}
.oe-pin__e {
	transform: rotate(45deg);
	color: #FFFFFF;
	font-family: 'Encode Sans', sans-serif;
	font-weight: 800;
	font-size: 16px;
	line-height: 1;
	margin-top: -2px;
}
.leaflet-marker-icon:hover .oe-pin,
.leaflet-marker-icon:focus .oe-pin {
	background: var(--oe-marino);
}
.oe-popup strong {
	display: block;
	font-size: 15px;
	color: var(--oe-marino);
}
.oe-popup p {
	margin: 2px 0 6px !important;
	color: var(--oe-gris);
	font-size: 13px;
}
.oe-popup a {
	font-weight: 700;
	color: var(--oe-celeste);
}

/* ---------- Tarjetas ---------- */
.oe-list {
	list-style: none;
	margin: 28px 0 0 !important;
	padding: 0 !important;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 16px;
}
.oe-card {
	margin: 0 !important;
	padding: 20px;
	border: 1px solid var(--oe-borde);
	border-radius: 16px;
	background: #FFFFFF;
	display: flex;
	flex-direction: column;
	gap: 10px;
	scroll-margin-top: 180px;
	transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}
.oe-card:hover {
	border-color: #9FCBE6;
	box-shadow: 0 10px 24px rgba(10, 53, 80, .10);
}
.oe-card.is-highlight {
	border-color: var(--oe-celeste);
	box-shadow: 0 0 0 3px rgba(11, 111, 164, .25);
}
.oe-card[hidden] { display: none; }
.oe-card__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
}
.oe-card__title {
	margin: 0 !important;
	font-size: 18px !important;
	line-height: 1.3;
	color: var(--oe-marino);
}
.oe-card__title:focus { outline: none; }
.oe-card__dist {
	flex: 0 0 auto;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--oe-claro);
	color: var(--oe-celeste);
	font-size: 12px;
	font-weight: 700;
}
.oe-card__place {
	margin: -4px 0 0 !important;
	font-size: 13px;
	color: var(--oe-gris);
}
.oe-card__data {
	list-style: none;
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 14px;
}
.oe-card__data li {
	margin: 0 !important;
	display: flex;
	align-items: flex-start;
	gap: 8px;
	min-width: 0;
}
.oe-card__data .oe-ico {
	flex: 0 0 16px;
	margin-top: 3px;
	color: var(--oe-celeste);
}
.oe-card__data a {
	color: var(--oe-celeste);
	font-weight: 600;
	word-break: break-word;
	text-decoration: none;
}
.oe-card__data a:hover {
	text-decoration: underline;
}
.oe-card__actions {
	margin-top: auto;
	padding-top: 6px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.oe-card__actions .oe-btn {
	flex: 1 1 140px;
	min-height: 42px;
	padding: 0 12px;
	font-size: 13.5px;
	white-space: nowrap;
}
.oe-empty {
	padding: 24px;
	border-radius: 16px;
	background: var(--oe-fondo);
	color: var(--oe-gris);
	text-align: center;
}

/* ---------- Celular ---------- */
@media (max-width: 767px) {
	.oe-tools { padding: 16px; }
	.oe-btn--near { flex: 1 1 100%; }
	.oe-map {
		height: 320px;
		border-radius: 16px;
	}
	.oe-list {
		grid-template-columns: 1fr;
		gap: 12px;
		margin-top: 20px !important;
	}
	.oe-card { padding: 16px; scroll-margin-top: 110px; }
}

@media (prefers-reduced-motion: reduce) {
	.oe-btn, .oe-card, .oe-pin { transition: none; }
	.oe-btn:hover { transform: none; }
}
