/* =========================================================================
   UNITECH · hero.css  —  Hero carrusel + buscador + ventajas
   ========================================================================= */

/* ---- Hero ---- */
.unitech-hero {
	position: relative;
	min-height: 480px;
	overflow: hidden;
}
.unitech-hero__track { position: relative; min-height: 480px; }
.unitech-hero__slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 0.6s ease;
}
.unitech-hero__slide.is-active { opacity: 1; position: relative; }
.unitech-hero__slide[hidden] { display: flex; } /* el slider controla visibilidad por opacidad */
.unitech-hero__inner {
	width: min(100% - 2.5rem, var(--max-wide));
	margin-inline: auto;
	color: #fff;
	max-width: 640px;
	padding-block: 3rem;
}
.unitech-hero__title {
	font-family: var(--font-display);
	color: #fff;
	font-size: clamp(2rem, 4.5vw, 3rem);
	line-height: 1.1;
	margin: 0 0 1rem;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.unitech-hero__subtitle {
	font-size: clamp(1rem, 1.6vw, 1.125rem);
	margin: 0 0 1.75rem;
	max-width: 36em;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}
.unitech-hero__cta { background: var(--color-accent-coral); }
.unitech-hero__cta:hover { background: var(--color-accent-coral-h); }

.unitech-hero__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 1.25rem;
	display: flex;
	gap: 0.5rem;
	justify-content: center;
	z-index: 3;
}
.unitech-hero__dot {
	width: 10px;
	height: 10px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	padding: 0;
	transition: background var(--t-fast), transform var(--t-fast);
}
.unitech-hero__dot.is-active { background: #fff; transform: scale(1.2); }

/* ---- Buscador de programas (barra blanca flotante) ---- */
.unitech-search {
	position: relative;
	z-index: 5;
	width: min(100% - 2.5rem, var(--max-wide));
	margin: -2rem auto 0;
	background: #fff;
	box-shadow: var(--shadow-search);
	border-radius: var(--radius-md);
	padding: 1rem;
	display: grid;
	grid-template-columns: repeat(3, 1fr) auto;
	gap: 0.75rem;
	align-items: center;
}
.unitech-search__field { position: relative; }
.unitech-search select {
	width: 100%;
	appearance: none;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 0.9rem center;
	padding: 0.8rem 2.2rem 0.8rem 1rem;
	font: inherit;
	color: var(--color-text-main);
	cursor: pointer;
}
.unitech-search select:disabled { opacity: 0.55; cursor: not-allowed; }
.unitech-search select:focus { outline: 2px solid var(--color-secondary); outline-offset: 1px; }
.unitech-search__cta {
	border: 0;
	border-radius: var(--radius-sm);
	background: var(--color-secondary);
	color: #fff;
	font-family: var(--font-body);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	padding: 0.85rem 1.6rem;
	cursor: pointer;
	white-space: nowrap;
	transition: background var(--t-fast);
}
.unitech-search__cta:hover { background: var(--color-primary); }

/* ---- Ventajas ---- */
.unitech-ventajas__title { text-align: center; margin-bottom: 2.5rem; }
.unitech-ventajas__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
}
.unitech-ventaja { text-align: center; }
.unitech-ventaja__icon { width: 72px; height: 72px; margin: 0 auto 1rem; object-fit: contain; }
.unitech-ventaja__title { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.5rem; }
.unitech-ventaja__text { color: var(--color-text-muted); font-size: 0.9375rem; margin: 0; }
.unitech-ventajas__nav { display: none; justify-content: center; gap: 0.75rem; margin-top: 1.5rem; }
.unitech-ventajas__arrow {
	width: 40px; height: 40px;
	border: 1px solid var(--color-border);
	border-radius: 50%;
	background: #fff;
	color: var(--color-secondary);
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
}
.unitech-ventajas__arrow:hover { background: var(--color-secondary); color: #fff; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
	.unitech-search { grid-template-columns: 1fr 1fr; }
	.unitech-search__cta { grid-column: 1 / -1; }
	.unitech-ventajas__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
	.unitech-hero, .unitech-hero__track { min-height: 360px; }
	.unitech-hero__inner { padding-block: 2rem; }
}
@media (max-width: 600px) {
	.unitech-search { grid-template-columns: 1fr; }
	/* Ventajas como carrusel horizontal en móvil */
	.unitech-ventajas__grid {
		grid-auto-flow: column;
		grid-auto-columns: 80%;
		grid-template-columns: none;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
		gap: 1rem;
	}
	.unitech-ventaja { scroll-snap-align: center; }
	.unitech-ventajas__nav { display: flex; }
}
