/* Nido Testimonios - personalizá los colores acá */
.nido-test {
	--nt-bg: #f7efe6;
	--nt-text: #1f3344;
	--nt-hl: #634E42;
	--nt-star: #d19a2e;
	--nt-arrow: #634E42;
	--nt-dot: #634E42;
	--nt-card-w: 58%;
	--nt-gap: 24px;
	--nt-arrow-w: 60px;
	--nt-dot-size: 22px;
	--nt-inactive: .75;
	--nt-fade: 14%;

	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 40px 24px;
	box-sizing: border-box;
}
.nido-test *, .nido-test *::before, .nido-test *::after { box-sizing: border-box; }

.nido-test__title {
	margin: 0 0 48px;
	text-align: center;
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 400;
	font-size: clamp(30px, 4vw, 52px);
	color: var(--nt-text);
}

.nido-test__viewport {
	overflow: hidden;
	/* Degradé en los bordes: las tarjetas laterales se funden con el fondo */
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--nt-fade), #000 calc(100% - var(--nt-fade)), transparent 100%);
	mask-image: linear-gradient(to right, transparent 0, #000 var(--nt-fade), #000 calc(100% - var(--nt-fade)), transparent 100%);
}

.nido-test__track {
	position: relative;
	display: flex;
	align-items: stretch;
	gap: var(--nt-gap);
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.nido-test__track::-webkit-scrollbar { display: none; }

/* Espaciadores: centran la primera y la última tarjeta sin achicarlas */
.nido-test__track::before,
.nido-test__track::after {
	content: "";
	flex: 0 0 max(0px, calc((100% - var(--nt-card-w)) / 2 - var(--nt-gap)));
}

.nido-test__card {
	flex: 0 0 var(--nt-card-w);
	min-width: 0;
	margin: 0;
	display: flex;
	scroll-snap-align: center;
	background: var(--nt-bg);
	border-radius: 10px;
	opacity: var(--nt-inactive);
	transition: opacity .3s;
}
.nido-test__card.is-active { opacity: 1; }

.nido-test__inner {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	width: 100%;
	padding: 56px 64px;
}

.nido-test__stars { display: flex; gap: 6px; margin-bottom: 32px; color: var(--nt-star); }
.nido-test__stars .is-off { opacity: .25; }
.nido-test__stars svg { display: block; }

.nido-test__text {
	margin: 0 0 32px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 22px;
	line-height: 1.6;
	color: var(--nt-text);
}
.nido-test__hl { color: var(--nt-hl); }

.nido-test__author {
	margin: auto 0 0;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--nt-text);
}

.nido-test__nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 48px;
	padding: 0 10%;
}

/* Reset: evita que el tema del sitio pinte los botones como cajas */
.nido-test .nido-test__arrow,
.nido-test .nido-test__dot {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	min-width: 0;
	min-height: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	font: inherit;
	line-height: 0;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
	cursor: pointer;
	transition: opacity .2s, transform .2s;
}
.nido-test .nido-test__arrow:hover,
.nido-test .nido-test__arrow:focus,
.nido-test .nido-test__arrow:active,
.nido-test .nido-test__dot:hover,
.nido-test .nido-test__dot:focus,
.nido-test .nido-test__dot:active {
	border: 0;
	background: none;
	box-shadow: none;
}
.nido-test .nido-test__arrow:focus-visible,
.nido-test .nido-test__dot:focus-visible {
	outline: 2px solid var(--nt-arrow);
	outline-offset: 4px;
}

.nido-test .nido-test__arrow { width: auto; height: auto; color: var(--nt-arrow); }
.nido-test .nido-test__arrow:hover:not(:disabled) { transform: scale(1.1); color: var(--nt-arrow); }
.nido-test .nido-test__arrow:disabled { opacity: .3; cursor: default; }
.nido-test .nido-test__arrow svg { display: block; width: var(--nt-arrow-w); height: auto; }
.nido-test .nido-test__arrow i { font-size: calc(var(--nt-arrow-w) * .5); line-height: 1; }
.nido-test .nido-test__arrow.is-flip svg,
.nido-test .nido-test__arrow.is-flip i { transform: scaleX(-1); }

.nido-test__dots { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; }
.nido-test .nido-test__dot {
	width: var(--nt-dot-size);
	height: var(--nt-dot-size);
	aspect-ratio: 1 / 1;
	color: var(--nt-dot);
}
.nido-test .nido-test__dot:hover { transform: scale(1.15); color: var(--nt-dot); }
.nido-test__dot > span { display: flex; width: 100%; height: 100%; }
.nido-test__dot svg { display: block; width: 100%; height: 100%; }
.nido-test__dot i { font-size: calc(var(--nt-dot-size) * .8); line-height: 1; }
.nido-test__dot .nido-test__dot-on { display: none; }
.nido-test__dot.is-active .nido-test__dot-off { display: none; }
.nido-test__dot.is-active .nido-test__dot-on { display: flex; }

.nido-test__custom { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }

@media (max-width: 1024px) {
	.nido-test { --nt-card-w: 78%; --nt-fade: 8%; }
	.nido-test__inner { padding: 40px 36px; }
	.nido-test__text { font-size: 19px; }
}
@media (max-width: 640px) {
	.nido-test { --nt-fade: 4%; --nt-arrow-w: 36px; --nt-dot-size: 14px; --nt-card-w: 86%; --nt-gap: 14px; padding: 24px 12px; }
	.nido-test__inner { padding: 32px 24px; }
	.nido-test__text { font-size: 17px; }
	.nido-test__nav { padding: 0 4px; gap: 8px; }
	.nido-test__dots { gap: 8px; }
}

/* Refuerzo: gana a los estilos de botón del tema */
.nido-test .nido-test__arrow,
.nido-test .nido-test__dot {
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}
.nido-test .nido-test__dot {
	width: var(--nt-dot-size) !important;
	height: var(--nt-dot-size) !important;
}
