/* DOMANI · Construyendo el Mañana
   Paleta del manual de marca: bosque 30% · marfil 65% · cobre 5% */

:root {
  --bosque: #153E32;
  --bosque-2: #0F2E25;
  --marfil: #F4F1E8;
  --marfil-2: #ECE8DB;
  --salvia: #DFE5DC;
  --cobre: #B78160;
  --cobre-osc: #8F5F41;
  --tinta: #1D2B26;
  --gris: #5C6A64;
  --linea: rgba(21, 62, 50, .16);
  --linea-clara: rgba(244, 241, 232, .22);
  --wrap: 1200px;
  --pad: clamp(20px, 5vw, 56px);
  --radio: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--tinta);
  background: var(--marfil);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--marfil); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--cobre); outline-offset: 3px; }

/* ── Tipografía ── */
h1, h2 { font-weight: 700; letter-spacing: -.02em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(44px, 8vw, 104px); }
h2 { font-size: clamp(32px, 4.6vw, 58px); color: var(--bosque); }
h3 { font-size: 20px; font-weight: 500; line-height: 1.25; color: var(--bosque); }
.eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase;
  color: var(--cobre-osc); margin-bottom: 22px;
}
.eyebrow--light { color: #D9A988; }
.lead { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.45; color: var(--gris); max-width: 34em; }
.fine { font-size: 13px; line-height: 1.45; color: var(--gris); }
.fine--light { color: rgba(244, 241, 232, .65); }
.num { font-size: 13px; font-weight: 500; letter-spacing: .2em; color: var(--cobre); }

/* ── Botones ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-size: 15px; font-weight: 500; letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--ivory { background: var(--marfil); color: var(--bosque); }
.btn--ivory:hover { background: #fff; }
.btn--ghost { border-color: rgba(244, 241, 232, .6); color: var(--marfil); }
.btn--ghost:hover { background: rgba(244, 241, 232, .12); border-color: var(--marfil); }
.btn--copper { background: var(--cobre); color: #fff; }
.btn--copper:hover { background: #C48D6B; }
.btn--forest { background: var(--bosque); color: var(--marfil); }
.btn--forest:hover { background: var(--bosque-2); }
.btn--wide { width: 100%; }

/* ── Cabecera ── */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, box-shadow .3s;
}
.header__in { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: block; position: relative; width: 148px; flex: none; }
.brand img { width: 100%; }
.brand__dark { position: absolute; inset: 0; opacity: 0; }
.brand img { transition: opacity .3s; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.nav a:not(.btn) {
  font-size: 14px; font-weight: 500; letter-spacing: .03em; text-decoration: none;
  color: var(--marfil); padding: 6px 0; position: relative; transition: color .3s;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--cobre); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav__cta { padding: 11px 20px; font-size: 14px; }
.burger { display: none; }

.header.is-solid { background: rgba(244, 241, 232, .94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--linea); }
.header.is-solid .brand__light { opacity: 0; }
.header.is-solid .brand__dark { opacity: 1; }
.header.is-solid .nav a:not(.btn) { color: var(--bosque); }

/* ── Inicio ── */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--marfil); background: var(--bosque); overflow: hidden; isolation: isolate;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; z-index: -2; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(15, 46, 37, .88) 0%, rgba(15, 46, 37, .62) 38%, rgba(15, 46, 37, .08) 72%),
    linear-gradient(0deg, rgba(15, 46, 37, .75) 0%, rgba(15, 46, 37, 0) 38%),
    linear-gradient(180deg, rgba(15, 46, 37, .5) 0%, rgba(15, 46, 37, 0) 22%);
}
.hero__in { padding-top: 140px; padding-bottom: clamp(48px, 8vh, 96px); }
.hero h1 { margin-bottom: 28px; }
.hero__lead { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.45; max-width: 30em; color: rgba(244, 241, 232, .9); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero__strip { display: block; text-decoration: none; border-top: 1px solid var(--linea-clara); background: rgba(15, 46, 37, .55); backdrop-filter: blur(6px); transition: background .3s; }
.hero__strip:hover { background: rgba(15, 46, 37, .8); }
.hero__strip-in { display: flex; align-items: center; gap: clamp(14px, 3vw, 40px); padding-top: 20px; padding-bottom: 20px; font-size: 15px; }
.hero__strip-tag { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: #D9A988; font-weight: 500; }
.hero__strip-name { font-weight: 500; }
.hero__strip-data { color: rgba(244, 241, 232, .75); margin-left: auto; }
.hero__strip-arrow { font-size: 20px; transition: transform .3s var(--ease); }
.hero__strip:hover .hero__strip-arrow { transform: translateX(6px); }

/* ── Curvas (recurso gráfico) ── */
.arc { position: absolute; border: 1.5px solid var(--cobre); border-radius: 50%; pointer-events: none; }
.arc--hero { width: clamp(280px, 38vw, 560px); aspect-ratio: 1; right: calc(-1 * clamp(110px, 14vw, 210px)); top: calc(-1 * clamp(90px, 12vw, 180px)); opacity: .9; z-index: -1; }
.arc--tr { width: 520px; aspect-ratio: 1; right: -220px; top: -260px; opacity: .7; }
.arc--bl { width: 620px; aspect-ratio: 1; left: -330px; bottom: -380px; opacity: .6; }

/* ── Secciones ── */
.section { position: relative; padding: clamp(72px, 11vw, 148px) 0; overflow: hidden; }
.section--forest { background: var(--bosque); color: var(--marfil); }
.section--forest h2, .section--forest h3 { color: var(--marfil); }
.section--forest .lead { color: rgba(244, 241, 232, .78); }
.section--sage { background: var(--salvia); }
.section--ivory2 { background: var(--marfil-2); }
.section__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__head h2 { margin-bottom: 22px; }
.section__head--split { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: end; }
.section__head--split h2 { margin-bottom: 0; }
.grid-2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 7vw, 110px); align-items: start; }

/* ── Esencia ── */
#esencia h2 { margin-bottom: 26px; }
#esencia .lead { margin-bottom: 14px; color: var(--bosque); }
#esencia .lead + p { max-width: 34em; color: var(--gris); }
.firma { display: flex; gap: 22px; align-items: center; margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--linea); max-width: 560px; }
.firma img { width: 76px; flex: none; }
.firma p { font-size: 15px; color: var(--gris); }
.firma strong { color: var(--bosque); font-weight: 500; }
.pmv > div { padding: 28px 0; border-top: 1px solid var(--linea); }
.pmv > div:last-child { border-bottom: 1px solid var(--linea); }
.pmv dt { font-size: 12px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--cobre-osc); margin-bottom: 10px; }
.pmv dd { font-size: clamp(19px, 1.9vw, 23px); line-height: 1.35; color: var(--bosque); }

/* ── Valores ── */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--linea-clara); }
.values li { padding: 30px 28px 6px 0; }
.values li + li { padding-left: 28px; border-left: 1px solid var(--linea-clara); }
.values h3 { font-size: 24px; margin: 46px 0 10px; }
.values p { font-size: 16px; color: rgba(244, 241, 232, .75); }

/* ── Proyectos ── */
.proj { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; padding-top: clamp(36px, 5vw, 60px); border-top: 1px solid var(--linea); }
.proj + .proj { margin-top: clamp(56px, 8vw, 104px); }
.proj--alt { grid-template-columns: 1fr 1.3fr; }
.proj--alt .proj__media { order: 2; }
.proj__media { display: grid; gap: 10px; }
.proj__media figure { overflow: hidden; border-radius: var(--radio); background: var(--bosque); }
.proj__media img, .proj__media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.proj__main { aspect-ratio: 4 / 3; }
.proj__main--video { aspect-ratio: 16 / 9; }
.proj__sub { aspect-ratio: 21 / 9; }
.proj__sub img { object-position: 50% 62%; }
.proj__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.proj__pair figure { aspect-ratio: 16 / 9; }
.proj__media figcaption { margin-top: 2px; }
.plano { display: grid; grid-template-columns: 170px 1fr; gap: 22px; align-items: center; margin-top: 12px; padding: 14px; background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); text-decoration: none; transition: border-color .25s, transform .25s var(--ease); }
.plano:hover { border-color: var(--bosque); transform: translateY(-2px); }
.plano img { width: 100%; height: 190px; object-fit: contain; }
.plano__txt { display: grid; gap: 8px; }
.plano__txt strong { font-size: 20px; font-weight: 700; color: var(--bosque); letter-spacing: -.01em; }
.plano__txt span { font-size: 14px; line-height: 1.45; color: var(--gris); }
.plano__txt em { font-style: normal; font-size: 14px; font-weight: 500; color: var(--cobre-osc); }
@media (max-width: 640px) { .plano { grid-template-columns: 110px 1fr; gap: 14px; } .plano img { height: 140px; } }
.proj__body { position: sticky; top: 104px; }
.proj__body .eyebrow { margin-bottom: 14px; }
.proj__name { font-size: clamp(30px, 3.6vw, 46px); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; }
.proj__tag { font-size: clamp(18px, 1.7vw, 21px); color: var(--gris); margin: 14px 0 28px; }
.proj__note { margin-top: 16px; }
.proj__body .btn { margin-top: 26px; }
figcaption { font-size: 13px; color: var(--gris); margin-top: 10px; letter-spacing: .01em; }
.facts > div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 15px 0; border-top: 1px solid var(--linea); align-items: baseline; }
.facts > div:last-child { border-bottom: 1px solid var(--linea); }
.facts dt { font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--cobre-osc); }
.facts dd { font-size: 18px; font-weight: 500; color: var(--bosque); line-height: 1.3; }

.seg { display: inline-flex; padding: 4px; border: 1px solid var(--linea); border-radius: 999px; margin-bottom: 24px; background: var(--marfil); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--bosque); transition: background .2s, color .2s; }
.seg input:checked + span { background: var(--bosque); color: var(--marfil); }
.seg input:focus-visible + span { outline: 2px solid var(--cobre); outline-offset: 2px; }
.calc__out dt { min-height: 0 !important; }
.calc__out div:not(.calc__total) dd { font-size: clamp(18px, 1.9vw, 24px); }
.maplink { display: inline-block; margin-left: 6px; font-size: 13px; font-weight: 500; color: var(--cobre-osc); text-underline-offset: 3px; white-space: nowrap; }
.maplink:hover { color: var(--bosque); }
.calc__out .calc__txt { font-size: clamp(17px, 1.6vw, 20px); font-weight: 500; white-space: normal; letter-spacing: 0; }

.calc {
  margin-top: clamp(40px, 6vw, 72px); padding: clamp(26px, 4vw, 48px);
  background: #fff; border-radius: var(--radio); border: 1px solid var(--linea);
  display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 4vw, 56px); align-items: center;
}
.calc .eyebrow { margin-bottom: 12px; }
.calc h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; letter-spacing: -.01em; margin-bottom: 20px; }
.calc__label { display: block; font-size: 15px; color: var(--gris); margin-bottom: 12px; }
.calc__label output { font-weight: 700; color: var(--bosque); font-size: 18px; font-variant-numeric: tabular-nums; }
.calc__scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--gris); margin-top: 8px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 0; }
input[type=range]::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(90deg, var(--bosque) var(--fill, 0%), var(--linea) var(--fill, 0%)); border-radius: 2px; }
input[type=range]::-moz-range-track { height: 3px; background: var(--linea); border-radius: 2px; }
input[type=range]::-moz-range-progress { height: 3px; background: var(--bosque); border-radius: 2px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10.5px; border-radius: 50%; background: var(--bosque); border: 4px solid #fff; box-shadow: 0 0 0 1.5px var(--bosque); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--bosque); border: 4px solid #fff; box-shadow: 0 0 0 1.5px var(--bosque); }
.calc__out { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 0; }
.calc__out > div { padding: 4px 0 4px 22px; border-left: 1px solid var(--linea); }
.calc__out dt { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--cobre-osc); margin-bottom: 10px; min-height: 2.6em; }
.calc__out dd { font-size: clamp(20px, 2.3vw, 30px); font-weight: 700; letter-spacing: -.01em; color: var(--bosque); font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 24px; border-top: 1px solid var(--linea); }
.calc__foot .fine { max-width: 46em; }
.calc__foot .btn { flex: none; }

.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); margin-top: clamp(48px, 7vw, 88px); }
.audience article { padding-top: 22px; border-top: 2px solid var(--bosque); }
.audience h3 { margin-bottom: 8px; }
.audience p { color: var(--gris); font-size: 16px; }

/* ── Vivienda ── */
.house { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.shot { position: relative; padding: 0; border: 0; background: var(--bosque); cursor: zoom-in; overflow: hidden; border-radius: var(--radio); aspect-ratio: 4 / 3; }
.shot--main { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.shot--wide { grid-column: span 2; aspect-ratio: auto; }
.shot--wide img { position: absolute; inset: 0; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .3s; }
.shot:hover img { transform: scale(1.04); }
.tag { position: absolute; left: 14px; bottom: 14px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; color: var(--marfil); background: rgba(15, 46, 37, .78); padding: 7px 12px; border-radius: 999px; backdrop-filter: blur(4px); }

.house-info { display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: clamp(24px, 4vw, 56px); margin-top: clamp(36px, 5vw, 64px); align-items: start; }
.specs li { display: flex; flex-direction: column; padding: 16px 0; border-top: 1px solid var(--linea); }
.specs li:last-child { border-bottom: 1px solid var(--linea); }
.specs strong { font-size: 26px; font-weight: 700; color: var(--bosque); letter-spacing: -.01em; line-height: 1.15; }
.specs span { font-size: 14px; color: var(--gris); }
.plan { background: var(--marfil); padding: clamp(16px, 2.5vw, 30px); border-radius: var(--radio); }
.plan img { width: 100%; }
.plan figcaption { margin-top: 14px; }
.materials h3 { font-size: 12px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--cobre-osc); margin-bottom: 14px; }
.materials li { padding: 10px 0; border-top: 1px solid var(--linea); font-size: 16px; color: var(--bosque); }
.materials .fine { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--linea); }

/* ── Territorio ── */
.land { display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: auto auto; gap: 10px; }
.land figure { position: relative; overflow: hidden; border-radius: var(--radio); background: var(--bosque); }
.land img { width: 100%; height: 100%; object-fit: cover; }
.land figcaption { position: absolute; left: 14px; bottom: 14px; margin: 0; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; color: var(--marfil); background: rgba(15, 46, 37, .78); padding: 7px 12px; border-radius: 999px; }
.land__a { grid-row: span 2; min-height: 520px; }
.land__b { aspect-ratio: 4 / 3; }
.land__q { position: relative; overflow: hidden; background: var(--bosque); color: var(--marfil); border-radius: var(--radio); padding: clamp(26px, 3vw, 40px); display: flex; align-items: flex-end; min-height: 220px; }
.land__q p { font-size: clamp(26px, 3vw, 38px); font-weight: 700; line-height: 1.05; letter-spacing: .01em; text-transform: uppercase; }
.arc--q { width: 260px; aspect-ratio: 1; right: -110px; top: -110px; }

/* ── Proceso ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 56px); counter-reset: s; }
.steps li { padding-top: 26px; border-top: 1px solid var(--bosque); }
.steps h3 { font-size: 24px; font-weight: 700; letter-spacing: -.01em; margin: 40px 0 12px; }
.steps p { color: var(--gris); }

/* ── Contacto ── */
.contact h2 { margin-bottom: 22px; }
.contact__list { margin-top: 44px; }
.contact__list li { padding: 16px 0; border-top: 1px solid var(--linea-clara); font-size: 17px; display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: baseline; }
.contact__list li:last-child { border-bottom: 1px solid var(--linea-clara); }
.contact__list span { font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: #D9A988; }
.contact__list a { text-decoration-color: var(--cobre); text-underline-offset: 4px; }
.form { position: relative; background: var(--marfil); color: var(--tinta); border-radius: var(--radio); padding: clamp(24px, 3.5vw, 44px); display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--bosque); }
.field .opt { letter-spacing: 0; text-transform: none; color: var(--gris); font-weight: 400; font-size: 13px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--tinta);
  background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); padding: 13px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 88px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23153E32' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--bosque); box-shadow: 0 0 0 3px rgba(21, 62, 50, .14); }
.field.is-error input { border-color: #A6432F; }
.form .fine--light { color: var(--gris); text-align: center; }

/* ── Pie ── */
.footer { background: var(--bosque-2); color: rgba(244, 241, 232, .72); padding: clamp(48px, 7vw, 84px) 0 40px; }
.footer__in { display: grid; grid-template-columns: 1fr auto; gap: 36px 60px; align-items: start; }
.footer img { width: 230px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: flex-end; padding-top: 10px; }
.footer nav a { font-size: 14px; text-decoration: none; color: var(--marfil); }
.footer nav a:hover { color: #D9A988; }
.footer__legal { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid var(--linea-clara); font-size: 13px; line-height: 1.5; display: grid; gap: 6px; }
.footer__legal p:first-child { color: var(--marfil); font-weight: 500; }

/* ── Visor ── */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
.lightbox::backdrop { background: rgba(10, 30, 24, .94); }
.lightbox figure { grid-column: 2; display: grid; justify-items: center; gap: 14px; padding: 20px 0; }
.lightbox img { max-width: 100%; max-height: 80vh; border-radius: var(--radio); }
.lightbox figcaption { color: var(--marfil); font-size: 15px; text-align: center; max-width: 40em; margin: 0; }
.lightbox button { background: none; border: 0; color: var(--marfil); cursor: pointer; font-size: 44px; line-height: 1; width: 64px; height: 64px; font-weight: 300; }
.lightbox button:hover { color: #D9A988; }
.lightbox__close { position: absolute; top: 10px; right: 10px; z-index: 2; }
.lightbox__nav--prev { grid-column: 1; }
.lightbox__nav--next { grid-column: 3; }

/* ── Aparición al hacer scroll ── */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.values .reveal:nth-child(2), .steps .reveal:nth-child(2), .audience .reveal:nth-child(2) { transition-delay: .08s; }
.values .reveal:nth-child(3), .steps .reveal:nth-child(3), .audience .reveal:nth-child(3) { transition-delay: .16s; }
.values .reveal:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .shot img { transition: none; }
}

/* ── Tablet ── */
@media (max-width: 980px) {
  .grid-2, .proj, .calc, .section__head--split { grid-template-columns: 1fr; }
  .proj--alt .proj__media { order: 0; }
  .proj__body { position: static; }
  .values { grid-template-columns: 1fr 1fr; }
  .values li, .values li + li { padding: 28px 24px 28px 0; border-left: 0; border-bottom: 1px solid var(--linea-clara); }
  .values li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--linea-clara); }
  .values h3 { margin-top: 26px; }
  .house { grid-template-columns: repeat(2, 1fr); }
  .shot--wide { aspect-ratio: 2 / 1; order: 1; }
  .house-info { grid-template-columns: 1fr 1fr; }
  .plan { grid-column: 1 / -1; grid-row: 1; }
  .land { grid-template-columns: 1fr 1fr; }
  .land__a { grid-column: 1 / -1; grid-row: auto; min-height: 0; aspect-ratio: 4 / 3; }

  .burger { display: grid; gap: 7px; width: 44px; height: 44px; place-content: center; background: none; border: 0; cursor: pointer; z-index: 60; }
  .burger span { display: block; width: 24px; height: 1.5px; background: var(--marfil); transition: transform .3s var(--ease), background .3s; }
  .header.is-solid .burger span { background: var(--bosque); }
  .nav-open .burger span { background: var(--marfil) !important; }
  .nav-open .burger span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .nav-open .burger span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 0; background: var(--bosque); flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 6px; padding: 80px var(--pad) 40px; visibility: hidden; opacity: 0; transition: opacity .3s, visibility .3s;
  }
  .nav-open .nav { visibility: visible; opacity: 1; }
  .nav a:not(.btn), .header.is-solid .nav a:not(.btn) { color: var(--marfil); font-size: 30px; font-weight: 700; letter-spacing: -.01em; padding: 8px 0; }
  .nav__cta { margin-top: 26px; font-size: 16px; padding: 15px 26px; }
  .nav-open .brand { z-index: 60; }
  .nav-open .brand__light { opacity: 1 !important; }
  .nav-open .brand__dark { opacity: 0 !important; }
  .nav-open .header { background: transparent; box-shadow: none; backdrop-filter: none; }
}

/* ── Móvil ── */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .header__in { height: 64px; }
  .brand { width: 124px; }
  .hero__in { padding-top: 110px; }
  .hero__shade { background: linear-gradient(0deg, rgba(15, 46, 37, .92) 0%, rgba(15, 46, 37, .7) 45%, rgba(15, 46, 37, .35) 100%); }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__strip-in { flex-wrap: wrap; gap: 4px 12px; padding-top: 16px; padding-bottom: 16px; }
  .hero__strip-tag { flex-basis: 100%; }
  .hero__strip-data { display: none; }
  .hero__strip-name { flex: 1; }
  .arc--tr { width: 300px; right: -170px; top: -170px; }
  .values, .audience, .steps, .house-info, .land { grid-template-columns: 1fr; }
  .values li:nth-child(even) { padding-left: 0; border-left: 0; }
  .facts > div, .contact__list li { grid-template-columns: 1fr; gap: 4px; }
  .calc__out { grid-template-columns: 1fr; gap: 14px; }
  .calc__out > div { padding-left: 16px; }
  .calc__out dt { min-height: 0; margin-bottom: 4px; }
  .calc__out dd { font-size: 26px; }
  .calc__foot { flex-direction: column; align-items: stretch; }
  .house { gap: 8px; }
  .shot--main { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; }
  .steps h3 { margin-top: 20px; }
  .firma { align-items: flex-start; }
  .firma img { width: 56px; }
  .footer__in { grid-template-columns: 1fr; }
  .footer nav { justify-content: flex-start; }
  .lightbox[open] { grid-template-columns: 1fr; }
  .lightbox figure { grid-column: 1; padding: 20px 12px; }
  .lightbox__nav { position: absolute; bottom: 8px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}
