/* EPG Editor en Vivo · estilos públicos
   Variables de color: se imprimen desde los ajustes del sitio
   (--epg-navy, --epg-acento, --epg-oscuro, --epg-claro, --epg-texto). */

.epg-site {
	--epg-f-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
	--epg-f-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--epg-muted: #5A6878;
	--epg-line: #D9E0E8;
	--epg-chip: #E6ECF3;
	--epg-on-dark-muted: #9FB3C7;
	margin: 0;
	background: var(--epg-oscuro);
	color: var(--epg-texto);
	font-family: var(--epg-f-body);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
.epg-site *, .epg-site *::before, .epg-site *::after { box-sizing: border-box; }
.epg-site img { max-width: 100%; height: auto; display: block; }
.epg-site a { color: inherit; }
.epg-site h1, .epg-site h2, .epg-site h3 { font-family: var(--epg-f-display); line-height: 1.05; margin: 0; text-wrap: balance; }
.epg-site :focus-visible { outline: 2px solid var(--epg-acento); outline-offset: 2px; }

.epg-wrap {
	width: 100%;
	max-width: 1180px;
	margin-inline: auto;
	padding-left: max(20px, env(safe-area-inset-left, 0px));
	padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.epg-w-angosto .epg-wrap { max-width: 800px; }
.epg-w-completo .epg-wrap { max-width: none; }

/* ---------- Encabezado y pie ---------- */
.epg-header {
	--epg-logo-h: 72px; --epg-logo-h-t: 60px; --epg-logo-h-m: 52px;
	--epg-hd-bg: var(--epg-oscuro); --epg-hd-op: 78%; --epg-hd-blur: 14px;
	--epg-logo-now: var(--epg-logo-h);
	background: var(--epg-hd-bg); color: #fff; position: relative; z-index: 50;
	transition: background-color .25s ease, box-shadow .25s ease;
}
.epg-hd-navy { --epg-hd-bg: var(--epg-navy); }
.epg-hd-blanco { --epg-hd-bg: #ffffff; color: var(--epg-texto); border-bottom: 1px solid var(--epg-line); }
.epg-header-in { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 14px; flex-wrap: wrap; transition: padding .25s ease; }
.epg-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.epg-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.epg-logo img { height: var(--epg-logo-now); width: auto; max-width: 42vw; object-fit: contain; transition: height .25s ease; }
.epg-logo-sep { width: 1px; align-self: stretch; min-height: calc(var(--epg-logo-now) * .7); background: currentColor; opacity: .25; }
.epg-logo-ph { display: grid; place-items: center; height: var(--epg-logo-now); padding: 0 12px; border: 1px dashed currentColor; border-radius: 4px; font-size: 12px; opacity: .7; white-space: nowrap; }
.epg-brand-mark { width: var(--epg-logo-now); height: var(--epg-logo-now); border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; font-family: var(--epg-f-display); font-weight: 700; font-size: 13px; letter-spacing: .04em; }
.epg-brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.epg-brand-name { font-family: var(--epg-f-display); font-weight: 700; font-size: 20px; letter-spacing: .04em; text-transform: uppercase; }
.epg-brand-sub { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; margin-top: 3px; }
.epg-nav ul { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.epg-site .epg-nav a { text-decoration: none; color: inherit; opacity: .75; white-space: nowrap; }
.epg-site .epg-nav a:hover { opacity: 1; color: inherit; }
.epg-site .epg-nav .epg-btn { opacity: 1; }
.epg-btn-sm { padding: 8px 14px; font-size: 14px; }

/* Alto de logos por familia de dispositivo */
@media (max-width: 1024px) { .epg-header { --epg-logo-now: var(--epg-logo-h-t); } }
@media (max-width: 640px) {
	.epg-header { --epg-logo-now: var(--epg-logo-h-m); }
	.epg-header-in { padding-block: 12px; }
	.epg-brand { gap: 10px; }
	.epg-brand-sub { display: none; }
	.epg-brand-name { font-size: 16px; }
	.epg-nav ul { gap: 6px 14px; font-size: 13px; }
	/* Con logos cargados, el nombre en texto se oculta para no saturar el encabezado. */
	.epg-brand:has(.epg-logo img) .epg-brand-text { display: none; }
}

/* Encabezado fijo: solo escritorio y tableta. Al bajar, fondo translúcido, desenfoque y sombra. */
@media (min-width: 641px) {
	.epg-hd-fijo { position: sticky; top: 0; }
	.admin-bar .epg-hd-fijo { top: 32px; }
	.epg-hd-fijo.is-stuck {
		background: color-mix(in srgb, var(--epg-hd-bg) var(--epg-hd-op), transparent);
		-webkit-backdrop-filter: blur(var(--epg-hd-blur)) saturate(1.3);
		backdrop-filter: blur(var(--epg-hd-blur)) saturate(1.3);
	}
	.epg-hd-fijo.is-stuck.epg-hd-sombra { box-shadow: 0 6px 24px rgba(0, 0, 0, .28); }
	.epg-hd-fijo.is-stuck .epg-header-in { padding-block: 8px; }
	.epg-hd-fijo.is-stuck { --epg-logo-now: var(--epg-logo-h-fijo, var(--epg-logo-h)); }
}
@media (min-width: 641px) and (max-width: 782px) { .admin-bar .epg-hd-fijo { top: 46px; } }
@media (min-width: 641px) and (max-width: 1024px) {
	.epg-hd-fijo.is-stuck { --epg-logo-now: var(--epg-logo-h-fijo, var(--epg-logo-h-t)); }
}
@media (prefers-reduced-motion: reduce) {
	.epg-header, .epg-header-in, .epg-logo img { transition: none; }
}

.epg-footer { background: var(--epg-oscuro); color: var(--epg-on-dark-muted); border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.epg-footer-in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding-block: 26px 34px; }
.epg-footer-logos { display: flex; align-items: center; gap: 18px; }
.epg-footer-logos img { height: 32px; width: auto; opacity: .85; }
.epg-footer-text { margin: 0; flex: 1; min-width: 220px; }
.epg-footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
.epg-footer-links a { text-decoration: none; }
.epg-footer-links a:hover { color: #fff; }

/* ---------- Aislamiento del tema activo (Astra u otro) ----------
   Los temas fijan color y fondo a títulos y botones; acá se restablecen con más especificidad. */
body.epg-site :is(h1, h2, h3, h4, h5, h6) { color: inherit; }
body.epg-site :is(h1, h2, h3, h4, h5, h6) a { color: inherit; }
body.epg-site button.epg-tab,
body.epg-site button.epg-tab:hover,
body.epg-site button.epg-tab:focus,
body.epg-site button.epg-tab:active,
body.epg-site .epg-filter button,
body.epg-site .epg-filter button:hover,
body.epg-site .epg-filter button:focus,
body.epg-site .epg-filter button:active {
	background: transparent; box-shadow: none; border-radius: 0; text-transform: none; letter-spacing: normal; line-height: 1.4; min-height: 0;
}
body.epg-site button.epg-tab { color: var(--epg-muted); border: 0; border-bottom: 3px solid transparent; padding: 12px 16px; }
body.epg-site button.epg-tab:hover { color: var(--epg-texto); }
body.epg-site button.epg-tab[aria-selected="true"] { color: var(--epg-texto); border-bottom-color: var(--epg-navy); }
body.epg-site .epg-filter button { color: var(--epg-on-dark-muted); border: 0; border-bottom: 1px solid transparent; padding: 2px 0; }
body.epg-site .epg-filter button:hover, body.epg-site .epg-filter button[aria-pressed="true"] { color: #fff; }
body.epg-site .epg-filter button[aria-pressed="true"] { border-bottom-color: var(--epg-acento); }
body.epg-site :is(.epg-bg-claro, .epg-bg-blanco) .epg-filter button { color: var(--epg-muted); }
body.epg-site :is(.epg-bg-claro, .epg-bg-blanco) .epg-filter button:hover,
body.epg-site :is(.epg-bg-claro, .epg-bg-blanco) .epg-filter button[aria-pressed="true"] { color: var(--epg-texto); }
body.epg-site .epg-crumbs a, body.epg-site .epg-crumbs a:hover { color: #fff; }
body.epg-site .epg-tile, body.epg-site .epg-tile:hover, body.epg-site .epg-tile:focus { color: #fff; text-decoration: none; }

/* ---------- Bloques: fondos y espacios ---------- */
.epg-layout { display: block; }
.epg-block { position: relative; }
.epg-bg-claro  { background: var(--epg-claro); color: var(--epg-texto); }
.epg-bg-blanco { background: #fff; color: var(--epg-texto); }
.epg-bg-oscuro { background: var(--epg-oscuro); color: #fff; }
.epg-bg-navy   { background: var(--epg-navy); color: #fff; }
.epg-bg-acento { background: var(--epg-acento); color: #1A1405; }
.epg-pad-none { padding-block: 0; }
.epg-pad-sm { padding-block: 28px; }
.epg-pad-md { padding-block: 56px; }
.epg-pad-lg { padding-block: 96px; }

.epg-kicker { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--epg-acento); }
.epg-h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 600; text-transform: uppercase; letter-spacing: .01em; margin-bottom: 16px; }
.epg-lead { color: var(--epg-muted); margin: 0 0 20px; max-width: 65ch; }
.epg-bg-oscuro .epg-lead, .epg-bg-navy .epg-lead { color: var(--epg-on-dark-muted); }
.epg-prose { max-width: 68ch; }
.epg-prose p { margin: 0 0 1em; }
.epg-align-centro { text-align: center; }
.epg-align-centro .epg-prose, .epg-align-centro .epg-lead { margin-inline: auto; }
.epg-pending { padding: 22px; border: 1px dashed var(--epg-line); border-radius: 6px; color: var(--epg-muted); margin: 0; }
.epg-bg-oscuro .epg-pending, .epg-bg-navy .epg-pending { border-color: rgba(255,255,255,.18); color: var(--epg-on-dark-muted); }

.epg-btn { display: inline-block; border: 0; border-radius: 4px; padding: 12px 20px; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; }
.epg-site .epg-btn-primary { background: var(--epg-acento); color: #1A1405; }
.epg-btn-primary:hover { filter: brightness(1.08); }
.epg-site .epg-btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); }
.epg-site .epg-bg-acento .epg-btn-primary { background: var(--epg-oscuro); color: #fff; }

/* ---------- Portada con video ---------- */
.epg-hero { position: relative; overflow: hidden; color: #fff; display: flex; align-items: flex-end; }
.epg-hero-media { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(140deg, var(--epg-navy), var(--epg-oscuro)); }
.epg-hero-media video, .epg-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.epg-hero-shade { position: absolute; inset: 0; background: #04090E; }
.epg-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,9,14,0) 45%, rgba(4,9,14,.75) 100%); }
.epg-hero-copy { position: relative; z-index: 1; padding-block: 64px 56px; }
.epg-hero-title { font-size: clamp(40px, 7vw, 84px); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; max-width: 16ch; }
.epg-hero-sub { font-size: 18px; color: rgba(255,255,255,.82); max-width: 54ch; margin: 16px 0 24px; }
.epg-hero.epg-align-centro .epg-hero-copy { text-align: center; }
.epg-hero.epg-align-centro .epg-hero-title, .epg-hero.epg-align-centro .epg-hero-sub { margin-inline: auto; }
