/* Enrigraphics: sistema visual. Solo afecta a body.eg-site (páginas nuevas y proyectos). */

/* Urbanist servida desde el plugin (fuente variable, pesos 100-900). */
@font-face {
	font-family: "Urbanist";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("fonts/urbanist-latin-ext-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Urbanist";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("fonts/urbanist-latin-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--eg-bg: #ffffff;
	--eg-ink: #111111;
	--eg-ink-soft: #3a3a3a;
	--eg-muted: #6b6b6b;
	--eg-line: #e6e6e6;
	--eg-accent: #fcde19;
	--eg-radius: 16px;
	--eg-wrap: 1320px;
	--eg-gutter: 24px;
	--eg-font: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body.eg-site {
	margin: 0;
	background: var(--eg-bg);
	color: var(--eg-ink);
	font-family: var(--eg-font);
	font-size: 18px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.eg-site *,
.eg-site *::before,
.eg-site *::after { box-sizing: border-box; }

.eg-site img { max-width: 100%; height: auto; display: block; }
.eg-site a { color: inherit; text-decoration: none; }

.eg-wrap {
	width: 100%;
	max-width: var(--eg-wrap);
	margin-inline: auto;
	padding-inline: var(--eg-gutter);
}

.eg-eyebrow {
	margin: 0 0 16px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--eg-muted);
}

.eg-display {
	margin: 0;
	font-size: clamp(44px, 7.5vw, 112px);
	font-weight: 600;
	line-height: 0.95;
	letter-spacing: -0.035em;
}

/* --- Cabecera ------------------------------------------------------------ */

.eg-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s;
}
.eg-header.is-scrolled { border-bottom-color: var(--eg-line); }
body.admin-bar .eg-header { top: 32px; }

.eg-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: var(--eg-wrap);
	margin-inline: auto;
	padding: 22px var(--eg-gutter);
}

.eg-logo-img { height: 38px; width: auto; }
.eg-logo-text { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: var(--eg-accent); }
.eg-logo-text strong { color: var(--eg-ink); }

.eg-menu {
	display: flex;
	gap: 36px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.eg-menu a {
	position: relative;
	font-size: 16px;
	font-weight: 500;
}
.eg-menu a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -6px;
	height: 2px;
	background: var(--eg-accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s ease;
}
.eg-menu a:hover::after,
.eg-menu .current-menu-item > a::after { transform: scaleX(1); }

.eg-menu-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}
.eg-menu-toggle span:not(.screen-reader-text) {
	display: block;
	width: 26px;
	height: 2px;
	margin: 6px auto;
	background: var(--eg-ink);
	transition: transform 0.3s;
}
.eg-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.eg-menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
}

@media (max-width: 860px) {
	.eg-menu-toggle { display: block; }
	.eg-nav {
		position: fixed;
		inset: 82px 0 auto 0;
		background: var(--eg-bg);
		border-bottom: 1px solid var(--eg-line);
		padding: 8px var(--eg-gutter) 32px;
		transform: translateY(-12px);
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.25s, transform 0.25s;
	}
	.eg-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
	.eg-menu { flex-direction: column; gap: 4px; }
	.eg-menu a { display: block; padding: 12px 0; font-size: 28px; font-weight: 600; }
	.eg-menu a::after { display: none; }
	.eg-logo-img { height: 30px; }
}

/* --- Elementor dentro del diseño nuevo ----------------------------------- */

.eg-site .elementor-section.elementor-section-boxed > .elementor-container { max-width: var(--eg-wrap); }
.eg-site .elementor-widget-heading .elementor-heading-title {
	font-family: var(--eg-font);
	color: var(--eg-ink);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.05;
}
.eg-site .eg-h-display .elementor-heading-title { font-size: clamp(44px, 7.5vw, 112px); line-height: 0.95; letter-spacing: -0.035em; }
.eg-site .eg-h-xl .elementor-heading-title { font-size: clamp(34px, 4.6vw, 64px); }
.eg-site .eg-h-l .elementor-heading-title { font-size: clamp(24px, 2.4vw, 34px); }
.eg-site .eg-eyebrow-w .elementor-heading-title {
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--eg-muted);
}
.eg-site .elementor-widget-text-editor {
	font-family: var(--eg-font);
	font-size: 19px;
	line-height: 1.6;
	color: var(--eg-ink-soft);
}
.eg-site .eg-lead .elementor-widget-container,
.eg-site .eg-lead { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.35; color: var(--eg-ink); }
.eg-site .elementor-button {
	font-family: var(--eg-font);
	font-size: 16px;
	font-weight: 600;
	padding: 18px 30px;
	border-radius: 999px;
	background: var(--eg-ink);
	color: #fff;
	transition: transform 0.25s, background 0.25s;
}
.eg-site .elementor-button:hover { background: #000; transform: translateY(-2px); }
.eg-site .eg-btn-ghost .elementor-button { background: transparent; color: var(--eg-ink); box-shadow: inset 0 0 0 1px var(--eg-ink); }
.eg-site .eg-btn-ghost .elementor-button:hover { background: var(--eg-ink); color: #fff; }
.eg-site .elementor-widget-image img { border-radius: var(--eg-radius); }
.eg-site .eg-hero-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Secciones que solo contienen la cabecera o el pie: sin márgenes */
.eg-site .eg-shell,
.eg-site .eg-shell .elementor-column > .elementor-widget-wrap,
.eg-site .eg-shell .elementor-widget-container { padding: 0 !important; margin: 0; }
.eg-site .eg-shell .elementor-widget { margin-bottom: 0; }
.eg-site .eg-shell.elementor-section:first-child { position: sticky; top: 0; z-index: 50; }
body.admin-bar.eg-site .eg-shell.elementor-section:first-child { top: 32px; }
.eg-site .eg-shell .eg-header { position: static; }

/* Botones en línea */
.eg-site .elementor-widget-wrap > .elementor-element.eg-inline { width: auto; margin-right: 12px; }
.eg-site .eg-hero .eg-lead { margin-bottom: 32px; }
.eg-site .eg-section { padding-block: clamp(64px, 9vw, 140px); }
.eg-site .eg-section-tight { padding-block: clamp(40px, 5vw, 72px); }
.eg-site .eg-line-top { border-top: 1px solid var(--eg-line); }

/* Cabeceras de página, foto de Sobre mí y datos de contacto */
.eg-site .eg-page-head { padding-bottom: clamp(40px, 5vw, 72px); }
.eg-site .eg-about-photo img { width: 100%; height: auto; border-radius: 0; }
.eg-site .eg-contact-data { font-size: clamp(20px, 2vw, 26px); font-weight: 600; line-height: 1.7; color: var(--eg-ink); }
.eg-site .eg-contact-data a { border-bottom: 2px solid var(--eg-accent); }

/* Formulario (Contact Form 7) */
.eg-site .wpcf7 label { display: block; margin-bottom: 20px; font-size: 14px; font-weight: 600; color: var(--eg-ink); }
.eg-site .wpcf7 .wpcf7-form-control-wrap { display: block; margin-top: 8px; }
.eg-site .wpcf7 input[type="text"],
.eg-site .wpcf7 input[type="email"],
.eg-site .wpcf7 input[type="tel"],
.eg-site .wpcf7 textarea {
	width: 100%;
	padding: 16px 18px;
	border: 1px solid var(--eg-line);
	border-radius: 12px;
	background: #fafafa;
	font: 400 17px/1.4 var(--eg-font);
	color: var(--eg-ink);
	transition: border-color 0.2s, background 0.2s;
}
.eg-site .wpcf7 textarea { height: 180px; resize: vertical; }
.eg-site .wpcf7 input:focus,
.eg-site .wpcf7 textarea:focus { outline: none; border-color: var(--eg-ink); background: #fff; }
.eg-site .wpcf7 input[type="submit"] {
	padding: 18px 34px;
	border: 0;
	border-radius: 999px;
	background: var(--eg-ink);
	font: 600 16px/1 var(--eg-font);
	color: #fff;
	cursor: pointer;
	transition: transform 0.25s;
}
.eg-site .wpcf7 input[type="submit"]:hover { transform: translateY(-2px); }
.eg-site .wpcf7 .wpcf7-spinner { vertical-align: middle; }
.eg-site .wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 14px 18px; border-radius: 12px; font-size: 15px; }
.eg-site .wpcf7-not-valid-tip { margin-top: 6px; font-size: 13px; font-weight: 500; }

/* Imagen de cada servicio en Inicio: mismo formato para que la fila quede alineada */
.eg-site .eg-svc-img { margin-bottom: 18px; }
.eg-site .eg-svc-img img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 12px;
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.eg-site .eg-svc-img .elementor-widget-container { overflow: hidden; border-radius: 12px; }
.eg-site .eg-svc-img a:hover img { transform: scale(1.04); }

/* Lista de servicios */
.eg-site .eg-service .elementor-widget-wrap { gap: 0; }
.eg-site .eg-service-num .elementor-heading-title { font-size: 15px; color: var(--eg-muted); font-weight: 500; }

/* --- Mosaico animado de portada (estilo showreel) ------------------------ */

.eg-reel { display: flex; flex-direction: column; gap: 12px; padding: 12px 0; overflow: hidden; }
.eg-reel-row { overflow: hidden; }
.eg-reel-track {
	display: flex;
	gap: 12px;
	width: max-content;
	animation: eg-reel 90s linear infinite;
}
.eg-reel-row-2 .eg-reel-track { animation-duration: 110s; animation-direction: reverse; }
.eg-reel:hover .eg-reel-track { animation-play-state: paused; }
.eg-reel-tile { display: block; flex: none; overflow: hidden; border-radius: 24px; background: #f3f3f3; }
.eg-reel-row-1 .eg-reel-tile { height: clamp(260px, 36vw, 520px); }
.eg-reel-row-2 .eg-reel-tile { height: clamp(160px, 21vw, 300px); }
.eg-site .eg-reel .eg-reel-tile img {
	height: 100% !important; /* Elementor fuerza height:auto en las imágenes */
	width: auto !important;
	max-width: none !important;
	object-fit: cover;
	transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.eg-reel-tile:hover img { transform: scale(1.04); }
@keyframes eg-reel { to { transform: translateX(-50%); } }
@media (max-width: 760px) {
	.eg-reel-tile { border-radius: 16px; }
}
/* Con "reducir movimiento" activado: el mosaico se mueve mucho más despacio (y se pausa al pasar el ratón). */
@media (prefers-reduced-motion: reduce) {
	.eg-reel-track { animation-duration: 160s; }
	.eg-reel-row-2 .eg-reel-track { animation-duration: 190s; }
}
/* La sección que lo contiene ocupa todo el ancho y no tiene márgenes */
.eg-site .eg-reel-section,
.eg-site .eg-reel-section .elementor-column > .elementor-widget-wrap { padding: 0 !important; }
.eg-site .eg-reel-section .elementor-widget { margin-bottom: 0; }
.eg-site .eg-hero-after-reel { padding-top: clamp(56px, 7vw, 110px); }

/* --- Proyectos: filtros y cuadrícula ------------------------------------- */

.eg-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 48px;
}
.eg-filters button {
	padding: 10px 20px;
	border: 1px solid var(--eg-line);
	border-radius: 999px;
	background: none;
	font: 500 15px/1 var(--eg-font);
	color: var(--eg-ink);
	cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.eg-filters button:hover { border-color: var(--eg-ink); }
.eg-filters button.is-active { background: var(--eg-ink); border-color: var(--eg-ink); color: #fff; }

.eg-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 56px 32px;
}
.eg-card { display: block; }
.eg-card[hidden] { display: none; }
.eg-card-media {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--eg-radius);
	background: #f3f3f3;
}
.eg-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.eg-card:hover .eg-card-media img { transform: scale(1.04); }
.eg-card-title {
	display: block;
	margin-top: 18px;
	font-size: 24px;
	font-weight: 600;
	letter-spacing: -0.01em;
}
.eg-card-cats { display: block; margin-top: 4px; font-size: 15px; color: var(--eg-muted); }

@media (max-width: 760px) {
	.eg-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* --- Ficha de proyecto ---------------------------------------------------- */

.eg-project-head { padding-block: clamp(56px, 8vw, 120px) clamp(32px, 4vw, 56px); }
.eg-project-hero img { width: 100%; border-radius: var(--eg-radius); }
.eg-project-body { padding-block: clamp(48px, 6vw, 96px); }
.eg-project-body .eg-subtitle {
	max-width: 900px;
	margin: 0 0 24px;
	font-size: clamp(26px, 3vw, 40px);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.02em;
}
.eg-project-body .eg-text { max-width: 760px; margin: 0 0 24px; font-size: 19px; color: var(--eg-ink-soft); }
.eg-project-body .eg-process { max-width: 760px; margin: 0 0 24px; font-size: 17px; color: var(--eg-ink-soft); }
.eg-project-body .eg-tags {
	margin: 0 0 40px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--eg-muted);
}
.eg-palette { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 64px; }
.eg-swatch {
	display: flex;
	align-items: flex-end;
	width: 120px;
	height: 120px;
	padding: 10px;
	border-radius: 12px;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.eg-swatch em {
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
	font: 600 12px/1.6 var(--eg-font);
	font-style: normal;
	color: var(--eg-ink);
}
/* Galería alineada: filas iguales; si el número es impar, la última ocupa todo el ancho.
   Clic en una imagen = verla completa (ver eg.js). */
.eg-gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}
.eg-gallery-item { margin: 0; overflow: hidden; border-radius: 12px; background: #f3f3f3; cursor: zoom-in; }
.eg-gallery-item img {
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.eg-gallery-item:hover img { transform: scale(1.03); }
.eg-gallery-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
.eg-gallery-item:last-child:nth-child(odd) img { aspect-ratio: 16 / 9; }
@media (max-width: 760px) {
	.eg-gallery { grid-template-columns: 1fr; gap: 16px; }
	.eg-gallery-item:last-child:nth-child(odd) img { aspect-ratio: 4 / 3; }
	.eg-swatch { width: 88px; height: 88px; }
}

/* Visor de imagen completa */
.eg-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4vmin;
	background: rgba(255, 255, 255, 0.96);
	cursor: zoom-out;
	opacity: 0;
	transition: opacity 0.25s;
}
.eg-lightbox.is-open { opacity: 1; }
.eg-lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15); cursor: default; }
.eg-lightbox { padding: 4vmin 88px; }
.eg-site .eg-lightbox .eg-lb-btn {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	padding: 0 !important;
	border: 1px solid var(--eg-line) !important;
	border-radius: 50% !important;
	background: #fff !important;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
	font: 400 26px/1 var(--eg-font) !important;
	color: var(--eg-ink) !important;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, transform 0.2s;
}
.eg-site .eg-lightbox .eg-lb-btn:hover { background: var(--eg-ink) !important; color: #fff !important; }
.eg-lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.eg-lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.eg-lb-close { top: 20px; right: 20px; font-size: 32px !important; }
.eg-lb-count {
	position: absolute;
	bottom: 18px;
	left: 50%;
	margin: 0;
	transform: translateX(-50%);
	font: 500 14px/1 var(--eg-font);
	color: var(--eg-muted);
}
.eg-project-hero img { cursor: zoom-in; }
@media (max-width: 760px) {
	.eg-lightbox { padding: 64px 12px; }
	.eg-site .eg-lightbox .eg-lb-btn { width: 44px; height: 44px; }
	.eg-lb-prev, .eg-lb-next { top: auto; bottom: 10px; transform: none; }
	.eg-lb-prev { left: 12px; }
	.eg-lb-next { right: 12px; }
	.eg-lb-close { top: 12px; right: 12px; }
}

.eg-next {
	display: block;
	padding-block: clamp(56px, 7vw, 104px);
	border-top: 1px solid var(--eg-line);
}
.eg-next-title {
	display: block;
	font-size: clamp(36px, 6vw, 88px);
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1;
	transition: transform 0.4s;
}
.eg-next:hover .eg-next-title { transform: translateX(12px); }

/* --- Pie ----------------------------------------------------------------- */

.eg-footer { border-top: 1px solid var(--eg-line); }
.eg-footer-inner { max-width: var(--eg-wrap); margin-inline: auto; padding: clamp(64px, 8vw, 120px) var(--eg-gutter) 40px; }
.eg-footer-cta {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(32px, 5vw, 80px);
	align-items: start;
}
.eg-footer-cta .eg-display { margin-bottom: 24px; }
.eg-footer-lead { margin: 0 0 32px; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.35; color: var(--eg-ink); }
.eg-footer-data { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 0; }
.eg-footer-data a {
	font-size: clamp(20px, 2vw, 26px);
	font-weight: 600;
	border-bottom: 2px solid var(--eg-accent);
}
@media (max-width: 860px) {
	.eg-footer-cta { grid-template-columns: 1fr; }
}
.eg-footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: clamp(64px, 8vw, 120px);
	padding-top: 32px;
	border-top: 1px solid var(--eg-line);
}
.eg-footer-bottom .eg-logo-img { height: 30px; }
.eg-social { display: flex; gap: 24px; margin: 0; padding: 0; list-style: none; font-weight: 500; }
.eg-social a:hover { color: var(--eg-muted); }
.eg-copy { margin: 0; font-size: 14px; color: var(--eg-muted); }

/* Enlaces legales del pie */
.eg-legal-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
	font-size: 14px;
	color: var(--eg-muted);
}
.eg-legal-links a:hover,
.eg-legal-links button:hover { color: var(--eg-ink); }
.eg-legal-links button { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }

/* --- Páginas legales ----------------------------------------------------- */

.eg-legal-head { padding-block: clamp(56px, 8vw, 120px) clamp(24px, 3vw, 40px); }
.eg-site .eg-legal-title { font-size: clamp(40px, 6vw, 80px); }
.eg-legal-body { max-width: 780px; padding-bottom: clamp(64px, 8vw, 120px); font-size: 17px; color: var(--eg-ink-soft); }
.eg-legal-body h2 { margin: 48px 0 12px; font-size: 24px; font-weight: 600; letter-spacing: -0.01em; color: var(--eg-ink); }
.eg-legal-body p, .eg-legal-body ul { margin: 0 0 16px; }
.eg-legal-body ul { padding-left: 20px; }
.eg-legal-body a { border-bottom: 1px solid var(--eg-accent); color: var(--eg-ink); }
.eg-legal-body table { width: 100%; margin: 16px 0 24px; border-collapse: collapse; font-size: 15px; }
.eg-legal-body th, .eg-legal-body td { padding: 10px 12px; border-bottom: 1px solid var(--eg-line); text-align: left; vertical-align: top; }
.eg-legal-body th { color: var(--eg-ink); font-weight: 600; }

/* --- Aviso de cookies ---------------------------------------------------- */

.eg-consent {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(17, 17, 17, 0.55);
}
.eg-consent[hidden] { display: none; }
.eg-consent-box {
	width: 100%;
	max-width: 590px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 28px 28px 22px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	font-family: var(--eg-font);
	color: var(--eg-ink);
}
.eg-consent-title { margin: 0 0 18px; font-size: 18px; font-weight: 500; text-align: center; }
.eg-consent-text { margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: var(--eg-ink-soft); }
.eg-consent-link {
	margin: 0 0 18px;
	padding: 0;
	border: 0;
	background: none;
	font: 500 14px/1.4 var(--eg-font);
	color: #2563eb;
	text-decoration: underline;
	cursor: pointer;
}
.eg-consent-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.eg-consent-btn {
	padding: 14px 10px;
	border: 1px solid var(--eg-ink);
	border-radius: 8px;
	background: var(--eg-ink);
	font: 500 16px/1 var(--eg-font);
	color: #fff;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}
.eg-consent-btn:hover { background: #000; }
.eg-consent-btn-ghost { background: #fafafa; color: var(--eg-ink); border-color: #cfcfcf; }
.eg-consent-btn-ghost:hover { background: #f0f0f0; }
.eg-consent-btn[hidden] { display: none; }
.eg-consent-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 18px 0 0; font-size: 13px; }
.eg-consent-legal a { color: #2563eb; text-decoration: underline; }
.eg-consent-prefs { margin: 0 0 16px; border-top: 1px solid var(--eg-line); }
.eg-consent-cat {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 4px 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--eg-line);
	font-size: 13px;
	color: var(--eg-muted);
	cursor: pointer;
}
.eg-consent-cat strong { display: block; font-size: 14px; color: var(--eg-ink); }
.eg-consent-cat input { width: 20px; height: 20px; accent-color: var(--eg-ink); }
.eg-consent-cat em { grid-column: 2; font-size: 12px; font-style: normal; }
@media (max-width: 520px) {
	.eg-consent-actions { grid-template-columns: 1fr; }
}
/* El tema aplica estilos propios a todos los <button>: aquí mandan los del aviso. */
.eg-site .eg-consent button.eg-consent-btn {
	background: var(--eg-ink) !important;
	border: 1px solid var(--eg-ink) !important;
	color: #fff !important;
	border-radius: 8px !important;
	padding: 14px 10px !important;
	font: 500 16px/1 var(--eg-font) !important;
}
.eg-site .eg-consent button.eg-consent-btn:hover { background: #000 !important; }
.eg-site .eg-consent button.eg-consent-btn-ghost {
	background: #fafafa !important;
	border-color: #cfcfcf !important;
	color: var(--eg-ink) !important;
}
.eg-site .eg-consent button.eg-consent-btn-ghost:hover { background: #f0f0f0 !important; }
.eg-site .eg-consent button.eg-consent-link,
.eg-site .eg-legal-links button {
	border: 0 !important;
	background: none !important;
	padding: 0 !important;
	box-shadow: none !important;
}
.eg-site .eg-consent button.eg-consent-link { color: #2563eb !important; font: 500 14px/1.4 var(--eg-font) !important; }
.eg-site .eg-legal-links button { color: inherit !important; font: inherit !important; }

/* --- Animación de entrada ------------------------------------------------ */

.eg-js .eg-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.eg-js .eg-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	.eg-js .eg-reveal { opacity: 1; transform: none; transition: none; }
	.eg-card-media img, .eg-next-title { transition: none; }
}
