/*!
 * NC Circular Carousel 1.0.2
 * NINJA CLAN — https://ninjaclan.com.ar
 *
 * Todo se controla con variables CSS en .ncc-carousel. Los controles de Elementor
 * sobrescriben estas variables con un selector más específico ({{WRAPPER}} .ncc-carousel).
 * Breakpoints por defecto alineados con Elementor: tablet ≤ 1024px, mobile ≤ 767px.
 */

.ncc-carousel {
	/* Escenario */
	--ncc-count: 4;
	--ncc-stage-h: 100vh;
	--ncc-per-slide: 75vh;
	--ncc-sticky-top: 0px;
	--ncc-radius: 44px;

	/* Encabezado */
	--ncc-head-top: 76px;
	--ncc-head-side: 50px;
	--ncc-head-gap: 24px;
	--ncc-head-dir: row;
	--ncc-head-align: flex-start;
	--ncc-head-justify: space-between;
	--ncc-head-text: left;
	--ncc-heading-color: #fff;
	--ncc-heading-w: none;

	/* Contador */
	--ncc-counter-size: 51px;
	--ncc-counter-border: 1.5px;
	--ncc-counter-from: #848484;
	--ncc-counter-to: #1e1e1e;
	--ncc-counter-bg: #000;
	--ncc-counter-color: #fff;

	/* Anillo y puntos */
	--ncc-ring-size: 92%;
	--ncc-ring-top: 16%;
	--ncc-ring-color: #4e4e4e;
	--ncc-ring-w: 1px;
	--ncc-dot-size: 11px;
	--ncc-dot-color: #0093d7;
	--ncc-dot-active-color: var(--ncc-dot-color);
	--ncc-dot-active-scale: 1;
	--ncc-dot-halo: transparent;

	/* Línea */
	--ncc-stick-h: 80px;
	--ncc-stick-w: 1px;
	--ncc-stick-color: #4e4e4e;
	--ncc-stick-gap: 20px;
	--ncc-stick-grow: 0;
	--ncc-spacer-grow: 1;

	/* Contenido */
	--ncc-content-w: 339px;
	--ncc-content-bottom: 90px;
	--ncc-media-gap: 42px;
	--ncc-text-align: center;
	--ncc-desc-ml: auto;
	--ncc-desc-mr: auto;
	--ncc-title-color: #fff;
	--ncc-title-gap: 18px;
	--ncc-desc-color: #fff;
	--ncc-desc-w: 291px;

	/* Imagen */
	--ncc-media-size: 339px;
	--ncc-media-max: 9999px;
	--ncc-media-radius: 50%;
	--ncc-media-bg: #111;

	/* Resplandor */
	--ncc-glow-color: rgba(0, 158, 218, 0.33);
	--ncc-glow-w: 900px;
	--ncc-glow-h: 400px;
	--ncc-glow-blur: 166px;
	--ncc-glow-bottom: -15%;

	/* Flechas */
	--ncc-arrow-size: 51px;
	--ncc-arrow-gap: 28px;
	--ncc-arrow-color: #fff;
	--ncc-arrow-bg: #000;
	--ncc-arrow-hover-bg: #0093d7;
	--ncc-focus-gap: rgba(0, 0, 0, 0.85);

	/* Tiempos */
	--ncc-rot-dur: 450ms;
	--ncc-rot-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
	--ncc-text-dur: 500ms;
	--ncc-stagger: 12ms;
	--ncc-desc-delay: 300ms;
	--ncc-img-dur: 600ms;
	--ncc-ease-out: cubic-bezier(0.22, 1, 0.36, 1);

	position: relative;
	display: block;
	width: 100%;
	box-sizing: border-box;
}

@supports (height: 100svh) {
	.ncc-carousel {
		--ncc-stage-h: 100svh;
	}
}

@supports (width: 1cqh) {
	.ncc-carousel {
		--ncc-media-max: 38cqh;
	}
}

.ncc-carousel *,
.ncc-carousel *::before,
.ncc-carousel *::after {
	box-sizing: border-box;
}

/* ---------- Pin / escenario ---------- */

.ncc-carousel.ncc-mode-scroll {
	height: calc(var(--ncc-stage-h) + var(--ncc-per-slide) * var(--ncc-count));
}

.ncc-pin {
	position: relative;
	width: 100%;
	height: var(--ncc-stage-h);
	padding: 10px;
}

.ncc-mode-scroll .ncc-pin {
	position: -webkit-sticky;
	position: sticky;
	top: var(--ncc-sticky-top);
}

.ncc-stage {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	border-radius: var(--ncc-radius);
	background-color: #000;
	isolation: isolate;
	container-type: size;
}

.ncc-stage.ncc-swipe {
	touch-action: pan-y;
	-webkit-user-select: none;
	user-select: none;
}

/* ---------- Resplandor ---------- */

.ncc-glow {
	position: absolute;
	z-index: 1;
	left: 50%;
	bottom: var(--ncc-glow-bottom);
	width: var(--ncc-glow-w);
	height: var(--ncc-glow-h);
	max-width: none;
	border-radius: 50%;
	background: var(--ncc-glow-color);
	filter: blur(var(--ncc-glow-blur));
	transform: translateX(-50%);
	pointer-events: none;
}

/* ---------- Encabezado ---------- */

.ncc-header {
	position: absolute;
	z-index: 6;
	top: var(--ncc-head-top);
	left: var(--ncc-head-side);
	right: var(--ncc-head-side);
	display: flex;
	flex-direction: var(--ncc-head-dir);
	align-items: var(--ncc-head-align);
	justify-content: var(--ncc-head-justify);
	gap: var(--ncc-head-gap);
	text-align: var(--ncc-head-text);
	pointer-events: none;
}

.ncc-carousel .ncc-heading {
	margin: 0;
	padding: 0;
	max-width: var(--ncc-heading-w);
	color: var(--ncc-heading-color);
	font-size: 40px;
	line-height: 48px;
	letter-spacing: -1.6px;
	font-weight: 700;
	pointer-events: auto;
}

.ncc-heading .ncc-word {
	display: inline-block;
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.6s var(--ncc-ease-out), transform 0.6s var(--ncc-ease-out);
	transition-delay: 0s;
}

.ncc-inview .ncc-heading .ncc-word {
	opacity: 1;
	transform: none;
	transition-delay: calc(var(--ncc-w, 0) * 40ms);
}

/* ---------- Contador ---------- */

.ncc-counter {
	flex: 0 0 auto;
	width: var(--ncc-counter-size);
	height: var(--ncc-counter-size);
	padding: var(--ncc-counter-border);
	border-radius: 999px;
	background: linear-gradient(to bottom, var(--ncc-counter-from), var(--ncc-counter-to));
}

.ncc-counter.ncc-counter--pill {
	width: auto;
	min-width: var(--ncc-counter-size);
}

.ncc-counter-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	border-radius: inherit;
	background: var(--ncc-counter-bg);
	overflow: hidden;
}

.ncc-counter--pill .ncc-counter-inner {
	padding: 0 calc(var(--ncc-counter-size) * 0.3);
}

.ncc-carousel .ncc-counter-num {
	display: inline-block;
	color: var(--ncc-counter-color);
	font-size: 24px;
	line-height: 24px;
	font-weight: 300;
	letter-spacing: -0.72px;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.ncc-counter-num.is-changing {
	animation: ncc-num-in 0.45s var(--ncc-ease-out) both;
}

@keyframes ncc-num-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* ---------- Anillo ---------- */

.ncc-ring {
	position: absolute;
	z-index: 2;
	left: 50%;
	top: var(--ncc-ring-top);
	width: var(--ncc-ring-size);
	max-width: none;
	aspect-ratio: 1 / 1;
	transform: translateX(-50%);
	pointer-events: none;
}

.ncc-ring-rot {
	position: absolute;
	inset: 0;
	transform: rotate(0deg);
	transition: transform var(--ncc-rot-dur) var(--ncc-rot-ease);
	will-change: transform;
}

.ncc-ring-line {
	position: absolute;
	inset: 0;
	border: var(--ncc-ring-w) solid var(--ncc-ring-color);
	border-radius: 50%;
}

.ncc-arm {
	position: absolute;
	inset: 0;
	transform: rotate(var(--ncc-a, 0deg));
	pointer-events: none;
}

.ncc-carousel .ncc-dot,
.ncc-carousel button.ncc-dot,
.ncc-carousel button.ncc-dot:hover,
.ncc-carousel button.ncc-dot:focus,
.ncc-carousel button.ncc-dot:active {
	position: absolute;
	top: calc(var(--ncc-ring-w) / 2);
	left: 50%;
	width: max(28px, calc(var(--ncc-dot-size) + 14px));
	height: max(28px, calc(var(--ncc-dot-size) + 14px));
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	color: inherit;
	font-size: 0;
	line-height: 0;
	transform: translate(-50%, -50%);
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	pointer-events: auto;
	-webkit-tap-highlight-color: transparent;
}

.ncc-carousel span.ncc-dot {
	cursor: default;
	pointer-events: none;
}

.ncc-dot::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: var(--ncc-dot-size);
	height: var(--ncc-dot-size);
	border-radius: 50%;
	background: var(--ncc-dot-color);
	box-shadow: 0 0 0 0 var(--ncc-dot-halo);
	transform: translate(-50%, -50%) scale(1);
	transition: transform 0.35s var(--ncc-ease-out), background-color 0.35s ease, box-shadow 0.35s ease;
}

.ncc-dot.is-active::before {
	background: var(--ncc-dot-active-color);
	box-shadow: 0 0 0 calc(var(--ncc-dot-size) * 0.6) var(--ncc-dot-halo);
	transform: translate(-50%, -50%) scale(var(--ncc-dot-active-scale));
}

.ncc-carousel button.ncc-dot:hover::before {
	transform: translate(-50%, -50%) scale(calc(var(--ncc-dot-active-scale) * 1.25));
}

/* Foco: sin outline nativo. Firefox + temas con normalize.css dibujan un punteado
   (button:-moz-focusring / button:focus { outline: dotted }) que Chrome no muestra.
   Se reemplaza por un anillo propio con box-shadow, solo para navegación con teclado. */
.ncc-carousel button.ncc-dot,
.ncc-carousel button.ncc-dot:focus,
.ncc-carousel button.ncc-arrow,
.ncc-carousel button.ncc-arrow:focus,
.ncc-carousel button.ncc-arrow:active {
	outline: none !important;
	-webkit-tap-highlight-color: transparent;
}

/* Reglas solo-Firefox en bloques separados: un pseudo desconocido invalida la regla entera en Chrome. */
.ncc-carousel button.ncc-dot:-moz-focusring,
.ncc-carousel button.ncc-arrow:-moz-focusring {
	outline: none !important;
}

.ncc-carousel button.ncc-dot::-moz-focus-inner,
.ncc-carousel button.ncc-arrow::-moz-focus-inner {
	padding: 0;
	border: 0;
}

.ncc-carousel button.ncc-dot:focus-visible {
	outline: none !important;
	box-shadow: 0 0 0 2px var(--ncc-dot-color);
}

/* ---------- Bloque de contenido ---------- */

.ncc-content {
	position: absolute;
	z-index: 4;
	left: 50%;
	top: calc(var(--ncc-ring-top) + var(--ncc-dot-size) / 2);
	bottom: var(--ncc-content-bottom);
	width: var(--ncc-content-w);
	max-width: calc(100% - 32px);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: var(--ncc-text-align);
	transform: translateX(-50%);
	pointer-events: none;
}

.ncc-stick {
	display: block;
	flex: var(--ncc-stick-grow) 1 var(--ncc-stick-h);
	width: var(--ncc-stick-w);
	min-height: 0;
	margin-bottom: var(--ncc-stick-gap);
	background: var(--ncc-stick-color);
	transform-origin: top center;
}

.ncc-stick.ncc-stick--off {
	background: transparent;
}

.ncc-stick.is-anim {
	animation: ncc-stick-in var(--ncc-text-dur) var(--ncc-ease-out) both;
}

@keyframes ncc-stick-in {
	from {
		opacity: 0;
		transform: scaleY(0);
	}
	to {
		opacity: 1;
		transform: scaleY(1);
	}
}

.ncc-spacer {
	display: block;
	flex: var(--ncc-spacer-grow) 1 0px;
	min-height: 0;
}

/* ---------- Textos ---------- */

.ncc-texts {
	display: grid;
	flex: 0 0 auto;
	width: 100%;
}

.ncc-text {
	grid-area: 1 / 1;
	min-width: 0;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.ncc-text.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition: opacity 0s, visibility 0s;
}

.ncc-textfx-fade .ncc-text.is-active {
	transition: opacity var(--ncc-text-dur) var(--ncc-ease-out), visibility 0s;
}

.ncc-carousel .ncc-title {
	margin: 0 0 var(--ncc-title-gap);
	padding: 0;
	color: var(--ncc-title-color);
	font-size: 24px;
	line-height: 28px;
	font-weight: 700;
}

.ncc-carousel .ncc-title:last-child {
	margin-bottom: 0;
}

.ncc-carousel .ncc-title a,
.ncc-carousel .ncc-title a:hover {
	color: inherit;
	text-decoration: none;
}

.ncc-carousel .ncc-desc {
	margin: 0 var(--ncc-desc-mr) 0 var(--ncc-desc-ml);
	padding: 0;
	max-width: var(--ncc-desc-w);
	color: var(--ncc-desc-color);
	font-size: 16px;
	line-height: 22px;
	font-weight: 300;
}

.ncc-carousel .ncc-desc a {
	color: inherit;
}

/* Palabra por palabra */
.ncc-textfx-words .ncc-text .ncc-word {
	display: inline-block;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity var(--ncc-text-dur) var(--ncc-ease-out), transform var(--ncc-text-dur) var(--ncc-ease-out);
	transition-delay: 0s;
}

.ncc-textfx-words .ncc-text.is-active .ncc-word {
	opacity: 1;
	transform: none;
	transition-delay: calc(var(--ncc-w, 0) * var(--ncc-stagger));
}

.ncc-textfx-words .ncc-text.is-active .ncc-desc .ncc-word {
	transition-delay: calc(var(--ncc-desc-delay) + var(--ncc-w, 0) * var(--ncc-stagger));
}

/* ---------- Imagen ---------- */

.ncc-media-wrap {
	position: relative;
	flex: 0 0 auto;
	width: min(var(--ncc-media-size), var(--ncc-media-max), 100%);
	margin-top: var(--ncc-media-gap);
	pointer-events: none;
}

.ncc-media {
	position: relative;
	width: 100%;
	max-width: none;
	aspect-ratio: 1 / 1;
	border-radius: var(--ncc-media-radius);
	background: var(--ncc-media-bg);
	overflow: hidden;
	isolation: isolate;
	pointer-events: auto;
}

@supports not (width: 1cqh) {
	.ncc-carousel .ncc-media-wrap {
		width: min(var(--ncc-media-size), 100%);
	}
}

.ncc-img {
	position: absolute;
	inset: 0;
	z-index: 0;
	opacity: 0;
	visibility: hidden;
	transition:
		opacity var(--ncc-img-dur) var(--ncc-ease-out),
		transform var(--ncc-img-dur) var(--ncc-ease-out),
		clip-path var(--ncc-img-dur) var(--ncc-ease-out),
		visibility 0s linear var(--ncc-img-dur);
}

.ncc-img.is-prev {
	z-index: 1;
	opacity: 1;
	visibility: visible;
	transform: none;
	clip-path: circle(75% at 50% 50%);
	transition: none;
}

.ncc-img.is-active {
	z-index: 2;
	opacity: 1;
	visibility: visible;
	transform: none;
	clip-path: circle(75% at 50% 50%);
	transition-delay: 0s;
}

.ncc-img > a {
	display: block;
	width: 100%;
	height: 100%;
}

.ncc-carousel .ncc-img img,
.ncc-carousel .ncc-img-el {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	object-fit: cover;
	-webkit-user-drag: none;
}

/* Efectos: estado de reposo (solo para imágenes que no están activas ni saliendo) */
.ncc-imgfx-zoom .ncc-img:not(.is-active):not(.is-prev) {
	transform: scale(1.15);
}

.ncc-imgfx-slide .ncc-img:not(.is-active):not(.is-prev) {
	opacity: 1;
	transform: translateY(100%);
}

.ncc-imgfx-clip .ncc-img:not(.is-active):not(.is-prev) {
	opacity: 1;
	clip-path: circle(0% at 50% 50%);
}

.ncc-imgfx-none .ncc-img {
	transition: none;
}

/* ---------- Flechas ---------- */

/* Las flechas flanquean la imagen (lejos de los puntos laterales del anillo). */
.ncc-carousel button.ncc-arrow,
.ncc-carousel button.ncc-arrow:hover,
.ncc-carousel button.ncc-arrow:focus {
	position: absolute;
	z-index: 7;
	top: 50%;
	transform: translateY(-50%);
	width: var(--ncc-arrow-size);
	height: var(--ncc-arrow-size);
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: var(--ncc-counter-border);
	border: 0;
	border-radius: 999px;
	background: linear-gradient(to bottom, var(--ncc-counter-from), var(--ncc-counter-to));
	box-shadow: none;
	color: var(--ncc-arrow-color);
	line-height: 0;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	pointer-events: auto;
}

.ncc-carousel button.ncc-prev {
	right: calc(100% + var(--ncc-arrow-gap));
	left: auto;
}

.ncc-carousel button.ncc-next {
	left: calc(100% + var(--ncc-arrow-gap));
	right: auto;
}

.ncc-arrow-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	border-radius: inherit;
	background: var(--ncc-arrow-bg);
	transition: background-color 0.25s ease;
}

.ncc-carousel button.ncc-arrow:hover .ncc-arrow-inner,
.ncc-carousel button.ncc-arrow:focus-visible .ncc-arrow-inner {
	background: var(--ncc-arrow-hover-bg);
}

.ncc-carousel button.ncc-arrow:focus-visible {
	outline: none !important;
	box-shadow: 0 0 0 2px var(--ncc-focus-gap), 0 0 0 4px var(--ncc-arrow-hover-bg);
}

.ncc-carousel button.ncc-arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

.ncc-arrow svg {
	display: block;
	width: 40%;
	height: 40%;
}

/* ---------- Utilidades ---------- */

.ncc-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ncc-empty {
	padding: 24px;
	border: 1px dashed #9aa0a6;
	text-align: center;
	font-size: 14px;
}

/* ---------- Responsive (por defecto; Elementor lo pisa con sus controles) ---------- */

@media (max-width: 1024px) {
	.ncc-carousel {
		--ncc-head-top: 56px;
		--ncc-head-side: 40px;
		--ncc-ring-size: 120%;
		--ncc-ring-top: 30%;
		--ncc-stick-h: 40px;
		--ncc-stick-gap: 14px;
		--ncc-stick-grow: 1;
		--ncc-spacer-grow: 0;
		--ncc-content-w: 300px;
		--ncc-content-bottom: 60px;
		--ncc-media-gap: 32px;
		--ncc-media-size: 240px;
		--ncc-title-gap: 12px;
		--ncc-desc-w: 260px;
	}

	.ncc-carousel .ncc-title {
		font-size: 18px;
	}

	.ncc-carousel .ncc-desc {
		font-size: 14px;
	}
}

@media (max-width: 767px) {
	.ncc-carousel {
		--ncc-head-dir: column;
		--ncc-head-align: center;
		--ncc-head-justify: flex-start;
		--ncc-head-text: center;
		--ncc-head-top: 40px;
		--ncc-head-side: 20px;
		--ncc-head-gap: 16px;
		--ncc-ring-size: 108%;
		--ncc-ring-top: 44%;
		--ncc-stick-h: 16px;
		--ncc-stick-gap: 10px;
		--ncc-stick-grow: 1;
		--ncc-spacer-grow: 0;
		--ncc-content-w: 86%;
		--ncc-content-bottom: 40px;
		--ncc-media-gap: 22px;
		--ncc-media-size: 180px;
		--ncc-title-gap: 8px;
		--ncc-desc-w: 100%;
		--ncc-glow-w: 520px;
		--ncc-glow-h: 320px;
		--ncc-glow-blur: 100px;
		--ncc-arrow-gap: 14px;
		--ncc-arrow-size: 44px;
	}

	.ncc-carousel .ncc-heading {
		font-size: 32px;
		line-height: 40px;
		letter-spacing: -1.28px;
	}
}

/* ---------- Movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
	.ncc-carousel {
		--ncc-rot-dur: 1ms !important;
		--ncc-text-dur: 1ms !important;
		--ncc-stagger: 0ms !important;
		--ncc-desc-delay: 0ms !important;
		--ncc-img-dur: 1ms !important;
	}

	.ncc-heading .ncc-word {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.ncc-counter-num.is-changing,
	.ncc-stick.is-anim {
		animation: none;
	}
}
