/**
 * PDS Cards Carousel Widget Styles
 */

/* Swiper Base Styles */
.pds-cards-carousel .swiper {
	margin-left: auto;
	margin-right: auto;
	position: relative;
	overflow: hidden;
	list-style: none;
	padding: 0;
	z-index: 1;
	display: block;
}

.pds-cards-carousel .swiper-wrapper {
	position: relative;
	width: 100%;
	height: 100%;
	z-index: 1;
	display: flex;
	transition-property: transform;
	transition-timing-function: var(--swiper-wrapper-transition-timing-function, initial);
	box-sizing: content-box;
}

.pds-cards-carousel .swiper-slide {
	flex-shrink: 0;
	width: 100%;
	height: 100%;
	position: relative;
	transition-property: transform;
	display: block;
}

.pds-cards-carousel .swiper-button-disabled {
	opacity: 0.35;
	cursor: auto;
	pointer-events: none;
}

/* Widget Styles */
.pds-cards-carousel {
	--pds-card-height: 520px;
	--pds-card-radius: 10px;
	padding: 28px 18px 36px;
	position: relative;
}

.pds-cards-carousel .pds-cards-carousel__swiper {
	overflow: visible;
	margin: 0;
}

.pds-cards-carousel .swiper-wrapper {
	align-items: stretch;
	display: flex;
}

.pds-cards-carousel .swiper-slide {
	height: auto;
	flex-shrink: 0;
}

.pds-cards-carousel .pds-card {
	height: var(--pds-card-height);
	border-radius: var(--pds-card-radius);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
	padding: 0 20px;
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.pds-cards-carousel .pds-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.43);
	opacity: 0;
	transition: opacity 0.35s ease;
	z-index: 1;
}

.pds-cards-carousel .pds-card:hover {
	box-shadow: 0 22px 34px rgba(0, 0, 0, 0.2);
}

.pds-cards-carousel .pds-card:hover::before {
	opacity: 1;
}

.pds-cards-carousel .pds-card__overlay {
	width: 100%;
	padding: 30px 25px;
	color: #1b1b1b;
	position: relative;
	background-color: #E9B350;
	z-index: 2;
	max-height: 100px;
	overflow: hidden;
	transition: max-height 0.8s ease, padding 0.4s ease;
}

/* Colores por card (ciclo 1-4) */
.pds-cards-carousel .pds-card--color-1 .pds-card__overlay {
	background-color: #E9B350;
}

.pds-cards-carousel .pds-card--color-2 .pds-card__overlay {
	background-color: #D16C8A;
}

.pds-cards-carousel .pds-card--color-3 .pds-card__overlay {
	background-color: #EDDE93;
}

.pds-cards-carousel .pds-card--color-4 .pds-card__overlay {
	background-color: #C65D3A;
}

.pds-cards-carousel .pds-card:hover .pds-card__overlay {
	max-height: 75%;
	height: 100%;
	padding: 30px 25px;
}

.pds-cards-carousel .pds-card__title {
	margin: 0 0 10px;
	text-align: center;
    font-size: 1.2rem;
	font-weight: 600;
	font-family: var(--e-global-typography-primary-font-family), Sans-serif;
	line-height: 1.2;
}

.pds-cards-carousel .pds-card__description {
	margin: 0 0 12px;
	font-size: 18px;
	font-family: var(--e-global-typography-text-font-family), Sans-serif;
	line-height: 1.5;
	opacity: 0;
	transform: translateY(-8px);
	transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.pds-cards-carousel .pds-card:hover .pds-card__description {
	opacity: 1;
	transform: translateY(0);
}

.pds-cards-carousel .pds-card__cta {
	font-weight: 600;
	font-size: 18px;
	font-family: var(--e-global-typography-primary-font-family), Sans-serif;
	text-decoration: none;
	color: #087E95;
	transition: transform 0.25s ease, opacity 0.3s ease 0.15s;
	display: inline-flex;
	gap: 6px;
	opacity: 0;
	transform: translateY(-8px);
}

.pds-cards-carousel .pds-card:hover .pds-card__cta {
	opacity: 1;
	transform: translateY(0);
}

.pds-cards-carousel .pds-card__cta:hover {
	transform: translateX(4px);
}

.pds-cards-carousel .pds-cards-carousel__arrow {
	position: absolute;
	bottom: -25px;
	background: transparent;
	border: none;
	color: #E9B350;
	width: 42px;
	height: 42px;
	border-radius: 999px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background 0.2s ease, transform 0.2s ease;
}

.pds-cards-carousel .pds-cards-carousel__arrow span {
	font-size: 60px;
	line-height: 1;
}

.pds-cards-carousel .pds-cards-carousel__arrow--prev {
	left: 20px;
}

.pds-cards-carousel .pds-cards-carousel__arrow--next {
	left: 72px;
}

/* Responsive Design */
@media (max-width: 1024px) {
	.pds-cards-carousel {
		padding: 22px 14px 34px;
	}
	.pds-cards-carousel .pds-card__title {
		font-size: 18px;
	}
}

@media (max-width: 767px) {
	.pds-cards-carousel {
		padding: 18px 12px 28px;
	}
	.pds-cards-carousel .pds-card__overlay {
		padding: 16px 16px 14px;
	}
	.pds-cards-carousel .pds-cards-carousel__arrow {
		width: 38px;
		height: 38px;
	}
}
