/* GG · Carrusel de tarjetas
   Solo la estructura. Todo lo visual se controla desde el panel de Elementor. */

.ggcc {
	--ggcc-speed: 450ms;
	--ggcc-arrows-offset: 28px;
	position: relative;
}

/* --------------------------------- base de Swiper (autocontenida, sin CDN) */
.ggcc .swiper {
	position: relative;
	z-index: 1;
	margin: 0 auto;
	padding: 0;
	overflow: hidden;
	list-style: none;
}

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

.ggcc .swiper-slide {
	position: relative;
	flex-shrink: 0;
	width: 100%;
	transition-property: transform;
}

.ggcc .swiper-horizontal {
	touch-action: pan-y;
}

.ggcc .swiper-backface-hidden .swiper-slide {
	transform: translateZ(0);
	backface-visibility: hidden;
}

.ggcc .swiper-pagination-bullet {
	display: inline-block;
	width: 8px;
	height: 8px;
	border: 0;
	border-radius: 50%;
	background: #000;
	opacity: .25;
	cursor: pointer;
	transition: background-color var(--ggcc-speed) ease, opacity var(--ggcc-speed) ease;
}

.ggcc .swiper-pagination-bullet-active {
	opacity: 1;
}

/* ------------------------------------------------------------------ pista */
.ggcc__swiper {
	width: 100%;
}

.ggcc__swiper .swiper-wrapper {
	align-items: stretch;
}

.ggcc__swiper .swiper-slide {
	height: auto;
	box-sizing: border-box;
}

/* ----------------------------------------------------------------- tarjeta */
.ggcc__card {
	position: relative;
	display: flex;
	overflow: hidden;
	width: 100%;
	height: 430px;
	text-decoration: none;
	transition: transform var(--ggcc-speed) cubic-bezier(.22, .61, .36, 1),
	            box-shadow var(--ggcc-speed) ease;
	will-change: transform;
}

.ggcc__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transition: transform 700ms cubic-bezier(.22, .61, .36, 1);
	will-change: transform;
}

.ggcc__ovl {
	position: absolute;
	inset: 0;
	transition: opacity var(--ggcc-speed) ease, background var(--ggcc-speed) ease;
}

.ggcc__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	width: 100%;
	padding: 28px 26px;
	box-sizing: border-box;
}

.ggcc__label {
	display: block;
	margin-bottom: 8px;
	line-height: 1.4;
}

.ggcc__title {
	margin: 0 0 10px;
	transition: transform var(--ggcc-speed) cubic-bezier(.22, .61, .36, 1);
}

.ggcc__reveal {
	display: block;
}

.ggcc__text {
	display: block;
}

.ggcc__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	line-height: 1.4;
}

.ggcc__cta i {
	font-style: normal;
	transition: transform var(--ggcc-speed) cubic-bezier(.22, .61, .36, 1);
}

.ggcc__card:hover .ggcc__cta i {
	transform: translateX(6px);
}

/* -------------------------------------------- descripción al pasar el cursor */
.ggcc--text-hover .ggcc__reveal {
	overflow: hidden;
	max-height: 0;
	opacity: 0;
	transition: max-height var(--ggcc-speed) cubic-bezier(.22, .61, .36, 1),
	            opacity var(--ggcc-speed) ease,
	            transform var(--ggcc-speed) cubic-bezier(.22, .61, .36, 1);
}

.ggcc--text-hover.ggcc--fx-slide .ggcc__reveal {
	transform: translateY(14px);
}

.ggcc--text-hover .ggcc__card:hover .ggcc__reveal,
.ggcc--text-hover .ggcc__card:focus-visible .ggcc__reveal {
	max-height: 320px;
	opacity: 1;
	transform: none;
}

/* ----------------------------------------------------------------- flechas */
.ggcc__arrows {
	display: flex;
	gap: 10px;
}

.ggcc__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	padding: 0;
	border: 1px solid #D8D2C2;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	line-height: 1;
	transition: background-color var(--ggcc-speed) ease,
	            color var(--ggcc-speed) ease,
	            border-color var(--ggcc-speed) ease,
	            opacity var(--ggcc-speed) ease;
}

.ggcc__arrow svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.ggcc__arrow.swiper-button-disabled {
	opacity: .35;
	cursor: default;
}

/* posiciones */
.ggcc--arrows-top-right .ggcc__arrows,
.ggcc--arrows-top-left .ggcc__arrows {
	margin-bottom: var(--ggcc-arrows-offset);
}

.ggcc--arrows-top-right .ggcc__arrows {
	justify-content: flex-end;
}

.ggcc--arrows-top-left .ggcc__arrows {
	justify-content: flex-start;
}

.ggcc--arrows-bottom .ggcc__arrows {
	order: 2;
	justify-content: center;
	margin-top: var(--ggcc-arrows-offset);
}

.ggcc--arrows-bottom {
	display: flex;
	flex-direction: column;
}

.ggcc--arrows-bottom .ggcc__dots {
	order: 3;
}

.ggcc--arrows-sides .ggcc__arrows {
	position: static;
}

.ggcc--arrows-sides .ggcc__arrow {
	position: absolute;
	top: 50%;
	z-index: 5;
	transform: translateY(-50%);
	background: #fff;
}

.ggcc--arrows-sides .ggcc__arrow--prev {
	left: calc(var(--ggcc-arrows-offset) * -1);
}

.ggcc--arrows-sides .ggcc__arrow--next {
	right: calc(var(--ggcc-arrows-offset) * -1);
}

@media (max-width: 1200px) {
	.ggcc--arrows-sides .ggcc__arrow--prev { left: 8px; }
	.ggcc--arrows-sides .ggcc__arrow--next { right: 8px; }
}

/* ------------------------------------------------------------------ puntos */
.ggcc__dots {
	position: static;
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 28px;
}

.ggcc__dots .swiper-pagination-bullet {
	margin: 0 !important;
}

/* -------------------------------------------------- accesibilidad y táctil */
.ggcc__card:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

@media (hover: none) {
	.ggcc--text-hover .ggcc__reveal {
		max-height: 320px;
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ggcc *,
	.ggcc *::before,
	.ggcc *::after {
		transition-duration: .01ms !important;
	}
}
