/* ============================================================
   Ónix — template website premium para Comos
   Lujo oscuro: fondo oscuro elegante, acentos dorado/bronce.
   Colores configurables vía manifest (variables CSS).
   ============================================================ */

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('fonts/playfairdisplay-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/manrope-latin.woff2') format('woff2');
}

:root {
  --ink: #14120f;              /* primario (theme.primaryColor): fondos oscuros insignia (hero, footer, cta) */
  --ink-2: #241d15;            /* secundario (theme.secondaryColor): degradados de esos mismos bloques */
  --accent: #c9a35a;           /* acento (theme.accentColor): dorado/bronce — detalles, líneas, monograma */
  --accent-soft: rgba(201, 163, 90, 0.16);

  --bg: #0f0e0c;                /* fondo base de toda la página */
  --surface: #1a1712;           /* tarjetas, paneles, buscador */
  --surface-2: #26211a;         /* superficies auxiliares (placeholders de imagen) */
  --line: rgba(244, 238, 224, 0.1);
  --text: #f4eee0;              /* texto principal, marfil */
  --muted: #b9ac93;             /* texto secundario, piedra cálida */
  --wa: #25d366;

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35), 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 26px rgba(0, 0, 0, 0.45), 0 26px 64px rgba(0, 0, 0, 0.5);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

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

h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--text);
}

.icon {
  width: 1.05em;
  height: 1.05em;
  fill: currentColor;
  vertical-align: -0.16em;
  flex: none;
}

/* ---------------- Carga ---------------- */

.boot-loading {
  min-height: 46vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
}
.boot-spinner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  animation: spin 0.85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 14, 12, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.navbar {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 74px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-mark {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--accent), #8a6a34);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: 0;
  transition: background 0.18s ease, color 0.18s ease;
}
.nav-link:hover { background: var(--accent-soft); }
.nav-link.active { background: var(--accent); color: var(--bg); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--wa);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 18px;
  line-height: 1;
  color: var(--text);
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(255, 255, 255, 0.08), transparent 60%),
    radial-gradient(900px 540px at -10% 110%, var(--accent-soft), transparent 55%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero-bg.show { opacity: 1; }
.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 7, 6, 0.6) 0%, rgba(8, 7, 6, 0.78) 70%, rgba(8, 7, 6, 0.9) 100%);
}
.hero-lines {
  position: absolute;
  right: -120px;
  top: -140px;
  width: 560px;
  color: var(--accent);
  opacity: 0.22;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding: 92px 0 110px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 22px;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: '';
  width: 34px;
  height: 1px;
  background: var(--accent);
}
.hero h1 {
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 600;
  color: #fff;
  margin: 0 auto 16px;
  max-width: 17ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  font-size: 17.5px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 56ch;
  margin: 0 auto 44px;
}

/* Buscador del hero */
.search-card {
  max-width: 920px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  padding: 10px;
  color: var(--text);
  text-align: left;
}
.search-tabs {
  display: flex;
  gap: 6px;
  padding: 6px 6px 10px;
}
.search-tab {
  border: 0;
  background: none;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.16s ease;
}
.search-tab.active { background: var(--accent); color: var(--bg); }
.search-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr auto;
  gap: 8px;
  padding: 0 6px 6px;
}
.field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  min-height: 54px;
}
.field .icon { color: var(--accent); }
.field input, .field select {
  border: 0;
  background: none;
  outline: none;
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  min-height: 52px;
}
.field select option { color: #111; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 14px;
  padding: 0 26px;
  min-height: 54px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-accent { background: var(--ink); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-ghost {
  background: none;
  border: 1.5px solid var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }

.hero-quicklinks {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
  font-size: 13.5px;
}
.hero-quicklinks a {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.88);
  transition: all 0.16s ease;
}
.hero-quicklinks a:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--accent); }
.hero-quicklinks-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-right: 2px;
  align-self: center;
}

/* ---------------- Secciones ---------------- */

.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 38px;
}
.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 0; }
.section-head .link-more {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 3px;
  white-space: nowrap;
}

/* ---------------- Tarjetas de propiedad ---------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.prop-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
}
.prop-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--accent-soft); }
.prop-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-2);
}
.prop-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.prop-card:hover .prop-media img { transform: scale(1.045); }
.prop-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-op { background: rgba(10, 9, 8, 0.8); color: #fff; backdrop-filter: blur(4px); }
.badge-type { background: rgba(244, 238, 224, 0.92); color: var(--bg); }
.prop-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.prop-price {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
}
.prop-price small {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-right: 4px;
}
.prop-title {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}
.prop-loc {
  font-size: 13.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.prop-loc .icon { color: var(--accent); }
.prop-facts {
  display: flex;
  gap: 16px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.prop-facts span { display: inline-flex; align-items: center; gap: 6px; }
.prop-facts strong { color: var(--text); font-weight: 600; }

.empty-state {
  text-align: center;
  padding: 70px 24px;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.empty-state h2 { color: var(--text); }

/* ---------------- Explora por tipo ---------------- */

.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}
.type-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 18px;
  text-align: center;
  transition: all 0.2s ease;
}
.type-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.type-card .icon {
  width: 30px;
  height: 30px;
  color: var(--accent);
  margin-bottom: 10px;
}
.type-card span { display: block; font-size: 14px; font-weight: 600; color: var(--text); }

/* ---------------- Sello / propuestas de valor ---------------- */

.values { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.value-item .icon {
  width: 30px;
  height: 30px;
  color: var(--accent);
  margin-bottom: 14px;
}
.value-item h3 { font-size: 20px; margin-bottom: 8px; }
.value-item p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------------- Servicios (opcional, desde manifest) ---------------- */

.services-row { display: flex; flex-wrap: wrap; gap: 12px; }
.service-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
}
.service-chip .icon { color: var(--accent); width: 16px; height: 16px; }

/* ---------------- CTA banner ---------------- */

.cta-banner {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(700px 300px at 90% -20%, var(--accent-soft), transparent 60%),
    linear-gradient(150deg, var(--ink), var(--ink-2));
  border: 1px solid var(--line);
  color: #fff;
  padding: 64px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}
.cta-banner h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 10px; color: #fff; }
.cta-banner h2 em { font-style: italic; color: var(--accent); }
.cta-banner p { margin: 0; color: rgba(255, 255, 255, 0.78); max-width: 52ch; }
.cta-banner .btn { flex: none; }

/* ---------------- Banda interior (listado/detalle) ---------------- */

.page-band {
  background: linear-gradient(155deg, var(--ink), var(--ink-2));
  color: #fff;
  padding: 54px 0 60px;
}
.page-band h1 { font-size: clamp(30px, 4.4vw, 44px); margin: 0 0 6px; color: #fff; }
.page-band .crumbs {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.66);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.page-band .crumbs a:hover { color: var(--accent); }

/* ---------------- Filtros del listado ---------------- */

.filter-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  padding: 18px;
  margin-top: -44px;
  position: relative;
  z-index: 5;
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.filter-grid .field { min-height: 50px; }
.filter-grid .field input, .filter-grid .field select { min-height: 48px; font-size: 14px; }
.filter-grid .btn { min-height: 50px; }
.results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 30px 0 22px;
  color: var(--muted);
  font-size: 14.5px;
}
.results-meta strong { color: var(--text); }

.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 44px;
}
.pagination button {
  border: 1.5px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: all 0.16s ease;
}
.pagination button:not(:disabled):hover { border-color: var(--accent); }
.pagination button:disabled { opacity: 0.4; cursor: default; }

/* ---------------- Detalle ---------------- */

.detail-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}
.detail-head h1 { max-width: 24ch; color: #fff; }
.detail-head .loc {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14.5px;
}
.detail-price { text-align: right; flex: none; }
.detail-price .op {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}
.detail-price .amount { font-family: var(--serif); font-size: 36px; font-weight: 600; line-height: 1; color: #fff; }
.detail-price .amount small { font-size: 16px; font-weight: 500; color: rgba(255, 255, 255, 0.7); margin-right: 6px; }

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
  margin-top: -34px;
  position: relative;
  z-index: 5;
}

.gallery {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 10;
}
.gallery .carousel-item { display: none; position: absolute; inset: 0; }
.gallery .carousel-item.active { display: block; }
.gallery .carousel-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(244, 238, 224, 0.92);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease;
}
.gallery-nav:hover { transform: translateY(-50%) scale(1.06); }
.gallery-nav.prev { left: 16px; }
.gallery-nav.next { right: 16px; }
.gallery-count {
  position: absolute;
  right: 16px;
  bottom: 14px;
  background: rgba(10, 9, 8, 0.72);
  color: #fff;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  backdrop-filter: blur(4px);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 30px;
  margin-top: 26px;
}
.panel h3 { font-size: 22px; margin-bottom: 16px; }
.facts-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.fact-chip {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}
.fact-chip .icon { color: var(--accent); width: 20px; height: 20px; }
.fact-chip strong { display: block; font-size: 16px; margin-top: 6px; color: var(--text); }
.fact-chip span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.description-text { color: var(--text); white-space: pre-line; margin: 0; }

.detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 26px;
  font-size: 14.5px;
}
.detail-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 2px;
  border-bottom: 1px dashed var(--line);
}
.detail-list li span { color: var(--muted); }
.detail-list li strong { font-weight: 600; text-align: right; color: var(--text); }

/* Aside contacto */
.aside-sticky { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 22px; }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 30px;
  text-align: center;
}
.contact-card .brand-mark { width: 58px; height: 58px; border-radius: 16px; margin: 0 auto 14px; font-size: 24px; }
.contact-card h3 { margin-bottom: 4px; font-size: 21px; }
.contact-card .sub { color: var(--muted); font-size: 13.5px; margin: 0 0 20px; }
.contact-card .btn { width: 100%; margin-bottom: 10px; }
.contact-card .tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
}
.share-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.share-row a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all 0.15s ease;
}
.share-row a:hover { border-color: var(--accent); color: var(--accent); }

.mini-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
}
.mini-card img {
  width: 86px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  flex: none;
  background: var(--surface-2);
}
.mini-card strong {
  display: block;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mini-card span { font-size: 12.5px; color: var(--muted); }

/* ---------------- Contacto ---------------- */

.contact-hero {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.contact-hero p { color: var(--muted); }

/* ---------------- Footer ---------------- */

.site-footer {
  background: linear-gradient(155deg, var(--ink), var(--ink-2));
  color: rgba(255, 255, 255, 0.78);
  margin-top: 90px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding: 64px 0 48px;
}
.site-footer .brand-mark { background: rgba(255, 255, 255, 0.14); color: var(--accent); }
.footer-about { font-size: 14.5px; max-width: 38ch; margin-top: 16px; }
.social-links { display: flex; gap: 10px; margin-top: 16px; }
.social-links a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.78);
  transition: all 0.15s ease;
}
.social-links a:hover { border-color: var(--accent); color: var(--accent); }
.site-footer h6 {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 4px 0 18px;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.footer-links a:hover { color: var(--accent); }
.footer-contact { display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 9px; }
.footer-contact a:hover { color: var(--accent); }
.footer-contact .icon { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom a { color: rgba(255, 255, 255, 0.72); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------------- WhatsApp flotante ---------------- */

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.4);
  transition: transform 0.18s ease;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }

/* ---------------- Responsive ---------------- */

@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .aside-sticky { position: static; }
  .filter-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-list { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 14px 20px 20px;
    gap: 6px;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.show { display: flex; }
  .nav-link { text-align: left; border-radius: 12px; }
  .nav-cta { margin: 8px 0 0; justify-content: center; }
  .nav-toggle { display: block; }
  .hero-inner { padding: 64px 0 78px; }
  .search-row { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 44px 28px; }
  .section { padding: 60px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .detail-head { flex-direction: column; align-items: flex-start; }
  .detail-price { text-align: left; }
  .facts-row { grid-template-columns: repeat(2, 1fr); }
  .detail-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
