/* Video Gallery Carousel — estilos base estructurales. */
.vg-widget-root {
	--vg-ratio: 9/16;
	width: 100%;
	box-sizing: border-box;
}
.vg-widget-root *,
.vg-widget-root *::before,
.vg-widget-root *::after {
	box-sizing: border-box;
}

/* ---------- Pestañas de categoría ---------- */
.vg-tabs-bar {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 24px;
}
.vg-tab-btn {
	appearance: none;
	border: none;
	cursor: pointer;
	padding: 10px 22px;
	font-size: 14px;
	font-weight: 600;
	background: #e9e9e9;
	color: #333;
	border-radius: 20px;
	transition: background-color .2s ease, color .2s ease, transform .15s ease;
	white-space: nowrap;
}
.vg-tab-btn:hover {
	transform: translateY(-1px);
}
.vg-tab-btn.is-active {
	background: #ffffff;
	color: #000000;
	box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

/* ---------- Carrusel (scroll nativo del navegador + JS fallbacks) ---------- */
.vg-carousel-wrap {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
}
.vg-track-viewport {
	width: 100%;
	min-width: 0; 
}
.vg-track {
	display: flex;
	width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory; 
	-webkit-overflow-scrolling: touch; 
	overscroll-behavior-x: contain;
	scroll-behavior: smooth;
	gap: var(--vg-gap-mobile, 16px);
	padding-bottom: 4px;
	cursor: grab;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.vg-track::-webkit-scrollbar {
	display: none;
}
.vg-track.vg-is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
	scroll-behavior: auto;
}

@media (min-width: 768px) {
	.vg-track { gap: var(--vg-gap-tablet, 16px); }
}
@media (min-width: 1024px) {
	.vg-track { gap: var(--vg-gap-desktop, 16px); }
}

.vg-slide {
	flex: 0 0 auto;
	scroll-snap-align: start;
	width: calc((100% - (var(--vg-slides-mobile, 1.3) - 1) * var(--vg-gap-mobile, 16px)) / var(--vg-slides-mobile, 1.3));
}
@media (min-width: 768px) {
	.vg-slide { width: calc((100% - (var(--vg-slides-tablet, 2.2) - 1) * var(--vg-gap-tablet, 16px)) / var(--vg-slides-tablet, 2.2)); }
}
@media (min-width: 1024px) {
	.vg-slide { width: calc((100% - (var(--vg-slides-desktop, 4) - 1) * var(--vg-gap-desktop, 16px)) / var(--vg-slides-desktop, 4)); }
}

.vg-nav-btn {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	min-width: 40px;
	border-radius: 50%;
	border: none;
	outline: none;
	appearance: none;
	-webkit-appearance: none;
	background: rgba(0,0,0,0.06);
	color: #111;
	font-size: 22px;
	line-height: 1;
	font-family: inherit;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	padding: 0;
	transition: all .2s ease;
	box-shadow: none !important; 
}
.vg-nav-btn i,
.vg-nav-btn svg {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}
/* IMPORTANTÍSIMO: fill currentColor por defecto para que los SVG sin fill nativo hereden el text-color dado en el control de elementor */
.vg-nav-btn svg, 
.vg-play-btn svg, 
.vg-modal-close svg, 
.vg-modal-mute-btn svg, 
.vg-modal-nav-btn svg, 
.vg-modal-playpause-icon svg {
	fill: currentColor;
}
.vg-nav-btn.vg-nav-disabled {
	opacity: .35;
	cursor: default;
}
.vg-dots {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 10px;
}
.vg-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: rgba(0,0,0,0.2);
	transition: background-color .2s ease, transform .2s ease;
}
.vg-dot.is-active {
	background: rgba(0,0,0,0.7);
	transform: scale(1.3);
}

/* ---------- Tarjeta ---------- */
.vg-card {
	width: 100%;
	display: flex;
	flex-direction: column;
}
.vg-card-media {
	position: relative;
	width: 100%;
	aspect-ratio: var(--vg-ratio, 9/16);
	background: #000;
	border-radius: 12px;
	overflow: hidden;
	cursor: pointer;
}
.vg-card-poster,
.vg-card-native-poster,
.vg-card-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.vg-card-video {
	opacity: 0;
	transition: opacity .25s ease;
	pointer-events: none;
}
.vg-card.vg-is-hover-playing .vg-card-video { opacity: 1; }
.vg-card.vg-is-hover-playing .vg-card-poster,
.vg-card.vg-is-hover-playing .vg-card-native-poster { opacity: 0; }

.vg-card-hashtag {
	position: absolute;
	top: 10px;
	left: 10px;
	background: rgba(0,0,0,0.55);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 12px;
	z-index: 2;
}

.vg-play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	outline: none;
	appearance: none;
	-webkit-appearance: none;
	background: rgba(0,0,0,0.45);
	color: #fff;
	font-family: inherit;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 3;
	transition: all .2s ease;
	box-shadow: none !important;
}
.vg-play-btn:hover {
	transform: translate(-50%, -50%) scale(1.06);
}
.vg-play-btn i,
.vg-play-btn svg {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}
.vg-play-icon-fallback {
	display: inline-block;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 8px 0 8px 14px;
	border-color: transparent transparent transparent currentColor;
	margin-left: 3px;
}

/* ---------- Tarjeta de producto ---------- */
.vg-card-product {
	display: flex;
	gap: 10px;
	padding: 12px;
	margin-top: 10px;
	background: #f7f7f7;
	border-radius: 10px;
}
.vg-product-thumb {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	border-radius: 8px;
	overflow: hidden;
}
.vg-product-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.vg-product-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.vg-product-name {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
}
.vg-product-bullets {
	margin: 2px 0;
	padding-left: 16px;
	font-size: 12px;
	color: #555;
	line-height: 1.5;
}
.vg-product-btn {
	display: inline-block;
	align-self: flex-start;
	margin-top: 4px;
	padding: 6px 14px;
	font-size: 12px;
	font-weight: 600;
	background: #111;
	color: #fff;
	border-radius: 16px;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}
.vg-product-btn:hover {
	color: #fff;
	opacity: .9;
}
.vg-empty-notice {
	width: 100%;
	text-align: center;
	padding: 40px 16px;
	color: #888;
	font-size: 14px;
}

/* ---------- Modal de video estilo TikTok ---------- */
.vg-video-modal {
	position: fixed !important;
	inset: 0;
	background: rgba(0,0,0,0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 999999 !important;
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s ease;
	padding: 20px;
}
.vg-video-modal.is-active {
	opacity: 1;
	visibility: visible;
}
.vg-video-modal-inner {
	position: relative;
	width: 100%;
	max-width: 420px;
	aspect-ratio: 9/16;
	touch-action: none; 
	will-change: transform, opacity;
}
.vg-video-modal-media {
	width: 100%;
	height: 100%;
	background: #000;
	border-radius: 10px;
	overflow: hidden;
	pointer-events: none; 
}
.vg-video-modal-media video,
.vg-video-modal-media iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
	object-fit: contain;
	background: #000;
	pointer-events: auto;
}
.vg-video-modal-error {
	color: #fff;
	text-align: center;
	padding: 20px;
}

.vg-modal-close,
.vg-modal-mute-btn,
.vg-modal-nav-btn {
	border: none;
	outline: none;
	appearance: none;
	-webkit-appearance: none;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	font-family: inherit;
	transition: all .2s ease;
}
.vg-modal-close svg,
.vg-modal-mute-btn svg,
.vg-modal-nav-btn svg {
	width: 1em;
	height: 1em;
	pointer-events: none;
}

.vg-modal-close {
	position: absolute;
	top: -50px;
	right: 0;
	z-index: 6;
	pointer-events: auto;
}

.vg-modal-mute-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 5;
	pointer-events: auto;
	opacity: 1;
	transition: opacity .2s ease, background-color .2s ease, color .2s ease;
}
.vg-modal-mute-btn.is-hidden {
	opacity: 0;
	pointer-events: none;
}

.vg-modal-spinner {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 34px;
	height: 34px;
	margin: -17px 0 0 -17px;
	border: 3px solid rgba(255,255,255,0.25);
	border-top-color: #ffffff;
	border-radius: 50%;
	z-index: 3;
	opacity: 0;
	pointer-events: none;
	transition: opacity .15s ease;
}
.vg-modal-spinner.is-active {
	opacity: 1;
	animation: vg-spin 0.8s linear infinite;
}
@keyframes vg-spin { to { transform: rotate(360deg); } }

.vg-modal-playpause-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 4;
	pointer-events: auto;
}
.vg-modal-playpause-icon {
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity .2s ease;
	pointer-events: none;
}
.vg-modal-playpause-icon svg { width: 1em; height: 1em; }
.vg-modal-playpause-overlay.show-icon .vg-modal-playpause-icon { opacity: 1; }

.vg-modal-nav-vertical {
	position: absolute;
	right: -56px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	gap: 14px;
	z-index: 6;
	pointer-events: auto;
}
.vg-modal-nav-btn.vg-nav-disabled {
	opacity: .35;
	pointer-events: none;
}

body.vg-no-scroll { overflow: hidden; }

@media (max-width: 600px) {
	.vg-modal-nav-vertical { right: 10px; top: auto; bottom: 90px; transform: none; }
	.vg-modal-close { top: 10px; right: 10px; }
}

@media (max-width: 767px) {
	.vg-tabs-bar {
		justify-content: flex-start;
		overflow-x: auto;
		flex-wrap: nowrap;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 4px;
	}
	.vg-tabs-bar::-webkit-scrollbar { display: none; }
}