/*
Theme Name:   La Loma Consultoría
Description:  Tema de bloques propio para lalomaconsultoria.com, construido a partir del design system de La Loma: negro, blanco y gris, titulares en serif y filetes en lugar de sombras. No necesita Divi.
Version:      1.4.1
Requires at least: 6.6
Requires PHP: 8.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  laloma
*/

/* ---------- Base ---------- */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(h1, h2, h3) { text-wrap: balance; }
:where(p) { text-wrap: pretty; }
a { text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--wp--preset--color--verde); outline-offset: 3px; }
.has-ink-background-color :focus-visible, .has-verde-background-color :focus-visible { outline-color: var(--wp--preset--color--surface); }
::selection { background: var(--wp--preset--color--verde); color: var(--wp--preset--color--surface); }

/* Etiqueta en mayúsculas (eyebrow) */
.ll-label {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 12px !important;
	line-height: 16px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--verde);
}
.has-ink-background-color .ll-label { color: var(--wp--preset--color--on-inverse-muted); }
.has-verde-background-color .ll-label { color: var(--wp--preset--color--verde-suave); }

/* Secciones: banda a todo el ancho con el contenido al ancho máximo */
.ll-section { padding-top: var(--wp--preset--spacing--80); padding-bottom: var(--wp--preset--spacing--80); }
/* Dos bandas blancas seguidas comparten el espacio: la segunda no repite el margen superior */
.ll-section:not([class*="-background-color"]) + .ll-section:not([class*="-background-color"]) { padding-top: 0; }
.ll-section-head { margin-bottom: var(--wp--preset--spacing--60); }
.ll-section-head > * + * { margin-top: 16px; }
.ll-section-head h2 { max-width: 22ch; }
.ll-section-head p:not(.ll-label) { max-width: 40em; }

/* ---------- Botones ---------- */
.wp-block-button__link { transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease; }
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--ink);
	border: 1px solid var(--wp--preset--color--ink);
	padding: 15px 28px;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--verde); border-color: var(--wp--preset--color--verde); color: var(--wp--preset--color--surface); }
.has-ink-background-color .wp-block-button__link, .has-verde-background-color .wp-block-button__link { background: var(--wp--preset--color--surface); color: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--surface); }
.has-ink-background-color .wp-block-button.is-style-outline > .wp-block-button__link, .has-verde-background-color .wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--wp--preset--color--surface); border-color: var(--wp--preset--color--surface); }
.ll-link-arrow a, a.ll-link-arrow {
	font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
	color: var(--wp--preset--color--ink); text-underline-offset: 6px;
}

/* ---------- Cabecera ---------- */
.ll-site-header { border-bottom: 1px solid var(--wp--preset--color--line); background: var(--wp--preset--color--surface); }
.ll-site-header__inner { min-height: var(--wp--custom--header-height); }
.ll-site-header .ll-logo img { width: 208px; height: auto; display: block; }
.ll-site-header .wp-block-navigation a { text-decoration: none; padding-block: 8px; border-bottom: 1px solid transparent; }
.ll-site-header .wp-block-navigation a { transition: border-color 200ms ease, color 200ms ease; }
.ll-site-header .wp-block-navigation a:hover { border-bottom-color: var(--wp--preset--color--verde-medio); color: var(--wp--preset--color--verde); }
.ll-site-header .wp-block-navigation .current-menu-item > a,
.ll-site-header .wp-block-navigation a[aria-current="page"] { border-bottom-color: var(--wp--preset--color--verde); }
.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--surface) !important;
	padding: 24px clamp(16px, 4vw, 48px) !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 48px; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item a {
	font-family: var(--wp--preset--font-family--display);
	font-size: 32px; line-height: 1.3; letter-spacing: 0; text-transform: none; font-weight: 400;
}
.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close { color: var(--wp--preset--color--ink); }

/* ---------- Hero ---------- */
.ll-hero { padding-top: var(--wp--preset--spacing--90); padding-bottom: var(--wp--preset--spacing--70); }
.ll-hero h1.ll-hero__title {
	font-size: var(--wp--preset--font-size--display-xl);
	font-weight: 400;
	line-height: 1.06;
	letter-spacing: -0.02em;
	max-width: 14ch;
	margin-top: 20px;
}
.ll-hero .ll-hero__claim {
	display: flex; align-items: center; gap: 16px;
	margin-top: 20px;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--quote);
	font-weight: 400; line-height: 1.2;
	color: var(--wp--preset--color--verde);
}
.ll-hero .ll-hero__claim::before { content: ""; flex: none; width: 48px; height: 2px; background: var(--wp--preset--color--verde-medio); }
.ll-hero .ll-hero__lead {
	font-size: var(--wp--preset--font-size--lead);
	font-weight: 300;
	line-height: 1.6;
	max-width: 36em;
	margin-top: 32px;
}
.ll-hero .wp-block-buttons { margin-top: 40px; gap: 16px; }
.ll-loma {
	border: 0 !important;
	height: auto !important;
	aspect-ratio: 1101 / 97;
	width: 100%;
	max-width: none !important;
	margin-top: var(--wp--preset--spacing--70) !important;
	background: url("assets/img/loma.svg?v=2") no-repeat center bottom / 100% auto;
	opacity: 1 !important;
}
/* Escena de la loma: la crea assets/js/loma.js a partir de la línea .ll-loma (sin JavaScript se ve la línea). */
.ll-loma.is-escena { display: none !important; }
.ll-hero .ll-escena {
	display: block;
	width: 100%;
	height: auto;
	margin-top: var(--wp--preset--spacing--40) !important;
	pointer-events: none;
	overflow: hidden;
}
.ll-escena .e-tierra, .ll-escena .e-muro, .ll-escena .e-lana { fill: var(--wp--preset--color--surface); }
.ll-escena .e-loma { fill: var(--wp--preset--color--verde-medio); }
.ll-escena .e-linea { fill: none; stroke: var(--wp--preset--color--verde-medio); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.ll-escena .e-linea.e-muro { fill: var(--wp--preset--color--surface); }
.ll-escena .e-fino { stroke-width: 0.7; }
.ll-escena .e-lana { stroke: var(--wp--preset--color--verde-medio); stroke-width: 0.85; stroke-linejoin: round; }
.ll-escena .e-oscuro { fill: var(--wp--preset--color--verde); }
.ll-escena .e-pata { stroke: var(--wp--preset--color--verde); stroke-width: 1.15; stroke-linecap: round; }
.ll-escena .e-sol { fill: var(--wp--preset--color--verde-claro); stroke: var(--wp--preset--color--verde-suave); stroke-width: 0.8; }
.ll-escena .e-nube { fill: none; stroke: var(--wp--preset--color--verde-suave); stroke-width: 0.9; stroke-linecap: round; }
.ll-escena .e-ave { fill: none; stroke: var(--wp--preset--color--ink-soft); stroke-width: 0.8; stroke-linecap: round; stroke-linejoin: round; }
.ll-escena .e-cipres { fill: var(--wp--preset--color--verde-claro); stroke: var(--wp--preset--color--verde-medio); stroke-width: 0.9; }
.ll-escena.is-dibujada .e-dibujo { stroke-dasharray: none !important; }
.ll-escena.is-estrecha .e-linea { stroke-width: 1.5; }
.ll-escena.is-estrecha .e-fino { stroke-width: 1; }
.ll-escena.is-estrecha .e-lana { stroke-width: 1.1; }
.ll-escena.is-estrecha .e-ave, .ll-escena.is-estrecha .e-nube, .ll-escena.is-estrecha .e-cipres { stroke-width: 1.2; }
.ll-hero__meta {
	list-style: none; padding: 0; margin: 24px 0 0 !important;
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 48px;
}
.ll-hero__meta li {
	font-size: 12px; line-height: 18px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
	color: var(--wp--preset--color--ink); margin: 0;
}

/* ---------- Julio Calvo: nombre en otro color con ventana de perfil (inc/julio-calvo.php) ---------- */
p:has(> .ll-persona) { position: relative; }
.ll-persona { color: var(--wp--preset--color--verde-medio); font-weight: 500; cursor: help; outline-offset: 2px; }
.ll-persona__ficha {
	position: absolute; left: 0; bottom: calc(100% + 12px); z-index: 20;
	width: 100%; max-width: 420px; box-sizing: border-box; padding: 16px 20px;
	background: var(--wp--preset--color--surface); color: var(--wp--preset--color--ink-soft);
	border: 1px solid var(--wp--preset--color--line); border-top: 2px solid var(--wp--preset--color--verde-medio);
	box-shadow: 0 8px 24px rgba(29, 29, 27, 0.12);
	font-size: var(--wp--preset--font-size--body-sm); font-weight: 400; line-height: 1.55; text-align: left;
	opacity: 0; visibility: hidden; transform: translateY(4px);
	transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 200ms;
	pointer-events: none;
}
.ll-persona:hover .ll-persona__ficha,
.ll-persona:focus .ll-persona__ficha,
.ll-persona:focus-within .ll-persona__ficha { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

/* ---------- Bloque partido (Quiénes somos) ---------- */
.ll-split { gap: var(--wp--preset--spacing--60) !important; }
.ll-split h2 { font-size: var(--wp--preset--font-size--heading); max-width: 18ch; }
.ll-split .wp-block-column > p + p { margin-top: 16px; }

/* ---------- Líneas de actividad ---------- */
.ll-lines { gap: 0 var(--wp--preset--spacing--60) !important; }
.ll-line {
	position: relative;
	border-top: 1px solid var(--wp--preset--color--line);
	padding: 24px 0 40px;
}
.ll-line::before { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 2px; background: var(--wp--preset--color--verde); transform-origin: left; transform: scaleX(0.18); transition: transform 600ms cubic-bezier(.2,.7,.2,1); }
.ll-line:hover::before { transform: scaleX(1); }
.ll-line h3 { font-size: var(--wp--preset--font-size--subheading); max-width: 26ch; margin: 0; }
.ll-line p { font-size: 15px; line-height: 1.6; max-width: 46ch; margin-top: 8px !important; }

/* ---------- Declaración ---------- */
.ll-statement .ll-statement__label { padding-top: 16px; border-top: 1px solid var(--wp--preset--color--line-inverse); }
.ll-statement .ll-statement__text {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--display-l);
	font-weight: 400; line-height: 1.18; letter-spacing: -0.015em;
	color: var(--wp--preset--color--surface); margin: 0;
}
.ll-statement .ll-statement__by { font-size: 15px; line-height: 1.6; color: var(--wp--preset--color--on-inverse-muted); max-width: 40em; }
.has-verde-background-color.ll-statement .ll-statement__by { color: var(--wp--preset--color--verde-suave); }
.has-verde-background-color.ll-statement .ll-statement__label { border-top-color: var(--wp--preset--color--verde-medio); }
.has-ink-background-color, .has-verde-background-color { color: var(--wp--preset--color--surface); }
.has-ink-background-color a, .has-verde-background-color a { color: var(--wp--preset--color--surface); }

/* ---------- Ámbitos (bloque laloma/ambitos) ---------- */
.ll-areas {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
	border-top: 1px solid var(--wp--preset--color--line); border-left: 1px solid var(--wp--preset--color--line);
}
.ll-areas__item { border-right: 1px solid var(--wp--preset--color--line); border-bottom: 1px solid var(--wp--preset--color--line); min-width: 0; margin: 0; }
.ll-areas__link {
	display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
	height: 100%; box-sizing: border-box; min-height: 184px; padding: 24px;
	color: var(--wp--preset--color--ink); text-decoration: none;
	transition: background-color 150ms ease, color 150ms ease;
}
.ll-areas__name { font-family: var(--wp--preset--font-family--display); font-size: 21px; line-height: 1.33; font-weight: 500; text-wrap: balance; }
.ll-areas__more { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--wp--preset--color--ink-muted); }
.ll-areas__link:hover { background: var(--wp--preset--color--verde); color: var(--wp--preset--color--surface); }
.ll-areas__more { transition: transform 250ms ease, color 150ms ease; }
.ll-areas__link:hover .ll-areas__more { transform: translateX(6px); }
.ll-areas__link:hover .ll-areas__more { color: var(--wp--preset--color--surface); }

/* ---------- Proyectos (bloque laloma/proyectos) ---------- */
.ll-projects { display: grid; gap: var(--wp--preset--spacing--70); }
.ll-projects__group { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 48px; scroll-margin-top: 24px; }
.ll-projects__area { grid-column: 1 / span 4; border-top: 2px solid var(--wp--preset--color--verde); padding-top: 24px; min-width: 0; }
.ll-projects__area h2 { font-size: var(--wp--preset--font-size--subheading); margin: 12px 0 0; }
.ll-projects__count { margin: 8px 0 0; font-size: 13px; color: var(--wp--preset--color--ink-muted); font-variant-numeric: tabular-nums; }
.ll-projects__list { grid-column: 5 / -1; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--wp--preset--color--ink); min-width: 0; }
.ll-projects__row { padding: 16px 0; border-bottom: 1px solid var(--wp--preset--color--line); margin: 0; color: var(--wp--preset--color--ink); line-height: 1.5; }
.ll-projects__row a { text-decoration: none; }
.ll-projects__row a:hover { text-decoration: underline; }
.ll-projects__empty { color: var(--wp--preset--color--ink-muted); }

/* ---------- Clientes (bloque laloma/clientes) ---------- */
.ll-clients { display: grid; gap: var(--wp--preset--spacing--60); }
.ll-clients__title { margin: 0 0 16px !important; padding-top: 16px; border-top: 2px solid var(--wp--preset--color--verde); }
.ll-clients__grid {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
	border-top: 1px solid var(--wp--preset--color--line); border-left: 1px solid var(--wp--preset--color--line);
}
@media (max-width: 1000px) { .ll-clients__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ll-clients__item {
	display: flex; align-items: center; justify-content: center;
	min-height: 148px; padding: 18px 14px; margin: 0; box-sizing: border-box;
	border-right: 1px solid var(--wp--preset--color--line); border-bottom: 1px solid var(--wp--preset--color--line);
}
.ll-clients__logo {
	display: block; width: auto; height: auto; max-width: 100%; max-height: 52px; object-fit: contain;
	filter: grayscale(1); opacity: 0.8; transition: filter 200ms ease, opacity 200ms ease;
}
.ll-clients__item:hover .ll-clients__logo, .ll-clients--color .ll-clients__logo { filter: none; opacity: 1; }
.ll-clients__item--dep { flex-direction: column; gap: 10px; justify-content: center; }
.ll-clients__item--dep .ll-clients__logo { max-height: 40px; }
.ll-clients__dep { font-size: 11px; line-height: 1.35; color: var(--wp--preset--color--ink-soft); text-align: center; text-wrap: balance; }
.ll-clients__name { font-family: var(--wp--preset--font-family--display); font-size: 18px; color: var(--wp--preset--color--ink); text-align: center; }

/* ---------- Contacto ---------- */
.ll-contact { gap: var(--wp--preset--spacing--60) !important; }
.ll-contact h2 { font-size: var(--wp--preset--font-size--display-l); font-weight: 400; letter-spacing: -0.015em; line-height: 1.18; }
.ll-datum { border-top: 1px solid var(--wp--preset--color--line); padding-top: 16px; }
.ll-datum > * { margin: 0 !important; }
.ll-datum > .ll-label + * { margin-top: 4px !important; color: var(--wp--preset--color--ink); }
.ll-data { gap: 24px !important; margin-top: 32px !important; }

/* Página de contacto: teléfono y correo, grandes y en paralelo */
.ll-contact-page .ll-data { flex-direction: row !important; flex-wrap: wrap; gap: 48px !important; margin-top: 0 !important; }
.ll-contact-page .ll-datum { flex: 1 1 320px; padding-top: 24px; border-top: 2px solid var(--wp--preset--color--verde); }
.ll-contact-page .ll-datum > .ll-label + p { margin-top: 12px !important; font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--heading); line-height: 1.25; overflow-wrap: anywhere; }
.ll-contact-page .ll-datum a { text-decoration-thickness: 1px; text-underline-offset: 6px; }

/* ---------- Formulario (bloque laloma/formulario) ---------- */
.ll-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ll-form__full, .ll-form__check, .ll-form__actions, .ll-form__notice { grid-column: 1 / -1; }
.ll-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ll-field__label { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--wp--preset--color--ink); }
.ll-field__control {
	box-sizing: border-box; width: 100%; min-height: 48px; padding: 12px 16px;
	border: 1px solid var(--wp--preset--color--line-strong); border-radius: 2px;
	background: var(--wp--preset--color--surface); color: var(--wp--preset--color--ink);
	font: 400 17px/24px var(--wp--preset--font-family--sans);
}
textarea.ll-field__control { min-height: 160px; resize: vertical; }
.ll-field__control:hover { border-color: var(--wp--preset--color--ink-soft); }
.ll-field__control:focus { outline: 2px solid var(--wp--preset--color--ink); outline-offset: 2px; border-color: var(--wp--preset--color--ink); }
.ll-field__help { font-size: 13px; line-height: 20px; color: var(--wp--preset--color--ink-muted); }
.ll-form__check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 20px; }
.ll-form__check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--wp--preset--color--ink); flex: none; }
.ll-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.ll-form__notice { padding: 16px 20px; border: 2px solid var(--wp--preset--color--ink); color: var(--wp--preset--color--ink); font-weight: 500; margin: 0; }
.ll-form__notice--error::before { content: "! "; font-weight: 700; }
.ll-form .wp-element-button { cursor: pointer; }

/* ---------- Cabecera de página interior ---------- */
.ll-page-header { padding-top: var(--wp--preset--spacing--80); padding-bottom: var(--wp--preset--spacing--60); }
.ll-page-header h1 { max-width: 18ch; }
.ll-page-header .wp-block-post-excerpt__excerpt { font-size: var(--wp--preset--font-size--lead); font-weight: 300; line-height: 1.6; max-width: 36em; margin-top: 8px; }

/* ---------- Pie ---------- */
.ll-site-footer { padding-top: var(--wp--preset--spacing--70); padding-bottom: 32px; }
.ll-site-footer .ll-logo img { width: 208px; height: auto; display: block; }
.ll-site-footer p { font-size: 15px; line-height: 1.75; }
.ll-site-footer a { text-decoration: none; }
.ll-site-footer a:hover { text-decoration: underline; }
.ll-site-footer .ll-footer-legal { border-top: 1px solid var(--wp--preset--color--line-inverse); padding-top: 24px; margin-top: 48px !important; }
.ll-site-footer .ll-footer-legal p { font-size: 13px; color: var(--wp--preset--color--on-inverse-muted); }
.ll-site-footer .ll-footer-legal a { color: var(--wp--preset--color--on-inverse-muted); }

/* ---------- Encaje de bandas ---------- */
/* Las bandas van pegadas: sin el espacio entre bloques de WordPress */
.wp-site-blocks > *, main.wp-block-group > *, .wp-block-post-content > .alignfull { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.ll-section--first { padding-top: 0; }
.ll-page-header .wp-block-post-terms, .ll-page-header .wp-block-post-terms a { text-decoration: none; color: var(--wp--preset--color--ink-muted); }
.ll-page-header .wp-block-term-description { font-size: var(--wp--preset--font-size--lead); font-weight: 300; max-width: 36em; }

/* Quiénes somos: frase de presentación y experiencia del equipo */
.ll-about { align-items: flex-start !important; }
.ll-about h2.ll-about__title { font-size: var(--wp--preset--font-size--display-l); font-weight: 400; line-height: 1.15; letter-spacing: -0.015em; max-width: 14ch; margin-top: 16px; }
.ll-about .ll-about__lead { font-size: var(--wp--preset--font-size--lead); font-weight: 300; line-height: 1.6; color: var(--wp--preset--color--ink); margin-top: 32px; }
.ll-about .ll-about__lead + p { margin-top: 24px; max-width: 40em; }
.ll-pillars { gap: 0 var(--wp--preset--spacing--60) !important; }
.ll-pillars h3.ll-pillar { position: relative; margin: 0; padding: 24px 0 8px; border-top: 1px solid var(--wp--preset--color--line-strong); font-size: var(--wp--preset--font-size--subheading); font-weight: 400; line-height: 1.3; text-wrap: balance; }
.ll-pillars h3.ll-pillar::before { content: ""; position: absolute; left: 0; top: -1px; width: 48px; height: 2px; background: var(--wp--preset--color--verde); }

/* Lista de proyectos de un ámbito */
.ll-ambito-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--wp--preset--color--ink); max-width: 880px; }
.ll-ambito-list > li { margin: 0 !important; border-bottom: 1px solid var(--wp--preset--color--line); }
.ll-ambito-list .wp-block-post-title { font-family: var(--wp--preset--font-family--sans); font-size: 17px; font-weight: 400; letter-spacing: 0; line-height: 1.5; padding: 16px 0; margin: 0; }

/* ---------- Acento verde en el titular ---------- */
.ll-hero h1.ll-hero__title em { font-style: italic; font-weight: 400; color: var(--wp--preset--color--verde); }

/* ---------- Cabecera fija ---------- */
header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
.admin-bar header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar header.wp-block-template-part { top: 46px; } }
.ll-site-header { transition: border-color 300ms ease; }
.ll-site-header__inner { transition: min-height 300ms ease; }
.ll-site-header .ll-logo img { transition: width 300ms ease; }
.is-scrolled .ll-site-header { border-bottom-color: var(--wp--preset--color--verde-medio); }
.is-scrolled .ll-site-header__inner { min-height: 68px; }
.is-scrolled .ll-site-header .ll-logo img { width: 176px; }

/* ---------- Movimiento ----------
   Solo con JavaScript (clase ll-js) y solo si la persona no ha pedido reducir el movimiento.
   Sin JavaScript todo se ve quieto y completo. */
@media (prefers-reduced-motion: no-preference) {
	/* Entrada de la portada al cargar */
	.ll-js .ll-hero .ll-label,
	.ll-js .ll-hero .ll-hero__title,
	.ll-js .ll-hero .ll-hero__claim,
	.ll-js .ll-hero .ll-hero__lead,
	.ll-js .ll-hero .wp-block-buttons,
	.ll-js .ll-hero .ll-hero__meta li { animation: ll-sube 900ms cubic-bezier(.2,.7,.2,1) both; }
	.ll-js .ll-hero .ll-hero__title { animation-delay: 120ms; }
	.ll-js .ll-hero .ll-hero__claim { animation-delay: 700ms; }
	.ll-js .ll-hero .ll-hero__lead { animation-delay: 280ms; }
	.ll-js .ll-hero .wp-block-buttons { animation-delay: 420ms; }
	.ll-js .ll-hero .ll-hero__meta li { animation-delay: calc(1200ms + var(--ll-i, 0) * 90ms); }
	.ll-js .ll-hero .ll-loma { animation: ll-dibuja 1600ms cubic-bezier(.6,.05,.3,1) 500ms both; }
	.ll-js .ll-hero h1.ll-hero__title em { display: inline-block; animation: ll-sube 900ms cubic-bezier(.2,.7,.2,1) 520ms both; }

	/* Aparición al hacer scroll (la clase la pone animaciones.js) */
	.ll-js .ll-reveal { opacity: 0; transform: translateY(28px); transition: opacity 800ms ease, transform 900ms cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--ll-i, 0) * 80ms); }
	.ll-js .ll-reveal.is-visible { opacity: 1; transform: none; }
	.ll-js .ll-line.ll-reveal::before { transform: scaleX(0); transition-delay: calc(300ms + var(--ll-i, 0) * 80ms); }
	.ll-js .ll-line.ll-reveal.is-visible::before { transform: scaleX(0.18); }
	.ll-js .ll-line.ll-reveal.is-visible:hover::before { transform: scaleX(1); transition-delay: 0ms; }

	/* Logos de clientes: suben un poco al pasar el ratón */
	.ll-clients__logo { transition: filter 250ms ease, opacity 250ms ease, transform 250ms ease; }
	.ll-clients__item:hover .ll-clients__logo { transform: scale(1.05); }
	.wp-block-button__link { transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease; }
	.wp-block-button__link:hover { transform: translateY(-2px); }
}
@keyframes ll-sube { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes ll-dibuja { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- Móvil ---------- */
@media (max-width: 781px) {
	.ll-site-header .ll-logo img { width: 152px; }
	.ll-site-header__inner { min-height: 64px; }
	.ll-hero__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ll-lines { grid-template-columns: minmax(0, 1fr) !important; }
	.ll-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 24px 32px !important; }
	.ll-about h2.ll-about__title { max-width: none; }
	.ll-about .ll-about__lead { margin-top: 0; }
	.ll-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ll-areas__link { min-height: 152px; padding: 16px; }
	.ll-areas__name { font-size: 18px; }
	.ll-projects__group { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
	.ll-projects__area, .ll-projects__list { grid-column: 1 / -1; }
	.ll-projects__area { border-top: 0; padding-top: 0; margin-bottom: 16px; }
	.ll-form { grid-template-columns: minmax(0, 1fr); }
	.ll-clients__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ll-clients__item { min-height: 96px; padding: 16px; }
	.ll-clients__logo { max-height: 44px; }
	.ll-statement .ll-statement__label { border-top: 0; padding-top: 0; }
}
@media (max-width: 480px) {
	.ll-areas { grid-template-columns: minmax(0, 1fr); }
	.ll-areas__link { min-height: 0; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.wp-block-button__link, .ll-areas__link, .ll-clients__logo { transition: none; }
}
