/* =====================================================
   INMACULADA — inmuebles.css
   Catálogo completo con filtros
   DM Serif Display + DM Sans · Negro/Dorado Luxury
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600&display=swap');

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

:root {
  /* 🏆 PALETA DORADA */
  --gold:       #D4AF37;
  --gold-deep:  #B8941F;
  --gold-dark:  #9A7B1A;
  --gold-light: #E5C158;
  --gold-pale:  #F4E8C1;
  --gold-ghost: rgba(212,175,55,.08);
  --gold-glow:  rgba(212,175,55,.25);

  /* 🌑 FONDOS OSCUROS */
  --bg:         #0a0a0a;
  --surface:    #1e1e1e;
  --surface2:   #252525;

  /* 📝 TEXTOS CLAROS */
  --text:       #f5f5f5;
  --text2:      #b8b8b8;
  --text3:      #777777;

  /* ── BORDES */
  --border:     rgba(212,175,55,.15);
  --border2:    rgba(212,175,55,.28);

  --danger:     #ef4444;
  --success:    #22c55e;

  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  18px;
  --r-xl:  26px;

  --ease:   cubic-bezier(.4,0,.2,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
  --t:      .22s;

  --nav-h:      64px;
  --sidebar-w:  280px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ══════════════════════════════════════════════════
   NAV SUPERIOR
   ══════════════════════════════════════════════════ */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(10,10,10,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(0,0,0,.6);
  height: var(--nav-h);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img {
  height: 32px;
  border-radius: 7px;
  object-fit: contain;
}

.nav-logo span {
  font-family: 'DM Serif Display', serif;
  font-size: 16px;
  color: var(--text);
  white-space: nowrap;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: var(--gold-ghost);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--t) var(--ease);
}

.btn-back:hover {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

/* ══════════════════════════════════════════════════
   HEADER DE PÁGINA
   ══════════════════════════════════════════════════ */
.page-header {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
  padding: 52px 24px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(212,175,55,.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

.header-inner { position: relative; z-index: 1; }

.header-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 10px;
}

.page-header h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 400;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 12px;
}

.page-header h1 em { font-style: italic; color: var(--gold-light); }

.header-sub {
  font-size: 15px;
  color: rgba(255,255,255,.6);
}

/* ══════════════════════════════════════════════════
   LAYOUT: SIDEBAR + MAIN
   ══════════════════════════════════════════════════ */
.catalog-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: 28px;
  align-items: start;
}

/* ══════════════════════════════════════════════════
   SIDEBAR DE FILTROS
   ══════════════════════════════════════════════════ */
.filters-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 22px;
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  max-height: calc(100vh - var(--nav-h) - 32px);
  overflow-y: auto;
}

.filters-panel::-webkit-scrollbar { width: 4px; }
.filters-panel::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 4px; }

.filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.filters-header span {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 7px;
}

.filters-header i { color: var(--gold); }

.btn-clear-all {
  font-size: 12px;
  color: var(--text3);
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: color var(--t);
}

.btn-clear-all:hover { color: var(--danger); }

/* Grupos de filtro */
.filter-group {
  margin-bottom: 22px;
}

.filter-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text3);
  margin-bottom: 10px;
}

/* Búsqueda */
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: var(--text3);
  font-size: 13px;
  pointer-events: none;
}

.search-wrap input {
  width: 100%;
  padding: 10px 36px 10px 34px;
  background: var(--surface2);
  border: 1.5px solid var(--border2);
  border-radius: var(--r-md);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
}

.search-wrap input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,.15);
  background: var(--surface);
}

.search-wrap input::placeholder { color: var(--text3); }

.clear-input {
  position: absolute;
  right: 8px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--text3);
  color: #fff;
  border: none;
  font-size: 10px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t);
}

.clear-input:hover { background: var(--danger); }

/* Chips de filtro */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-chip {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--border2);
  background: var(--surface2);
  color: var(--text2);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--t) var(--ease);
}

.filter-chip:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-ghost); }

.filter-chip.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}

/* Rango de precio */
.price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-field span {
  font-size: 10px;
  color: var(--text3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.price-field input {
  width: 100%;
  padding: 9px 10px;
  background: var(--surface2);
  border: 1.5px solid var(--border2);
  border-radius: var(--r-md);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color var(--t);
}

.price-field input:focus { border-color: var(--gold); background: var(--surface); }
.price-field input::placeholder { color: var(--text3); }

.price-sep { color: var(--text3); font-size: 14px; padding-top: 20px; }

.price-display {
  font-size: 11px;
  font-weight: 500;
  color: var(--gold);
  text-transform: none;
  letter-spacing: 0;
}

/* Checkboxes de características */
.check-filters { display: flex; flex-direction: column; gap: 8px; }

.check-filter-item {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border2);
  background: var(--surface2);
  transition: all var(--t) var(--ease);
  font-size: 13px;
  color: var(--text2);
}

.check-filter-item:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-ghost); }

.check-filter-item input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
}

.check-filter-item i { font-size: 12px; color: var(--gold); }

/* Select ordenar */
.select-filter {
  width: 100%;
  padding: 10px 13px;
  background: var(--surface2);
  border: 1.5px solid var(--border2);
  border-radius: var(--r-md);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--text);
  outline: none;
  appearance: none;
  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='%23777777' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
  transition: border-color var(--t);
}

.select-filter:focus { border-color: var(--gold); background-color: var(--surface); }

/* ══════════════════════════════════════════════════
   BARRA DE RESULTADOS
   ══════════════════════════════════════════════════ */
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

.results-info {
  font-size: 13px;
  color: var(--text2);
}

.results-info strong { color: var(--gold); font-size: 15px; }

.btn-toggle-filters {
  display: none;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border2);
  border-radius: var(--r-md);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all var(--t);
  position: relative;
}

.btn-toggle-filters:hover { border-color: var(--gold); color: var(--gold); }

.filter-badge {
  position: absolute;
  top: -6px; right: -6px;
  width: 18px; height: 18px;
  background: var(--gold);
  color: var(--bg);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ══════════════════════════════════════════════════
   GRID DE CARDS
   ══════════════════════════════════════════════════ */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Loading */
.loading-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 80px 20px;
  color: var(--text3);
}

.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--gold-ghost);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-state p { font-size: 14px; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text3);
}

.empty-state i { font-size: 40px; margin-bottom: 16px; display: block; color: var(--gold-dark); }
.empty-state h3 { font-family: 'DM Serif Display', serif; font-size: 22px; color: var(--text2); margin-bottom: 8px; }
.empty-state p { font-size: 14px; margin-bottom: 24px; }

.btn-reset {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  background: var(--gold);
  color: var(--bg);
  border: none;
  border-radius: var(--r-md);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t);
}

.btn-reset:hover { background: var(--gold-deep); }

/* ══════════════════════════════════════════════════
   CARD
   ══════════════════════════════════════════════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--t) var(--ease);
  animation: cardIn .35s var(--ease) both;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(212,175,55,.35);
  box-shadow: 0 12px 36px rgba(212,175,55,.15);
}

@keyframes cardIn {
  from { opacity:0; transform:translateY(12px); }
  to   { opacity:1; transform:translateY(0); }
}

.card-img-wrap {
  position: relative;
  height: 195px;
  overflow: hidden;
  background: var(--surface2);
}

.card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s var(--ease);
}

.card:hover .card-img { transform: scale(1.05); }

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,.6) 0%, transparent 55%);
}

.card-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(212,175,55,.9);
  border: 1px solid rgba(212,175,55,.3);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--bg);
}

.card-body { padding: 16px 16px 18px; }

.card-location {
  font-size: 12px;
  color: var(--text3);
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-location i { color: var(--gold); font-size: 10px; }

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-price {
  font-family: 'DM Serif Display', serif;
  font-size: 21px;
  color: var(--gold);
  margin-bottom: 10px;
}

.card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11px;
  color: var(--text2);
}

.chip i { font-size: 10px; color: var(--gold); }

.card-actions {
  display: flex;
  gap: 7px;
}

.btn-detalles {
  flex: 1;
  padding: 9px 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--bg);
  border: none;
  border-radius: var(--r-md);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t);
  box-shadow: 0 2px 8px rgba(212,175,55,.25);
}

.btn-detalles:hover { filter: brightness(1.1); transform: translateY(-1px); }

.btn-whatsapp-card {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 12px;
  background: #25d366;
  color: #fff;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--t);
  white-space: nowrap;
}

.btn-whatsapp-card:hover { background: #1ebe5a; }

/* ══════════════════════════════════════════════════
   FAB WHATSAPP
   ══════════════════════════════════════════════════ */
.fab-wpp {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 54px; height: 54px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  text-decoration: none;
  z-index: 300;
  box-shadow: 0 6px 22px rgba(37,211,102,.4);
  transition: all var(--t) var(--spring);
  animation: fabPulse 3s ease-in-out infinite;
}

.fab-wpp:hover { transform: scale(1.1); }

@keyframes fabPulse {
  0%,100% { box-shadow: 0 6px 22px rgba(37,211,102,.4); }
  50%      { box-shadow: 0 6px 32px rgba(37,211,102,.6), 0 0 0 8px rgba(37,211,102,.07); }
}

/* ══════════════════════════════════════════════════
   MODAL / DIALOG
   ══════════════════════════════════════════════════ */
.dialog-lux {
  border: none;
  padding: 0;
  border-radius: var(--r-xl);
  width: min(95vw, 980px);
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.6);
  animation: dialogIn .3s var(--spring) both;
  margin: auto;
}

.dialog-lux::backdrop {
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(10px);
}

@keyframes dialogIn {
  from { opacity: 0; transform: scale(.93) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.dialog-container {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--r-xl);
  border: 1px solid rgba(212,175,55,.15);
}

.btn-cerrar {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(212,175,55,.15);
  border: 1px solid rgba(212,175,55,.3);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  transition: all var(--t);
  color: var(--gold);
  line-height: 1;
}

.btn-cerrar:hover {
  background: var(--gold);
  color: var(--bg);
}

.dialog-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.dialog-gallery {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  height: 100%;
}

.main-img {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: cover;
  display: block;
  transition: opacity .25s;
}

.no-img-placeholder {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(212,175,55,.3);
  font-size: 48px;
  background: var(--bg);
  min-height: 330px;
}

.thumb-list {
  display: flex;
  gap: 6px;
  padding: 10px;
  overflow-x: auto;
  background: rgba(0,0,0,.6);
  flex-shrink: 0;
  -webkit-overflow-scrolling: touch;
}

.thumb-list::-webkit-scrollbar {
  height: 3px;
}

.thumb-list::-webkit-scrollbar-thumb {
  background: rgba(212,175,55,.3);
  border-radius: 2px;
}

.thumb {
  width: 64px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: .6;
  border: 2px solid transparent;
  flex-shrink: 0;
  transition: all var(--t);
}

.thumb:hover {
  opacity: 1;
}

.thumb.thumb-active {
  opacity: 1;
  border-color: var(--gold);
}

.dialog-info {
  padding: 24px 22px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--surface);
}

.dialog-info::-webkit-scrollbar {
  width: 4px;
}

.dialog-info::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 2px;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(37,211,102,.15);
  color: #4ade80;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  margin-bottom: 10px;
  align-self: flex-start;
  border: 1px solid rgba(37,211,102,.3);
}

.badge-status::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

.dialog-info h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 21px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.25;
}

.location {
  font-size: 13px;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}

.location i {
  color: var(--gold);
}

.price {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 18px;
}

.specs-grid-full {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  background: var(--surface2);
  border: 1px solid rgba(212,175,55,.2);
  border-radius: var(--r-md);
  text-align: center;
}

.spec-item i {
  font-size: 16px;
  color: var(--gold);
  margin-bottom: 2px;
}

.spec-item strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.spec-item small {
  font-size: 10px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.extra-info {
  margin-bottom: 12px;
  border-top: 1px solid rgba(212,175,55,.15);
  padding-top: 12px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(212,175,55,.15);
  font-size: 13px;
}

.info-row:last-child {
  border-bottom: none;
}

.info-row span {
  color: var(--text2);
}

.info-row strong {
  color: var(--text);
  font-weight: 600;
}

.tags-extras {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.tag-extra {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: var(--surface2);
  border: 1px solid rgba(212,175,55,.2);
  border-radius: 999px;
  font-size: 11px;
  color: var(--text2);
  font-weight: 500;
}

.tag-extra i {
  color: var(--gold);
  font-size: 10px;
}

.desc-box {
  background: var(--surface2);
  border-radius: var(--r-md);
  padding: 13px 15px;
  margin-bottom: 16px;
  border: 1px solid rgba(212,175,55,.1);
}

.desc-box h3 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--gold);
  margin-bottom: 7px;
}

.desc-box p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.65;
}

.btn-wpp-dialog {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  background: #25d366;
  color: #fff;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--t);
  box-shadow: 0 4px 14px rgba(37,211,102,.3);
  margin-top: auto;
}

.btn-wpp-dialog:hover {
  background: #1ebe5a;
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════
   FLECHAS DE NAVEGACIÓN - CARRUSEL (AGREGADO)
   ══════════════════════════════════════════════════ */

.thumb-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.thumb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: rgba(212,175,55,.9);
  border: none;
  border-radius: 50%;
  color: var(--bg);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all var(--t);
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.thumb-nav:hover {
  background: var(--gold);
  transform: translateY(-50%) scale(1.1);
}

.thumb-nav.prev {
  left: 6px;
}

.thumb-nav.next {
  right: 6px;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE - TABLETS (≤ 1024px)
   ══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .catalog-layout {
    grid-template-columns: 240px 1fr;
    gap: 24px;
  }
  
  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE - TABLETS PEQUEÑAS (≤ 1000px)
   ══════════════════════════════════════════════════ */
@media (max-width: 1000px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  
  /* Sidebar como drawer lateral */
  .filters-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 85vw);
    border-radius: 0 var(--r-xl) var(--r-xl) 0;
    z-index: 500;
    transform: translateX(-110%);
    transition: transform .35s var(--ease);
    max-height: 100vh;
    box-shadow: 4px 0 32px rgba(0,0,0,.8);
  }
  
  .filters-panel.open {
    transform: translateX(0);
  }
  
  .filters-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(4px);
    z-index: 490;
  }
  
  .filters-overlay.visible {
    display: block;
  }
  
  .btn-toggle-filters {
    display: inline-flex;
  }
  
  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
  
  /* Modal en tablet */
  .dialog-lux {
    width: 95vw;
    max-height: 92vh;
  }
  
  .dialog-grid {
    grid-template-columns: 1fr;
  }
  
  .dialog-gallery {
    max-height: 45vh;
  }
  
  .main-img {
    height: 280px;
    flex: none;
  }
  
  .no-img-placeholder {
    height: 280px;
    min-height: auto;
    flex: none;
  }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE - MÓVILES GRANDES (≤ 768px)
   ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .page-header {
    padding: 40px 16px 36px;
  }
  
  .page-header h1 {
    font-size: clamp(24px, 6vw, 36px);
  }
  
  .header-sub {
    font-size: 14px;
  }
  
  .catalog-layout {
    padding: 24px 16px;
    gap: 20px;
  }
  
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  
  .card-img-wrap {
    height: 170px;
  }
  
  .card-body {
    padding: 12px 12px 14px;
  }
  
  .card-title {
    font-size: 14px;
  }
  
  .card-price {
    font-size: 18px;
    margin-bottom: 8px;
  }
  
  .card-chips {
    margin-bottom: 10px;
  }
  
  .chip {
    font-size: 10px;
    padding: 2px 6px;
  }
  
  .card-actions {
    flex-direction: column;
    gap: 6px;
  }
  
  .btn-detalles,
  .btn-whatsapp-card {
    justify-content: center;
    font-size: 12px;
    padding: 8px 10px;
  }
  
  /* Modal en móvil grande */
  .dialog-lux {
    width: 96vw;
    max-height: 94vh;
  }
  
  .dialog-container {
    max-height: 94vh;
  }
  
  .dialog-grid {
    grid-template-columns: 1fr;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .dialog-gallery {
    flex: 0 0 auto;
    max-height: 45vh;
  }
  
  .main-img {
    height: 260px;
    flex: none;
  }
  
  .no-img-placeholder {
    height: 260px;
    min-height: auto;
    flex: none;
  }
  
  .thumb-list {
    padding: 8px;
    gap: 5px;
  }
  
  .thumb {
    width: 58px;
    height: 48px;
  }
  
  .dialog-info {
    padding: 20px 18px;
  }
  
  .dialog-info h2 {
    font-size: 19px;
  }
  
  .price {
    font-size: 24px;
  }
  
  .specs-grid-full {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  
  .spec-item {
    padding: 10px 6px;
  }
  
  .spec-item i {
    font-size: 14px;
  }
  
  .spec-item strong {
    font-size: 13px;
  }
  
  .spec-item small {
    font-size: 9px;
  }
  
  /* Ocultar flechas en móvil */
  .thumb-nav {
    display: none;
  }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE - MÓVILES (≤ 640px)
   ══════════════════════════════════════════════════ */
@media (max-width: 640px) {
  /* NAV */
  .top-nav {
    height: 56px;
  }
  
  .nav-inner {
    padding: 0 12px;
  }
  
  .nav-logo img {
    height: 28px;
  }
  
  .nav-logo span {
    font-size: 14px;
  }
  
  .btn-back {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  /* HEADER */
  .page-header {
    padding: 36px 12px 32px;
  }
  
  .header-eyebrow {
    font-size: 10px;
    letter-spacing: 1.5px;
  }
  
  .page-header h1 {
    font-size: 26px;
    margin-bottom: 10px;
  }
  
  .header-sub {
    font-size: 13px;
  }
  
  /* LAYOUT */
  .catalog-layout {
    padding: 20px 12px;
  }
  
  /* FILTROS */
  .filters-panel {
    width: min(300px, 90vw);
    padding: 16px;
  }
  
  .filters-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
  }
  
  .filter-group {
    margin-bottom: 18px;
  }
  
  .search-wrap input {
    padding: 9px 32px 9px 32px;
    font-size: 13px;
  }
  
  .filter-chip {
    font-size: 11px;
    padding: 4px 10px;
  }
  
  .price-field input {
    font-size: 12px;
    padding: 8px;
  }
  
  .check-filter-item {
    font-size: 12px;
    padding: 7px 9px;
  }
  
  /* RESULTADOS */
  .results-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
  }
  
  .results-info {
    font-size: 12px;
  }
  
  .btn-toggle-filters {
    padding: 8px 14px;
    font-size: 12px;
  }
  
  /* GRID - UNA SOLA COLUMNA */
  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .card-img-wrap {
    height: 200px;
  }
  
  .card-body {
    padding: 14px;
  }
  
  .card-actions {
    flex-direction: row;
  }
  
  .btn-detalles,
  .btn-whatsapp-card {
    font-size: 13px;
    padding: 9px 12px;
  }
  
  /* Modal en móvil - MANTENER LO QUE FUNCIONA */
  .dialog-lux {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }
  
  .dialog-container {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    overflow: hidden;
    border: none;
    display: flex;
    flex-direction: column;
  }
  
  .dialog-grid {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    flex: 1;
    min-height: 0;
  }
  
  .dialog-gallery {
    flex: 0 0 auto;
    height: auto;
    max-height: 45vh;
    min-height: 260px;
    position: relative;
    overflow: hidden;
    background: var(--bg);
  }
  
  .main-img {
    width: 100%;
    height: 100%;
    max-height: 45vh;
    min-height: 260px;
    object-fit: cover;
    display: block;
  }
  
  .no-img-placeholder {
    width: 100%;
    height: 260px;
    min-height: 260px;
    max-height: 45vh;
    flex: none;
  }
  
  .thumb-list {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 12px;
    gap: 5px;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.4) 70%, transparent 100%);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  
  .thumb-list::-webkit-scrollbar {
    height: 2px;
  }
  
  .thumb {
    width: 56px;
    height: 46px;
    border-radius: 5px;
    border-width: 2px;
  }
  
  .thumb.thumb-active {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(212,175,55,.3);
  }
  
  .dialog-info {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 20px 16px 100px;
    background: var(--surface);
    position: relative;
    height: 100%;
    max-height: 100%;
  }
  
  .dialog-info::-webkit-scrollbar {
    width: 3px;
  }
  
  .btn-cerrar {
    width: 42px;
    height: 42px;
    top: 12px;
    right: 12px;
    font-size: 20px;
    z-index: 40;
    background: rgba(0,0,0,.7);
    border-color: rgba(212,175,55,.5);
    backdrop-filter: blur(8px);
    position: fixed;
  }
  
  .btn-cerrar:hover {
    background: var(--gold);
    color: var(--bg);
  }
  
  .badge-status {
    font-size: 10px;
    padding: 3px 10px;
  }
  
  .dialog-info h2 {
    font-size: 18px;
    margin-bottom: 4px;
  }
  
  .location {
    font-size: 12px;
    margin-bottom: 8px;
  }
  
  .price {
    font-size: 24px;
    margin-bottom: 14px;
  }
  
  .specs-grid-full {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin: 12px 0;
  }
  
  .spec-item {
    padding: 10px 6px;
    gap: 3px;
  }
  
  .spec-item i {
    font-size: 14px;
  }
  
  .spec-item strong {
    font-size: 13px;
  }
  
  .spec-item small {
    font-size: 9px;
  }
  
  .extra-info {
    margin: 12px 0;
    padding-top: 10px;
  }
  
  .info-row {
    font-size: 12px;
    padding: 6px 0;
  }
  
  .tags-extras {
    gap: 4px;
    margin: 12px 0;
  }
  
  .tag-extra {
    font-size: 10px;
    padding: 4px 8px;
  }
  
  .desc-box {
    padding: 11px 13px;
    margin: 12px 0;
  }
  
  .desc-box h3 {
    font-size: 10px;
    margin-bottom: 6px;
  }
  
  .desc-box p {
    font-size: 12px;
    line-height: 1.6;
  }
  
  .btn-wpp-dialog {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 14px;
    font-size: 14px;
    border-radius: 0;
    margin: 0;
    z-index: 30;
    box-shadow: 0 -4px 20px rgba(0,0,0,.5);
  }
  
  .fab-wpp {
    bottom: 80px;
    right: 16px;
    width: 50px;
    height: 50px;
    font-size: 22px;
  }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE - MÓVILES PEQUEÑOS (≤ 480px)
   ══════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .page-header h1 {
    font-size: 24px;
  }
  
  .card-img-wrap {
    height: 180px;
  }
  
  .main-img {
    min-height: 240px;
    max-height: 45vh;
  }
  
  .no-img-placeholder {
    height: 240px;
    min-height: 240px;
  }
  
  .dialog-gallery {
    min-height: 240px;
    max-height: 45vh;
  }
  
  .thumb {
    width: 52px;
    height: 42px;
  }
  
  .dialog-info {
    padding: 16px 14px 90px;
  }
  
  .dialog-info h2 {
    font-size: 17px;
  }
  
  .price {
    font-size: 22px;
  }
  
  .specs-grid-full {
    gap: 5px;
  }
  
  .spec-item {
    padding: 8px 4px;
  }
  
  .spec-item strong {
    font-size: 12px;
  }
  
  .btn-wpp-dialog {
    font-size: 13px;
    padding: 12px;
  }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE - MÓVILES MUY PEQUEÑOS (≤ 380px)
   ══════════════════════════════════════════════════ */
@media (max-width: 380px) {
  .page-header h1 {
    font-size: 22px;
  }
  
  .nav-logo span {
    font-size: 13px;
  }
  
  .card-img-wrap {
    height: 160px;
  }
  
  .main-img {
    min-height: 220px;
    max-height: 42vh;
  }
  
  .no-img-placeholder {
    height: 220px;
    min-height: 220px;
  }
  
  .dialog-gallery {
    min-height: 220px;
    max-height: 42vh;
  }
  
  .thumb {
    width: 48px;
    height: 40px;
  }
  
  .specs-grid-full {
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }
  
  .spec-item {
    padding: 7px 3px;
  }
  
  .spec-item i {
    font-size: 13px;
  }
  
  .spec-item strong {
    font-size: 11px;
  }
  
  .spec-item small {
    font-size: 8px;
  }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE - ORIENTACIÓN HORIZONTAL
   ══════════════════════════════════════════════════ */
@media (max-height: 500px) and (orientation: landscape) {
  .dialog-lux {
    height: 100vh;
    max-height: 100vh;
  }
  
  .dialog-grid {
    height: 100vh;
  }
  
  .dialog-gallery {
    max-height: 50vh;
    min-height: auto;
  }
  
  .main-img {
    max-height: 50vh;
    min-height: auto;
    height: 100%;
  }
  
  .no-img-placeholder {
    max-height: 50vh;
    height: 100%;
  }
  
  .dialog-info {
    max-height: 50vh;
    padding-bottom: 80px;
  }
  
  .btn-wpp-dialog {
    bottom: 0;
  }
}

/* ══════════════════════════════════════════════════
   MEJORAS GENERALES PARA MÓVIL
   ══════════════════════════════════════════════════ */

/* Prevenir zoom en iOS en inputs */
@media screen and (max-width: 768px) {
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Touch targets mínimos (44px recomendado) */
@media (max-width: 640px) {
  button,
  .btn-detalles,
  .btn-whatsapp-card,
  .filter-chip,
  .check-filter-item,
  .btn-toggle-filters,
  .btn-clear-all,
  .clear-input {
    min-height: 44px;
  }
  
  .filter-chip {
    min-height: 36px;
  }
  
  .thumb {
    min-width: 56px;
    min-height: 46px;
  }
  
  .btn-cerrar {
    min-width: 42px;
    min-height: 42px;
  }
}

/* Mejorar scroll en móvil */
@media (max-width: 640px) {
  .dialog-info,
  .thumb-list,
  .filters-panel {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }
}

/* Animaciones más suaves en móvil */
@media (max-width: 640px) {
  .card,
  .dialog-lux {
    animation-duration: .25s;
  }
  
  .card:hover {
    transform: none; /* Desactivar hover en touch */
  }
}