.tw-carrusel {
	--tw-por-vista: 3;
	--tw-separacion: 18px;
	--tw-tarjeta-fondo: rgba(11, 37, 65, 0.55);
	--tw-tarjeta-borde: rgba(255, 255, 255, 0.12);
	--tw-tarjeta-radio: 20px;
	--tw-acento: var(--e-global-color-primary, #1daaa1);
	--tw-color-cifra: #43c6bc;
	--tw-color-titulo: #fff;
	--tw-color-texto: rgba(233, 241, 244, 0.72);
	--tw-color-puntos: rgba(255, 255, 255, 0.25);
	--tw-color-flechas: rgba(233, 241, 244, 0.72);
	position: relative;
}

/* La pista se desplaza sola (scroll-snap): funciona con dedo, trackpad y teclado aun sin JavaScript. */
.tw-carrusel__pista {
	display: flex;
	gap: var(--tw-separacion);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
	padding: 2px;
	border-radius: var(--tw-tarjeta-radio);
}

.tw-carrusel__pista::-webkit-scrollbar { display: none; }

.tw-carrusel__pista:focus { outline: none; }
.tw-carrusel__pista:focus-visible { outline: 2px solid var(--tw-acento); outline-offset: 4px; }

.tw-carrusel__tarjeta {
	box-sizing: border-box;
	flex: 0 0 calc((100% - (var(--tw-por-vista) - 1) * var(--tw-separacion)) / var(--tw-por-vista));
	scroll-snap-align: start;
	position: relative;
	overflow: hidden;
	padding: 22px 26px 26px;
	border: 1px solid var(--tw-tarjeta-borde);
	border-radius: var(--tw-tarjeta-radio);
	background-color: var(--tw-tarjeta-fondo);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	transition: border-color .25s, background-color .25s;
}

/* Línea de acento superior. */
.tw-carrusel__tarjeta::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 3px;
	background: linear-gradient(90deg, var(--tw-acento), transparent);
}

.tw-carrusel__tarjeta:hover {
	border-color: color-mix(in srgb, var(--tw-acento) 55%, transparent);
	background-color: color-mix(in srgb, var(--tw-acento) 7%, transparent);
}

.tw-carrusel__cifra {
	display: block;
	font-family: var(--e-global-typography-primary-font-family, "Raleway"), sans-serif;
	font-weight: 800;
	font-size: clamp(2.8rem, 4vw, 3.6rem);
	line-height: 1;
	letter-spacing: -.02em;
	font-variant-numeric: lining-nums;
	color: var(--tw-color-cifra);
}

.tw-carrusel__titulo {
	display: block;
	margin: 14px 0 6px;
	font-family: var(--e-global-typography-text-font-family, "Source Sans 3"), sans-serif;
	font-weight: 700;
	font-size: 1.2rem;
	line-height: 1.25;
	color: var(--tw-color-titulo);
}

.tw-carrusel__cifra + .tw-carrusel__texto { margin-top: 14px; }

.tw-carrusel__texto {
	display: block;
	max-width: 34ch;
	font-family: var(--e-global-typography-text-font-family, "Source Sans 3"), sans-serif;
	font-size: 1rem;
	line-height: 1.55;
	color: var(--tw-color-texto);
}

/* Puntos y flechas. */
.tw-carrusel__navegacion {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 26px;
}

.tw-carrusel__navegacion[hidden] { display: none; }

.tw-carrusel__puntos { display: flex; align-items: center; }

/* Botones con selectores dobles: el tema y el kit de Elementor estilizan todos los <button>. */
.tw-carrusel .tw-carrusel__punto,
.tw-carrusel .tw-carrusel__flecha {
	-webkit-appearance: none;
	appearance: none;
	display: inline-grid;
	place-items: center;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	box-shadow: none;
	color: var(--tw-color-flechas);
	font: inherit;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
}

/* Cada punto ocupa 24 px para que sea fácil de tocar; lo que se ve es la píldora. */
.tw-carrusel .tw-carrusel__punto {
	width: 24px;
	height: 24px;
	transition: width .3s;
}

.tw-carrusel .tw-carrusel__punto::before {
	content: "";
	width: 9px;
	height: 9px;
	border-radius: 999px;
	background: var(--tw-color-puntos);
	transition: width .3s, background-color .3s;
}

.tw-carrusel .tw-carrusel__punto[aria-current="true"] { width: 36px; }
.tw-carrusel .tw-carrusel__punto[aria-current="true"]::before { width: 26px; background: var(--tw-acento); }

.tw-carrusel .tw-carrusel__flecha {
	width: 40px;
	height: 40px;
	border: 1px solid var(--tw-tarjeta-borde);
	transition: border-color .25s, color .25s, background-color .25s;
}

.tw-carrusel .tw-carrusel__flecha svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tw-carrusel .tw-carrusel__punto:hover,
.tw-carrusel .tw-carrusel__punto:focus,
.tw-carrusel .tw-carrusel__punto:active {
	background: transparent;
	box-shadow: none;
	outline: none;
}

.tw-carrusel .tw-carrusel__flecha:hover,
.tw-carrusel .tw-carrusel__flecha:focus,
.tw-carrusel .tw-carrusel__flecha:active {
	border-color: color-mix(in srgb, var(--tw-acento) 55%, transparent);
	background: color-mix(in srgb, var(--tw-acento) 7%, transparent);
	color: var(--tw-acento);
	box-shadow: none;
	outline: none;
}

.tw-carrusel .tw-carrusel__punto:focus-visible,
.tw-carrusel .tw-carrusel__flecha:focus-visible {
	outline: 2px solid var(--tw-acento);
	outline-offset: 2px;
}

@media (max-width: 767px) {
	.tw-carrusel__tarjeta { padding: 20px 22px 24px; }
}

/* Con «reducir movimiento»: sin desplazamiento suave ni transiciones (el JavaScript tampoco avanza solo). */
@media (prefers-reduced-motion: reduce) {
	.tw-carrusel__pista { scroll-behavior: auto; }
	.tw-carrusel__tarjeta,
	.tw-carrusel .tw-carrusel__punto,
	.tw-carrusel .tw-carrusel__punto::before,
	.tw-carrusel .tw-carrusel__flecha { transition: none; }
}
