/* =========================================================
   Carrusel de portada (Swiper)
   Los textos entran desde abajo cuando su diapositiva se activa.
   ========================================================= */
.telar-hero {
	position: relative;
	background: #1d1d1f;
}
.telar-hero__swiper {
	height: clamp(460px, 72vh, 780px);
}
.telar-hero__slide {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}
.telar-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* Velo para que el texto blanco se lea sobre cualquier foto */
.telar-hero__slide::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.42));
}
.telar-hero__caption {
	position: relative;
	z-index: 2;
	max-width: 820px;
	padding: 0 24px;
	text-align: center;
	color: #fff;
}
.telar-hero .telar-hero__title {
	margin: 0 0 14px;
	color: #fff;
	font-size: clamp(30px, 4.2vw, 52px);
	font-weight: 600;
	line-height: 1.12;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}
.telar-hero__text {
	margin: 0;
	font-size: clamp(16px, 1.6vw, 20px);
	font-weight: 400;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.92);
}

/* Entrada desde abajo: oculto y desplazado hasta que la diapositiva está activa */
.telar-hero__title,
.telar-hero__text {
	opacity: 0;
	transform: translate3d(0, 80px, 0);
	transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.7s ease;
	transition-delay: 0s;
}
.telar-hero__swiper.is-ready .swiper-slide-active .telar-hero__title,
.telar-hero__swiper.is-ready .swiper-slide-active .telar-hero__text {
	opacity: 1;
	transform: translate3d(0, 0, 0);
}
.telar-hero__swiper.is-ready .swiper-slide-active .telar-hero__title { transition-delay: 0.55s; }
.telar-hero__swiper.is-ready .swiper-slide-active .telar-hero__text { transition-delay: 0.75s; }

/* Flechas: solo aparecen al pasar el ratón */
.telar-hero__nav {
	position: absolute;
	top: 50%;
	z-index: 10;
	width: 52px;
	height: 52px;
	margin-top: -26px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.3s ease, transform 0.3s ease;
}
.telar-hero__nav--prev { left: 24px; }
.telar-hero__nav--next { right: 24px; }
.telar-hero__swiper:hover .telar-hero__nav,
.telar-hero__nav:focus-visible {
	opacity: 0.85;
}
.telar-hero__nav:hover { opacity: 1 !important; }
.telar-hero__nav--prev:hover { transform: translateX(-3px); }
.telar-hero__nav--next:hover { transform: translateX(3px); }

/* Paginación: rayitas finas */
.telar-hero__pagination {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 26px !important;
	z-index: 10;
	display: flex;
	justify-content: center;
	gap: 8px;
}
.telar-hero__pagination .swiper-pagination-bullet {
	width: 26px;
	height: 3px;
	margin: 0 !important;
	border-radius: 0;
	background: #fff;
	opacity: 0.45;
	transition: opacity 0.3s, width 0.3s;
}
.telar-hero__pagination .swiper-pagination-bullet-active {
	width: 42px;
	opacity: 1;
}

@media (max-width: 767px) {
	.telar-hero__nav { display: none; }
	.telar-hero__swiper { height: clamp(420px, 68vh, 620px); }
}
@media (prefers-reduced-motion: reduce) {
	.telar-hero__title,
	.telar-hero__text {
		transition: none !important;
		transform: none !important;
		opacity: 1 !important;
	}
}
