/* ========== LOTUS BIENES RAÍCES ========== */
:root {
  --cream: #faf7f2;
  --cream-2: #f2ece1;
  --ink: #1a1a1a;
  --ink-2: #2e2e2e;
  --ink-3: #6b6b6b;
  --forest: #1e3a2e;
  --forest-2: #2a5240;
  --gold: #c9a961;
  --gold-2: #b38a3c;
  --gold-soft: #e6c883;
  --pink: #e8b4b8;
  --pink-soft: #f4d7d9;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(30,58,46,.08);
  --shadow-md: 0 8px 28px rgba(30,58,46,.12);
  --shadow-lg: 0 24px 60px rgba(30,58,46,.18);
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1240px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { opacity: .75; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.mt-5 { margin-top: 3rem; }
.hide-sm { display: inline; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--ink); letter-spacing: -.01em; line-height: 1.15; }
h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); font-weight: 400; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 400; }
h3 { font-size: 1.2rem; font-weight: 400; }
h4 { font-weight: 400; }
em { font-style: italic; color: var(--gold-2); font-weight: 400; }
strong, b { font-weight: 500; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--gold-2);
  margin-bottom: 1rem;
}

.lede {
  font-size: 1.25rem;
  color: var(--ink-3);
  max-width: 860px;
  margin: 1rem auto 0;
  line-height: 1.55;
}

/* ========== TOP BAR ========== */
.topbar {
  background: var(--forest);
  color: #e9e3d3;
  font-size: .82rem;
  padding: 9px 0;
  letter-spacing: .02em;
}
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar__right { display: flex; gap: 20px; }
.topbar a:hover { color: var(--gold-soft); opacity: 1; }

/* ========== NAV ========== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, .92);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid rgba(30,58,46,.08);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__mark { width: 37px; height: 37px; flex-shrink: 0; }
.brand--logo { gap: 0; }
.brand--logo img { display: block; height: auto; max-height: 59px; width: auto; max-width: none; }
.brand--footer.brand--logo img { max-height: 52px; }
@media (max-width: 720px) {
  .brand--logo img { max-height: 45px; }
  .brand--footer.brand--logo img { max-height: 42px; }
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; color: var(--forest); letter-spacing: .02em; }
.brand__sub { font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-2); margin-top: 4px; font-weight: 500; }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: .92rem; font-weight: 500; color: var(--ink-2); position: relative; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav__links a:not(.btn):hover { opacity: 1; }
.nav__links a:not(.btn):hover::after { transform: scaleX(1); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--forest); transition: transform .3s ease, opacity .3s ease; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 500;
  font-size: .92rem;
  letter-spacing: .02em;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary { background: var(--forest); color: var(--cream); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--forest-2); transform: translateY(-2px); box-shadow: var(--shadow-md); opacity: 1; }
.btn--ghost { background: transparent; border: 1.5px solid var(--forest); color: var(--forest); padding: 12px 26px; }
.btn--ghost:hover { background: var(--forest); color: var(--cream); opacity: 1; }
.btn--wide { width: 100%; }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 72px 0 80px;
}
.hero__bg {
  position: absolute; inset: 0;
  background-image: url("/hero.jpg");
  background-size: cover;
  background-position: center;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(30,58,46,.92) 0%, rgba(30,58,46,.72) 45%, rgba(30,58,46,.45) 100%);
}
.hero__content { position: relative; z-index: 2; color: var(--cream); max-width: 920px; }
.hero__eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 28px;
  border: 1px solid rgba(255,255,255,.18);
}
.hero__title { color: var(--cream); margin-bottom: 22px; text-shadow: 0 2px 40px rgba(0,0,0,.3); }
.hero__title em { color: var(--gold-soft); font-style: italic; }
.hero__lede { color: rgba(255,255,255,.9); font-size: 1.15rem; max-width: 560px; margin-bottom: 42px; }

/* ========== SEARCH CARD ========== */
.search {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-lg);
  max-width: 960px;
}
.search__tabs { display: flex; gap: 8px; padding: 0 12px 8px; }
.search__tab {
  padding: 10px 22px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink-3);
  border-radius: 999px;
  transition: all .2s ease;
}
.search__tab.is-active { background: var(--cream-2); color: var(--forest); }
.search__tab:hover { color: var(--forest); }

.search__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 8px;
  padding: 8px;
  background: var(--cream);
  border-radius: var(--radius);
}
.field { display: flex; flex-direction: column; padding: 10px 14px; border-right: 1px solid rgba(30,58,46,.08); min-width: 0; }
.field:last-of-type { border-right: none; }
.field span { font-size: .7rem; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin-bottom: 4px; }
.field select, .field input {
  border: none; background: transparent; font-family: inherit; font-size: .95rem; color: var(--ink); font-weight: 500;
  outline: none; padding: 0; width: 100%; min-width: 0;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%231e3a2e' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right center;
  padding-right: 18px;
}
.search__btn { align-self: stretch; }

/* ========== STATS ========== */
.stats { padding: 60px 0; background: var(--cream); border-bottom: 1px solid rgba(30,58,46,.06); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stats__grid div { display: flex; flex-direction: column; gap: 6px; }
.stats__grid strong { font-family: var(--serif); font-size: 3rem; color: var(--forest); font-weight: 500; line-height: 1; }
.stats__grid span { font-size: .85rem; color: var(--ink-3); letter-spacing: .02em; }

/* ========== SECTIONS ========== */
.section { padding: 110px 0; }
.section--alt { background: var(--cream-2); }
.section--dark { background: var(--forest); color: var(--cream); }
.section--dark h2, .section--dark h3 { color: var(--cream); }
.section--dark .lede { color: rgba(255,255,255,.78); }
.section--dark .eyebrow { color: var(--gold-soft); }

.section__head { text-align: center; max-width: 900px; margin: 0 auto 60px; }
.section__head--left { text-align: left; max-width: none; margin-left: 0; margin-right: 0; }
.section__head--light h2 { color: var(--cream); }

/* ========== PROPERTY CARDS ========== */
.filters-chips { display: flex; gap: 10px; justify-content: center; margin-bottom: 40px; flex-wrap: wrap; }
.chip {
  padding: 10px 22px;
  border: 1px solid rgba(30,58,46,.18);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--white);
  transition: all .2s ease;
}
.chip:hover { border-color: var(--forest); }
.chip.is-active { background: var(--forest); color: var(--cream); border-color: var(--forest); }

.grid { display: grid; gap: 32px; }
.grid--cards { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--cream-2);
}
.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.card__img::after { content: none; }
.card__tag {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: var(--gold);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.card__tag--tx {
  background: var(--forest);
  left: auto; right: 16px;
}
.card__tag--sold {
  background: #b91c1c;
}
.card--sold {
  opacity: .88;
}
.card--sold .card__img {
  filter: grayscale(60%) brightness(0.88);
}
.card--sold .card__img::before {
  content: "VENDIDO";
  position: absolute; top: 50%; left: 50%; z-index: 3;
  transform: translate(-50%, -50%) rotate(-20deg);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-shadow: 0 2px 10px rgba(0,0,0,.7);
  pointer-events: none;
  white-space: nowrap;
}
.card__price {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--ink-1);
  letter-spacing: -.02em;
  padding-top: 2px;
}
.card__body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.card__title { font-size: 1.35rem; }
.card__loc { font-size: .88rem; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.card__specs {
  display: flex; gap: 16px;
  padding-top: 14px;
  margin-top: auto;
  border-top: 1px solid rgba(30,58,46,.08);
  font-size: .82rem;
  color: var(--ink-3);
}
.card__specs span { display: flex; align-items: center; gap: 5px; }

/* ========== SKELETON LOADING ========== */
.card--skeleton { pointer-events: none; }
.card--skeleton .card__img {
  background: linear-gradient(90deg, var(--cream-2) 25%, #f8f4ee 50%, var(--cream-2) 75%);
  background-size: 200% 100%;
  animation: skel-shimmer 1.4s ease-in-out infinite;
}
.skel-line {
  border-radius: 6px;
  background: linear-gradient(90deg, var(--cream-2) 25%, #f8f4ee 50%, var(--cream-2) 75%);
  background-size: 200% 100%;
  animation: skel-shimmer 1.4s ease-in-out infinite;
}
.skel-line--title { height: 20px; width: 72%; }
.skel-line--loc { height: 13px; width: 52%; }
.skel-line--specs { height: 13px; width: 88%; }
.skel-line--price { height: 22px; width: 38%; margin-top: auto; }
@keyframes skel-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ========== EMPTY STATE ========== */
.no-results {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 64px 24px;
  color: var(--ink-3);
}
.no-results svg { margin-bottom: 18px; opacity: .4; color: var(--gold-2); }
.no-results p { font-size: 1.05rem; color: var(--ink-2); margin-bottom: 6px; }
.no-results small { font-size: .88rem; }

/* ========== ZONES ========== */
.grid--zones { grid-template-columns: repeat(3, 1fr); }
.zone {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: transform .4s ease;
}
.zone:hover { transform: translateY(-4px); }
.zone:hover img { transform: scale(1.06); }
.zone::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.72));
  transition: opacity .3s ease;
}
.zone__body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 26px 28px;
  color: var(--cream);
}
.zone__body h3 { color: var(--cream); font-size: 1.8rem; margin-bottom: 4px; }
.zone__body span { font-size: .85rem; opacity: .85; letter-spacing: .05em; }
.zone__body .arrow { display: inline-block; margin-left: 8px; transition: transform .25s ease; }
.zone:hover .zone__body .arrow { transform: translateX(6px); }
.zone__count {
  display: inline-block;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .05em;
  padding: 3px 10px;
  border-radius: 999px;
  margin-top: 10px;
}

/* ========== ZONE / CONDO TOGGLE ========== */
.zone-toggle { display: flex; gap: 10px; justify-content: center; margin-bottom: 40px; }
.zone-toggle__btn {
  padding: 11px 36px;
  border: 2px solid rgba(30,58,46,.2);
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--white);
  cursor: pointer;
  transition: all .25s ease;
}
.zone-toggle__btn:hover { border-color: var(--forest); color: var(--forest); }
.zone-toggle__btn.is-active { background: var(--forest); color: var(--cream); border-color: var(--forest); }

/* ========== DEVELOPMENTS ========== */
.grid--dev { grid-template-columns: repeat(2, 1fr); gap: 32px; }
.dev {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease;
}
.dev:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.dev__img { aspect-ratio: 16/10; background-size: cover; background-position: center; flex-shrink: 0; }
.dev__body { padding: 28px 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.dev__tag { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); font-weight: 500; }
.dev__title { font-size: 1.45rem; }
.dev__loc { color: var(--ink-3); font-size: .88rem; margin-bottom: 4px; }
.dev__desc { font-size: .9rem; color: var(--ink-2); line-height: 1.55; }
.dev__foot { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: baseline; }
.dev__price { font-family: var(--serif); font-size: 1.2rem; color: var(--forest); font-weight: 500; }
.dev__link { font-size: .85rem; color: var(--gold-2); font-weight: 500; letter-spacing: .02em; }

/* ========== SERVICES ========== */
.grid--services { grid-template-columns: repeat(3, 1fr); gap: 32px; }
.service {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  padding: 52px 44px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(6px);
  transition: transform .3s ease, background .3s ease;
}
.service:hover { transform: translateY(-4px); background: rgba(255,255,255,.1); }
.service__icon { margin-bottom: 26px; }
.service h3 { color: var(--cream); margin-bottom: 14px; font-size: 1.5rem; }
.service p { color: rgba(255,255,255,.75); font-size: 1.18rem; line-height: 1.65; }

/* ========== STORY ========== */
.story { background: var(--cream); }
.story__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.story__image { position: relative; }
.story__photo {
  aspect-ratio: 4/5;
  background: url("https://images.unsplash.com/photo-1564501049412-61c2a3083791?w=1200&q=80") center/cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.story__photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(30,58,46,.18), transparent 50%);
  border-radius: var(--radius-lg);
}
.story__badge {
  position: absolute;
  right: -26px; bottom: 40px;
  background: var(--white);
  padding: 16px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 2;
}
.story__badge strong { display: block; color: var(--forest); font-family: var(--serif); font-size: 1.1rem; }
.story__badge span { font-size: .75rem; color: var(--ink-3); }
.story__body h2 { font-size: clamp(1.5rem, 2.5vw, 2.1rem); margin-bottom: 40px; line-height: 1.25; }
.story__body p:not(.eyebrow) { color: var(--ink-2); margin-bottom: 20px; font-size: 1.18rem; line-height: 1.7; text-align: justify; }
.step p { text-align: left; }
.story__body strong { font-weight: 500; color: var(--forest); }
.story__signature { margin-top: 30px; font-family: var(--serif); font-size: 1.4rem; color: var(--gold-2); font-weight: 400; }

/* ========== STEPS ========== */
.grid--steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step {
  background: var(--white);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform .3s ease;
}
.step:hover { transform: translateY(-4px); }
.step__num {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 12px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 1.12rem; color: var(--ink-3); line-height: 1.6; }

/* ========== TESTIMONIALS CAROUSEL ========== */
.testimonials-carousel { position: relative; display: flex; align-items: center; gap: 16px; }
.testimonials-clip { flex: 1; min-width: 0; overflow: hidden; }
.testimonials-track { display: flex; gap: 28px; transition: transform .45s cubic-bezier(.4,0,.2,1); }
.testimonials-track .quote { flex: 0 0 calc(33.33% - 19px); min-width: 0; }
.testimonials-btn { flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; background: var(--white); color: var(--forest); box-shadow: 0 2px 12px rgba(30,58,46,.13); transition: background .2s, color .2s, transform .15s, box-shadow .2s; }
.testimonials-btn:hover:not(:disabled) { background: var(--forest); color: var(--cream); box-shadow: 0 4px 20px rgba(30,58,46,.22); transform: scale(1.08); }
.testimonials-btn:active:not(:disabled) { transform: scale(.96); }
.testimonials-btn:disabled { opacity: .3; cursor: default; box-shadow: none; }
.testimonials-btn--side { position: static; }

.quote {
  padding: 38px 32px 20px;
  border-radius: var(--radius-lg);
  position: relative;
  height: 480px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(201,169,97,.7) rgba(201,169,97,.12);
  background:
    linear-gradient(var(--cream-2), transparent) center top  / 100% 48px no-repeat local,
    linear-gradient(transparent, var(--cream-2)) center bottom / 100% 60px no-repeat local,
    linear-gradient(transparent, rgba(201,169,97,.15)) center bottom / 100% 60px no-repeat scroll,
    var(--cream-2);
}
.quote__scroll-btn {
  position: sticky;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(201,169,97,.55);
  background: rgba(255,255,255,.92);
  color: var(--gold);
  cursor: pointer;
  margin: 12px auto 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity .2s, background .2s, border-color .2s;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}
.quote__scroll-btn:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.quote::-webkit-scrollbar { width: 6px; }
.quote::-webkit-scrollbar-track { background: rgba(201,169,97,.12); border-radius: 3px; }
.quote::-webkit-scrollbar-thumb { background: rgba(201,169,97,.7); border-radius: 3px; }
.quote::before {
  content: "\201C";
  position: absolute;
  top: 10px; left: 22px;
  font-family: var(--serif);
  font-size: 5rem;
  color: var(--gold);
  line-height: 1;
  opacity: .45;
}
.quote__body {
  font-family: var(--sans);
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  color: var(--ink-2);
  line-height: 1.6;
  text-align: justify;
  position: relative;
  z-index: 1;
  margin-bottom: 22px;
}
.quote p, .quote__body > div {
  font-family: var(--sans);
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  color: var(--ink-2);
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}
.quote__body > p:last-child, .quote__body > div:last-child { margin-bottom: 0; }
.quote footer strong { display: block; color: var(--forest); font-weight: 500; font-family: 'Abside Round1', var(--serif); }
.quote footer span { font-size: .82rem; color: var(--ink-3); font-family: 'Abside Round1', var(--serif); }

/* ========== SELL WITH US ========== */
.sell {
  background: linear-gradient(135deg, var(--cream-2), var(--pink-soft));
}
.sell__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.sell__inner h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
.checks { list-style: none; margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.checks li {
  position: relative; padding-left: 32px; font-size: 1.2rem; color: var(--ink-2);
}
.checks li::before {
  content: "✓";
  position: absolute; left: 0;
  width: 22px; height: 22px;
  background: var(--forest);
  color: var(--cream);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 500;
  top: 2px;
}
.sell__form {
  background: var(--white);
  padding: 42px 38px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 16px;
}
.sell__form h3 { font-size: 1.55rem; margin-bottom: 8px; color: var(--forest); }

/* ========== FORMS (shared) ========== */
label { display: flex; flex-direction: column; gap: 6px; font-size: .82rem; font-weight: 500; color: var(--ink-2); }
label input, label select, label textarea {
  font-family: inherit;
  font-size: .98rem;
  font-weight: 400;
  padding: 13px 16px;
  border: 1.5px solid rgba(30,58,46,.15);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  outline: none;
  transition: border-color .2s ease, background .2s ease;
}
label input:focus, label select:focus, label textarea:focus { border-color: var(--gold); background: var(--white); }
label textarea { resize: vertical; font-family: inherit; }

/* Required field asterisk */
label:has(input[required]) > span:first-child::after,
label:has(textarea[required]) > span:first-child::after {
  content: ' *';
  color: #b91c1c;
}
/* Validation error states */
label input.is-invalid,
label select.is-invalid,
label textarea.is-invalid { border-color: #b91c1c; background: #fff9f9; }
.field-error { font-size: .78rem; color: #b91c1c; margin-top: 2px; }

/* ========== CONTACT ========== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.contact__info h2 { color: var(--cream); margin-bottom: 16px; }
.contact__list { list-style: none; margin-top: 34px; display: flex; flex-direction: column; gap: 22px; }
.contact__list li { display: flex; gap: 16px; color: rgba(255,255,255,.88); }
.contact__list span { font-size: 1.4rem; flex-shrink: 0; }
.contact__list strong { display: block; color: var(--gold-soft); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 2px; font-weight: 500; }
.contact__list a { color: rgba(255,255,255,.9); }
.contact__list a:hover { color: var(--gold-soft); opacity: 1; }
.social { display: flex; gap: 12px; margin-top: 36px; }
.social a { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.1); color: rgba(255,255,255,.85); transition: all .2s; border: 1px solid rgba(255,255,255,.15); }
.social a:hover { background: var(--gold); color: var(--white); border-color: var(--gold); opacity: 1; }

.contact__form {
  background: var(--white);
  padding: 42px 38px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 16px;
}
.contact__form label { color: var(--ink-2); }

/* ========== FOOTER ========== */
.footer { background: #113632; color: rgba(255,255,255,.7); padding: 80px 0 30px; }
.footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 50px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer h4 { color: var(--cream); font-size: 1rem; font-family: var(--sans); font-weight: 500; letter-spacing: .04em; margin-bottom: 18px; }
.footer a, .footer span { display: block; font-size: .88rem; padding: 4px 0; color: rgba(255,255,255,.65); }
.footer a:hover { color: var(--gold-soft); opacity: 1; }
.brand--footer .brand__name { color: var(--cream); }
.brand--footer .brand__sub { color: var(--gold-soft); }
.footer__tag { margin-top: 20px; font-size: .88rem; line-height: 1.6; color: rgba(255,255,255,.55); }
.footer__bottom { display: flex; justify-content: space-between; padding-top: 26px; font-size: .8rem; color: rgba(255,255,255,.45); }

/* ========== FLOATING WHATSAPP ========== */
.fab {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 60px; height: 60px;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  box-shadow: 0 10px 30px rgba(37,211,102,.5);
  z-index: 80;
  transition: transform .2s ease;
}
.fab:hover { transform: scale(1.08); opacity: 1; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .section { padding: 90px 0; }
  .section__head { margin-bottom: 52px; }
  .grid--cards, .grid--services, .grid--steps, .grid--zones { grid-template-columns: repeat(2, 1fr); }
  .grid--dev { grid-template-columns: 1fr; }
  .story__grid, .sell__inner, .contact { grid-template-columns: 1fr; gap: 50px; }
  .search__grid { grid-template-columns: repeat(2, 1fr); }
  .field:nth-child(2) { border-right: none; }
  .search__btn { grid-column: 1 / -1; padding: 18px; min-height: 52px; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .testimonials-track .quote { flex: 0 0 calc(50% - 14px); }
  .service { padding: 40px 32px; }
  /* Larger touch targets for tablet */
  .field { padding: 12px 16px; min-height: 64px; justify-content: center; }
  .btn { min-height: 48px; }
  .chip { padding: 12px 24px; min-height: 44px; }
}

/* ========== iPAD PORTRAIT / LARGE TABLET (721px – 900px) ========== */
@media (max-width: 900px) {
  /* Hamburger nav — iPad portrait has too many links to show inline */
  .nav__links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 30px 24px;
    gap: 22px;
    border-bottom: 1px solid rgba(30,58,46,.1);
    transform: translateY(-120%);
    transition: transform .3s ease;
    box-shadow: var(--shadow-md);
    z-index: 49;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__toggle { display: flex; }
  .nav__links a { font-size: 1.05rem; }
  .nav__links a:not(.btn) { padding: 6px 0; }
  /* Hero — reduce vertical whitespace on iPad portrait */
  .hero { padding: 60px 0 68px; }
  .hero__lede { font-size: 1.05rem; margin-bottom: 36px; }
  /* Search — 2 cols already set at 1024px; stack Buscar below */
  .search__grid { gap: 6px; }
  /* Stats — 4 columns are cramped at ~768px; drop to 2×2 */
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  /* Eyebrow slightly smaller */
  .eyebrow { font-size: 1.25rem; }
  /* Section head tighter */
  .section__head { margin-bottom: 44px; }
  /* Card gap slightly tighter */
  .grid { gap: 24px; }
  /* Dev feature image */
  .dev__img { aspect-ratio: 16/9; }
  /* Container side padding */
  .container { padding: 0 28px; }
}

@media (max-width: 720px) {
  .section { padding: 80px 0; }
  .section__head { margin-bottom: 44px; }
  .hide-sm { display: none !important; }
  .nav__links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 30px 24px;
    gap: 22px;
    border-bottom: 1px solid rgba(30,58,46,.1);
    transform: translateY(-120%);
    transition: transform .3s ease;
    box-shadow: var(--shadow-md);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__toggle { display: flex; }
  .nav__links a { font-size: 1.1rem; }
  .nav__links a:not(.btn) { padding: 6px 0; }
  .hero { min-height: auto; padding: 70px 0 60px; }
  .hero__lede { font-size: 1rem; margin-bottom: 34px; }
  .search__grid { grid-template-columns: 1fr; padding: 6px; }
  .field { border-right: none; border-bottom: 1px solid rgba(30,58,46,.08); padding: 12px 16px; }
  .field:last-of-type { border-bottom: none; }
  .grid--cards, .grid--services, .grid--steps, .grid--zones { grid-template-columns: 1fr; }
  .testimonials-track .quote { flex: 0 0 100%; }
  .testimonials-btn { width: 40px; height: 40px; }
  .testimonials-btn svg { width: 18px; height: 18px; }
  .testimonials-carousel { gap: 10px; }
  .dev__img { aspect-ratio: 16/9; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 30px; padding: 0; }
  .stats { padding: 50px 0; }
  .topbar { padding: 7px 0; }
  .topbar__left { font-size: .7rem; }
  .topbar__left span:first-child { display: none; }
  .topbar__right { gap: 14px; font-size: .72rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { flex-direction: column; gap: 10px; text-align: center; }
  .story__badge { right: 16px; bottom: 16px; }
  .sell__form, .contact__form { padding: 32px 24px; }
  .fab { width: 54px; height: 54px; bottom: 18px; right: 18px; font-size: 24px; }
  /* Remove backdrop-filter on mobile: WebKit compositing can bleed into the topbar
     above the sticky nav and create a phantom cream overlay ("white stripe" bug). */
  .nav {
    background: rgba(250, 247, 242, 1);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* ========== LANDSCAPE MOBILE ========== */
/* iPhones in landscape are 667-932 px wide (> 720px breakpoint) so they get
   desktop rules, but their viewport is only ~310-360 px tall after browser chrome.
   Target this with max-height so tablets in landscape (taller screen) are unaffected. */
@media (orientation: landscape) and (max-height: 500px) {
  .topbar { display: none; }
  .nav__inner { padding: 6px 24px; }
  .brand--logo img { max-height: 32px; }
  .brand__mark { width: 29px; height: 29px; }
  /* Compact hero so the heading and search box are reachable without scrolling */
  .hero { padding: 24px 0 20px; }
  .hero__eyebrow { font-size: .75rem; padding: 5px 14px; margin-bottom: 10px; }
  .hero__title { font-size: clamp(1.6rem, 5vw, 2.4rem); margin-bottom: 10px; }
  .hero__lede { font-size: .88rem; margin-bottom: 16px; }
  .section { padding: 60px 0; }
  /* Mobile-style nav links in landscape (still narrow enough to need hamburger on many devices) */
  .nav__links {
    position: fixed;
    top: 48px; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(30,58,46,.1);
    transform: translateY(-120%);
    transition: transform .3s ease;
    box-shadow: var(--shadow-md);
    max-height: 75vh;
    overflow-y: auto;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__toggle { display: flex; }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
