:root {
	--terra-primary: #1a5c3a;
	--terra-primary-dark: #13442b;
	--terra-accent: #2d8a5e;
	--terra-text: #1e293b;
	--terra-muted: #64748b;
	--terra-border: #e2e8f0;
	--terra-bg: #f8fafc;
	--terra-radius: 10px;
	--terra-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.terra-empleo {
	font-family: inherit;
	color: var(--terra-text);
	line-height: 1.6;
}

.terra-filtros {
	background: #fff;
	border: 1px solid var(--terra-border);
	border-radius: var(--terra-radius);
	padding: 1.25rem;
	margin-bottom: 1.5rem;
	box-shadow: var(--terra-shadow);
}

.terra-filtros__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1rem;
}

.terra-field label {
	display: block;
	font-weight: 600;
	font-size: 0.875rem;
	margin-bottom: 0.35rem;
}

.terra-field input,
.terra-field select,
.terra-field textarea {
	width: 100%;
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--terra-border);
	border-radius: 8px;
	font-size: 0.95rem;
	background: #fff;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.terra-field input:focus,
.terra-field select:focus,
.terra-field textarea:focus {
	outline: none;
	border-color: var(--terra-accent);
	box-shadow: 0 0 0 3px rgba(45, 138, 94, 0.15);
}

.terra-field--invalid input,
.terra-field--invalid select,
.terra-field--invalid textarea {
	border-color: #dc2626;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.terra-field--valid input,
.terra-field--valid select,
.terra-field--valid textarea {
	border-color: var(--terra-accent);
}

.terra-lopdp.terra-field--invalid .terra-lopdp__check {
	color: #dc2626;
}

.terra-field--full {
	grid-column: 1 / -1;
}

.terra-field--search {
	grid-column: 1 / -1;
}

.terra-vacantes__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 1.25rem;
}

.terra-vacante-card {
	background: #fff;
	border: 1px solid var(--terra-border);
	border-radius: var(--terra-radius);
	padding: 1.25rem;
	box-shadow: var(--terra-shadow);
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	transition: transform 0.2s, box-shadow 0.2s;
}

.terra-vacante-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
}

.terra-vacante-card h3 {
	margin: 0;
	font-size: 1.15rem;
	color: var(--terra-primary);
}

.terra-vacante-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	font-size: 0.85rem;
	color: var(--terra-muted);
}

.terra-vacante-card__footer {
	margin-top: auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem;
}

.terra-badge {
	display: inline-block;
	padding: 0.25rem 0.65rem;
	border-radius: 999px;
	background: rgba(26, 92, 58, 0.1);
	color: var(--terra-primary);
	font-size: 0.8rem;
	font-weight: 600;
}

.terra-badge--muted {
	background: var(--terra-bg);
	color: var(--terra-muted);
}

.terra-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.7rem 1.25rem;
	border-radius: 8px;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: background 0.2s, transform 0.15s;
}

.terra-btn--primary {
	background: var(--terra-primary);
	color: #fff;
}

.terra-btn--primary:hover {
	background: var(--terra-primary-dark);
	color: #fff;
}

.terra-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.terra-vacantes__status {
	min-height: 1.5rem;
	margin-bottom: 1rem;
	color: var(--terra-muted);
}

.terra-detalle {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem 1rem;
}

.terra-detalle__grid {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 2rem;
}

.terra-breadcrumb {
	font-size: 0.9rem;
	color: var(--terra-muted);
	margin-bottom: 1rem;
}

.terra-breadcrumb a {
	color: var(--terra-primary);
	text-decoration: none;
}

.terra-detalle__header h1 {
	margin: 0 0 1rem;
	font-size: 2rem;
	color: var(--terra-primary);
}

.terra-detalle__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.terra-detalle__dates {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	font-size: 0.9rem;
	color: var(--terra-muted);
	margin-bottom: 2rem;
}

.terra-section {
	margin-bottom: 2rem;
}

.terra-section h2 {
	font-size: 1.25rem;
	color: var(--terra-primary);
	margin-bottom: 0.75rem;
	border-bottom: 2px solid var(--terra-border);
	padding-bottom: 0.5rem;
}

.terra-list {
	padding-left: 1.25rem;
}

.terra-list li {
	margin-bottom: 0.5rem;
}

.terra-perfil-item h3 {
	font-size: 1rem;
	margin: 1rem 0 0.35rem;
}

.terra-postulate-page {
	max-width: 960px;
	margin: 2rem auto;
	padding: 0 1rem 3rem;
}

.terra-postulate-page__header {
	margin-bottom: 1.5rem;
}

.terra-postulate-page__header h1 {
	color: var(--terra-primary);
	margin: 0 0 0.5rem;
	font-size: 1.75rem;
}

.terra-postulate-page__vacante {
	color: var(--terra-muted);
	margin: 0;
	font-size: 1rem;
}

.terra-detalle__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--terra-border);
	position: relative;
	z-index: 2;
}

.terra-btn--postular {
	position: relative;
	z-index: 3;
	pointer-events: auto;
	text-decoration: none;
}

.terra-share {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.terra-share__btn {
	padding: 0.5rem 0.85rem;
	border: 1px solid var(--terra-border);
	border-radius: 6px;
	background: #fff;
	font-size: 0.85rem;
	cursor: pointer;
	text-decoration: none;
	color: var(--terra-text);
}

.terra-share__btn:hover {
	border-color: var(--terra-accent);
	color: var(--terra-primary);
}

.terra-detalle__sidebar {
	background: var(--terra-bg);
	border-radius: var(--terra-radius);
	padding: 1.25rem;
	height: fit-content;
}

.terra-detalle__sidebar h3 {
	font-size: 1rem;
	margin-top: 0;
}

.terra-sidebar-card {
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--terra-border);
}

.terra-sidebar-card:last-child {
	border-bottom: none;
}

.terra-sidebar-card h4 {
	margin: 0 0 0.25rem;
	font-size: 0.95rem;
}

.terra-sidebar-card a {
	color: var(--terra-primary);
	text-decoration: none;
}

.terra-sidebar-card p {
	margin: 0;
	font-size: 0.85rem;
	color: var(--terra-muted);
}

.terra-form {
	background: #fff;
	border: 1px solid var(--terra-border);
	border-radius: var(--terra-radius);
	padding: 1.5rem;
	box-shadow: var(--terra-shadow);
}

.terra-form__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1rem;
	margin-bottom: 1rem;
}

.terra-pasantias {
	margin: 1.5rem 0;
	padding: 1.25rem;
	background: var(--terra-bg);
	border-radius: var(--terra-radius);
	border: 1px dashed var(--terra-border);
}

.terra-pasantias h3 {
	margin-top: 0;
	color: var(--terra-primary);
}

.terra-lopdp {
	margin: 1.5rem 0;
}

.terra-lopdp__text {
	font-size: 0.85rem;
	color: var(--terra-muted);
	margin-bottom: 0.75rem;
}

.terra-lopdp__check {
	display: flex;
	gap: 0.65rem;
	align-items: flex-start;
	font-size: 0.9rem;
	cursor: pointer;
}

.terra-lopdp__check input {
	margin-top: 0.2rem;
	flex-shrink: 0;
}

.terra-error {
	display: block;
	color: #dc2626;
	font-size: 0.8rem;
	margin-top: 0.25rem;
	min-height: 1rem;
}

.terra-alert {
	padding: 1rem 1.25rem;
	border-radius: 8px;
	margin-bottom: 1rem;
}

.terra-alert--success {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.terra-alert--error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.terra-hp {
	position: absolute;
	left: -9999px;
	opacity: 0;
	height: 0;
	width: 0;
}

.required {
	color: #dc2626;
}

.terra-muted {
	color: var(--terra-muted);
}

.terra-admin-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
	margin: 1.5rem 0;
}

.terra-admin-card {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 8px;
	padding: 1.25rem;
	text-align: center;
}

.terra-admin-card h2 {
	font-size: 2.5rem;
	margin: 0;
	color: var(--terra-primary);
}

@media (max-width: 900px) {
	.terra-detalle__grid {
		grid-template-columns: 1fr;
	}
}
