/* ANYARA – Carrusel de Videos */

.anyara-vc {
	--anyara-cols: 4;
	--anyara-gap: 8px;
	--anyara-ratio: 9 / 16;
	position: relative;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.anyara-vc *,
.anyara-vc *::before,
.anyara-vc *::after {
	box-sizing: border-box;
}

/* ---------- Título ---------- */
.anyara-vc__head {
	text-align: center;
	margin-bottom: 24px;
}

.anyara-vc .anyara-vc__title {
	margin: 0;
	padding: 0;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	line-height: 1.2;
}

.anyara-vc__accent {
	display: inline-block;
	vertical-align: top;
	width: 64px;
	height: 3px;
	margin-top: 12px;
	background-color: #c9a24b;
}

/* ---------- Escenario / pista ---------- */
.anyara-vc__stage {
	position: relative;
	width: 100%;
}

.anyara-vc__track {
	display: flex;
	gap: var(--anyara-gap);
	width: 100%;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
	cursor: grab;
	outline: none;
}

.anyara-vc__track::-webkit-scrollbar {
	display: none;
}

.anyara-vc__track:focus-visible {
	outline: 2px solid #c9a24b;
	outline-offset: 2px;
}

.anyara-vc__track.is-dragging,
.anyara-vc__track.is-animating {
	scroll-snap-type: none;
}

.anyara-vc__track.is-dragging {
	cursor: grabbing;
	user-select: none;
	-webkit-user-select: none;
}

/* ---------- Tarjeta ---------- */
.anyara-vc__card {
	position: relative;
	flex: 0 0 calc((100% - (var(--anyara-cols) - 1) * var(--anyara-gap)) / var(--anyara-cols));
	min-width: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	scroll-snap-align: start;
	background: transparent;
}

.anyara-vc__media {
	position: relative;
	flex: 0 0 auto;
	width: 100%;
	aspect-ratio: var(--anyara-ratio);
	overflow: hidden;
	background-color: #0d0d0d;
}

.anyara-vc__video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center center;
	pointer-events: none;
	user-select: none;
	-webkit-user-select: none;
	-webkit-user-drag: none;
	transition: transform 0.6s ease;
}

.anyara-vc__video::-webkit-media-controls,
.anyara-vc__video::-webkit-media-controls-panel,
.anyara-vc__video::-webkit-media-controls-start-playback-button {
	display: none !important;
	-webkit-appearance: none;
}

.anyara-vc__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	text-align: center;
	font-family: 'Montserrat', sans-serif;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.7);
}

/* Botón de reproducción (solo si el navegador bloquea el autoplay) */
.anyara-vc .anyara-vc__play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	width: 64px;
	height: 64px;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transform: translate(-50%, -50%);
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	cursor: pointer;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	transition: background-color 0.25s ease, transform 0.25s ease;
}

.anyara-vc .anyara-vc__play:hover,
.anyara-vc .anyara-vc__play:focus-visible {
	background: rgba(0, 0, 0, 0.75);
	transform: translate(-50%, -50%) scale(1.06);
}

.anyara-vc .anyara-vc__play[hidden] {
	display: none;
}

/* ---------- Botón WhatsApp ---------- */
.anyara-vc a.anyara-vc__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 48px;
	padding: 16px 12px;
	background-color: #25d366;
	color: #fff;
	font-family: 'Montserrat', sans-serif;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.6px;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	border: 0 solid transparent;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
	-webkit-tap-highlight-color: transparent;
}

.anyara-vc a.anyara-vc__btn:hover,
.anyara-vc a.anyara-vc__btn:focus-visible {
	background-color: #1ebe5a;
	color: #fff;
	text-decoration: none;
}

.anyara-vc a.anyara-vc__btn:focus-visible {
	outline: 2px solid #111;
	outline-offset: -4px;
}

.anyara-vc__btn-icon {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	color: #fff;
	transition: transform 0.25s ease, color 0.25s ease;
}

.anyara-vc a.anyara-vc__btn:hover .anyara-vc__btn-icon {
	transform: scale(1.08);
}

/* ---------- Flechas ---------- */
.anyara-vc .anyara-vc__arrow {
	position: absolute;
	top: var(--anyara-arrow-top, 50%);
	z-index: 3;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transform: translateY(-50%);
	border: 0;
	border-radius: 50%;
	background-color: #fff;
	color: #111;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease, opacity 0.25s ease;
	-webkit-tap-highlight-color: transparent;
}

.anyara-vc .anyara-vc__arrow--prev {
	left: 12px;
}

.anyara-vc .anyara-vc__arrow--next {
	right: 12px;
}

.anyara-vc .anyara-vc__arrow:hover,
.anyara-vc .anyara-vc__arrow:focus-visible {
	background-color: #111;
	color: #fff;
}

.anyara-vc .anyara-vc__arrow:disabled,
.anyara-vc .anyara-vc__arrow[hidden] {
	opacity: 0;
	pointer-events: none;
}

.anyara-vc .anyara-vc__arrow svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ---------- Visor ampliado (lightbox) ---------- */
.anyara-vc[data-lightbox="yes"] .anyara-vc__media[role="button"] {
	cursor: zoom-in;
}

.anyara-vc[data-lightbox="yes"] .anyara-vc__media[role="button"]:focus-visible {
	outline: 2px solid #c9a24b;
	outline-offset: -3px;
}

html.anyara-vcl-lock,
html.anyara-vcl-lock body {
	overflow: hidden !important;
}

.anyara-vcl {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
	background: rgba(8, 8, 8, 0.88);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.anyara-vcl.is-open {
	opacity: 1;
}

.anyara-vcl__dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	max-width: 100%;
	max-height: 100%;
	transform: scale(0.96);
	transition: transform 0.25s ease;
}

.anyara-vcl.is-open .anyara-vcl__dialog {
	transform: none;
}

.anyara-vcl__video {
	display: block;
	width: auto;
	height: auto;
	max-width: min(100%, 560px);
	max-height: calc(100vh - 110px);
	max-height: calc(100dvh - 110px);
	background: #000;
	border-radius: 12px;
	outline: none;
}

.anyara-vcl__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 22px;
	border-radius: 999px;
	background: #25d366;
	color: #fff !important;
	font: 600 14px/1.2 inherit;
	text-decoration: none !important;
	letter-spacing: 0.02em;
}

.anyara-vcl__cta svg {
	width: 18px;
	height: 18px;
	flex: none;
}

.anyara-vcl .anyara-vcl__close {
	position: absolute;
	top: -4px;
	right: -4px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.anyara-vcl .anyara-vcl__close:hover,
.anyara-vcl .anyara-vcl__close:focus-visible {
	background: #c9a24b;
	color: #1a1a1a;
	outline: none;
}

.anyara-vcl__close svg {
	width: 18px;
	height: 18px;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
	fill: none;
}

@media (prefers-reduced-motion: reduce) {
	.anyara-vcl,
	.anyara-vcl__dialog {
		transition: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.anyara-vc *,
	.anyara-vc *::before,
	.anyara-vc *::after {
		transition-duration: 0.01ms !important;
	}
}
