/* YZMF Reel: tira de fotos que se abre en el centro (portada). Portado de la maqueta aprobada. */
.yzmf-reel {
	--yzr-accent: var(--yzmf-accent, #E8A33D);
	--yzr-ink: #EDEBE6;
	--yzr-ink-2: #D6D3CC;
	--yzr-muted: #A9A59D;
	--yzr-bg-2: #1A1917;
	--yzr-line: #2A2926;
	--yzr-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--yzr-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
	position: relative;
	height: var(--yzr-h, 600px);
	overflow: hidden;
	isolation: isolate;
	perspective: 1400px;
	touch-action: pan-y;
	user-select: none;
	-webkit-user-select: none;
	font-family: var(--yzr-font);
}

/* Sin JS (o antes de arrancar): tira desplazable normal. */
.yzmf-reel__list {
	list-style: none;
	margin: 0;
	padding: 0 16px;
	height: 100%;
	display: flex;
	align-items: center;
	gap: 12px;
	overflow-x: auto;
	scrollbar-width: none;
}
.yzmf-reel__list::-webkit-scrollbar { display: none; }
.yzmf-reel__item { flex: 0 0 auto; margin: 0; padding: 0; }
.yzmf-reel__item::before, .yzmf-reel__item::marker { content: none; }

.yzmf-reel__f {
	display: block;
	position: relative;
	width: 150px;
	aspect-ratio: 3 / 4;
	padding: 0;
	border: 0;
	border-radius: 2px;
	background: var(--yzr-bg-2);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
	cursor: pointer;
	color: inherit;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}
.yzmf-reel__in { display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 2px; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.yzmf-reel__in img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 2px; pointer-events: none; -webkit-user-drag: none; }
.yzmf-reel__f:focus-visible { outline: 2px solid var(--yzr-accent); outline-offset: 4px; }

.yzmf-reel__cap {
	position: absolute; left: 50%; top: calc(100% + 10px);
	transform: translateX(-50%) scale(.9);
	white-space: nowrap; max-width: min(320px, 80vw); overflow: hidden; text-overflow: ellipsis; font-size: 12px; line-height: 1.3; color: var(--yzr-ink-2);
	background: rgba(14, 14, 13, .85); padding: 5px 10px; border-radius: 999px;
	opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none;
}

/* Con JS: posiciones absolutas que calcula yzmf-reel.js */
.yzmf-reel.is-live { cursor: grab; }
.yzmf-reel.is-live.is-dragging { cursor: grabbing; }
.yzmf-reel.is-live .yzmf-reel__list { display: block; position: absolute; inset: 0; padding: 0; overflow: visible; }
.yzmf-reel.is-live .yzmf-reel__item { position: absolute; left: 0; top: 0; }
.yzmf-reel.is-live .yzmf-reel__f { width: 100%; height: 100%; aspect-ratio: auto; }
.yzmf-reel.is-live .yzmf-reel__item { will-change: transform; transform-origin: 50% 50%; }
.yzmf-reel.is-live .yzmf-reel__f:hover .yzmf-reel__in,
.yzmf-reel.is-live .yzmf-reel__f:focus-visible .yzmf-reel__in { transform: scale(1.14); }
.yzmf-reel.has-captions .yzmf-reel__f:hover .yzmf-reel__cap,
.yzmf-reel.has-captions .yzmf-reel__f:focus-visible .yzmf-reel__cap { opacity: 1; transform: translateX(-50%) scale(1); }
.yzmf-reel.is-click-nada .yzmf-reel__f { cursor: inherit; }

/* Modo "fondo del contenedor": el widget llena el contenedor y el resto va encima. */
.elementor-widget.yzmf-reel-mode-bg {
	position: absolute !important;
	inset: 0;
	z-index: 0;
	margin: 0 !important;
	width: auto !important;
	max-width: none !important;
}
.elementor-widget.yzmf-reel-mode-bg > .elementor-widget-container { height: 100%; }
.yzmf-reel--bg { height: 100%; min-height: 100%; }
.yzmf-reel-host { position: relative; isolation: isolate; }
.yzmf-reel-host > :not(.yzmf-reel-mode-bg),
.yzmf-reel-host > .e-con-inner > :not(.yzmf-reel-mode-bg) { position: relative; z-index: 1; }
/* El texto encima deja pasar el arrastre a las fotos, salvo enlaces y botones. */
.yzmf-reel-host.is-passthrough > :not(.yzmf-reel-mode-bg),
.yzmf-reel-host.is-passthrough > .e-con-inner { pointer-events: none; }
.yzmf-reel-host.is-passthrough .yzmf-reel-mode-bg,
.yzmf-reel-host.is-passthrough :is(a, button, input, select, textarea, label, summary, video, iframe, [tabindex]) { pointer-events: auto; }

/* Móvil (según el ancho del widget, lo marca el JS con .is-narrow; y por pantalla sin JS). */
.yzmf-reel.is-narrow { height: var(--yzr-hm, 330px); }
@media (max-width: 720px) {
	.yzmf-reel { height: var(--yzr-hm, 330px); }
	.elementor-widget.yzmf-reel-mode-bg { position: relative !important; inset: auto; order: -1; }
	.yzmf-reel--bg { height: var(--yzr-hm, 330px); min-height: 0; }
}

/* Visor: estilos en yzmf-lightbox.css (visor único de la web). */

@media (prefers-reduced-motion: reduce) {
	.yzmf-reel__in, .yzmf-reel__cap { transition: none; }
}
