/* Apartmán La Hacienda — styles */
:root {
  --bg: #faf7f1;
  --card: #ffffff;
  --sand: #f1e9dc;
  --line: #e5dccc;
  --ink: #2b2519;
  --muted: #6f6555;
  --terra: #b4542c;
  --terra-dark: #8c3f1d;
  --sea: #17586f;
  --wa: #128c4b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(43, 37, 25, .08);
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--terra-dark); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
section { padding: 72px 0; }
.wrap { max-width: 1140px; margin-inline: auto; padding-inline: 22px; }
.lead { font-size: 1.15rem; max-width: 820px; color: var(--muted); }
.lead-sm { max-width: 820px; color: var(--muted); }
.sub { color: var(--muted); margin-top: -10px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 241, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-head.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(43,37,25,.06); }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 64px; }
.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-size: 1.18rem; font-weight: 700; letter-spacing: .2px; }
.brand-sub { font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav > a { text-decoration: none; color: var(--ink); font-size: .95rem; }
.nav > a:hover { color: var(--terra); }
.nav-cta {
  background: var(--terra); color: #fff !important;
  padding: 9px 16px; border-radius: 999px; font-weight: 600;
}
.nav-cta:hover { background: var(--terra-dark); }
.langs { display: inline-flex; gap: 4px; }
.langs a {
  text-decoration: none; font-size: .8rem; font-weight: 700; letter-spacing: .05em;
  color: var(--muted); padding: 4px 7px; border-radius: 7px;
}
.langs a:hover { color: var(--terra); }
.langs a.is-active { background: var(--sand); color: var(--ink); }
.burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; padding: 0; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(24,16,8,.28) 0%, rgba(24,16,8,.10) 40%, rgba(24,16,8,.72) 100%);
}
.hero-in { position: relative; color: #fff; padding-block: 64px 72px; max-width: 1140px; width: 100%; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; font-weight: 700;
  color: #ffd9a8; margin-bottom: 14px; text-shadow: 0 1px 8px rgba(0,0,0,.4);
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem); max-width: 20ch; margin-bottom: .35em;
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
}
.hero-sub { max-width: 620px; font-size: 1.08rem; text-shadow: 0 1px 10px rgba(0,0,0,.5); color: #f6efe6; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 20px 0 26px; }
.chips li {
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.38);
  backdrop-filter: blur(6px); border-radius: 999px; padding: 7px 15px; font-size: .88rem; font-weight: 600;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none; text-align: center;
  font: 600 1rem var(--sans); padding: 13px 26px; border-radius: 999px; transition: .18s;
}
.btn-primary { background: var(--terra); color: #fff; }
.btn-primary:hover { background: var(--terra-dark); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.65); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.24); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { filter: brightness(1.1); }

/* ---------- highlights ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; margin-top: 34px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow);
}
.card h3 { margin: 14px 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card-ic {
  width: 46px; height: 46px; border-radius: 12px; background: var(--sand); color: var(--terra-dark);
  display: flex; align-items: center; justify-content: center;
}
.card-ic svg { width: 24px; height: 24px; }

/* ---------- apartment ---------- */
.apt { background: var(--sand); }
.apt-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.apt-note { font-size: .9rem; color: var(--muted); border-left: 3px solid var(--terra); padding-left: 12px; }
.facts { background: var(--card); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow); }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 7px 0 7px 30px; }
.ticks li + li { border-top: 1px dashed var(--line); }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 14px; width: 14px; height: 8px;
  border-left: 2.5px solid var(--terra); border-bottom: 2.5px solid var(--terra); transform: rotate(-45deg);
}

/* ---------- gallery ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 24px; }
.pill {
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 999px; padding: 8px 16px; font: 600 .88rem var(--sans); cursor: pointer; transition: .15s;
}
.pill:hover { border-color: var(--terra); color: var(--terra-dark); }
.pill.is-active { background: var(--terra); border-color: var(--terra); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 12px; }
.tile {
  position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: 10px; background: var(--sand);
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.tile:hover img { transform: scale(1.045); }
.tile:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; }
.tile.is-hidden { display: none; }

/* ---------- complex ---------- */
.complex { background: var(--sea); color: #f2ede4; }
.complex h2 { color: #fff; }
.complex .ticks li::before { border-color: #ffd9a8; }
.complex .ticks li + li { border-top-color: rgba(255,255,255,.18); }
.complex-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.complex-fig { display: grid; gap: 14px; margin: 0; }
.complex-fig img { border-radius: var(--radius); box-shadow: 0 16px 40px rgba(0,0,0,.35); }

/* ---------- location ---------- */
.loc-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; margin-top: 26px; align-items: stretch; }
.map-box { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 360px; background: var(--sand); }
.map-box iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
.dist-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow); }
.dist { list-style: none; margin: 0; padding: 0; }
.dist li { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; font-size: .95rem; }
.dist li + li { border-top: 1px dashed var(--line); }
.dist b { font-weight: 600; }
.dist span { color: var(--muted); white-space: nowrap; }
.loc-extra { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; margin-top: 28px; align-items: start; }
.good { background: var(--sand); border-radius: var(--radius); padding: 24px 26px; }
.vid video { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); background: #000; }
.vid-note { font-size: .88rem; color: var(--muted); margin-top: 8px; }

/* ---------- contact ---------- */
.contact { background: linear-gradient(180deg, var(--bg) 0%, var(--sand) 100%); }
.pending {
  background: #fff7e8; border: 1px solid #eed9ae; color: #7a5b23;
  border-radius: 10px; padding: 12px 16px; max-width: 820px; font-size: .95rem;
}
.ct-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; margin-top: 26px; align-items: start; }
.ct-cards { display: grid; gap: 14px; }
.ct-card {
  display: flex; align-items: center; gap: 14px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: .15s;
}
a.ct-card:hover { transform: translateY(-2px); border-color: var(--terra); }
.ct-ic {
  width: 42px; height: 42px; border-radius: 11px; background: var(--sand); color: var(--terra-dark);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.ct-ic svg { width: 22px; height: 22px; }
.ct-card b { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ct-card span.val { font-weight: 600; }
.ct-card.is-pending span.val { color: var(--muted); font-style: italic; font-weight: 400; }
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow); }
.form label { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.form input, .form textarea {
  width: 100%; margin-top: 5px; padding: 11px 13px; font: 400 1rem var(--sans); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 9px; background: var(--bg);
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--terra); background: #fff; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f-row.f-3 { grid-template-columns: 1fr 1fr .7fr; }
.f-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.f-note { font-size: .82rem; color: var(--muted); margin: 12px 0 0; }

/* ---------- footer ---------- */
.foot { background: #241c12; color: #cfc4b2; padding: 40px 0; }
.foot-tag { font-size: .95rem; margin-bottom: 6px; }
.foot-meta { font-size: .82rem; color: #988c77; margin: 0; }
.foot .langs a { color: #988c77; }
.foot .langs a.is-active { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 100; background: rgba(18, 12, 6, .95);
  display: flex; align-items: center; justify-content: center;
}
.lb[hidden] { display: none; }
.lb-fig { margin: 0; max-width: min(92vw, 1400px); max-height: 86vh; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lb-fig img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 6px; }
.lb-cap { color: #d8cdbb; font-size: .92rem; text-align: center; }
.lb-btn {
  position: fixed; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25);
  width: 48px; height: 48px; border-radius: 50%; font-size: 26px; line-height: 1; cursor: pointer; z-index: 101;
  display: flex; align-items: center; justify-content: center;
}
.lb-btn:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .apt-grid, .complex-grid, .loc-grid, .loc-extra, .ct-grid { grid-template-columns: 1fr; }
  .complex-fig { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  section { padding: 54px 0; }
  .nav {
    position: fixed; inset: 64px 0 auto 0; z-index: 49;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 10px 22px 18px; box-shadow: 0 20px 30px rgba(43,37,25,.12);
    transform: translateY(-130%); transition: transform .25s;
  }
  .nav.open { transform: translateY(0); }
  .nav > a { padding: 10px 0; font-size: 1.05rem; width: 100%; }
  .nav-cta { text-align: center; margin-top: 6px; }
  .langs { margin-top: 10px; }
  .burger { display: block; }
  .f-row, .f-row.f-3 { grid-template-columns: 1fr; }
  .complex-fig { grid-template-columns: 1fr; }
  .chips li { font-size: .8rem; padding: 6px 12px; }
  .hero { min-height: 88vh; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
