/* ===========================================
   RENTAL NOW LEASING — Hoja de estilos
   Paleta cálida: crema, terracota suave, salvia
   =========================================== */

:root {
  --cream:        #FBF7F0;
  --cream-deep:   #F3EBDD;
  --white:        #FFFFFF;
  --ink:          #2E2A24;
  --ink-soft:     #5C544A;
  --terracotta:   #C97B5A;
  --terracotta-d: #B0623F;
  --sage:         #7C8B6F;
  --sage-d:       #5F6E54;
  --sand:         #E8DCC8;
  --line:         #E4D9C6;
  --shadow-sm:    0 2px 8px rgba(46, 42, 36, 0.06);
  --shadow-md:    0 10px 30px rgba(46, 42, 36, 0.10);
  --shadow-lg:    0 24px 60px rgba(46, 42, 36, 0.14);
  --radius:       14px;
  --radius-lg:    22px;
  --maxw:         1180px;
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

em { font-style: italic; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta-d);
  margin-bottom: 14px;
}
.eyebrow-light { color: var(--sand); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(201, 123, 90, 0.32);
}
.btn-primary:hover {
  background: var(--terracotta-d);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(201, 123, 90, 0.42);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--terracotta);
  color: var(--terracotta-d);
  transform: translateY(-2px);
}
.btn-block { width: 100%; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 240, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--ink);
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--terracotta);
  color: var(--white);
  border-radius: 11px;
  flex-shrink: 0;
}
.logo-text em { color: var(--terracotta-d); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.main-nav a {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
  position: relative;
}
.main-nav a:not(.nav-cta):hover { color: var(--terracotta-d); }
.main-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--terracotta);
  transition: width 0.25s var(--ease);
}
.main-nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--ink);
  color: var(--cream);
  padding: 10px 22px;
  border-radius: 100px;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.nav-cta:hover { background: var(--terracotta-d); transform: translateY(-1px); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--line);
}
.lang-switch button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.lang-switch button:hover { color: var(--terracotta-d); }
.lang-switch button.active {
  color: var(--terracotta-d);
  background: var(--cream-deep);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 90px 0 110px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 15%, rgba(124, 139, 111, 0.18), transparent 70%),
    radial-gradient(ellipse 50% 45% at 10% 90%, rgba(201, 123, 90, 0.16), transparent 70%),
    var(--cream);
  z-index: -1;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(46,42,36,0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 80%);
}
.hero-content { max-width: 680px; }
.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.1rem);
  margin-bottom: 22px;
}
.hero h1 em { color: var(--terracotta-d); }
.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 34px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat strong {
  font-family: 'Fraunces', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}
.stat span {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 6px;
}

/* ===== SEARCH ===== */
.search-section {
  margin-top: -56px;
  position: relative;
  z-index: 5;
  padding-bottom: 30px;
}
.search-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 38px 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.search-title {
  font-size: 1.7rem;
  margin-bottom: 6px;
}
.search-hint {
  color: var(--ink-soft);
  font-size: 0.96rem;
  margin-bottom: 26px;
}
.search-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.9fr auto;
  gap: 16px;
  align-items: end;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.field input,
.field select,
.field textarea {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  background: var(--white);
}
.field input::placeholder,
.field textarea::placeholder { color: #A89C88; }
.field-btn { align-self: end; }
.btn-search { padding: 13px 30px; height: 47px; }

/* ===== SECTION HEAD ===== */
.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 50px;
}
.section-head h2 {
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  margin-bottom: 14px;
}
.section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ===== PROPERTIES ===== */
.properties-section { padding: 80px 0; }
.results-meta {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 26px;
  min-height: 20px;
}
.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.property-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.property-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.property-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.property-card:hover .property-img img { transform: scale(1.06); }
.property-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(251, 247, 240, 0.95);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
}
.property-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.property-price {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--terracotta-d);
  margin-bottom: 4px;
}
.property-price span {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ink-soft);
}
.property-title {
  font-size: 1.18rem;
  margin-bottom: 6px;
}
.property-loc {
  font-size: 0.9rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 16px;
}
.property-features {
  display: flex;
  gap: 16px;
  padding-top: 16px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.property-features span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.no-results {
  text-align: center;
  color: var(--ink-soft);
  font-size: 1.02rem;
  padding: 40px 0;
}
.no-results a { color: var(--terracotta-d); font-weight: 500; text-decoration: underline; }

/* ===== SERVICES ===== */
.services-section {
  padding: 90px 0;
  background: var(--cream-deep);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 26px;
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.service-icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  background: var(--cream);
  color: var(--terracotta-d);
  border-radius: 14px;
  margin-bottom: 20px;
}
.service-card:nth-child(2) .service-icon,
.service-card:nth-child(4) .service-icon { color: var(--sage-d); }
.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.service-card p {
  font-size: 0.93rem;
  color: var(--ink-soft);
}

/* ===== HOW IT WORKS ===== */
.how-section { padding: 90px 0; }
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}
.step {
  flex: 1;
  max-width: 320px;
  text-align: center;
  padding: 0 24px;
}
.step-num {
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  margin: 0 auto 20px;
  background: var(--terracotta);
  color: var(--white);
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 600;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(201, 123, 90, 0.3);
}
.step:nth-child(3) .step-num { background: var(--sage); box-shadow: 0 8px 20px rgba(124, 139, 111, 0.3); }
.step:nth-child(5) .step-num { background: var(--ink); box-shadow: 0 8px 20px rgba(46, 42, 36, 0.25); }
.step h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.step p {
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.step-connector {
  flex: 0 0 60px;
  height: 2px;
  background: var(--line);
  margin-top: 28px;
  position: relative;
}
.step-connector::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 7px; height: 7px;
  border-top: 2px solid var(--line);
  border-right: 2px solid var(--line);
  rotate: 45deg;
}

/* ===== CONTACT ===== */
.contact-section {
  padding: 90px 0;
  background: var(--ink);
  color: var(--cream);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.contact-text h2 {
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  margin-bottom: 16px;
  color: var(--white);
}
.contact-text h2 { color: var(--cream); }
.contact-text > p {
  color: #C9C0B2;
  font-size: 1.05rem;
  margin-bottom: 30px;
}
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 0.98rem;
  color: var(--cream);
}
.contact-list svg { color: var(--terracotta); flex-shrink: 0; }

.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-form .field label { color: var(--ink-soft); }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-note {
  text-align: center;
  color: var(--sage-d);
  font-size: 0.92rem;
  font-weight: 500;
  background: #EEF1EA;
  padding: 12px;
  border-radius: 10px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #25221D;
  color: #B8AF9F;
  padding: 60px 0 28px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 50px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.logo-footer { color: var(--cream); margin-bottom: 14px; }
.footer-brand p {
  font-size: 0.95rem;
  max-width: 320px;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 4px;
}
.footer-col a,
.footer-col span {
  font-size: 0.92rem;
  color: #B8AF9F;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--terracotta); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.85rem;
  color: #847B6C;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-content > * {
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) forwards;
}
.hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.hero-content > *:nth-child(2) { animation-delay: 0.15s; }
.hero-content > *:nth-child(3) { animation-delay: 0.25s; }
.hero-content > *:nth-child(4) { animation-delay: 0.35s; }
.hero-content > *:nth-child(5) { animation-delay: 0.45s; }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .search-grid { grid-template-columns: 1fr 1fr; }
  .field-btn { grid-column: 1 / -1; }
  .btn-search { width: 100%; }
  .properties-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .steps { flex-direction: column; align-items: center; gap: 40px; }
  .step-connector { display: none; }
  .step { max-width: 420px; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 28px 28px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    transition: transform 0.35s var(--ease);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .main-nav .nav-cta {
    margin-top: 14px;
    text-align: center;
    border-bottom: none;
  }
  .lang-switch {
    margin-top: 16px;
    justify-content: center;
    padding-top: 4px;
  }
  .lang-switch button { padding: 6px 12px; font-size: 0.95rem; }
  .nav-toggle { display: flex; }
  .container { padding: 0 20px; }
  .hero { padding: 60px 0 90px; }
  .hero-stats { gap: 32px; }
  .stat strong { font-size: 1.8rem; }
  .search-card { padding: 28px 22px; }
  .search-grid { grid-template-columns: 1fr; }
  .properties-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 26px 22px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .properties-section,
  .services-section,
  .how-section,
  .contact-section { padding: 60px 0; }
}
