/* Container Carousel for Elementor — estilos base.
   Los valores de color/tamaño se sobrescriben con los controles de Elementor. */

.ecc-carousel {
	position: relative;
}

.ecc-stage {
	position: relative;
	width: 100%;
	flex: 1 1 100%;
}

.ecc-viewport {
	overflow: hidden;
	width: 100%;
}

.ecc-track {
	display: flex;
	align-items: stretch;
	will-change: transform;
}

.ecc-track.ecc-animate {
	transition: transform var(--ecc-speed, 400ms) ease;
}

/* Cada hijo del contenedor que actúa como slide. */
.ecc-carousel .ecc-slide {
	box-sizing: border-box;
	height: auto;
}

/* ----- Flechas ----- */
.ecc-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	margin: 0;
	border: none;
	border-radius: 50%;
	background-color: #ffffff;
	color: #1f1f1f;
	cursor: pointer;
	z-index: 5;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
	transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.ecc-arrow svg {
	width: 48%;
	height: 48%;
	display: block;
	fill: currentColor;
	pointer-events: none;
}

.ecc-arrow.ecc-prev {
	left: 8px;
}

.ecc-arrow.ecc-next {
	right: 8px;
}

.ecc-arrow[disabled] {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

.ecc-arrow:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* ----- Puntos ----- */
.ecc-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
	width: 100%;
}

.ecc-dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background-color: rgba(0, 0, 0, 0.25);
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.ecc-dot:hover {
	transform: scale(1.15);
}

.ecc-dot.is-active {
	background-color: #1f1f1f;
}

/* Evita el "salto" mientras el JS no ha inicializado. */
.ecc-carousel:not(.ecc-ready) .ecc-arrow,
.ecc-carousel:not(.ecc-ready) .ecc-dots {
	display: none;
}
