/* Conecta Talento Hero - Styles
   Identidad: Indigo (#4F46E5), Azul claro (#6366F1), Verde menta (#65D6A6), Naranja (#F4A63A)
   Estilo: corporativo, limpio, minimalista (LinkedIn / Deel / Stripe)
*/

.cth-hero {
	position: relative;
	overflow: hidden;
	padding: 88px 24px;
	color: var(--cth-text);
	text-align: center;
	border-radius: 0;
}

.cth-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(135deg, var(--cth-grad-start) 0%, var(--cth-grad-end) 100%);
	background-size: 200% 200%;
	animation: cthGradientShift 22s ease infinite;
}

.cth-hero__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 15% 20%, rgba(101, 214, 166, 0.16) 0%, transparent 45%),
		radial-gradient(circle at 85% 80%, rgba(244, 166, 58, 0.12) 0%, transparent 50%);
}

@keyframes cthGradientShift {
	0% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}

.cth-hero__container {
	position: relative;
	z-index: 1;
	max-width: 880px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	animation: cthFadeUp 0.8s ease both;
}

@keyframes cthFadeUp {
	from { opacity: 0; transform: translateY(24px); }
	to { opacity: 1; transform: translateY(0); }
}

.cth-hero__title {
	font-size: clamp(28px, 5vw, 48px);
	font-weight: 800;
	line-height: 1.2;
	margin: 0;
	letter-spacing: -0.02em;
}

.cth-hero__highlight {
	color: var(--cth-secondary);
	font-style: italic;
	font-weight: 800;
}

.cth-hero__subtitle {
	font-size: clamp(15px, 2.2vw, 19px);
	opacity: 0.92;
	margin: 0;
	max-width: 620px;
	font-weight: 400;
}

/* Search */
.cth-hero__search {
	width: 100%;
	max-width: 640px;
}

.cth-search-form {
	width: 100%;
	position: relative;
}

.cth-search-input-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 14px;
	padding: 8px 8px 8px 20px;
	box-shadow: 0 12px 32px rgba(30, 27, 75, 0.18);
	transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.cth-search-input-wrap:focus-within {
	box-shadow: 0 0 0 4px rgba(101, 214, 166, 0.30), 0 12px 32px rgba(30, 27, 75, 0.18);
}

.cth-search-icon {
	flex-shrink: 0;
	color: var(--cth-primary);
	opacity: 0.65;
}

.cth-search-input {
	flex: 1;
	border: none;
	background: transparent;
	outline: none;
	color: #1E1B4B;
	font-size: 16px;
	padding: 12px 0;
}

.cth-search-input::placeholder {
	color: #94A3B8;
}

.cth-search-button {
	background: var(--cth-primary);
	color: #ffffff;
	border: none;
	border-radius: 10px;
	padding: 12px 26px;
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	white-space: nowrap;
}

.cth-search-button:hover {
	background: #4338CA;
	box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
	transform: translateY(-1px);
}

.cth-search-spinner {
	display: none;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(79, 70, 229, 0.18);
	border-top-color: var(--cth-primary);
	border-radius: 50%;
	animation: cthSpin 0.7s linear infinite;
	flex-shrink: 0;
}

.cth-search-spinner.is-active {
	display: inline-block;
}

@keyframes cthSpin {
	to { transform: rotate(360deg); }
}

/* Suggestions dropdown */
.cth-search-suggestions {
	display: none;
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	right: 0;
	background: #ffffff;
	border-radius: 14px;
	border: 1px solid #E5E7EB;
	box-shadow: 0 18px 40px rgba(30, 27, 75, 0.18);
	overflow: hidden;
	text-align: left;
	z-index: 20;
	animation: cthFadeUp 0.2s ease both;
}

.cth-search-suggestions.is-active {
	display: block;
}

.cth-suggestion {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px;
	cursor: pointer;
	color: #1E1B4B;
	font-size: 14px;
	border-bottom: 1px solid #F1F1F8;
	transition: background 0.15s ease;
	text-decoration: none;
}

.cth-suggestion:last-child {
	border-bottom: none;
}

.cth-suggestion:hover,
.cth-suggestion.is-highlighted {
	background: #F5F5FF;
}

.cth-suggestion__type {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	background: var(--cth-primary);
	color: #fff;
	padding: 2px 8px;
	border-radius: 6px;
	flex-shrink: 0;
	font-weight: 600;
}

.cth-suggestion__type--vendor {
	background: var(--cth-secondary);
	color: #06402A;
}

.cth-suggestion__type--category {
	background: var(--cth-support);
	color: #5A3B0A;
}

.cth-suggestion-empty {
	padding: 14px 18px;
	color: #6B7280;
	font-size: 14px;
}

/* Categories */
.cth-hero__categories {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.cth-category-pill {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.10);
	border: 1px solid rgba(255, 255, 255, 0.22);
	color: var(--cth-secondary) ;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.cth-category-pill:hover {
	background: rgba(255, 255, 255, 0.18);
	border-color: var(--cth-secondary);
	transform: translateY(-2px);
	color: var(--cth-text);
}

.cth-category-icon {
	font-size: 16px;
}

/* Stats */
.cth-hero__stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	width: 100%;
	max-width: 720px;
	margin-top: 12px;
	padding-top: 28px;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.cth-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.cth-stat__number {
	font-size: clamp(22px, 4vw, 32px);
	font-weight: 800;
	color: var(--cth-secondary);
}

.cth-stat__label {
	font-size: 12px;
	opacity: 0.85;
	text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
	.cth-hero {
		padding: 56px 16px;
	}

	.cth-search-input-wrap {
		flex-wrap: wrap;
		border-radius: 16px;
		padding: 14px;
	}

	.cth-search-input {
		flex-basis: 100%;
		order: 1;
	}

	.cth-search-button {
		order: 2;
		width: 100%;
		text-align: center;
	}

	.cth-search-icon {
		order: 0;
	}

	.cth-search-spinner {
		order: 0;
	}

	.cth-hero__stats {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
}

@media (max-width: 480px) {
	.cth-hero__categories {
		gap: 8px;
	}

	.cth-category-pill {
		padding: 8px 14px;
		font-size: 13px;
	}
}
