:root {
  --ink: #0a0a0a;
  --ink-2: #111110;
  --line: rgba(255, 255, 255, 0.12);
  --white: #f4f1ea;
  --sand: #c9a227;
  --sand-soft: #e0c777;
  --grey: #9a968e;
  --font-d: 'Cormorant Garamond', Georgia, serif;
  --font-b: 'Inter', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(20px, 5vw, 96px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--white);
  font-family: var(--font-b); font-weight: 300; font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1440px, 100%); margin: 0 auto; padding-inline: var(--pad); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--sand); color: #000; padding: 10px 14px; z-index: 99; }

/* ---------------------------------------------------------------- header */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 40;
  background: linear-gradient(rgba(10,10,10,0.9), rgba(10,10,10,0));
  transition: background 0.4s, backdrop-filter 0.4s;
}
.hdr.is-stuck { background: rgba(10,10,10,0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: 32px; padding: 18px var(--pad); }
.brand img { width: 104px; height: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: #d8d4cb; transition: color 0.25s; }
.nav a:hover { color: var(--sand-soft); }
.burger { display: none; }

/* ---------------------------------------------------------------- botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  border: 1px solid var(--line); transition: all 0.35s var(--ease); cursor: pointer;
  font-family: var(--font-b); font-weight: 500;
}
.btn-line { border-color: rgba(255,255,255,0.35); color: var(--white); }
.btn-line:hover { border-color: var(--sand); color: var(--sand-soft); }
.btn-solid { background: var(--sand); border-color: var(--sand); color: #0a0a0a; }
.btn-solid:hover { background: var(--sand-soft); border-color: var(--sand-soft); }
.btn-wide { width: 100%; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.04); animation: heroIn 14s var(--ease) forwards; }
@keyframes heroIn { to { transform: scale(1); } }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.65) 0%, rgba(10,10,10,0.15) 38%, rgba(10,10,10,0.92) 100%);
}
.hero-in { position: relative; z-index: 2; width: 100%; padding: 0 var(--pad) clamp(48px, 8vw, 96px); max-width: 1400px; margin: 0 auto; }
.kicker { display: inline-block; font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--sand-soft); margin-bottom: 18px; }
.display { font-family: var(--font-d); font-weight: 300; font-size: clamp(56px, 10vw, 148px); line-height: 0.92; letter-spacing: -0.02em; margin: 0 0 22px; }
.display em { font-style: italic; color: var(--sand-soft); }
.lead { max-width: 520px; color: #ddd8cf; font-size: clamp(15px, 1.4vw, 17px); margin: 0 0 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-scroll { position: absolute; right: var(--pad); bottom: 40px; z-index: 2; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: #b9b4aa; writing-mode: vertical-rl; }

/* ---------------------------------------------------------------- stats */
.stats { border-block: 1px solid var(--line); background: var(--ink-2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; }
.stat { padding: 34px 8px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--font-d); font-size: clamp(28px, 3.4vw, 46px); font-weight: 300; color: var(--sand-soft); line-height: 1; }
.stat span { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey); }

/* ---------------------------------------------------------------- secciones */
.section { padding: clamp(70px, 9vw, 140px) 0; }
.section-tight { padding-top: clamp(50px, 6vw, 90px); }
.section-dark { background: var(--ink-2); border-block: 1px solid var(--line); }
.h2 { font-family: var(--font-d); font-weight: 300; font-size: clamp(34px, 5.2vw, 74px); line-height: 0.98; letter-spacing: -0.01em; margin: 0 0 26px; text-transform: lowercase; }
.h2::first-letter { text-transform: uppercase; }
.body { color: #c6c1b8; margin: 0 0 18px; max-width: 56ch; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: clamp(30px, 4vw, 56px); }
.sec-note { max-width: 300px; color: var(--grey); font-size: 13.5px; margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.split-text .body { max-width: 46ch; }
.split-media { margin: 0; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split-media figcaption { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); margin-top: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sand-soft); border-bottom: 1px solid rgba(201,162,39,0.4); padding-bottom: 4px; }
.link-arrow span { transition: transform 0.3s var(--ease); }
.link-arrow:hover span { transform: translateX(6px); }

/* ---------------------------------------------------------------- proyectos */
.grid-proj { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.proj { position: relative; overflow: hidden; background: #151513; }
.proj img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform 0.9s var(--ease); }
.proj:hover img { transform: scale(1.04); }
.proj-wide { grid-column: span 2; grid-row: span 2; }
.proj-wide img { aspect-ratio: auto; height: 100%; }
.proj-cap { position: absolute; inset: auto 0 0; padding: 28px 22px 20px; background: linear-gradient(transparent, rgba(8,8,8,0.92)); }
.proj-cap h3 { font-family: var(--font-d); font-size: clamp(20px, 2vw, 28px); font-weight: 400; margin: 0; }
.proj-cap p { margin: 2px 0 0; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sand-soft); }

/* ---------------------------------------------------------------- servicios */
.grid-serv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 40px; background: var(--line); }
.serv { background: var(--ink-2); padding: clamp(26px, 3vw, 40px); }
.serv-num { font-family: var(--font-d); font-size: 13px; letter-spacing: 0.24em; color: var(--sand); }
.serv h3 { font-family: var(--font-d); font-weight: 400; font-size: clamp(22px, 2.2vw, 30px); margin: 12px 0 12px; line-height: 1.1; }
.serv p { color: #bdb8ae; font-size: 14px; margin: 0; }

/* ---------------------------------------------------------------- faq */
.split-faq { align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; list-style: none; font-size: 15px; font-weight: 500; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--sand); font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq p { color: #b8b3a9; font-size: 14px; margin: 12px 0 4px; max-width: 56ch; }

/* ---------------------------------------------------------------- oficinas */
.grid-office { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); margin-top: 40px; }
.office { background: var(--ink-2); padding: clamp(26px, 3vw, 44px); }
.office-tag { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--sand); }
.office h3 { font-family: var(--font-d); font-weight: 400; font-size: clamp(26px, 3vw, 38px); margin: 8px 0 14px; }
.office p { color: #c1bcb2; margin: 0 0 14px; }
.office a { color: var(--sand-soft); border-bottom: 1px solid rgba(201,162,39,0.35); padding-bottom: 2px; }

/* ---------------------------------------------------------------- contacto */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact-data { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line); }
.contact-data li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.contact-data span { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey); }
.contact-data a { color: var(--white); }
.contact-data a:hover { color: var(--sand-soft); }

.form { display: flex; flex-direction: column; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey); }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 14px; background: #141412; border: 1px solid var(--line);
  color: var(--white); font-family: var(--font-b); font-size: 14.5px; border-radius: 0; letter-spacing: normal; text-transform: none;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--sand); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .err { color: #ff8a80; font-size: 11px; letter-spacing: normal; text-transform: none; min-height: 14px; }
.form .is-invalid input, .form .is-invalid select { border-color: #ff8a80; }
.form-note { font-size: 11.5px; color: var(--grey); margin: 4px 0 0; letter-spacing: normal; text-transform: none; }

/* ---------------------------------------------------------------- footer */
.ftr { border-top: 1px solid var(--line); background: var(--ink); padding: 48px 0 40px; }
.ftr-in { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.ftr-claim { font-family: var(--font-d); font-style: italic; font-size: 20px; color: var(--sand-soft); margin: 0; }
.ftr-nav { display: flex; gap: 22px; margin-left: auto; }
.ftr-nav a { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: #b6b1a7; }
.ftr-legal { width: 100%; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: #6f6b64; margin: 10px 0 0; }

/* ---------------------------------------------------------------- animación */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- responsivo */
@media (max-width: 1024px) {
  .grid-proj { grid-template-columns: repeat(2, 1fr); }
  .proj-wide { grid-column: span 2; grid-row: auto; }
  .proj-wide img { aspect-ratio: 16 / 10; }
  .grid-serv, .grid-office { grid-template-columns: 1fr; }
  .split, .contact { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 820px) {
  .nav {
    position: fixed; inset: 0 0 auto; padding: 96px var(--pad) 32px;
    flex-direction: column; gap: 18px; background: rgba(10,10,10,0.98);
    transform: translateY(-100%); transition: transform 0.45s var(--ease);
    border-bottom: 1px solid var(--line); height: 100dvh;
  }
  .nav.is-open { transform: none; }
  .nav a { font-size: 14px; letter-spacing: 0.1em; }
  .burger {
    display: flex; flex-direction: column; gap: 5px; margin-left: auto;
    background: none; border: 0; padding: 10px; cursor: pointer;
  }
  .burger span { width: 26px; height: 1.5px; background: var(--white); transition: transform 0.3s, opacity 0.3s; }
  .burger.is-open span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .burger.is-open span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .hdr .btn-line { display: none; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero-scroll { display: none; }
  .display { font-size: clamp(46px, 15vw, 96px); }
  .form .row { grid-template-columns: 1fr; }
  .ftr-nav { margin-left: 0; }
}
@media (max-width: 560px) {
  .grid-proj { grid-template-columns: 1fr; }
  .proj-wide { grid-column: auto; }
  .proj img, .proj-wide img { aspect-ratio: 4 / 3; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ajustes de acabado */
section[id] { scroll-margin-top: 92px; }
.brand img, .ftr img { mix-blend-mode: screen; }
.hero::after {
  background: linear-gradient(180deg, rgba(10,10,10,0.72) 0%, rgba(10,10,10,0.28) 42%, rgba(10,10,10,0.94) 100%);
}
.hero .kicker { color: #e6cd8c; text-shadow: 0 1px 12px rgba(0,0,0,0.7); }
@media (max-width: 820px) {
  .brand img { width: 78px; }
}

/* logo: tamaño controlado por alto para no cortar el tagline */
.brand img { width: auto; height: 58px; mix-blend-mode: screen; }
.ftr img { width: auto; height: 62px; mix-blend-mode: screen; }
@media (max-width: 820px) {
  .brand img { height: 44px; }
  .ftr img { height: 52px; }
  .hero-in { padding-bottom: 40px; }
  .hero .lead { font-size: 15px; }
}
