/* ==========================================================================
   Guía Construcción · Buscador dirigido  [gc_buscador_directo]
   ========================================================================== */
.gcbd {
	--gcbd-primary: #ff7438;
	--gcbd-primary-dark: #e85f24;
	--gcbd-dark: #1f1f1f;
	--gcbd-border: #e7e8ec;
	--gcbd-muted: #9aa0a8;
	--gcbd-soft: #f6f7f9;
	background: var(--gcbd-primary);
	border-radius: 18px;
	padding: 24px;
	color: #fff;
	max-width: 900px;
	margin: 0 auto;
	font-family: inherit;
	box-sizing: border-box;
	box-shadow: 0 8px 24px rgba(255, 116, 56, .2);
}
.gcbd *, .gcbd *::before, .gcbd *::after { box-sizing: border-box; }

/* Tabs de tipo */
.gcbd__tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.gcbd__tab {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 11px 20px;
	font-size: 14.5px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s, color .15s, transform .15s;
}
.gcbd__tab:hover { background: rgba(255, 255, 255, .24); }
.gcbd__tab.is-active { background: #fff; color: var(--gcbd-primary); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.gcbd__tab-ic { width: 18px; height: 18px; flex: none; }

/* El cuarto tab conserva una lectura clara sin desbordar el buscador. */
.gcbd__tab[data-tipo="empleos"] { margin-left: 0; }

/* Caja de campos */
.gcbd__box {
	display: flex;
	align-items: stretch;
	gap: 0;
	background: #fff;
	border-radius: 14px;
	padding: 8px;
	box-shadow: 0 2px 6px rgba(16, 24, 40, .08);
}
.gcbd__field {
	flex: 1 1 0;
	padding: 8px 14px 8px 12px;
	position: relative;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 12px;
	border-radius: 10px;
	transition: background .15s;
}
.gcbd__field:hover { background: var(--gcbd-soft); }
.gcbd__field + .gcbd__field { border-left: 1px solid var(--gcbd-border); }
.gcbd__field + .gcbd__field:hover { border-left-color: transparent; }

.gcbd__field-ic {
	color: var(--gcbd-primary);
	display: inline-flex;
	flex: none;
}
.gcbd__field-ic svg { width: 20px; height: 20px; }

.gcbd__field-body { flex: 1 1 auto; min-width: 0; }
.gcbd__label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	color: var(--gcbd-muted);
	text-transform: uppercase;
	margin-bottom: 2px;
}
.gcbd__q, .gcbd__w {
	width: 100%;
	border: 0;
	outline: 0;
	background: transparent;
	font-size: 15px;
	color: var(--gcbd-dark);
	padding: 2px 0;
	font-family: inherit;
}
.gcbd__q::placeholder, .gcbd__w::placeholder { color: var(--gcbd-muted); }
.gcbd__q--shake { animation: gcbd-shake .35s; }
@keyframes gcbd-shake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-4px); }
	75% { transform: translateX(4px); }
}

.gcbd__field-caret {
	background: transparent;
	border: 0;
	padding: 4px;
	color: var(--gcbd-muted);
	cursor: pointer;
	display: inline-flex;
	flex: none;
	transition: transform .2s, color .15s;
}
.gcbd__field-caret:hover { color: var(--gcbd-dark); }
.gcbd__field-caret svg { width: 18px; height: 18px; }
.gcbd__field--w.is-open .gcbd__field-caret { transform: rotate(180deg); color: var(--gcbd-primary); }

/* Dropdown de DÓNDE (con scroll) */
.gcbd__where-list {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 30;
	background: #fff;
	border: 1px solid var(--gcbd-border);
	border-radius: 12px;
	box-shadow: 0 16px 40px rgba(16, 24, 40, .14);
	padding: 6px;
	max-height: 260px;
	overflow-y: auto;
	list-style: none;
	margin: 0;
	scrollbar-width: thin;
}
.gcbd__where-list::-webkit-scrollbar { width: 8px; }
.gcbd__where-list::-webkit-scrollbar-thumb { background: #d7d9de; border-radius: 4px; }
.gcbd__where-opt {
	display: block;
	width: 100%;
	text-align: left;
	background: transparent;
	border: 0;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 14px;
	color: var(--gcbd-dark);
	cursor: pointer;
	font-family: inherit;
}
.gcbd__where-opt:hover, .gcbd__where-opt:focus { background: var(--gcbd-soft); outline: 0; }

/* Botón Buscar */
.gcbd__submit {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--gcbd-primary);
	color: #fff;
	border: 0;
	border-radius: 10px;
	padding: 0 24px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: background .15s, transform .1s;
	margin-left: 6px;
	font-family: inherit;
}
.gcbd__submit:hover { background: var(--gcbd-primary-dark); }
.gcbd__submit:active { transform: scale(.97); }
.gcbd__submit-ic { width: 18px; height: 18px; }

/* Hint inferior */
.gcbd__hint {
	margin: 14px 0 0;
	font-size: 14px;
	color: rgba(255, 255, 255, .92);
}
.gcbd__hint strong { color: #fff; font-weight: 700; }
.gcbd__hint-sep { opacity: .6; margin: 0 6px; }

/* Modo compacto (para arriba en la página de resultados) */
.gcbd--compacto { padding: 18px; }
.gcbd--compacto .gcbd__tabs { margin-bottom: 12px; }

/* ==========================================================================
   Página de resultados
   ========================================================================== */
.gcbd-page { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.gcbd-page__head { padding: 26px 4px 14px; }
.gcbd-page__head h2 { margin: 0 0 4px; font-size: 22px; color: #1f1f1f; }
.gcbd-page__head p { margin: 0; color: #6b7280; font-size: 14.5px; }

.gcbd__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 14px;
}
.gcbd__grid--page { padding-bottom: 30px; }

.gcbd__card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px;
	background: #fff;
	border: 1px solid var(--gcbd-border, #e7e8ec);
	border-radius: 14px;
	text-decoration: none;
	color: inherit;
	transition: border-color .15s, transform .15s, box-shadow .15s;
}
.gcbd__card:hover { border-color: #ff7438; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(16, 24, 40, .08); }
.gcbd__card-top { display: flex; align-items: center; gap: 11px; }
.gcbd__card-avatar {
	width: 44px; height: 44px;
	border-radius: 10px;
	object-fit: cover;
	flex: none;
	background: #f6f7f9;
}
.gcbd__card-avatar--ph { display: inline-flex; align-items: center; justify-content: center; color: #9aa0a8; border: 1px solid #e7e8ec; }
.gcbd__card-avatar--ph svg { width: 22px; height: 22px; }
.gcbd__card-id { flex: 1 1 auto; min-width: 0; }
.gcbd__card-name { margin: 0; font-size: 15px; font-weight: 700; color: #1f1f1f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gcbd__card-loc { margin: 2px 0 0; font-size: 12.5px; color: #9aa0a8; display: flex; align-items: center; gap: 4px; }
.gcbd__card-pin { width: 13px; height: 13px; flex: none; }
.gcbd__card-plan {
	font-size: 10.5px; font-weight: 700;
	padding: 3px 9px; border-radius: 999px;
	background: #fff1ea; color: #e85f24;
	white-space: nowrap; flex: none;
}
.gcbd__card-plan--premium { background: #1f1f1f; color: #fff; }
.gcbd__card-desc { margin: 0; font-size: 13px; color: #4b5057; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gcbd__card-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.gcbd__tag { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: #f6f7f9; color: #4b5057; }

/* Estado vacío en página */
.gcbd__empty--page {
	text-align: center;
	padding: 40px 20px;
	color: #9aa0a8;
}
.gcbd__empty--page svg { width: 48px; height: 48px; color: #d7d9de; margin-bottom: 10px; }
.gcbd__empty--page h3 { margin: 0 0 6px; font-size: 18px; color: #1f1f1f; }
.gcbd__empty--page p { margin: 0; font-size: 14.5px; }

/* Responsive */
@media (max-width: 720px) {
	.gcbd { padding: 18px; }
	.gcbd__tabs {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.gcbd__tab {
		width: 100%;
		justify-content: center;
		padding-left: 12px;
		padding-right: 12px;
	}
	.gcbd__box { flex-direction: column; padding: 6px; }
	.gcbd__field + .gcbd__field { border-left: 0; border-top: 1px solid var(--gcbd-border); }
	.gcbd__submit { margin-left: 0; margin-top: 4px; padding: 14px 22px; justify-content: center; }
	.gcbd-page { padding: 0 12px; }
}

@media (max-width: 420px) {
	.gcbd__tabs { grid-template-columns: 1fr; }
}
