/* ===== Bloque Play Video — Frontend ===== */

/* Autor: Matías Molina / https://estudioblobs.com.ar / Blobs Diseño Gráfico */

/* ================================================================
 * BOTÓN PLAY
 * ================================================================ */
.blobs-play-video {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	line-height: 0;
}

.blobs-play-video__img {
	display: block;
	width: var( --blobs-play-video-size, 150px );
	height: auto;
	/* EDITAR ACA: si querés redondear el botón, ej. border-radius: 50%. */
}

/* ================================================================
 * PULSATING DOT
 * EDITAR ACA: retocá la animación del pulso acá.
 * Se dibuja como un círculo detrás del botón que se expande y
 * desaparece en bucle.
 * ================================================================ */
.blobs-play-video--pulse::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: 50%;
	background-color: var( --blobs-play-video-pulse-color, rgba(240, 131, 40, 0.6) );
	animation: blobs-play-video-pulse 2s ease-out infinite;
}

@keyframes blobs-play-video-pulse {
	0% {
		transform: scale( 1 );
		opacity: 0.8;
	}
	70% {
		transform: scale( 1.5 );
		opacity: 0;
	}
	100% {
		transform: scale( 1.5 );
		opacity: 0;
	}
}

/* HOVER/FOCUS: el pulso pierde la transparencia (queda más sólido).
   EDITAR ACA: ajustá el color del pulso al hacer hover/focus. */
.blobs-play-video--pulse:hover::before,
.blobs-play-video--pulse:focus-visible::before {
	animation: none;
	transform: scale( 1.25 );
	opacity: 1;
}

.blobs-play-video:focus-visible {
	outline: 2px solid var( --blobs-play-video-pulse-color, rgba(240, 131, 40, 0.6) );
	outline-offset: 4px;
}

/* ================================================================
 * MODAL
 * ================================================================ */
.blobs-play-video__modal[hidden] {
	display: none;
}

.blobs-play-video__modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	min-width: 100vw;
}

/* Overlay negro transparente sobre el contenido. */
.blobs-play-video__overlay {
	position: absolute;
	inset: 0;
	background-color: rgba( 0, 0, 0, 0.8 );
}

/* ================================================================
 * DIALOGO (contenedor del video)
 * ================================================================ */
.blobs-play-video__dialog {
	position: relative;
	width: 100%;
	max-width: 900px;
	background: #000;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba( 0, 0, 0, 0.5 );
}

.blobs-play-video__video {
	display: block;
	width: 100%;
	height: auto;
	max-height: 80vh;
	background: #000;
}

/* ================================================================
 * BOTÓN CERRAR (X)
 * ================================================================ */
.blobs-play-video__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border: none;
	border-radius: 50%;
	background-color: rgba( 0, 0, 0, 0.6 );
	color: #ffffff;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.blobs-play-video__close:hover,
.blobs-play-video__close:focus-visible {
	background-color: rgba( 0, 0, 0, 0.9);
}

.blobs-play-video__close svg {
	display: block;
	width: 18px;
	height: 18px;
}

/* ================================================================
 * CUERPO (scroll bloqueado mientras el modal está abierto)
 * ================================================================ */
body.blobs-play-video--open {
	overflow: hidden;
}

/* ================================================================
 * ACCESIBILIDAD — movimiento reducido
 * ================================================================ */
@media (prefers-reduced-motion: reduce) {
	.blobs-play-video--pulse::before {
		animation: none;
		transform: none;
		opacity: 0.5;
	}
}