/* ==========================================================================
   Grupo Feint — Inmobiliaria (catálogo de oportunidades)
   Reutiliza variables de styles.css
   ========================================================================== */

body.re-body { background: var(--bg-soft); }
.hidden { display: none !important; }

/* ---------- Mini nav (subsite) ---------- */
.re-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.re-nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.re-nav .brand img { height: 40px; width: auto; }
.re-nav__links { display: flex; align-items: center; gap: 28px; }
.re-nav__links a { font-size: .95rem; font-weight: 500; transition: color .25s ease; }
.re-nav__links a:hover { color: var(--gold); }
.re-nav__cta { padding: 10px 22px; font-size: .9rem; color: #fff; }
.re-nav__cta:hover { color: #fff; }

/* ---------- Hero ---------- */
.re-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #fff 0%, var(--bg-soft) 100%);
  padding: 88px 0 56px;
}
.re-hero::before {
  content: ''; position: absolute; inset: 0; opacity: .06;
  background: radial-gradient(circle at 80% 20%, var(--gold) 0%, transparent 55%);
}
.re-hero__inner { max-width: 820px; position: relative; z-index: 1; }
.re-eyebrow {
  display: inline-block; padding: 7px 18px; border-radius: 99px;
  font-size: .85rem; font-weight: 600; margin-bottom: 22px;
  background: var(--tint); color: var(--gold);
}
.re-hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; line-height: 1.15;
  color: var(--text); margin-bottom: 14px;
}
.re-hero h2 {
  font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 500; color: var(--gray-dark);
  margin-bottom: 16px;
}
.re-hero p { color: var(--text-soft); max-width: 640px; margin-bottom: 32px; }
.re-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-outline {
  background: transparent; border: 2px solid var(--gold); color: var(--gold);
}
.btn-outline:hover { background: var(--tint); }

/* ---------- Catalog controls ---------- */
.re-catalog { max-width: var(--maxw); margin: 0 auto; padding: 48px 24px 16px; }
.re-catalog h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 24px; }

.re-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.re-filter {
  padding: 9px 18px; border-radius: 99px; font-size: .88rem; font-weight: 500;
  border: 1px solid var(--border); color: var(--text-soft);
  transition: all .25s ease;
}
.re-filter:hover { border-color: var(--gold); color: var(--gold); }
.re-filter.active { background: var(--gold-grad); color: #fff; border-color: transparent; }

.re-tools { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.re-count { font-size: .9rem; font-weight: 600; color: var(--text-soft); white-space: nowrap; }
.re-count strong { color: var(--gold); }

.re-search { position: relative; max-width: 380px; flex: 1; min-width: 220px; }
.re-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: #9a9a9a; }
.re-search input {
  width: 100%; padding: 12px 16px 12px 40px; border-radius: 12px;
  border: 1.5px solid var(--border); font-size: .92rem; font-family: inherit;
  background: #fff; color: var(--text);
}
.re-search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(171,147,114,.1); }

/* ---------- Property grid ---------- */
.re-grid { max-width: var(--maxw); margin: 0 auto; padding: 16px 24px 96px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.re-empty { display: none; text-align: center; color: var(--text-soft); padding: 60px 0; grid-column: 1 / -1; }
.re-empty.show { display: block; }

.re-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  animation: re-fade .35s ease;
}
.re-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
@keyframes re-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.re-slider { position: relative; height: 230px; overflow: hidden; }
.re-track { display: flex; height: 100%; transition: transform .5s var(--ease); }
.re-slide { min-width: 100%; height: 100%; }
.re-slide img { width: 100%; height: 100%; object-fit: cover; }
.re-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 100%; background: var(--tint); color: var(--gold);
}
.re-placeholder svg { width: 34px; height: 34px; opacity: .8; }
.re-placeholder span { font-size: .82rem; font-weight: 600; color: var(--text-soft); }
.re-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px;
  border-radius: 50%; background: rgba(255,255,255,.85); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.re-nav-btn svg { width: 16px; height: 16px; color: var(--text); }
.re-nav-btn.prev { left: 10px; } .re-nav-btn.next { right: 10px; }
.re-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; }
.re-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); }
.re-dots span.active { background: #fff; }
.re-tag {
  position: absolute; top: 12px; left: 12px; padding: 5px 13px; border-radius: 99px;
  font-size: .72rem; font-weight: 700; color: #fff; background: var(--gold-grad);
}

.re-body-card { padding: 20px; }
.re-loc { display: flex; align-items: center; gap: 5px; font-size: .78rem; color: #9a9a9a; margin-bottom: 5px; }
.re-loc svg { width: 12px; height: 12px; }
.re-card h3 { font-size: 1.12rem; font-weight: 700; line-height: 1.3; margin-bottom: 5px; }
.re-meta { font-size: .85rem; color: var(--text-soft); margin-bottom: 8px; }
.re-price { font-weight: 700; color: var(--gold); font-size: 1.1rem; margin-bottom: 10px; }
.re-desc { font-size: .88rem; color: var(--text-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 16px; }
.re-cta {
  display: inline-block; padding: 10px 20px; border-radius: 10px; font-size: .85rem; font-weight: 600;
  color: #fff; background: var(--gold-grad);
}

/* ---------- Detail view ---------- */
.re-detail { max-width: var(--maxw); margin: 0 auto; padding: 32px 24px 96px; }
.re-back { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 600; margin-bottom: 32px; }
.re-back svg { width: 16px; height: 16px; }
.re-back:hover { text-decoration: underline; }

.re-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.re-detail-slider { position: relative; border-radius: var(--radius-lg); overflow: hidden; height: 420px; }
.re-detail-slider .re-nav-btn { width: 42px; height: 42px; }
.re-detail-slider .re-nav-btn svg { width: 20px; height: 20px; }
.re-thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding-bottom: 6px; }
.re-thumbs img {
  width: 76px; height: 56px; object-fit: cover; border-radius: 10px; cursor: pointer; flex-shrink: 0;
  border: 2px solid transparent; transition: border-color .25s ease;
}
.re-thumbs img.active { border-color: var(--gold); }

.re-info .re-tag { position: static; display: inline-block; margin-bottom: 14px; }
.re-info h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; margin-bottom: 10px; }
.re-info .re-loc { font-size: .95rem; margin-bottom: 16px; }
.re-info .re-loc svg { width: 16px; height: 16px; }
.re-info .re-price { font-size: 1.6rem; margin-bottom: 4px; }
.re-info .re-meta { font-size: .92rem; margin-bottom: 24px; }
.re-info h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
.re-info .re-long { color: var(--text-soft); line-height: 1.7; white-space: pre-line; }

.re-features { margin-top: 52px; }
.re-features h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 18px; }
.re-features ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.re-features li {
  display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-radius: 12px;
  background: var(--bg-soft); border: 1px solid var(--border); font-size: .9rem; color: var(--text);
}
.re-features li svg { width: 17px; height: 17px; color: var(--gold); flex-shrink: 0; }

.re-cta-box { margin-top: 52px; padding: 44px; border-radius: var(--radius-xl); text-align: center; background: var(--tint); }
.re-cta-box h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 10px; }
.re-cta-box p { color: var(--text-soft); max-width: 520px; margin: 0 auto 22px; }

/* ---------- WhatsApp flotante ---------- */
.re-wa {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25D366; color: #fff; box-shadow: 0 10px 25px -5px rgba(0,0,0,.25);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.re-wa:hover { transform: scale(1.08); box-shadow: 0 14px 32px -6px rgba(37,211,102,.5); }
.re-wa svg { width: 32px; height: 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .re-nav__links a:not(.re-nav__cta) { display: none; }
  .re-grid { grid-template-columns: repeat(2, 1fr); }
  .re-detail-grid { grid-template-columns: 1fr; gap: 28px; }
  .re-features ul { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .re-grid { grid-template-columns: 1fr; padding: 16px 20px 72px; }
  .re-catalog { padding: 36px 20px 16px; }
  .re-hero { padding: 64px 0 40px; }
  .re-features ul { grid-template-columns: 1fr; }
  .re-detail { padding: 24px 20px 72px; }
}
