/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

:root {
  /* Boutique / cálido — arcilla, oliva y crema */
  --bg:      #faf6ef;
  --bg-2:    #f1e9dc;
  --card:    #fffdf9;
  --text:    #2c241c;
  --text-2:  #7c6f60;
  --accent:  #b5622c;
  --accent-h:#9a5023;
  --green:   #4f5b3e;
  --green-h: #3e4830;
  --green-d: #2c3423;
  --sage:    #eef0e2;
  --border:  #e8ddc9;
  --wa:      #25d366;
  --wa-h:    #1db954;
  --radius:     20px;
  --radius-sm:  12px;
  --ease-out:    cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --shadow-sm: 0 1px 2px rgba(44,36,28,.06), 0 2px 8px rgba(44,36,28,.05);
  --shadow-md: 0 2px 4px rgba(44,36,28,.06), 0 12px 32px rgba(44,36,28,.10);
  --shadow-lg: 0 4px 8px rgba(44,36,28,.08), 0 24px 56px rgba(44,36,28,.16);
}

/* ===== DARK MODE ===== */
:root[data-theme="dark"] {
  --bg:      #1c1812;
  --bg-2:    #241f18;
  --card:    #2a251d;
  --text:    #f2ece0;
  --text-2:  #b3a692;
  --accent:  #e08a4f;
  --accent-h:#f0a066;
  --green:   #8ea176;
  --green-h: #a3b78a;
  --green-d: #171410;
  --sage:    #2a2e21;
  --border:  #3a3226;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3), 0 2px 8px rgba(0,0,0,.25);
  --shadow-md: 0 2px 4px rgba(0,0,0,.3), 0 12px 32px rgba(0,0,0,.35);
  --shadow-lg: 0 4px 8px rgba(0,0,0,.35), 0 24px 56px rgba(0,0,0,.5);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:      #1c1812;
    --bg-2:    #241f18;
    --card:    #2a251d;
    --text:    #f2ece0;
    --text-2:  #b3a692;
    --accent:  #e08a4f;
    --accent-h:#f0a066;
    --green:   #8ea176;
    --green-h: #a3b78a;
    --green-d: #171410;
    --sage:    #2a2e21;
    --border:  #3a3226;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3), 0 2px 8px rgba(0,0,0,.25);
    --shadow-md: 0 2px 4px rgba(0,0,0,.3), 0 12px 32px rgba(0,0,0,.35);
    --shadow-lg: 0 4px 8px rgba(0,0,0,.35), 0 24px 56px rgba(0,0,0,.5);
  }
}
body { transition: background-color .3s ease, color .3s ease; }

/* Theme toggle button */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--border);
  background: var(--card); color: var(--text); cursor: pointer; flex-shrink: 0;
  transition: border-color .2s, transform .25s var(--ease-spring), background .2s;
}
.theme-toggle:hover { border-color: var(--accent); transform: scale(1.06) rotate(-8deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

::selection { background: rgba(181,98,44,.22); }

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #d8c8ad; border-radius: 8px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #c2ac82; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .45; transform: scale(.8); }
}
@keyframes waPulse {
  0%   { transform: scale(1);   opacity: .45; }
  70%  { transform: scale(1.75); opacity: 0; }
  100% { transform: scale(1.75); opacity: 0; }
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes modalInBottom {
  from { opacity: 0; transform: translateY(56px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== HEADER ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  animation: fadeIn .4s ease both;
  transition: box-shadow .35s var(--ease-out), background-color .35s var(--ease-out);
}
.header.header-scrolled {
  background: color-mix(in srgb, var(--bg) 97%, transparent);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 1rem;
}
.auth-bar { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.logo { display: flex; align-items: baseline; gap: 0; }
.logo-mark {
  font-family: 'Lora', serif;
  font-size: 1.08rem; font-weight: 700; letter-spacing: -.01em; color: var(--text);
}
.logo-sep { color: var(--accent); opacity: .5; }
.logo-sub { font-size: .82rem; font-weight: 600; color: var(--green); }
.nav { display: flex; align-items: center; gap: 2rem; font-size: .875rem; }
.nav a { color: var(--text-2); transition: color .2s; position: relative; }
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: -5px;
  width: 100%; height: 2px; background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: right;
  transition: transform .3s var(--ease-out);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ===== HAMBURGER & MOBILE NAV ===== */
.nav-ham {
  display: none; background: none; border: none; cursor: pointer;
  padding: .4rem; border-radius: 8px; flex-shrink: 0;
  transition: background .15s;
}
.nav-ham:hover { background: var(--bg-2); }
.ham-icon { display: flex; flex-direction: column; gap: 5px; width: 22px; }
.ham-icon span {
  display: block; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform .25s, opacity .2s;
}
.nav-ham.open .ham-icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-ham.open .ham-icon span:nth-child(2) { opacity: 0; }
.nav-ham.open .ham-icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav-overlay {
  display: flex; position: fixed; inset: 62px 0 0 0; z-index: 99;
  background: rgba(16,24,40,.45); backdrop-filter: blur(4px);
  flex-direction: column; align-items: stretch;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s var(--ease-out), visibility .3s var(--ease-out);
}
.mobile-nav-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-nav-links {
  background: var(--card); padding: 1.25rem 1.5rem;
  display: flex; flex-direction: column; gap: .15rem;
  border-bottom: 1px solid var(--border);
  transform: translateY(-14px); opacity: 0;
  transition: transform .32s var(--ease-out), opacity .32s var(--ease-out);
}
.mobile-nav-overlay.open .mobile-nav-links { transform: translateY(0); opacity: 1; }
.mobile-nav-links a {
  display: block; padding: .75rem .5rem; font-size: 1rem;
  color: var(--text); border-radius: 8px;
  transition: background .15s, transform .2s var(--ease-out);
}
.mobile-nav-links a:hover { background: var(--bg-2); transform: translateX(4px); }
.mobile-nav-auth {
  background: var(--card); padding: 1.25rem 1.5rem;
  display: flex; flex-direction: column; gap: .6rem;
  transform: translateY(-14px); opacity: 0;
  transition: transform .34s var(--ease-out) .04s, opacity .34s var(--ease-out) .04s;
}
.mobile-nav-overlay.open .mobile-nav-auth { transform: translateY(0); opacity: 1; }

/* Auth bar responsive */
.auth-greeting { font-size: .85rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.btn-auth-sm { padding: .35rem .85rem !important; font-size: .8rem !important; }
.auth-txt-short { display: none; }

/* ===== HERO ===== */
.hero {
  position: relative; overflow: hidden;
  padding: 7rem 0 6rem;
  border-bottom: 1px solid var(--border);
}
.hero {
  background: linear-gradient(175deg, var(--bg) 0%, var(--bg-2) 100%);
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(640px 340px at 88% 18%, rgba(181,98,44,.12), transparent 70%),
    radial-gradient(520px 340px at 6% 90%, rgba(79,91,62,.10), transparent 70%),
    radial-gradient(400px 260px at 55% 5%, rgba(181,98,44,.06), transparent 70%);
}
.hero::after {
  content: '';
  position: absolute; right: -2rem; top: 50%;
  transform: translateY(-50%);
  width: clamp(220px, 26vw, 380px); height: clamp(220px, 26vw, 380px);
  border-radius: 50%;
  border: 1.5px dashed rgba(181,98,44,.22);
  pointer-events: none; user-select: none;
  animation: fadeIn 1.2s ease .6s both;
}
.hero-location {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .73rem; font-weight: 600; letter-spacing: .15em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1.6rem;
  animation: fadeUp .55s var(--ease-out) both; animation-delay: .1s;
}
.hero-location::before {
  content: ''; width: 26px; height: 2px; background: var(--accent);
  border-radius: 2px; opacity: .7;
}
.hero-title {
  font-family: 'Lora', serif;
  font-size: clamp(2.6rem, 5.8vw, 4rem);
  font-weight: 700; line-height: 1.08; color: var(--text); margin-bottom: 1.5rem;
  letter-spacing: -.015em;
  animation: fadeUp .65s var(--ease-out) both; animation-delay: .22s;
}
.hero-title em {
  font-style: italic; color: var(--accent);
  background: linear-gradient(transparent 62%, rgba(181,98,44,.16) 62%);
  padding: 0 .1em;
}
.hero-sub {
  font-size: 1.02rem; color: var(--text-2); line-height: 1.8;
  max-width: 420px; margin-bottom: 2.6rem;
  animation: fadeUp .65s var(--ease-out) both; animation-delay: .36s;
}
.hero .btn-primary {
  animation: fadeUp .65s var(--ease-out) both; animation-delay: .5s;
}
.hero-stats {
  display: flex; align-items: center; gap: 2.4rem; flex-wrap: wrap;
  margin-top: 3rem;
  animation: fadeUp .65s var(--ease-out) both; animation-delay: .62s;
}
.hero-stat { display: flex; flex-direction: column; gap: .1rem; position: relative; }
.hero-stat + .hero-stat::before {
  content: ''; position: absolute; left: -1.2rem; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 70%; background: var(--border);
}
.hero-stat strong {
  font-family: 'Lora', serif; font-size: 1.45rem; font-weight: 700;
  color: var(--green); letter-spacing: -.02em; line-height: 1.2;
}
.hero-stat span {
  font-size: .74rem; color: var(--text-2);
  letter-spacing: .04em; text-transform: uppercase; font-weight: 500;
}

/* ===== HOUSE SCROLL (recorrido cinematográfico por la casa) ===== */
.house-scroll {
  position: relative;
  height: 400vh;
  height: 400svh;
  background: linear-gradient(180deg, #1c130c 0%, #241a10 6%, #241a10 94%, #1c130c 100%);
}
.house-scroll::before, .house-scroll::after {
  content: ''; position: absolute; left: 0; right: 0; height: 8vh; z-index: 3; pointer-events: none;
}
.house-scroll::before { top: 0; background: linear-gradient(180deg, var(--bg-2), transparent); }
.house-scroll::after  { bottom: 0; background: linear-gradient(0deg, var(--bg-2), transparent); }
.house-scroll-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.house-stage {
  position: relative;
  width: 100%;
  height: 100%;
}
.house-scene {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  opacity: 0;
  will-change: opacity;
  pointer-events: none;
}
.house-scene.is-active { pointer-events: auto; }
.house-photo {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0;
  overflow: hidden;
  background: #14110d;
}
.house-photo img {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.0);
  transition: transform 6s cubic-bezier(.22,1,.36,1);
}
.house-scene.is-active .house-photo img { transform: scale(1.09); }

.house-overlay {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0;
  background:
    linear-gradient(0deg, rgba(30,20,12,.85) 0%, rgba(30,20,12,.32) 48%, rgba(30,20,12,.5) 100%),
    linear-gradient(90deg, rgba(20,13,8,.4) 0%, rgba(20,13,8,0) 55%);
}
.house-copy {
  position: absolute;
  left: clamp(1.5rem, 6vw, 5rem);
  bottom: clamp(2.5rem, 10vh, 5.5rem);
  max-width: 460px;
  color: #fdf9f1;
  z-index: 2;
}
.house-eye {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-h, #e08a4f);
  margin-bottom: .6rem;
}
.house-copy h1,
.house-copy h3 {
  font-family: 'Lora', serif;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.2; margin-bottom: .7rem; color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.house-copy p { color: rgba(255,255,255,.85); font-size: 1.02rem; line-height: 1.55; }
.house-copy em { font-style: italic; color: var(--accent-h, #e08a4f); }

/* --- Escena 0 (puerta): recupera el contenido del antiguo hero --- */
.house-copy-hero { max-width: 520px; }
.house-copy-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.house-copy-hero .btn-primary { display: inline-block; margin: .4rem 0 1.4rem; }
.house-hero-stats { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.house-hero-stat { display: flex; flex-direction: column; gap: .1rem; }
.house-hero-stat strong {
  font-family: 'Lora', serif; font-size: 1.35rem; font-weight: 700;
  color: var(--accent-h, #e08a4f); letter-spacing: -.02em; line-height: 1.2;
}
.house-hero-stat span {
  font-size: .72rem; color: rgba(255,255,255,.7);
  letter-spacing: .04em; text-transform: uppercase; font-weight: 500;
}

.house-progress {
  position: absolute; right: clamp(1rem, 4vw, 3rem); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: .6rem; z-index: 2;
}
.house-progress span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); transition: background .3s var(--ease-out), transform .3s var(--ease-out); }
.house-progress span.is-active { background: var(--accent); transform: scale(1.4); }

@media (max-width: 720px) {
  .house-copy { left: 1.25rem; right: 1.25rem; bottom: 2rem; max-width: none; }
  .house-copy h1,
  .house-copy h3 { font-size: 1.4rem; margin-bottom: .35rem; }
  .house-copy-hero h1 { font-size: 1.7rem; }
  .house-copy p { font-size: .92rem; line-height: 1.45; }
  .house-eye { margin-bottom: .35rem; font-size: .66rem; }
  .house-hero-stats { gap: 1.2rem; }
  .house-progress { right: .6rem; }
  .house-scene.is-active .house-photo img { transform: scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .house-scroll { height: auto; background: #14110d; }
  .house-scroll-inner { position: static; height: auto; overflow: visible; }
  .house-stage { height: auto; display: flex; flex-direction: column; gap: 2px; }
  .house-scene { position: static; opacity: 1; height: 70vh; min-height: 340px; }
  .house-photo img { transition: none; transform: none !important; }
  .house-progress { display: none; }
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, #cc7940, var(--accent));
  color: #fff;
  padding: .85rem 1.9rem; border-radius: var(--radius-sm);
  font-size: .88rem; font-weight: 600; letter-spacing: .01em;
  transition: background .25s, transform .25s var(--ease-spring), box-shadow .25s;
  border: none; cursor: pointer; font-family: inherit;
  box-shadow: 0 2px 10px rgba(181,98,44,.28);
  will-change: transform;
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--accent-h), var(--green-d));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(181,98,44,.38);
}
.btn-primary:active { transform: translateY(0) scale(.98); }
.btn-block { width: 100%; text-align: center; }

/* ===== SECTIONS ===== */
.section { padding: 5rem 0; }
.section-header {
  margin-bottom: 2.75rem;
  opacity: 0; transform: translateY(18px);
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
}
.section-header.visible { opacity: 1; transform: translateY(0); }
.section-eye {
  display: flex; align-items: center; gap: .6rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .15em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .5rem;
}
.section-eye::before {
  content: ''; width: 24px; height: 2px; background: var(--accent);
  border-radius: 2px; opacity: .7;
}
.section-title {
  font-family: 'Lora', serif;
  font-size: 2rem; font-weight: 700; color: var(--text);
  letter-spacing: -.01em;
}

/* ===== LISTING GRID ===== */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

/* ===== LISTING CARD ===== */
.listing-card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out),
              border-color .25s, box-shadow .35s var(--ease-out);
  will-change: transform, opacity;
}
.listing-card.visible { opacity: 1; transform: translateY(0); }
.listing-card:hover {
  border-color: #ddc9a8;
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.listing-card.visible:hover { transform: translateY(-6px); }

.listing-gallery {
  position: relative; height: 220px; overflow: hidden;
  background: var(--bg-2); cursor: pointer;
}
.listing-gallery::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.08), transparent 30%);
}
.listing-gallery img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.listing-card:hover .listing-gallery img { transform: scale(1.07); }

.badge-available {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(20,55,40,.88); color: #fff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: .67rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: .34rem .75rem; border-radius: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.badge-available::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 8px rgba(74,222,128,.9);
  animation: pulseDot 1.8s ease-in-out infinite;
}
.badge-unavailable {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(55,65,81,.9); color: #fff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: .67rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: .34rem .75rem; border-radius: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.badge-rented {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(90,24,24,.88); color: #fff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: .67rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: .34rem .75rem; border-radius: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.gallery-count {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,.55); color: #fff;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  font-size: .73rem; padding: .2rem .6rem; border-radius: 20px;
}

.listing-body { display: flex; flex-direction: column; flex: 1; padding: 1.3rem 1.45rem 1.45rem; }
.listing-price {
  font-size: 1.7rem; font-weight: 700; color: var(--text); letter-spacing: -.025em;
}
.listing-price span { font-size: .83rem; color: var(--text-2); font-weight: 400; letter-spacing: 0; }
.listing-rooms-avail { font-size: .8rem; color: var(--text-2); margin: .15rem 0 .3rem; }
.listing-title { font-size: .94rem; font-weight: 600; color: var(--text); margin: .3rem 0 .2rem; }
.listing-address {
  display: flex; align-items: center; gap: .35rem;
  font-size: .82rem; color: var(--text-2); margin-bottom: .85rem;
  text-decoration: none; transition: color .15s;
}
.listing-address:hover { color: var(--accent); }
.listing-address:visited { color: var(--text-2); }
.listing-address svg { flex-shrink: 0; opacity: .6; }
.listing-address--locked,
.listing-address--locked:visited { color: var(--accent); font-weight: 500; font-size: .82rem; }
.listing-features { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.05rem; }
.feature-tag {
  font-size: .75rem; color: var(--text-2);
  background: var(--bg-2); border-radius: 20px; padding: .22rem .65rem;
  transition: background .2s, color .2s;
}
.listing-card:hover .feature-tag { background: #ece1cf; color: #6b5f4f; }
.listing-actions { display: flex; gap: .55rem; margin-top: auto; padding-top: .9rem; }
.btn-wa {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .4rem;
  background: var(--wa); color: #fff;
  padding: .66rem .9rem; border-radius: var(--radius-sm);
  font-size: .82rem; font-weight: 600;
  transition: background .2s, transform .25s var(--ease-spring), box-shadow .25s;
  box-shadow: 0 2px 8px rgba(37,211,102,.25);
}
.btn-wa:hover {
  background: var(--wa-h); transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37,211,102,.4);
}
.btn-wa:active { transform: translateY(0) scale(.98); }
.btn-details {
  flex: 1; display: flex; align-items: center; justify-content: center;
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: .66rem .9rem; font-size: .82rem; font-weight: 600;
  cursor: pointer; transition: border-color .2s, background .2s, transform .25s var(--ease-spring);
  font-family: inherit;
}
.btn-details:hover { border-color: #d8c8ad; background: var(--bg); transform: translateY(-2px); }
.btn-details:active { transform: translateY(0) scale(.98); }

/* ===== CONTACT ===== */
.section-contact {
  background: linear-gradient(160deg, var(--sage), var(--bg-2));
  border-top: 1px solid var(--border);
}
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start;
}
.contact-left {
  opacity: 0; transform: translateY(18px);
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
}
.contact-left.visible { opacity: 1; transform: translateY(0); }
.contact-desc { color: var(--text-2); margin: 1rem 0 2rem; line-height: 1.75; font-size: .95rem; }
.contact-links { display: flex; flex-direction: column; gap: .65rem; }
.contact-link {
  display: flex; align-items: center; gap: .9rem;
  padding: .95rem 1.15rem; background: var(--card); border-radius: var(--radius-sm);
  border: 1px solid var(--border); color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: border-color .25s, box-shadow .3s, transform .3s var(--ease-out);
}
.contact-link:hover {
  border-color: #d8c8ad;
  box-shadow: var(--shadow-md);
  transform: translateX(6px);
}
.contact-link strong { display: block; font-size: .88rem; }
.contact-link span { font-size: .8rem; color: var(--text-2); }
.contact-link--wa svg { color: var(--wa); }
.contact-link--email svg { color: var(--accent); }

.contact-form-wrap {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 2.1rem;
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(20px);
  transition: opacity .65s var(--ease-out) .12s, transform .65s var(--ease-out) .12s;
}
.contact-form-wrap.visible { opacity: 1; transform: translateY(0); }
.contact-form-wrap h3 {
  font-family: 'Lora', serif;
  font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 1.5rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.form-field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .75rem; }
.form-field label { font-size: .78rem; font-weight: 600; color: var(--text-2); letter-spacing: .02em; }
.form-field input,
.form-field select,
.form-field textarea {
  padding: .72rem .95rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .9rem;
  background: var(--bg); color: var(--text);
  outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none; appearance: none;
}
.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a746e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; padding-right: 2.2rem;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent); background: #fff;
  box-shadow: 0 0 0 4px rgba(181,98,44,.14);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: #a8b1c2; }

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(180deg, var(--green-d), #171f10);
  color: rgba(255,255,255,.45);
  padding: 1.6rem 0; font-size: .8rem;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.footer a { color: rgba(255,255,255,.6); transition: color .15s; }
.footer a:hover { color: #fff; }

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(12,10,8,.94); z-index: 9999;
  align-items: center; justify-content: center;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.lightbox.active { display: flex; animation: fadeIn .25s ease both; }
.lightbox img {
  max-width: 90vw; max-height: 85vh; border-radius: 8px; object-fit: contain;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
  animation: modalIn .35s var(--ease-out) both;
}
.lb-close {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(255,255,255,.12); color: #fff;
  border: none; font-size: 1.1rem; width: 42px; height: 42px;
  border-radius: 50%; cursor: pointer;
  transition: background .2s, transform .25s var(--ease-spring);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.lb-close:hover { background: rgba(255,255,255,.25); transform: scale(1.08); }
.lb-prev, .lb-next {
  position: absolute; background: rgba(255,255,255,.12); color: #fff;
  border: none; font-size: 1.1rem; width: 46px; height: 46px;
  border-radius: 50%; cursor: pointer;
  transition: background .2s, transform .25s var(--ease-spring);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.25); transform: scale(1.08); }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }

/* ===== CÓMO FUNCIONA ===== */
.section-how { background: var(--bg-2); }
.how-steps {
  display: flex; align-items: flex-start; gap: 0;
  justify-content: center; flex-wrap: wrap;
}
.how-step {
  flex: 1; min-width: 200px; max-width: 260px;
  text-align: center; padding: 2rem 1.5rem;
  border-radius: var(--radius);
  transition: background .3s, transform .3s var(--ease-out), box-shadow .3s;
}
.how-step:hover {
  background: var(--card);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.how-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(160deg, #cc7940, var(--accent)); color: #fff;
  font-weight: 700; font-size: .9rem; margin: 0 auto .8rem;
  box-shadow: 0 4px 12px rgba(181,98,44,.32);
}
.how-icon {
  width: 56px; height: 56px; margin: 0 auto .9rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(181,98,44,.1); color: var(--accent); border-radius: 50%;
  transition: transform .35s var(--ease-spring), background .25s;
}
.how-step:hover .how-icon { transform: scale(1.08); background: rgba(181,98,44,.18); }
.how-step h3 { font-size: 1rem; font-weight: 600; margin-bottom: .5rem; }
.how-step p { font-size: .9rem; color: var(--text-2); line-height: 1.55; }
.how-connector {
  width: 48px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px);
  opacity: .4;
  align-self: center; margin-top: -2.5rem; flex-shrink: 0;
}
@media (max-width: 640px) {
  .how-connector { display: none; }
  .how-steps { flex-direction: column; align-items: center; gap: 0; }
  .how-step { min-width: 0; max-width: 100%; width: 100%; padding: 1.5rem 1rem; }
}

/* ===== FAQ ===== */
.section-faq { background: var(--bg); }
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: .6rem; }
.faq-item {
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  background: var(--card);
  transition: box-shadow .3s, border-color .25s;
}
.faq-item.open { box-shadow: var(--shadow-sm); border-color: #ddc9a8; }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 1.3rem; text-align: left;
  font-family: inherit; font-size: .95rem; font-weight: 600; color: var(--text);
  transition: background .2s;
}
.faq-q:hover { background: var(--bg-2); }
.faq-arrow {
  font-size: .8rem; flex-shrink: 0; color: var(--accent);
  transition: transform .35s var(--ease-spring);
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  font-size: .9rem; color: var(--text-2); line-height: 1.6;
  padding: 0 1.3rem;
  transition: max-height .35s var(--ease-out), padding .35s var(--ease-out);
}
.faq-item.open .faq-a { max-height: 220px; padding: 0 1.3rem 1.15rem; }

/* ===== WHATSAPP FLOAT ===== */
.wa-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999;
  width: 54px; height: 54px; background: var(--wa); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 4px 18px rgba(37,211,102,.45);
  transition: transform .3s var(--ease-spring), box-shadow .3s;
  animation: fadeUp .6s var(--ease-out) 1s both;
}
.wa-float::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: var(--wa); z-index: -1;
  animation: waPulse 2.6s var(--ease-out) infinite;
}
.wa-float:hover { transform: scale(1.12) rotate(6deg); box-shadow: 0 8px 28px rgba(37,211,102,.55); }
.wa-float svg { width: 28px; height: 28px; }

/* ===== MODAL ===== */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(20,17,14,.55); z-index: 8000;
  align-items: center; justify-content: center; padding: 1rem;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.modal-overlay.active { display: flex; animation: fadeIn .25s ease both; }
.modal {
  background: var(--card); border-radius: 18px; width: 100%;
  max-width: 680px; max-height: 92vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-overlay.active .modal { animation: modalIn .4s var(--ease-out) both; }
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.4rem 1.5rem 0;
}
.modal-header h3 {
  font-family: 'Lora', serif;
  font-size: 1.15rem; font-weight: 700; color: var(--text);
}
.modal-close {
  background: var(--bg-2); border: none; font-size: .95rem;
  width: 34px; height: 34px; border-radius: 50%;
  cursor: pointer; color: var(--text-2);
  transition: background .2s, transform .25s var(--ease-spring);
}
.modal-close:hover { background: var(--border); transform: scale(1.08) rotate(90deg); }
.modal-body { padding: 1.4rem 1.5rem 1.5rem; }
.modal-gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: .6rem; margin-bottom: 1.5rem;
}
.modal-gallery img {
  height: 100px; width: 100%; object-fit: cover; border-radius: 8px;
  cursor: pointer; border: 1px solid var(--border);
  transition: opacity .2s, transform .3s var(--ease-out), box-shadow .3s;
}
@media (hover: hover) {
  .modal-gallery img:hover { opacity: .92; transform: scale(1.04); box-shadow: var(--shadow-md); }
}
.modal-info {
  display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; margin-bottom: 1.25rem;
}
.info-item label {
  font-size: .7rem; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: var(--text-2);
}
.info-item p { font-size: .93rem; font-weight: 600; color: var(--text); margin-top: .15rem; }
.modal-desc { color: var(--text-2); font-size: .9rem; margin-bottom: 1.4rem; line-height: 1.7; }
.modal-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.btn-map {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: .62rem .85rem; font-size: .82rem; font-weight: 600;
  text-decoration: none; transition: border-color .2s, background .2s, color .2s, transform .25s var(--ease-spring);
}
.btn-map:hover { border-color: var(--accent); color: var(--accent); background: rgba(181,98,44,.06); transform: translateY(-2px); }
.modal-map-wrap {
  margin-top: 1.25rem; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border); height: 210px;
  box-shadow: var(--shadow-sm);
}
.modal-map-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

/* ===== EMPTY / TOAST ===== */
.empty-state { text-align: center; padding: 4rem; color: var(--text-2); }
.empty-state p { font-size: 1rem; }
.empty-msg { text-align: center; padding: 3rem; color: var(--text-2); font-size: .9rem; }
.toast {
  position: fixed; bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(16,24,40,.92); color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: .75rem 1.5rem; border-radius: 30px;
  font-size: .875rem; font-weight: 500; z-index: 9999;
  box-shadow: var(--shadow-lg);
  opacity: 0; transition: opacity .35s var(--ease-out), transform .35s var(--ease-spring);
  pointer-events: none;
}
.toast.toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== PROFILES SECTION ===== */
.section-profiles { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.profiles-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.1rem;
}
.profile-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; gap: .55rem;
  box-shadow: var(--shadow-sm);
  transition: border-color .25s, box-shadow .35s var(--ease-out), transform .35s var(--ease-out);
}
.profile-card:hover {
  border-color: rgba(181,98,44,.45); box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}
.profile-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-2); border-radius: 14px;
  transition: transform .35s var(--ease-spring), background .25s;
}
.profile-icon svg { width: 24px; height: 24px; }
.profile-card:hover .profile-icon { transform: scale(1.1) rotate(-4deg); }
.profiles-grid .profile-card:nth-child(4n+1) .profile-icon { background: rgba(181,98,44,.12); color: var(--accent); }
.profiles-grid .profile-card:nth-child(4n+2) .profile-icon { background: rgba(79,91,62,.16); color: var(--green); }
.profiles-grid .profile-card:nth-child(4n+3) .profile-icon { background: rgba(140,110,60,.16); color: #8c6e3c; }
.profiles-grid .profile-card:nth-child(4n+4) .profile-icon { background: rgba(181,98,44,.16); color: var(--accent-h); }
.profile-card h3 { font-size: .95rem; font-weight: 700; color: var(--text); }
.profile-card p { font-size: .83rem; color: var(--text-2); line-height: 1.5; flex: 1; }
.profile-cta {
  font-size: .78rem; font-weight: 600; color: var(--accent); margin-top: .25rem;
  transition: transform .3s var(--ease-out);
}
.profile-card:hover .profile-cta { transform: translateX(4px); }

/* ===== LANDING / BLOG PAGES ===== */
.page-hero { padding: 4.5rem 0 3.5rem; border-bottom: 1px solid var(--border); }
.breadcrumb { font-size: .78rem; color: var(--text-2); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--text-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 .4rem; }

.content-grid { display: grid; grid-template-columns: 1fr 300px; gap: 3.5rem; align-items: start; }
.content-body h2 {
  font-family: 'Lora', serif; font-size: 1.3rem; font-weight: 700;
  color: var(--text); margin: 2rem 0 .75rem;
}
.content-body h2:first-child { margin-top: 0; }
.content-body p { font-size: .93rem; color: var(--text-2); line-height: 1.75; margin-bottom: .85rem; }
.content-body ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1rem; }
.content-body ul li { font-size: .92rem; color: var(--text-2); padding-left: 1.4rem; position: relative; }
.content-body ul li::before { content: '·'; position: absolute; left: .3rem; color: var(--accent); font-weight: 700; font-size: 1.1rem; line-height: 1.3; }

.content-sidebar { position: sticky; top: 80px; }
.sidebar-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem;
  margin-bottom: 1rem; box-shadow: var(--shadow-sm);
}
.sidebar-card h3 { font-family: 'Lora', serif; font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 1rem; }
.sidebar-card .btn-wa { display: flex; width: 100%; margin-bottom: .6rem; }
.sidebar-card .btn-details { display: flex; width: 100%; }
.sidebar-links { list-style: none; display: flex; flex-direction: column; gap: .4rem; margin: 0; }
.sidebar-links li::before { display: none; }
.sidebar-links a { font-size: .83rem; color: var(--text-2); text-decoration: none; transition: color .15s; }
.sidebar-links a:hover { color: var(--accent); }

/* ===== FILTER BAR ===== */
.filter-bar {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  margin-bottom: 2rem; padding: .75rem 1rem;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.filter-btn {
  background: transparent; border: 1.5px solid var(--border);
  padding: .38rem .95rem; border-radius: 20px;
  font-size: .82rem; font-weight: 600; cursor: pointer;
  color: var(--text-2); font-family: inherit;
  transition: all .2s;
}
.filter-btn:hover { border-color: var(--text-2); color: var(--text); }
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.filter-toggle {
  display: flex; align-items: center; gap: .4rem;
  font-size: .82rem; color: var(--text-2); cursor: pointer; margin-left: .25rem;
}
.filter-toggle input { accent-color: var(--accent); width: 15px; height: 15px; cursor: pointer; }

/* ===== CAROUSEL ===== */
.cc-prev, .cc-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.92); border: none;
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 1.3rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s, background .2s, transform .2s;
  color: var(--text); box-shadow: 0 2px 10px rgba(0,0,0,.2);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  z-index: 2;
}
.cc-prev { left: .6rem; }
.cc-next { right: .6rem; }
.listing-gallery:hover .cc-prev,
.listing-gallery:hover .cc-next { opacity: 1; }
.cc-prev:hover, .cc-next:hover { background: #fff; transform: translateY(-50%) scale(1.1); }
.cc-count {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.55); color: #fff;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  font-size: .72rem; padding: .2rem .6rem; border-radius: 12px;
  pointer-events: none; z-index: 2;
}

/* ===== FAVORITES ===== */
.btn-fav {
  position: absolute; top: 10px; right: 10px;
  background: rgba(255,255,255,.92); border: none;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s, transform .3s var(--ease-spring), color .2s;
  color: #9aa7bd; box-shadow: 0 2px 10px rgba(0,0,0,.15);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  z-index: 2;
}
.btn-fav:hover { background: #fff; transform: scale(1.15); color: #e53e3e; }
.btn-fav.active { color: #e53e3e; }
.btn-fav.active svg { animation: pulseDot .4s ease; }

/* ===== TESTIMONIALS ===== */
.section-testimonials {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem;
}
.testimonial-card {
  position: relative;
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out),
              box-shadow .3s;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute; top: .35rem; right: 1.1rem;
  font-family: 'Lora', serif; font-size: 3.6rem; line-height: 1;
  color: rgba(181,98,44,.14); pointer-events: none;
}
.testimonial-card.visible { opacity: 1; transform: translateY(0); }
.testimonial-card:hover { box-shadow: var(--shadow-md); }
.stars { color: #f59e0b; font-size: .95rem; letter-spacing: .05em; margin-bottom: .8rem; }
.testimonial-text {
  font-size: .88rem; color: var(--text-2); line-height: 1.72;
  margin-bottom: 1.1rem; font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: .65rem; }
.author-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(150deg, #cc7940, var(--accent-h)); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700; flex-shrink: 0; letter-spacing: .03em;
  box-shadow: 0 3px 10px rgba(181,98,44,.28);
}
.testimonials-grid .testimonial-card:nth-child(2n) .author-avatar {
  background: linear-gradient(150deg, #6b7a56, #4f5b3e);
  box-shadow: 0 3px 10px rgba(79,91,62,.3);
}
.testimonial-author strong { display: block; font-size: .84rem; color: var(--text); }
.testimonial-author span { font-size: .75rem; color: var(--text-2); }

/* ===== POLICY PAGE ===== */
.policy-content { max-width: 700px; }
.policy-block { margin-bottom: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--border); }
.policy-block:last-of-type { border-bottom: none; }
.policy-block h2 {
  font-family: 'Lora', serif; font-size: 1.3rem; font-weight: 700;
  color: var(--text); margin-bottom: 1rem;
}
.policy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; margin-bottom: .75rem; }
.policy-item {
  display: flex; align-items: center; gap: .7rem;
  background: var(--bg-2); border-radius: var(--radius-sm); padding: .85rem 1rem;
  border: 1px solid var(--border);
  transition: transform .25s var(--ease-out), box-shadow .25s;
}
.policy-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.policy-icon { font-size: 1.3rem; flex-shrink: 0; }
.policy-item strong { display: block; font-size: .87rem; color: var(--text); margin-bottom: .1rem; }
.policy-item p { font-size: .83rem; color: var(--text-2); }
.policy-list { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.policy-list li {
  font-size: .92rem; color: var(--text-2);
  padding-left: 1.5rem; position: relative; line-height: 1.55;
}
.policy-list li::before {
  content: '·'; position: absolute; left: .25rem;
  color: var(--accent); font-weight: 700; font-size: 1.1rem; line-height: 1.3;
}
.policy-list--rules li.rule-no::before { content: '✗'; color: #dc2626; font-size: .82rem; top: .1rem; }
.policy-list--rules li.rule-ok::before { content: '✓'; color: #16a34a; font-size: .82rem; top: .1rem; }
.policy-note {
  margin-top: .85rem; font-size: .84rem; color: var(--text-2);
  background: rgba(181,98,44,.08); border-left: 3px solid var(--accent);
  padding: .6rem .9rem; border-radius: 0 8px 8px 0;
}
.cancel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.cancel-item { border-radius: var(--radius-sm); padding: 1rem; text-align: center; }
.cancel-item strong { display: block; font-size: .85rem; margin-bottom: .3rem; }
.cancel-item p { font-size: .78rem; }
.cancel-green { background: #d1fae5; }
.cancel-green strong, .cancel-green p { color: #065f46; }
.cancel-amber { background: #fef3c7; }
.cancel-amber strong, .cancel-amber p { color: #92400e; }
.cancel-red { background: #fee2e2; }
.cancel-red strong, .cancel-red p { color: #991b1b; }
.policy-cta {
  text-align: center; padding: 2rem 1rem;
  background: var(--bg-2); border-radius: var(--radius); border: 1px solid var(--border);
}
.policy-cta p { color: var(--text-2); margin-bottom: 1rem; }

/* ===== UTILITIES BREAKDOWN (cards + modal) ===== */
.listing-utils { display: flex; gap: .5rem; flex-wrap: wrap; margin: .35rem 0 .45rem; }
.util-ok, .util-extra {
  font-size: .72rem; font-weight: 500; padding: .2rem .6rem;
  border-radius: 20px; white-space: nowrap;
}
.util-ok { background: #d1fae5; color: #065f46; }
.util-extra { background: rgba(181,98,44,.12); color: var(--accent); }
@media (prefers-color-scheme: dark) {
  .util-ok { background: rgba(22,163,74,.18); color: #4ade80; }
  .util-extra { background: rgba(224,138,79,.18); color: #e09b5a; }
}

.modal-locked-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 1rem 1.25rem; margin: .75rem 0;
}
.modal-locked-banner strong { display: block; font-size: .9rem; margin-bottom: .25rem; }
.modal-locked-banner p { font-size: .82rem; color: var(--text-2); margin: 0; }
.modal-utils { margin: .75rem 0 .5rem; }
.modal-utils-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: .5rem;
}
.mu-item {
  border-radius: var(--radius-sm); padding: .55rem .6rem; text-align: center;
  border: 1px solid var(--border);
}
.mu-item span { display: block; font-size: .7rem; color: var(--text-2); margin-bottom: .2rem; }
.mu-item strong { font-size: .78rem; }
.mu-ok { background: rgba(22,163,74,.07); border-color: rgba(22,163,74,.2); }
.mu-ok strong { color: #15803d; }
.mu-extra { background: rgba(181,98,44,.07); border-color: rgba(181,98,44,.2); }
.mu-extra strong { color: var(--accent); }

/* ===== UTILITIES COMPARE (policy page) ===== */
.utils-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: .75rem; }
.utils-loc-title { font-size: .95rem; font-family: 'Lora', serif; margin-bottom: .75rem; color: var(--text); }

/* ===== FOOTER LINKS ===== */
.footer-links { display: flex; align-items: center; gap: 1.5rem; }

/* ===== GENERIC SCROLL-REVEAL ===== */
.reveal-el {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.reveal-el.visible { opacity: 1; transform: translateY(0); }

/* ===== SKELETON LOADING ===== */
@keyframes skeletonShine {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton-grid { display: contents; }
.skeleton-card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
.skeleton-img { height: 220px; }
.skeleton-img,
.skeleton-line {
  background: linear-gradient(90deg, var(--bg-2) 25%, #e6dabf 37%, var(--bg-2) 63%);
  background-size: 200% 100%;
  animation: skeletonShine 1.4s ease-in-out infinite;
}
.skeleton-body { padding: 1.3rem 1.45rem 1.45rem; display: flex; flex-direction: column; gap: .6rem; }
.skeleton-line { height: 14px; border-radius: 6px; }
.skeleton-line--title { width: 55%; height: 20px; }
.skeleton-line--sm { width: 40%; }
.skeleton-line--wide { width: 90%; }
@media (max-width: 768px) { .skeleton-img { aspect-ratio: 16 / 9; height: auto; } }

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  /* Hero */
  .hero { padding: 4.5rem 0 4rem; }
  .hero::after { display: none; }
  .hero-stats { gap: 1.5rem; }

  /* Layout resets */
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .listings-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: .5rem; text-align: center; }
  .footer-links { flex-direction: column; gap: .4rem; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .policy-grid { grid-template-columns: 1fr; }
  .cancel-grid { grid-template-columns: 1fr; }
  .utils-compare { grid-template-columns: 1fr; }
  .modal-utils-grid { grid-template-columns: 1fr 1fr; }

  /* Carousel arrows always visible on touch */
  .cc-prev, .cc-next { opacity: 1; }

  /* Card: proportional image instead of fixed height */
  .listing-gallery { height: auto; aspect-ratio: 16 / 9; }
  .listing-body { padding: 1rem 1.15rem 1.2rem; }
  .listing-price { font-size: 1.5rem; }

  /* Touch targets ≥ 44px */
  .btn-wa, .btn-details { min-height: 46px; }
  .btn-map { min-height: 42px; }

  /* Modal: bottom sheet slides up */
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal {
    border-radius: 22px 22px 0 0;
    max-width: 100%;
    max-height: 93vh;
  }
  .modal::before {
    content: ''; display: block;
    width: 40px; height: 4px;
    background: var(--border); border-radius: 2px;
    margin: .85rem auto .2rem;
  }
  .modal-overlay.active .modal { animation: modalInBottom .38s var(--ease-out) both; }
  .modal-header { padding: .35rem 1.25rem 0; }
  .modal-body { padding: .9rem 1.25rem 2.5rem; }

  /* Modal info: 2 cols is more compact on mobile */
  .modal-info { grid-template-columns: 1fr 1fr; gap: .6rem; }

  /* Modal gallery: horizontal scroll carousel */
  .modal-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: .5rem;
    margin: 0 -1.25rem .85rem;
    padding: 0 1.25rem .5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .modal-gallery::-webkit-scrollbar { display: none; }
  .modal-gallery img {
    flex-shrink: 0;
    width: 76vw;
    height: 200px;
    scroll-snap-align: start;
    border-radius: 12px;
    border: none;
  }
  .modal-gallery img:first-child { width: calc(100vw - 2.75rem); }
}

@media (max-width: 480px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .filter-bar { gap: .4rem; }
  .profiles-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .nav-ham { display: flex; }
}

@media (max-width: 600px) {
  .auth-greeting { display: none; }
}

@media (max-width: 480px) {
  .auth-txt-short { display: inline; }
  .auth-txt-full { display: none; }
  .hero { padding: 4rem 0 3rem; }
}

@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; }
  .content-sidebar { position: static; }
}

@media (max-width: 380px) {
  .profiles-grid { grid-template-columns: 1fr; }
}

/* ===== SCARCITY INDICATOR ===== */
.scarcity-bar {
  display: flex; align-items: center; gap: .6rem;
  background: var(--sage); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: .7rem 1.1rem;
  margin-bottom: 1.5rem; font-size: .85rem; color: var(--text);
}
.scarcity-bar strong { color: var(--accent); }
.scarcity-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  flex-shrink: 0; animation: pulseDot 1.8s ease-in-out infinite;
}

/* ===== ADVANCED FILTERS PANEL ===== */
.filters-panel {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; margin-bottom: 2rem; box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.25rem 1.75rem;
  align-items: end;
}
.filter-group { display: flex; flex-direction: column; gap: .5rem; }
.filter-group label {
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-2);
}
.filter-chip-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.filter-range { display: flex; flex-direction: column; gap: .4rem; }
.filter-range-values { display: flex; justify-content: space-between; font-size: .82rem; font-weight: 600; color: var(--text); }
.filter-range input[type="range"] {
  width: 100%; accent-color: var(--accent); cursor: pointer;
}
.filter-range-track { position: relative; height: 4px; }
.filter-select {
  padding: .6rem .8rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text); font-family: inherit; font-size: .85rem;
}
.filters-results {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem; font-size: .85rem; color: var(--text-2);
}
.filters-results strong { color: var(--text); }
.filters-clear {
  background: none; border: none; color: var(--accent); font-size: .82rem;
  font-weight: 600; cursor: pointer; font-family: inherit;
}
.filters-clear:hover { text-decoration: underline; }

/* ===== COMPARE ===== */
.btn-compare {
  position: absolute; top: 10px; right: 54px;
  background: rgba(255,255,255,.92); border: none;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #9a8b74;
  transition: background .2s, transform .3s var(--ease-spring), color .2s;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  z-index: 2;
}
.btn-compare:hover { background: #fff; transform: scale(1.12); }
.btn-compare.active { color: #fff; background: var(--accent); }

.compare-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 500;
  background: var(--card); border-top: 1px solid var(--border);
  box-shadow: 0 -8px 32px rgba(44,36,28,.14);
  transform: translateY(100%); transition: transform .35s var(--ease-out);
  padding: .9rem 0;
}
.compare-bar.active { transform: translateY(0); }
.compare-bar-inner {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.compare-bar-items { display: flex; gap: .6rem; flex: 1; flex-wrap: wrap; }
.compare-chip {
  display: flex; align-items: center; gap: .5rem;
  background: var(--bg-2); border-radius: 30px; padding: .35rem .5rem .35rem .9rem;
  font-size: .82rem; font-weight: 600; color: var(--text);
}
.compare-chip button {
  background: var(--border); border: none; width: 20px; height: 20px; border-radius: 50%;
  cursor: pointer; color: var(--text); font-size: .75rem; line-height: 1;
}
.compare-modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 8500;
  background: rgba(20,17,14,.55); align-items: center; justify-content: center; padding: 1rem;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.compare-modal-overlay.active { display: flex; animation: fadeIn .25s ease both; }
.compare-modal {
  background: var(--card); border-radius: 18px; width: 100%; max-width: 780px;
  max-height: 88vh; overflow: auto; box-shadow: var(--shadow-lg); padding: 1.5rem;
}
.compare-modal h3 { font-family: 'Lora', serif; font-size: 1.2rem; margin-bottom: 1rem; }
.compare-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.compare-table th, .compare-table td {
  padding: .65rem .75rem; border-bottom: 1px solid var(--border); text-align: left;
}
.compare-table th:first-child, .compare-table td:first-child { color: var(--text-2); font-weight: 600; white-space: nowrap; }
.compare-table td strong { color: var(--accent); }
.compare-close-btn {
  display: block; margin: 1.25rem auto 0; background: var(--text); color: #fff;
  border: none; padding: .6rem 1.5rem; border-radius: var(--radius-sm); cursor: pointer;
  font-family: inherit; font-weight: 600;
}

/* ===== COST CALCULATOR (modal) ===== */
.cost-calc {
  margin: 1.25rem 0; padding: 1.1rem 1.25rem; background: var(--sage);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.cost-calc h4 { font-size: .85rem; font-weight: 700; margin-bottom: .75rem; color: var(--text); }
.cost-calc-row { display: flex; align-items: center; gap: .8rem; margin-bottom: .8rem; }
.cost-calc-row label { font-size: .82rem; color: var(--text-2); white-space: nowrap; }
.cost-calc-row input[type="range"] { flex: 1; accent-color: var(--accent); cursor: pointer; }
.cost-calc-months { font-weight: 700; color: var(--accent); min-width: 3.5rem; text-align: right; }
.cost-calc-breakdown { display: flex; flex-direction: column; gap: .35rem; font-size: .84rem; color: var(--text-2); }
.cost-calc-breakdown .cc-total { font-size: 1rem; font-weight: 700; color: var(--text); border-top: 1px dashed var(--border); padding-top: .5rem; margin-top: .2rem; }

/* ===== FAVORITES FILTER TOGGLE ===== */
.fav-filter-toggle {
  display: inline-flex; align-items: center; gap: .4rem;
  background: transparent; border: 1.5px solid var(--border); border-radius: 20px;
  padding: .38rem .95rem; font-size: .82rem; font-weight: 600; cursor: pointer;
  color: var(--text-2); font-family: inherit; transition: all .2s;
}
.fav-filter-toggle.active { background: #e53e3e; border-color: #e53e3e; color: #fff; }
.fav-filter-toggle svg { width: 14px; height: 14px; }

@media (max-width: 768px) {
  .filters-panel { grid-template-columns: 1fr 1fr; padding: 1rem; gap: 1rem; }
  .btn-compare { top: 10px; right: 10px; }
  .btn-fav { top: 52px; }
  .compare-bar-inner { flex-direction: column; align-items: stretch; }
}
@media (max-width: 480px) {
  .filters-panel { grid-template-columns: 1fr; }
}
