/* =========================================================
   NCV Arquitectura — estilos
   ========================================================= */

:root {
  --ink: #151514;
  --ink-2: #2a2926;
  --stone: #efebe4;
  --stone-2: #e3ddd2;
  --paper: #f8f6f2;
  --wood: #8b6a4b;
  --accent: #c9a149;
  --accent-hover: #b38d3a;
  --accent-text: #7d6224; /* dorado oscuro para textos chicos sobre fondo claro */
  --muted: #6f6a62;
  --line: rgba(21, 21, 20, .14);
  --line-light: rgba(255, 255, 255, .22);

  --f-sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Poppins", system-ui, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1320px;
  --header-h: 104px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.05; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 999; }
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }

/* ---------- utilities ---------- */
.eyebrow {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 18px; font-weight: 500;
}
.eyebrow--light { color: rgba(255, 255, 255, .7); }

.section { padding: clamp(80px, 12vw, 150px) 0; }
.section__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: clamp(40px, 6vw, 72px); flex-wrap: wrap;
}
.section__title {
  font-size: clamp(36px, 5.6vw, 76px);
  letter-spacing: -.03em; font-weight: 300;
}
.lead { font-family: var(--f-serif); font-weight: 300; font-size: clamp(21px, 2.2vw, 28px); line-height: 1.35; color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 28px; border-radius: 0;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn--light { background: var(--accent); color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn--ghost:hover { border-color: var(--accent); background: transparent; color: var(--accent); }
.btn--dark { background: var(--accent); color: var(--ink); }
.btn--dark:hover { background: var(--ink); color: #fff; }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { border-color: var(--accent); background: var(--accent); color: var(--ink); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500;
  padding-bottom: 6px; border-bottom: 2px solid var(--accent); transition: color .3s;
}
.link-arrow:hover { color: var(--accent-text); }
.link-arrow svg { width: 20px; color: var(--accent); transition: transform .35s var(--ease); }
.link-arrow:hover svg { transform: translateX(6px); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background .4s var(--ease), height .4s var(--ease), box-shadow .4s var(--ease);
}
.header__inner {
  height: 100%; max-width: 1600px; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.header__logo { position: relative; display: block; width: 150px; height: 80px; flex-shrink: 0; transition: width .4s var(--ease), height .4s var(--ease); }
.logo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left center; transition: opacity .4s; }
.logo--dark { opacity: 0; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav__list { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative; text-decoration: none; color: #fff;
  font-size: 13px; letter-spacing: .08em; font-weight: 400; padding: 6px 0;
  transition: color .3s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--accent); height: 2px; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__login {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .5); color: #fff; text-decoration: none;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  transition: all .3s var(--ease);
}
.nav__login svg { width: 16px; color: var(--accent); transition: color .3s; }
.nav__login:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.nav__login:hover svg { color: var(--ink); }

.header.is-scrolled {
  --header-h: 80px;
  background: rgba(248, 246, 242, .92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-scrolled .logo--light { opacity: 0; }
.header.is-scrolled .logo--dark { opacity: 1; }
.header.is-scrolled .nav__link { color: var(--ink); }
.header.is-scrolled .nav__login { color: var(--ink); border-color: var(--ink); }
.header.is-scrolled .nav__login:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.header.is-scrolled .header__logo { height: 60px; width: 112px; }

.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; z-index: 60; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: #fff; transition: transform .4s var(--ease), top .4s var(--ease), background .3s; }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 26px; }
.header.is-scrolled .burger span { background: var(--ink); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--ink);
}
.hero__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center 60%;
  transform: scale(1.12); animation: heroZoom 14s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 9, .6) 0%, rgba(10, 10, 9, 0) 30%),
    linear-gradient(0deg, rgba(10, 10, 9, .88) 0%, rgba(10, 10, 9, .5) 45%, rgba(10, 10, 9, .15) 75%),
    rgba(10, 10, 9, .2);
}
.hero__content { position: relative; padding-bottom: clamp(56px, 9vh, 110px); max-width: 1600px; }
.hero__eyebrow { opacity: 0; animation: fadeUp 1s .3s var(--ease) forwards; }
.hero__title {
  text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
  font-size: clamp(40px, 7.4vw, 118px); font-weight: 300; letter-spacing: -.04em; line-height: 1.02;
}
.hero__title em { font-style: italic; font-weight: 300; letter-spacing: -.04em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: lineUp 1.2s var(--ease) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .15s; }
@keyframes lineUp { to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.hero__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: clamp(28px, 4vw, 48px); padding-top: 28px; border-top: 1px solid var(--line-light);
  opacity: 0; animation: fadeUp 1s .7s var(--ease) forwards;
}
.hero__tag { margin: 0; font-size: 14px; letter-spacing: .32em; text-transform: uppercase; font-weight: 500; }
.hero__tag span { color: var(--accent); margin: 0 .3em; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__scroll {
  position: absolute; right: var(--gutter); top: 50%; width: 1px; height: 80px; background: var(--line-light); overflow: hidden;
}
.hero__scroll span { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--accent); animation: scrollLine 2.2s ease-in-out infinite; }
@keyframes scrollLine { to { top: 100%; } }

/* =========================================================
   PROYECTOS
   ========================================================= */
.projects__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.project { text-decoration: none; display: block; }
.project__media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--stone-2); }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.92); }
.project__media::after {
  content: ""; position: absolute; inset: 0; background: rgba(21, 21, 20, 0); transition: background .6s var(--ease);
}
.project:hover .project__media img { transform: scale(1.06); filter: saturate(1.05); }
.project:hover .project__media::after { background: rgba(21, 21, 20, .12); }
.project__info {
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 14px;
  padding: 20px 0 6px; border-bottom: 1px solid var(--line); transition: border-color .4s;
}
.project__num { font-size: 26px; font-weight: 400; color: var(--accent); line-height: 1; }
.project__name { font-size: clamp(18px, 1.6vw, 22px); text-transform: uppercase; letter-spacing: .1em; font-weight: 400; }
.project__more { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); opacity: 0; transform: translateX(-8px); transition: all .4s var(--ease); }
.project:hover .project__more { opacity: 1; transform: none; color: var(--accent-text); }
.project:hover .project__info { border-bottom-color: var(--accent); }
/* carátulas alineadas */
@media (min-width: 900px) { .projects__grid { row-gap: 56px; } }

/* =========================================================
   NOSOTROS
   ========================================================= */
.about { background: var(--stone); }
.about__intro { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); margin-bottom: clamp(60px, 9vw, 110px); }
.about__mark { width: 120px; margin-top: 48px; opacity: .14; }
.about__text strong { font-weight: 500; }
.about__text p:not(.lead) { color: var(--ink-2); max-width: 62ch; }
.about__text .lead { margin-bottom: 1.2em; }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.pillar { padding: 36px 28px 8px 0; border-right: 1px solid var(--line); }
.pillar + .pillar { padding-left: 28px; }
.pillar:last-child { border-right: 0; }
.pillar__num { display: block; font-size: 18px; font-weight: 500; color: var(--accent); margin-bottom: 40px; }
.pillar__title { font-size: 20px; letter-spacing: -.01em; margin-bottom: 14px; font-weight: 500; }
.pillar p { font-size: 14px; color: var(--muted); }

/* =========================================================
   CÓMO TRABAJAMOS — flip cards
   ========================================================= */
.process { background: var(--ink); color: #fff; }
.process .section__title { color: #fff; }
.process__hint { color: rgba(255, 255, 255, .55); font-size: 14px; margin: 0; max-width: 30ch; }

.flips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.flip { perspective: 1400px; min-height: 460px; }
.flip__inner {
  position: relative; width: 100%; height: 100%; min-height: inherit; padding: 0; border: 0; background: none; cursor: pointer; text-align: left;
  transform-style: preserve-3d; transition: transform .9s var(--ease);
}
.flip__face {
  position: absolute; inset: 0; display: flex; flex-direction: column; padding: 32px 28px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.flip__front { border: 1px solid var(--line-light); background: #151514; color: #fff; overflow: hidden; transition: border-color .4s; }
.flip__front > *:not(.flip__img) { position: relative; z-index: 2; }
.flip__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; filter: grayscale(.35) contrast(1.05); transition: transform 1.2s var(--ease), filter .6s; }
.flip__front::after { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(15,15,14,.72) 0%, rgba(15,15,14,.25) 30%, rgba(15,15,14,.45) 55%, rgba(15,15,14,.94) 100%); }
.flip__title { margin-top: auto; }
.flip__back { background: var(--stone); color: var(--ink); transform: rotateY(180deg); justify-content: space-between; border-top: 4px solid var(--accent); }
.flip__back p { font-size: 13.5px; line-height: 1.7; margin: 0; color: var(--ink-2); }

.flip__num { font-size: 20px; font-weight: 400; color: #fff; letter-spacing: .04em; text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.flip__back .flip__num { text-shadow: none; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-text); font-weight: 500; }
.flip__title { font-size: clamp(22px, 1.9vw, 27px); font-weight: 400; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 22px; }
.flip__cta {
  display: flex; justify-content: space-between; align-items: center; padding-top: 18px; border-top: 1px solid var(--line-light);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .8);
}
.flip__cta i { font-style: normal; color: var(--accent); font-size: 26px; line-height: 1; transition: transform .4s var(--ease); }

@media (hover: hover) {
  .flip:hover .flip__inner { transform: rotateY(180deg); }
  .flip:hover .flip__front { border-color: var(--accent); }
  .flip:hover .flip__img { transform: scale(1.06); }
}
.flip__inner.is-flipped { transform: rotateY(180deg); }
.flip__inner:focus-visible { outline-offset: 6px; }

/* =========================================================
   MÉTODO
   ========================================================= */
.method__list { border-top: 1px solid var(--line); }
.method__item {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 6vw, 96px);
  padding: clamp(32px, 4vw, 52px) 0; border-bottom: 1px solid var(--line);
}
.method__label { display: flex; gap: 24px; align-items: baseline; }
.method__label span { font-size: 28px; font-weight: 400; color: var(--accent); line-height: 1; }
.method__label h3 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.02em; font-weight: 400; }
.method__item p { margin: 0; color: var(--ink-2); max-width: 64ch; font-size: 15.5px; }
.method__item strong { font-weight: 500; }
.method__item p + p { margin-top: 1em; }

/* =========================================================
   CONTACTO
   ========================================================= */
.contact { background: var(--stone); padding-bottom: 0; }
.contact__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); }
.contact__info .lead { margin: 24px 0 40px; max-width: 22ch; }
.contact__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact__list li { display: grid; grid-template-columns: 120px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.contact__list span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.contact__list a { text-decoration: none; word-break: break-word; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size .4s var(--ease); }
.contact__list a:hover { background-size: 100% 2px; }

.form { background: var(--paper); padding: clamp(28px, 4vw, 48px); align-self: start; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: block; margin-bottom: 22px; }
.field span { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent;
  font: inherit; font-size: 16px; color: var(--ink); padding: 10px 0; border-radius: 0; outline: none;
  transition: border-color .3s;
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23151514' stroke-width='1.3'/%3E%3C/svg%3E") right 4px center no-repeat; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field.has-error input, .field.has-error textarea { border-color: #b4472f; }
.form__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.form__actions .btn { flex: 1 1 200px; padding: 0 18px; letter-spacing: .1em; white-space: nowrap; }
.form__msg { margin: 16px 0 0; font-size: 14px; min-height: 1.4em; color: var(--muted); }
.form__msg.is-error { color: #b4472f; }

.map { height: clamp(320px, 42vw, 480px); filter: grayscale(1) contrast(1.05); transition: filter .6s; }
.map:hover { filter: grayscale(.2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding: 64px 0 28px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid var(--line-light); }
.footer__logo { width: 110px; }
.footer__nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer__nav a { text-decoration: none; font-size: 14px; transition: color .3s; }
.footer__nav a:hover { color: var(--accent); }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-light); border-radius: 50%; color: #fff; transition: all .3s; }
.footer__social a:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.footer__social svg { width: 18px; height: 18px; }
.footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 13px; }
.footer__legal a { text-decoration: none; }
.footer__legal a:hover { color: var(--accent); }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: transform .3s var(--ease);
  transform: scale(0);
}
.wa-float.is-visible { transform: scale(1); }
.wa-float.is-visible:hover { transform: scale(1.08); background: var(--accent-hover); }
.wa-float svg { width: 30px; height: 30px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .nav__list { gap: 20px; }
  .flips { grid-template-columns: repeat(2, 1fr); }
  .flip { min-height: 400px; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(2) { border-right: 0; }
  .pillar:nth-child(3) { padding-left: 0; }
  .pillar:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 1024px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 55; background: var(--ink);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 40px;
    padding: 100px var(--gutter) 40px;
    clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease); visibility: hidden;
  }
  .nav__list { flex-direction: column; gap: 6px; }
  .nav__link, .header.is-scrolled .nav__link { color: #fff; font-size: clamp(30px, 7vw, 44px); font-weight: 300; letter-spacing: -.02em; }
  .nav__login, .header.is-scrolled .nav__login { color: #fff; border-color: rgba(255,255,255,.5); }
  .nav__link:hover, .nav__link.is-active, .header.is-scrolled .nav__link.is-active { color: var(--accent); }
  body.menu-open { overflow: hidden; }
  body.menu-open .nav { clip-path: inset(0); visibility: visible; }
  body.menu-open .burger span { background: #fff; }
  body.menu-open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
  body.menu-open .burger span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
  body.menu-open .header .logo--light { opacity: 1; position: relative; z-index: 60; }
  body.menu-open .header .logo--dark { opacity: 0; }
  body.menu-open .header { background: transparent; box-shadow: none; backdrop-filter: none; }
  .header__logo { z-index: 60; }
}

@media (max-width: 860px) {
  .projects__grid { grid-template-columns: 1fr; gap: 48px; }
  .project__media { aspect-ratio: 4 / 3; }
  .project__more { opacity: 1; transform: none; }
  .about__intro, .method__item, .contact__grid { grid-template-columns: 1fr; }
  .about__mark { display: none; }
  .hero__scroll { display: none; }
}

@media (max-width: 600px) {
  :root { --header-h: 84px; }
  .header__logo { width: 116px; height: 64px; }
  .header.is-scrolled .header__logo { width: 96px; height: 52px; }
  .header.is-scrolled { --header-h: 68px; }
  .flips { grid-template-columns: 1fr; }
  .flip { min-height: 420px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 28px 0 8px; border-right: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line); }
  .pillar__num { margin-bottom: 16px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .contact__list li { grid-template-columns: 1fr; gap: 2px; }
  .hero__ctas { width: 100%; }
  .hero__ctas .btn { flex: 1; padding: 0 14px; white-space: nowrap; }
  .hero__tag { font-size: 12px; letter-spacing: .26em; }
}

/* =========================================================
   PÁGINAS INTERNAS (listado y obra)
   ========================================================= */
.page-hero { background: var(--ink); color: #fff; padding: calc(var(--header-h) + clamp(60px, 9vw, 120px)) 0 clamp(56px, 7vw, 90px); }
.page-hero__title { font-size: clamp(44px, 8vw, 110px); font-weight: 300; letter-spacing: -.04em; }
.page-hero__sub { margin: 20px 0 0; color: rgba(255, 255, 255, .65); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.link-arrow--light { color: #fff; }
.empty { color: var(--muted); font-size: 18px; }

.cta-band { background: var(--accent); color: var(--ink); padding: clamp(48px, 7vw, 88px) 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(28px, 4vw, 52px); font-weight: 300; letter-spacing: -.03em; }
.cta-band .btn--light { background: var(--ink); color: #fff; }
.cta-band .btn--light:hover { background: #fff; color: var(--ink); }

/* Obra */
.obra-hero { position: relative; min-height: 78vh; min-height: 78svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--ink); }
.obra-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.08); animation: heroZoom 12s var(--ease) forwards; }
.obra-hero__content { position: relative; padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(48px, 7vw, 88px); }
.obra-back { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; margin-bottom: 28px; opacity: .85; transition: opacity .3s, color .3s; }
.obra-back svg { width: 18px; color: var(--accent); }
.obra-back:hover { opacity: 1; color: var(--accent); }
.obra-hero__title { font-size: clamp(44px, 8.4vw, 124px); font-weight: 300; letter-spacing: -.04em; line-height: 1; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); opacity: 0; animation: fadeUp 1s .2s var(--ease) forwards; }
.obra-hero__title span { color: var(--accent); }
.obra-hero__loc { margin: 18px 0 0; font-size: 14px; letter-spacing: .24em; text-transform: uppercase; opacity: 0; animation: fadeUp 1s .45s var(--ease) forwards; }

.obra-info__grid { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 7vw, 110px); align-items: start; }
.obra-facts { margin: 0; border-top: 1px solid var(--line); }
.obra-facts div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.obra-facts dt { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.obra-facts dd { margin: 0; font-size: 16px; }
.obra-text p:not(.lead) { color: var(--ink-2); max-width: 64ch; }
.obra-text:only-child { grid-column: 1 / -1; }
.obra-info + .obra-gallery { padding-top: 0; }

.gallery { columns: 3 320px; column-gap: 16px; }
.gallery__item { display: block; margin: 0 0 16px; break-inside: avoid; overflow: hidden; position: relative; background: var(--stone-2); cursor: zoom-in; }
.gallery__item img { width: 100%; height: auto; transition: transform 1s var(--ease), filter .5s; }
.gallery__item::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 0 var(--accent); transition: box-shadow .35s var(--ease); }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item:hover::after { box-shadow: inset 0 0 0 3px var(--accent); }

.map--obra { height: clamp(280px, 34vw, 420px); }

.obra-nav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.obra-nav__link { display: flex; flex-direction: column; gap: 6px; padding: clamp(28px, 4vw, 48px) var(--gutter); text-decoration: none; transition: background .3s; }
.obra-nav__link--next { text-align: right; border-left: 1px solid var(--line); }
.obra-nav__link:hover { background: var(--stone); }
.obra-nav__label { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text); font-weight: 500; }
.obra-nav__name { font-size: clamp(20px, 2.6vw, 34px); font-weight: 300; letter-spacing: -.02em; }

/* Visor */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12, 12, 11, .96); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; max-width: calc(100vw - 160px); max-height: calc(100vh - 100px); display: flex; flex-direction: column; align-items: center; }
.lightbox__figure img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; user-select: none; }
.lightbox__count { color: rgba(255, 255, 255, .6); font-size: 13px; letter-spacing: .16em; margin-top: 14px; }
.lightbox__close, .lightbox__nav { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; line-height: 1; transition: color .3s; }
.lightbox__close { top: 16px; right: 22px; font-size: 44px; font-weight: 300; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 64px; font-weight: 200; padding: 20px; }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
.lightbox__close:hover, .lightbox__nav:hover { color: var(--accent); }
body.lb-open { overflow: hidden; }

@media (max-width: 860px) {
  .obra-info__grid { grid-template-columns: 1fr; }
  .obra-nav__name { font-size: 18px; }
}
@media (max-width: 600px) {
  .lightbox__figure { max-width: 100vw; }
  .lightbox__nav { font-size: 44px; padding: 10px; top: auto; bottom: 14px; transform: none; }
  .obra-facts div { grid-template-columns: 1fr; gap: 2px; }
  .gallery { columns: 1; }
}

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