/* Altius Group — estilos del tema. Un solo archivo, sin dependencias. */

/* Tipografía estilo Apple: San Francisco en equipos Apple (no descarga nada);
   en Windows y Android, Inter, que es la más parecida, alojada en el propio sitio. */
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
	font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-latin-wght-italic.woff2") format("woff2");
	font-weight: 100 900; font-style: italic; font-display: swap;
}

:root {
	--red: #b20000;
	--red-dark: #8c0000;
	--ink: #1c1c1e;
	--slate: #3b4a6a;
	--muted: #5f6166;
	--line: #e3e3e3;
	--soft: #f4f4f4;
	--white: #fff;

	--f-sm: .8125rem;   /* 13 */
	--f-base: 1rem;     /* 16 */
	--f-md: 1.25rem;    /* 20 */
	--f-lg: 1.5625rem;  /* 25 */
	--f-xl: 1.9375rem;  /* 31 */
	--f-2xl: 2.4375rem; /* 39 */
	--f-3xl: 3.0625rem; /* 49 */
	--f-4xl: 3.8125rem; /* 61 */

	--font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;

	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 40px);
	--space: clamp(56px, 8vw, 104px);
	--radius: 3px;
	--header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
	margin: 0; background: var(--white); color: var(--ink);
	font: 400 var(--f-base)/1.6 var(--font);
	font-feature-settings: "cv11", "ss01";
	text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
	min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
}
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }

.icon { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--text { max-width: calc(760px + 2 * var(--gutter)); }
.wrap--full { max-width: none; padding: 0 clamp(16px, 3.5vw, 56px); }

.section { padding: var(--space) 0; }
.section--tight { padding: calc(var(--space) * .55) 0 var(--space); }
.section--soft { background: var(--soft); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 32px; }
.section__title { font-size: var(--f-2xl); margin: 0; }
.link-more { font-weight: 600; color: var(--red); text-decoration: none; border-bottom: 1px solid currentColor; }
.lead { font-size: var(--f-md); line-height: 1.5; }
.empty { font-size: var(--f-md); color: var(--muted); }

.prose { max-width: 68ch; }
.prose p, .prose li { line-height: 1.7; }
.prose h2 { font-size: var(--f-xl); margin-top: 1.4em; }
.prose h3 { font-size: var(--f-lg); margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1em; }
.prose a:not(.btn) { color: var(--red); }
.prose img { height: auto; }
.prose { overflow-wrap: anywhere; }
.prose figure, .prose .wp-caption, .prose table, .prose iframe, .prose video, .prose embed, .prose object { max-width: 100% !important; }
.prose .wp-caption { margin: 1.5em 0; float: none; }
.prose .wp-caption img { width: 100%; }
.prose .wp-caption-text { font-size: var(--f-sm, 14px); color: var(--muted, #666); margin-top: .5em; }
.prose .alignleft, .prose .alignright { float: none; }
.prose table { display: block; overflow-x: auto; }
.prose blockquote { margin: 1.5em 0; padding-left: 1em; border-left: 3px solid var(--red); font-size: var(--f-md); }

/* ---------- Botones, etiquetas ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	min-height: 46px; padding: .7em 1.35em; border: 1px solid var(--red); border-radius: var(--radius);
	background: var(--red); color: #fff; font-weight: 600; font-size: var(--f-base); line-height: 1.2;
	text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn--line { background: transparent; color: var(--red); }
.btn--line:hover { background: var(--red); color: #fff; }
.btn--light { background: transparent; border-color: #fff; color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.badge { display: inline-block; padding: .35em .7em; border-radius: var(--radius); background: var(--ink); color: #fff; font-size: var(--f-sm); font-weight: 600; line-height: 1.2; }
.badge--lanzamiento { background: var(--red); }
.badge--en-obra { background: var(--slate); }
.badge--entrega-inmediata { background: #0f6b45; }
.badge--terminada { background: #fff; color: var(--ink); }
.tag { display: inline-block; padding: .3em .7em; border: 1px solid var(--line); border-radius: var(--radius); font-size: var(--f-sm); font-weight: 600; text-decoration: none; }

.crumbs { display: flex; gap: .6em; font-size: var(--f-sm); font-weight: 600; color: var(--muted); margin-bottom: 16px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.crumbs--light, .crumbs--light a { color: rgba(255,255,255,.85); }
.crumbs--light a:hover { color: #fff; text-decoration: underline; }

/* El contenido estira para que el pie quede siempre al fondo, aun en páginas cortas. */
.site-main { flex: 1 0 auto; }

/* ---------- Cabezal ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.site-logo img { width: 116px; height: auto; }
.menu { list-style: none; display: flex; align-items: center; gap: 4px; }
.menu__item { position: relative; display: flex; align-items: center; }
.menu__item > a { display: block; padding: 10px 11px; font-size: .875rem; font-weight: 600; text-decoration: none; }
.menu__item.is-current > a { color: var(--red); }
.menu__sub-toggle { display: none; }
.menu__sub {
	list-style: none; position: absolute; top: 100%; left: 0; min-width: 200px; padding: 8px 0;
	background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--red); border-radius: 0 0 var(--radius) var(--radius);
	opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.menu__sub a { display: block; padding: 8px 18px; font-size: .875rem; text-decoration: none; }
.menu__sub a:hover { background: var(--soft); }
.has-sub:hover > .menu__sub, .has-sub:focus-within > .menu__sub, .has-sub.is-open > .menu__sub { opacity: 1; visibility: visible; transform: none; }
.nav-toggle { display: none; }

@media (max-width: 1060px) {
	.nav-toggle {
		display: inline-flex; align-items: center; gap: 10px; padding: 10px 4px; background: none; border: 0;
		font-weight: 600; cursor: pointer;
	}
	.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; transition: transform .2s, background .2s; }
	.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
	.nav-toggle__bars::before { top: -7px; } .nav-toggle__bars::after { top: 7px; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
	.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }
	.site-nav {
		position: fixed; inset: var(--header-h) 0 0 0; background: #fff; overflow-y: auto; padding: 8px var(--gutter) 40px;
		display: none; border-top: 1px solid var(--line);
	}
	.site-nav.is-open { display: block; }
	.menu { flex-direction: column; align-items: stretch; gap: 0; }
	.menu__item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
	.menu__item > a { flex: 1; padding: 16px 0; font-size: var(--f-md); }
	.menu__sub-toggle { display: grid; place-items: center; width: 48px; height: 48px; background: none; border: 0; cursor: pointer; }
	.menu__sub-toggle .icon { width: 24px; height: 24px; transition: transform .2s; }
	.menu__sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
	.menu__sub { position: static; flex-basis: 100%; border: 0; padding: 0 0 12px; opacity: 1; visibility: visible; transform: none; display: none; min-width: 0; }
	.has-sub:hover > .menu__sub, .has-sub:focus-within > .menu__sub { display: none; }
	.has-sub.is-open > .menu__sub { display: block; }
	.menu__sub a { padding: 10px 0 10px 16px; font-size: var(--f-base); }
	body.nav-open { overflow: hidden; }
}

/* ---------- Portada: imagen principal ---------- */
.hero { position: relative; height: min(86vh, 760px); min-height: 460px; background: var(--ink); overflow: hidden; color: #fff; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.28) 55%, rgba(0,0,0,.05) 100%); }
.hero__text { position: absolute; left: 0; right: 0; bottom: clamp(72px, 12vh, 120px); z-index: 2; }
.hero__kicker { font-size: clamp(var(--f-2xl), 7.5vw, 5.5rem); font-weight: 700; letter-spacing: -.025em; margin: 0; line-height: .9; }
.hero__title { font-size: clamp(var(--f-2xl), 7.5vw, 5.5rem); font-weight: 300; line-height: .9; letter-spacing: -.02em; margin: 0; max-width: 14ch; text-transform: lowercase; }
.hero__overlay { position: absolute; left: 0; right: 0; bottom: 32px; z-index: 3; }
.hero__dots { display: flex; gap: 10px; }
.hero__dot { width: 36px; height: 4px; padding: 0; border: 0; background: rgba(255,255,255,.45); cursor: pointer; }
.hero__dot[aria-current="true"] { background: #fff; }

/* Barra de progreso: su animación marca cuándo cambia la imagen. */
.hero__progress { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 3px; background: rgba(255,255,255,.22); display: none; }
.hero.is-auto .hero__progress { display: block; }
.hero__progress span { display: block; height: 100%; width: 100%; background: var(--red); transform-origin: left center; transform: scaleX(0); animation: hero-progress 6.5s linear forwards; }
.hero.is-paused .hero__progress span { animation-play-state: paused; }
@keyframes hero-progress { to { transform: scaleX(1); } }

/* ---------- Portada: visión y cifras ---------- */
/* Mismo tratamiento que el sitio actual: todo centrado, título liviano con dos tramos en rojo. */
.vision { text-align: center; padding-bottom: calc(var(--space) * .6); }
.vision__title { max-width: 1080px; margin: 0 auto; font-size: clamp(1.875rem, 3.8vw, 2.75rem); font-weight: 300; line-height: 1.5; letter-spacing: 1px; color: #333; text-wrap: pretty; }
.vision__accent { color: #d30000; }
.vision__lead { max-width: 900px; margin: 28px auto 0; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); font-weight: 300; line-height: 1.6; color: #000; }

/* Cifras: cuatro columnas con divisores; al pasar el mouse, la cifra en rojo y el fondo gris muy claro. */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: calc(var(--space) * .7) 0 0; padding-top: 30px; }
.stats__item { display: flex; flex-direction: column-reverse; align-items: center; justify-content: flex-end; padding: 20px 16px 24px; text-align: center; color: var(--ink); transition: background-color .2s ease; }
.stats__item + .stats__item { border-left: 2px solid #333; }
.stats__item:hover { background-color: #f5f5f5; }
.stats__value { margin: 0; font-size: clamp(3rem, 6vw, 5.3125rem); font-weight: 900; letter-spacing: -.02em; line-height: 1.1; text-transform: uppercase; color: var(--ink); transition: color .2s ease; }
.stats__item:hover .stats__value { color: var(--red); }
.stats__label { margin-top: 10px; font-size: clamp(.9375rem, 1.3vw, 1.125rem); font-weight: 500; line-height: 1.2; text-transform: uppercase; color: var(--ink); }

/* ---------- Franjas con foto: el recurso gráfico del sitio actual ----------
   Foto en blanco y negro a ancho completo y un paño de color sobre una de las mitades:
   rojo translúcido (tint), rojo sólido (red) o azul pizarra (slate). */
.photo { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: #3a3a3c; }
.photo__img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.photo__grid { display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(440px, 46vw, 620px); }
.photo__panel { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
.photo--left .photo__panel { padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); padding-right: clamp(32px, 5vw, 72px); }
.photo--right .photo__panel { grid-column: 2; padding-left: clamp(32px, 5vw, 72px); padding-right: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
.photo--tint .photo__panel { background: rgba(175, 0, 0, .68); }
.photo--red .photo__panel { background: var(--red); }
.photo--slate .photo__panel { background: var(--slate); }
.photo--split .photo__img { width: 50%; }
.photo--split.photo--right .photo__img { left: 0; right: auto; }
.photo--split.photo--left .photo__img { left: auto; right: 0; }
.photo--split.photo--tint .photo__panel { background: #b54a47; }
.photo__title { margin: 0 0 14px; max-width: 16ch; font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.12; letter-spacing: -.015em; }
.photo__tag { margin: 0; font-size: var(--f-md); font-weight: 600; }
.photo__logo { width: 170px; margin-top: 32px; }
.photo__partner { width: 230px; margin: 8px 0 22px; }
.photo__panel > p:not([class]) { max-width: 46ch; }

/* Palabra partida y apilada: el recurso tipográfico propio de la marca. */
.stack { display: flex; flex-direction: column; margin: 0 0 24px; font-size: clamp(2.75rem, 5vw, 3.75rem); font-weight: 700; line-height: .98; letter-spacing: -.02em; text-transform: uppercase; }

/* ---------- Historia: propuesta a ancho completo con la foto de la familia ---------- */
.story-band { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: clamp(540px, 82vh, 820px); color: #fff; background: #3a3a3c; }
.story-band__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.story-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(150, 0, 0, .9) 0%, rgba(175, 0, 0, .72) 38%, rgba(175, 0, 0, .18) 72%, rgba(175, 0, 0, 0) 100%); }
.story-band__year { position: absolute; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); top: calc(var(--space) * .5); z-index: -1; margin: 0; font-size: clamp(5.5rem, 13vw, 12.5rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .6); }
.story-band__inner { padding-top: var(--space); padding-bottom: calc(var(--space) * .9); }
.story-band__title { display: flex; flex-direction: column; margin: 0 0 22px; font-size: clamp(3rem, 8vw, 6.5rem); font-weight: 700; line-height: .88; letter-spacing: -.035em; }
.story-band__title .claim { width: fit-content; }
.story-band__text { max-width: 32ch; margin: 0 0 6px; font-size: clamp(1.125rem, 1.8vw, 1.375rem); }
.story-band__tag { margin: 0 0 28px; font-size: var(--f-md); font-weight: 600; }

/* ---------- Países ---------- */
.countries__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 72px; align-items: stretch; }
.countries__map { align-self: center; }
.countries__body { display: flex; flex-direction: column; justify-content: center; }
.claim { display: block; font-weight: 700; }
.claim__rest { display: block; font-weight: 300; }
/* Titulares con el claim: "Construimos" en la primera línea y el concepto en la segunda, en tamaño grande. */
.section__title--claim { font-size: clamp(2.5rem, 5vw, 3.75rem); line-height: .96; letter-spacing: -.025em; }
.photo__title--claim { max-width: none; font-size: clamp(2.25rem, 4vw, 3.25rem); line-height: .96; letter-spacing: -.025em; }
.countries__title { font-size: clamp(2.5rem, 4.6vw, 3.5rem); font-weight: 300; letter-spacing: -.02em; }
.countries__map { position: relative; width: 100%; max-width: 460px; margin: 0 auto; }
.countries__map > img { width: 100%; height: auto; }

/* Pines del mapa: cada uno elige su país en las pestañas. */
.pin { position: absolute; z-index: 1; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; padding: 0; border: 0; background: none; cursor: pointer; transition: transform .2s ease; }
.pin__head { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #fff; border: 2px solid var(--red); box-shadow: 0 2px 6px rgba(0,0,0,.18); transition: background .2s, border-color .2s; }
.pin__head img { width: 26px; height: 26px; border-radius: 50%; transform: rotate(45deg); }
.pin__label { position: absolute; top: 50%; left: calc(100% + 6px); transform: translateY(-75%); padding: 6px 12px; border-radius: var(--radius); background: var(--red); color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.18); font-size: var(--f-sm); font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.pin--left .pin__label { left: auto; right: calc(100% + 6px); }
.pin:hover, .pin:focus-visible, .pin.is-active { z-index: 2; transform: translate(-50%, -100%) scale(1.15); }
.pin:hover .pin__label, .pin:focus-visible .pin__label, .pin.is-active .pin__label { opacity: 1; }
.pin.is-active .pin__head { background: var(--red); }
.pin:focus-visible { outline: none; }
.pin:focus-visible .pin__head { outline: 2px solid var(--ink); outline-offset: 3px; }
.tabs__list { display: flex; flex-wrap: wrap; gap: 4px 28px; border-bottom: 1px solid var(--line); margin: 24px 0 28px; }
.tabs__tab { display: inline-grid; padding: 12px 0; border: 0; background: none; font-size: var(--f-md); font-weight: 300; color: #8e9095; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; transition: color .15s; }
/* reserva el ancho de la versión en negrita para que las pestañas no se muevan al cambiar */
.tabs__tab[data-label]::after { content: attr(data-label); height: 0; overflow: hidden; visibility: hidden; font-weight: 700; }
.tabs__tab[aria-selected="true"] { color: #000; font-weight: 700; border-bottom-color: var(--red); }
.tabs__tab:hover { color: var(--ink); }
.tabs__panel + .tabs__panel { margin-top: 32px; }
/* Los textos de los países se apilan en la misma celda: la sección toma el alto del más largo
   y el título y las pestañas no se mueven al cambiar de país. */
.js .tabs { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; flex: 1; }
.js .tabs__list { grid-row: 1; }
.js .tabs__panel { grid-row: 2; grid-column: 1; margin-top: 0; display: flex; flex-direction: column; }
.js .tabs__panel > p:last-child { margin-top: auto; margin-bottom: 0; padding-top: 8px; }
.js .tabs__panel[data-hidden] { visibility: hidden; }

/* ---------- Marcas ---------- */
.brands { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.brands__item a { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); color: #fff; text-decoration: none; border-radius: var(--radius); }
.brands__item img { width: 100%; height: 100%; object-fit: cover; opacity: .72; transition: opacity .25s, transform .4s; }
.brands__name { position: absolute; left: 14px; right: 14px; bottom: 12px; font-weight: 700; line-height: 1.2; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.brands__item a:hover img { opacity: .5; transform: scale(1.03); }
.brands__item a:hover { color: #fff; }

/* ---------- Cultura y respaldo ---------- */
.culture__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 72px; align-items: center; }
.culture .section__title { margin-bottom: 20px; }
.values { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: var(--f-md); font-weight: 600; }
.values--light { color: #fff; max-width: 30ch; }
.respaldo__intro { max-width: calc(820px + 2 * var(--gutter)); }
.respaldo__intro .section__title { margin-bottom: 20px; }

/* ---------- Homenajes ---------- */
.tributes__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; }
.tribute { display: grid; grid-template-columns: 160px 1fr; gap: 24px; margin: 0; align-items: start; }
.tribute img { width: 160px; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1); border-radius: var(--radius); }
.tribute__name { font-size: var(--f-md); font-weight: 700; margin: 0; }
.tribute__years { color: var(--muted); font-weight: 600; font-size: var(--f-sm); }
.tribute figcaption p:last-child { font-style: italic; }

/* ---------- Tarjetas ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
.cards--four { grid-template-columns: repeat(4, 1fr); gap: 32px 24px; }
.pcard, .ncard { display: flex; flex-direction: column; min-width: 0; }
.pcard[hidden] { display: none; }
.pcard__media, .ncard__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); border-radius: var(--radius); }
.ncard__media { aspect-ratio: 16 / 10; }
.pcard__media img, .ncard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pcard:hover .pcard__media img, .ncard:hover .ncard__media img { transform: scale(1.03); }
.pcard .badge { position: absolute; left: 12px; top: 12px; }
.pcard__body, .ncard__body { padding-top: 16px; }
/* Logo del proyecto montado sobre el borde de la foto: mitad arriba, mitad abajo, con un contorno blanco. */
.pcard__top { position: relative; }
/* Caja cuadrada; toma el color de fondo del propio logo (lo detecta main.js) o queda blanca si el logo es transparente. */
.pcard__logo { position: absolute; left: 16px; bottom: 0; z-index: 1; transform: translateY(50%); display: grid; place-items: center; width: 88px; height: 88px; padding: 10px; overflow: hidden; background: #fff; border-radius: var(--radius); box-shadow: 0 4px 14px rgba(0, 0, 0, .14); }
.pcard__logo img { width: 100%; height: 100%; object-fit: contain; }
.pcard--logo .pcard__body { padding-top: 58px; }
.pcard__title, .ncard__title { font-size: var(--f-md); margin: 0 0 4px; }
.pcard__title a, .ncard__title a { text-decoration: none; }
.pcard__place { margin: 0; color: var(--muted); font-weight: 500; }
.pcard__address { display: flex; gap: 6px; align-items: flex-start; margin: 8px 0 0; font-size: var(--f-sm); color: var(--muted); }
.pcard__address .icon { margin-top: 2px; color: var(--red); }
.ncard__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 8px; font-size: var(--f-sm); color: var(--muted); }
.ncard__source { font-weight: 700; color: var(--red); }
.ncard__lead { margin: 8px 0 0; color: var(--muted); font-size: .9375rem; line-height: 1.55; }
.ncard__noimg { display: block; width: 100%; height: 100%; background: var(--soft); }

/* ---------- Filtros ---------- */
.filters { display: grid; gap: 16px; margin-bottom: 20px; }
.filters__group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.filters__label { min-width: 64px; font-size: var(--f-sm); font-weight: 700; color: var(--muted); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .9375rem; font-weight: 600; text-decoration: none; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip__count { font-size: var(--f-sm); font-weight: 500; opacity: .65; }
.pgrid__count { margin: 0 0 28px; font-size: var(--f-sm); color: var(--muted); font-weight: 600; }
.pgrid__empty { font-size: var(--f-md); }

/* ---------- Encabezados de página ---------- */
.page-head { padding: calc(var(--space) * .7) 0 calc(var(--space) * .45); border-bottom: 1px solid var(--line); }
.page-head__title { font-size: clamp(var(--f-2xl), 6vw, var(--f-4xl)); letter-spacing: -.025em; margin: 0; }
.page-head__intro { margin: 18px 0 0; max-width: 62ch; font-size: var(--f-md); color: var(--muted); line-height: 1.5; }
.page-head--image { position: relative; color: #fff; border: 0; background: var(--ink) var(--band-img) center / cover no-repeat; padding: calc(var(--space) * 1.4) 0 calc(var(--space) * .7); }
.page-head--image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(28,28,30,.85), rgba(28,28,30,.35)); }
.page-head--image .wrap { position: relative; }
.page-head--image .page-head__intro { color: rgba(255,255,255,.9); }

.country-head { position: relative; color: #fff; background: var(--ink) var(--band-img) center / cover no-repeat; }
.country-head::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(28,28,30,.8), rgba(28,28,30,.2)); }
.country-head__inner { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 0; min-height: clamp(320px, 50vh, 480px); padding-top: 48px; padding-bottom: 48px; }
.country-head__shape { display: block; width: auto; max-width: 100%; height: clamp(56px, 9vw, 110px); margin-top: 24px; object-fit: contain; object-position: left center; }
.country-head__title { max-width: 100%; font-size: clamp(var(--f-3xl), 9vw, 6rem); letter-spacing: -.035em; margin: 0; line-height: 1.05; overflow-wrap: anywhere; }
.country-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 72px; align-items: start; }
.country-intro .prose:only-child { grid-column: 1 / -1; }

.brand-head { background: var(--brand); color: #fff; padding: calc(var(--space) * .8) 0; }
.brand-head__title { margin: 0; }
.brand-head__title img { height: clamp(56px, 9vw, 90px); width: auto; }

/* ---------- Ficha de proyecto ---------- */
.project { padding-top: 32px; }
.project__head { padding-bottom: 32px; }
.project__id { display: flex; gap: 28px; align-items: center; }
.project__id > div { min-width: 0; }
.project__logo { width: auto; max-width: 180px; height: auto; max-height: 120px; object-fit: contain; flex: none; }
.project__title { font-size: clamp(var(--f-2xl), 5vw, var(--f-3xl)); letter-spacing: -.025em; margin-bottom: 6px; }
.project__place { font-size: var(--f-md); color: var(--muted); margin-bottom: 0; }
.project__tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin: 0 0 0 auto; max-width: 40%; }
.project__tags .badge--terminada { border: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; margin: 0 0 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts__item { padding: 18px 20px 18px 0; }
.facts__item + .facts__item { padding-left: 20px; border-left: 1px solid var(--line); }
.facts dt { margin: 0 0 4px; font-size: var(--f-sm); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-size: var(--f-md); font-weight: 600; line-height: 1.3; color: var(--ink); }
.amenities { margin-top: 36px; }
.amenities__title { font-size: var(--f-lg); margin-bottom: 14px; }
.amenities__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 24px; }
.amenities__list li { position: relative; padding-left: 18px; line-height: 1.4; }
.amenities__list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.note__original { margin: 24px 0 0; font-weight: 600; }
.note__original a { color: var(--red); }
.project__contact { background: var(--soft); padding: 24px; border-radius: var(--radius); }
.contact-list { list-style: none; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .icon { color: var(--red); margin-top: 3px; }
.contact-list__label { display: block; font-size: var(--f-sm); font-weight: 600; color: var(--muted); }
.contact-list a { font-weight: 600; text-decoration: none; }
.project__actions { display: grid; gap: 10px; margin-top: 22px; }
.project__gallery { padding-bottom: 16px; }
.project__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 40px 72px; padding-top: 40px; padding-bottom: var(--space); align-items: start; }
.project__contact { position: sticky; top: calc(var(--header-h) + 20px); }
.project__main .share { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.project__desc { font-size: 1.0625rem; }

.slider { position: relative; }
.slider__track { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius); }
.slider__track::-webkit-scrollbar { display: none; }
.ag-gallery.is-slider { display: flex; gap: 12px; }
.ag-gallery.is-slider .ag-gallery__item { flex: 0 0 auto; width: min(86%, 980px); aspect-ratio: 16 / 9; scroll-snap-align: start; }
.ag-gallery.is-slider .ag-gallery__item:only-child { width: 100%; }
.ag-gallery.is-slider img { width: 100%; height: 100%; object-fit: cover; }
.slider__btn { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.94); cursor: pointer; }
.slider__btn .icon { width: 26px; height: 26px; }
.slider__btn:hover { background: #fff; color: var(--red); }
.slider__btn[disabled] { opacity: 0; pointer-events: none; }
.slider__prev { left: 16px; } .slider__next { right: 16px; }
.slider__hint { margin: 10px 0 0; font-size: var(--f-sm); color: var(--muted); }

/* Galerías dentro de notas y páginas */
.ag-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin: 1.5em 0; }
.ag-gallery__item { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); border-radius: var(--radius); cursor: zoom-in; }
.ag-gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.prose .ag-gallery { max-width: none; }

/* Video liviano */
.ag-video { position: relative; aspect-ratio: 16 / 9; background: var(--ink) center / cover no-repeat; border-radius: var(--radius); overflow: hidden; margin: 1.5em 0; }
.culture__video .ag-video, .country-intro__video .ag-video { margin: 0; }
.ag-video::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.25); }
.ag-video__play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border: 0; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; cursor: pointer; transition: transform .15s; }
.ag-video__play .icon { width: 34px; height: 34px; margin-left: 4px; }
.ag-video__play:hover { transform: scale(1.06); }
.ag-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Compartir */
.share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.share__label { font-size: var(--f-sm); font-weight: 700; color: var(--muted); margin-right: 4px; }
.share__btn { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: #fff; text-decoration: none; cursor: pointer; }
.share__btn:hover { border-color: var(--red); color: var(--red); }
.share__btn.is-done { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Nota de prensa ---------- */
.note-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 48px 80px; align-items: start; padding-top: 32px; padding-bottom: var(--space); }
.note { min-width: 0; max-width: 760px; }
/* Notas relacionadas: columna derecha que acompaña al hacer scroll. */
.note-aside { position: sticky; top: calc(var(--header-h) + 24px); padding-top: 44px; }
.note-aside__title { font-size: var(--f-md); margin: 0 0 18px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.note-aside__list { list-style: none; display: grid; gap: 18px; margin-bottom: 24px; }
.mini { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: start; }
.mini__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--line); }
.mini__media img { width: 100%; height: 100%; object-fit: cover; }
.mini__meta { display: flex; flex-wrap: wrap; gap: 2px 10px; margin: 0 0 4px; font-size: .75rem; color: var(--muted); }
.mini__source { font-weight: 700; color: var(--red); }
.mini__title { margin: 0; font-size: .9375rem; line-height: 1.3; font-weight: 600; letter-spacing: 0; }
.mini__title a { text-decoration: none; }
.note__head { margin-bottom: 32px; }
.note__meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: var(--f-sm); color: var(--muted); font-weight: 600; margin-bottom: 16px; }
.note__source { color: var(--red); font-weight: 700; }
.note__title { font-size: clamp(var(--f-xl), 4.5vw, var(--f-3xl)); letter-spacing: -.02em; }
.note__lead { font-size: var(--f-md); line-height: 1.5; color: var(--muted); margin: 0; }
.note__author { margin: 16px 0 0; font-weight: 600; font-size: var(--f-sm); }
.note__figure { margin: 0 0 32px; }
.note__body { max-width: none; font-size: 1.0625rem; margin-bottom: 40px; }
.note__body .dv-figure { margin: 1.5em 0 .5em; }
.note__body .dv-figure + .dv-text p { font-size: var(--f-sm); color: var(--muted); }
.note__body .dv-figure img { width: 100%; border-radius: var(--radius); }

/* ---------- Prensa: búsqueda y paginación ---------- */
.search { display: flex; gap: 8px; max-width: 560px; margin-bottom: 40px; }
.search input { flex: 1; min-width: 0; min-height: 46px; padding: 0 14px; border: 1px solid #c7c7c7; border-radius: var(--radius); font: inherit; }
.search input:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: transparent; }
.search__result { margin: -24px 0 32px; color: var(--muted); }
.pagination, .nav-links { margin-top: 56px; }
.pagination ul, .nav-links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.pagination a, .pagination span, .nav-links a, .nav-links span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.pagination .current, .nav-links .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.quick-links { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Historia ---------- */
.years { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 48px; font-weight: 600; font-size: .9375rem; }
.years a { text-decoration: none; color: var(--muted); }
.years a:hover { color: var(--red); }
.timeline { list-style: none; }
.timeline__year { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.timeline__label { font-size: var(--f-2xl); color: var(--red); margin: 0; line-height: 1; letter-spacing: -.03em; }
.timeline__events { list-style: none; display: grid; gap: 24px; }
.event__when { margin: 0 0 2px; font-size: var(--f-sm); font-weight: 600; color: var(--muted); }
.event__title { font-size: var(--f-md); margin: 0 0 4px; }
.event__text { margin: 0; color: var(--muted); }
.event--tribute .event__text { font-style: italic; }

/* ---------- Comunidad ---------- */
.stories { display: grid; gap: 32px; }
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--story); color: #fff; border-radius: var(--radius); overflow: hidden; }
.story--alt .story__media { order: 2; }
.story__media { display: block; min-height: 320px; }
.story__media img { width: 100%; height: 100%; object-fit: cover; }
.story__body { padding: clamp(28px, 5vw, 56px); }
.story__logos { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.story__logos img { height: 52px; width: auto; max-width: 200px; }
.story__title { font-size: var(--f-xl); }

/* ---------- Contacto y pie ---------- */
.contact-page__mail { display: flex; align-items: center; gap: 10px; font-size: var(--f-lg); font-weight: 700; margin-bottom: 48px; }
.contact-page__mail .icon { color: var(--red); }
.contact-page__mail a { text-decoration: none; }
.contact-page .office__country { color: var(--ink); }
.contact-page .office { color: var(--ink); }

.offices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.office { font-size: .9375rem; }
.office__country { font-size: var(--f-lg); margin: 0 0 8px; }
.office__name { font-weight: 700; margin: 0 0 4px; }
.office__address { font-style: normal; margin-bottom: 14px; line-height: 1.55; }
.office__links { list-style: none; display: grid; gap: 8px; }
.office__links a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; word-break: break-word; }

.site-footer { background: var(--ink); color: #e9e9ea; padding: var(--space) 0 32px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px 32px; padding-bottom: 32px; margin-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.15); }
.site-footer__title { font-size: var(--f-xl); color: #fff; margin: 0; }
.site-footer__mail { font-size: var(--f-base); font-weight: 600; text-decoration: none; }
.site-footer .office { font-size: .8125rem; }
.site-footer .office__country { color: #fff; font-size: var(--f-md); }
.site-footer .office__links .icon { color: #ff6b6b; }
.site-footer__bottom { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.15); font-size: .75rem; color: #b9b9bd; }
.site-footer__bottom img { width: 88px; }
/* En Contacto el pie queda solo con la línea final: los datos ya están en la página. */
.site-footer--min { padding-top: 32px; }
.site-footer--min .site-footer__bottom { margin-top: 0; padding-top: 0; border-top: 0; }
.site-footer__bottom p { margin: 0; flex: 1; }
.site-footer__social { list-style: none; display: flex; gap: 8px; }
.site-footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; }
.site-footer__social a:hover { border-color: #fff; text-decoration: none; }

/* ---------- Visor de imágenes ---------- */
.vbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12,12,14,.96); }
.vbox::backdrop { background: rgba(12,12,14,.96); }
.vbox[open] { display: grid; place-items: center; }
.vbox__frame { width: min(92vw, 1200px, calc((100vh - 140px) * 16 / 9)); aspect-ratio: 16 / 9; background: #000; }
.vbox__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12,12,14,.96); color: #fff; }
.lightbox::backdrop { background: rgba(12,12,14,.96); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__figure { margin: 0; display: grid; justify-items: center; gap: 12px; padding: 64px 72px; }
.lightbox__figure img { max-width: 100%; max-height: calc(100vh - 250px); width: auto; height: auto; object-fit: contain; }
.lightbox__figure figcaption { font-size: var(--f-sm); color: #cfcfd3; text-align: center; }
.lightbox__btn { position: fixed; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; }
.lightbox__btn:hover { background: rgba(255,255,255,.22); }
.lightbox__btn .icon { width: 28px; height: 28px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: fixed; top: 28px; left: 24px; margin: 0; font-size: var(--f-sm); color: #cfcfd3; }
/* Miniaturas de toda la galería: un toque lleva a esa imagen. */
.lightbox__thumbs { position: fixed; left: 0; right: 0; bottom: 16px; display: flex; gap: 8px; justify-content: safe center; overflow-x: auto; padding: 4px 16px; scrollbar-width: thin; }
.lightbox__thumb { flex: 0 0 auto; width: 84px; height: 58px; padding: 0; border: 2px solid transparent; border-radius: var(--radius); background: #222; opacity: .5; cursor: pointer; overflow: hidden; transition: opacity .15s, border-color .15s; }
.lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox__thumb:hover { opacity: .85; }
.lightbox__thumb[aria-current="true"] { opacity: 1; border-color: #fff; }

/* ---------- Contenido convertido desde Divi (páginas genéricas) ---------- */
.dv-section + .dv-section { margin-top: 48px; }
.dv-row { display: grid; gap: 24px 40px; margin-bottom: 24px; }
.dv-cols-2 { grid-template-columns: 1fr 1fr; } .dv-cols-3 { grid-template-columns: repeat(3, 1fr); } .dv-cols-4 { grid-template-columns: repeat(4, 1fr); }
.dv-figure { margin: 0; }
.dv-figure img { border-radius: var(--radius); }

/* ---------- Adaptación a pantallas ---------- */
@media (max-width: 1100px) {
	.brands { grid-template-columns: repeat(4, 1fr); }
	.cards--four { grid-template-columns: repeat(2, 1fr); }
	.offices { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
	.cards { grid-template-columns: repeat(2, 1fr); }
	.countries__grid, .culture__grid, .tributes__grid, .country-intro { grid-template-columns: 1fr; }
	.photo__grid { grid-template-columns: 1fr; min-height: 0; }
	.photo--right .photo__panel { grid-column: 1; }
	.photo--left .photo__panel, .photo--right .photo__panel { padding-left: var(--gutter); padding-right: var(--gutter); }
	.photo--red .photo__grid::before, .photo--slate .photo__grid::before { content: ""; min-height: 220px; }
	.photo--tint .photo__grid { min-height: 380px; }
	.photo--split { display: flex; flex-direction: column; }
	.photo--split .photo__img { position: relative; z-index: 0; width: 100%; height: auto; aspect-ratio: 4 / 3; }
	.photo--split.photo--red .photo__img { aspect-ratio: 4 / 5; }
	.photo--split .photo__grid { min-height: 0; }
	.photo--split .photo__grid::before { content: none; }
	.story-band__year { top: 24px; }
	.story-band::before { background: linear-gradient(0deg, rgba(150, 0, 0, .92) 0%, rgba(175, 0, 0, .75) 45%, rgba(175, 0, 0, .25) 100%); }
	.countries__map { max-width: 320px; }
	.pin__head { width: 34px; height: 34px; }
	.pin__head img { width: 22px; height: 22px; }
	.stats { grid-template-columns: repeat(2, 1fr); }
	.stats { row-gap: 12px; }
	.stats__item:nth-child(3) { border-left: 0; }
	.project__body, .note-layout { grid-template-columns: 1fr; }
	.note-aside { position: static; padding-top: 0; }
	.project__contact { position: static; }
	.story, .story--alt { grid-template-columns: 1fr; }
	.story--alt .story__media { order: 0; }
	.story__media { min-height: 0; aspect-ratio: 16 / 9; }
	.brands { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
	:root { --header-h: 64px; }
	.site-logo img { width: 96px; }
	.cards, .cards--four { grid-template-columns: 1fr; gap: 36px; }
	.brands { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.offices { grid-template-columns: 1fr; }
	.project__id { flex-direction: column; align-items: flex-start; gap: 16px; }
	.project__tags { margin-left: 0; max-width: none; justify-content: flex-start; }
	.facts { grid-template-columns: 1fr 1fr; }
	.facts__item, .facts__item + .facts__item { padding: 14px 12px 14px 0; border-left: 0; }
	.facts__item:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--line); }
	.project__logo { max-width: 150px; max-height: 90px; }
	.timeline__year { grid-template-columns: 1fr; gap: 12px; }
	.tribute { grid-template-columns: 110px 1fr; gap: 16px; }
	.tribute img { width: 110px; }
	.ag-gallery.is-slider .ag-gallery__item { width: 88%; aspect-ratio: 4 / 3; }
	.slider__btn { display: none; }
	.dv-cols-2, .dv-cols-3, .dv-cols-4 { grid-template-columns: 1fr; }
	.lightbox__figure { padding: 64px 8px; }
	.lightbox__prev, .lightbox__next { top: auto; bottom: 96px; transform: none; }
	.lightbox__thumb { width: 64px; height: 46px; }
	.hero { height: 78vh; }
	.search { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
	.site-header, .site-footer, .share, .slider__btn, .filters { display: none !important; }
}
