/*
 * Entravision Ahora landing — self-contained styles (no Tailwind, no theme
 * dependency). Everything is namespaced .eal-* and the other stylesheets on
 * the page are dropped (see eal_isolate_styles()), so the active theme can't
 * restyle it.
 *
 * Brand colors: purple #4F10B8, red #D91C1C, navy #081B39.
 */

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

.eal-body {
	margin: 0;
	background-color: #fafafc;
	/* Subtle branded diagonal hairlines. */
	background-image: repeating-linear-gradient(135deg, rgba(79, 16, 184, 0.05) 0, rgba(79, 16, 184, 0.05) 1px, transparent 1px, transparent 15px);
	color: #0f172a;
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.eal-body *,
.eal-body *::before,
.eal-body *::after {
	box-sizing: border-box;
}

.eal-body img {
	max-width: 100%;
	height: auto;
	display: block;
}

.eal-page {
	position: relative;
	overflow-x: hidden;
}

/* Two soft color fields behind the page. */
.eal-page::before,
.eal-page::after {
	content: "";
	position: absolute;
	z-index: 0;
	border-radius: 9999px;
	filter: blur(90px);
	pointer-events: none;
}

.eal-page::before {
	top: -120px;
	left: -100px;
	width: 380px;
	height: 380px;
	background: rgba(79, 16, 184, 0.12);
}

.eal-page::after {
	top: 260px;
	right: -140px;
	width: 420px;
	height: 420px;
	background: rgba(217, 28, 28, 0.1);
}

.eal-main {
	position: relative;
	z-index: 1;
	padding-bottom: 4rem;
}

.eal-container {
	width: 100%;
	max-width: 72rem;
	margin-inline: auto;
	padding-inline: 1rem;
}

@media (min-width: 640px) {
	.eal-container {
		padding-inline: 1.5rem;
	}
}

@media (min-width: 1024px) {
	.eal-container {
		padding-inline: 2rem;
	}
}

/* ---------- Logo + tagline ---------- */

.eal-intro {
	max-width: 48rem;
	padding-top: 3rem;
	padding-bottom: 2.5rem;
	text-align: center;
}

.eal-logo {
	margin: 0 0 1.5rem;
}

.eal-logo img {
	height: 5rem;
	width: auto;
	margin-inline: auto;
}

.eal-tagline {
	margin: 0;
	color: #475569;
	font-size: 1.125rem;
	line-height: 1.65;
}

@media (min-width: 640px) {
	.eal-intro {
		padding-top: 4rem;
	}

	.eal-logo img {
		height: 8rem;
	}
}

/* ---------- Player ---------- */

.eal-player-wrap {
	max-width: 66rem; /* 64rem player + the container's side padding */
	margin-bottom: 4rem;
	scroll-margin-top: 1.5rem;
}

.eal-player {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 1rem;
	background: #000;
	box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
}

/* video.js manages its own size with vjs-fluid, which fights this absolute fill — so this frame skips vjs-fluid. */
.eal-player .video-js,
.eal-player .vjs-tech {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
}

/* Fixed 24/7 live channel: a play/pause toggle would do nothing (see landing.js). */
.eal-live .vjs-play-control {
	display: none !important;
}

/* ---------- Dónde vernos gratis ---------- */

#donde-vernos {
	scroll-margin-top: 1.5rem;
}

.eal-where {
	position: relative;
	overflow: hidden;
	padding: 2rem;
	border-radius: 1rem;
	background: #081b39;
	color: #fff;
}

.eal-where::before {
	content: "";
	position: absolute;
	top: -4rem;
	right: -4rem;
	width: 16rem;
	height: 16rem;
	border-radius: 9999px;
	background: rgba(79, 16, 184, 0.3);
	filter: blur(64px);
	pointer-events: none;
}

.eal-where > * {
	position: relative;
}

.eal-where h2 {
	margin: 0 0 0.75rem;
	font-size: 1.5rem;
	font-weight: 900;
	letter-spacing: -0.01em;
	line-height: 1.2;
	color: #fff;
}

.eal-where p {
	max-width: 36rem;
	margin: 0 0 1.5rem;
	color: #cbd5e1;
}

.eal-platforms {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
}

@media (min-width: 640px) {
	.eal-where {
		padding: 3rem;
	}

	.eal-platforms {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.eal-platforms {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

.eal-platform {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	height: 5rem;
	padding: 0 0.75rem;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 0.75rem;
	background: rgba(255, 255, 255, 0.05);
	color: #fff;
	text-decoration: none;
	transition: background-color 0.15s, border-color 0.15s;
}

a.eal-platform:hover,
a.eal-platform:focus-visible {
	border-color: rgba(255, 255, 255, 0.3);
	background: rgba(255, 255, 255, 0.1);
}

a.eal-platform:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.eal-platform img {
	flex: none;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 0.5rem;
}

.eal-platform span {
	font-size: 0.875rem;
	font-weight: 900;
	letter-spacing: 0.025em;
	text-transform: uppercase;
}

/* ---------- Footer ---------- */

.eal-footer {
	position: relative;
	z-index: 1;
	background: #081b39;
	color: #cbd5e1;
}

.eal-footer-inner {
	padding-top: 3.5rem;
	padding-bottom: 2rem;
}

.eal-footer-cols {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
}

@media (min-width: 640px) {
	.eal-footer-cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.eal-footer-cols {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.eal-footer-logo {
	display: inline-block;
	margin-bottom: 1rem;
}

.eal-footer-logo img {
	height: 2.5rem;
	width: auto;
}

.eal-footer-blurb {
	margin: 0;
	max-width: 18rem;
	color: #94a3b8;
	font-size: 0.875rem;
	line-height: 1.65;
}

.eal-footer h3 {
	margin: 0 0 1rem;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 900;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.eal-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.875rem;
	font-weight: 500;
}

.eal-footer li + li {
	margin-top: 0.5rem;
}

.eal-footer a {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s;
}

.eal-footer a:hover,
.eal-footer a:focus-visible {
	color: #fff;
}

.eal-footer-bar {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid #1e293b;
	color: #64748b;
	font-size: 0.75rem;
	font-weight: 500;
}

.eal-footer-bar p {
	margin: 0;
}

.eal-footer-parent {
	display: flex;
	align-items: center;
	gap: 0.375rem;
}

.eal-footer-parent img {
	height: 1rem;
	width: auto;
}

@media (min-width: 640px) {
	.eal-footer-bar {
		flex-direction: row;
	}
}
