/* =========================================================
	 BASE
	 ========================================================= */

* {
	box-sizing: border-box;
	font-family: "Roboto", sans-serif;

}

[hidden] {
	display: none !important;
}

body {
	margin: 0;
	font-family: Arial, sans-serif;
	line-height: 1.5;
}

button,
input {
	font: inherit;
}

button {
	cursor: pointer;
}

.container {
	width: min(100% - 32px, 900px);
	margin: auto;
}

.row {
		height: 100vh;
}


/* =========================================================
	 HEADER
	 Siempre visible durante la navegación de resultados.
	 ========================================================= */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	padding: 16px 0;
	border-bottom: 1px solid #ddd;
	background: #fff;
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 24px;
}

.logo {
	color: inherit;
	font-family: "Poppins", sans-serif;
	font-size: 1.4rem;
	font-weight: 700;
	letter-spacing: -0.05rem;
	text-decoration: none;
	white-space: nowrap;
}

.logo small {
	font-size: 1rem;
	font-weight: bolder;
}

/* =========================================================
	 BUSCADORES
	 ========================================================= */

.search-form,
.hero-search-form {
	display: flex;
	gap: 8px;
}

.search-form {
	flex: 1;
}

.search-form input,
.hero-search-form input {
	width: 100%;
	min-width: 0;
	padding: 10px;
	border: 1px solid #bbb;
	border-radius: 4px;
}

.search-form button,
.hero-search-form button {
	padding: 10px 18px;
	border: 1px solid #222;
	border-radius: 4px;
	background: #222;
	color: #fff;
}


/* =========================================================
	 ESCENA INICIAL
	 El contenedor conserva el espacio del hero aunque este
	 se encuentre fijado visualmente al viewport.
	 ========================================================= */

.hero-scene {
	position: relative;
	height: 100vh;
}

.hero {
	position: fixed;
	inset: 0;
	z-index: 1;
	display: grid;
	place-items: center;
	min-height: 100vh;
	text-align: center;
}

.hero h1,
.hero h1 span,
.hero h1 small {
	display: inline-table;
	font-family: "Poppins", sans-serif;
	font-weight: 700;
	letter-spacing: -0.05rem;
	margin: 0;
}

.hero h1 img {
	display: block;
	margin: auto;
	width: 4rem;
}

.hero h1 .text-busco {
	color: #380093;
}

.hero h1 .text-paga {
	color: #007526;
}

.hero h1 .domain {
	color: #181818;
	font-size: 1.2rem;
	font-weight: 700;
}

.hero p {
	margin: 4px 0 24px;
}

.hero-search-form {
	width: min(100%, 700px);
	margin: auto;
}


/* =========================================================
	 RESULTADOS
	 ========================================================= */

.results-section {
	position: relative;
	z-index: 2;
	padding: 32px 0;
	background: #fff;
}

.results-header {
	margin-bottom: 16px;
	font-size: 1.2rem;
}


/* =========================================================
	 FILTROS
	 Permanecen visibles mientras el usuario recorre
	 las vacantes.
	 ========================================================= */

.filters {
	position: sticky;
	top: 73px;
	z-index: 90;
	display: flex;
	gap: 8px;
	overflow-x: auto;
	margin-bottom: 16px;
	padding: 10px 0;
	background: #fff;
}

.filter-btn {
	flex: 0 0 auto;
	padding: 8px 14px;
	border: 1px solid #bbb;
	border-radius: 20px;
	background: #fff;
}

.filter-btn.active {
	background: #222;
	color: #fff;
}


/* =========================================================
	 ESTADOS
	 Mensajes de carga, error, resultados vacíos y
	 ubicaciones ambiguas.
	 ========================================================= */

.status-message {
	margin-bottom: 16px;
}

.location-option {
	display: block;
	width: 100%;
	margin-bottom: 8px;
	padding: 12px;
	text-align: left;
	border: 1px solid #ccc;
	background: #fff;
}


/* =========================================================
	 VACANTES
	 ========================================================= */

.jobs-container {
	display: grid;
	gap: 16px;
}

.job-card {
	padding: 20px;
	border: 1px solid #ddd;
	border-radius: 6px;
}

.job-title {
	margin: 0 0 4px;
	font-size: 1.2rem;
}

.job-company {
	margin: 0 0 14px;
}

.job-details {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 12px;
}

.job-description {
	margin: 0 0 18px;
}

.job-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding-top: 12px;
	border-top: 1px solid #eee;
}

.job-footer small {
	color: #777;
}


/* =========================================================
	 PAGINACIÓN
	 ========================================================= */

.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 16px;
	margin: 32px 0;
}


/* =========================================================
	 PUBLICIDAD
	 Un único espacio reservado para el anuncio.
	 ========================================================= */

.ad-placeholder {
	padding: 40px 0;
	border-top: 1px solid #eee;
	text-align: center;
	color: #888;
}


/* =========================================================
	 FOOTER
	 ========================================================= */

.site-footer {
	margin-top: 64px;
	padding: 16px 0;
	border-top: 1px solid #ddd;
	text-align: center;
}

.footer-links {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 12px;
}

.footer-links a {
	color: inherit;
	text-decoration: none;
}

.site-footer small {
	color: #777;
}


/* =========================================================
	 RESPONSIVE
	 ========================================================= */

@media (max-width: 650px) {

	/* Header */
	.site-header {
		padding: 10px 0;
	}

	.header-inner {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	/* Buscadores */
	.search-form,
	.hero-search-form {
		flex-direction: column;
	}

	/* Filtros */
	.filters {
		top: 132px;
	}

	/* Footer */
	.site-footer {
		margin-top: 48px;
	}

	.footer-links {
		flex-direction: column;
		gap: 8px;
	}

	/* Vacantes */
	.job-footer {
		align-items: flex-end;
	}
}