/* ============================================================
   CASA CON ALTURA — styles
   Direction C ("Altura"): white ground, black grotesk in caps,
   one deep-pool blue, mono labels. Archivo / JetBrains Mono.
   Mobile-first; desktop rules under @media (min-width: 900px).
   ============================================================ */

:root {
  --ink: #0B3C4A;
  --ink-2: #2B4F5B;
  --muted: #5F7279;
  --rule: #DCD5C7;
  --paper: #F7F3EC;
  --paper-2: #EDE5D6;
  --accent: #0F7E95;
  --accent-light: #5FC3DE;
  --sans: Archivo, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: Archivo, system-ui, -apple-system, "Segoe UI", sans-serif; /* labels: same family as display, bold + tracked */
  --gutter: 20px;
  --line: 2px solid var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); }
h1, h2, h3, p, ul, dl, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; top: 8px; z-index: 100; }

/* ---------- shared bits ---------- */
.mono { font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.eyebrow { font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 14px; }
.eyebrow--light { color: var(--accent-light); }
.h2 { font-weight: 800; font-size: clamp(32px, 4vw, 44px); line-height: 0.98; letter-spacing: -0.03em; text-transform: uppercase; }
.cap {
  position: absolute; left: 0; bottom: 0;
  background: var(--ink); color: #fff;
  padding: 10px 14px;
  font-family: var(--mono); font-weight: 700; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
}
.cap--top { top: 0; bottom: auto; padding: 8px 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 14px 22px;
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  border: 0; cursor: pointer; transition: background 0.15s, color 0.15s;
}
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--accent); color: #fff; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--ink); color: #fff; }
.btn--light { background: #F7F3EC; color: var(--ink); }
.btn--light:hover { background: var(--accent-light); color: var(--ink); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 64px; padding: 0 var(--gutter);
  background: rgba(247,243,236,0.92); backdrop-filter: blur(8px);
  border-bottom: var(--line);
}
.nav__brand { font-weight: 800; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.nav__coords { display: none; font-family: var(--mono); font-weight: 600; font-size: 11px; letter-spacing: 0.12em; color: var(--muted); }
.nav__links { display: flex; align-items: center; gap: 18px; font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.nav__links a { color: var(--ink); }
.nav__links a:hover { color: var(--accent); }
.nav__links .btn { min-height: 40px; padding: 10px 14px; color: #fff; }
.nav__links .btn:hover { color: #fff; }
.nav__ig { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0 -8px; }
@media (max-width: 599px) {
  .nav__links a:not(.btn):not(.nav__ig) { display: none; }
}

/* ---------- hero ---------- */
.hero { display: flex; flex-direction: column; }
.hero__text { padding: 36px var(--gutter) 28px; }
.hero__title {
  font-weight: 800; font-size: clamp(56px, 8.6vw, 124px); line-height: 0.88;
  letter-spacing: -0.045em; text-transform: uppercase;
}
.hero__row { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; margin-top: 24px; }
.hero__lede { font-size: 17px; line-height: 1.45; color: var(--ink-2); max-width: 620px; }
.hero__photo { position: relative; border-top: var(--line); background: var(--paper-2); }
.hero__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center 60%; }

/* ---------- stats strip ---------- */
.stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: var(--line); border-bottom: var(--line);
}
.stat {
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  padding: 20px var(--gutter);
  border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
}
.stat--desk { display: none; }
/* phone grid: visible tiles are children 1,4 (row 1) and 5,6 (row 2) */
.stat:nth-child(4), .stat:nth-child(6) { border-right: 0; }
.stat__label { font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.stat__value { font-weight: 800; font-size: 19px; line-height: 1.05; letter-spacing: -0.03em; text-transform: uppercase; }
@media (max-width: 899px) { .stat__value br { display: none; } }
.stat__value--accent { color: var(--accent); }

/* ---------- house + gallery ---------- */
.house { padding: 48px var(--gutter); display: grid; gap: 36px; }
.house__text p { font-size: 16px; line-height: 1.6; color: var(--ink-2); margin-top: 18px; }
.kv { margin-top: 24px; border-top: 1px solid var(--ink); font-size: 14px; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; text-align: right; }
.house__cta { margin-top: 24px; }

.gallery { display: grid; grid-template-columns: 1fr; gap: 12px; }
.gallery figure { position: relative; background: var(--paper-2); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gallery figure:first-child img { object-position: center 45%; }

/* ---------- specifics ---------- */
.specs { border-top: var(--line); padding: 44px var(--gutter) 36px; }
.specs__head { display: flex; flex-direction: column; gap: 16px; padding-bottom: 20px; border-bottom: var(--line); }
.specs__intro { font-size: 15px; color: var(--muted); line-height: 1.5; }
.spec {
  display: grid; grid-template-columns: 1fr; gap: 6px;
  padding: 20px 0; border-bottom: 1px solid var(--rule);
}
.spec--last { border-bottom: var(--line); }
.spec__label { font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.spec__title { font-weight: 700; font-size: 20px; letter-spacing: -0.01em; line-height: 1.2; }
.spec__detail { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.spec--stocked { border-bottom: 0; padding-top: 20px; }
.spec--stocked .spec__detail { font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ---------- weeks ---------- */
.weeks {
  background: var(--ink); color: #fff;
  border-top: var(--line);
  padding: 44px var(--gutter);
  display: grid; gap: 32px;
}
.weeks__lead { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.weeks__title { font-weight: 800; font-size: clamp(48px, 6vw, 64px); line-height: 0.9; letter-spacing: -0.04em; text-transform: uppercase; }
.weeks__list { display: grid; grid-template-columns: 1fr; gap: 0 48px; align-content: start; font-size: 15px; }
.weeks__list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.22); }
.weeks__note { color: #9A9A96; }
.weeks__right { display: flex; flex-direction: column; gap: 20px; }
.weeks__airbnb { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.6); max-width: 560px; }
.weeks__airbnb a { color: var(--accent-light); text-decoration: underline; text-underline-offset: 3px; }
.weeks__airbnb a:hover { color: #fff; }

/* ---------- instagram ---------- */
.insta { border-top: var(--line); padding: 44px var(--gutter) 48px; display: grid; gap: 28px; }
.insta__head { display: flex; flex-direction: column; gap: 14px; }
.insta__lede { font-size: 16px; line-height: 1.55; color: var(--ink-2); max-width: 460px; }
.insta__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.insta__grid a { display: block; background: var(--paper-2); overflow: hidden; }
.insta__grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 0.3s; }
.insta__grid a:hover img { transform: scale(1.03); }
.insta__cta { justify-self: start; gap: 10px; }
.weeks__price { font-size: 15px; font-weight: 600; color: var(--accent-light); letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }

/* ---------- reviews ---------- */
.reviews { background: var(--paper-2); border-top: var(--line); padding: 44px var(--gutter); }
.reviews__head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.reviews__grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.review {
  background: #FBF8F3; border: var(--line); padding: 24px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
}
.review p { font-size: 18px; line-height: 1.4; font-weight: 500; letter-spacing: -0.01em; }
.review--big p { font-size: 24px; line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; }
.review cite a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.review cite a:hover { color: var(--ink); }
.review cite { font-style: normal; font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ---------- inquire ---------- */
.inquire { border-top: var(--line); padding: 48px var(--gutter); display: grid; gap: 32px; }
.inquire__lead p { margin-top: 18px; font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 420px; }
.inquire__lead .inquire__process { font-size: 14px; color: var(--muted); }
.inquire__process a { text-decoration: underline; text-underline-offset: 3px; }
.form { display: grid; gap: 18px; max-width: 560px; }
.form__row { display: grid; gap: 8px; }
.form__row--2 { grid-template-columns: 1fr; gap: 18px; }
.form__row--2 > div { display: grid; gap: 8px; }
.form__row--check { grid-template-columns: auto 1fr; align-items: center; gap: 12px; }
label { font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; }
.form__row--check label { text-transform: none; font-family: var(--sans); font-weight: 400; font-size: 15px; letter-spacing: 0; color: var(--ink); }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; color: var(--ink); background: #FBF8F3;
  border: 2px solid var(--ink); border-radius: 0; appearance: none; -webkit-appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230B0B0B' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--accent-light); outline-offset: 0; }
input[type="checkbox"] { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }
.form__error { color: #B3261E; font-size: 14px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.thanks { min-height: 60vh; padding: 64px var(--gutter); display: grid; gap: 20px; align-content: start; max-width: 720px; }
.thanks p { font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.form__note { font-size: 13px; color: var(--muted); line-height: 1.5; }
.form .btn { justify-self: start; }

/* ---------- footer ---------- */
.footer {
  border-top: var(--line); padding: 28px var(--gutter);
  display: flex; flex-direction: column; gap: 20px;
}
.footer__brand { font-weight: 800; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 18px 28px; font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.footer__links a { color: var(--ink); display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.footer__links a:hover { color: var(--accent); }

/* ============================================================
   DESKTOP
   ============================================================ */
@media (min-width: 900px) {
  :root { --gutter: 48px; }

  .nav { height: 64px; }
  .nav__coords { display: block; }
  .nav__links { gap: 32px; }

  .hero__text { padding: 44px var(--gutter) 40px; }
  .hero__row { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 48px; margin-top: 28px; }
  .hero__lede { font-size: 18px; }
  .hero__photo img { aspect-ratio: 1440 / 820; }

  .stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .stat { padding: 24px 32px; border-bottom: 0; }
  .stat--phone { display: none; }
  .stat--desk { display: flex; }
  .stat:nth-child(4), .stat:nth-child(6) { border-right: 1px solid var(--ink); }
  .stat__value { font-size: 22px; line-height: 1; white-space: nowrap; }
  .stat:first-child { padding-left: var(--gutter); }
  .stat:nth-child(2n) { border-right: 1px solid var(--ink); }
  .stat:last-child { grid-column: auto; border-right: 0; }

  .house { grid-template-columns: 400px minmax(0, 1fr); gap: 48px; padding: 56px var(--gutter); align-items: start; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .specs { padding: 48px var(--gutter) 40px; }
  .specs__head { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .specs__intro { text-align: right; max-width: 480px; }
  .spec { grid-template-columns: 140px 420px minmax(0, 1fr); gap: 40px; align-items: baseline; padding: 18px 0; }
  .spec__title { font-size: 22px; }
  .spec--stocked { grid-template-columns: 140px minmax(0, 1fr); }

  .weeks { grid-template-columns: 360px minmax(0, 1fr); gap: 56px; padding: 48px var(--gutter); }
  .weeks__lead { justify-content: space-between; min-height: 100%; }
  .weeks__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .insta { padding: 56px var(--gutter) 64px; }
  .insta__head { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .insta__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
  .insta__grid a:nth-child(n+5) { display: block; }

  .reviews { padding: 48px var(--gutter); }
  .reviews__head { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .reviews__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .review { padding: 28px; }
  .review p { font-size: 19px; }
  .review--big p { font-size: 26px; }

  .inquire { grid-template-columns: 400px minmax(0, 1fr); gap: 64px; padding: 64px var(--gutter); }
  .form__row--2 { grid-template-columns: 1fr 1fr; }

  .footer { flex-direction: row; align-items: center; justify-content: space-between; height: 120px; padding: 0 var(--gutter); }
  .footer__links { gap: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- guest-info page (unlinked) ---------- */
.guide { max-width: 760px; padding: 48px var(--gutter) 64px; }
.guide__head { margin-bottom: 36px; }
.guide__lede { margin-top: 16px; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.guide__section { padding: 28px 0; border-top: 1px solid var(--rule); }
.guide__section--last { border-bottom: var(--line); }
.guide__h { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; text-transform: uppercase; margin-bottom: 14px; }
.guide p { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.guide p + p { margin-top: 12px; }
.guide .kv { margin: 0 0 16px; }
.guide .kv > div { justify-content: flex-start; }
.guide .kv dt { flex: 0 0 110px; }
.guide .kv dd { text-align: left; }
.guide__list { margin: 12px 0 0; padding-left: 22px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.guide__list li + li { margin-top: 10px; }
.guide__contact { margin-top: 28px; font-size: 16px; }
@media (min-width: 900px) { .guide { padding: 64px var(--gutter) 80px; } .guide__h { font-size: 24px; } }
.guide__section--chip { display: flex; gap: 24px; align-items: center; }
.guide__section--chip > div { flex: 1; }
.guide__chip { width: 120px; height: 120px; object-fit: cover; border: var(--line); flex: 0 0 auto; }
@media (min-width: 900px) { .guide__chip { width: 160px; height: 160px; } }
