/* ==========================================================================
   Lunagrama — estilos del tema de bloques
   Colores, fuentes y tamaños base: theme.json. Aquí: composición editorial,
   componentes y animaciones. Clases propias con prefijo «lg-».
   ========================================================================== */

:root {
	--lg-rojo: var(--wp--preset--color--rojo, #C11734);
	--lg-mostaza: var(--wp--preset--color--mostaza, #DD952C);
	--lg-crema: var(--wp--preset--color--crema, #FCF9EA);
	--lg-papel: var(--wp--preset--color--papel, #F3ECD6);
	--lg-marron: var(--wp--preset--color--marron, #261813);
	--lg-marron-2: var(--wp--preset--color--marron-2, #33221B);
	--lg-marron-3: var(--wp--preset--color--marron-3, #1B100C);
	--lg-gris: var(--wp--preset--color--gris, #6B5D55);
	--lg-linea: rgba(38, 24, 19, .18);
	--lg-linea-clara: rgba(252, 249, 234, .2);
	--lg-serif: var(--wp--preset--font-family--serif);
	--lg-sans: var(--wp--preset--font-family--sans);
	--lg-gutter: var(--wp--custom--gutter, clamp(20px, 4.5vw, 72px));
	--lg-gap: var(--wp--custom--col-gap, clamp(16px, 2.2vw, 32px));
	--lg-ease: cubic-bezier(.22, .61, .36, 1);
	--lg-ease-out: cubic-bezier(.16, 1, .3, 1);
	--lg-section: clamp(88px, 12vw, 176px);
	--lg-space-l: clamp(48px, 6vw, 96px);
	--lg-space-m: clamp(28px, 3.5vw, 48px);
	--lg-header: 76px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--lg-rojo); color: var(--lg-crema); }
:where(a, button, input):focus-visible { outline: 2px solid var(--lg-rojo); outline-offset: 3px; }

.wp-site-blocks { padding-top: 0; padding-bottom: 0; }
.wp-site-blocks > *,
.lg-main > * { margin-block: 0 !important; }

h1 em, h2 em, h3 em { color: var(--lg-rojo); font-weight: inherit; }
.lg-dark h2 em, .lg-dark h1 em { color: var(--lg-mostaza); }
.lg-lucernario h2 em { color: inherit; }

/* Utilidades de texto */
.is-style-etiqueta,
.lg-key,
.lg-meta,
.lg-cat,
.lg-flag,
.lg-tag {
	font-family: var(--lg-sans);
	font-size: var(--wp--preset--font-size--label);
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	line-height: 1.5;
}
.is-style-entradilla {
	font-family: var(--lg-serif);
	font-style: italic;
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.25;
}
.lg-muted { color: var(--lg-gris); }
.lg-dark .lg-muted, .lg-soft { color: rgba(252, 249, 234, .72); }
.lg-small { font-size: var(--wp--preset--font-size--small); line-height: 1.55; }
.lg-red { color: var(--lg-rojo); }
.lg-mostaza { color: var(--lg-mostaza); }
.lg-num { font-family: var(--lg-serif); font-style: italic; font-size: 1.15rem; color: var(--lg-rojo); }
.lg-ph { color: var(--lg-rojo); font-style: italic; }
.lg-center { justify-content: center; }

/* ---------- Secciones ---------- */
.lg-section { padding-block: var(--lg-section); }
.lg-dark a:not(.wp-block-button__link):hover { color: var(--lg-mostaza); }

/* Cabecera de sección: «01 —— Etiqueta» */
.lg-section-head { gap: 18px !important; align-items: baseline !important; margin-bottom: var(--lg-space-l) !important; }
.lg-section-head > * { margin: 0 !important; }
.lg-section-head::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .25; transform: translateY(-4px); }
.lg-section-head__n { font-family: var(--lg-serif); font-size: 2.25rem !important; line-height: 1; color: var(--lg-rojo); letter-spacing: 0 !important; text-transform: none !important; }
.lg-dark .lg-section-head__n { color: var(--lg-mostaza); }
.lg-lucernario .lg-section-head__n { color: var(--lg-marron); }

/* Tira editorial superior */
.lg-meta {
	padding: 14px 0;
	border-top: 1px solid var(--lg-marron);
	border-bottom: 1px solid var(--lg-linea);
	gap: 16px !important;
}
.lg-meta > * { margin: 0 !important; }
.lg-meta a { text-decoration: none; }
.lg-meta a:hover { color: var(--lg-rojo); }

/* ---------- Cabecera del sitio ---------- */
.lg-site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--lg-crema);
	border-bottom: 1px solid transparent;
	transition: border-color .4s var(--lg-ease);
}
.admin-bar .lg-site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .lg-site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .lg-site-header { top: 0; } }
.lg-site-header.is-scrolled { border-bottom-color: var(--lg-linea); }
.lg-header { padding-block: 0; }
.lg-header__inner { min-height: var(--lg-header); gap: 32px; transition: min-height .4s var(--lg-ease); }
.lg-site-header.is-scrolled .lg-header__inner { min-height: 62px; }
.lg-brand { display: block; line-height: 0; flex: none; }
.lg-brand img { height: 40px; width: auto; transition: height .4s var(--lg-ease); }
.lg-site-header.is-scrolled .lg-brand img { height: 34px; }
.lg-header__nav { gap: clamp(18px, 2.4vw, 36px) !important; }
.lg-header__cta { margin: 0 !important; }
.lg-header__cta .wp-block-button__link { min-height: 42px; padding: .7rem 1.1rem; font-size: .82rem; }

.lg-nav .wp-block-navigation__container { gap: clamp(18px, 2.4vw, 36px); }
.lg-nav .wp-block-navigation-item__content { position: relative; padding: 6px 0; text-decoration: none; }
.lg-nav .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--lg-rojo);
	transform: scaleX(0); transform-origin: right; transition: transform .45s var(--lg-ease-out);
}
.lg-nav .wp-block-navigation-item__content:hover::after,
.lg-nav .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); transform-origin: left; }
.lg-nav .wp-block-navigation-item__content:hover { color: inherit; }

/* Menú móvil a pantalla completa */
.lg-nav .wp-block-navigation__responsive-container-open { color: var(--lg-marron); }
.lg-nav .wp-block-navigation__responsive-container-open svg { width: 30px; height: 30px; }
.lg-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--lg-marron) !important;
	color: var(--lg-crema) !important;
	padding: calc(var(--lg-header) + 24px) var(--lg-gutter) 32px;
}
.lg-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { align-items: flex-start; }
.lg-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 6px; align-items: flex-start; }
.lg-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--lg-serif); font-size: clamp(2.4rem, 11vw, 3.5rem); font-weight: 400; line-height: 1.15;
}
.lg-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after { display: none; }
.lg-nav .wp-block-navigation__responsive-container-close { color: var(--lg-crema); top: 22px; right: var(--lg-gutter); }
.lg-nav .wp-block-navigation__responsive-container-close svg { width: 30px; height: 30px; }

/* ---------- Botones ---------- */
.wp-block-button__link {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	border-radius: 0;
	transition: color .45s var(--lg-ease), border-color .45s var(--lg-ease);
}
.wp-block-button__link::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: var(--lg-fill, var(--lg-marron));
	transform: scaleY(0); transform-origin: bottom;
	transition: transform .5s var(--lg-ease-out);
}
.wp-block-button__link:hover::before,
.wp-block-button__link:focus-visible::before { transform: scaleY(1); }
.wp-block-button__link:hover { border-color: var(--lg-fill, var(--lg-marron)) !important; }

.wp-block-button.is-style-outline > .wp-block-button__link {
	--lg-fill: var(--lg-marron);
	background: transparent;
	color: var(--lg-marron);
	border: 1px solid var(--lg-marron);
	padding: 1rem 1.75rem;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { color: var(--lg-crema); }
.lg-dark .wp-block-button.is-style-outline > .wp-block-button__link { --lg-fill: var(--lg-crema); color: var(--lg-crema); border-color: var(--lg-crema); }
.lg-dark .wp-block-button.is-style-outline > .wp-block-button__link:hover { color: var(--lg-marron); }

.wp-block-button.is-style-oscuro > .wp-block-button__link { --lg-fill: var(--lg-rojo); background: var(--lg-marron); border-color: var(--lg-marron); color: var(--lg-crema); }
.wp-block-button.is-style-crema > .wp-block-button__link { --lg-fill: var(--lg-mostaza); background: var(--lg-crema); border-color: var(--lg-crema); color: var(--lg-marron); }
.wp-block-button.is-style-crema > .wp-block-button__link:hover { color: var(--lg-marron); }
.lg-btn-large > .wp-block-button__link { min-height: 64px; padding: 1.25rem 2.5rem; font-size: 1rem; }

/* Enlace con flecha (Leer más) */
.lg-link-arrow {
	display: inline-block; margin-top: 24px; font-weight: 600; font-size: .95rem; text-decoration: none;
	padding-bottom: 4px;
	background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
	transition: background-size .5s var(--lg-ease-out), color .3s;
}
.lg-link-arrow:hover { color: var(--lg-rojo); background-size: 40% 1px; }

/* ---------- Inicio · presentación ---------- */
.lg-hero { padding-top: clamp(24px, 3vw, 40px); padding-bottom: 0; overflow-x: hidden; overflow-x: clip; }
.lg-hero__grid { margin-top: clamp(40px, 6vw, 88px) !important; gap: var(--lg-gap) !important; align-items: flex-start !important; }
.lg-hero__text > * { margin-block: 0; }
.lg-kicker { color: var(--lg-rojo); margin-bottom: clamp(20px, 2.5vw, 36px) !important; }
.lg-hero-title {
	position: relative; z-index: 2;
	font-size: var(--wp--preset--font-size--hero) !important;
	line-height: .92 !important;
	margin-right: -14%;
	animation: lg-fade-up 1.1s var(--lg-ease-out) both;
}
.lg-hero-title em { font-weight: 400; }
.lg-hero__lead { max-width: 30ch; margin-top: clamp(36px, 4.5vw, 64px) !important; animation: lg-fade-up 1s var(--lg-ease) .35s both; }
.lg-hero__copy { max-width: 46ch; margin-top: 20px !important; animation: lg-fade-up 1s var(--lg-ease) .45s both; }
.lg-hero__actions { margin-top: 36px !important; gap: 12px; animation: lg-fade-up 1s var(--lg-ease) .55s both; }

.lg-hero-figure { position: relative; isolation: isolate; margin: clamp(8px, 2vw, 24px) 0 0; }
.lg-hero-figure::before {
	content: ""; position: absolute; z-index: -1;
	top: clamp(-28px, -2vw, -16px); right: calc(var(--lg-gutter) * -1); bottom: 18%; left: 22%;
	background: var(--lg-rojo);
	animation: lg-slide-in 1.3s var(--lg-ease-out) .35s both;
}
.lg-hero-figure img { display: block; width: 100%; aspect-ratio: 4 / 4.9; object-fit: cover; object-position: 50% 8%; background: #8e8c87; animation: lg-unveil 1.3s var(--lg-ease-out) .15s both; }
.lg-hero-figure figcaption { margin-top: 14px; text-align: left; }

/* Los cuatro ámbitos */
.lg-domains {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0 var(--lg-gap) !important;
	margin-top: clamp(64px, 8vw, 120px) !important;
	border-top: 1px solid var(--lg-marron);
}
.lg-domains > .wp-block-column { padding: 22px var(--lg-gap) 8px 0; border-right: 1px solid var(--lg-linea); }
.lg-domains > .wp-block-column:last-child { border-right: 0; }
.lg-domains > .wp-block-column > * { margin-block: 0; }
.lg-domain__t { font-size: var(--wp--preset--font-size--titulo-3) !important; margin: 6px 0 10px !important; }
.lg-domains .lg-small { max-width: 30ch; }

/* ---------- Inicio · mirada ---------- */
.lg-mirada__grid { justify-content: space-between; gap: var(--lg-gap) !important; }
.lg-frame { margin: 0; }
.lg-frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 40% 30%; transition: transform 1.4s var(--lg-ease-out); }
.lg-frame { overflow: hidden; }
.lg-frame figcaption { margin-top: 14px; text-align: left; }
.lg-frame:hover img { transform: scale(1.035); }
.lg-mirada__text { padding-top: clamp(0px, 3vw, 48px); }
.lg-statement { font-size: clamp(2rem, 3.4vw, 3.4rem) !important; line-height: 1.08 !important; }
.lg-mirada__cols { margin-top: var(--lg-space-m) !important; gap: var(--lg-gap) !important; }
.lg-facts { margin-top: var(--lg-space-m) !important; border-top: 1px solid var(--lg-marron); }
.lg-facts > * { margin: 0 !important; }
.lg-fact { display: grid; grid-template-columns: 9rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--lg-linea); }
.lg-fact > * { margin: 0 !important; }
.lg-fact .lg-key { color: var(--lg-rojo); padding-top: 4px; }
.lg-fact__v { font-family: var(--lg-serif); font-size: 1.25rem; line-height: 1.3; }

/* ---------- Portadas («mesa» donde se apoya el libro) ---------- */
.lg-stage {
	position: relative;
	aspect-ratio: 4 / 5;
	margin: 0 !important;
	background: var(--lg-marron-2);
	display: grid;
	place-items: center;
	overflow: hidden;
}
.lg-stage > a { display: grid; place-items: center; width: 100%; height: 100%; }
.lg-stage img {
	width: auto !important;
	height: auto !important;
	max-width: 66%;
	max-height: 80%;
	object-fit: contain !important;
	box-shadow: 0 2px 4px rgba(0, 0, 0, .25), 0 24px 48px -12px rgba(0, 0, 0, .55);
	transition: transform .8s var(--lg-ease-out), box-shadow .8s var(--lg-ease-out);
}
.lg-stage::after {
	content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
	background: var(--lg-mostaza); transform: scaleX(0); transform-origin: left;
	transition: transform .7s var(--lg-ease-out);
}
.lg-stage:hover img { transform: translateY(-10px) rotate(-1.2deg); box-shadow: 0 2px 4px rgba(0, 0, 0, .25), 0 40px 64px -16px rgba(0, 0, 0, .65); }
.lg-stage:hover::after { transform: scaleX(1); }
.lg-stage--claro { background: var(--lg-papel); }
.lg-stage--claro img { box-shadow: 0 2px 4px rgba(38, 24, 19, .2), 0 24px 44px -14px rgba(38, 24, 19, .45); }
.lg-stage--claro::after { background: var(--lg-rojo); }
.lg-stage--ficha img { max-width: 70%; max-height: 82%; }
.lg-stage--ficha:hover img { transform: none; }
.lg-stage--ficha::after { display: none; }

/* Etiquetas y datos de la ficha */
.lg-cats { gap: 10px !important; align-items: center !important; }
.lg-cats > * { margin: 0 !important; }
.lg-cat { color: var(--lg-rojo); }
.lg-cat a { text-decoration: none; color: inherit; }
.lg-dark .lg-cat { color: var(--lg-mostaza); }
.lg-flag { padding: 4px 9px; border: 1px solid currentColor; letter-spacing: .12em; }
.lg-flag--sello { background: var(--lg-mostaza); border-color: var(--lg-mostaza); color: var(--lg-marron); }
.lg-sub { font-family: var(--lg-serif); font-style: italic; font-size: clamp(1.1rem, 1.4vw, 1.3rem); line-height: 1.35; color: var(--lg-gris); max-width: 36ch; }
.lg-dark .lg-sub { color: rgba(252, 249, 234, .72); }
.lg-data { margin-top: 18px !important; border-top: 1px solid var(--lg-marron); }
.lg-dark .lg-data { border-top-color: var(--lg-linea-clara); }
.lg-data > * { margin: 0 !important; }
.lg-row { display: grid; grid-template-columns: 8.5rem 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--lg-linea); font-size: var(--wp--preset--font-size--small); }
.lg-dark .lg-row { border-bottom-color: var(--lg-linea-clara); }
.lg-row > * { margin: 0 !important; }
.lg-row .lg-key { color: var(--lg-gris); padding-top: 2px; }
.lg-dark .lg-row .lg-key { color: rgba(252, 249, 234, .55); }

/* ---------- Inicio · proyectos seleccionados ---------- */
.lg-intro { margin-bottom: var(--lg-space-l) !important; justify-content: space-between; }
.lg-works__grid {
	display: grid !important;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: var(--lg-gap);
	row-gap: var(--lg-space-l);
	list-style: none;
	margin: 0;
	padding: 0;
}
.lg-works__grid > li { margin: 0 !important; }
.lg-works__grid > li:nth-child(4n+1) { grid-column: 1 / span 7; }
.lg-works__grid > li:nth-child(4n+2) { grid-column: 9 / span 4; margin-top: clamp(40px, 9vw, 160px) !important; }
.lg-works__grid > li:nth-child(4n+3) { grid-column: 2 / span 4; }
.lg-works__grid > li:nth-child(4n+4) { grid-column: 7 / span 5; margin-top: clamp(40px, 7vw, 120px) !important; }
.lg-works__grid > li:nth-child(4n+1) .lg-stage { aspect-ratio: 1; }
.lg-work > * { margin: 0 !important; }
.lg-work__meta { margin-top: 22px !important; }
.lg-work__meta > * { margin: 0; }
.lg-work__title { font-size: var(--wp--preset--font-size--titulo-3) !important; margin-top: 10px !important; }
.lg-work__title a, .lg-entry__title a { text-decoration: none; background: linear-gradient(currentColor, currentColor) left 95% / 0 1px no-repeat; transition: background-size .6s var(--lg-ease-out); }
.lg-work:hover .lg-work__title a, .lg-entry:hover .lg-entry__title a { background-size: 100% 1px; }
.lg-work .lg-sub { margin-top: 4px !important; }
.lg-works + .wp-block-buttons { margin-top: var(--lg-space-l) !important; }

/* ---------- Inicio · servicios ---------- */
.lg-servicios__grid { justify-content: space-between; gap: var(--lg-gap) !important; }
.lg-sticky { position: sticky; top: 120px; align-self: flex-start !important; }
.lg-sticky > p { margin-top: 24px; max-width: 38ch; }
.lg-services { border-top: 1px solid var(--lg-marron); }
.lg-services > * { margin: 0 !important; }
.lg-service {
	position: relative;
	display: grid;
	grid-template-columns: 3.5rem 1fr;
	column-gap: 20px;
	padding: 28px 0 30px;
	border-bottom: 1px solid var(--lg-linea);
}
.lg-service > * { margin: 0 !important; }
.lg-service > .lg-num { grid-row: span 2; padding-top: 6px; font-size: 1.25rem; }
.lg-service__t { font-size: var(--wp--preset--font-size--titulo-3) !important; transition: color .4s var(--lg-ease), transform .5s var(--lg-ease-out); }
.lg-service > .lg-muted { margin-top: 8px !important; max-width: 52ch; font-size: .98rem; }
.lg-service::after {
	content: "→"; position: absolute; right: 0; top: 30px; font-size: 1.4rem; color: var(--lg-rojo);
	opacity: 0; transform: translateX(-12px); transition: opacity .4s var(--lg-ease), transform .5s var(--lg-ease-out);
}
.lg-service:hover .lg-service__t { color: var(--lg-rojo); transform: translateX(8px); }
.lg-service:hover::after { opacity: 1; transform: none; }

/* ---------- Inicio · colaboraciones ---------- */
.lg-credits { gap: var(--lg-gap) !important; }
.lg-credits .is-style-etiqueta { margin-bottom: 18px; }
.lg-credits__list { list-style: none; margin: 0; padding: 0; }
.lg-credits__list li {
	font-family: var(--lg-serif);
	font-size: clamp(1.5rem, 2.3vw, 2.15rem);
	line-height: 1.2;
	padding: 12px 0;
	border-bottom: 1px solid var(--lg-linea);
	margin: 0;
}

/* ---------- Inicio · Lucernario ---------- */
.lg-lucernario__grid { justify-content: space-between; gap: var(--lg-gap) !important; }
.lg-lucernario .lg-section-head { margin-bottom: var(--lg-space-m) !important; }
.lg-tag { display: inline-block; padding: 7px 12px; border: 1px solid var(--lg-marron); margin-bottom: 28px !important; }
.lg-tag::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lg-crema); margin-right: 10px; vertical-align: 1px; }
.lg-lucernario p:not(.lg-tag):not(.is-style-etiqueta) { max-width: 52ch; }
.lg-first-book {
	gap: 20px !important;
	margin-top: 36px !important;
	padding: 16px 0;
	max-width: 540px;
	border-top: 1px solid rgba(38, 24, 19, .35);
	border-bottom: 1px solid rgba(38, 24, 19, .35);
}
.lg-first-book__img { margin: 0 !important; flex: none; }
.lg-first-book__img img { width: 88px !important; height: 88px !important; object-fit: cover; box-shadow: 0 10px 24px -10px rgba(38, 24, 19, .6); transition: transform .6s var(--lg-ease-out); }
.lg-first-book:hover .lg-first-book__img img { transform: translateY(-4px) rotate(-1.5deg); }
.lg-first-book__text > * { margin: 0 !important; }
.lg-first-book__title { font-family: var(--lg-serif); font-size: 1.6rem; line-height: 1.1; font-weight: 500; }
.lg-first-book__title a { text-decoration: none; }
.lg-first-book__title a:hover { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.lg-lucernario .wp-block-buttons { margin-top: 36px !important; }
.lg-lucernario__logo { margin: 0 auto !important; text-align: center; }
.lg-lucernario__logo img { width: min(100%, 380px); height: auto; }

/* ---------- Contacto / cierre ---------- */
.lg-contacto__inner { position: relative; }
.lg-symbol {
	position: absolute;
	right: 0;
	top: calc(var(--lg-space-l) + 40px);
	width: clamp(120px, 16vw, 230px);
	margin: 0 !important;
	pointer-events: none;
}
.lg-cierre .lg-symbol { top: 0; }
.lg-symbol img { width: 100%; height: auto; }
.lg-closing { font-size: var(--wp--preset--font-size--display) !important; line-height: .98 !important; letter-spacing: -.02em; max-width: 14ch; }
.lg-cierre .is-style-etiqueta { margin-bottom: 24px; }
.lg-contacto__row, .lg-cierre__actions { margin-top: var(--lg-space-l) !important; gap: 40px !important; }
.lg-contacto__data { min-width: min(100%, 380px); }
.lg-contacto__data .lg-row { grid-template-columns: 7rem 1fr; align-items: center; font-size: 1rem; }
.lg-contacto__data .lg-row .lg-key { color: var(--lg-mostaza); }
.lg-contacto__data a { text-decoration: none; background: linear-gradient(currentColor, currentColor) left 95% / 100% 1px no-repeat; transition: background-size .5s var(--lg-ease-out), color .3s; }
.lg-contacto__data a:hover { color: var(--lg-mostaza); background-size: 0 1px; }

/* Iconos de redes */
.lg-social { gap: 10px !important; }
.lg-social .wp-social-link {
	border: 1px solid var(--lg-linea-clara);
	border-radius: 50%;
	transition: background-color .35s var(--lg-ease), border-color .35s var(--lg-ease), color .35s var(--lg-ease), transform .45s var(--lg-ease-out);
}
.lg-social .wp-social-link a { padding: 11px; background: none !important; }
.lg-social .wp-social-link svg { width: 20px; height: 20px; }
.lg-social .wp-social-link:hover { background: var(--lg-mostaza) !important; border-color: var(--lg-mostaza); color: var(--lg-marron) !important; transform: translateY(-2px); }
.lg-social .wp-social-link:hover a { color: var(--lg-marron) !important; }

/* ---------- Pie ---------- */
.lg-footer { background: var(--lg-marron-3); color: rgba(252, 249, 234, .75); padding-block: 44px; font-size: var(--wp--preset--font-size--small); }
.lg-footer__inner { gap: 20px 40px !important; }
.lg-footer__logo { display: block; line-height: 0; }
.lg-footer__logo img { height: 34px; width: auto; }
.lg-footer__nav .wp-block-navigation__container { gap: 8px 24px; }
.lg-footer__nav a { text-decoration: none; font-size: var(--wp--preset--font-size--small); }
.lg-footer__nav a:hover { color: var(--lg-mostaza); }
.lg-footer .lg-social .wp-social-link a { padding: 9px; }
.lg-footer__copy { margin: 0 !important; }

/* ---------- Páginas: cabecera ---------- */
.lg-page-hero { padding-top: clamp(24px, 3vw, 40px); padding-bottom: clamp(48px, 6vw, 88px); }
.lg-page-hero__grid { margin-top: clamp(40px, 6vw, 88px) !important; justify-content: space-between; }
.lg-page-title {
	font-size: var(--wp--preset--font-size--hero) !important;
	line-height: .92 !important;
	letter-spacing: -.025em;
	animation: lg-fade-up 1.1s var(--lg-ease-out) both;
}
.lg-page-title--term { font-size: clamp(2.8rem, 6vw, 6.5rem) !important; }
.lg-page-title em { font-weight: 400; }
.lg-page-hero--simple { padding-top: clamp(48px, 7vw, 104px); }
.lg-page-hero--simple .lg-page-title { font-size: var(--wp--preset--font-size--display) !important; }
.lg-page-hero__aside { padding-bottom: 1.2em; animation: lg-fade-up 1s var(--lg-ease) .4s both; }
.lg-count {
	margin-top: 22px !important; padding-top: 14px; border-top: 1px solid var(--lg-marron);
	font-size: var(--wp--preset--font-size--label); font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.lg-count span { color: var(--lg-rojo); }
.lg-page-body { padding-top: 0; }

/* Pestañas de categorías */
.lg-filters-bar {
	position: sticky; top: 62px; z-index: 20;
	background: var(--lg-crema);
	border-top: 1px solid var(--lg-linea);
	border-bottom: 1px solid var(--lg-linea);
}
.admin-bar .lg-filters-bar { top: 94px; }
.lg-filters-bar > * { max-width: var(--wp--style--global--wide-size) !important; }
.lg-filters ul { display: flex; gap: 8px; margin: 0; padding: 14px 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.lg-filters ul::-webkit-scrollbar { display: none; }
.lg-filter {
	display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 40px; padding: 0 16px;
	font: 500 .85rem/1 var(--lg-sans); color: var(--lg-marron); text-decoration: none;
	border: 1px solid var(--lg-linea); border-radius: 999px;
	transition: background-color .35s var(--lg-ease), color .35s var(--lg-ease), border-color .35s var(--lg-ease);
}
.lg-filter span { font-size: .72rem; opacity: .6; }
.lg-filter:hover { border-color: var(--lg-marron); color: var(--lg-marron); }
.lg-filter.is-active { background: var(--lg-marron); border-color: var(--lg-marron); color: var(--lg-crema); }

/* ---------- Catálogo ---------- */
.lg-catalog { padding-top: clamp(32px, 4vw, 56px); }
.lg-catalog__list { list-style: none; margin: 0; padding: 0; counter-reset: lg-proyecto; }
.lg-catalog__list > li { margin: 0 !important; counter-increment: lg-proyecto; }
.lg-entry {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: var(--lg-gap);
	align-items: center;
	padding-block: clamp(36px, 5vw, 72px);
	border-bottom: 1px solid var(--lg-linea);
}
.lg-catalog__list > li:first-child .lg-entry { border-top: 1px solid var(--lg-marron); }
.lg-entry::before {
	content: counter(lg-proyecto, decimal-leading-zero);
	grid-column: 1 / span 1; grid-row: 1; align-self: start;
	font-family: var(--lg-serif); font-style: italic; font-size: 1.5rem; color: var(--lg-rojo);
}
.lg-entry > * { margin: 0 !important; }
.lg-entry > .lg-stage { grid-column: 2 / span 4; grid-row: 1; }
.lg-entry__body { grid-column: 7 / span 6; grid-row: 1; }
.lg-entry__body > * { margin: 0; }
.lg-entry__title { font-size: clamp(2rem, 3.6vw, 3.5rem) !important; line-height: 1.02 !important; margin-top: 14px !important; }
.lg-entry .lg-sub { margin-top: 8px !important; }
.lg-entry .lg-data { margin-top: 26px !important; }
.lg-entry .lg-row { grid-template-columns: 9rem 1fr; font-size: .95rem; }
.lg-empty { padding: 64px 0; font-family: var(--lg-serif); font-style: italic; font-size: var(--wp--preset--font-size--lead); color: var(--lg-gris); border-top: 1px solid var(--lg-marron); }

/* ---------- Ficha de proyecto ---------- */
.lg-ficha-hero { padding-top: clamp(24px, 3vw, 40px); padding-bottom: var(--lg-space-l); }
.lg-ficha-hero__grid { margin-top: clamp(32px, 5vw, 72px) !important; justify-content: space-between; }
.lg-stage--ficha { animation: lg-unveil 1.2s var(--lg-ease-out) both; }
.lg-ficha-hero__body > * { margin-block: 0; }
.lg-ficha-hero__body { animation: lg-fade-up 1s var(--lg-ease) .2s both; }
.lg-ficha-title { font-size: clamp(2.6rem, 5.4vw, 5.25rem) !important; line-height: .98 !important; letter-spacing: -.02em; margin-top: 16px !important; }
.lg-ficha-hero__body .lg-sub { font-size: var(--wp--preset--font-size--lead); margin-top: 12px !important; }
.lg-ficha-hero__body .lg-data { margin-top: 26px !important; }
.lg-ficha-hero__body .lg-row { grid-template-columns: 9rem 1fr; font-size: .95rem; }
.lg-ext { margin-top: 28px !important; }

.lg-ficha-text { padding-top: var(--lg-space-l); }
.lg-ficha-text__grid { border-top: 1px solid var(--lg-marron); padding-top: 24px; justify-content: space-between; }
.lg-ficha-text__body { max-width: 68ch; }
.lg-ficha-text__body p { font-size: 1.125rem; line-height: 1.75; }
.lg-ficha-text__body .is-style-entradilla { font-size: clamp(1.6rem, 2.4vw, 2.25rem); line-height: 1.2; }
.lg-ficha-text__body h2 { font-size: clamp(1.6rem, 2.4vw, 2.25rem); margin-top: var(--lg-space-l); padding-top: 24px; border-top: 1px solid var(--lg-linea); }
.lg-ficha-text__body .wp-block-gallery { margin-top: var(--lg-space-m); }

.lg-ficha-nav { border-top: 1px solid var(--lg-linea); }
.lg-ficha-nav__inner { gap: var(--lg-gap) !important; }
.lg-ficha-nav__inner > * { flex: 1; margin: 0 !important; padding: clamp(32px, 4vw, 56px) 0; }
.lg-ficha-nav__next { text-align: right; border-left: 1px solid var(--lg-linea); }
.lg-ficha-nav a { display: inline-grid; gap: 8px; text-decoration: none; font-family: var(--lg-serif); font-size: clamp(1.5rem, 2.4vw, 2.25rem); line-height: 1.1; }
.lg-ficha-nav a:hover { color: var(--lg-rojo); }
.lg-ficha-nav .post-navigation-link__label,
.lg-ficha-nav [class*="__arrow"] {
	font-family: var(--lg-sans); font-size: var(--wp--preset--font-size--label); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--lg-gris);
}

/* ---------- Cuaderno ---------- */
.lg-posts { padding-top: 0; }
.lg-posts__grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--lg-space-l) var(--lg-gap); list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--lg-marron); padding-top: var(--lg-space-m); }
.lg-posts__grid > li { margin: 0 !important; }
.lg-post-card > * { margin-block: 0; }
.lg-post-card__img { margin-bottom: 20px !important; overflow: hidden; }
.lg-post-card__img img { transition: transform 1.2s var(--lg-ease-out); }
.lg-post-card:hover .lg-post-card__img img { transform: scale(1.035); }
.lg-post-card__title { font-size: clamp(1.5rem, 2vw, 2rem) !important; margin-top: 10px !important; }
.lg-post-card__title a { text-decoration: none; }
.lg-post-card .wp-block-post-excerpt { margin-top: 10px; }
.lg-post-card__date { font-size: var(--wp--preset--font-size--small); color: var(--lg-gris); margin-top: 12px !important; }
.lg-pagination { margin-top: var(--lg-space-l) !important; }

.lg-article { padding-top: clamp(48px, 7vw, 104px); }
.lg-article__head { text-align: left; }
.lg-article__head > * { margin-block: 0; }
.lg-article-title { font-size: var(--wp--preset--font-size--display) !important; margin-top: 16px !important; }
.lg-article-excerpt { font-family: var(--lg-serif); font-style: italic; font-size: var(--wp--preset--font-size--lead); line-height: 1.3; margin-top: 20px !important; }
.lg-article-date { margin-top: 20px !important; font-size: var(--wp--preset--font-size--small); color: var(--lg-gris); }
.lg-article-image { margin-top: var(--lg-space-l) !important; margin-bottom: var(--lg-space-l) !important; }
.lg-article-body p, .lg-article-body li { font-size: 1.125rem; line-height: 1.75; }

/* Buscador (404) */
.lg-search { margin-top: 32px; max-width: 520px; }
.lg-search .wp-block-search__input { border: 1px solid var(--lg-marron); border-radius: 0; background: transparent; padding: .9rem 1rem; }
.lg-search .wp-block-search__button { margin-left: 8px; }

/* ==========================================================================
   Animaciones
   ========================================================================== */
.js .lg-reveal,
.js .is-style-aparecer { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--lg-ease), transform .9s var(--lg-ease-out); }
.js .lg-reveal.is-visible,
.js .is-style-aparecer.is-visible { opacity: 1; transform: none; }
.editor-styles-wrapper .lg-reveal,
.editor-styles-wrapper .is-style-aparecer { opacity: 1 !important; transform: none !important; }

.lg-domains > .wp-block-column:nth-child(2), .lg-service:nth-child(2), .lg-service:nth-child(5) { transition-delay: .08s; }
.lg-domains > .wp-block-column:nth-child(3), .lg-service:nth-child(3), .lg-service:nth-child(6) { transition-delay: .16s; }
.lg-domains > .wp-block-column:nth-child(4), .lg-service:nth-child(4) { transition-delay: .24s; }

@keyframes lg-fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes lg-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes lg-unveil { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes lg-slide-in { from { transform: translateX(30%); opacity: 0; } to { transform: none; opacity: 1; } }

/* En el editor no se reproducen las animaciones de entrada */
.editor-styles-wrapper .lg-hero-title,
.editor-styles-wrapper .lg-hero__lead,
.editor-styles-wrapper .lg-hero__copy,
.editor-styles-wrapper .lg-hero__actions,
.editor-styles-wrapper .lg-hero-figure img,
.editor-styles-wrapper .lg-hero-figure::before,
.editor-styles-wrapper .lg-page-title,
.editor-styles-wrapper .lg-page-hero__aside,
.editor-styles-wrapper .lg-stage--ficha,
.editor-styles-wrapper .lg-ficha-hero__body { animation: none !important; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .lg-reveal, .js .is-style-aparecer { transform: none; transition: opacity .5s linear; }
	.lg-hero-title, .lg-hero__lead, .lg-hero__copy, .lg-hero__actions, .lg-page-title, .lg-page-hero__aside, .lg-ficha-hero__body { animation: lg-fade-in .4s both; }
	.lg-hero-figure img, .lg-hero-figure::before, .lg-stage--ficha { animation: lg-fade-in .4s both; }
	.lg-stage img, .lg-service__t, .lg-frame img, .lg-first-book__img img { transition: none; }
	.lg-stage:hover img, .lg-first-book:hover .lg-first-book__img img, .lg-frame:hover img { transform: none; }
}

/* ==========================================================================
   Tableta (≤ 1080px)
   ========================================================================== */
@media (max-width: 1080px) {
	.lg-header__cta { display: none !important; }
	.lg-hero-title { margin-right: -20%; }
	.lg-domains { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lg-domains > .wp-block-column:nth-child(2) { border-right: 0; }
	.lg-domains > .wp-block-column:nth-child(n+3) { border-top: 1px solid var(--lg-linea); }
	.lg-mirada__cols { flex-wrap: wrap !important; }
	.lg-mirada__cols > .wp-block-column { flex-basis: 100% !important; }

	.lg-works__grid > li:nth-child(4n+1) { grid-column: 1 / span 8; }
	.lg-works__grid > li:nth-child(4n+2) { grid-column: 9 / span 4; margin-top: 30% !important; }
	.lg-works__grid > li:nth-child(4n+3) { grid-column: 1 / span 5; }
	.lg-works__grid > li:nth-child(4n+4) { grid-column: 7 / span 6; }

	.lg-sticky { position: static; }
	.lg-entry::before { display: none; }
	.lg-entry > .lg-stage { grid-column: 1 / span 5; }
	.lg-posts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Las columnas de WordPress se apilan bajo 782px */
@media (max-width: 781px) {
	.lg-hero__grid, .lg-mirada__grid, .lg-servicios__grid, .lg-lucernario__grid, .lg-ficha-hero__grid, .lg-ficha-text__grid, .lg-page-hero__grid, .lg-intro, .lg-credits { gap: 0 !important; }
	.lg-mirada__text { margin-top: 48px; padding-top: 0; }
	.lg-servicios__grid > .wp-block-column:first-child { margin-bottom: var(--lg-space-l); }
	.lg-credits > .wp-block-column + .wp-block-column { margin-top: 48px; }
	.lg-lucernario__logo { margin-top: 64px !important; }
	.lg-lucernario__logo img { width: min(70%, 260px); }
	.lg-ficha-hero__body { margin-top: 32px; }
	.lg-ficha-text__grid > .wp-block-column:first-child { margin-bottom: 18px; }
	.lg-page-hero__aside { margin-top: 32px; padding-bottom: 0; }
	.lg-intro > .wp-block-column + .wp-block-column { margin-top: 20px; }
}

/* ==========================================================================
   Móvil (≤ 720px) — composición propia
   ========================================================================== */
@media (min-width: 721px) { .lg-show-mobile { display: none !important; } }
@media (max-width: 720px) {
	:root { --lg-header: 64px; }
	.lg-hide-mobile { display: none !important; }
	.lg-brand img, .lg-site-header.is-scrolled .lg-brand img { height: 32px; }
	.lg-meta__mid { display: none; }
	.lg-meta { white-space: nowrap; letter-spacing: .12em; }

	.lg-hero-title { margin-right: 0; font-size: clamp(3rem, 15vw, 4.6rem) !important; }
	.lg-hero-figure.lg-show-mobile { margin: 36px 18% 0 0 !important; }
	.lg-hero-figure.lg-show-mobile::before { left: 46%; top: -18px; bottom: 24%; right: calc(-18% / .82 - var(--lg-gutter)); }
	.lg-hero-figure.lg-show-mobile img { aspect-ratio: 4 / 5; }
	.lg-hero__lead { margin-top: 36px !important; }
	.lg-hero__actions { flex-direction: column; align-items: stretch !important; }
	.lg-hero__actions .wp-block-button, .lg-hero__actions .wp-block-button__link { width: 100%; }

	.lg-domains { grid-template-columns: 1fr; margin-top: 64px !important; }
	.lg-domains > .wp-block-column { display: grid; grid-template-columns: 2.5rem 1fr; column-gap: 8px; padding: 18px 0; border-right: 0; border-top: 1px solid var(--lg-linea); }
	.lg-domains > .wp-block-column:first-child { border-top: 0; }
	.lg-domains .lg-num { grid-row: span 2; padding-top: 6px; }
	.lg-domain__t { margin: 0 0 4px !important; font-size: 1.6rem !important; }

	.lg-section-head { margin-bottom: 40px !important; }
	.lg-section-head__n { font-size: 1.8rem !important; }
	.lg-mirada__grid > .wp-block-column:first-child { padding-right: 14%; }
	.lg-fact { grid-template-columns: 1fr; gap: 2px; }

	.lg-works__grid { display: block !important; }
	.lg-works__grid > li + li { margin-top: 64px !important; }
	.lg-works__grid > li:nth-child(4n+3) { margin-right: 12% !important; }
	.lg-works__grid > li:nth-child(4n+4) { margin-left: 12% !important; }
	.lg-stage img { max-width: 62%; }
	.lg-row, .lg-entry .lg-row, .lg-ficha-hero__body .lg-row { grid-template-columns: 7.5rem 1fr; gap: 10px; }

	.lg-service { grid-template-columns: 2.5rem 1fr; padding: 22px 0; }
	.lg-service::after { display: none; }

	.lg-first-book__img img { width: 72px !important; height: 72px !important; }
	.lg-first-book__title { font-size: 1.35rem; }
	.lg-lucernario .wp-block-button, .lg-lucernario .wp-block-button__link,
	.lg-contacto__row .wp-block-buttons, .lg-contacto__row .wp-block-button, .lg-contacto__row .wp-block-button__link,
	.lg-cierre__actions .wp-block-button, .lg-cierre__actions .wp-block-button__link { width: 100%; }

	.lg-symbol, .lg-cierre .lg-symbol { position: static; width: 64px; margin-bottom: 32px !important; }
	.lg-closing { font-size: clamp(2.6rem, 12vw, 3.6rem) !important; }
	.lg-contacto__row { flex-direction: column; align-items: stretch !important; }

	.lg-filters-bar { top: 64px; }
	.lg-page-title { font-size: clamp(3rem, 15vw, 4.6rem) !important; }
	.lg-entry { display: block; padding-block: 40px 44px; }
	.lg-entry > .lg-stage { margin-right: 14% !important; }
	.lg-entry__body { margin-top: 26px !important; }
	.lg-stage--ficha { margin-right: 10% !important; }
	.lg-ficha-text__body p { font-size: 1.05rem; }
	.lg-ficha-nav__inner { flex-direction: column; }
	.lg-ficha-nav__next { text-align: left; border-left: 0; border-top: 1px solid var(--lg-linea); }
	.lg-posts__grid { grid-template-columns: 1fr; }
	.lg-footer__inner { flex-direction: column; align-items: flex-start !important; }
}
