/* ==========================================================================
   OFFERS LIST - Bloque de ofertas y paquetes con slider
   ========================================================================== */

/* ----------------------------------------------------------------------------
   Section
   ---------------------------------------------------------------------------- */

#offersSec {
	background-color: var(--color-base-beige);
	padding: var(--space-between-section) 0;
	overflow: hidden;
}

/* ----------------------------------------------------------------------------
   Layout (Dos columnas: 30% intro / 70% slider)
   ---------------------------------------------------------------------------- */

.offers-layout {
	display: flex;
	gap: 80px;
	align-items: start;
	/* max-width: 1440px; */
	margin: 0 auto;
	/* Calcula el padding-left para alinearse con el container del skeleton */
	padding-left: calc((100vw - var(--container-width)) / 2);
}

/* ----------------------------------------------------------------------------
   Intro (Columna izquierda)
   ---------------------------------------------------------------------------- */

.offers-intro {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 30%;
	flex-shrink: 0;
}

.offers-intro__title {
	display: flex;
	flex-direction: column;
	font-family: "ArgestaHeadline", serif;
	font-size: var(--title-size);
	line-height: var(--title-line-height);
	font-weight: 500;
	color: var(--color-base-blue);
	margin: 0 0 64px 0;
	letter-spacing: 0;
	text-wrap: balance;
}

.offers-intro__title em,
.offers-intro__title strong {
	font-style: italic;
	font-weight: 400;
	color: var(--brand-blue, var(--color-base-blue));
}

.offers-intro__description {
	font-size: 1rem;
	line-height: 1.75;
	color: var(--color-text);
	margin: 0;
	max-width: 360px;
}

/* ----------------------------------------------------------------------------
   Slider Wrapper (Columna derecha)
   ---------------------------------------------------------------------------- */

.offers-slider-wrapper {
	width: 70%;
	overflow: hidden;
	position: relative;
}

/* Navegacion */
.offers-nav {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	margin-bottom: 24px;
	position: unset;
	transform: unset;
	border-bottom: 1px solid var(--color-border);
	padding-bottom: 20px;
	width: unset;
	margin-right: 11%;
}

.offers-nav .swiper-button-prev,
.offers-nav .swiper-button-next {
	position: static;
	width: 40px;
	height: 40px;
	margin: 0;
	background: transparent;
	border: 1px solid var(--color-base-blue);
	border-radius: 50%;
	transition: all 0.3s ease;
}

.offers-nav .swiper-button-prev::after,
.offers-nav .swiper-button-next::after {
	font-size: 14px;
	font-weight: 600;
	transition: color 0.3s ease;
}

.offers-nav .swiper-button-prev:hover,
.offers-nav .swiper-button-next:hover {
	background-color: var(--color-base-blue);
}

.offers-nav .swiper-button-prev:hover::after,
.offers-nav .swiper-button-next:hover::after {
	color: var(--text-white);
}

.offers-nav [class*=swiper-button-].swiper-button-disabled {
	opacity: 1;
	border-color: var(--color-border);
}

.offers-nav [class*=swiper-button-].swiper-button-disabled img {
	filter: var(--color-border-filter);
}

/* Slider */
.offers-slider {
	overflow: visible;
}

.offers-slider .swiper-slide {
	display: flex;
}

/* Restablecer todas a opacidad completa por seguridad */
.offers-slider .swiper-slide .offer-card {
	transition: opacity 0.3s ease, filter 0.3s ease;
	opacity: 1;
}

/* Selecciona exactamente la TERCERA carta visible en escritorio */
/* (La activa + 1 + 1) */
.offers-slider .swiper-slide-active+.swiper-slide+.swiper-slide .offer-card {
	opacity: 0.4;
}

/* En móvil (donde se ve 1.15), queremos que la SEGUNDA sea la pálida */
@media (max-width: 999px) {

	/* Quitamos el efecto de la tercera */
	.offers-slider .swiper-slide-active+.swiper-slide+.swiper-slide .offer-card {
		opacity: 1;
		filter: none;
	}

	/* Lo aplicamos a la segunda (la que asoma) */
	.offers-slider .swiper-slide-active+.swiper-slide .offer-card {
		opacity: 0.4;
	}
}
/* ----------------------------------------------------------------------------
   Offer Card
   ---------------------------------------------------------------------------- */

.offer-card {
	width: 100%;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.offer-card__image {
	position: relative;
	overflow: hidden;
	margin-bottom: 24px;
}

.offer-card__image img {
	width: 100%;
	aspect-ratio: 5 / 4;
	object-fit: cover;
	transition: transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.offer-card:hover .offer-card__image img {
	transform: scale(1.05);
}

.offer-card__content {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 12px;
}

.offer-card__title {
	font-family: "ArgestaHeadline", serif;
	font-size: var(--title-size-item);
	line-height: var(--title-item-line-height);
	font-weight: 400;
	color: var(--color-base-blue);
	margin: 0;
}

.offer-card__description {
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--color-text);
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}


/* ----------------------------------------------------------------------------
   Responsive: Small Desktop (< 1920px)
   ---------------------------------------------------------------------------- */

@media screen and (max-width: 1920px) {
	.offers-layout {
		gap: 60px;
	}

	.offers-intro__title {
		margin: 0 0 48px 0;
	}
}



@media screen and (min-width: 959px) and (max-width: 1180px) {
	.offers-intro__title {
		margin: 0 0 0 0;
	}
}

@media screen and (min-width: 768px) and (max-width: 959px) {
	.offers-intro__title {
		margin: 0 0 0 0;
	}
}

/* ----------------------------------------------------------------------------
   Responsive: Tablet (< 992px)
   ---------------------------------------------------------------------------- */

@media screen and (max-width: 991px) {
	.offers-layout {
		flex-direction: column;
		gap: 40px;
		padding: 0 24px;
	}

	.offers-intro {
		width: 100%;
		padding-top: 0;
		text-align: center;
		align-items: center;
		gap: 32px;
	}

	.offers-intro__title {
		margin: 0 0 0 0;
	}

	.offers-intro__description {
		max-width: 100%;
	}

	.offers-slider-wrapper {
		width: calc(100% + 24px);
		margin-right: -24px;
	}

	.offers-nav {
		justify-content: center;
		margin-right: 16px
	}

	/* .offer-card__title font-size controlado por variable --title-size-item */
}

/* ----------------------------------------------------------------------------
   Responsive: Mobile (< 576px)
   ---------------------------------------------------------------------------- */

@media screen and (max-width: 575px) {
	.offers-layout {
		padding: 0 16px;
	}

	.offers-intro__title {
		margin: 0 0 0 0;
	}

	.offers-slider-wrapper {
		width: calc(100% + 16px);
		margin-right: -16px;
	}

	.offers-nav .swiper-button-prev,
	.offers-nav .swiper-button-next {
		width: 40px;
		height: 40px;
	}

	.offers-nav .swiper-button-prev::after,
	.offers-nav .swiper-button-next::after {
		font-size: 12px;
	}
}
