/**
 * Component: Customer Stories (.akx-customer-stories)
 *
 * Bloque "13a · Video Testimonials" de Figma: cabecera centrada + carrusel
 * de tarjetas de vídeo-testimonio (poster + scrim + play, nombre y
 * contexto del cliente), con dots + flechas de navegación y un CTA final.
 *
 * El carrusel usa Swiper (ver assets/js/components/customer-stories.js).
 * El play abre el vídeo en el lightbox global del tema padre (Lity),
 * igual que el media del hero banner.
 *
 * Reutilizable en otras plantillas: basta con enqueuear este fichero
 * (y Swiper + el JS de init) ahí.
 */

.akx-customer-stories {
	--akx-cs-navy: #141B4D;
	--akx-cs-red: #CB333B;
	--akx-cs-border: #CDCBCA;
	--akx-cs-font: 'Jost', sans-serif;

	background: #F1F0EF;
	padding-block: 56px;
}

@media (min-width: 900px) {
	.akx-customer-stories {
		padding-block: 80px;
	}
}

.akx-customer-stories__container {
	max-width: 1136px;
	margin-inline: auto;
	padding-inline: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 28px;
}

/* ---------- Section head ---------- */

.akx-customer-stories__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	text-align: center;
	margin-inline: auto;
	max-width: 680px;
}

.akx-customer-stories__eyebrow {
	font: 700 12.5px/16px var(--akx-cs-font);
	letter-spacing: 1.75px;
	text-transform: uppercase;
	color: var(--akx-cs-red);
	margin: 0;
}

.akx-customer-stories__title {
	font: 700 clamp(26px, 4vw, 33px)/40px var(--akx-cs-font);
	letter-spacing: -0.33px;
	color: var(--akx-cs-navy);
	margin: 0;
}

.akx-customer-stories__description {
	font: 400 16px/25px var(--akx-cs-font);
	color: #63666A;
	margin: 0;
}

/* ---------- Vídeos (widget de Boast, igual que en /reviews/) ----------
   El marcado y los estilos de las tarjetas, puntos y flechas son los de la plantilla Reviews
   (css/reviews-page/components/featured.css, clases .akx-rv-video*). Aquí solo se anula el relleno y el
   fondo de banda que .akx-rv-video trae como sección propia, porque dentro de la home ya vive en esta sección. */
.akx-customer-stories .akx-customer-stories__boast.akx-rv-video {
	width: 100%;
	padding: 0;
	background: none;
}

/* ---------- Carousel viewport / track (Swiper) ---------- */

.akx-customer-stories__viewport {
	width: 100%;
	overflow: hidden;
}

.akx-customer-stories__card {
	box-sizing: border-box;
	width: 300px;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	background: #FFFFFF;
	border: 1px solid var(--akx-cs-border);
	box-shadow: 0 4px 14px rgba(20, 27, 77, 0.07);
	border-radius: 16px;
	overflow: hidden;
	height: auto;
}

@media (min-width: 640px) {
	.akx-customer-stories__card {
		width: 365px;
	}
}

/* ---------- Video poster ---------- */

.akx-customer-stories__poster {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 365 / 205;
	background: #000;
}

.akx-customer-stories__poster-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
}

.akx-customer-stories__scrim {
	position: absolute;
	inset: 0;
	background: rgba(20, 27, 77, 0.3);
}

.akx-customer-stories__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba(20, 27, 77, 0.62);
	border: 2px solid rgba(255, 255, 255, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
}

.akx-customer-stories__play-icon {
	width: 0;
	height: 0;
	margin-left: 3px;
	border-top: 7px solid transparent;
	border-bottom: 7px solid transparent;
	border-left: 11px solid #FFFFFF;
}

/* ---------- Testimonial meta ---------- */

.akx-customer-stories__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 14px 18px;
	gap: 3px;
}

.akx-customer-stories__name {
	font: 700 15px/20px var(--akx-cs-font);
	color: var(--akx-cs-navy);
	margin: 0;
}

.akx-customer-stories__context {
	font: 400 12.5px/18px var(--akx-cs-font);
	color: #404040;
	margin: 0;
}

/* ---------- Controls (dots + arrows) ---------- */

.akx-customer-stories__controls {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
}

.akx-customer-stories__dots {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 8px;
}

.akx-customer-stories__dots .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--akx-cs-border);
	opacity: 1;
	margin: 0;
	transition: width 0.2s ease, background-color 0.2s ease;
}

.akx-customer-stories__dots .swiper-pagination-bullet-active {
	width: 22px;
	background: var(--akx-cs-navy);
}

.akx-customer-stories__arrows {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
}

.akx-customer-stories__arrow {
	box-sizing: border-box;
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #FFFFFF;
	border: 1px solid var(--akx-cs-border);
	border-radius: 999px;
	padding: 0;
	cursor: pointer;
}

.akx-customer-stories__arrow::before {
	content: '';
	width: 9px;
	height: 9px;
	border-top: 2.2px solid var(--akx-cs-navy);
	border-right: 2.2px solid var(--akx-cs-navy);
}

.akx-customer-stories__arrow--prev::before {
	transform: rotate(-135deg) translate(1px, -1px);
}

.akx-customer-stories__arrow--next::before {
	transform: rotate(45deg) translate(-1px, -1px);
}

.akx-customer-stories__arrow.swiper-button-disabled {
	opacity: 0.4;
	cursor: default;
	pointer-events: none;
}

/* ---------- CTA ---------- */

.akx-customer-stories__cta {
	font: 400 16px/25px var(--akx-cs-font);
	color: var(--akx-cs-red);
	text-decoration: none;
}

.akx-customer-stories__cta:hover {
	text-decoration: underline;
}
