/* ============================================================
   Casa Colima — Landing
   Palette inspired by Arekkusu / Iterativa look & feel:
   olive #5a5e3d · sand #e8e3d2 · cream #f4f0e3 · ink #2b2b25
   ============================================================ */

:root {
  --olive: #5a5e3d;
  --olive-deep: #4a4d33;
  --olive-soft: #6b6f48;
  --sand: #e8e3d2;
  --cream: #f4f0e3;
  --paper: #faf7ed;
  --ink: #2b2b25;
  --muted: #6c6a5d;
  --line: rgba(43, 43, 37, 0.14);
  --wa: #25d366;
  --wa-deep: #128c7e;

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --maxw: 1200px;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 820px; }
.narrow-text { max-width: 720px; }
.center { text-align: center; }

/* ---------- typography ---------- */
.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--olive);
  margin: 0 0 14px;
}
.eyebrow.center { display: block; }

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.005em;
  margin: 0 0 22px;
  color: var(--ink);
}
.display em { font-style: italic; color: var(--olive); }
.display.tight { margin-bottom: 12px; }

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.15;
  margin: 0 0 18px;
  letter-spacing: 0.005em;
}
.section-title.center { text-align: center; }

.lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 26px;
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--pad);
  background: var(--olive);
  color: var(--sand);
  border-bottom: 1px solid rgba(0,0,0,.12);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  height: 38px;
  width: auto;
  display: block;
}
@media (max-width: 480px) {
  .brand-logo { height: 30px; }
}

.topnav { margin-left: auto; display: flex; gap: 24px; }
.topnav a {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--sand); opacity: .88;
  transition: opacity .2s;
}
.topnav a:hover { opacity: 1; }

.topcta {
  background: var(--sand);
  color: var(--olive-deep);
  padding: 10px 16px;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 500;
  transition: background .2s;
}
.topcta:hover { background: #fff; }

@media (max-width: 820px) {
  .topnav { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-img {
  position: absolute; inset: 0;
  background: url('img/hero.jpg') center 30% / cover no-repeat;
  z-index: -2;
  transform: scale(1.02);
}
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.15) 50%, rgba(0,0,0,.65) 100%);
}
.hero-copy {
  color: #fff;
  padding: 60px var(--pad) 80px;
  max-width: 880px;
}
.hero-copy .eyebrow { color: var(--sand); opacity: .9; }

.hero h1 {
  margin: 0 0 18px;
  font-family: var(--serif);
  line-height: 0.95;
  font-weight: 300;
  color: #fff;
}
.hero-logo-wrap {
  display: block;
  margin: 0 0 24px;
}
.hero-logo {
  width: clamp(260px, 46vw, 560px);
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,.25));
}
.hero-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2vw, 24px);
  max-width: 620px;
  margin: 6px 0 28px;
  color: #fff;
  opacity: .95;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.btn-primary,
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s, background .2s, color .2s, border-color .2s;
}
.btn-primary {
  background: var(--wa);
  color: #fff;
}
.btn-primary:hover { background: var(--wa-deep); transform: translateY(-1px); }
.btn-primary svg { width: 18px; height: 18px; }
.btn-primary.big { padding: 18px 28px; font-size: 14px; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.55);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }

.cta-row { display: flex; justify-content: center; margin-top: 12px; }

/* ---------- oportunidad ---------- */
.oportunidad {
  background: var(--cream);
  padding: clamp(70px, 9vw, 130px) 0;
  text-align: center;
}
.oportunidad .display { text-align: center; }
.oportunidad .lead { text-align: center; margin-left: auto; margin-right: auto; }

.stats {
  list-style: none;
  margin: 36px 0 28px;
  padding: 28px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  gap: 24px;
}
.stats li { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 44px);
  color: var(--olive);
  line-height: 1.05;
}
.stat-num small { font-size: 0.5em; opacity: .7; letter-spacing: .04em; }
.stat-lbl {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr; gap: 28px; padding: 24px 0; }
}

/* ---------- why ---------- */
.why {
  background: var(--paper);
  padding: clamp(70px, 8vw, 110px) 0;
  text-align: center;
}
.why .section-title { text-align: center; margin-bottom: 50px; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: left;
}
.why-grid article {
  background: var(--cream);
  padding: 32px 26px 34px;
  border-top: 2px solid var(--olive);
}
.why-num {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--olive);
  letter-spacing: 0.15em;
  margin-bottom: 18px;
}
.why-grid h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 10px;
}
.why-grid p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
@media (max-width: 980px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- band ---------- */
.band {
  position: relative;
  height: 46vh; min-height: 320px;
  overflow: hidden;
  isolation: isolate;
}
.band-img {
  position: absolute; inset: 0; z-index: -2;
  background: url('img/lifestyle.jpg') center/cover no-repeat;
}
.band-overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(74,77,51,.55), rgba(43,43,37,.65));
  padding: 0 var(--pad);
}
.band-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 3vw, 36px);
  color: #fff;
  text-align: center;
  max-width: 820px;
  line-height: 1.3;
  margin: 0;
}

/* ---------- ubicacion ---------- */
.ubicacion {
  background: var(--paper);
  padding: clamp(70px, 8vw, 110px) 0;
}
.map-wrap {
  margin-top: 32px;
  position: relative;
  border: 1px solid var(--line);
  background: var(--sand);
  overflow: hidden;
}
.map-wrap img { width: 100%; display: block; }
.map-cta {
  position: absolute; bottom: 18px; right: 18px;
  background: var(--olive);
  color: #fff;
  padding: 10px 16px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  transition: background .2s;
}
.map-cta:hover { background: var(--olive-deep); }
.address {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.04em;
}

/* ---------- midcta ---------- */
.midcta {
  background: var(--olive);
  color: var(--sand);
  text-align: center;
  padding: clamp(70px, 8vw, 110px) 0;
}
.midcta .display { color: #fff; }
.midcta .lead { color: rgba(255,255,255,.85); margin-left: auto; margin-right: auto; }

/* ---------- galeria ---------- */
.galeria { background: var(--paper); padding: clamp(70px, 8vw, 110px) 0; }
.gallery-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 10px;
}
.gallery-grid figure { margin: 0; overflow: hidden; background: var(--sand); }
.gallery-grid figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.gallery-grid figure:hover img { transform: scale(1.04); }
.g-big { grid-column: span 2; grid-row: span 2; }
.g-wide { grid-column: span 2; }
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .g-big { grid-column: span 2; grid-row: span 1; }
  .g-wide { grid-column: span 2; }
}

/* ---------- footer ---------- */
.foot {
  background: var(--olive-deep);
  color: var(--sand);
  padding: 64px 0 0;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  align-items: start;
}
.foot-logo {
  height: 70px;
  width: auto;
  display: block;
  margin: 0 0 18px;
}
.foot-sub { margin: 0 0 8px; opacity: .85; }
.foot-brand a { color: var(--sand); text-decoration: underline; opacity: .9; }
.foot-label { font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; opacity: .7; margin: 0 0 6px; }
.foot-phone {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  color: #fff;
  margin: 6px 0 18px;
  letter-spacing: 0.02em;
}
.foot-addr { margin: 18px 0 0; font-size: 14px; opacity: .8; }
.foot-legal {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px var(--pad);
  text-align: center;
  font-size: 12px;
  opacity: .65;
}
.foot-legal p { margin: 0; max-width: 900px; margin-left: auto; margin-right: auto; }
@media (max-width: 720px) {
  .foot-grid { grid-template-columns: 1fr; }
}

/* ---------- floating whatsapp ---------- */
.float-wa {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 58px; height: 58px;
  background: var(--wa);
  color: #fff;
  display: grid; place-items: center;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  z-index: 60;
  transition: transform .15s, background .2s;
}
.float-wa:hover { background: var(--wa-deep); transform: translateY(-2px); }
.float-wa svg { width: 32px; height: 32px; }

/* ---------- vertical side tab ---------- */
.side-tab {
  position: fixed;
  left: 0; top: 50%;
  transform: translateY(-50%) rotate(-180deg);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  background: var(--olive);
  color: var(--sand);
  padding: 14px 8px;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  z-index: 55;
  transition: background .2s;
}
.side-tab:hover { background: var(--olive-deep); }
@media (max-width: 720px) { .side-tab { display: none; } }
