:root {
	--iv-navy: #0b2c5f;
	--iv-red: #e31c23;
	--iv-text: #4a5a6a;
	--iv-muted: #5a6b7d;
	--iv-bg: #f5f7fa;
	--iv-white: #ffffff;
	--iv-border: #e6ebf0;
	--iv-radius: 12px;
	--iv-shadow: 0 4px 18px rgba(11, 44, 95, 0.08);
}

.iv-vacantes {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 24px 16px;
	box-sizing: border-box;
	font-family: inherit;
	color: var(--iv-navy);
}

.iv-vacantes *,
.iv-vacantes *::before,
.iv-vacantes *::after {
	box-sizing: border-box;
}

.iv-vacantes.is-loading {
	opacity: 0.55;
	pointer-events: none;
}

.iv-vacantes__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 28px;
}

.iv-vacantes__intro {
	flex: 1;
	min-width: 0;
}

.iv-vacantes__title {
	margin: 0 0 8px;
	font-size: clamp(1.75rem, 2.5vw, 2.25rem);
	font-weight: 700;
	line-height: 1.2;
	color: var(--iv-navy);
}

.iv-vacantes__subtitle {
	margin: 0;
	max-width: 36rem;
	font-size: 1rem;
	line-height: 1.5;
	font-weight: 400;
	color: var(--iv-muted);
}

.iv-vacantes__actions {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-shrink: 0;
	padding-top: 6px;
}

.iv-vacantes__filter-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--iv-navy);
	font: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
}

.iv-vacantes__filter-btn:hover,
.iv-vacantes__filter-btn[aria-expanded="true"] {
	color: var(--iv-red);
}

.iv-vacantes__ver-todas {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 8px 22px;
	border: 2px solid var(--iv-navy);
	border-radius: 6px;
	color: var(--iv-navy);
	background: transparent;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.iv-vacantes__ver-todas:hover {
	background: var(--iv-navy);
	color: var(--iv-white);
}

/* —— Carousel —— */
.iv-vacantes__carousel-wrap {
	overflow: hidden;
	width: 100%;
	touch-action: pan-y;
}

.iv-carousel {
	display: flex;
	width: 100%;
	transform: translate3d(0, 0, 0);
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}

.iv-carousel__slide {
	flex: 0 0 100%;
	width: 100%;
	min-width: 100%;
	max-width: 100%;
}

.iv-carousel__cards {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.iv-vacantes__empty {
	margin: 0;
	padding: 28px 20px;
	border-radius: var(--iv-radius);
	background: var(--iv-white);
	box-shadow: var(--iv-shadow);
	text-align: center;
	color: var(--iv-muted);
}

/* —— Card —— */
.iv-card {
	display: grid;
	grid-template-columns: 88px 1fr auto;
	align-items: center;
	gap: 20px;
	padding: 18px 22px;
	border-radius: var(--iv-radius);
	background: var(--iv-white);
	box-shadow: var(--iv-shadow);
}

.iv-card__media {
	width: 88px;
	height: 88px;
	border-radius: 10px;
	overflow: hidden;
	background: #d9dee5;
	flex-shrink: 0;
}

.iv-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.iv-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #7a8796;
}

.iv-card__body {
	min-width: 0;
}

.iv-card__title {
	margin: 0 0 12px;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--iv-navy);
}

.iv-card__meta {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px 20px;
}

.iv-card__meta-col {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.iv-card__meta-item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 0.875rem;
	line-height: 1.35;
	color: var(--iv-text);
}

.iv-card__meta-item .iv-icon {
	flex-shrink: 0;
	margin-top: 1px;
	color: var(--iv-navy);
}

.iv-card__cta {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.iv-card__aplicar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 110px;
	min-height: 44px;
	padding: 10px 24px;
	border-radius: 8px;
	background: var(--iv-red);
	color: var(--iv-white);
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none;
	transition: filter 0.2s ease;
}

.iv-card__aplicar:hover {
	filter: brightness(0.95);
	color: var(--iv-white);
}

.iv-card__aplicar--disabled {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
}

/* —— Dots —— */
.iv-vacantes__dots {
	display: flex;
	justify-content: center;
	margin-top: 28px;
}

.iv-dots {
	display: flex;
	align-items: center;
	gap: 10px;
}

.iv-dots__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--iv-navy);
	cursor: pointer;
	transition: transform 0.15s ease, background-color 0.15s ease;
}

.iv-dots__dot.is-active {
	background: var(--iv-red);
	transform: scale(1.15);
}

/* —— Filter modal —— */
body.iv-modal-open {
	overflow: hidden;
}

.iv-modal[hidden] {
	display: none !important;
}

.iv-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.iv-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(11, 44, 95, 0.45);
	cursor: pointer;
}

.iv-modal__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 420px;
	max-height: min(86vh, 640px);
	display: flex;
	flex-direction: column;
	border-radius: 16px;
	background: var(--iv-white);
	box-shadow: 0 20px 50px rgba(11, 44, 95, 0.25);
	overflow: hidden;
	animation: iv-modal-in 0.25s ease;
}

@keyframes iv-modal-in {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.iv-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px;
	border-bottom: 1px solid var(--iv-border);
}

.iv-modal__title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--iv-navy);
}

.iv-modal__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--iv-navy);
	cursor: pointer;
}

.iv-modal__close:hover {
	background: var(--iv-bg);
	color: var(--iv-red);
}

.iv-modal__body {
	padding: 18px 20px;
	overflow-y: auto;
	flex: 1;
}

.iv-modal__label {
	margin: 0 0 12px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--iv-muted);
}

.iv-modal__options {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.iv-modal__option {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid var(--iv-border);
	border-radius: 10px;
	background: var(--iv-bg);
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.iv-modal__option:hover {
	border-color: #b8c4d4;
}

.iv-modal__option:has(input:checked) {
	border-color: var(--iv-navy);
	background: #eef3fa;
}

.iv-modal__option input {
	width: 18px;
	height: 18px;
	accent-color: var(--iv-navy);
	flex-shrink: 0;
}

.iv-modal__option span {
	flex: 1;
	font-size: 0.95rem;
	font-weight: 560;
	color: var(--iv-navy);
}

.iv-modal__count {
	font-style: normal;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--iv-muted);
	background: var(--iv-white);
	border-radius: 999px;
	padding: 2px 8px;
}

.iv-modal__footer {
	display: flex;
	gap: 10px;
	padding: 16px 20px;
	border-top: 1px solid var(--iv-border);
	background: #fafbfc;
}

.iv-modal__btn {
	flex: 1;
	min-height: 44px;
	padding: 10px 16px;
	border-radius: 8px;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
	border: 2px solid transparent;
}

.iv-modal__btn--ghost {
	background: transparent;
	border-color: var(--iv-border);
	color: var(--iv-navy);
}

.iv-modal__btn--ghost:hover {
	border-color: var(--iv-navy);
}

.iv-modal__btn--primary {
	background: var(--iv-red);
	border-color: var(--iv-red);
	color: var(--iv-white);
}

.iv-modal__btn--primary:hover {
	filter: brightness(0.95);
}

.iv-dots__dot:focus-visible,
.iv-vacantes__filter-btn:focus-visible,
.iv-card__aplicar:focus-visible,
.iv-vacantes__ver-todas:focus-visible,
.iv-modal__btn:focus-visible,
.iv-modal__close:focus-visible,
.iv-modal__option:focus-within {
	outline: 2px solid var(--iv-red);
	outline-offset: 2px;
}

@media (max-width: 900px) {
	.iv-card {
		grid-template-columns: 72px 1fr;
		grid-template-areas:
			"media body"
			"cta cta";
	}

	.iv-card__media {
		grid-area: media;
		width: 72px;
		height: 72px;
	}

	.iv-card__body {
		grid-area: body;
	}

	.iv-card__cta {
		grid-area: cta;
		justify-content: stretch;
	}

	.iv-card__aplicar {
		width: 100%;
	}

	.iv-card__meta {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 640px) {
	.iv-vacantes__header {
		flex-direction: column;
		gap: 16px;
	}

	.iv-vacantes__actions {
		width: 100%;
		justify-content: space-between;
	}

	.iv-card {
		grid-template-columns: 1fr;
		grid-template-areas:
			"media"
			"body"
			"cta";
		padding: 16px;
	}

	.iv-card__media {
		width: 64px;
		height: 64px;
	}

	.iv-card__meta {
		grid-template-columns: 1fr;
	}

	.iv-modal__footer {
		flex-direction: column;
	}
}
