/* =========================================================================
   LabPaz — estilos del tema (complementan theme.json)
   Medidas: design_handoff_labpaz_wp/design/source/LabPaz Web.dc.html (cqi → vw)
   Regla de la gráfica: las piezas geométricas nunca se superponen a texto.
   ========================================================================= */

:root {
	--lp-azul: var(--wp--preset--color--azul);
	--lp-amarillo: var(--wp--preset--color--amarillo);
	--lp-amarillo-sombra: var(--wp--preset--color--amarillo-sombra);
	--lp-tinta: var(--wp--preset--color--tinta);
	--lp-coral: var(--wp--preset--color--coral);
	--lp-papel: var(--wp--preset--color--papel);
	--lp-celeste: var(--wp--preset--color--celeste);
	--lp-celeste-2: var(--wp--preset--color--celeste-2);
	--lp-mono: var(--wp--preset--font-family--mono);
	--lp-gutter: var(--wp--custom--gutter, clamp(16px, 4vw, 48px));
	--lp-line: rgba(14, 27, 38, .15);
	--lp-tinta-suave: #4f5a63; /* texto secundario: 6,4:1 sobre papel (AA) */
	--lp-sec: clamp(56px, 8vw, 112px);
	--lp-sec-m: clamp(48px, 7vw, 96px);
	--lp-header-h: 77px;
	--lp-stripes: repeating-linear-gradient(135deg, #dcdad2 0 1px, transparent 1px 10px), #ebe9e2;
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: manual; text-wrap: balance; }
p { text-wrap: pretty; }
a { text-underline-offset: 3px; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--lp-azul); outline-offset: 3px; }
/* Al hacer clic con el ratón no se dibuja el recuadro; con teclado (Tab) sí (AA). */
:where(a, button, input, select, textarea, summary, [tabindex]):focus:not(:focus-visible) { outline: none; box-shadow: none; }
.lp-bg--tinta :where(a, button):focus-visible,
.lp-bg--azul :where(a, button):focus-visible,
.lp-footer :where(a, button):focus-visible { outline-color: var(--lp-amarillo); }
::selection { background: var(--lp-amarillo); color: var(--lp-tinta); }
.skip-link.screen-reader-text:focus { background: var(--lp-amarillo); color: var(--lp-tinta); font-weight: 800; }
img { max-width: 100%; height: auto; }
.lp-main { margin: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.lp-main > * { margin-block: 0; }
.lp-main > * + * { margin-block-start: 0 !important; }

/* Contenedor de 1320 con laterales fluidos */
.lp-wrap { box-sizing: border-box; width: 100%; max-width: calc(1320px + 2 * var(--lp-gutter)); margin-inline: auto !important; padding-inline: var(--lp-gutter); }

/* Ritmo vertical */
.lp-section { padding-block: var(--lp-sec); }
.lp-section--top { padding-block: var(--lp-sec) 0; }
.lp-section--m { padding-block: var(--lp-sec-m); }
.lp-section--top-m { padding-block: var(--lp-sec-m) 0; }
.lp-section--bottom { padding-block: 0 var(--lp-sec); }
.lp-section--archivo { padding-block: clamp(48px, 6vw, 80px); }
.lp-mt-section { margin-top: var(--lp-sec-m) !important; }
.lp-hero-section { padding-block: clamp(56px, 9vw, 128px); }

/* Pilas y separaciones (sustituyen al blockGap de cada grupo) */
.lp-stack-6, .lp-stack-12, .lp-stack-16, .lp-stack-18, .lp-stack-20, .lp-stack-24, .lp-stack-32, .lp-stack-40 { display: flex; flex-direction: column; }
.lp-stack-6 > *, .lp-stack-12 > *, .lp-stack-16 > *, .lp-stack-18 > *, .lp-stack-20 > *, .lp-stack-24 > *, .lp-stack-32 > *, .lp-stack-40 > * { margin-block: 0 !important; }
.lp-stack-6 { gap: 6px; } .lp-stack-12 { gap: 12px; } .lp-stack-16 { gap: 16px; } .lp-stack-18 { gap: 18px; }
.lp-stack-20 { gap: 20px; } .lp-stack-24 { gap: 24px; } .lp-stack-32 { gap: 32px; } .lp-stack-40 { gap: 40px; }
.lp-mb-24 { margin-bottom: 24px !important; } .lp-mb-28 { margin-bottom: 28px !important; } .lp-mb-40 { margin-bottom: 40px !important; }
.lp-mt-12 { margin-top: 12px !important; }

/* Fondos */
.lp-bg { position: relative; }
.lp-bg--tinta { background: var(--lp-tinta); color: var(--lp-papel); }
.lp-bg--azul { background: var(--lp-azul); color: #fff; }
.lp-bg--amarillo { background: var(--lp-amarillo); color: var(--lp-tinta); }
.lp-bg--celeste { background: var(--lp-celeste); }
.lp-bg--blanco { background: #fff; }
.lp-bg--tinta a:not(.wp-element-button),
.lp-bg--azul a:not(.wp-element-button) { color: inherit; }

/* Piezas geométricas (decorativas, aria-hidden). El texto se limita en ancho. */
.lp-has-geo { overflow: hidden; }
.lp-geo { position: absolute; inset: 0; pointer-events: none; }
.lp-geo img { position: absolute; display: block; height: auto; }
.lp-geo__lab-a { right: -6%; top: -6%; width: min(24vw, 320px); }
.lp-geo__lab-b { right: min(19vw, 260px); top: 2%; width: min(7vw, 90px); }
.lp-geo__labh-a { right: -3vw; top: -2vw; width: min(24vw, 320px); }
.lp-geo__labh-b { right: min(19vw, 250px); top: min(1.5vw, 20px); width: min(12vw, 160px); } /* por encima del H1, sin tocarlo */
.lp-geo__labh-c { right: min(4vw, 50px); bottom: 6%; width: min(9vw, 110px); }
.lp-has-geo > .wp-block-group { position: relative; z-index: 1; }
@media (max-width: 700px) {
	/* en móvil las piezas quedan arriba a la derecha, reservando espacio */
	.lp-geo__lab-b, .lp-geo__labh-b { display: none; }
	.lp-has-geo .lp-intro--geo, .lp-has-geo .lp-hero-section { padding-top: max(var(--lp-sec), 26vw); }
}

/* ---------- Tipografía ---------- */
.lp-eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lp-azul); }
.lp-eyebrow--amarillo { color: var(--lp-amarillo); }
/* Azul sobre celeste da 4,48:1: en etiquetas pequeñas se usa un azul más oscuro (5,8:1, AA). */
.lp-bg--celeste .lp-eyebrow,
.lp-bg--celeste .lp-terms-label,
.lp-tile--celeste .lp-terms-label { color: #005f96; }
.lp-num { margin: 0; font-family: var(--lp-mono); font-size: 13px; color: var(--lp-azul); }
.lp-azul { color: var(--lp-azul); }
.lp-lead { margin: 0; max-width: 580px; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.45; }
.lp-lead--pa { max-width: 680px; font-size: clamp(16px, 1.8vw, 22px); line-height: 1.4; }
.lp-lead--qs { max-width: none; font-size: clamp(16px, 1.71vw, 20px); line-height: 1.5; }
.lp-lead--proyecto { max-width: 560px; font-size: clamp(16px, 1.8vw, 21px); line-height: 1.4; }
.lp-lead--proyecto p { margin: 0; }
.lp-hero-lead { margin: 0; max-width: 640px; font-size: clamp(18px, 2.16vw, 27px); line-height: 1.25; font-weight: 500; }
.lp-h1-home { margin: 0; font-size: clamp(36px, 4.6vw, 68px); line-height: .98; font-weight: 800; font-stretch: 104%; letter-spacing: -.02em; }
.lp-h1-lab { margin: 0; font-size: clamp(39px, 8.91vw, 130px); line-height: .85; font-weight: 900; font-stretch: 125%; letter-spacing: -.03em; }
.lp-h1-pa { margin: 0; font-size: clamp(31px, 6.8vw, 101px); line-height: .9; font-weight: 800; font-stretch: 112%; letter-spacing: -.03em; }
.lp-h1-proyecto { margin: 0; font-size: clamp(39px, 6.48vw, 94px); line-height: .88; font-weight: 800; font-stretch: 108%; letter-spacing: -.03em; font-style: italic; }
.lp-h1-qs { margin: 0; font-size: clamp(32px, 5.18vw, 75px); line-height: .95; font-weight: 800; font-stretch: 110%; letter-spacing: -.025em; }
.lp-h1-pieza { margin: 0; font-size: clamp(31px, 4.5vw, 58px); line-height: 1; font-weight: 800; font-stretch: 108%; letter-spacing: -.02em; }
.lp-h2 { margin: 0; font-size: clamp(34px, 5vw, 64px); line-height: 1; font-weight: 800; font-stretch: 110%; letter-spacing: -.02em; }
.lp-h2--m { font-size: clamp(30px, 4vw, 52px); }
.lp-h2--lab { font-size: clamp(34px, 5.4vw, 72px); line-height: .98; font-stretch: 115%; }
.lp-h2-sec { margin: 0 0 20px; font-size: clamp(26px, 3vw, 36px); font-weight: 800; font-stretch: 108%; letter-spacing: 0; }
.lp-marca { background: var(--lp-amarillo); color: inherit; padding: 0 .08em; }
.lp-empty { margin: 0; padding: 20px 0; font-family: var(--lp-mono); font-size: 13px; color: var(--lp-tinta-suave); }
.lp-link-more { margin: 0; }
.lp-link-more a { display: inline-block; padding: 6px 0; border-bottom: 2px solid var(--lp-tinta); color: var(--lp-tinta); font-size: 15px; font-weight: 700; text-decoration: none; }
.lp-link-more a:hover { color: var(--lp-azul); border-color: var(--lp-azul); }

/* ---------- Botones (variaciones registradas en functions.php) ---------- */
.wp-block-button__link { display: inline-flex; align-items: center; min-height: 52px; text-decoration: none; }
.wp-block-buttons { gap: 12px; }
.wp-block-button.is-style-secundario .wp-block-button__link { background: transparent; color: var(--lp-tinta); box-shadow: inset 0 0 0 2px var(--lp-tinta); }
.wp-block-button.is-style-secundario .wp-block-button__link:hover { background: var(--lp-amarillo); color: var(--lp-tinta); }
.wp-block-button.is-style-tinta .wp-block-button__link { background: var(--lp-tinta); color: #fff; }
.wp-block-button.is-style-tinta .wp-block-button__link:hover { background: var(--lp-azul); }
.wp-block-button.is-style-amarillo .wp-block-button__link { background: var(--lp-amarillo); color: var(--lp-tinta); font-weight: 800; }
.wp-block-button.is-style-amarillo .wp-block-button__link:hover { background: #fff; }
.wp-block-button.is-style-enlace .wp-block-button__link { min-height: 0; padding: 6px 0; background: none; color: var(--lp-tinta); border-bottom: 2px solid currentColor; }
.lp-btn-claro.is-style-secundario .wp-block-button__link { color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.lp-btn-claro.is-style-secundario .wp-block-button__link:hover { background: #fff; color: var(--lp-tinta); }

/* ---------- Cabecera ---------- */
.lp-header-part { position: sticky; top: 0; z-index: 50; }
.admin-bar .lp-header-part { top: var(--wp-admin--admin-bar--height, 32px); }
.lp-header { background: var(--lp-papel); border-bottom: 1px solid rgba(14, 27, 38, .12); }
.lp-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 14px; }
.lp-header__bar > * { margin: 0 !important; }
.lp-header__logo { display: block; flex: 0 0 auto; }
.lp-header__menu { flex: 1 1 auto; display: flex; justify-content: flex-end; }
.lp-header__logo img { display: block; width: auto; height: 44px; }
@media (max-width: 380px) { .lp-header__logo img { height: 36px; } .lp-header__bar { gap: 12px; } }

/* ---------- Pie ---------- */
.lp-footer { background: var(--lp-tinta); color: var(--lp-papel); border-top: 1px solid rgba(245, 244, 239, .15); }
.lp-footer__main { padding-block: 56px 32px; }
.lp-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px 32px; border-top: 1px solid rgba(245, 244, 239, .15); font-size: 13px; opacity: .6; }
.lp-footer__bottom p { margin: 0; }
@media (min-width: 1416px) { .lp-footer__bottom { border-top: 0; box-shadow: 0 -1px 0 rgba(245, 244, 239, .15); } }

/* ---------- Home: hero ---------- */
.lp-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding-block: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 40px); }
.lp-hero > * { margin: 0 !important; }
.lp-hero__text { flex: 3 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; position: relative; z-index: 1; }
.lp-hero__text > * { margin: 0 !important; }
.lp-hero__art { flex: 2 1 280px; min-width: 240px; max-width: 360px; margin-inline: auto !important; }
@media (max-width: 700px) { .lp-hero__art { flex: 0 0 180px; min-width: 0; margin: -8px 0 0 auto !important; } }

/* ---------- Qué hacemos / Cómo trabajamos ---------- */
.lp-section--top > .lp-eyebrow { margin-bottom: 24px; }
.lp-verbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); column-gap: clamp(24px, 3vw, 40px); border-top: 2px solid var(--lp-tinta); }
.lp-verbs > * { margin: 0 !important; }
.lp-verb { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 24px 0 28px; border-bottom: 1px solid var(--lp-line); }
.lp-verb > * { margin: 0 !important; }
/* 2,3vw: «Experimentamos» cabe entera en la columna en cualquier ancho con 4 columnas */
.lp-verb__t { font-size: clamp(24px, 2.3vw, 34px); font-weight: 800; letter-spacing: -.01em; line-height: 1.1; overflow-wrap: normal; word-break: normal; hyphens: manual; }
.lp-verb__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.lp-verb__head .lp-num { margin: 0; }
.lp-verb__icon { flex: 0 0 auto; display: block; width: 48px; height: 48px; }
.lp-verb__icon svg { display: block; width: 100%; height: 100%; }
@media (prefers-reduced-motion: no-preference) {
	.lp-verb__icon svg { transition: transform .3s ease; }
	.lp-verb:hover .lp-verb__icon svg { transform: rotate(-6deg) scale(1.06); }
}
.lp-verb__d { max-width: 300px; font-size: 16px; line-height: 1.5; }
.lp-verbs--azul { border-top-color: #fff; }
.lp-verbs--azul .lp-verb { padding: 22px 0 26px; gap: 10px; border-bottom-color: rgba(255, 255, 255, .3); }
.lp-verbs--azul .lp-num { color: var(--lp-amarillo); }
.lp-verbs--azul .lp-verb__t { font-size: clamp(26px, 2.6vw, 30px); }
.lp-verbs--azul .lp-verb__d { max-width: none; }
/* Iconos sobre azul: lo tinta y lo azul pasan a blanco; amarillo y coral se mantienen */
.lp-verbs--azul .lp-verb__icon .ink[stroke] { stroke: #fff; }
.lp-verbs--azul .lp-verb__icon .ink[fill="#0E1B26"] { fill: #fff; }
.lp-verbs--azul .lp-verb__icon .az[fill="#006EAE"] { fill: #fff; }
.lp-verbs--azul .lp-verb__icon .az[stroke] { stroke: #fff; }

/* ---------- Cabeceras de sección ---------- */
.lp-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 32px !important; }
.lp-section-head > * { margin: 0 !important; }
.lp-section-head__aside { max-width: 420px; font-size: 17px; line-height: 1.5; }
.lp-section > .lp-section-head:first-child { margin-top: 0; }

/* ---------- Home: Laboratorio ---------- */
.lp-intro { display: flex; flex-direction: column; gap: 16px; max-width: min(760px, 64vw); }
.lp-intro > * { margin: 0 !important; }
.lp-intro__text { font-size: 18px; line-height: 1.5; opacity: .85; }
@media (max-width: 700px) { .lp-intro { max-width: none; } }
.lp-lab-rows { display: flex; flex-direction: column; border-top: 1px solid rgba(245, 244, 239, .3); }
.lp-lab-rows > * { margin: 0 !important; }
.lp-lab-row { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 8px 32px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid rgba(245, 244, 239, .3); }
.lp-lab-row > * { margin: 0 !important; }
.lp-lab-row:hover { color: var(--lp-amarillo); }
.lp-lab-row__name { display: flex; gap: 16px; align-items: baseline; }
.lp-lab-row__name .lp-num { color: inherit; opacity: .6; }
.lp-lab-row__name a { font-size: clamp(26px, 3vw, 40px); font-weight: 800; font-stretch: 108%; text-decoration: none; }
.lp-lab-row__name a::after { content: ""; position: absolute; inset: 0; } /* toda la fila es clicable */
.lp-lab-row__desc { font-size: 16px; line-height: 1.45; opacity: .85; }
.lp-lab-row__ex { font-size: 14px; font-weight: 600; }
.lp-semaforo { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); background: var(--lp-amarillo); color: var(--lp-tinta); }
.lp-semaforo > * { margin: 0 !important; }
.lp-semaforo:hover { outline: 3px solid #fff; }
.lp-semaforo__text { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 28px; }
.lp-semaforo__text > * { margin: 0 !important; }
.lp-semaforo__label { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.lp-semaforo__title a { color: var(--lp-tinta) !important; font-size: clamp(28px, 3.2vw, 42px); font-weight: 800; font-stretch: 108%; line-height: 1; text-decoration: none; }
.lp-semaforo__title a::after { content: ""; position: absolute; inset: 0; }
.lp-semaforo__text p:last-child { font-size: 16px; line-height: 1.5; }
.lp-semaforo__luces { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 28px; background: var(--lp-amarillo-sombra); }
.lp-semaforo__luces span { width: 64px; height: 64px; border-radius: 50%; background: var(--lp-tinta); }
.lp-semaforo__luces span:nth-child(2) { opacity: .35; }
.lp-semaforo__luces span:nth-child(3) { background: var(--lp-azul); }

/* ---------- Query Loop: base ---------- */
.wp-block-query .wp-block-post-template { margin: 0; padding: 0; }
.wp-block-post-template.is-layout-grid { gap: 32px 24px; }
.lp-cards-img .wp-block-post-template.is-layout-grid { gap: 28px 20px; }
.lp-cards-lab .wp-block-post-template.is-layout-grid { gap: 20px; }
.lp-cards-sq .wp-block-post-template.is-layout-grid { gap: 16px; }
.lp-cards-pa--wide .wp-block-post-template.is-layout-grid { gap: 36px 24px; }
.wp-block-post-terms { margin: 0; }
.wp-block-post-terms a { color: inherit; text-decoration: none; }
.wp-block-post-terms a:hover { text-decoration: underline; }
.wp-block-post-title a { color: inherit; text-decoration: none; }
.wp-block-post-title a:hover { color: var(--lp-azul); }
.lp-bg--tinta .wp-block-post-title a:hover, .lp-tile--tinta .wp-block-post-title a:hover { color: var(--lp-amarillo); }

/* Imágenes de tarjeta: rayado de marcador si la pieza no tiene imagen */
.lp-media { position: relative; margin: 0 !important; overflow: hidden; }
.lp-media .wp-block-post-featured-image { margin: 0; }
.lp-media .wp-block-post-featured-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lp-media:not(:has(img)) { background: var(--lp-stripes); }
.lp-media--16-9:not(:has(img)) { aspect-ratio: 16 / 9; }
.lp-media--4-3:not(:has(img)) { aspect-ratio: 4 / 3; }
.lp-media--3-2:not(:has(img)) { aspect-ratio: 3 / 2; }
.lp-media--1-1:not(:has(img)) { aspect-ratio: 1 / 1; }
.lp-media--4-5 { max-height: 560px; }
.lp-media--4-5:not(:has(img)) { aspect-ratio: 4 / 5; }
.lp-media--celeste:not(:has(img)) { background: repeating-linear-gradient(135deg, rgba(0, 110, 174, .25) 0 1px, transparent 1px 10px), var(--lp-celeste-2); }

/* Etiquetas de términos */
.lp-terms-tipo { color: var(--lp-azul); }
.lp-terms-tema { color: var(--lp-tinta-suave); }
.lp-terms-label { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lp-azul); }
.lp-terms-label--amarillo { color: var(--lp-amarillo); }
.lp-terms-badge a, .lp-terms-badge { color: #fff; }
.lp-terms-badge { display: inline-block; background: var(--lp-tinta); padding: 3px 7px; }
.lp-card-meta { margin: 0; font-size: 14px; color: var(--lp-tinta-suave); }
.lp-card-meta--row { display: flex; flex-wrap: wrap; gap: 0 6px; }
.lp-card-meta--row > * { margin: 0 !important; font-size: 14px; }
.lp-card-meta--row .wp-block-post-terms:not(:empty)::before { content: "· "; }
.lp-card-meta--row .wp-block-post-terms { font-weight: 400; letter-spacing: 0; text-transform: none; }

/* Tarjetas de piezas (Pensamiento y Acción, relacionados): tarjeta blanca como las
   del Laboratorio, franja con el color del área bajo la imagen y elevación al pasar.
   Toda la tarjeta es clicable desde el enlace del título (un solo tabulador). */
.lp-cards-pa li { --lp-card-area: var(--lp-tinta); }
.lp-cards-pa li.area-democracia { --lp-card-area: var(--wp--preset--color--azul); }
.lp-cards-pa li.area-cultura-de-paz { --lp-card-area: var(--wp--preset--color--amarillo); }
.lp-cards-pa li.area-sociedad-civil { --lp-card-area: var(--wp--preset--color--coral); }
.lp-card-pa { position: relative; display: flex; flex-direction: column; height: 100%; background: #fff; color: var(--lp-tinta); transition: transform .3s ease, box-shadow .3s ease; }
.lp-card-pa:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -18px rgba(14, 27, 38, .45); }
.lp-card-pa > * { margin: 0 !important; }
.lp-card-pa .lp-media:not(:has(img)) { background: repeating-linear-gradient(135deg, rgba(14, 27, 38, .18) 0 1px, transparent 1px 10px); }
.lp-card-pa__body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; border-top: 5px solid var(--lp-card-area); }
.lp-card-pa__body > * { margin: 0 !important; }
.lp-card-pa__body .lp-card-meta { margin-top: auto !important; padding-top: 6px; }
.lp-card-pa__title a::after { content: ""; position: absolute; inset: 0; }
.lp-card-pa .wp-block-post-terms { position: relative; z-index: 1; } /* los términos siguen siendo enlaces propios */
.lp-card-pa .lp-media img { transition: transform .4s ease; }
.lp-card-pa:hover .lp-media img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .lp-card-pa, .lp-card-pa:hover, .lp-card-pa:hover .lp-media img { transform: none; transition: none; } }
.lp-card-pa__terms { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.lp-card-pa__terms > :first-child { flex-basis: 100%; } /* tipo arriba; área y tema debajo, en línea */
.lp-card-pa__terms > * + * + :not(:empty)::before { content: "· "; }
.lp-card-pa__terms > * { margin: 0 !important; }
.lp-card-pa__title { font-size: 21px; line-height: 1.2; font-weight: 700; letter-spacing: 0; text-wrap: pretty; }
.lp-card-pa__title a:hover { color: inherit; }

/* Tarjetas con imagen (propuestas, proyectos) */
.lp-card-img { display: flex; flex-direction: column; gap: 12px; }
.lp-card-img > * { margin: 0 !important; }
.lp-card-img__terms { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.lp-card-img__terms > * { margin: 0 !important; }
.lp-card-img .wp-block-post-title { font-size: 22px; line-height: 1.15; font-weight: 700; letter-spacing: 0; }
.lp-card-img--proyecto { background: #fff; padding-bottom: 20px; }
.lp-card-img--proyecto > :not(.lp-media) { padding-inline: 20px; }
.lp-card-img .wp-block-post-excerpt__excerpt { margin: 0; font-size: 16px; line-height: 1.5; }

/* Laboratorio: tarjetas; los Experimentos rompen la retícula */
.lp-card-lab { display: flex; flex-direction: column; height: 100%; background: #fff; color: var(--lp-tinta); }
.lp-card-lab > * { margin: 0 !important; }
.lp-card-lab .lp-media:not(:has(img)) { background: repeating-linear-gradient(135deg, rgba(14, 27, 38, .18) 0 1px, transparent 1px 10px); }
.lp-card-lab__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; }
.lp-card-lab__body > * { margin: 0 !important; }
.lp-card-lab__terms, .lp-card-lab__ctx { display: flex; flex-wrap: wrap; gap: 0 6px; }
.lp-card-lab__terms > *, .lp-card-lab__ctx > * { margin: 0 !important; }
.lp-card-lab__terms .wp-block-post-terms { font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.lp-card-lab__terms .wp-block-post-terms + .wp-block-post-terms:not(:empty)::before,
.lp-card-lab__ctx .wp-block-post-terms + .wp-block-post-terms:not(:empty)::before { content: "· "; }
.lp-card-lab__title { font-size: 21px; line-height: 1.2; font-weight: 700; letter-spacing: 0; }
.lp-card-lab__ctx .wp-block-post-terms { font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--lp-tinta-suave); }
.lp-cards-lab li.tipo-experimento:nth-child(3n+2) .lp-card-lab__ctx .wp-block-post-terms { color: rgba(255, 255, 255, .9); }
.lp-card-lab { transition: translate .3s ease, box-shadow .3s ease; }
.lp-cards-lab li:hover .lp-card-lab { translate: 0 -4px; box-shadow: 0 18px 36px -18px rgba(14, 27, 38, .45); } /* translate no pisa la rotación de los Experimentos */
.lp-cards-lab li.tipo-experimento:nth-child(3n+1) .lp-card-lab { background: var(--lp-amarillo); transform: rotate(-1.4deg); }
.lp-cards-lab li.tipo-experimento:nth-child(3n+2) .lp-card-lab { background: var(--lp-azul); color: #fff; transform: rotate(1.2deg); }
.lp-cards-lab li.tipo-experimento:nth-child(3n) .lp-card-lab { background: var(--lp-celeste); transform: rotate(-1.4deg); }
.lp-cards-lab li.tipo-experimento:nth-child(3n+2) .wp-block-post-title a:hover { color: var(--lp-amarillo); }
@media (prefers-reduced-motion: reduce) { .lp-cards-lab li.tipo-experimento .lp-card-lab { transform: none; } .lp-cards-lab li:hover .lp-card-lab { translate: none; } }

/* Proyecto: tarjetas cuadradas */
.lp-card-sq { display: flex; flex-direction: column; height: 100%; background: #fff; }
.lp-card-sq > * { margin: 0 !important; }
.lp-card-sq__body { display: flex; flex-direction: column; gap: 6px; padding: 16px; }
.lp-card-sq__body > * { margin: 0 !important; }
.lp-card-sq__body .wp-block-post-terms { font-weight: 800; letter-spacing: .1em; }
.lp-card-sq__title { font-size: 18px; line-height: 1.2; font-weight: 700; letter-spacing: 0; }

/* Filas de archivo */
/* Filas de archivo: lista editorial con imagen protagonista (3:2) y texto apilado */
.lp-rows .wp-block-post-template { border-top: 2px solid var(--lp-tinta); }
.lp-row { position: relative; display: grid; grid-template-columns: clamp(112px, 22vw, 280px) minmax(0, 1fr); gap: 16px clamp(16px, 3vw, 40px); align-items: start; padding: clamp(16px, 2.2vw, 28px) 0; border-bottom: 1px solid var(--lp-line); }
.lp-row > * { margin: 0 !important; }
.lp-row__thumb img { transition: transform .4s ease; }
.lp-row:hover .lp-row__thumb img { transform: scale(1.04); }
.lp-row__body { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.lp-row__body > * { margin: 0 !important; }
.lp-row__kicker { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.lp-row__kicker > * { margin: 0 !important; }
.lp-row__date { font-family: var(--lp-mono); font-size: 13px; color: var(--lp-tinta-suave); }
.lp-row__title { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.2; font-weight: 700; letter-spacing: -.005em; text-wrap: pretty; }
.lp-row__title a::after { content: ""; position: absolute; inset: 0; }
.lp-row:hover .lp-row__title a { color: var(--lp-azul); }
.lp-row__excerpt .wp-block-post-excerpt__excerpt { margin: 0; font-size: 16px; line-height: 1.5; color: var(--lp-tinta-suave); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lp-row__tema { font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.lp-row .wp-block-post-terms { position: relative; z-index: 1; } /* los términos siguen siendo enlaces propios */
@media (max-width: 600px) {
	.lp-row { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; }
	.lp-row__body { gap: 6px; }
	.lp-row__title { font-size: 17px; }
	.lp-row__excerpt, .lp-row__tema { display: none; }
}
@media (prefers-reduced-motion: reduce) { .lp-row:hover .lp-row__thumb img { transform: none; } }
.lp-rows-simple .wp-block-post-template { border-top: 2px solid var(--lp-tinta); }
.lp-row-simple { position: relative; display: grid; grid-template-columns: clamp(80px, 9vw, 120px) minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--lp-line); }
.lp-row-simple > * { margin: 0 !important; }
.lp-row-simple__body { display: flex; flex-direction: column; gap: 6px; }
.lp-row-simple__body > * { margin: 0 !important; }
.lp-row-simple__title a::after { content: ""; position: absolute; inset: 0; }
.lp-row-simple .wp-block-post-terms { position: relative; z-index: 1; }
.lp-row-simple:hover .lp-row-simple__title a { color: var(--lp-azul); }
.lp-row-simple__meta { display: flex; gap: 0 6px; }
.lp-row-simple__meta > * { margin: 0 !important; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lp-azul); }
.lp-row-simple__meta .wp-block-post-terms::after { content: " ·"; }
.lp-row-simple__title { font-size: 19px; line-height: 1.25; font-weight: 700; letter-spacing: 0; }

/* Paginación */
.lp-pagination { margin-top: 32px !important; gap: 8px; font-weight: 700; }
.lp-pagination a, .lp-pagination .current { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--lp-tinta); color: var(--lp-tinta); text-decoration: none; }
.lp-pagination .current { background: var(--lp-tinta); color: var(--lp-papel); }
.lp-pagination a:hover { background: var(--lp-amarillo); }

/* ---------- Home: Proyectos ---------- */
.lp-proyectos-home { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.lp-proyectos-home > * { margin: 0 !important; }
.lp-card-proyecto { position: relative; display: flex; flex-direction: column; height: 100%; background: #fff; }
.lp-card-proyecto > * { margin: 0 !important; }
.lp-card-proyecto, .lp-card-archivo { transition: translate .3s ease, box-shadow .3s ease; }
.lp-card-proyecto:hover { translate: 0 -4px; box-shadow: 0 18px 36px -18px rgba(14, 27, 38, .45); }
.lp-card-proyecto__body { display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.lp-card-proyecto__body > * { margin: 0 !important; }
.lp-card-proyecto__title { font-size: 28px; font-weight: 800; font-stretch: 108%; line-height: 1.05; }
.lp-card-proyecto__title a::after { content: ""; position: absolute; inset: 0; }
.lp-card-proyecto .wp-block-post-excerpt__excerpt { margin: 0; font-size: 16px; line-height: 1.5; }
.lp-proyecto-destacado .lp-empty { padding: 24px; background: #fff; }
.lp-proyectos-home__side { display: flex; flex-direction: column; gap: 16px; }
.lp-proyectos-home__side > * { margin: 0 !important; }
.lp-proyectos-home__side > .lp-micro:not(:has(.lp-card-micro)) { display: none; } /* sin micrositios publicados no se reserva hueco */
.lp-proyectos-home__side > :not(.lp-micro) { flex: 1; }
.lp-card-archivo.lp-card-archivo--todos { background: var(--lp-tinta); color: var(--lp-papel); }
.lp-card-archivo.lp-card-archivo--todos .lp-terms-label { color: var(--lp-amarillo); }
.lp-card-archivo.lp-card-archivo--todos a { color: var(--lp-papel) !important; }
.lp-micro, .lp-micro .wp-block-post-template, .lp-micro li { height: 100%; }
.lp-card-micro { position: relative; display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 24px; background: var(--lp-azul); color: #fff; }
.lp-card-micro > * { margin: 0 !important; }
.lp-card-micro:hover { outline: 3px solid var(--lp-tinta); }
.lp-card-micro__label { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.lp-card-micro__label span:last-child { font-size: 18px; }
.lp-card-micro__title { font-size: 28px; font-weight: 800; font-stretch: 108%; line-height: 1.05; }
.lp-card-micro__title a::after { content: ""; position: absolute; inset: 0; }
.lp-card-micro__title a:hover { color: #fff !important; }
.lp-card-micro .wp-block-post-excerpt__excerpt { margin: 0; font-size: 16px; line-height: 1.5; }
.lp-card-archivo { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; background: #fff; }
.lp-card-archivo > * { margin: 0 !important; }
.lp-card-archivo__title a { color: var(--lp-tinta); font-size: 20px; font-weight: 700; line-height: 1.2; text-decoration: none; }
.lp-card-archivo__title a::after { content: ""; position: absolute; inset: 0; }
.lp-card-archivo:hover { translate: 0 -4px; box-shadow: 0 18px 36px -18px rgba(14, 27, 38, .45); }
@media (prefers-reduced-motion: reduce) { .lp-card-proyecto:hover, .lp-card-archivo:hover { translate: none; } }

/* ---------- Cifras y aliados ---------- */
.lp-section > .lp-eyebrow + .lp-cifras { margin-top: 24px !important; }
.lp-cifras { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); border-top: 2px solid var(--lp-tinta); }
.lp-cifras > * { margin: 0 !important; }
.lp-cifra { display: flex; flex-direction: column; gap: 8px; padding: 24px 20px 24px 0; border-bottom: 1px solid var(--lp-line); }
.lp-cifra > * { margin: 0 !important; }
.lp-cifra__v { font-size: clamp(56px, 7vw, 96px); line-height: 1; font-weight: 800; font-stretch: 120%; color: var(--lp-azul); }
.lp-cifra__l { max-width: 220px; font-size: 16px; line-height: 1.4; }
.lp-aliados { border-top: 1px solid rgba(14, 27, 38, .12); }
.lp-aliados__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; padding-block: 48px; }
.lp-aliados__inner > * { margin: 0 !important; }
.lp-aliados__label { flex: 0 0 auto; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.lp-aliados__logos { flex: 1 1 400px; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.lp-aliados__logos > * { margin: 0 !important; }
.lp-aliados__logos img { height: 56px; width: auto; object-fit: contain; }
.lp-aliado { display: flex; align-items: center; justify-content: center; height: 56px; border: 1px dashed rgba(14, 27, 38, .35); font-family: var(--lp-mono); font-size: 12px; color: var(--lp-tinta-suave); }

/* ---------- Área ---------- */
.lp-section--top-m > .lp-eyebrow { margin-bottom: 20px; }
.lp-section--top-m > .lp-h2--m { margin-bottom: 28px; }
.lp-two-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 48px; }
.lp-two-cols > * { margin: 0 !important; }
.lp-two-cols--340 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 40px; }
.lp-col > * { margin-block: 0 !important; }
.lp-tile { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; }
.lp-tile > * { margin: 0 !important; }
.lp-tile--celeste { background: var(--lp-celeste); }
.lp-tile--tinta { background: var(--lp-tinta); color: #fff; }
.lp-tile__title { font-size: 22px; font-weight: 800; letter-spacing: 0; }
.lp-tile__more { font-size: 15px; opacity: .8; }
.lp-tile__more a { color: inherit; text-decoration: none; }
.lp-tile__more a:hover { text-decoration: underline; }
.lp-col .wp-block-query + .wp-block-query { margin-top: 16px !important; }
.lp-todo-title { margin-bottom: 0; }
.lp-todo-title span { font-weight: inherit; }

/* ---------- Laboratorio: barra de pestañas ---------- */
.lp-filtros--fija { padding-inline: max(var(--lp-gutter), calc((100% - 1320px) / 2)); }
.admin-bar .lp-filtros--fija { top: calc(var(--lp-header-h) + var(--wp-admin--admin-bar--height, 32px)); }
.lp-nota { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 32px; margin-top: 56px !important; padding: 24px; border: 2px dashed var(--lp-tinta); }
.lp-nota > * { margin: 0 !important; }
.lp-nota__label { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.lp-nota__text { flex: 1 1 380px; font-size: 16px; line-height: 1.5; }

/* ---------- Pensamiento y Acción ---------- */
.lp-hero-pa { padding-block: clamp(48px, 8vw, 112px) clamp(32px, 4vw, 56px); }
.lp-conv { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.lp-conv > * { margin: 0 !important; }
.lp-conv__card { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 240px; padding: 24px; }
.lp-conv__card > * { margin: 0 !important; }
.lp-conv__card--azul { background: var(--lp-azul); color: #fff; }
.lp-conv__card--tinta { background: var(--lp-tinta); color: #fff; }
.lp-conv__card--borde { border: 2px solid var(--lp-tinta); }
.lp-conv__card:hover { outline: 3px solid var(--lp-amarillo); outline-offset: -3px; }
.lp-conv__card--borde:hover { outline-color: var(--lp-azul); }
.lp-conv__label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.lp-conv__label--ext { display: flex; justify-content: space-between; }
.lp-conv__label--ext span:last-child { font-size: 20px; color: var(--lp-amarillo); }
.lp-conv__logo { display: block; width: 150px; height: auto; margin-top: -8px !important; }
.lp-conv__title a { color: inherit; font-size: 36px; font-weight: 900; font-stretch: 120%; line-height: .95; text-decoration: none; }
.lp-conv__title a::after { content: ""; position: absolute; inset: 0; }

/* ---------- Proyecto ---------- */
.lp-hero-proyecto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 40px; align-items: center; padding-block: clamp(40px, 6vw, 80px); }
.lp-hero-proyecto > * { margin: 0 !important; }
.lp-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.lp-kinds > * { margin: 0 !important; }
.lp-kind { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 2px solid var(--lp-tinta); }
.lp-kind > * { margin: 0 !important; }
.lp-kind__t a { color: var(--lp-tinta); font-size: 22px; font-weight: 800; text-decoration: none; }
.lp-kind__t a:hover { color: var(--lp-azul); }
.lp-kind__d { font-size: 15px; line-height: 1.5; }

/* ---------- Quiénes somos ---------- */
.lp-hero-qs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 40px; align-items: end; }
.lp-hero-qs > * { margin: 0 !important; }
.lp-principio { margin: 0; padding: 22px; background: var(--lp-amarillo); font-size: 18px; line-height: 1.45; font-weight: 600; }
.lp-transp { display: flex; flex-direction: column; border-top: 2px solid var(--lp-tinta); }
.lp-transp > * { margin: 0 !important; }
.lp-transp__item { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 18px; row-gap: 6px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--lp-line); }
.lp-transp__item > * { margin: 0 !important; grid-column: 2; }
.lp-transp__item > .lp-transp__icon { grid-column: 1; grid-row: 1 / span 2; display: block; width: 44px; height: 44px; }
.lp-transp__icon svg { display: block; width: 100%; height: 100%; }
.lp-hero-qs__aside { display: flex; flex-direction: column; gap: 28px; }
.lp-hero-qs__aside > * { margin: 0 !important; }
.lp-hero-qs__logo { display: block; width: clamp(180px, 20vw, 280px); height: auto; }
.lp-transp__t { font-size: 20px; font-weight: 800; letter-spacing: 0; line-height: 1.2; }
.lp-transp__d { font-size: 15px; line-height: 1.5; }
.lp-contacto { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-block: clamp(40px, 6vw, 72px); }
.lp-contacto > * { margin: 0 !important; }
.lp-equipo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 20px; }
.lp-equipo > * { margin: 0 !important; }
.lp-persona { display: flex; flex-direction: column; gap: 10px; }
.lp-persona > * { margin: 0 !important; }
.lp-persona__n { font-size: 18px; font-weight: 700; }
.lp-persona__r { font-size: 14px; color: var(--lp-tinta-suave); }

/* ---------- Pieza (single) y páginas ---------- */
.lp-pieza__head { display: flex; flex-direction: column; gap: 18px; max-width: calc(960px + 2 * var(--lp-gutter)); padding-block: clamp(40px, 7vw, 96px) 32px; }
.lp-pieza__head > * { margin: 0 !important; }
.lp-pieza__media { max-width: calc(1080px + 2 * var(--lp-gutter)); }
.lp-pieza__img { margin: 0 0 clamp(32px, 5vw, 56px); }
.lp-pieza__img img { display: block; width: 100%; height: auto; }
.lp-prose { padding-bottom: clamp(32px, 5vw, 64px); }
.lp-prose .wp-block-post-content > * { max-width: 720px; }
.lp-prose .wp-block-post-content > .alignwide { max-width: 1080px; }
.lp-prose .wp-block-post-content > .alignfull { max-width: none; }
.lp-prose .wp-block-post-content { font-size: clamp(17px, 0.3vw + 16px, 19px); line-height: 1.6; }
.lp-prose h2 { font-size: clamp(26px, 3vw, 36px); margin-top: 1.6em; font-stretch: 105%; }
.lp-prose h3 { font-size: 22px; margin-top: 1.4em; }
.lp-prose .wp-block-file { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px; border: 2px solid var(--lp-tinta); }
.lp-prose .wp-block-file__button { background: var(--lp-azul); color: #fff; border-radius: 0; padding: 10px 18px; font-weight: 700; }
.lp-prose .wp-block-file__button:hover { background: var(--lp-tinta); }
.lp-prose .wp-block-embed iframe { max-width: 100%; }

/* ---------- Pieza: lectura ---------- */
:root { --lp-area: var(--wp--preset--color--azul); --lp-area-ink: #fff; }

/* Barra de progreso: bajo el header fijo, en el color del área */
.lp-progreso { position: fixed; left: 0; right: 0; top: var(--lp-header-h, 77px); z-index: 49; height: 4px; pointer-events: none; }
.admin-bar .lp-progreso { top: calc(var(--lp-header-h, 77px) + var(--wp-admin--admin-bar--height, 32px)); }
.lp-progreso span { display: block; height: 100%; background: var(--lp-area); transform: scaleX(0); transform-origin: 0 50%; }
/* sobre áreas claras (amarillo) la barra se refuerza con tinta */
.lp-progreso { background: rgba(14, 27, 38, .06); }

/* Cabecera: antetítulo con franja del área, título, entradilla, metadatos */
.lp-pieza__head { gap: 20px; }
.lp-pieza__eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--lp-tinta); }
.lp-pieza__eyebrow::before { content: ""; width: 28px; height: 10px; background: var(--lp-area); box-shadow: inset 0 0 0 1px rgba(14, 27, 38, .15); }
.lp-entradilla p, .lp-entradilla .wp-block-post-excerpt__excerpt { margin: 0; max-width: 760px; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.45; font-weight: 500; text-wrap: pretty; }
.lp-pieza__head .lp-etiquetas--meta { padding-top: 16px; border-top: 2px solid var(--lp-tinta); }

/* Imagen destacada con pie */
.lp-pieza__img { position: relative; }
.lp-pieza__caption { margin-top: 10px; font-family: var(--lp-mono); font-size: 12px; color: var(--lp-tinta-suave); }

/* Rejilla: compartir | texto | índice */
.lp-pieza__layout { display: grid; grid-template-columns: 56px minmax(0, 720px) minmax(200px, 260px); grid-template-areas: "share body toc"; column-gap: clamp(24px, 4vw, 64px); justify-content: center; align-items: start; max-width: calc(1180px + 2 * var(--lp-gutter)); }
.lp-pieza__layout > * { margin: 0 !important; }
.lp-pieza__share { grid-area: share; }
.lp-pieza__cuerpo { grid-area: body; min-width: 0; }
.lp-pieza__toc { grid-area: toc; position: sticky; top: calc(var(--lp-header-h, 77px) + 32px); }
.lp-pieza__layout:not(:has(.lp-pieza__toc)) { grid-template-columns: 56px minmax(0, 720px) minmax(0, 260px); }
@media (max-width: 1199px) {
	.lp-pieza__layout { grid-template-columns: 56px minmax(0, 720px); grid-template-areas: "share toc" "share body"; }
	.lp-pieza__toc { position: static; margin-bottom: 32px !important; }
}
@media (max-width: 899px) {
	.lp-pieza__layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "toc" "body"; }
	body.single-post { padding-bottom: 64px; } /* espacio para la barra de compartir inferior */
}

/* Cuerpo */
.lp-pieza__cuerpo .wp-block-post-content > *:first-child { margin-top: 0; }
.lp-pieza__cuerpo h2 { scroll-margin-top: calc(var(--lp-header-h, 77px) + 24px); padding-top: 12px; border-top: 2px solid var(--lp-tinta); }
.lp-prose .wp-block-quote { margin-inline: 0; padding: 4px 0 4px 24px; border-left: 6px solid var(--lp-amarillo); font-size: clamp(19px, 1.6vw, 23px); line-height: 1.4; font-weight: 600; }
.lp-prose .wp-block-quote cite { display: block; margin-top: 10px; font-family: var(--lp-mono); font-size: 13px; font-weight: 400; font-style: normal; color: var(--lp-tinta-suave); }
.lp-prose .wp-block-pullquote { padding: 32px 0; text-align: left; }
.lp-prose .wp-block-pullquote blockquote p { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; line-height: 1.2; }
.lp-prose figcaption, .lp-prose .wp-element-caption { font-family: var(--lp-mono); font-size: 12px; color: var(--lp-tinta-suave); }

/* Tarjeta de descarga (bloque Archivo) */
.lp-prose .wp-block-file { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "ico name btn" "ico meta btn"; column-gap: 16px; row-gap: 2px; align-items: center; padding: 18px 20px; border: 2px solid var(--lp-tinta); background: #fff; }
.lp-prose .wp-block-file::before { content: ""; grid-area: ico; width: 36px; height: 44px; background: linear-gradient(225deg, transparent 10px, var(--lp-area) 10px); }
.lp-prose .wp-block-file > a:not(.wp-block-file__button) { grid-area: name; color: var(--lp-tinta); font-weight: 700; line-height: 1.3; text-decoration: none; overflow-wrap: anywhere; }
.lp-prose .wp-block-file > a:not(.wp-block-file__button)::after { content: ""; position: absolute; inset: 0; }
.lp-prose .wp-block-file .lp-file__meta { grid-area: meta; font-family: var(--lp-mono); font-size: 12px; color: var(--lp-tinta-suave); }
.lp-prose .wp-block-file__button { grid-area: btn; position: relative; z-index: 1; margin: 0 !important; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 0; background: var(--lp-azul); color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; }
.lp-prose .wp-block-file__button:hover { background: var(--lp-tinta); color: #fff; }
.lp-prose .wp-block-file:hover { outline: 3px solid var(--lp-azul); outline-offset: -2px; }
@media (max-width: 560px) {
	.lp-prose .wp-block-file { grid-template-columns: 36px minmax(0, 1fr); grid-template-areas: "ico name" "ico meta" "btn btn"; }
	.lp-prose .wp-block-file__button { margin-top: 12px !important; justify-content: center; }
}

/* Cierre: temas como chips + compartir */
.lp-pieza__cierre { display: flex; flex-direction: column; gap: 28px; max-width: calc(720px + 2 * var(--lp-gutter)); padding-block: 8px clamp(40px, 6vw, 72px); }
.lp-pieza__cierre > * { margin: 0 !important; }
.lp-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; letter-spacing: 0; text-transform: none; }
.lp-chips .wp-block-post-terms__prefix { margin-right: 4px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.lp-chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--lp-tinta); color: var(--lp-tinta); font-weight: 600; text-decoration: none; }
.lp-chips a:hover { background: var(--lp-amarillo); text-decoration: none; }
.lp-chips .wp-block-post-terms__separator { display: none; }
.lp-ancha > * { margin-block: 0; }
.lp-ancha > * + * { margin-block-start: 0 !important; }

/* Buscador */
.lp-search .wp-block-search__inside-wrapper { border: 0; padding: 0; gap: 8px; max-width: 720px; }
.lp-search .wp-block-search__input { min-height: 56px; padding: 0 18px; border: 2px solid var(--lp-tinta); border-radius: 0; background: #fff; font: inherit; font-size: 17px; }
.lp-search .wp-block-search__button { min-height: 56px; margin: 0; padding: 0 24px; border: 0; border-radius: 0; background: var(--lp-azul); color: #fff; font-weight: 700; }
.lp-search .wp-block-search__button:hover { background: var(--lp-tinta); }

/* Pantallas pequeñas: objetivos táctiles ≥ 44px */
@media (pointer: coarse) {
	.wp-block-post-terms a { display: inline-block; padding-block: 6px; }
}

/* =========================================================================
   Animaciones de entrada (solo con html.lp-anim: JS activo y sin
   prefers-reduced-motion). Solo opacity/transform: no mueven el layout.
   ========================================================================= */
@keyframes lp-subir { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes lp-pieza-llega { from { opacity: 0; transform: translate(60px, -60px) rotate(35deg) scale(.85); } to { opacity: 1; transform: none; } }

/* Heros: contenido escalonado */
html.lp-anim :is(.lp-hero__text, .lp-hero-section, .lp-hero-pa, .lp-hero-proyecto > .lp-stack-20, .lp-hero-qs > *, .lp-pieza__head, .lp-area-hero__inner) > * {
	animation: lp-subir .8s cubic-bezier(.2, .8, .2, 1) both;
}
html.lp-anim :is(.lp-hero__text, .lp-hero-section, .lp-hero-pa, .lp-hero-proyecto > .lp-stack-20, .lp-hero-qs > *, .lp-pieza__head, .lp-area-hero__inner) > :nth-child(2) { animation-delay: .08s; }
html.lp-anim :is(.lp-hero__text, .lp-hero-section, .lp-hero-pa, .lp-hero-proyecto > .lp-stack-20, .lp-hero-qs > *, .lp-pieza__head, .lp-area-hero__inner) > :nth-child(3) { animation-delay: .16s; }
html.lp-anim :is(.lp-hero__text, .lp-hero-section, .lp-hero-pa, .lp-hero-proyecto > .lp-stack-20, .lp-hero-qs > *, .lp-pieza__head, .lp-area-hero__inner) > :nth-child(4) { animation-delay: .24s; }
html.lp-anim :is(.lp-hero__text, .lp-hero-section, .lp-hero-pa, .lp-hero-proyecto > .lp-stack-20, .lp-hero-qs > *, .lp-pieza__head, .lp-area-hero__inner) > :nth-child(n+5) { animation-delay: .32s; }
html.lp-anim .lp-hero-qs > :nth-child(2) > * { animation-delay: .2s; }
html.lp-anim .lp-hero-proyecto > .lp-media,
html.lp-anim .lp-pieza__media { animation: lp-subir 1s cubic-bezier(.2, .8, .2, 1) .2s both; }

/* Piezas geométricas de los heros: llegan girando desde su esquina, como la grulla */
html.lp-anim :is(.lp-geo img, .lp-area-hero__forma) { animation: lp-pieza-llega 1.2s cubic-bezier(.2, .9, .25, 1.05) .15s both; }
html.lp-anim .lp-geo img:nth-child(2) { animation-delay: .3s; }
html.lp-anim .lp-geo img:nth-child(3) { animation-delay: .45s; }

/* Al hacer scroll (clases las pone assets/js/animaciones.js) */
html.lp-anim .lp-reveal { opacity: 0; transform: translateY(32px); }
html.lp-anim .lp-area-card.lp-reveal { transform: translateY(48px) rotate(-1.5deg); }
html.lp-anim .lp-reveal.is-in {
	opacity: 1;
	transform: none;
	transition: opacity .7s ease calc(var(--lp-i, 0) * 90ms), transform .8s cubic-bezier(.2, .8, .2, 1) calc(var(--lp-i, 0) * 90ms);
}

/* ---------- En terreno: fotos de actividades (galerías editables) ---------- */
.lp-terreno { display: grid; grid-template-columns: minmax(260px, 4fr) 8fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.lp-terreno__text { display: flex; flex-direction: column; gap: 18px; }
.lp-terreno__text > * { margin: 0 !important; }
.lp-terreno__text > p:not([class]) { max-width: 420px; font-size: 18px; line-height: 1.5; }

.lp-fotos.wp-block-gallery { margin: 0 !important; gap: 14px !important; }
.lp-fotos.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { position: relative; width: auto; margin: 0; overflow: visible; }
.lp-fotos.wp-block-gallery.has-nested-images figure.wp-block-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.lp-fotos.wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption)::before { content: none; }
.lp-fotos.wp-block-gallery.has-nested-images figure.wp-block-image figcaption { position: absolute; left: 10px; bottom: 10px; right: auto; z-index: 3; width: auto; max-width: calc(100% - 20px); max-height: none; margin: 0; padding: 5px 9px; overflow: visible; background: var(--lp-tinta); color: var(--lp-papel); font-size: 11px; font-weight: 700; line-height: 1.3; letter-spacing: .06em; text-align: left; text-transform: uppercase; text-shadow: none; }
.lp-fotos figure.wp-block-image:hover img { transform: scale(1.03); }

/* Collage de la home: 6 fotos con cortes y piezas de la grulla que flotan */
.lp-fotos--collage.wp-block-gallery { display: grid !important; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: repeat(3, clamp(110px, 11vw, 160px)); }
.lp-fotos--collage > figure:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
.lp-fotos--collage > figure:nth-child(2) { grid-column: 2; grid-row: 1; }
.lp-fotos--collage > figure:nth-child(3) { grid-column: 3; grid-row: 1 / 3; }
.lp-fotos--collage > figure:nth-child(4) { grid-column: 1; grid-row: 3; }
.lp-fotos--collage > figure:nth-child(5) { grid-column: 2; grid-row: 2 / 4; }
.lp-fotos--collage > figure:nth-child(6) { grid-column: 3; grid-row: 3; }
.lp-fotos--collage > figure:nth-child(1) img { clip-path: polygon(0 0, 100% 0, 100% 100%, 14% 100%, 0 88%); }
.lp-fotos--collage > figure:nth-child(2) img { clip-path: polygon(0 0, 86% 0, 100% 22%, 100% 100%, 0 100%); }
.lp-fotos--collage > figure:nth-child(4) img { clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%, 0 26%); }
.lp-fotos--collage > figure:nth-child(6) img { clip-path: polygon(0 0, 100% 0, 100% 78%, 86% 100%, 0 100%); }
.lp-fotos--collage > figure:nth-child(1)::after,
.lp-fotos--collage > figure:nth-child(3)::after,
.lp-fotos--collage > figure:nth-child(5)::after { content: ""; position: absolute; z-index: 2; width: clamp(34px, 3.4vw, 52px); aspect-ratio: 1; pointer-events: none; animation: lp-flota 7s ease-in-out infinite alternate; }
.lp-fotos--collage > figure:nth-child(1)::after { top: -16px; left: -16px; background: var(--lp-amarillo); clip-path: polygon(0 0, 100% 35%, 25% 100%); }
.lp-fotos--collage > figure:nth-child(3)::after { right: -14px; bottom: 26%; background: var(--lp-coral); clip-path: polygon(100% 0, 100% 100%, 0 55%); animation-delay: -2.5s; }
.lp-fotos--collage > figure:nth-child(5)::after { top: -18px; right: 18%; background: var(--lp-azul); clip-path: polygon(0 100%, 50% 0, 100% 100%); animation-delay: -5s; }
@keyframes lp-flota { from { transform: translate(0, 0) rotate(0deg); } to { transform: translate(6px, -8px) rotate(9deg); } }

/* Mosaico de Quiénes somos: 8 fotos con lugar y actividad */
.lp-terreno-qs__head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px clamp(32px, 5vw, 72px); align-items: end; margin-bottom: clamp(28px, 4vw, 48px) !important; }
.lp-terreno-qs__head > *, .lp-terreno-qs__title > * { margin: 0 !important; }
.lp-terreno-qs__head > .lp-terreno-qs__nota { grid-column: 2; font-family: var(--lp-mono); font-size: 13px; color: var(--lp-tinta-suave); }
@media (max-width: 781px) { .lp-terreno-qs__head > .lp-terreno-qs__nota { grid-column: auto; } }
.lp-terreno-qs__title { display: flex; flex-direction: column; gap: 14px; }
.lp-fotos--mosaico.wp-block-gallery { display: grid !important; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, clamp(140px, 14vw, 210px)); }
.lp-fotos--mosaico > figure:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
.lp-fotos--mosaico > figure:nth-child(4) { grid-column: 3 / 5; }
.lp-fotos--mosaico > figure:nth-child(1)::after { content: ""; position: absolute; z-index: 2; top: -14px; left: -14px; width: 44px; aspect-ratio: 1; background: var(--lp-amarillo); clip-path: polygon(0 0, 100% 35%, 25% 100%); pointer-events: none; }

@media (max-width: 781px) {
	.lp-terreno { grid-template-columns: 1fr; }
	.lp-fotos--collage.wp-block-gallery { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto; scroll-snap-type: x mandatory; padding: 18px 4px 6px; margin-inline: -4px !important; }
	.lp-fotos--collage.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { flex: 0 0 72%; height: 240px; scroll-snap-align: start; }
	.lp-fotos--mosaico.wp-block-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 150px; }
	.lp-fotos--mosaico > figure:nth-child(n) { grid-column: auto; grid-row: auto; }
	.lp-fotos--mosaico > figure:nth-child(1) { grid-column: 1 / 3; grid-row: span 2; }
	.lp-fotos--mosaico.wp-block-gallery.has-nested-images figure.wp-block-image figcaption { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
	.lp-fotos--collage > figure::after { animation: none; }
	.lp-fotos figure.wp-block-image:hover img { transform: none; }
}

/* ---------- Quiénes somos: misión, visión, valores, líneas, equipo y aliados ---------- */
.lp-identidad > *, .lp-qs-equipo > * { margin-block: 0 !important; }
.lp-identidad > .lp-h2-sec, .lp-qs-equipo > .lp-h2-sec { margin-bottom: 24px !important; }
.lp-identidad__mv > *, .lp-valores > *, .lp-lineas > *, .lp-miembros > *, .lp-socios > * { margin: 0 !important; }
.lp-section.lp-identidad { padding-top: 0; }
.lp-identidad__intro { max-width: 760px; font-size: 18px; line-height: 1.55; margin-bottom: clamp(36px, 5vw, 56px) !important; }
.lp-identidad__mv { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; margin-bottom: clamp(48px, 6vw, 72px) !important; }
.lp-identidad__item { padding: 28px; background: #fff; border-top: 5px solid var(--lp-azul); }
.lp-identidad__item:nth-child(2) { border-color: var(--lp-amarillo); }
.lp-identidad__item > * { margin: 0 !important; }
.lp-identidad__item > * + * { margin-top: 12px !important; }
.lp-identidad__k { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--lp-azul); }
.lp-identidad__item p { font-size: 18px; line-height: 1.5; }
.lp-valores, .lp-lineas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 0 32px; margin-bottom: clamp(48px, 6vw, 72px) !important; }
.lp-valor, .lp-linea { padding: 20px 0; border-top: 2px solid var(--lp-tinta); }
.lp-valor > *, .lp-linea > * { margin: 0 !important; }
.lp-valor > * + *, .lp-linea > * + * { margin-top: 10px !important; }
.lp-valor__t, .lp-linea__t { font-size: 22px; font-weight: 800; font-stretch: 108%; line-height: 1.15; }
.lp-valor p:not(.lp-num), .lp-linea li { font-size: 16px; line-height: 1.5; color: var(--lp-tinta); }
.lp-linea ul { padding-left: 18px; }
.lp-linea li + li { margin-top: 6px; }
.lp-lineas { margin-bottom: 0 !important; }

.lp-qs-equipo .lp-h2--m { margin: 14px 0 clamp(28px, 4vw, 44px) !important; }
.lp-miembros { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; margin-bottom: clamp(48px, 6vw, 72px) !important; }
.lp-miembro { display: grid; grid-template-columns: 140px 1fr; gap: 24px; align-items: start; padding: 24px; background: #fff; }
.lp-miembro > * { margin: 0 !important; }
.lp-miembro .wp-block-image img { width: 140px; height: 170px; object-fit: cover; object-position: top; }
.lp-miembro__body > * { margin: 0 !important; }
.lp-miembro__body > * + * { margin-top: 10px !important; }
.lp-miembro__nombre { font-size: 24px; font-weight: 800; font-stretch: 108%; }
.lp-miembro__body p { font-size: 16px; line-height: 1.5; }
.lp-socios { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.lp-socio { display: flex; gap: 20px; align-items: center; padding: 20px; background: #fff; }
.lp-socio > * { margin: 0 !important; }
.lp-socio .wp-block-image img { width: 110px; height: auto; }
.lp-socio__txt { font-size: 15px; line-height: 1.45; }
.lp-socio__txt a { color: var(--lp-tinta); font-weight: 700; text-decoration: none; }
.lp-socio__txt a:hover { color: var(--lp-azul); }
@media (max-width: 520px) {
	.lp-miembro { grid-template-columns: 96px 1fr; gap: 16px; padding: 18px; }
	.lp-miembro .wp-block-image img { width: 96px; height: 120px; }
}

/* ---------- Editor: páginas hechas de secciones (Quiénes somos, etc.) ----------
   El editor encaja los bloques raíz en 720 px y añade el margen global; las
   secciones del tema traen su propio ancho (.lp-wrap) o van a sangre (.lp-bg).
   .is-root-container solo existe dentro del editor. */
.is-root-container > .lp-wrap { max-width: calc(1320px + 2 * var(--lp-gutter)) !important; }
.is-root-container > .lp-bg { max-width: none !important; margin-inline: calc(-1 * var(--wp--style--root--padding-left, var(--lp-gutter))) !important; }
.is-root-container > .lp-wrap, .is-root-container > .lp-bg { margin-block: 0 !important; }

/* ---------- Home: «Lo último», visible sin scroll bajo la cabecera ---------- */
.lp-ultimo { border-top: 1px solid var(--lp-line); }
.lp-ultimo__inner { padding-block: clamp(28px, 3vw, 40px) clamp(48px, 6vw, 80px); }
.lp-ultimo__inner > * { margin: 0 !important; }
.lp-ultimo__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 32px; margin-bottom: 24px !important; }
.lp-ultimo__head > * { margin: 0 !important; }
.lp-ultimo .lp-h2-sec { margin: 0; }
.lp-ultimo .lp-stack-12 { gap: 8px; }
.lp-ultimo__buscador { margin-top: clamp(28px, 4vw, 44px) !important; }
.lp-ultimo .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .lp-ultimo .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .lp-ultimo .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr; } }
