/* Landing inmobiliaria · Respondo (2026-11-07)
   Diseño editorial de retícula fina, papel cálido y mucho aire. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #e9e5da;
  --paper-2: #f1eee6;
  --ink: #22211d;
  --muted: #6d685e;
  --line: #c8c2b4;
  --soft: #ded8ca;
  --accent: #9b4328;
  --max: 1440px;
  --pad: clamp(18px, 3.2vw, 46px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.inmo-head {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px var(--pad);
  background: rgba(233, 229, 218, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.inmo-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.inmo-back-icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: currentColor;
  will-change: transform;
}
.inmo-logo > span { line-height: 1; }
.inmo-logo small {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--muted);
}
.inmo-nav {
  display: flex;
  gap: clamp(18px, 2.4vw, 38px);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.inmo-nav a { color: var(--muted); }
.inmo-nav a:hover { color: var(--ink); }
.inmo-head-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
}
.text-link {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
}
.inmo-menu {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  padding: 10px 12px;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ---------- Retícula ---------- */
.inmo-main { display: block; }
.inmo-wrap { width: min(var(--max), 100%); margin-inline: auto; }
.inmo-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.inmo-grid-2 > * { min-width: 0; }
.inmo-cell { padding: clamp(34px, 5vw, 74px) var(--pad); }
.inmo-cell + .inmo-cell { border-left: 1px solid var(--line); }
.label {
  margin: 0 0 18px;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.inmo-cell h2 {
  margin: 0 0 22px;
  font-size: clamp(34px, 4.6vw, 66px);
  line-height: .96;
  font-weight: 300;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.inmo-cell p { max-width: 47ch; color: var(--muted); }
.inmo-cell p strong { color: var(--ink); font-weight: 500; }

/* ---------- Hero ---------- */
.inmo-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(78vh, 780px);
  border-top: 1px solid var(--line);
}
.inmo-media {
  position: relative;
  min-height: 520px;
  background: var(--soft);
  border-right: 1px solid var(--line);
  overflow: hidden;
}
.inmo-media video,
.inmo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.inmo-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,20,18,.06), transparent 30%, transparent 70%, rgba(20,20,18,.16));
  pointer-events: none;
}
.inmo-media-tag,
.inmo-media-caption {
  position: absolute;
  z-index: 2;
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(241,238,230,.86);
  padding: 8px 10px;
  backdrop-filter: blur(6px);
}
.inmo-media-tag { top: 16px; left: 16px; }
.inmo-media-caption { bottom: 16px; left: 16px; }
.inmo-media-caption span { color: var(--accent); }

.inmo-intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(26px, 4vw, 54px) var(--pad);
  gap: 40px;
}
.inmo-intro-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.inmo-intro h1 {
  margin: 0 0 22px;
  font-size: clamp(44px, 6.3vw, 96px);
  line-height: .9;
  font-weight: 300;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.kicker {
  margin: 0 0 22px;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}
.inmo-intro .lede {
  max-width: 42ch;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: clamp(14px, 1.1vw, 16px);
}
.inmo-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-line,
.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); }
.inmo-intro-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.inmo-intro-meta strong { display: block; margin-top: 5px; color: var(--ink); font-weight: 500; }

/* ---------- Proyecto / método ---------- */
.inmo-photo {
  min-height: 460px;
  position: relative;
  overflow: hidden;
  background: var(--soft);
}
.inmo-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.inmo-photo .inmo-media-tag { top: 16px; left: 16px; }
.specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: 30px 0;
  border-top: 1px solid var(--line);
}
.specs div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.specs div:nth-child(odd) { padding-right: 16px; }
.specs dt { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 4px 0 0; font-size: 14px; }

.method-list { display: grid; grid-template-columns: 1fr 1fr; }
.method-list article {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.method-list article:nth-child(odd) { padding-right: 24px; border-right: 1px solid var(--line); }
.method-list article:nth-child(even) { padding-left: 24px; }
.method-list b {
  display: block;
  margin-bottom: 10px;
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--accent);
  font-weight: 500;
}
.method-list h3 { margin: 0 0 7px; font-size: 19px; font-weight: 500; letter-spacing: -.03em; }
.method-list p { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- Servicios / works ---------- */
.inmo-works { border-top: 1px solid var(--line); }
.works-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px var(--pad) 18px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.works-grid article { min-width: 0; border-right: 1px solid var(--line); }
.works-grid article:last-child { border-right: 0; }
.works-grid figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--soft); }
.works-grid img { width: 100%; height: 100%; object-fit: cover; }
.works-grid .work-body { padding: 20px var(--pad) 34px; }
.work-body b { font-size: 10px; letter-spacing: .16em; color: var(--accent); font-weight: 500; }
.work-body h3 { margin: 10px 0 6px; font-size: 22px; font-weight: 500; letter-spacing: -.03em; }
.work-body p { margin: 0; color: var(--muted); font-size: 13px; max-width: 30ch; }

/* ---------- Quote ---------- */
.inmo-quote {
  border-top: 1px solid var(--line);
  padding: clamp(60px, 10vw, 140px) var(--pad);
  text-align: center;
}
.inmo-quote p {
  margin: 0 auto 22px;
  max-width: 22ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4.5vw, 64px);
  line-height: 1.05;
  font-style: italic;
  letter-spacing: -.035em;
}
.inmo-quote span { font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* ---------- Contacto ---------- */
.inmo-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}
.inmo-contact > div, .inmo-contact form { padding: clamp(34px, 5vw, 72px) var(--pad); }
.inmo-contact form { border-left: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.inmo-contact h2 { margin: 0 0 18px; font-size: clamp(34px, 4.6vw, 64px); line-height: .96; font-weight: 300; letter-spacing: -.045em; }
.inmo-contact p { margin: 0 0 22px; color: var(--muted); max-width: 40ch; }
.contact-line { display: block; margin: 8px 0; font-size: 14px; }
.contact-line a { border-bottom: 1px solid var(--line); }
.inmo-contact label { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.inmo-contact input, .inmo-contact select {
  width: 100%;
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  border-radius: 0;
  outline: none;
}
.inmo-contact input:focus, .inmo-contact select:focus { border-color: var(--ink); }
.form-status { margin: 0; font-size: 12px; color: var(--accent); }
.form-legal { font-size: 10px; color: var(--muted); margin: 0; }
.form-legal a { border-bottom: 1px solid var(--line); }

/* ---------- Footer ---------- */
.inmo-foot {
  border-top: 1px solid var(--line);
  padding: 34px var(--pad) 26px;
}
.inmo-foot-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
}
.foot-credit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
.credit-by {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.credit-by::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--accent);
}
.credit-url {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  border: 0;
  padding: 0;
}
.inmo-foot h3, .inmo-foot h4 { margin: 0 0 10px; font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.inmo-foot a { display: block; margin: 5px 0; font-size: 13px; color: var(--muted); }
.inmo-foot a:hover { color: var(--ink); }
.inmo-foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Menú móvil ---------- */
.inmo-mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--paper);
  padding: 90px var(--pad) 30px;
}
.inmo-mobile-nav.open { display: block; }
.inmo-mobile-nav a {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -.03em;
}
.inmo-mobile-nav .close { position: absolute; top: 22px; right: var(--pad); background: none; border: 0; font-size: 28px; cursor: pointer; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .inmo-head { grid-template-columns: 1fr auto; gap: 12px; }
  .inmo-nav { display: none; }
  .text-link { display: none; }
  .inmo-menu { display: inline-flex; }
  .inmo-hero { grid-template-columns: 1fr; min-height: 0; }
  .inmo-media { min-height: 0; aspect-ratio: 4 / 5; border-right: 0; border-bottom: 1px solid var(--line); }
  .inmo-intro { padding-top: 32px; }
  .inmo-grid-2 { grid-template-columns: 1fr; }
  .inmo-cell + .inmo-cell { border-left: 0; border-top: 1px solid var(--line); }
  .inmo-photo { min-height: 0; aspect-ratio: 4 / 5; }
  .works-grid { grid-template-columns: 1fr; }
  .works-grid article { border-right: 0; border-bottom: 1px solid var(--line); }
  .works-grid figure { aspect-ratio: 4 / 3; }
  .works-grid article:last-child { border-bottom: 0; }
  .inmo-contact { grid-template-columns: 1fr; }
  .inmo-contact form { border-left: 0; border-top: 1px solid var(--line); }
  .inmo-foot-top { grid-template-columns: 1fr; gap: 20px; }
  .inmo-foot-bottom { flex-direction: column; gap: 6px; }
}
@media (max-width: 560px) {
  .inmo-intro h1 { font-size: clamp(40px, 12vw, 56px); }
  .inmo-intro-meta { grid-template-columns: 1fr 1fr; }
  .method-list { grid-template-columns: 1fr; }
  .method-list article:nth-child(odd) { border-right: 0; padding-right: 0; }
  .method-list article:nth-child(even) { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .inmo-media video { display: none; }
  .inmo-media { background: var(--soft) url("/assets/photos/inmo/casa-360-poster.webp") center/cover no-repeat; }
}

/* Redes sociales del pie */
.foot-social { display:flex; align-items:center; gap:.5rem; margin:1rem 0; }
.foot-social a { display:grid; place-items:center; width:2.35rem; height:2.35rem; margin:0; border:1px solid currentColor; border-radius:50%; color:inherit; text-decoration:none; transition:background .2s,color .2s,transform .2s; }
.foot-social a:hover, .foot-social a:focus-visible { background:#111; color:#fff; transform:translateY(-2px); }
.foot-social svg { width:1.05rem; height:1.05rem; display:block; }
