/* Ellemental — video del hero (paleta: ver ellemental.css) */
.ell-video {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	text-align: center;
	margin: 0 auto;
}
.ell-phone {
	position: relative;
	margin: 0;
	width: clamp(240px, 26vw, 340px);
	aspect-ratio: 9 / 16;
	border-radius: 38px;
	padding: 10px;
	background: #172019;
	border: 1px solid #233027;
	box-shadow:
		0 0 0 1px rgba(107, 255, 81, .18),
		0 0 70px rgba(107, 255, 81, .35),
		0 0 140px rgba(20, 195, 142, .28);
	isolation: isolate;
}
.ell-phone-video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 28px;
	background: #0A0F0B;
}
.ell-phone-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 68px;
	height: 68px;
	border: 0;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: #6BFF51;
	color: #0A0F0B;
	cursor: pointer;
	box-shadow: 0 0 0 6px rgba(107, 255, 81, .25);
}
.ell-phone-play[hidden] { display: none; }
.ell-phone-play:focus-visible,
.ell-video-open:focus-visible,
.ell-dialog-close:focus-visible {
	outline: 3px solid #F3F7F3;
	outline-offset: 3px;
}
.ell-video-caption {
	margin: 4px 0 0;
	color: #F3F7F3;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.4;
	max-width: 340px;
}
.ell-video-legal {
	margin: 0;
	color: #8E9C92;
	font-size: 11.5px;
	line-height: 1.45;
	max-width: 340px;
}
.ell-video-open {
	gap: 8px;
}

/* ---------- Diálogo ---------- */
.ell-dialog {
	padding: 0;
	border: 0;
	background: transparent;
	max-width: calc(100vw - 32px);
	max-height: calc(100vh - 32px);
	overflow: visible;
}
.ell-dialog::backdrop {
	background: rgba(10, 15, 11, .88);
	backdrop-filter: blur(4px);
}
.ell-dialog-inner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}
.ell-dialog-video {
	display: block;
	height: min(86vh, 820px);
	aspect-ratio: 9 / 16;
	width: auto;
	max-width: calc(100vw - 32px);
	object-fit: contain;
	border-radius: 18px;
	background: #000;
	box-shadow: 0 0 0 1px #233027, 0 0 80px rgba(107, 255, 81, .25);
}
@supports not (aspect-ratio: 9 / 16) {
	.ell-dialog-video { width: calc(min(86vh, 820px) * 9 / 16); }
}
.ell-dialog .ell-video-caption,
.ell-dialog .ell-video-legal { max-width: min(460px, calc(100vw - 32px)); }
.ell-dialog-close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid #233027;
	background: rgba(10, 15, 11, .82);
	color: #F3F7F3;
	display: grid;
	place-items: center;
	cursor: pointer;
}
.ell-dialog-close:hover { background: #6BFF51; color: #0A0F0B; }
html.ell-dialog-abierto { overflow: hidden; }
/* Navegadores sin <dialog>.showModal() */
.ell-dialog.ell-dialog-fallback[open] {
	position: fixed;
	inset: 0;
	margin: auto;
	z-index: 100000;
	display: grid;
	place-items: center;
	max-width: none;
	max-height: none;
	width: 100%;
	height: 100%;
	background: rgba(10, 15, 11, .92);
}

@media (max-width: 575px) {
	.ell-dialog-video { height: min(78vh, 820px); }
}
@media (prefers-reduced-motion: reduce) {
	.ell-dialog::backdrop { backdrop-filter: none; }
}
