/**
 * Estilos de los carruseles Box Jové.
 *
 * Los colores se exponen como variables para poder ajustarlos desde el tema.
 */

.bjp-carousel {
	--bjp-green: #7a8c1e;
	--bjp-green-dark: #6b7a1a;
	--bjp-card-bg: #f8eed4;
	--bjp-text: #2c2c2c;
	--bjp-dot: #1f2b3a;
	--bjp-dot-inactive: #c7c7c7;
	--bjp-arrow: #1f2b3a;
	--Antracita: #37424a;
	--Verde-oscuro: #838a00;

	position: relative;
	width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
}

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

.bjp-carousel__titulo {
	text-align: center;
	color: var(--bjp-green);
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 600;
	margin: 0 0 2.5rem;
}

/* Viewport: recorta lo que sobresale (los laterales del carrusel de opiniones). */
.bjp-viewport {
	overflow: hidden;
	width: 100%;
}

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

/* La transición se activa desde JS para poder reposicionar sin animación. */
.bjp-track.is-animating {
	transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.bjp-slide {
	flex: 0 0 auto;
	display: flex;
}

/* ----------------------------------------------------------------------- *
 *  Opiniones
 * ----------------------------------------------------------------------- */

.bjp-carousel--opiniones .bjp-slide {
	transition: opacity 0.4s ease;
}

/* Los laterales quedan algo atenuados; el central destaca. */
.bjp-carousel--opiniones .bjp-slide:not(.is-active) {
	opacity: 0.55;
}

.bjp-opinion-card {
	background: var(--bjp-card-bg);
	border-radius: 20px;
	padding: 48px;
	margin: 0;
	width: 100%;
	height: 100%; /* Todas las boxes igualan la altura de la más alta. */
	display: flex;
	flex-direction: column;
	justify-content: flex-start; /* La opinión se alinea arriba. */
	gap: 1.5rem;
}

/* Overrides sobre los estilos que Avada aplica a los blockquote:
   quita fondo, borde, sombra, comillas decorativas y la cursiva. */
.bjp-carousel blockquote.bjp-opinion-texto {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	font-style: normal;
	quotes: none;
	color: var(--Antracita, #37424a);
	font-family: 'Sora', sans-serif;
	font-size: 24px;
	font-weight: 400;
	line-height: 38.4px; /* 160% */
}

.bjp-carousel blockquote.bjp-opinion-texto::before,
.bjp-carousel blockquote.bjp-opinion-texto::after {
	content: none;
}

.bjp-opinion-cliente {
	color: var(--Verde-oscuro, #838a00);
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 24px; /* 150% */
}

/* ----------------------------------------------------------------------- *
 *  Productos
 * ----------------------------------------------------------------------- */

.bjp-producto-card {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 1.25rem;
}

.bjp-producto-imagen {
	width: 100%;
	aspect-ratio: 4 / 3;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bjp-producto-imagen img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.bjp-producto-nombre {
	margin: 0;
	color: var(--Antracita, #37424a);
	text-align: center;
	font-family: 'Inter', sans-serif;
	font-size: 20px;
	font-weight: 400;
	line-height: 29px; /* 145% */
}

/* ----------------------------------------------------------------------- *
 *  Controles: flechas + bullets
 * ----------------------------------------------------------------------- */

.bjp-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-top: 2rem;
}

.bjp-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--bjp-arrow);
	cursor: pointer;
	border-radius: 50%;
	transition: background 0.2s ease, transform 0.2s ease;
}

.bjp-arrow:hover {
	background: rgba(31, 43, 58, 0.08);
}

.bjp-arrow:active {
	transform: scale(0.92);
}

.bjp-arrow:focus-visible {
	outline: 2px solid var(--bjp-green);
	outline-offset: 2px;
}

.bjp-bullets {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.bjp-bullet {
	width: 23px;
	height: 23px;
	padding: 0;
	border-radius: 50%;
	border: 2px solid var(--bjp-dot);
	background: transparent;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.bjp-bullet.is-active {
	background: var(--bjp-dot);
}

.bjp-bullet:focus-visible {
	outline: 2px solid var(--bjp-green);
	outline-offset: 2px;
}

/* Aviso de "sin contenido" (solo visible para editores). */
.bjp-empty {
	padding: 1rem;
	border: 1px dashed #c7c7c7;
	border-radius: 8px;
	color: #666;
	text-align: center;
}

/* ----------------------------------------------------------------------- *
 *  Responsive
 * ----------------------------------------------------------------------- */

@media (max-width: 640px) {
	.bjp-opinion-card {
		padding: 1.75rem 1.5rem;
	}

	.bjp-opinion-texto {
		font-size: 1.125rem;
	}

	.bjp-carousel--opiniones .bjp-slide:not(.is-active) {
		opacity: 1;
	}
}
