/* ============ Inmind 2026 ============ */
@font-face { font-family: "Marcellus"; src: url("../fonts/marcellus-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
	--paper: #2b2e31;      /* gris oscuro de fondo */
	--stone: #33373b;      /* secciones alternas */
	--stone-2: #3c4045;
	--slate: #1f2225;      /* pizarra: bandas más oscuras */
	--deep: #191b1d;       /* pie */
	--ink: #ecebe7;        /* texto principal */
	--granite: #b5b2ac;    /* texto secundario */
	--bronze: #bc9d78;     /* bronce del logotipo, aclarado para fondo oscuro */
	--bronze-deep: #86694a;/* bronce para fondos con texto blanco */
	--bronze-light: #d6c2a2;
	--line: rgba(255, 255, 255, .14);
	--line-light: rgba(255, 255, 255, .22);

	--serif: "Marcellus", "Times New Roman", serif;
	--sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

	--wrap: 1320px;
	--gutter: clamp(20px, 5vw, 56px);
	--space: clamp(72px, 10vw, 152px);
	--header-h: 84px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
	margin: 0; background: var(--paper); color: var(--ink);
	font-family: var(--sans); font-weight: 400; font-size: 17px; line-height: 1.65;
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.2; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--slate); color: #fff; padding: 10px 16px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space) 0; }
.section--tight { padding-top: clamp(40px, 6vw, 80px); }
.section--flush { padding-top: 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); flex-wrap: wrap; }
.section__title { font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.1; letter-spacing: .005em; }

/* Enlaces y botones */
.link { display: inline-block; font-weight: 500; font-size: .95rem; letter-spacing: .02em; padding-bottom: 3px; border-bottom: 1px solid var(--bronze); transition: color .25s var(--ease), border-color .25s var(--ease); }
.link:hover { color: var(--bronze); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px; background: var(--bronze-deep); color: #fff; font-weight: 500; font-size: .95rem; letter-spacing: .03em; border: 1px solid var(--bronze-deep); transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.btn:hover { background: var(--bronze-light); border-color: var(--bronze-light); color: var(--deep); }
.btn--light { background: #fff; color: #1f2225; border-color: #fff; }
.btn--light:hover { background: var(--bronze-light); color: var(--deep); border-color: var(--bronze-light); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: #fff; color: #1f2225; border-color: #fff; }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--deep); }

/* ============ Cabecera ============ */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); transition: background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease); }
.site-header__inner { max-width: calc(var(--wrap) + 160px); margin: 0 auto; padding: 0 var(--gutter); height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.has-hero .site-header { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; color: #fff; }
.has-hero .site-header.is-solid, .menu-open .site-header { background: var(--paper); border-color: var(--line); color: var(--ink); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.brand { display: inline-flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--serif); font-size: 1.75rem; letter-spacing: .38em; text-transform: uppercase; color: var(--bronze); margin-right: -.38em; }
.has-hero .site-header:not(.is-solid) .brand__name { color: #fff; }
.menu-open .site-header .brand__name, .has-hero.menu-open .site-header .brand__name { color: var(--bronze); }
.brand__tag { margin-top: 7px; font-size: .68rem; letter-spacing: .14em; color: currentColor; opacity: .7; }
.brand--light .brand__name { color: var(--bronze-light); }

.nav { display: none; }
.nav__list { display: flex; gap: clamp(16px, 1.9vw, 34px); }
.nav__item { position: relative; }
.nav__link { display: block; padding: 30px 0; font-size: .95rem; font-weight: 500; letter-spacing: .02em; position: relative; }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 24px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__item:hover > .nav__link::after, .nav__link:focus-visible::after { transform: scaleX(1); }
.nav__sub { position: absolute; top: 100%; left: -24px; min-width: 260px; background: var(--stone); color: var(--ink); padding: 14px 0; border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; }
.nav__item:hover > .nav__sub, .nav__item:focus-within > .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { display: block; padding: 9px 24px; font-size: .93rem; }
.nav__sub a:hover { color: var(--bronze); }
@media (min-width: 1140px) { .nav { display: block; } .menu-toggle { display: none !important; } }

.menu-toggle { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: .9rem; font-weight: 500; letter-spacing: .04em; }
.menu-toggle__bars { position: relative; width: 26px; height: 10px; }
.menu-toggle__bars span { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-toggle__bars span:first-child { top: 0; } .menu-toggle__bars span:last-child { top: 8px; }
.menu-open .menu-toggle__bars span:first-child { top: 4px; transform: rotate(45deg); }
.menu-open .menu-toggle__bars span:last-child { top: 4px; transform: rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; z-index: 40; background: var(--paper); padding: calc(var(--header-h) + 32px) var(--gutter) 40px; overflow-y: auto; }
.admin-bar .mobile-menu { padding-top: calc(var(--header-h) + 78px); }
.mobile-menu[hidden] { display: none; }
.mobile-menu__link { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1.2; padding: 10px 0; }
.mobile-menu__sub { padding: 2px 0 14px; }
.mobile-menu__sub a { display: block; padding: 7px 0; color: var(--granite); }
.mobile-menu__contact { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--granite); line-height: 2; }

/* ============ Portada: hero ============ */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; color: #fff; overflow: hidden; background: var(--slate); }
.hero__slides, .hero__slide { position: absolute; inset: 0; }
.hero__slide { opacity: 0; transition: opacity 1.6s var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,24,27,.55) 0%, rgba(20,24,27,.25) 45%, rgba(20,24,27,0) 70%), linear-gradient(180deg, rgba(20,24,27,.45) 0%, rgba(20,24,27,0) 24%, rgba(20,24,27,0) 40%, rgba(20,24,27,.7) 100%); pointer-events: none; }
.hero__content { position: absolute; left: 0; right: 0; bottom: clamp(48px, 9vh, 104px); z-index: 2; }
.hero__title { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.04; max-width: 12em; text-shadow: 0 1px 24px rgba(0,0,0,.25); letter-spacing: -.005em; text-wrap: balance; }
.hero__lead { margin: 24px 0 0; max-width: 34em; min-height: 3.3em; font-size: clamp(1rem, 1.3vw, 1.15rem); opacity: .92; transition: opacity .45s var(--ease); }
.hero__lead.is-changing { opacity: 0; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 32px 0 0; }

/* Placa del portal: proyecto en pantalla */
.plaque { position: absolute; z-index: 3; right: var(--gutter); bottom: clamp(48px, 9vh, 104px); display: none; flex-direction: column; gap: 4px; min-width: 240px; padding: 18px 22px; border: 1px solid var(--line-light); background: rgba(31,36,39,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .3s var(--ease); }
.plaque:hover { background: rgba(156,129,96,.75); }
.plaque__title { font-family: var(--serif); font-size: 1.35rem; }
.plaque__meta { font-size: .88rem; opacity: .85; }
@media (min-width: 1024px) { .plaque { display: flex; } .hero__content { padding-right: 340px; } }

/* ============ Introducción ============ */
.intro__grid { display: grid; gap: clamp(32px, 6vw, 96px); align-items: start; }
.intro__statement { font-family: var(--serif); font-size: clamp(1.9rem, 3.6vw, 3.2rem); line-height: 1.15; margin: 0; text-wrap: balance; }
.intro__text { max-width: 36em; color: var(--granite); font-size: 1.05rem; }
.intro__text p:last-child { margin-bottom: 0; }
@media (min-width: 900px) { .intro__grid { grid-template-columns: 1.15fr 1fr; } }

/* ============ Tarjetas de proyecto ============ */
.card__link { display: block; }
.card__media { overflow: hidden; background: var(--stone); aspect-ratio: 4 / 3; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card__link:hover .card__media img { transform: scale(1.035); }
.card__title { margin-top: 18px; font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; }
.card__meta { margin: 6px 0 0; color: var(--granite); font-size: .93rem; display: flex; align-items: center; gap: 10px; }
.card__meta .sep { width: 18px; height: 1px; background: var(--bronze); display: inline-block; }

.projects-home__grid { display: grid; gap: clamp(36px, 4vw, 56px) clamp(20px, 3vw, 40px); }
@media (min-width: 700px) { .projects-home__grid { grid-template-columns: 1fr 1fr; } .card--feature { grid-column: 1 / -1; } .card--feature .card__media { aspect-ratio: 16 / 8; } }
@media (min-width: 1100px) {
	.projects-home__grid { grid-template-columns: repeat(4, 1fr); }
	.card--feature { grid-column: 1 / 3; grid-row: 1 / 3; }
	.card--feature .card__link { display: flex; flex-direction: column; height: 100%; }
	.card--feature .card__media { aspect-ratio: auto; flex: 1 1 auto; min-height: 420px; }
	.card--feature .card__title { font-size: 2rem; }
}

/* ============ Servicios (portada) ============ */
.services-home { background: var(--stone); }
.services-home__grid { display: grid; gap: 40px; }
.services-home__intro > p { color: var(--granite); max-width: 30em; margin-top: 20px; }
.services-home__media { display: none; position: relative; aspect-ratio: 4 / 5; margin-top: 40px; overflow: hidden; background: var(--stone-2); }
.services-home__img { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease); }
.services-home__img.is-active { opacity: 1; }
.services-home__img img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1000px) {
	.services-home__grid { grid-template-columns: 5fr 7fr; gap: clamp(48px, 7vw, 120px); align-items: start; }
	.services-home__intro { position: sticky; top: calc(var(--header-h) + 32px); }
	.services-home__media { display: block; max-width: 420px; }
}

.service-list { border-top: 1px solid var(--line); }
.service-list li { border-bottom: 1px solid var(--line); }
.service-list__row { display: grid; gap: 6px; padding: clamp(22px, 3vw, 34px) 0; transition: padding .35s var(--ease), color .25s var(--ease); }
.service-list__title { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.15; }
.service-list__text { color: var(--granite); max-width: 34em; }
.service-list__row:hover .service-list__title { color: var(--bronze); }
@media (hover: hover) and (min-width: 1000px) { .service-list__row:hover { padding-left: 14px; } }
.service-list--compact .service-list__title { font-size: clamp(1.4rem, 2vw, 1.8rem); }

/* ============ Tipos de obra ============ */
.types__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; }
@media (min-width: 640px) { .types__grid { gap: 40px 24px; } }
@media (min-width: 1100px) { .types__grid { grid-template-columns: repeat(4, 1fr); } }
.type__media { aspect-ratio: 3 / 4; overflow: hidden; background: var(--stone); }
.type__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.type:hover .type__media img { transform: scale(1.04); }
.type__title { margin-top: 14px; font-family: var(--serif); font-size: clamp(1.15rem, 2.4vw, 1.5rem); line-height: 1.2; }
.type__text { margin: 6px 0 0; color: var(--granite); font-size: .95rem; line-height: 1.5; }
@media (max-width: 639px) {
	.type__title { font-size: 1.08rem; overflow-wrap: anywhere; hyphens: auto; }
	.type__text { font-size: .86rem; }
	.services-home__grid { gap: 24px; }
	.index__list--flat .index__item:nth-child(n+11) { display: none; }
	.index__addr { font-size: 1.15rem; }
}
.types--alt { background: var(--stone); }

/* ============ Índice de direcciones (elemento distintivo) ============ */
.index { background: var(--slate); color: #fff; }
.index__head { display: grid; gap: 16px; margin-bottom: clamp(40px, 5vw, 72px); max-width: 52em; }
.index__title { font-family: var(--serif); font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.08; text-wrap: balance; }
.index__lead { margin: 0; color: rgba(255,255,255,.7); }
.index__list { columns: 1; column-gap: clamp(24px, 4vw, 64px); }
@media (min-width: 640px) { .index__list { columns: 2; } }
@media (min-width: 1000px) { .index__list--flat { columns: 3; } }
.index__item { break-inside: avoid; display: flex; flex-direction: column; padding: 14px 0 13px; border-top: 1px solid var(--line-light); }
.index__addr { font-family: var(--serif); font-size: 1.25rem; line-height: 1.25; }
.index__place { margin-top: 2px; font-size: .85rem; color: var(--bronze-light); }
.index__more { margin: 48px 0 0; }
.index .link { border-color: var(--bronze-light); }
.index .link:hover { color: var(--bronze-light); }
.index__group + .index__group { margin-top: clamp(56px, 7vw, 96px); }
.index__group-title { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2rem); padding-bottom: 20px; margin-bottom: 8px; border-bottom: 1px solid var(--bronze-light); }
.index__cats { display: grid; gap: 8px 48px; }
@media (min-width: 1000px) { .index__cats { grid-template-columns: 1fr 1fr; } .index__cat .index__list { columns: 1; } }
.index__cat-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 0; border-bottom: 1px solid var(--line-light); font-size: 1rem; font-weight: 500; letter-spacing: .02em; color: var(--bronze-light); cursor: pointer; list-style: none; }
.index__cat-title::-webkit-details-marker { display: none; }
.index__count { display: inline-flex; align-items: center; gap: 12px; font-weight: 400; color: rgba(255,255,255,.6); }
.index__count::after { content: ""; width: 9px; height: 9px; border-right: 1.5px solid var(--bronze-light); border-bottom: 1.5px solid var(--bronze-light); transform: translateY(-2px) rotate(45deg); transition: transform .25s var(--ease); }
.index__cat[open] .index__count::after { transform: translateY(2px) rotate(-135deg); }
.index__cat[open] > .index__list { padding-bottom: 20px; }
.index__cat > .index__list .index__item:first-child { border-top: 0; }

/* ============ Prensa ============ */
.press__list { border-top: 1px solid var(--line); }
.press__row { display: grid; gap: 4px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.press__date { color: var(--granite); font-size: .9rem; }
.press__title { font-family: var(--serif); font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.25; }
.press__row:hover .press__title { color: var(--bronze); }
@media (min-width: 800px) { .press__row { grid-template-columns: 220px 1fr; gap: 32px; align-items: baseline; } }

/* ============ Llamada a la acción ============ */
.cta { background: var(--bronze-deep); color: #fff; padding: clamp(64px, 8vw, 112px) 0; }
.cta__grid { display: grid; gap: 32px; align-items: end; }
.cta__title { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.08; text-wrap: balance; }
.cta__text { margin: 18px 0 0; max-width: 32em; opacity: .9; }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.cta__phone { font-family: var(--serif); font-size: 1.5rem; border-bottom: 1px solid rgba(255,255,255,.5); }
.cta .btn--light:hover { background: var(--deep); border-color: var(--deep); color: #fff; }
@media (min-width: 900px) { .cta__grid { grid-template-columns: 1.4fr 1fr; } .cta__actions { justify-content: flex-end; } }

/* ============ Pie ============ */
.site-footer { background: var(--deep); color: rgba(255,255,255,.78); font-size: .95rem; padding-top: clamp(64px, 8vw, 104px); }
.site-footer__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; padding-bottom: 56px; }
.site-footer__brand, .site-footer__col:nth-child(2) { grid-column: 1 / -1; }
@media (min-width: 700px) { .site-footer__col:nth-child(2) { grid-column: auto; } }
@media (min-width: 1100px) { .site-footer__grid { grid-template-columns: 1.4fr 1.1fr 1fr 1fr .8fr; } }
.site-footer__address { font-style: normal; margin-top: 28px; line-height: 1.8; }
.site-footer__title { font-size: .85rem; font-weight: 500; letter-spacing: .04em; color: var(--bronze-light); margin-bottom: 16px; }
.site-footer li { padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: rgba(255,255,255,.55); }
.site-footer__legal p { margin: 0; }

/* ============ Cabecera de página interior ============ */
.page-head { padding: clamp(56px, 9vw, 120px) 0 clamp(8px, 2vw, 24px); }
.page-head__title { font-family: var(--serif); font-size: clamp(2.6rem, 7vw, 6rem); line-height: 1; letter-spacing: -.01em; text-wrap: balance; }
.page-head__title--post { font-size: clamp(2.1rem, 4.6vw, 3.8rem); line-height: 1.1; max-width: 18em; }
.page-head__lead { margin: 24px 0 0; max-width: 38em; font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--granite); }
.crumb { margin: 0 0 18px; font-size: .9rem; color: var(--granite); }
.crumb a { border-bottom: 1px solid var(--line); }
.crumb a:hover { color: var(--bronze); border-color: var(--bronze); }
.crumb--light { color: rgba(255,255,255,.85); }
.crumb--light a { border-color: rgba(255,255,255,.4); }
.crumb--light a:hover { color: #fff; border-color: #fff; }

/* ============ Proyectos ============ */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(32px, 4vw, 56px); }
.filters__btn { min-height: 42px; padding: 0 18px; border: 1px solid var(--line); font-size: .93rem; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.filters__btn:hover { border-color: var(--ink); }
.filters__btn.is-active { background: var(--bronze-deep); border-color: var(--bronze-deep); color: #fff; }
.projects__grid { display: grid; gap: clamp(40px, 5vw, 64px) clamp(20px, 3vw, 40px); }
@media (min-width: 700px) { .projects__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .projects__grid { grid-template-columns: repeat(3, 1fr); } }
.card.is-hidden { display: none; }
.projects__empty { color: var(--granite); }

/* ============ Ficha de proyecto ============ */
.project-hero { position: relative; height: 92vh; height: 92svh; min-height: 560px; color: #fff; background: var(--slate); overflow: hidden; }
.project-hero--short { height: 72vh; height: 72svh; min-height: 480px; }
.project-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,24,27,.4) 0%, rgba(20,24,27,0) 30%, rgba(20,24,27,0) 50%, rgba(20,24,27,.6) 100%); }
.project-hero__content { position: absolute; left: 0; right: 0; bottom: clamp(40px, 7vh, 88px); z-index: 2; }
.project-hero__title { font-family: var(--serif); font-size: clamp(2.8rem, 8vw, 7rem); line-height: .98; letter-spacing: -.01em; text-wrap: balance; }

.facts { border-bottom: 1px solid var(--line); }
.facts__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; margin: 0; }
.facts__item { padding: 26px 0 24px; border-top: 1px solid var(--line); }
.facts__item:nth-child(-n+2) { border-top: 0; }
.facts dt { font-size: .85rem; color: var(--granite); margin-bottom: 6px; }
.facts dd { margin: 0; font-family: var(--serif); font-size: 1.2rem; line-height: 1.3; padding-right: 8px; overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 639px) { .facts dd { font-size: 1.08rem; } }
@media (min-width: 900px) {
	.facts__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.facts__item:nth-child(-n+4) { border-top: 0; }
	.facts__item:nth-child(n+5) { border-top: 1px solid var(--line); }
}

.gallery-section { padding-top: clamp(24px, 5vw, 72px); }
.gallery { display: grid; gap: clamp(12px, 1.6vw, 24px); grid-template-columns: 1fr; }
.gallery__item { display: block; overflow: hidden; background: var(--stone); cursor: zoom-in; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery__item:hover img { transform: scale(1.025); }
@media (min-width: 800px) {
	.gallery { grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; }
	.gallery__item { aspect-ratio: 4 / 5; }
	.gallery__item.is-wide { grid-column: span 2; aspect-ratio: auto; }
	.gallery--section { grid-template-columns: repeat(2, 1fr); }
	.gallery--section .gallery__item { aspect-ratio: 4 / 3; }
}

.project-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-top: 48px; padding-bottom: var(--space); }
.project-nav__link { display: flex; flex-direction: column; gap: 4px; }
.project-nav__link--next { text-align: right; align-items: flex-end; }
.project-nav__label { font-size: .85rem; color: var(--granite); }
.project-nav__title { font-family: var(--serif); font-size: clamp(1.1rem, 2.2vw, 1.8rem); line-height: 1.2; }
.project-nav__link:hover .project-nav__title { color: var(--bronze); }
.project-nav__all { font-size: .9rem; font-weight: 500; border-bottom: 1px solid var(--bronze); padding-bottom: 2px; }
@media (max-width: 640px) { .project-nav { grid-template-columns: 1fr 1fr; } .project-nav__all { grid-column: 1 / -1; grid-row: 2; justify-self: center; margin-top: 24px; } }

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20,24,27,.96); color: #fff; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(20,24,27,.96); }
.lightbox__img { max-width: calc(100vw - 140px); max-height: calc(100vh - 120px); object-fit: contain; }
.lightbox__close { position: absolute; top: 20px; right: 24px; min-height: 44px; padding: 0 12px; font-size: .95rem; }
.lightbox__nav { position: absolute; top: 50%; width: 56px; height: 56px; margin-top: -28px; }
.lightbox__nav::before { content: ""; position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; border-top: 1.5px solid #fff; border-left: 1.5px solid #fff; }
.lightbox__nav--prev { left: 16px; } .lightbox__nav--prev::before { transform: translate(-30%, -50%) rotate(-45deg); }
.lightbox__nav--next { right: 16px; } .lightbox__nav--next::before { transform: translate(-70%, -50%) rotate(135deg); }
@media (max-width: 640px) { .lightbox__img { max-width: 100vw; } .lightbox__nav { top: auto; bottom: 24px; margin: 0; } }

/* ============ Servicios: alternos ============ */
.split { display: grid; gap: 28px; align-items: center; }
.split + .split { margin-top: clamp(64px, 9vw, 128px); }
.split__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); }
.split__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.split__media:hover img { transform: scale(1.03); }
.split__title { font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.1; margin-bottom: 20px; }
.split__title a:hover { color: var(--bronze); }
.split__body { color: var(--granite); max-width: 32em; }
.split__body .split__title { color: var(--ink); }
@media (min-width: 900px) {
	.split { grid-template-columns: 7fr 5fr; gap: clamp(48px, 7vw, 112px); }
	.split--reverse .split__media { order: 2; }
	.split--reverse { grid-template-columns: 5fr 7fr; }
}

/* ============ Secciones de texto ============ */
.prose-grid { display: grid; gap: 32px; }
.prose-grid__lead { margin: 0; font-family: var(--serif); font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.25; text-wrap: pretty; }
.prose-grid__body { color: var(--granite); font-size: 1.05rem; max-width: 34em; }
@media (min-width: 900px) { .prose-grid { grid-template-columns: 1.3fr 1fr; gap: clamp(48px, 7vw, 112px); } .prose-grid__body { padding-top: 10px; } }
.others { background: var(--stone); }
.others__title { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 28px; }

.prose { max-width: 44em; }
.prose h2, .prose h3 { font-family: var(--serif); margin: 1.6em 0 .6em; line-height: 1.2; }
.prose h2 { font-size: 1.8rem; } .prose h3 { font-size: 1.4rem; }
.prose a { border-bottom: 1px solid var(--bronze); }
.prose ul { list-style: disc; padding-left: 1.2em; margin-bottom: 1em; }
.prose img { margin: 2em 0; }
.post-cover { margin-top: 24px; } .post-cover img { width: 100%; max-height: 72vh; object-fit: cover; }

/* ============ Estudio ============ */
.estudio__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); }
.estudio__media img { width: 100%; height: 100%; object-fit: cover; }
.timeline-section { background: var(--stone); }
.timeline { display: grid; gap: 0; margin-top: 48px; border-top: 1px solid var(--line); counter-reset: none; }
.timeline__item { display: grid; gap: 6px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.timeline__year { font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--bronze); }
.timeline__item p { margin: 0; color: var(--granite); max-width: 30em; }
@media (min-width: 900px) {
	.timeline { grid-template-columns: repeat(4, 1fr); border-top: 0; }
	.timeline__item { border-bottom: 0; border-top: 1px solid var(--bronze); padding: 28px 32px 0 0; }
}
.values__grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .values__grid { grid-template-columns: repeat(3, 1fr); gap: 56px; } }
.value__title { font-family: var(--serif); font-size: 1.7rem; margin-bottom: 12px; }
.value p { color: var(--granite); margin: 0; }
.rsc { padding-top: 0; }
.rsc__grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 900px) { .rsc__grid { grid-template-columns: repeat(3, 1fr); } }
.rsc__item { background: var(--paper); padding: 32px 28px 28px; transition: background .25s var(--ease); }
.rsc__item:hover { background: var(--stone); }
.rsc__title { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 10px; }
.rsc__item p { margin: 0; color: var(--granite); }

/* ============ Contacto ============ */
.contact { display: grid; gap: 56px; }
@media (min-width: 1000px) { .contact { grid-template-columns: 5fr 7fr; gap: clamp(56px, 8vw, 128px); } }
.contact__details { display: grid; gap: 28px; align-content: start; }
.contact__label { font-size: .85rem; font-weight: 500; color: var(--granite); margin-bottom: 4px; }
.contact__block p { margin: 0; font-family: var(--serif); font-size: 1.45rem; line-height: 1.35; }
.contact__block .link { font-family: var(--sans); font-size: .9rem; margin-top: 10px; }
.contact__block a:not(.link):hover { color: var(--bronze); }
.contact__form { background: var(--stone); padding: clamp(28px, 4vw, 56px); }
.contact__form-title { font-family: var(--serif); font-size: 2rem; margin-bottom: 24px; }

/* Contact Form 7 */
.wpcf7 label { display: block; font-size: .9rem; color: var(--granite); margin-bottom: 18px; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="url"], .wpcf7 select, .wpcf7 textarea {
	width: 100%; margin-top: 6px; padding: 14px 0; font: inherit; font-size: 1.05rem; color: var(--ink);
	background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.3); border-radius: 0; transition: border-color .2s var(--ease);
}
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus { outline: none; border-bottom-color: var(--bronze); }
.wpcf7 textarea { min-height: 140px; resize: vertical; }
.wpcf7 label br { display: none; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"] { padding: 10px 0; }
.wpcf7 p { margin: 0 0 18px; }
.wpcf7 input[type="submit"] { min-height: 52px; padding: 0 36px; background: var(--bronze-deep); color: #fff; border: 0; font: inherit; font-weight: 500; letter-spacing: .03em; cursor: pointer; transition: background .25s var(--ease); }
.wpcf7 input[type="submit"]:hover { background: var(--bronze-light); color: var(--deep); }
.wpcf7 input[type="checkbox"] { accent-color: var(--bronze); margin-right: 8px; }
.wpcf7-not-valid-tip { font-size: .85rem; color: #f0a18f; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 12px 16px; border: 1px solid var(--line); font-size: .93rem; }
.wpcf7-spinner { vertical-align: middle; }

/* Páginas antiguas que se muestren tal cual */
.legacy-content { padding-top: var(--header-h); }

/* Fondo oscuro: texto seleccionado y campos */
::selection { background: var(--bronze-deep); color: #fff; }
.wpcf7 ::placeholder { color: rgba(255,255,255,.45); }
.wpcf7 select option { background: var(--stone); color: var(--ink); }
.gallery__item--contain { background: var(--stone); }
.gallery__item--contain img { object-fit: contain; }
