/* Carruseles E&V — Productos y Testimonios */

.eyv-carousel {
	--eyv-gap: 1rem;
	--eyv-radius: 12px;
	max-width: 1100px;
	margin: 2.5rem auto;
	padding: 0 1.25rem;
	box-sizing: border-box;
}

.eyv-carousel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.eyv-carousel__title {
	margin: 0;
	font-size: clamp(1.35rem, 2.5vw, 1.85rem);
	line-height: 1.2;
}

.eyv-carousel__nav {
	display: flex;
	gap: 0.5rem;
}

.eyv-carousel__btn {
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid #ccc;
	border-radius: 999px;
	background: #fff;
	cursor: pointer;
	font-size: 1.1rem;
	line-height: 1;
}

.eyv-carousel__btn:hover {
	border-color: #333;
}

.eyv-carousel__btn:disabled {
	opacity: 0.35;
	cursor: default;
}

.eyv-carousel__viewport {
	overflow: hidden;
}

.eyv-carousel__track {
	display: flex;
	gap: var(--eyv-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding-bottom: 0.25rem;
}

.eyv-carousel__track::-webkit-scrollbar {
	display: none;
}

.eyv-carousel__slide {
	flex: 0 0 min(100%, 320px);
	scroll-snap-align: start;
	border-radius: var(--eyv-radius);
	overflow: hidden;
	background: #1a1a1a;
	color: #fff;
	min-height: 360px;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.eyv-carousel__slide--testimonio {
	background: #f4f4f4;
	color: #222;
	min-height: 280px;
	border: 1px solid #e5e5e5;
	padding: 1.25rem;
	justify-content: flex-start;
}

.eyv-carousel__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	z-index: 0;
}

.eyv-carousel__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 10%, rgba(0, 0, 0, 0.25) 55%, transparent 100%);
}

.eyv-carousel__body {
	position: relative;
	z-index: 1;
	padding: 1.25rem;
}

.eyv-carousel__slide-title {
	margin: 0 0 0.35rem;
	font-size: 1.25rem;
}

.eyv-carousel__subtitle {
	margin: 0 0 0.5rem;
	opacity: 0.9;
	font-size: 0.95rem;
}

.eyv-carousel__price {
	margin: 0 0 0.75rem;
	font-weight: 700;
	font-size: clamp(1.45rem, 2.2vw, 1.85rem);
	color: #4da3ff;
	letter-spacing: 0.01em;
	-webkit-text-stroke: 1.5px #fff;
	paint-order: stroke fill;
	text-shadow:
		0 0 1px #fff,
		1px 0 0 #fff,
		-1px 0 0 #fff,
		0 1px 0 #fff,
		0 -1px 0 #fff;
}

.eyv-carousel__desc {
	margin: 0 0 1rem;
	font-size: 0.9rem;
	line-height: 1.45;
	opacity: 0.92;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.eyv-carousel__ver {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 0.25rem;
	padding: 0.55rem 1.4rem;
	border: 1px solid rgba(255, 255, 255, 0.85);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	cursor: pointer;
	backdrop-filter: blur(4px);
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.eyv-carousel__ver:hover {
	background: #fff;
	color: #14307a;
	border-color: #fff;
}

/* Modal imagen completa del producto */
.eyv-product-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.eyv-product-modal.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.eyv-product-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.82);
	cursor: pointer;
}

.eyv-product-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(1100px, 96vw);
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.75rem;
}

.eyv-product-modal__stage {
	overflow: hidden;
	max-height: calc(90vh - 3.5rem);
	height: calc(90vh - 3.5rem);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.35);
	touch-action: none;
	user-select: none;
}

.eyv-product-modal__img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
	background: #111;
	transform-origin: center center;
	transition: transform 0.15s ease;
	cursor: default;
	will-change: transform;
}

.eyv-product-modal.is-zoomed .eyv-product-modal__img {
	cursor: grab;
	transition: none;
}

.eyv-product-modal.is-dragging .eyv-product-modal__img {
	cursor: grabbing;
}

.eyv-product-modal__toolbar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	z-index: 2;
}

.eyv-product-modal__zoom {
	width: 2.5rem;
	height: 2.5rem;
	border: none;
	border-radius: 999px;
	background: #fff;
	color: #14307a;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.eyv-product-modal__zoom:hover {
	background: #f0f4ff;
}

.eyv-product-modal__zoom:disabled {
	opacity: 0.45;
	cursor: default;
}

.eyv-product-modal__close {
	position: absolute;
	top: -0.75rem;
	right: -0.75rem;
	width: 2.5rem;
	height: 2.5rem;
	border: none;
	border-radius: 999px;
	background: #fff;
	color: #14307a;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
	z-index: 3;
}

.eyv-product-modal__close:hover {
	background: #f0f4ff;
}

body.eyv-modal-open {
	overflow: hidden;
}

.eyv-carousel__empty {
	padding: 2rem;
	border: 1px dashed #bbb;
	border-radius: var(--eyv-radius);
	text-align: center;
	color: #666;
	background: #fafafa;
}

.eyv-carousel__avatar {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 0.85rem;
	background: #ddd;
}

.eyv-carousel__quote {
	margin: 0 0 0.75rem;
	font-size: 0.95rem;
	line-height: 1.5;
}

@media (min-width: 768px) {
	.eyv-carousel:not(.eyv-carousel--productos) .eyv-carousel__slide {
		flex-basis: calc((100% - (2 * var(--eyv-gap))) / 3);
	}
}

/* --- Productos: full width, 4 visibles, sin radio --- */
.eyv-carousel--productos {
	--eyv-gap: 0;
	--eyv-radius: 0;
	position: relative;
	max-width: none;
	width: 100%;
	margin: 2.5rem 0;
	padding: 0 0 3.75rem;
}

.eyv-carousel--productos .eyv-carousel__header {
	justify-content: center;
	margin-bottom: 1.5rem;
	padding: 0 1.25rem;
}

.eyv-carousel--productos .eyv-carousel__title {
	width: 100%;
	text-align: center;
	font-size: clamp(1.4rem, 3.2vw, 2.1rem);
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

/* Botones abajo, centrados y redondos */
.eyv-carousel--productos .eyv-carousel__nav {
	position: absolute;
	left: 50%;
	right: auto;
	bottom: 0.75rem;
	top: auto;
	transform: translateX(-50%);
	width: auto;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.75rem;
	padding: 0;
	z-index: 5;
	pointer-events: none;
}

.eyv-carousel--productos .eyv-carousel__btn {
	pointer-events: auto;
	margin: 0;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 999px;
	border: 1px solid rgba(0, 0, 0, 0.2);
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.eyv-carousel--productos .eyv-carousel__track {
	gap: 0;
}

.eyv-carousel--productos .eyv-carousel__slide {
	flex: 0 0 100%;
	max-width: none;
	border-radius: 0;
	border: none;
	min-height: 420px;
}

@media (min-width: 600px) {
	.eyv-carousel--productos .eyv-carousel__slide {
		flex-basis: 50%;
	}
}

@media (min-width: 900px) {
	.eyv-carousel--productos .eyv-carousel__slide {
		flex-basis: 25%;
	}
}

.eyv-carousel--productos .eyv-carousel__empty {
	border-radius: 0;
	margin: 0 1.25rem;
}

/* Productos: imagen protagonista, textos legibles, detalle al hover */
.eyv-carousel--productos .eyv-carousel__bg::after {
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.72) 0%,
		rgba(0, 0, 0, 0.28) 38%,
		transparent 68%
	);
}

.eyv-carousel--productos .eyv-carousel__body {
	padding: 1.35rem 1.25rem 1.25rem;
}

.eyv-carousel--productos .eyv-carousel__slide-title {
	margin: 0 0 0.4rem;
	font-size: clamp(1.15rem, 1.8vw, 1.4rem);
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1.15;
	color: #fff;
	text-shadow:
		0 1px 2px rgba(0, 0, 0, 0.65),
		1px 0 0 rgba(0, 0, 0, 0.45),
		-1px 0 0 rgba(0, 0, 0, 0.45),
		0 1px 0 rgba(0, 0, 0, 0.45),
		0 -1px 0 rgba(0, 0, 0, 0.45),
		0 0 12px rgba(0, 0, 0, 0.35);
}

.eyv-carousel--productos .eyv-carousel__price {
	margin: 0 0 0.85rem;
}

.eyv-carousel--productos .eyv-carousel__subtitle,
.eyv-carousel--productos .eyv-carousel__desc {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	margin: 0;
	transform: translateY(6px);
	transition:
		max-height 0.35s ease,
		opacity 0.3s ease,
		transform 0.3s ease,
		margin 0.3s ease;
	text-shadow:
		0 1px 2px rgba(0, 0, 0, 0.7),
		0 0 8px rgba(0, 0, 0, 0.35);
}

.eyv-carousel--productos .eyv-carousel__slide:hover .eyv-carousel__subtitle,
.eyv-carousel--productos .eyv-carousel__slide:focus-within .eyv-carousel__subtitle {
	max-height: 3rem;
	opacity: 1;
	margin: 0 0 0.4rem;
	transform: translateY(0);
}

.eyv-carousel--productos .eyv-carousel__slide:hover .eyv-carousel__desc,
.eyv-carousel--productos .eyv-carousel__slide:focus-within .eyv-carousel__desc {
	max-height: 6.5rem;
	opacity: 1;
	margin: 0 0 0.9rem;
	transform: translateY(0);
}

.eyv-carousel--productos .eyv-carousel__ver {
	position: relative;
	z-index: 2;
	background: rgba(20, 48, 122, 0.88);
	border-color: #fff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.eyv-carousel--productos .eyv-carousel__ver:hover {
	background: #fff;
	color: #14307a;
}

/* En móvil (sin hover) se muestran subtítulo y descripción */
@media (hover: none) {
	.eyv-carousel--productos .eyv-carousel__subtitle,
	.eyv-carousel--productos .eyv-carousel__desc {
		max-height: none;
		opacity: 1;
		transform: none;
		overflow: visible;
	}

	.eyv-carousel--productos .eyv-carousel__subtitle {
		margin: 0 0 0.4rem;
	}

	.eyv-carousel--productos .eyv-carousel__desc {
		margin: 0 0 0.9rem;
	}
}
