/* =========================================================================
   Mi Proximo Hogar - Tema claro moderno (estilo portal inmobiliario)
   ========================================================================= */

:root {
  --c-bg:        #e8ecf4;
  --c-bg-2:      rgba(255, 255, 255, 0.45);
  --c-surface:   rgba(255, 255, 255, 0.24);
  --c-surface-2: rgba(255, 255, 255, 0.32);
  --c-border:    rgba(255, 255, 255, 0.62);
  --c-border-2:  rgba(255, 255, 255, 0.48);

  --c-text:      #1f2937;
  --c-text-dim:  #4b5563;
  --c-text-mute: #6b7280;

  --c-primary:   #ff6b00;
  --c-primary-2: #ea580c;
  --c-primary-3: #ff8534;
  --c-accent:    #ffb347;
  --c-brand-dark:#7c2d12;
  --c-magenta:   #e11d48;

  --c-success:   #059669;
  --c-warn:      #d97706;
  --c-danger:    #dc2626;
  --c-info:      #0284c7;

  --grad-fire:   linear-gradient(135deg, #ff6b00 0%, #ff8534 100%);
  --grad-fire-r: linear-gradient(135deg, #ff6b00 0%, #ff8534 100%);
  --grad-night:  linear-gradient(165deg, #dce4f0 0%, #e8ecf4 35%, #f0e8e4 100%);

  --shadow-1: 0 8px 32px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 4px 24px rgba(255, 107, 0, 0.1);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  --container: 1240px;
  --font-display: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-body:    'Montserrat', system-ui, -apple-system, sans-serif;

  /* Glass — ultra claro, transparente y nitido */
  --glass-bg:        rgba(255, 255, 255, 0.22);
  --glass-bg-strong: rgba(255, 255, 255, 0.34);
  --glass-bg-soft:   rgba(255, 255, 255, 0.12);
  --glass-border:    rgba(255, 255, 255, 0.82);
  --glass-border-2:  rgba(255, 255, 255, 0.52);
  --glass-blur:      blur(36px) saturate(1.65);
  --glass-blur-sm:   blur(22px) saturate(1.5);
  --glass-shadow:    0 12px 40px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.72);

  /* Tarjetas propiedad — sombras profesionales */
  --card-radius: 20px;
  --card-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 4px 12px rgba(15, 23, 42, 0.06),
    0 16px 40px rgba(15, 23, 42, 0.08);
  --card-shadow-hover:
    0 2px 6px rgba(15, 23, 42, 0.05),
    0 12px 28px rgba(15, 23, 42, 0.1),
    0 28px 56px rgba(15, 23, 42, 0.14);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--grad-night);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.01em;
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  position: relative;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--c-primary-2); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--c-primary); }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.01em; margin: 0 0 .5rem; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.12; font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p  { margin: 0 0 1rem; color: var(--c-text-dim); font-weight: 400; line-height: 1.7; }

/* ===== Fondo futurista transparente ======================================= */
#bg-canvas {
  position: fixed; inset: 0;
  z-index: -3;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.32;
}
.bg-grid {
  display: block;
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 107, 0, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 107, 0, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: fxGridDrift 24s linear infinite;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 25%, transparent 78%);
}
.bg-glow {
  display: block;
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 15% 10%, rgba(255, 107, 0, 0.16), transparent 55%),
    radial-gradient(ellipse 55% 45% at 88% 75%, rgba(255, 133, 52, 0.14), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(99, 102, 241, 0.1), transparent 60%),
    radial-gradient(ellipse 40% 35% at 70% 20%, rgba(255, 180, 100, 0.12), transparent 50%);
  animation: fxGlowPulse 10s ease-in-out infinite alternate;
}
.bg-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -2;
  filter: blur(70px);
  opacity: 0.42;
  animation: fxOrbFloat 14s ease-in-out infinite alternate;
}
.bg-orb--1 {
  width: 320px; height: 320px;
  top: 8%; left: -4%;
  background: rgba(255, 107, 0, 0.2);
}
.bg-orb--2 {
  width: 320px; height: 320px;
  bottom: 10%; right: -2%;
  background: rgba(255, 133, 52, 0.18);
  animation-delay: -5s;
}
@keyframes fxGridDrift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 56px 56px, 56px 56px; }
}
@keyframes fxGlowPulse {
  from { opacity: 0.55; transform: scale(1); }
  to   { opacity: 1; transform: scale(1.03); }
}
@keyframes fxOrbFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(24px, -18px) scale(1.08); }
}
@keyframes fxFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fxReveal {
  from { opacity: 0; letter-spacing: 0.06em; }
  to   { opacity: 1; letter-spacing: 0.01em; }
}

/* ===== Container ========================================================== */
.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}
.section--narrow { max-width: 1180px; }
.section__head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 1rem; margin-bottom: 1.5rem;
}
.section__head h2 { margin: 0; }
.link-more {
  font-weight: 600; font-size: .95rem; color: var(--c-primary-2);
  border-bottom: 1px dashed rgba(255, 107, 0, 0.35);
  padding-bottom: 2px;
}
.link-more--dark { color: var(--c-primary-2); }

/* ===== Nav ================================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background: rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  animation: fxFadeUp 0.6s ease both;
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: .85rem 1.5rem;
  display: flex; align-items: center; gap: 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: #111827;
  font-weight: 700;
  text-decoration: none;
}
.logo__img {
  display: block;
  height: 42px;
  width: auto;
  max-width: min(210px, 42vw);
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  transition: transform .18s ease, filter .2s ease;
}
.logo:hover .logo__img {
  transform: translateY(-1px);
  filter: drop-shadow(0 3px 8px rgba(255, 107, 0, 0.22));
}
.logo--footer .logo__img {
  height: 48px;
  max-width: 230px;
  margin-bottom: .65rem;
}
.logo--share .logo__img {
  height: 38px;
  max-width: 190px;
}
.logo__mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.logo__text { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; }
.logo__text strong { color: var(--c-primary); background: none; -webkit-text-fill-color: var(--c-primary); }

.nav__links { display: flex; gap: 1.2rem; margin-left: 1rem; }
.nav__links a {
  color: #4b5563;
  font-weight: 500; font-size: .95rem;
  padding: .35rem .15rem;
  border-bottom: 2px solid transparent;
}
.nav__links a:hover { color: var(--c-primary); border-color: var(--c-primary); }

.nav__cta { margin-left: auto; display: flex; gap: .5rem; align-items: center; }
.nav__toggle { display: none; background: none; border: 0; flex-direction: column; gap: 4px; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--c-text); display: block; }

/* ===== Buttons ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .68rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600; font-size: .95rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.35);
  border-radius: 8px;
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(255, 107, 0, 0.4); color: #fff; }
.btn--ghost {
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  color: #374151;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.45);
  color: var(--c-primary);
  border-color: rgba(255, 255, 255, 0.85);
}
.btn--ghost.is-fav {
  background: rgba(255, 245, 235, 0.45);
  color: var(--c-primary);
  border-color: rgba(255, 180, 100, 0.55);
}
.btn--small { padding: .45rem .9rem; font-size: .85rem; }
.btn--lg    { padding: .9rem 1.6rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* ===== Badges & chips ===================================================== */
.badge-2050 {
  display: inline-block;
  padding: .3rem .75rem;
  border-radius: 999px;
  background: #fff5eb;
  color: var(--c-primary-2);
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  border: 1px solid #ffe4cc;
  margin-bottom: 1rem;
}
.chip {
  display: inline-block;
  padding: .25rem .65rem;
  border-radius: 999px;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .5px; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  color: var(--c-text);
  margin-right: .3rem;
}
.chip--venta    { background: var(--grad-fire); color: #fff; }
.chip--alquiler { background: linear-gradient(135deg, #6ad6ff, #2da5ff); color: #06121d; }
.chip--star     { background: linear-gradient(135deg, #ffd57a, #ff7a1a); color: #1a0a00; }
.chip--type     { background: rgba(255, 140, 50, 0.12); color: var(--c-primary-3); border: 1px solid var(--c-border); }

/* ===== Hero =============================================================== */
.hero { position: relative; overflow: hidden; }
.hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 3rem; align-items: center;
}
.hero__copy h1 .hl {
  background: var(--grad-fire);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hl {
  background: var(--grad-fire);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero__sub { font-size: 1.05rem; max-width: 540px; margin-bottom: 1.8rem; }

.hero__metrics {
  display: flex; gap: 2.5rem; margin-top: 1.8rem;
}
.hero__metrics div { display: flex; flex-direction: column; }
.hero__metrics strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  background: var(--grad-fire);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero__metrics span { color: var(--c-text-dim); font-size: .85rem; letter-spacing: .5px; }

.hero__art {
  position: relative;
  height: 520px;
  min-height: 360px;
}
#hero-3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: block;
  cursor: grab;
}
.hero__halo {
  position: absolute;
  inset: 10%;
  z-index: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 55%, rgba(255, 140, 50, 0.55) 0%, rgba(255, 45, 138, 0.25) 30%, transparent 65%);
  filter: blur(28px);
  pointer-events: none;
  animation: float 7s ease-in-out infinite alternate;
}
.hero__ring {
  position: absolute; inset: 4%;
  z-index: 0;
  border: 1px solid rgba(255, 140, 50, 0.22);
  border-radius: 50%;
  animation: spin 36s linear infinite;
  pointer-events: none;
}
.hero__ring--2 {
  inset: 16%;
  border-style: dashed;
  border-color: rgba(255, 45, 138, 0.2);
  animation-duration: 28s; animation-direction: reverse;
}

@keyframes float {
  0%   { transform: translateY(-10px) scale(1); }
  100% { transform: translateY(10px) scale(1.05); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Search card (hero) ================================================ */
.search-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border-2);
  border-radius: var(--r-lg);
  padding: 1.1rem;
  box-shadow: var(--shadow-glow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  max-width: 720px;
}
.search-tabs { display: flex; gap: .35rem; margin-bottom: .9rem; }
.search-tab { position: relative; cursor: pointer; }
.search-tab input { position: absolute; opacity: 0; pointer-events: none; }
.search-tab span {
  display: inline-block;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  color: var(--c-text-dim);
  font-weight: 600; font-size: .9rem;
  transition: all .18s ease;
}
.search-tab input:checked + span {
  background: var(--grad-fire);
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 80, 0, 0.35);
}
.search-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr auto;
  gap: .6rem; align-items: end;
}
.search-submit { height: 46px; }

/* ===== Form fields ======================================================== */
.field { display: flex; flex-direction: column; gap: .3rem; }
.field--grow { flex: 1; }
.field--actions { display: flex; gap: .5rem; flex-direction: row; align-items: end; }
.field label, .field > label { font-size: .8rem; color: var(--c-text-dim); letter-spacing: .3px; }
.field--readonly,
.field input.field--readonly {
  background: #f5f5f5;
  color: var(--c-text-dim);
  cursor: default;
}
.field select, .field input, .form input, .form select, .form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.26);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border: 1px solid var(--glass-border-2);
  color: var(--c-text);
  padding: .65rem .85rem;
  border-radius: 10px;
  font-family: inherit; font-size: .95rem;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field select:focus, .field input:focus,
.form input:focus, .form select:focus, .form textarea:focus {
  border-color: rgba(255, 107, 0, 0.55);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.field select option { background: #fff; color: var(--c-text); }
.form input[type="file"] { padding: .4rem; }

/* ===== Categorias / cities / props grids ================================ */
/* ===== Hub terrenos (estilo Nexo) ======================================= */
.section--terreno-hub {
  padding: 2.5rem 0 3rem;
  background: transparent;
}
.terreno-hub__banner {
  max-width: var(--container, 1200px);
  margin: 0 auto 1.75rem;
  padding: 0 var(--pad, 1.25rem);
  text-align: center;
}
.terreno-hub__banner p {
  margin: 0;
  font-size: .92rem;
  font-weight: 300;
  color: #8b6914;
  letter-spacing: .02em;
}
.terreno-hub__banner strong {
  font-size: 1.35rem;
  font-weight: 700;
  color: #a16207;
}
.terreno-hub__title {
  max-width: var(--container, 1200px);
  margin: 0 auto 1.25rem;
  padding: 0 var(--pad, 1.25rem);
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 300;
  color: #4b5563;
  letter-spacing: -.01em;
}
.terreno-hub__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #ff6b00 #e5e7eb;
  max-width: var(--container, 1200px);
  margin: 0 auto;
  padding: .25rem var(--pad, 1.25rem) .5rem;
}
.terreno-hub__track::-webkit-scrollbar { height: 6px; }
.terreno-hub__track::-webkit-scrollbar-thumb { background: #ff6b00; border-radius: 999px; }
.terreno-hub__card {
  position: relative;
  flex: 0 0 min(280px, 78vw);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  min-height: 168px;
  padding: 1.35rem 1.15rem 1.15rem;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.terreno-hub__card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 107, 0, 0.25);
  box-shadow: 0 10px 28px rgba(255, 107, 0, 0.12);
}
.terreno-hub__arrow {
  position: absolute;
  top: .85rem;
  right: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ff6b00;
  color: #fff;
  box-shadow: 0 3px 10px rgba(255, 107, 0, 0.35);
  transition: transform .2s ease, background .2s ease;
}
.terreno-hub__card:hover .terreno-hub__arrow {
  transform: scale(1.06);
  background: #ff8534;
}
.terreno-hub__card h3 {
  margin: 0;
  padding-right: 2.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}
.terreno-hub__card p {
  margin: 0;
  font-size: .84rem;
  font-weight: 400;
  line-height: 1.45;
  color: #6b7280;
}
.terreno-hub__card--recent {
  flex: 0 0 min(300px, 82vw);
  gap: .75rem;
  cursor: pointer;
}
.terreno-hub__recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.terreno-hub__recent-label {
  font-size: .88rem;
  font-weight: 600;
  color: #111827;
}
.terreno-hub__recent-badge {
  padding: .2rem .55rem;
  border-radius: 999px;
  background: #fce7f3;
  color: #db2777;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}
.terreno-hub__recent-body {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
}
.terreno-hub__recent-img {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  background: #f3f4f6;
}
.terreno-hub__recent-info {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  min-width: 0;
}
.terreno-hub__recent-price {
  font-size: .95rem;
  font-weight: 700;
  color: #111827;
}
.terreno-hub__recent-title {
  font-size: .8rem;
  font-weight: 500;
  color: #374151;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.terreno-hub__recent-loc {
  display: flex;
  align-items: center;
  gap: .2rem;
  font-size: .74rem;
  color: #6b7280;
}
.terreno-hub__recent-loc::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 12px;
  background: #ff6b00;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5z'/%3E%3C/svg%3E") center/contain no-repeat;
  flex-shrink: 0;
}
.terreno-hub__recent-link {
  margin-top: .15rem;
  font-size: .78rem;
  font-weight: 600;
  color: #ff6b00;
}
@media (min-width: 900px) {
  .terreno-hub__track {
    overflow-x: visible;
    flex-wrap: nowrap;
  }
  .terreno-hub__card {
    flex: 1 1 0;
    min-width: 0;
  }
  .terreno-hub__card--recent { flex: 1.15 1 0; }
}

/* ===== Galeria 3D (legacy — sin uso en home) ============================= */
.section--gallery3d .section__head { margin-bottom: 1rem; }
.gallery3d-outer { display: flex; flex-direction: column; gap: .75rem; }
.gallery3d-wrap {
  position: relative;
  height: 520px;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}
#gallery-3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}
#gallery-3d:active { cursor: grabbing; }

.gallery3d-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .65rem 1rem;
  min-height: 2.5rem;
  padding: 0 .15rem;
}

.gallery3d-tooltip {
  flex: 1 1 200px;
  pointer-events: none;
  background: rgba(10, 6, 18, 0.92);
  border: 1px solid var(--c-border-2);
  border-radius: 10px;
  padding: .55rem .85rem;
  color: var(--c-text);
  font-size: .85rem;
  opacity: 0;
  min-height: 2.35rem;
  transition: opacity .2s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 140, 50, .1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.gallery3d-tooltip.is-visible { opacity: 1; }
.gallery3d-tooltip:empty { display: none; }
.gallery3d-tooltip strong {
  display: block;
  font-family: var(--font-display);
  font-size: .9rem;
  background: var(--grad-fire);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  margin-bottom: .15rem;
}
.gallery3d-tooltip span {
  display: inline-block;
  padding: .1rem .5rem;
  border-radius: 999px;
  background: rgba(255, 140, 50, .12);
  color: var(--c-primary-3);
  font-size: .72rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-right: .4rem;
}
.gallery3d-tooltip em {
  font-style: normal;
  color: var(--c-text-dim);
  font-size: .78rem;
}

.gallery3d-hint {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: .5rem;
  padding: .45rem .9rem;
  background: rgba(10, 6, 18, 0.7);
  border: 1px solid var(--c-border-2);
  border-radius: 999px;
  font-size: .82rem;
  color: var(--c-text-dim);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}
.gallery3d-hint .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-primary);
  box-shadow: 0 0 12px var(--c-primary);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(.8); }
}

@media (max-width: 760px) {
  .gallery3d-wrap { height: 380px; }
  .gallery3d-meta { flex-direction: column; align-items: stretch; }
  .gallery3d-hint { justify-content: center; }
}

.grid-categorias {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.cat-card {
  display: flex; gap: .9rem; align-items: center;
  padding: 1rem 1.1rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  color: var(--c-text);
  box-shadow: var(--shadow-1);
  transition: transform .18s ease, border-color .2s, box-shadow .2s;
}
.cat-card:hover { transform: translateY(-3px); border-color: #ffb380; box-shadow: 0 8px 24px rgba(255, 107, 0, 0.12); color: var(--c-text); }
.cat-card__body h3 { color: #111827; }
.cat-card__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--grad-fire);
  color: #fff; font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(255, 80, 0, 0.4);
}
.cat-card__body h3 { margin: 0 0 .15rem; }
.cat-card__body span { color: var(--c-text-dim); font-size: .85rem; }

.grid-cities {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.grid-cities--lg { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.city-card {
  position: relative; display: block;
  height: 200px; border-radius: var(--r-md); overflow: hidden;
  background: var(--bg) center/cover no-repeat, #1a0e2e;
  color: #fff;
  transition: transform .25s ease;
}
.city-card:hover { transform: translateY(-3px); color: #fff; }
.city-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,6,18,0.1) 0%, rgba(10,6,18,0.85) 100%);
}
.city-card__body { position: absolute; left: 1.1rem; bottom: 1rem; right: 1.1rem; }
.city-card__body h3 { margin: 0; font-size: 1.3rem; }
.city-card__body p  { margin: .15rem 0 0; color: rgba(247, 236, 220, 0.85); font-size: .85rem; }

.grid-props {
  display: grid; gap: 1.75rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.grid-props--listing { margin-top: 1.5rem; }

/* ===== Tarjetas de propiedad — moderno + sombra ========================== */
.card-prop {
  position: relative;
  background: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(32px) saturate(1.6);
  -webkit-backdrop-filter: blur(32px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--card-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease;
}
.card-prop::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  pointer-events: none;
  z-index: 1;
}
.card-prop:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow: var(--card-shadow-hover);
}
.card-prop.is-destacada {
  border-color: rgba(255, 179, 128, 0.65);
  box-shadow:
    var(--card-shadow),
    0 0 0 1px rgba(255, 107, 0, 0.15),
    0 8px 32px rgba(255, 107, 0, 0.12);
}
.card-prop.is-destacada:hover {
  box-shadow:
    var(--card-shadow-hover),
    0 0 0 1px rgba(255, 107, 0, 0.22),
    0 12px 40px rgba(255, 107, 0, 0.18);
}
.card-prop__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #1a1028 0%, #2d1a3d 50%, #1a2744 100%);
  overflow: hidden;
}
.card-prop__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0) 45%,
    rgba(15, 23, 42, 0.35) 100%
  );
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.35s ease;
  z-index: 1;
}
.card-prop:hover .card-prop__media::after { opacity: 0.85; }
.card-prop__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.card-prop:hover .card-prop__media img { transform: scale(1.07); }
.card-prop__media .chip {
  position: absolute;
  top: .85rem;
  left: .85rem;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  font-size: .68rem;
  letter-spacing: .06em;
  padding: .32rem .7rem;
}
.card-prop__media .chip--star {
  top: .85rem;
  left: auto;
  right: .85rem;
}
.card-prop__placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 800;
  color: rgba(255, 160, 80, 0.35);
  background: linear-gradient(145deg, #1a1028 0%, #3d2048 50%, #1a2744 100%);
}
.card-prop__body {
  position: relative;
  z-index: 2;
  padding: 1.15rem 1.25rem 1.3rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.card-prop__type {
  font-size: .72rem;
  color: var(--c-primary);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
}
.card-prop__type span {
  color: var(--c-text-mute);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  margin-left: .15rem;
}
.card-prop__body h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.3;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.card-prop__body h3 a {
  color: #111827;
  transition: color 0.2s ease;
}
.card-prop__body h3 a:hover { color: var(--c-primary); }
.card-prop__loc {
  margin: 0;
  color: var(--c-text-dim);
  font-size: .86rem;
  display: flex;
  align-items: center;
  gap: .3rem;
}
.card-prop__loc::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--c-primary);
  opacity: .55;
  flex-shrink: 0;
}
.card-prop__specs {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
  font-size: .8rem;
  color: var(--c-text-dim);
  margin-top: .15rem;
}
.card-prop__specs span {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: .28rem .6rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #4b5563;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}
.card-prop__price {
  margin-top: auto;
  padding-top: .9rem;
  margin-top: .65rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--c-primary);
  letter-spacing: -0.02em;
}
.card-prop__price--desde {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem;
}
.card-prop__desde {
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-primary-2);
  background: rgba(255, 243, 232, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 180, 100, 0.45);
  border-radius: 6px;
  padding: .15rem .45rem;
  box-shadow: 0 2px 6px rgba(255, 107, 0, 0.08);
}
.card-prop__price small { font-family: var(--font-body); font-size: .8rem; color: var(--c-text-mute); margin-left: .25rem; }

/* Tarjeta enriquecida — mas info + WhatsApp compacto */
.card-prop--rich .card-prop__head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem;
  padding: .45rem .85rem .35rem;
  background: transparent;
  border-bottom: none;
}
.card-prop__head-type {
  font-size: .78rem;
  font-weight: 700;
  color: #1e3a5f;
  letter-spacing: -.01em;
}
.card-prop__date {
  font-size: .72rem;
  color: var(--c-text-mute);
  white-space: nowrap;
}
.card-prop--rich .card-prop__body {
  padding: .75rem 1rem 1rem;
  gap: .3rem;
}
.card-prop--rich .card-prop__title {
  margin: 0 0 .15rem;
  order: -3;
  padding-left: .7rem;
  border-left: 3px solid #ff6b00;
}
.card-prop--rich .card-prop__title a {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  text-decoration: none;
  color: inherit;
  transition: opacity .2s ease;
}
.card-prop--rich .card-prop__title a:hover {
  opacity: .92;
}
.card-prop--rich .card-prop__title a:hover .card-prop__title-type {
  filter: brightness(1.06);
}
.card-prop__title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .3rem;
  font-size: .72rem;
  line-height: 1.3;
}
.card-prop__title-type {
  color: #ff6b00;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.card-prop__title-sep {
  color: #6b7280;
  font-weight: 400;
  font-size: .72rem;
  text-transform: none;
  letter-spacing: 0;
}
.card-prop__title-main {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  color: #111827;
  text-shadow: none;
}
.card-prop--rich .card-prop__body h3 {
  font-size: inherit;
  line-height: inherit;
  order: -3;
}
.card-prop--rich .card-prop__price {
  order: -2;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  font-size: 1.15rem;
  color: #ff6b00;
}
.card-prop__pin {
  flex-shrink: 0;
  color: #9ca3af;
  opacity: 1;
}
.card-prop--rich .card-prop__loc::before { display: none; }
.card-prop__loc {
  display: flex;
  align-items: flex-start;
  gap: .35rem;
  font-size: .8rem;
  line-height: 1.35;
}
.card-prop__facts {
  list-style: none;
  margin: .45rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .35rem .4rem;
}
.card-prop__fact {
  display: flex;
  align-items: center;
  gap: .28rem;
  font-size: .72rem;
  color: #374151;
  min-width: 0;
}
.card-prop__fact svg {
  flex-shrink: 0;
  color: #1e3a5f;
  opacity: .85;
}
.card-prop__fact span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-prop__actions {
  display: flex;
  gap: .4rem;
  margin-top: .6rem;
  padding-top: .55rem;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
}
.card-prop__wa,
.card-prop__contact {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  min-height: 34px;
  padding: .35rem .55rem;
  border-radius: 8px;
  font-size: .74rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.card-prop__wa {
  background: #25d366;
  color: #fff;
  border: 1px solid #1ebe57;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
}
.card-prop__wa:hover {
  background: #1fb855;
  color: #fff;
  transform: translateY(-1px);
}
.card-prop__contact {
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.88) 0%, rgba(255, 133, 52, 0.85) 100%);
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  color: #fff;
  border: 1px solid rgba(255, 180, 80, 0.75);
  box-shadow: 0 3px 12px rgba(255, 107, 0, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.card-prop__contact:hover {
  background: var(--grad-fire);
  color: #fff;
  border-color: #ff8534;
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(255, 107, 0, 0.45);
}
.card-prop__actions:has(.card-prop__wa:only-child) .card-prop__contact,
.card-prop__actions .card-prop__contact:only-child {
  flex: 1;
}
@media (max-width: 360px) {
  .card-prop__facts { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Filters page ====================================================== */
.filters {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  margin-top: .5rem;
  box-shadow: var(--shadow-1);
}
.filters--clean { margin-bottom: 1.5rem; }
.filters__row {
  display: grid; gap: .7rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  align-items: end;
}
.page-head { text-align: center; padding: 2rem 0 1rem; }
.page-head--left { text-align: left; padding-top: 1.5rem; }
.page-head h1 { margin: 0 0 .35rem; color: #111827; font-size: 1.75rem; font-weight: 800; }
.page-head p { color: var(--c-text-dim); margin: 0; }
.page-listing { padding-top: .5rem; }

.field--actions { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.field--price-slider {
  grid-column: 1 / -1;
}
.price-slider { padding: .15rem 0 .35rem; }
.price-slider__labels {
  display: flex;
  justify-content: space-between;
  font-size: .88rem;
  font-weight: 700;
  color: var(--c-primary-2);
  margin-bottom: .5rem;
}
.price-slider__track-wrap {
  position: relative;
  height: 28px;
  margin: 0 .2rem .65rem;
}
.price-slider__rail {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 6px;
  margin-top: -3px;
  background: #e5e7eb;
  border-radius: 999px;
}
.price-slider__fill {
  position: absolute;
  top: 50%;
  height: 6px;
  margin-top: -3px;
  background: linear-gradient(90deg, #ffb347, #ff6b00);
  border-radius: 999px;
  pointer-events: none;
}
.price-slider__range {
  position: absolute;
  left: 0;
  width: 100%;
  top: 0;
  height: 28px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
}
.price-slider__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #ff6b00;
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.35);
  cursor: pointer;
  pointer-events: auto;
}
.price-slider__range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #ff6b00;
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.35);
  cursor: pointer;
  pointer-events: auto;
}
.price-slider__range--max { z-index: 2; }
.price-slider__range--min { z-index: 3; }
.price-slider__inputs {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.price-slider__inputs input[type="number"] {
  flex: 1;
  min-width: 120px;
  max-width: 200px;
  padding: .55rem .7rem;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  font-size: .9rem;
}
.price-slider__sep { color: var(--c-text-mute); }

.pager { display: flex; justify-content: center; gap: .35rem; margin: 2rem 0 1rem; flex-wrap: wrap; }
.pager__btn {
  min-width: 38px; padding: .45rem .7rem;
  border-radius: 8px; background: #fff;
  border: 1px solid var(--c-border);
  color: var(--c-text); text-align: center;
}
.pager__btn:hover { background: #fff5eb; color: var(--c-primary); border-color: #ffd4b0; }
.pager__btn.is-active { background: var(--c-primary); color: #fff; border-color: transparent; }

.empty-state {
  text-align: center; padding: 3rem 1rem;
  background: var(--c-surface);
  border: 1px dashed var(--c-border-2);
  border-radius: 12px;
  box-shadow: var(--shadow-1);
}
.empty-state h3 { color: #111827; }

/* ===== Detalle =========================================================== */
.detalle { padding-top: 1.5rem; }
.breadcrumb { color: var(--c-text-mute); font-size: .85rem; margin-bottom: 1rem; }
.breadcrumb a { color: var(--c-text-dim); }

.detalle__head {
  display: flex; gap: 2rem; justify-content: space-between; align-items: start;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.detalle__head h1 { color: #111827; }
.detalle__chips { margin-bottom: .7rem; }
.detalle__loc { color: var(--c-text-dim); margin: .25rem 0; }
.detalle__price { text-align: right; }
.detalle__price-amount {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--c-primary);
}
.detalle__price small { display: block; color: var(--c-text-mute); }

.gallery { display: grid; grid-template-columns: 1fr; gap: .6rem; margin-bottom: 1.5rem; }
.gallery__main {
  aspect-ratio: 16/9;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #1a0e2e;
  border: 1px solid var(--c-border);
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .5rem; }
.gallery__thumb {
  aspect-ratio: 4/3; border: 1px solid var(--c-border); padding: 0; cursor: pointer;
  border-radius: 8px; overflow: hidden; background: transparent;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active { border-color: var(--c-primary); box-shadow: 0 0 0 2px rgba(255, 122, 26, 0.4); }
.gallery__placeholder {
  display: grid; place-items: center;
  aspect-ratio: 16/9;
  border-radius: var(--r-md);
  background: rgba(255, 140, 50, 0.06);
  color: var(--c-text-mute);
}

.detalle__grid { display: grid; gap: 1.5rem; grid-template-columns: 1.6fr 1fr; align-items: start; }
.page-detalle .section.detalle { max-width: 1260px; }
.page-detalle .detalle__grid { grid-template-columns: 1.65fr 1fr; }
.page-detalle .card--ubicacion-full {
  grid-column: 1 / -1;
  margin-bottom: 0;
}
.page-detalle .card--ubicacion-full .detalle-mapa-wrap {
  margin-left: -1.4rem;
  margin-right: -1.4rem;
  width: calc(100% + 2.8rem);
}
.page-detalle .card--ubicacion-full .detalle-mapa-wrap .mapa-canvas--detalle {
  border-radius: 0 0 var(--r-md) var(--r-md);
}
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1rem;
}
.card h2 { font-size: 1.2rem; margin-bottom: .8rem; }
.descripcion { white-space: pre-line; color: var(--c-text); }
.specs-grid { list-style: none; padding: 0; margin: 0;
  display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}
.specs-grid li {
  text-align: center;
  padding: .9rem .5rem;
  background: var(--glass-bg-soft);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border: 1px solid var(--glass-border-2);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.specs-grid strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--c-primary); font-weight: 800; }
.specs-grid span { color: var(--c-text-mute); font-size: .8rem; }

.card--agent { position: sticky; top: 90px; }
.agent { display: flex; gap: .8rem; align-items: center; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--c-border); }
.agent__avatar {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad-fire); color: #fff;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
}
.agent__label { display: block; font-size: .75rem; color: var(--c-text-mute); text-transform: uppercase; letter-spacing: 1px; }
.agent strong { display: block; font-size: 1.05rem; }
.agent span:not(.agent__label) { color: var(--c-text-dim); font-size: .9rem; }

/* ===== Forms ============================================================= */
.form { display: flex; flex-direction: column; gap: .8rem; margin-top: 1rem; }
.form label { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; color: var(--c-text-dim); }
.form--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form--grid .check--full, .form--grid .full { grid-column: 1 / -1; }
.form--grid button[type="submit"] { grid-column: 1 / -1; }
.form--card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 1.6rem;
}
.form-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; color: var(--c-text-dim); }
.hint { color: var(--c-text-mute); font-size: .78rem; }
.check { flex-direction: row !important; align-items: center; gap: .6rem !important; }
.check input { width: auto; }
.form-error {
  padding: .55rem .8rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 8px;
  font-size: .88rem;
}

.form--contact label { font-size: .82rem; }
.fav-form { margin-top: .6rem; }

/* ===== Auth pages ======================================================== */
.auth {
  min-height: calc(100vh - 220px);
  display: grid; place-items: center;
  padding: 3rem 1.5rem;
}
.auth__card {
  width: 100%; max-width: 440px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-1);
}
.auth__card h1 { color: #111827; }
.auth__card--wide { max-width: 640px; }
.auth__alt { margin-top: 1.2rem; text-align: center; color: var(--c-text-dim); font-size: .9rem; }
.auth__forgot { margin: -.25rem 0 .75rem; text-align: right; font-size: .88rem; }
.auth__forgot a { color: var(--c-primary); font-weight: 600; }
.auth__hint {
  margin: 0 0 1rem;
  padding: .75rem .9rem;
  border-radius: 8px;
  background: #fff8ed;
  border: 1px solid #ffd4a8;
  color: #9a3412;
  font-size: .88rem;
  line-height: 1.45;
}
.auth__demo {
  margin-top: 1rem; padding: .8rem 1rem;
  background: rgba(255, 140, 50, 0.06);
  border: 1px dashed var(--c-border-2);
  border-radius: 10px;
  font-size: .82rem; color: var(--c-text-dim);
}
.auth__demo strong { display: block; color: var(--c-primary-3); margin-bottom: .25rem; }
.auth__demo code { background: #f3f4f6; padding: 1px 6px; border-radius: 4px; font-size: .85rem; color: var(--c-text); }
.auth__oauth-uri {
  margin: .75rem 0 0;
  padding: .65rem .8rem;
  background: #fff8e6;
  border: 1px solid #f0d080;
  border-radius: 8px;
  font-size: .75rem;
  color: #6b5a20;
  line-height: 1.45;
  word-break: break-all;
}
.auth__oauth-uri code { display: block; margin-top: .35rem; font-size: .72rem; background: #fff; padding: .35rem; border-radius: 4px; }
.auth__oauth-uri--err { background: #fde8e8; border-color: #f0a0a0; color: #8b2020; }
.auth__divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.1rem 0;
  color: var(--c-text-dim);
  font-size: .82rem;
}
.auth__divider::before,
.auth__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--c-border);
}
/* Boton oficial "Iniciar sesion con Google" */
.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 16px;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #747775;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  transition: background .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn-google--block {
  width: 100%;
  max-width: 100%;
}
.btn-google:hover {
  background: #f7f8f8;
  color: #1f1f1f;
  border-color: #747775;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}
.btn-google:focus-visible {
  outline: 2px solid #4285f4;
  outline-offset: 2px;
}
.btn-google__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}
.btn-google__text {
  flex: 1;
  text-align: center;
  white-space: nowrap;
}
.btn-google--disabled {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-google__hint {
  margin: .45rem 0 0;
  font-size: .78rem;
  color: var(--c-text-dim);
  text-align: center;
}
.google-logo {
  display: block;
}

/* ===== CTA banner & features ============================================ */
.cta-banner {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  padding: 3.5rem 2rem;
  text-align: center;
  background: rgba(20, 12, 32, 0.7);
  border: 1px solid var(--c-border-2);
}
.cta-banner__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 20% 30%, rgba(255, 90, 0, 0.4), transparent 60%),
    radial-gradient(500px 400px at 80% 70%, rgba(255, 45, 138, 0.3), transparent 60%);
  z-index: 0;
}
.cta-banner__content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.cta-banner h2 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); margin-bottom: .8rem; }
.cta-banner p { color: var(--c-text-dim); margin-bottom: 1.5rem; }

.features-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 1.5rem;
}
.feature__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(255, 140, 50, 0.1);
  border: 1px solid var(--c-border-2);
  color: var(--c-primary-3);
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  margin-bottom: .8rem;
}

/* ===== Agents grid ======================================================= */
.grid-agents { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 1.5rem; }
.agent-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
.agent-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.agent-card__link {
  display: block;
  padding: 1.4rem;
  color: inherit;
  text-decoration: none;
  height: 100%;
}
.agent-card__link h3 { margin: .5rem 0 .35rem; font-size: 1.05rem; color: #111827; }
.agent-card__avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--grad-fire); color: #fff;
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 700;
  display: grid; place-items: center;
  margin-bottom: .8rem;
}
.agent-card__foto {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  border: 2px solid #ffe4cc;
  margin-bottom: .8rem;
}
.agent-card__bio { color: var(--c-text-dim); font-size: .9rem; line-height: 1.45; }
.agent-card__stats { font-size: .85rem; color: var(--c-text-dim); margin: .6rem 0; }
.agent-card__cta {
  display: inline-block;
  margin-top: .35rem;
  font-size: .88rem;
  font-weight: 700;
  color: var(--c-primary);
}

.agente-hero {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 260px);
  gap: 1.5rem;
  padding: 1.5rem;
  margin-top: .5rem;
}
.agente-hero__main {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.agente-hero__avatar {
  flex-shrink: 0;
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--grad-fire); color: #fff;
  display: grid; place-items: center; font-size: 2rem; font-weight: 800;
}
.agente-hero__foto {
  flex-shrink: 0;
  width: 88px; height: 88px; border-radius: 50%; object-fit: cover;
  border: 3px solid #ffe4cc;
}
.agente-hero__badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-primary-2);
  background: #fff5eb;
  border: 1px solid #ffd4a8;
  border-radius: 4px;
  padding: .15rem .45rem;
  margin-bottom: .35rem;
}
.agente-hero h1 { margin: 0 0 .5rem; font-size: 1.65rem; }
.agente-hero__bio { margin: 0; color: var(--c-text-dim); line-height: 1.55; max-width: 36rem; }
.agente-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  font-size: .9rem;
  color: var(--c-text-dim);
}
.agente-hero__stats strong { color: var(--c-primary-2); font-size: 1.1rem; }
.agente-hero__contact {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  align-self: start;
}
.agente-hero__contact .btn--whatsapp { margin-bottom: 0; }
.detalle__side .agent strong a { color: inherit; }
.detalle__side .agent strong a:hover { color: var(--c-primary); }
@media (max-width: 768px) {
  .agente-hero { grid-template-columns: 1fr; }
  .agente-hero__main { flex-direction: column; align-items: center; text-align: center; }
  .agente-hero__bio { max-width: none; }
  .agente-hero__stats { justify-content: center; }
}

/* ===== Grid actions ====================================================== */
.grid-actions { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.action-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.3rem;
  color: var(--c-text);
  box-shadow: var(--glass-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.25s ease;
}
.action-card:hover {
  border-color: rgba(255, 179, 128, 0.75);
  color: var(--c-text);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transform: translateY(-4px);
}
.action-card h3 { margin-bottom: .4rem; color: var(--c-primary-2); }
.action-card p  { margin: 0; }

/* ===== Dashboard estadisticas anunciante ================================= */
.stats-dashboard {
  margin-top: 2.5rem;
  padding-top: .5rem;
}
.stats-dashboard__head { margin-bottom: 1.25rem; }
.stats-dashboard__head h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 .25rem;
}
.stats-dashboard__sub {
  margin: 0;
  font-size: .88rem;
  font-weight: 400;
  color: #6b7280;
}
.stats-dashboard__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
.stats-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.15rem 1.2rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}
.stats-card--chart { min-height: 220px; }
.stats-card--chart canvas { width: 100% !important; height: 140px !important; }
.stats-card--lotes { grid-column: 1 / -1; }
.stats-card__head { margin-bottom: .65rem; }
.stats-card__label {
  display: block;
  font-size: .82rem;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: .2rem;
}
.stats-card__value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -.02em;
}
.stats-card__delta {
  display: block;
  font-size: .78rem;
  font-weight: 500;
  color: #6b7280;
  margin-top: .15rem;
}
.stats-card__delta--up { color: #16a34a; }
.stats-card__delta--down { color: #dc2626; }
.stats-card__foot {
  margin: .65rem 0 0;
  font-size: .78rem;
  color: #6b7280;
}
.stats-card__title {
  margin: 0 0 .85rem;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}
.stats-card__subtitle {
  margin: 1rem 0 .5rem;
  font-size: .85rem;
  font-weight: 600;
  color: #374151;
}
.stats-card__hint {
  margin: .5rem 0 0;
  font-size: .82rem;
  color: #9ca3af;
}
.stats-lotes-estado {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}
.stats-lotes-estado li {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .9rem;
  color: #374151;
}
.stats-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
}
.stats-pill--disp { background: #22c55e; }
.stats-pill--res { background: #3b82f6; }
.stats-pill--vend { background: #ef4444; }
.stats-top-lotes {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.stats-top-lotes li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  font-size: .84rem;
}
.stats-top-lotes a {
  color: #111827;
  font-weight: 500;
  text-decoration: none;
}
.stats-top-lotes a:hover { color: #ff6b00; }
.stats-top-lotes__n {
  flex-shrink: 0;
  font-size: .78rem;
  font-weight: 600;
  color: #ff6b00;
}
@media (max-width: 768px) {
  .stats-dashboard__grid { grid-template-columns: 1fr; }
}

/* ===== Mis anuncios ====================================================== */
.mis-anuncios__cuenta {
  margin: 0 0 1rem;
  font-size: .88rem;
  color: var(--c-text-dim);
}
.mis-anuncios__aviso {
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.mis-anuncios__aviso p { margin: 0; font-size: .9rem; color: #9a3412; max-width: 42rem; }
.mis-anuncios__toolbar {
  display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem;
}
.mis-anuncios-list { display: flex; flex-direction: column; gap: 1rem; }
.mis-anuncio {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  box-shadow: var(--shadow-1);
}
.mis-anuncio--inactivo { opacity: .85; background: #fafafa; }
.mis-anuncio__media {
  display: block; width: 120px; height: 90px;
  border-radius: 8px; overflow: hidden; background: #f3f4f6;
}
.mis-anuncio__media img { width: 100%; height: 100%; object-fit: cover; }
.mis-anuncio__placeholder {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-size: 1.5rem; font-weight: 700; color: var(--c-primary);
}
.mis-anuncio__body h2 { font-size: 1.05rem; margin: .35rem 0; }
.mis-anuncio__body h2 a { color: inherit; }
.mis-anuncio__meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.mis-anuncio__loc, .mis-anuncio__stats { margin: .2rem 0; font-size: .9rem; color: var(--c-text-dim); }
.mis-anuncio__price { margin: .35rem 0 0; font-weight: 700; color: var(--c-primary-2); }
.mis-anuncio__actions {
  display: flex; flex-direction: column; gap: .45rem; align-items: stretch;
}
.mis-anuncio__actions form { margin: 0; }

.consultas-filtro {
  margin: 1.25rem 0 1.5rem;
  padding: 1rem 1.15rem;
}
.consultas-filtro label {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--c-text-dim);
}
.consultas-filtro select {
  max-width: 420px;
  padding: .6rem .75rem;
  border-radius: 8px;
  border: 1px solid var(--c-border);
  font-size: .95rem;
}
.consultas-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.consulta__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: .75rem;
}
.consulta__head h2 {
  margin: 0;
  font-size: 1.1rem;
  color: #111827;
}
.consulta__meta {
  margin: .25rem 0 0;
  font-size: .88rem;
  color: var(--c-text-dim);
}
.consulta__meta a { color: var(--c-primary); font-weight: 600; }
.consulta__contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .65rem 1.25rem;
  margin: 0 0 .85rem;
  font-size: .9rem;
}
.consulta__contact div { margin: 0; }
.consulta__contact dt {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--c-text-mute);
  margin-bottom: .15rem;
}
.consulta__contact dd { margin: 0; color: #374151; }
.consulta__contact a { color: var(--c-primary-2); }
.consulta__mensaje {
  margin: 0;
  padding: .9rem 1rem;
  border-left: 3px solid #ffb347;
  background: #fffaf5;
  border-radius: 0 8px 8px 0;
  color: #374151;
  font-size: .95rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

/* Mapas / enlaces compartidos */
.share-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 1.5rem;
  padding: 1.35rem 1.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff9f4 0%, #fff 55%, #fff7ed 100%);
  border-color: #ffe4cc;
}
.share-hero__brand {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
}
.share-hero__logo,
.logo--share {
  text-decoration: none;
}
.share-hero__logo:hover,
.logo--share:hover { opacity: .92; }
.share-hero__main { min-width: 0; }
.share-hero h1 {
  margin: 0 0 .35rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: #111827;
}
.share-hero__lead {
  margin: 0;
  color: var(--c-text-dim);
  font-size: .95rem;
  line-height: 1.5;
}
.share-hero__lead a { color: var(--c-primary); font-weight: 600; }
.share-hero__owner {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem .85rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  align-self: start;
}
.share-hero__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-fire);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0;
}
.share-hero__avatar--img { object-fit: cover; border: 2px solid #ffe4cc; }
.share-hero__owner-meta strong { display: block; font-size: .95rem; color: #111827; }
.share-hero__owner-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--c-text-mute);
  font-weight: 700;
}
.share-hero__contact {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  margin-top: .2rem;
  font-size: .85rem;
}
.share-hero__contact a { color: var(--c-primary-2); font-weight: 600; }
.share-hero__wa { color: #16a34a !important; }

.share-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: .65rem;
  margin-bottom: .85rem;
}
.share-stat {
  padding: .85rem .9rem;
  text-align: center;
  border-radius: 10px;
}
.share-stat__value {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--c-primary-2);
  line-height: 1.2;
}
.share-stat__label {
  display: block;
  margin-top: .2rem;
  font-size: .78rem;
  color: var(--c-text-dim);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.share-stat--muted .share-stat__value {
  font-size: .95rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: #111827;
}
.share-types {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0 0 1.25rem;
}
.share-map-badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #1d4ed8;
  background: #dbeafe;
  padding: .2rem .55rem;
  border-radius: 999px;
  margin-bottom: .35rem;
}
.page-mapa--shared .mapa-layout--shared { margin-top: 0; }
@media (max-width: 768px) {
  .share-hero { grid-template-columns: 1fr; }
  .share-hero__owner { width: 100%; }
}
.share-form__titulo { display: block; margin-bottom: 1rem; font-weight: 600; }
.share-form__titulo input { width: 100%; margin-top: .35rem; }
.share-form__toolbar { display: flex; gap: .5rem; margin-bottom: .75rem; flex-wrap: wrap; }
.share-pick-list { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.share-pick-item label { display: flex; gap: .65rem; align-items: flex-start; cursor: pointer; padding: .65rem .75rem; border: 1px solid var(--c-border, #e2e8f0); border-radius: 8px; }
.share-pick-item label:hover { background: #f8fafc; }
.share-pick-item__body { display: flex; flex-direction: column; gap: .15rem; font-size: .88rem; }
.share-pick-item__body strong { font-size: .95rem; color: var(--c-text, #0f172a); }
.share-pick-item__off { color: #b45309; font-style: normal; font-size: .8rem; }
.share-created { margin-bottom: 1.25rem; padding: 1rem 1.1rem; background: #f0fdf4; border: 1px solid #86efac; }
.share-created__url { display: flex; gap: .5rem; flex-wrap: wrap; margin: .75rem 0; align-items: center; }
.share-url-input { flex: 1 1 220px; min-width: 0; padding: .5rem .65rem; font-size: .85rem; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; }
.share-created__hint { font-size: .85rem; color: var(--c-muted, #64748b); margin: 0 0 .75rem; }
.share-links-list { display: flex; flex-direction: column; gap: 1rem; }
.share-link h2 { font-size: 1rem; margin: 0 0 .25rem; }
.share-link__meta { font-size: .85rem; color: var(--c-muted, #64748b); margin: 0 0 .5rem; }
.share-link__actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: .65rem; }
.share-link__actions form { margin: 0; }
.chip--activo { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.chip--inactivo { background: #f3f4f6; color: #6b7280; border: 1px solid #e5e7eb; }
.btn--danger {
  background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca;
}
.btn--danger:hover { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.owner-panel {
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid var(--c-border);
  display: flex; flex-direction: column; gap: .5rem;
}
.owner-panel__title {
  margin: 0 0 .25rem; font-size: .85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em; color: var(--c-text-dim);
}
@media (max-width: 720px) {
  .mis-anuncio { grid-template-columns: 1fr; }
  .mis-anuncio__media { width: 100%; height: 160px; }
  .mis-anuncio__actions { flex-direction: row; flex-wrap: wrap; }
}

/* ===== Editar fotos ====================================================== */
.imagenes-edit { margin: 1.5rem 0; }
.imagenes-edit h2 { font-size: 1.1rem; margin-bottom: .35rem; }
.imagenes-edit__hint { color: var(--c-text-dim); font-size: .9rem; margin-bottom: 1rem; }
.imagenes-edit__grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.imagen-edit-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.imagen-edit-card img {
  width: 100%; height: 110px; object-fit: cover; display: block;
}
.imagen-edit-card__opt {
  display: flex; align-items: center; gap: .4rem;
  padding: .45rem .65rem; font-size: .85rem; margin: 0;
}
.imagen-edit-card__opt--danger { color: #b91c1c; }

/* ===== Dropzone de carga de imagenes (publicar/editar) ================= */
.upload-field { display: block; }
.upload-field__label {
  display: block; font-weight: 600; margin-bottom: .5rem; font-size: .95rem;
}
.dropzone {
  position: relative;
  border: 2px dashed var(--c-border);
  border-radius: 14px;
  background: var(--c-surface);
  padding: 1.75rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.dropzone:hover { border-color: var(--c-primary, #f97316); }
.dropzone--over {
  border-color: var(--c-primary, #f97316);
  background: rgba(249, 115, 22, .07);
  transform: scale(1.005);
}
.dropzone--error { border-color: #dc2626; background: rgba(220, 38, 38, .06); }
.dropzone__input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}
.dropzone__prompt { color: var(--c-text-dim); pointer-events: none; }
.dropzone__prompt svg { color: var(--c-primary, #f97316); margin-bottom: .4rem; }
.dropzone__prompt p { margin: .2rem 0; font-size: .95rem; }
.dropzone__prompt small { font-size: .8rem; opacity: .8; }

.dropzone__previews {
  display: grid; gap: .85rem; margin-top: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}
.dz-card {
  position: relative;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--c-surface);
}
.dz-card--cover { border-color: var(--c-primary, #f97316); box-shadow: 0 0 0 2px rgba(249,115,22,.35); }
.dz-card img { width: 100%; height: 100px; object-fit: cover; display: block; }
.dz-card__badge {
  position: absolute; top: 6px; left: 6px;
  background: var(--c-primary, #f97316); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .03em;
  padding: .15rem .45rem; border-radius: 6px;
}
.dz-card__acciones { display: flex; }
.dz-card__btn {
  flex: 1; border: none; background: transparent;
  padding: .4rem .3rem; font-size: .75rem; cursor: pointer;
  color: var(--c-text, #1f2937); border-top: 1px solid var(--c-border);
}
.dz-card__btn:hover:not(:disabled) { background: rgba(0,0,0,.04); }
.dz-card__btn:disabled { color: var(--c-primary, #f97316); font-weight: 700; cursor: default; }
.dz-card__btn--danger { color: #b91c1c; border-left: 1px solid var(--c-border); }

/* ===== Tabla lotes (detalle publico) =================================== */
.lotes-resumen { margin-top: 1rem; padding: 1rem; }
.lotes-resumen h3 { font-size: 1rem; margin-bottom: .75rem; }
.lotes-resumen__table-wrap { overflow-x: auto; }
.lotes-resumen__table {
  width: 100%; border-collapse: collapse; font-size: .88rem;
}
.lotes-resumen__table th,
.lotes-resumen__table td {
  padding: .5rem .65rem; border-bottom: 1px solid var(--c-border); text-align: left;
}
.lotes-resumen__table th { color: var(--c-text-dim); font-weight: 600; }
.lote-estado {
  display: inline-block; padding: .2rem .55rem; border-radius: 999px;
  font-size: .78rem; font-weight: 600;
}
.lote-estado--disponible { background: #dcfce7; color: #166534; }
.lote-estado--reservado { background: #fef3c7; color: #b45309; }
.lote-estado--vendido { background: #f1f5f9; color: #475569; }

.mapa-aviso--auth {
  position: absolute; top: .65rem; left: .65rem; right: .65rem; z-index: 5;
  max-width: 520px; margin: 0 auto;
}
.publicar-mapa__map-wrap { position: relative; }

/* ===== Flash messages ==================================================== */
.flash-stack {
  position: fixed; top: 80px; right: 1.5rem; z-index: 100;
  display: flex; flex-direction: column; gap: .5rem;
  max-width: 380px;
}
.flash {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem 1rem;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  box-shadow: var(--glass-shadow);
  font-size: .9rem;
  color: var(--c-text);
  animation: slide-in .25s ease;
}
.flash--success {
  border-color: rgba(134, 239, 172, 0.65);
  background: rgba(240, 253, 244, 0.55);
  color: #166534;
}
.flash--danger  {
  border-color: rgba(254, 202, 202, 0.65);
  background: rgba(254, 242, 242, 0.55);
  color: #b91c1c;
}
.flash--warning {
  border-color: rgba(251, 191, 36, 0.55);
  background: rgba(255, 251, 235, 0.55);
  color: #92400e;
}
.flash--info {
  border-color: rgba(125, 211, 252, 0.55);
  background: rgba(240, 249, 255, 0.55);
  color: #0369a1;
}
.flash__close {
  background: none; border: 0; color: inherit; font-size: 1.2rem; cursor: pointer;
  line-height: 1;
}
@keyframes slide-in {
  from { transform: translateX(20px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* ===== Errors ============================================================ */
.error-page { text-align: center; padding: 6rem 1.5rem; }
.error-code {
  font-family: var(--font-display); font-size: clamp(5rem, 14vw, 9rem);
  color: var(--c-primary);
  font-weight: 800;
  line-height: 1;
}

/* ===== Footer ============================================================ */
.footer {
  margin-top: 4rem;
  padding: 3rem 1.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid; gap: 2rem;
  grid-template-columns: 1.4fr repeat(3, 1fr);
}
.footer__brand h3 { font-size: 1.15rem; color: #111827; }
.footer__brand .logo { margin-bottom: .15rem; }
.footer__brand p { color: var(--c-text-dim); font-size: .9rem; max-width: 320px; margin-top: .5rem; }
.footer__col h4 { font-size: .85rem; letter-spacing: .5px; text-transform: uppercase; color: var(--c-primary-2); margin-bottom: .8rem; font-weight: 700; }
.footer__col a { display: block; color: var(--c-text-dim); font-size: .9rem; padding: .2rem 0; }
.footer__col a:hover { color: var(--c-primary); }
.footer__bottom {
  max-width: var(--container);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-border);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .85rem; color: var(--c-text-mute);
}
.footer__chip {
  font-family: var(--font-body);
  letter-spacing: 0; font-size: .75rem;
  padding: .25rem .7rem;
  border-radius: 999px;
  background: #fff5eb;
  border: 1px solid #ffe4cc;
  color: var(--c-primary-2);
}

/* ===== Mapa interactivo ================================================== */
.page-mapa { padding-top: .5rem; }

/* Mapa pantalla completa (estilo GeoHabita) */
body.page-mapa-fs {
  --mapa-fs-nav: 64px;
  --mapa-fs-bottom-offset: 12px;
  overflow: hidden;
}
body.page-mapa-fs.has-continue-banner {
  --mapa-fs-bottom-offset: calc(var(--continue-banner-h, 64px) + 10px);
}
body.page-mapa-fs #bg-canvas,
body.page-mapa-fs .bg-grid,
body.page-mapa-fs .bg-glow,
body.page-mapa-fs .bg-orb {
  display: none;
}
body.page-mapa-fs .footer {
  display: none;
}
body.page-mapa-fs main {
  max-width: none;
  padding: 0;
  margin: 0;
}
.mapa-fs {
  display: grid;
  grid-template-columns: 1fr 300px;
  height: calc(100dvh - var(--mapa-fs-nav));
  height: calc(100vh - var(--mapa-fs-nav));
  min-height: 360px;
  background: #e8eaed;
}
.mapa-fs__map-col {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.mapa-fs__filters {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  width: min(920px, calc(100% - 24px));
  margin: 0;
  padding: .5rem .7rem .45rem;
  background: rgba(255, 107, 0, 0.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(255, 107, 0, 0.22);
}
.mapa-fs__filters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: .4rem .55rem;
}
.mapa-fs__filters-row--more {
  margin-top: .5rem;
  padding-top: .5rem;
  border-top: 1px dashed var(--c-border);
}
.field--mapa-fs label {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #fff;
  font-weight: 700;
  margin-bottom: .2rem;
}
.field--mapa-fs select,
.field--mapa-fs input[type="text"] {
  font-size: .82rem;
  padding: .4rem .55rem;
  min-height: 34px;
  background: #fff;
  color: #111827;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}
.field--mapa-fs select option {
  background: #fff;
  color: #111827;
}
.field--mapa-fs input[type="text"]::placeholder {
  color: #6b7280;
}
.mapa-fs__filters-more {
  margin-top: .25rem;
  font-size: .75rem;
  color: #d1d5db;
}
.mapa-fs__filters-more summary {
  cursor: pointer;
  font-weight: 600;
  color: #ffb380;
  list-style: none;
}
.mapa-fs__filters-more summary::-webkit-details-marker { display: none; }
.field--mapa-fs.field--grow {
  flex: 1 1 140px;
  min-width: 120px;
}
.mapa-fs__setup {
  position: absolute;
  top: 12px;
  right: 312px;
  z-index: 13;
  max-width: 220px;
  margin: 0;
  font-size: .72rem;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  padding: .35rem .5rem;
}
.mapa-fs__toolbar {
  position: absolute;
  bottom: calc(var(--mapa-fs-bottom-offset, 12px) + 46px);
  left: 12px;
  z-index: 11;
  margin: 0;
  padding: .35rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.85);
  transition: bottom .28s ease;
}
.mapa-fs__toolbar .mapa-tipo-btn {
  padding: .35rem .65rem;
  font-size: .78rem;
  border-radius: 8px;
}
.mapa-fs__toolbar .mapa-tipo-btn.is-active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}
.mapa-fs__toolbar #btnMiUbicacion {
  margin-left: .25rem;
}
.mapa-fs__aviso {
  position: absolute;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  max-width: min(520px, calc(100% - 24px));
  margin: 0;
}
.mapa-fs__legend {
  position: absolute;
  bottom: var(--mapa-fs-bottom-offset, 12px);
  left: 12px;
  z-index: 11;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .65rem;
  margin: 0;
  padding: .4rem .65rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  font-size: .72rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.85);
  transition: bottom .28s ease;
}
.mapa-fs__legend .mapa-legend__item { margin: 0; }
.mapa-fs__sidebar {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  border: none;
  border-left: 1px solid var(--c-border);
  box-shadow: -4px 0 24px rgba(15, 23, 42, 0.06);
  transition: transform .25s ease, opacity .25s ease;
}
.mapa-fs__sidebar .mapa-sidebar__content {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}
.mapa-fs__sidebar-toggle {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 13;
  padding: .4rem .75rem;
  font-size: .78rem;
  font-weight: 600;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
}
.mapa-viewport--fs {
  flex: 1;
  min-height: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.mapa-canvas--fs {
  height: 100% !important;
  min-height: 0 !important;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.mapa-viewport--fs .mapa-streetview {
  min-height: 0;
  height: 100%;
}
.mapa-canvas--fs .gm-style > div:first-child,
.mapa-viewport--fs .mapa-canvas .gm-style > div:first-child {
  border-radius: 0;
}
.mapa-fs__alert {
  padding: 1rem;
  max-width: 720px;
  margin: 1rem auto;
}

.lote-panel--map-list {
  position: absolute;
  top: 72px;
  right: 12px;
  z-index: 200;
  width: min(300px, calc(100% - 24px));
  max-height: calc(100% - 88px);
  overflow-y: auto;
  pointer-events: auto;
}
.lote-map-hint--map-list {
  position: absolute;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  z-index: 18;
  margin: 0;
  max-width: min(520px, calc(100% - 24px));
}

.mapa-filters { margin-bottom: 1rem; }
.mapa-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.25rem;
  align-items: start;
}
.mapa-panel { position: relative; }
.mapa-viewport {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-1);
}
.mapa-viewport.is-split {
  grid-template-columns: 1fr 1fr;
}
.mapa-streetview {
  display: none;
  min-height: 520px;
  height: 100%;
  background: #111;
}
.mapa-viewport.is-split .mapa-streetview {
  display: block;
}
.mapa-viewport .mapa-canvas {
  border: none;
  box-shadow: none;
  border-radius: 0;
}
.mapa-sv-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.95);
  color: #111;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.mapa-hint {
  margin: .55rem 0 0;
  font-size: .84rem;
  color: var(--c-text-dim);
}
.mapa-hint strong { color: var(--c-primary-2); }
.mapa-popup__sv { margin-top: .35rem; width: 100%; justify-content: center; }
.mapa-canvas {
  width: 100%;
  height: 520px;
  min-height: 320px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-1);
  background: #e8eaed;
  z-index: 2;
  position: relative;
}
.mapa-error-msg {
  padding: 1.25rem;
  font-size: .9rem;
  line-height: 1.5;
  color: #991b1b;
  max-width: 42rem;
}
.mapa-error-msg code {
  background: #fef2f2;
  padding: .1rem .35rem;
  border-radius: 4px;
  font-size: .85em;
}
main { position: relative; z-index: 1; }
.mapa-canvas--embed { height: 380px; margin-top: .5rem; }
.mapa-canvas--detalle { height: 380px; margin: 1rem 0; }
.mapa-canvas--publicar { margin: 0; }
#mapa-publicar {
  width: 100% !important;
  height: 520px !important;
  min-height: 520px !important;
  display: block;
  background: #e5e3df;
}
.publicar-mapa--pro {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
}
.publicar-mapa--pro .publicar-mapa__head {
  padding: 1.15rem 1.25rem 0;
  margin-bottom: .5rem;
}
.publicar-mapa__badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-primary);
  background: #fff5eb;
  border: 1px solid #ffd4a8;
  padding: .2rem .55rem;
  border-radius: 999px;
  margin-bottom: .45rem;
}

/* Selector de modo: punto / poligono / SVG */
.geo-mode {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .65rem;
  padding: 0 1.25rem 1rem;
  border-bottom: 1px solid var(--c-border);
}
.geo-mode__btn {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .85rem 1rem;
  border: 2px solid var(--c-border);
  border-radius: 12px;
  background: #fafafa;
  cursor: pointer;
  text-align: left;
  transition: border-color .2s, background .2s, box-shadow .2s;
  font-family: inherit;
}
.geo-mode__btn:hover {
  border-color: #ffd4a8;
  background: #fff;
}
.geo-mode__btn.is-active {
  border-color: var(--c-primary);
  background: #fff8f2;
  box-shadow: 0 0 0 1px rgba(232, 93, 4, .15);
}
.geo-mode__icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--c-border);
  font-size: 1rem;
  color: var(--c-primary);
}
.geo-mode__btn.is-active .geo-mode__icon {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}
.geo-mode__text {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
}
.geo-mode__text strong {
  font-size: .88rem;
  color: var(--c-text);
  line-height: 1.2;
}
.geo-mode__text small {
  font-size: .75rem;
  color: var(--c-text-dim);
  line-height: 1.3;
}
.publicar-mapa__head--tools {
  padding: .85rem 1.25rem 1rem;
  margin-bottom: 0;
}
.geo-mode-panel__hint {
  font-size: .84rem;
  color: var(--c-text-dim);
  margin: 0 0 .75rem;
  line-height: 1.45;
}
.publicar-mapa__actions--map {
  margin-top: .5rem;
  padding-top: .65rem;
  border-top: 1px dashed var(--c-border);
}
.publicar-mapa--pro[data-geo-mode="punto"] .pub-coords__metric--polygon,
.publicar-mapa--pro[data-geo-mode="punto"] .pub-coords__block--vertices,
.publicar-mapa--pro[data-geo-mode="punto"] .pub-coords__block--edges {
  display: none;
}
.pub-coords__hint {
  margin: 0 0 .55rem;
  font-size: .78rem;
  line-height: 1.45;
  color: var(--c-text-dim);
}
.pub-coords__table-wrap--edges {
  overflow-x: auto;
  margin: 0 -2px;
}
.pub-coords__table--edges {
  table-layout: fixed;
  width: 100%;
  min-width: 300px;
}
.pub-coords__table--edges .pub-coords__col-edge-name { width: 32%; }
.pub-coords__table--edges .pub-coords__col-edge-len { width: 38%; min-width: 7.5rem; }
.pub-coords__table--edges .pub-coords__col-edge-frente { width: 15%; min-width: 2.6rem; }
.pub-coords__table--edges .pub-coords__col-edge-angulo { width: 15%; min-width: 2.6rem; }
.pub-coords__table--edges thead th {
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: .65rem;
}
.pub-coords__col-resize {
  position: absolute;
  top: 0;
  right: 0;
  width: 7px;
  height: 100%;
  cursor: col-resize;
  user-select: none;
  touch-action: none;
}
.pub-coords__col-resize:hover,
.pub-coords__col-resize:active {
  background: rgba(232, 93, 4, .25);
}
.pub-coords__table--edges input.coord-edge-len {
  flex: 1 1 0;
  min-width: 4.2rem;
  width: 100%;
  padding: .35rem .45rem;
  font-size: .9rem;
  font-variant-numeric: tabular-nums;
}
.coord-edge-len-cell {
  display: flex;
  align-items: center;
  gap: .25rem;
  min-width: 0;
}
.coord-edge-lock-btn {
  flex: 0 0 auto;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  border: 1px solid var(--c-border);
  border-radius: .35rem;
  background: #fff;
  font-size: .78rem;
  line-height: 1;
  cursor: pointer;
  opacity: .55;
}
.coord-edge-lock-btn--on {
  opacity: 1;
  border-color: #f59e0b;
  background: #fffbeb;
}
.coord-edge-row--locked .coord-edge-len {
  font-weight: 700;
  background: #fffbeb;
}
.pub-coords__table--edges .coord-edge-frente,
.pub-coords__table--edges .coord-edge-angulo {
  text-align: center;
  width: auto;
  padding-left: .2rem;
  padding-right: .2rem;
}
.coord-edge-tag--ang {
  background: #fef3c7;
  color: #b45309;
}
.coord-edge-angulo-na {
  color: var(--c-text-dim);
  font-size: .82rem;
}
.coord-edge-tag {
  display: inline-block;
  margin-left: .25rem;
  padding: .05rem .35rem;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: .68rem;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
}
.pub-coords__edges-actions {
  display: grid;
  gap: .45rem;
  margin-top: .65rem;
}
.pub-coords__medidas-ok {
  display: block;
  margin-top: .45rem;
  font-size: .82rem;
  font-weight: 700;
  color: #15803d;
}
.publicar-mapa--pro[data-geo-mode="poligono"] .plano-import__bar--upload,
.publicar-mapa--pro[data-geo-mode="poligono"] .plano-import__calib {
  display: none;
}
@media (max-width: 720px) {
  .geo-mode {
    grid-template-columns: 1fr;
  }
}

.publicar-mapa__workspace {
  display: grid;
  grid-template-columns: 1fr minmax(340px, 420px);
  gap: 0;
  border-top: 1px solid var(--c-border);
}
.publicar-mapa__map-wrap {
  position: relative;
  height: 520px;
  min-height: 520px;
  border-right: 1px solid var(--c-border);
  background: #e5e3df;
}
.publicar-mapa--pro .mapa-canvas--publicar {
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.mapa-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e5e3df;
  color: var(--c-text-dim);
  font-size: .9rem;
  font-weight: 600;
  z-index: 2;
  pointer-events: none;
}
.mapa-loading::before {
  content: '';
  width: 28px;
  height: 28px;
  margin-right: .65rem;
  border: 3px solid #ddd;
  border-top-color: var(--c-primary);
  border-radius: 50%;
  animation: mapa-spin .8s linear infinite;
}
@keyframes mapa-spin {
  to { transform: rotate(360deg); }
}
.pub-coords {
  padding: 1rem 1.1rem;
  border: none;
  border-radius: 0;
  box-shadow: none;
  max-height: 520px;
  overflow-y: auto;
}
.pub-coords h3 {
  margin: 0 0 .75rem;
  font-size: 1rem;
}
.pub-coords h4 {
  margin: 0 0 .45rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--c-text-dim);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.pub-coords__summary {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--c-border);
}
.pub-coords__metric span {
  display: block;
  font-size: .75rem;
  color: var(--c-text-dim);
  margin-bottom: .15rem;
}
.pub-coords__metric strong {
  font-size: .88rem;
  color: #111827;
  word-break: break-all;
}
.pub-coords__metric em {
  display: block;
  font-size: .78rem;
  color: var(--c-primary-2);
  font-style: normal;
  margin-top: .1rem;
}
.pub-coords__metric--highlight {
  background: #fff8f0;
  border: 1px solid #ffe4cc;
  border-radius: 10px;
  padding: .55rem .65rem;
}
.pub-coords__block {
  margin-bottom: 1rem;
}
.pub-coords__inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .45rem;
  margin-bottom: .45rem;
}
.pub-coords__inputs--2 {
  grid-template-columns: 1fr 1fr;
}
.pub-coords__inputs label {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  font-size: .78rem;
  color: var(--c-text-dim);
}
.pub-coords__inputs input,
.pub-coords__inputs select {
  width: 100%;
  padding: .45rem .5rem;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  font-size: .85rem;
  font-family: inherit;
}
.pub-coords__table-wrap {
  max-height: 160px;
  overflow: auto;
  border: 1px solid var(--c-border);
  border-radius: 8px;
}
.pub-coords__table {
  width: 100%;
  border-collapse: collapse;
  font-size: .78rem;
}
.pub-coords__table th,
.pub-coords__table td {
  padding: .35rem .45rem;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}
.pub-coords__table th {
  background: #fafafa;
  font-weight: 600;
  position: sticky;
  top: 0;
}
.pub-coords__empty {
  text-align: center;
  color: var(--c-text-dim);
  padding: .75rem !important;
}
.publicar-mapa--pro .publicar-mapa__status {
  margin: 0 1.25rem .75rem;
}
/* Plano SVG/DXF — masterplan de lotes */
.plano-import {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--c-border);
  background: linear-gradient(180deg, #fff9f3 0%, #fafbfc 100%);
}
.plano-import__file {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}
.plano-import__bar {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  align-items: flex-start;
}
.plano-import__detalle {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--c-border);
}
.btn--accent {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}
.btn--accent:hover { filter: brightness(1.06); color: #fff; }
.btn--whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: #25d366;
  color: #fff;
  border: 1px solid #1ebe57;
  margin-bottom: .85rem;
  font-weight: 700;
}
.btn--whatsapp:hover {
  background: #1fb855;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp__icon { flex-shrink: 0; }
.plano-import__top {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  align-items: flex-start;
  margin-bottom: .85rem;
}
.plano-import__upload { flex: 1 1 220px; }
.plano-import__hint {
  display: block;
  font-size: .78rem;
  color: var(--c-text-dim);
  margin-top: .35rem;
  max-width: 36rem;
}
.plano-import__status { font-size: .82rem; color: var(--c-primary); margin-left: .5rem; }
.plano-leyenda {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .85rem;
  font-size: .78rem;
  color: var(--c-text-dim);
}
.plano-leyenda--inline { margin: .5rem 0 0; }
.plano-leyenda__item,
.plano-leyenda span { display: inline-flex; align-items: center; gap: .35rem; }
.plano-leyenda i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
  border: 1px solid rgba(0,0,0,.08);
}
.plano-style {
  margin-top: .65rem;
  padding: .75rem .85rem;
  font-size: .82rem;
}
.plano-style h4 { margin: 0 0 .35rem; font-size: .88rem; }
.plano-style__hint {
  margin: 0 0 .55rem;
  color: var(--c-text-dim);
  line-height: 1.45;
  font-size: .78rem;
}
.plano-style__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem .65rem;
  margin-bottom: .55rem;
}
.plano-style__grid label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .35rem;
  font-size: .78rem;
}
.plano-style__grid input[type="color"] {
  width: 2.2rem;
  height: 1.6rem;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  cursor: pointer;
}
.plano-style__opacity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: .55rem;
  font-size: .78rem;
}
.plano-style__opacity input[type="range"] { flex: 1; min-width: 120px; }
.plano-resumen { margin: .35rem 0 0; font-size: .82rem; }
.plano-pill {
  display: inline-block;
  padding: .12rem .45rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  margin-right: .25rem;
}
.plano-pill--disp { background: #dcfce7; color: #166534; }
.plano-pill--res { background: #dbeafe; color: #1e40af; }
.plano-pill--vend { background: #fee2e2; color: #991b1b; }
.plano-pill--calle { background: #f1f5f9; color: #475569; }
.plano-import__calib h4,
.plano-import__editor h4 { font-size: .88rem; margin: 0 0 .5rem; }
.plano-import__inputs { margin-bottom: .5rem; }
.plano-import__actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .85rem; }
.plano-import__sel {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: flex-end;
  margin-bottom: .65rem;
}
.plano-import__sel label { font-size: .82rem; }
.plano-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  display: inline-block;
  border: 1px solid rgba(0,0,0,.12);
}
.plano-table .plano-row { cursor: pointer; }
.plano-table .plano-row.is-selected { background: #fff5eb; }
.plano-label-inp {
  width: 100%;
  min-width: 80px;
  font-size: .82rem;
  padding: .2rem .35rem;
  border: 1px solid var(--c-border);
  border-radius: 6px;
}
.plano-estado-sel { font-size: .8rem; max-width: 130px; }
.plano-import__steps {
  font-size: .84rem;
  color: var(--c-text-dim);
  margin: 0 0 .75rem;
  line-height: 1.5;
  max-width: 52rem;
}
.plano-calib-aviso {
  padding: .65rem .85rem;
  border-radius: 10px;
  font-size: .84rem;
  line-height: 1.45;
  margin-bottom: .75rem;
}
.plano-calib-aviso--info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}
.plano-calib-aviso--warn {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
}
.btn--move-project.is-active {
  background: #ff6b00;
  color: #fff;
  border-color: #e85d00;
}
.plano-move-live {
  margin: 0 0 .75rem;
  padding: .6rem .75rem;
  border-radius: 8px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  font-size: .84rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.plano-move-live span {
  color: var(--c-muted, #64748b);
}
.publicar-mapa--move-project .mapa-canvas--publicar {
  outline: 2px solid #ff6b00;
  outline-offset: -2px;
}
.btn--transform-project.is-active {
  background: #3b82f6;
  color: #fff;
  border-color: #2563eb;
}
.plano-transform-panel {
  margin: 0 0 .85rem;
  padding: .75rem .85rem;
  border-radius: 8px;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  font-size: .84rem;
}
.plano-transform-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .5rem;
}
.plano-transform-panel__hint {
  margin: .45rem 0;
  color: var(--c-muted, #64748b);
  font-size: .8rem;
}
.plano-transform-slider {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
}
.plano-transform-slider input[type="range"] {
  flex: 1 1 140px;
  min-width: 120px;
}
.plano-transform-panel__measure {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}
.plano-measure-info {
  font-size: .82rem;
  color: #1d4ed8;
}
.plano-precio-inp {
  width: 6.5rem;
  min-width: 5rem;
}
.plano-del-btn { padding: 0 .35rem; min-width: 28px; line-height: 1.2; color: #b91c1c; }
.plano-meta-inp {
  width: 100%;
  max-width: 52px;
  padding: .25rem .35rem;
  font-size: .78rem;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  background: #fff;
}
.plano-meta-inp--xs { max-width: 44px; text-align: center; }
.plano-table--meta { font-size: .78rem; }
.plano-table--meta th { white-space: nowrap; }
.pub-coords__table-wrap--plano {
  max-height: 240px;
  overflow: auto;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: #fff;
}
.plano-table--spreadsheet {
  border-collapse: collapse;
  width: 100%;
  font-size: .76rem;
}
.plano-table--spreadsheet th,
.plano-table--spreadsheet td {
  padding: 0;
  border: 1px solid #e2e8f0;
  vertical-align: middle;
}
.plano-table--spreadsheet thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f1f5f9;
  padding: .35rem .4rem;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #64748b;
}
.plano-table--spreadsheet .plano-row.is-selected {
  background: #fff7ed;
  box-shadow: inset 3px 0 0 #e85d04;
}
.plano-table--spreadsheet .plano-row:hover { background: #fffbf5; }
.plano-table--spreadsheet .plano-swatch { margin: .35rem; }
.plano-table--spreadsheet .plano-meta-inp,
.plano-table--spreadsheet .plano-label-inp,
.plano-table--spreadsheet .plano-precio-inp,
.plano-table--spreadsheet .plano-estado-sel {
  width: 100%;
  max-width: none;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: .35rem .45rem;
  font-size: inherit;
}
.plano-table--spreadsheet .plano-meta-inp--xs { text-align: center; }
.plano-table--spreadsheet .plano-meta-inp:focus,
.plano-table--spreadsheet .plano-label-inp:focus,
.plano-table--spreadsheet .plano-precio-inp:focus,
.plano-table--spreadsheet .plano-estado-sel:focus {
  outline: none;
  background: #fff;
  box-shadow: inset 0 0 0 2px #ff7a1a;
}
.plano-table--spreadsheet td:nth-child(6) {
  padding: .35rem .5rem;
  text-align: right;
  white-space: nowrap;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}
.plano-table--spreadsheet .plano-del-btn {
  width: 100%;
  border-radius: 0;
  min-height: 28px;
}
.plano-import__editor-hint {
  margin: 0 0 .45rem;
  font-size: .76rem;
  color: var(--c-text-dim);
}
.plano-cell__inner {
  position: relative;
  min-height: 28px;
}
.plano-cell--editable:focus-within {
  z-index: 1;
}
.plano-fill-handle {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 9px;
  height: 9px;
  background: #e85d04;
  border: 1px solid #fff;
  border-radius: 1px;
  cursor: crosshair;
  opacity: 0;
  z-index: 3;
  box-shadow: 0 0 0 1px rgba(232, 93, 4, 0.35);
}
.plano-cell--editable:focus-within .plano-fill-handle,
.plano-cell--editable:hover .plano-fill-handle,
.plano-cell--fill-source .plano-fill-handle {
  opacity: 1;
}
.plano-row--fill-preview {
  background: #fff7ed !important;
  box-shadow: inset 0 0 0 1px #fdba74;
}
.plano-cell--fill-source {
  box-shadow: inset 0 0 0 2px #e85d04;
}
body.plano-fill-dragging {
  cursor: crosshair;
  user-select: none;
}
body.plano-fill-dragging .plano-fill-handle {
  opacity: 1;
}

/* Mapa interactivo master plan */
.masterplan-map { position: relative; }
.detalle-mapa-wrap {
  position: relative;
  margin-bottom: 1rem;
}
.detalle-mapa-wrap .mapa-canvas--detalle {
  margin: 0;
  height: 540px;
  min-height: 460px;
}
.lote-panel__view-fields {
  border-top: 1px dashed var(--c-border);
  padding-top: .75rem;
}
.lote-panel__whatsapp {
  border-top: 1px dashed var(--c-border);
  padding-top: .55rem;
  margin-top: .1rem;
}
.lote-panel__whatsapp .btn--whatsapp {
  margin-bottom: 0;
  font-size: .78rem;
  padding: .5rem .65rem;
  line-height: 1.25;
  white-space: normal;
  text-align: center;
}
.lote-panel__view-fields h4 {
  margin: 0 0 .45rem;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-text-dim);
}
.lote-panel--view .lote-panel__view-fields { display: block; }
.lote-panel--edit .lote-panel__view-fields { display: none; }
.lote-iw { font-family: inherit; font-size: .88rem; color: #111827; min-width: 200px; }
.lote-iw__title { margin: 0 0 .5rem; font-weight: 700; font-size: .95rem; line-height: 1.3; }
.lote-iw__dl { margin: 0; }
.lote-iw__dl div { display: flex; justify-content: space-between; gap: .5rem; padding: .3rem 0; border-bottom: 1px solid #e5e7eb; }
.lote-iw__dl dt { margin: 0; color: #6b7280; font-size: .8rem; }
.lote-iw__dl dd { margin: 0; font-weight: 600; text-align: right; }
.lote-iw__badge { display: inline-block; padding: 2px 8px; border-radius: 999px; color: #fff; font-size: .75rem; font-weight: 700; }
.lote-iw__more { margin: .55rem 0 0; font-size: .75rem; color: #6b7280; line-height: 1.35; }
.lotes-resumen__table tbody tr { cursor: pointer; transition: background .15s; }
.lotes-resumen__table tbody tr:hover { background: rgba(255, 122, 26, 0.08); }
.lote-map-hint {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 5;
  margin: 0;
  padding: .55rem 1.1rem;
  background: linear-gradient(135deg, #e85d04, #ff7a1a);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(232, 93, 4, 0.35);
  pointer-events: none;
  white-space: nowrap;
  max-width: calc(100% - 2rem);
  overflow: hidden;
  text-overflow: ellipsis;
}
.lote-map-label-wrap {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 4;
}
.lote-map-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.45));
}
.lote-map-label--active .lote-map-label__num {
  transform: scale(1.12);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.45);
}
.lote-map-label__etapa {
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  background: #e85d04;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: .03em;
}
.lote-map-label__num {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  background: rgba(255,255,255,.95);
  color: #111827;
  font-size: 11px;
  font-weight: 800;
  border-radius: 4px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.lote-edge-dim-wrap {
  position: absolute;
  pointer-events: none;
  z-index: 6;
  white-space: nowrap;
}
.lote-edge-dim {
  display: inline-block;
  padding: 1px 6px;
  background: rgba(255, 255, 255, 0.94);
  color: #111827;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
  letter-spacing: -0.02em;
}
.lote-edge-dim--frente {
  background: rgba(236, 254, 255, 0.96);
  color: #0e7490;
  border-color: rgba(34, 211, 238, 0.55);
}
.lote-map-label__mz {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #fff;
  color: #111;
  font-size: 10px;
  font-weight: 900;
  border: 2px solid #111;
  border-radius: 3px;
}

/* Pin con precio en mapa */
.map-price-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 6;
}
.map-price-pin__label {
  background: #5b7a8c;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 2px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  letter-spacing: 0.01em;
}
.map-price-pin__icon svg {
  width: 34px;
  height: 42px;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}
.map-price-badge {
  display: inline-block;
  background: #5b7a8c;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 2px;
}
.map-price-badge--lot {
  font-size: 9px;
  padding: 2px 6px;
}
.map-price-pin--terreno .map-price-pin__label {
  font-size: 11px;
  padding: 3px 9px;
}
.map-lot-price-wrap {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 4;
}
.lote-map-label--active .map-price-badge {
  box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.55);
}

.lote-panel--view {
  width: min(248px, calc(100% - 16px));
  max-height: calc(100% - 56px);
  padding: .55rem .65rem .65rem;
  border-radius: 12px;
  top: 8px;
  right: 8px;
}
.lote-panel--view .lote-panel__close {
  top: 4px;
  right: 6px;
  width: 24px;
  height: 24px;
  font-size: 1rem;
}
.lote-panel--view .lote-panel__etapa {
  font-size: .65rem;
  margin-bottom: .05rem;
}
.lote-panel--view .lote-panel__brand {
  font-size: .68rem;
  line-height: 1.25;
}
.lote-panel--view .lote-panel__title {
  font-size: .88rem;
  margin: .08rem 0 .4rem;
  line-height: 1.2;
}
.lote-panel--view .lote-panel__section {
  margin-bottom: .4rem;
}
.lote-panel--view .lote-panel__section h4 {
  margin-bottom: .2rem;
  font-size: .65rem;
  letter-spacing: .06em;
}
.lote-panel--view .lote-panel__dl div {
  padding: .15rem 0;
  font-size: .76rem;
  border-bottom-color: rgba(0, 0, 0, 0.06);
}
.lote-panel--view .lote-panel__estado {
  padding: 1px 6px;
  font-size: .68rem;
}
.lote-panel--view .lote-panel__estado-edit {
  margin-bottom: .35rem;
}
.lote-panel--view .lote-panel__estado-edit h4 {
  margin-bottom: .15rem;
}
.lote-panel--view .lote-estado-select {
  font-size: .76rem;
  padding: .28rem .4rem;
}
.lote-panel--view .lote-panel__lados {
  gap: .15rem;
}
.lote-panel--view .lote-panel__lado {
  padding: .15rem .28rem;
  border-radius: 4px;
}
.lote-panel--view .lote-panel__lado-name {
  font-size: .68rem;
}
.lote-panel--view .lote-panel__lado-val {
  font-size: .72rem;
}
.lote-panel--view .lote-panel__lado-tag {
  font-size: .6rem;
}
.lote-panel--view .lote-panel__perim-total {
  margin-top: .25rem;
  font-size: .68rem;
}
.lote-panel--view .lote-panel__view-fields h4 {
  margin-bottom: .15rem;
}
.lote-panel--view .lote-panel__dl--meta div:last-child {
  border-bottom: none;
}

.lote-panel {
  position: absolute;
  top: 12px;
  right: 12px;
  width: min(300px, calc(100% - 24px));
  max-height: calc(100% - 70px);
  overflow-y: auto;
  z-index: 6;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 1rem 1rem 1.1rem;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(255,255,255,.8);
  animation: lotePanelIn .25s ease;
}
@keyframes lotePanelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.lote-panel__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: none;
  background: #ffedd5;
  color: #c2410c;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.lote-panel__close:hover {
  background: #fed7aa;
  color: #9a3412;
}
.lote-panel__etapa {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  color: #e85d04;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .2rem;
}
.lote-panel__brand {
  margin: 0;
  font-size: .78rem;
  color: var(--c-text-dim);
  padding-right: 1.5rem;
}
.lote-panel__title {
  margin: .15rem 0 .75rem;
  font-size: 1.05rem;
  color: #111827;
  line-height: 1.25;
}
.lote-panel__section { margin-bottom: .85rem; }
.lote-panel__section h4 {
  margin: 0 0 .45rem;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-text-dim);
}
.lote-panel__dl { margin: 0; }
.lote-panel__dl div {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  padding: .35rem 0;
  border-bottom: 1px solid var(--c-border);
  font-size: .88rem;
}
.lote-panel__dl dt { color: var(--c-text-dim); margin: 0; }
.lote-panel__dl dd { margin: 0; font-weight: 600; text-align: right; }
.lote-panel__estado {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
}
.lote-panel__perimetro {
  display: block;
  font-size: .8rem;
  color: var(--c-text-dim);
}
.lote-panel__perimetro strong { color: #111827; }
.lote-panel__lados {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .28rem;
}
.lote-panel__lado {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .45rem;
  padding: .28rem .4rem;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, .04);
}
.lote-panel__lado--frente {
  background: #ecfeff;
  border-color: rgba(34, 211, 238, .35);
}
.lote-panel__lado-name { font-size: .76rem; }
.lote-panel__lado-val { text-align: right; white-space: nowrap; }
.lote-panel__lado-tag {
  font-style: normal;
  font-size: .68rem;
  font-weight: 700;
  color: #0e7490;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.lote-panel__perim-total {
  margin: .45rem 0 0;
  font-size: .76rem;
  line-height: 1.45;
}
.lote-panel__edit-fields { border-top: 1px dashed var(--c-border); padding-top: .75rem; }
.lote-panel__edit-fields h4 { margin: 0 0 .5rem; font-size: .82rem; }
.lote-panel__inputs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: .45rem;
}
.lote-panel__inputs label {
  font-size: .72rem;
  color: var(--c-text-dim);
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.lote-panel__inputs label.full { grid-column: 1 / -1; }
.lote-panel__inputs input,
.lote-panel__inputs select {
  font-size: .85rem;
  padding: .4rem .5rem;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  background: #fff;
}
.lote-panel__hint-edit {
  margin: .55rem 0 0;
  font-size: .75rem;
  color: var(--c-text-dim);
  line-height: 1.35;
}
.lote-panel--view .lote-panel__edit-fields { display: none; }
.lote-panel--edit .lote-panel__edit-fields { display: block; }
.lote-panel__medidas-title { margin: .85rem 0 .4rem; font-size: .82rem; }
.lote-panel__inputs--medidas { grid-template-columns: 1fr 1fr; }
.lote-panel__frente-sel {
  display: block;
  font-size: .72rem;
  color: var(--c-text-dim);
  margin: 0 0 .5rem;
}
.lote-panel__frente-sel select {
  display: block;
  width: 100%;
  margin-top: .2rem;
  padding: .4rem .5rem;
  border: 1px solid var(--c-border, #d1d5db);
  border-radius: 8px;
  font-size: .82rem;
  background: #fff;
}
.lote-panel__medidas-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .55rem;
}
.lote-panel__medidas-ok {
  display: inline-block;
  margin-top: .4rem;
  font-size: .75rem;
  font-weight: 600;
  color: #16a34a;
}
#loteBtnRecalcular { margin-top: 0; }
@media (max-width: 720px) {
  .lote-panel {
    top: auto;
    bottom: 52px;
    right: 8px;
    left: 8px;
    width: auto;
    max-height: 45%;
  }
  .lote-map-hint { font-size: .72rem; bottom: 10px; white-space: normal; text-align: center; }
}
.pub-draw-estado,
.pub-draw-default {
  display: inline-flex;
  flex-direction: column;
  font-size: .72rem;
  font-weight: 600;
  color: var(--c-text-dim);
  gap: .15rem;
}
.pub-draw-estado select,
.pub-draw-default input {
  font-size: .82rem;
  padding: .25rem .4rem;
  border-radius: 8px;
  border: 1px solid var(--c-border);
  min-width: 52px;
  width: 52px;
  text-align: center;
  text-transform: uppercase;
}
.pub-draw-estado select {
  min-width: 110px;
  width: auto;
  text-transform: none;
}
.btn.is-drawing {
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.35);
  animation: drawPulse 1.2s ease infinite;
}
@keyframes drawPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(255, 107, 0, 0.15); }
}
.masterplan-map.is-drawing-mode .mapa-canvas--publicar,
.masterplan-map.is-drawing-mode #mapa-publicar {
  cursor: crosshair !important;
}
.draw-map-hint {
  bottom: auto;
  top: 12px;
  background: linear-gradient(135deg, #1e293b, #334155);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.35);
}

.publicar-mapa--pro .publicar-mapa__hint {
  margin: 0;
  padding: .75rem 1.25rem 1rem;
  border-top: 1px solid var(--c-border);
  background: #fafafa;
}
@media (max-width: 960px) {
  .publicar-mapa__workspace { grid-template-columns: 1fr; }
  .publicar-mapa__map-wrap { border-right: none; border-bottom: 1px solid var(--c-border); }
  .pub-coords { max-height: none; }
}
.publicar-mapa {
  margin: 1.5rem 0;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--c-border);
  border-radius: 14px;
  background: #fafafa;
}
.publicar-mapa__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .65rem;
}
.publicar-mapa__head h2 {
  margin: 0 0 .35rem;
  font-size: 1.15rem;
}
.publicar-mapa__intro {
  margin: 0;
  font-size: .9rem;
  color: var(--c-text-dim);
  max-width: 36rem;
}
.publicar-mapa__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
}
.publicar-mapa__status {
  margin: 0 0 .65rem;
  font-size: .88rem;
  color: var(--c-text-dim);
  padding: .5rem .75rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--c-border);
}
.publicar-mapa__status--active {
  border-color: #ffb380;
  background: #fff8f0;
  color: #9a3412;
}
.publicar-mapa__status--ok {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}
.publicar-mapa__hint {
  margin: .65rem 0 0;
  font-size: .85rem;
  color: var(--c-text-dim);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.mapa-embed { margin-bottom: 1.75rem; padding: 1rem 1.15rem; }
.mapa-embed__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem;
}
.mapa-embed__head h2 { margin: 0; font-size: 1.1rem; }
.mapa-legend {
  display: flex; flex-wrap: wrap; gap: 1rem;
  margin-top: .65rem; font-size: .85rem; color: var(--c-text-dim);
}
.mapa-legend__item { display: inline-flex; align-items: center; gap: .4rem; }
.mapa-legend__dot {
  width: 12px; height: 12px; border-radius: 4px;
  background: var(--c-primary); border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(255, 107, 0, 0.4);
}
.mapa-legend__sq {
  width: 14px; height: 14px; border-radius: 3px;
  background: rgba(255, 107, 0, 0.55);
  border: 2px solid #ff6b00;
}
.mapa-legend__sq--barato { background: #ffb347; border-color: #ffb347; }
.mapa-legend__sq--medio { background: #ff6b00; border-color: #ff6b00; }
.mapa-legend__sq--caro { background: #c2410c; border-color: #c2410c; }
.mapa-legend__dot {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.12);
}
.mapa-legend__dot--barato { background: #ffc766; }
.mapa-legend__dot--medio { background: #ff7a1a; }
.mapa-legend__dot--caro { background: #e85d04; }
.mapa-legend__lote {
  width: 14px; height: 10px; border-radius: 2px;
  background: rgba(255, 122, 26, 0.45);
  border: 2px dashed #fff;
  box-shadow: 0 0 0 1px #ff7a1a;
}
.mapa-canvas .gm-style > div:first-child {
  border-radius: 14px;
}
.mapa-legend__ring {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid #3b82f6;
  background: rgba(59, 130, 246, 0.15);
}
.mapa-toolbar {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: .65rem;
  margin-bottom: .65rem;
}
.mapa-toolbar--compact { margin-top: .5rem; }
.mapa-toolbar__tipos { display: flex; gap: .35rem; flex-wrap: wrap; }
.mapa-tipo-btn {
  border: 1px solid var(--c-border);
  background: #fff;
  color: var(--c-text-dim);
  padding: .4rem .75rem;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.mapa-tipo-btn.is-active,
.mapa-tipo-btn:hover {
  background: #fff5eb;
  border-color: #ffb380;
  color: var(--c-primary);
}
.mapa-aviso {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  padding: .65rem .85rem;
  border-radius: 10px;
  font-size: .88rem;
  margin-bottom: .65rem;
}
.mapa-aviso--warn {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
  margin-bottom: 1rem;
}
.mapa-setup-hint {
  margin-bottom: 1rem;
  padding: .75rem 1rem;
  border: 1px dashed var(--c-border);
  border-radius: 10px;
  font-size: .88rem;
  color: var(--c-text-dim);
}
.mapa-setup-hint summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--c-primary-2);
}
.mapa-setup-hint ol {
  margin: .65rem 0 0 1.1rem;
  padding: 0;
}
.mapa-setup-hint li { margin-bottom: .35rem; }
.mapa-setup-hint code {
  font-size: .82em;
  background: #f5f5f5;
  padding: .1rem .3rem;
  border-radius: 4px;
}
.mapa-popup__tier {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  color: #ea580c;
  margin-bottom: .25rem;
}
.mapa-popup__dist, .mapa-sidebar__dist {
  font-size: .82rem;
  color: #3b82f6;
  font-weight: 600;
}
.mapa-sidebar__list {
  list-style: none; padding: 0; margin: 0 0 1rem;
  display: flex; flex-direction: column; gap: .35rem;
}
.mapa-sidebar__item {
  width: 100%; text-align: left;
  border: 1px solid var(--glass-border-2);
  border-radius: 10px;
  padding: .55rem .65rem;
  background: var(--glass-bg-soft);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  cursor: pointer;
  font-family: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.mapa-sidebar__item:hover {
  border-color: rgba(255, 179, 128, 0.65);
  background: rgba(255, 250, 245, 0.45);
}
.mapa-sidebar__item strong { display: block; color: var(--c-primary); font-size: .95rem; }
.mapa-sidebar__item span { display: block; font-size: .82rem; color: var(--c-text-dim); }
.mapa-sidebar__item em { font-size: .75rem; color: #3b82f6; font-style: normal; }
.mapa-marker-wrap { background: transparent; border: none; }
.mapa-marker {
  width: 14px; height: 14px; border-radius: 4px;
  background: linear-gradient(135deg, #ff8534, #ff6b00);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.45);
}
.mapa-marker--terreno {
  width: 18px; height: 18px; border-radius: 3px;
  background: rgba(255, 107, 0, 0.85);
  border-color: #fff;
}
.mapa-sidebar h2 { font-size: 1.05rem; margin-bottom: .35rem; }
.mapa-sidebar__hint { font-size: .85rem; color: var(--c-text-dim); margin-bottom: 1rem; }
.mapa-sidebar__empty { color: var(--c-text-mute); font-size: .9rem; }
.mapa-sidebar__count { margin-bottom: .5rem; }
.mapa-sidebar__img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover;
  border-radius: 10px; margin-bottom: .75rem;
}
.mapa-sidebar__meta { font-size: .85rem; color: var(--c-text-dim); }
.mapa-sidebar__price {
  font-size: 1.2rem; font-weight: 800; color: var(--c-primary);
  margin: .35rem 0;
}
.mapa-sidebar__loc, .mapa-sidebar__area { font-size: .88rem; color: var(--c-text-dim); }
.mapa-detalle-note {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--c-text-dim);
  margin-top: .5rem;
}
.detalle-utm {
  margin-top: .5rem;
  padding: .35rem .6rem;
  font-size: .76rem;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .55rem;
  background: #fff8f0;
  border-color: #ffe4cc;
}
.detalle-utm strong {
  color: var(--c-primary-2);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.detalle-utm span { color: var(--c-text-dim); }
.detalle-utm__area {
  margin-left: auto;
  font-weight: 700;
  color: #c2410c;
}
.detalle-ubicacion-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .45rem .75rem;
  margin-bottom: .25rem;
}
.detalle-ubicacion-head h2 {
  margin: 0;
}
.detalle-map-opacity {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .76rem;
  color: var(--c-text-dim);
  white-space: nowrap;
  padding: .25rem .45rem;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  background: #fafafa;
  cursor: default;
}
.detalle-map-opacity input[type="range"] {
  width: 72px;
  height: 4px;
  margin: 0;
  cursor: pointer;
  accent-color: #e85d04;
}
.detalle-map-opacity #detalleMapFillOpacityVal {
  min-width: 2.2rem;
  font-weight: 700;
  color: #c2410c;
  font-size: .72rem;
}
.leaflet-container { font-family: var(--font-body); }
.mapa-popup-wrap .leaflet-popup-content { margin: 10px 12px; }
.mapa-popup__img {
  width: 100%; height: 100px; object-fit: cover;
  border-radius: 8px; margin-bottom: .5rem;
}
.mapa-popup__chip {
  display: inline-block; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; padding: .15rem .5rem; border-radius: 999px;
  margin-bottom: .35rem;
}
.mapa-popup__chip--venta { background: #fff5eb; color: #ea580c; }
.mapa-popup__chip--alquiler { background: #e0f2fe; color: #0369a1; }
.mapa-popup__title { display: block; font-size: .95rem; margin-bottom: .25rem; color: #111827; }
.mapa-popup__loc { font-size: .82rem; color: #6b7280; margin: 0 0 .35rem; }
.mapa-popup__price { font-weight: 800; color: var(--c-primary); margin: 0 0 .6rem; }
.mapa-popup__btn { width: 100%; justify-content: center; }
.btn--small { padding: .45rem .9rem; font-size: .85rem; }

/* ===== Responsive ======================================================== */
@media (max-width: 1000px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { height: 340px; max-width: 380px; margin: 0 auto; }
  .search-fields--clean { grid-template-columns: 1fr 1fr; }
  .search-fields--clean .field--grow { grid-column: 1 / -1; }
  .search-fields--clean .search-submit { grid-column: 1 / -1; width: 100%; }
  .info-cards { grid-template-columns: 1fr; }
  .detalle__grid { grid-template-columns: 1fr; }
  .page-detalle .card--ubicacion-full .detalle-mapa-wrap {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .mapa-layout { grid-template-columns: 1fr; }
  .mapa-viewport.is-split { grid-template-columns: 1fr; }
  .mapa-viewport.is-split .mapa-streetview { min-height: 280px; }
  .mapa-canvas { height: 420px; }
  .mapa-fs {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
  }
  .mapa-fs__sidebar {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 88vw);
    z-index: 14;
    transform: translateX(0);
  }
  .mapa-fs__sidebar.is-collapsed {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
  }
  .mapa-fs__sidebar-toggle { display: block; }
  .mapa-fs__setup { right: 12px; top: 48px; }
  .mapa-fs__filters { width: calc(100% - 80px); }
}
@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; margin-left: auto; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column;
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff;
    padding: 1rem 1.5rem; gap: .5rem;
    border-bottom: 1px solid var(--c-border);
  }
  .nav.is-open .nav__cta { display: flex; flex-direction: column; gap: .5rem;
    position: absolute; left: 0; right: 0; top: calc(100% + 200px); padding: 0 1.5rem 1rem;
    background: #fff; }
  .search-fields { grid-template-columns: 1fr 1fr; }
  .search-fields .field--grow { grid-column: 1 / -1; }
  .search-fields .search-submit { grid-column: 1 / -1; }
  .form--grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .flash-stack { right: .8rem; left: .8rem; max-width: none; }
  .hero__metrics { gap: 1.5rem; flex-wrap: wrap; }
  .detalle__head { flex-direction: column; }
  .detalle__price { text-align: left; }
  .hero--fullscreen .hero__center {
    padding-top: 4.5rem;
    justify-content: flex-start;
  }
  .hero--cover .hero__orbit .cat-orbit-layout {
    padding: 0 1rem;
  }
  .hero--cover .hero__center { padding: 2.5rem 1.25rem 1rem; }
  .hero--cover h1 { font-size: clamp(1.75rem, 6vw, 2.5rem); }
  .search-fields--clean { grid-template-columns: 1fr; }
  .search-fields--clean .search-submit { width: 100%; }
  .info-cards { grid-template-columns: 1fr; }
}

/* ===== Secciones claras & Home =========================================== */
.section--clean { background: transparent; }
.section--clean.section--alt {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
}
.section--clean .section__head h2 { color: #111827; font-weight: 800; }

/* Hero con imagen de fondo — pantalla completa */
.hero--cover {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  overflow: hidden;
}
.hero--cover.hero--fullscreen {
  min-height: 100dvh;
  min-height: 100vh;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  overflow: visible;
}
.hero--cover .hero__bg {
  position: absolute;
  inset: 0;
  background:
    url('../img/hero-fondo.jpg')
    center / cover no-repeat;
  transform: scale(1.01);
  filter: contrast(1.08) saturate(1.12) brightness(1.03);
  image-rendering: -webkit-optimize-contrast;
  backface-visibility: hidden;
}
.hero--cover .hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.02) 0%,
      rgba(15, 23, 42, 0.05) 30%,
      rgba(15, 23, 42, 0.12) 55%,
      rgba(15, 23, 42, 0.28) 100%
    );
}
.hero--cover .hero__center {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 1.5rem;
  text-align: center;
}
.hero--fullscreen .hero__center {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(5rem, 12vh, 7rem);
  padding-bottom: 1rem;
}
.hero--cover .hero__orbit {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: auto;
  padding: 0 0 clamp(1.5rem, 4vh, 2.5rem);
  background: transparent;
}
.hero--cover .hero__orbit .cat-orbit-layout {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  padding: 0 1.5rem;
  box-shadow: none;
}
.hero--cover .hero__orbit .cat-orbit-layout__copy h2 {
  color: #fff;
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.55),
    0 4px 24px rgba(0, 0, 0, 0.35);
}
.hero--cover .hero__orbit .cat-orbit-layout__copy p {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}
.hero--cover .hero__orbit .cat-orbit-layout__copy .hl-clean {
  color: #ffb347;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.badge-2050--hero {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  color: rgba(255, 255, 255, 0.92);
  padding: 0;
  letter-spacing: .12em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}
.hero--cover .hero__orbit .cat-orbit-wrap {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
}
.hero--cover .hero__orbit .cat-orbit__item {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.hero--cover .hero__orbit .cat-orbit__bubble {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.hero--cover .hero__orbit .cat-orbit__ring {
  border-color: rgba(255, 255, 255, 0.45);
}
.hero--cover .hero__orbit .cat-orbit__name {
  color: #fff;
  font-weight: 600;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}
.hero--cover .hero__orbit .cat-orbit__count {
  color: rgba(255, 255, 255, 0.82);
}
.hero--cover h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 800;
  margin-bottom: 1.75rem;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.45),
    0 8px 32px rgba(0, 0, 0, 0.35);
  letter-spacing: -0.03em;
}
.hero--cover .search-card--clean {
  background: rgba(255, 255, 255, 0.28) !important;
  border: 1px solid rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(40px) saturate(1.7) !important;
  -webkit-backdrop-filter: blur(40px) saturate(1.7) !important;
  box-shadow:
    0 20px 56px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
}
.hero--cover .search-card--clean .field select,
.hero--cover .search-card--clean .field input {
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.62);
}
.hl-clean {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: #ffb347;
}

/* Buscador glass — transparente sobre hero */
.search-card--clean {
  background: var(--glass-bg-strong) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur) !important;
  -webkit-backdrop-filter: var(--glass-blur) !important;
  max-width: 100%;
  padding: 0;
  overflow: visible;
  text-align: left;
  position: relative;
  z-index: 30;
}
.search-tabs--clean {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0 1rem;
  border-bottom: 1px solid var(--glass-border-2);
}
.search-tabs--clean .search-tab span {
  border-radius: 0;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: #6b7280;
  font-weight: 600;
  padding: 1rem 1.25rem;
  margin-bottom: -1px;
  box-shadow: none;
}
.search-tabs--clean .search-tab input:checked + span {
  background: none;
  color: #ff6b00;
  border-bottom-color: #ff6b00;
  box-shadow: none;
}
.search-fields--clean {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: .75rem;
  align-items: center;
  padding: 1.1rem 1.25rem 1.25rem;
  overflow: visible;
  position: relative;
  z-index: 2;
}
.search-card--clean .field--grow {
  position: relative;
  z-index: 40;
}
.search-card--clean .field select,
.search-card--clean .field input {
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border: 1px solid var(--glass-border-2);
  color: #1f2937;
  border-radius: 10px;
  padding: .72rem .9rem;
  font-size: .95rem;
  height: 48px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.search-card--clean .field select:focus,
.search-card--clean .field input:focus {
  border-color: rgba(255, 107, 0, 0.55);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.search-card--clean .field select option {
  background: #fff;
  color: #1f2937;
}
.search-card--clean .search-submit {
  height: 48px;
  padding: 0 1.75rem;
  border-radius: 8px;
  font-weight: 700;
}

.section--gallery3d { padding-top: 2rem; padding-bottom: 2rem; }
.page-home .gallery3d-wrap { height: 460px; }
.gallery3d-tooltip {
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border-color: var(--glass-border);
  color: #374151;
  box-shadow: var(--glass-shadow);
}
.gallery3d-tooltip strong {
  background: none;
  color: #111827;
  -webkit-text-fill-color: #111827;
}
.gallery3d-tooltip span { background: #fff3e8; color: #ea580c; }
.gallery3d-tooltip em { color: #6b7280; }
.gallery3d-hint {
  background: #fff;
  border-color: #e5e7eb;
  color: #6b7280;
}

/* Orbita de categorias (home) */
.section--cat-orbit {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  overflow: hidden;
}
.hero--cover .section--cat-orbit {
  padding-top: 0;
  padding-bottom: 0;
}
.cat-orbit-layout {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.15fr);
  gap: 2.5rem;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.cat-orbit-layout__copy h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.25rem);
  color: #111827;
  margin-bottom: .75rem;
}
.cat-orbit-layout__copy p {
  color: var(--c-text-dim);
  margin-bottom: 1.35rem;
  max-width: 400px;
  line-height: 1.6;
}
.cat-orbit-wrap {
  --orbit-r: min(200px, 34vw);
  --orbit-dur: 38s;
  position: relative;
  width: min(480px, 100%);
  height: min(480px, 92vw);
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(160deg, #fff9f4 0%, #fff 42%, #fff5eb 100%);
  border: 1px solid #ffe8d4;
  box-shadow: 0 24px 60px rgba(255, 107, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}
.cat-orbit__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cat-orbit__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(255, 122, 26, 0.28);
  animation: cat-orbit-spin 48s linear infinite;
}
.cat-orbit__ring--outer { inset: 6%; }
.cat-orbit__ring--inner {
  inset: 22%;
  border-style: solid;
  border-color: rgba(255, 122, 26, 0.12);
  animation-duration: 32s;
  animation-direction: reverse;
}
.cat-orbit__glow {
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 140, 50, 0.2) 0%, transparent 70%);
  animation: cat-orbit-pulse 4s ease-in-out infinite alternate;
}
@keyframes cat-orbit-spin { to { transform: rotate(360deg); } }
@keyframes cat-orbit-pulse {
  from { opacity: 0.55; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1.04); }
}
.cat-orbit__hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: var(--grad-fire);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 12px 32px rgba(232, 93, 4, 0.45);
  border: 3px solid #fff;
}
.cat-orbit__hub-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.cat-orbit__hub-sub {
  font-size: .72rem;
  opacity: 0.92;
  margin-top: .1rem;
}
.cat-orbit__stage {
  position: absolute;
  inset: 0;
  z-index: 3;
}
.cat-orbit-wrap:hover .cat-orbit__item {
  animation-play-state: paused;
}
.cat-orbit-wrap:hover .cat-orbit__ring {
  animation-play-state: paused;
}
.cat-orbit__item {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92px;
  margin-left: -46px;
  margin-top: -46px;
  text-align: center;
  color: #111827;
  text-decoration: none;
  animation: cat-orbit-path var(--orbit-dur) linear infinite;
  animation-delay: calc(var(--i) * var(--orbit-dur) / var(--n) * -1);
  will-change: transform;
}
@keyframes cat-orbit-path {
  from { transform: rotate(0deg) translateY(calc(-1 * var(--orbit-r))) rotate(0deg); }
  to { transform: rotate(360deg) translateY(calc(-1 * var(--orbit-r))) rotate(-360deg); }
}
.cat-orbit__bubble {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto .35rem;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #ffd4a8;
  color: #e85d04;
  box-shadow: 0 8px 22px rgba(255, 107, 0, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.cat-orbit__svg { width: 30px; height: 30px; }
.cat-orbit__name {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.2;
  max-width: 88px;
  margin: 0 auto;
}
.cat-orbit__count {
  display: block;
  font-size: .68rem;
  color: var(--c-text-dim);
  margin-top: .12rem;
}
.cat-orbit__item:hover,
.cat-orbit__item:focus-visible {
  color: #111827;
  z-index: 5;
}
.cat-orbit__item:hover .cat-orbit__bubble,
.cat-orbit__item:focus-visible .cat-orbit__bubble {
  transform: scale(1.12);
  background: linear-gradient(145deg, #ff8c2a 0%, #e85d04 100%);
  border-color: #fff;
  color: #fff;
  box-shadow: 0 14px 28px rgba(232, 93, 4, 0.45);
}
@media (max-width: 900px) {
  .cat-orbit-layout { grid-template-columns: 1fr; text-align: center; }
  .cat-orbit-layout__copy p { margin-left: auto; margin-right: auto; }
}
@media (max-width: 720px) {
  .cat-orbit-wrap {
    --orbit-r: 0;
    height: auto;
    border-radius: 20px;
    padding: 1.25rem 1rem 1.5rem;
    background: #fff;
  }
  .cat-orbit__decor,
  .cat-orbit__hub { display: none; }
  .cat-orbit__stage {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .85rem 0.5rem;
  }
  .cat-orbit__item {
    position: static;
    width: auto;
    margin: 0;
    animation: none;
    transform: none !important;
  }
  .cat-orbit__bubble { width: 64px; height: 64px; }
  .cat-orbit__svg { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .cat-orbit__item,
  .cat-orbit__ring,
  .cat-orbit__glow { animation: none !important; }
  .cat-orbit-wrap { height: auto; border-radius: 20px; padding: 1rem; }
  .cat-orbit__decor { display: none; }
  .cat-orbit__stage {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  .cat-orbit__item {
    position: static;
    width: 100px;
    margin: 0;
    transform: none !important;
  }
}

/* Tarjetas informativas */
.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.info-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1.35rem 1.4rem;
  box-shadow: var(--glass-shadow);
  transition: box-shadow .2s ease, transform .2s ease;
}
.info-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.info-card h3 {
  margin: 0 0 .35rem;
  font-size: 1.05rem;
  color: #111827;
  font-weight: 700;
}
.info-card p {
  margin: 0;
  font-size: .9rem;
  color: #6b7280;
  line-height: 1.5;
}
.info-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 245, 235, 0.45) center / 28px no-repeat;
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border: 1px solid rgba(255, 228, 204, 0.65);
}
.info-card__icon--doc {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ff6b00' stroke-width='1.8'%3E%3Cpath d='M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z'/%3E%3C/svg%3E");
}
.info-card__icon--rocket {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ff6b00' stroke-width='1.8'%3E%3Cpath d='M13 10V3L4 14h7v7l9-11h-7z'/%3E%3C/svg%3E");
}
.info-card__icon--agent {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ff6b00' stroke-width='1.8'%3E%3Cpath d='M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0z'/%3E%3C/svg%3E");
}
.page-home .section--info { padding-top: 0; }

/* CTA limpio */
.cta-banner--clean {
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 3rem 2rem;
  box-shadow: var(--glass-shadow);
}
.cta-banner--clean h2 { color: #111827; }
.cta-banner--clean p { color: #6b7280; }

/* ===== Glass futurista + animaciones globales ============================== */
.card,
.filters,
.mapa-embed,
.mapa-sidebar,
.action-card,
.info-card,
.mis-anuncio,
.empty-state,
.cta-banner--clean,
.search-card--clean,
.auth__card,
.lotes-resumen,
.detalle-utm,
.publicar-mapa--pro,
.gallery3d-tooltip,
.fav-compare-bar,
.mph-ac-list,
.pager__btn,
.share-url-input,
.videos-edit__item {
  background: var(--glass-bg) !important;
  backdrop-filter: var(--glass-blur) !important;
  -webkit-backdrop-filter: var(--glass-blur) !important;
  border-color: var(--glass-border) !important;
  box-shadow: var(--glass-shadow);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}
.card:hover,
.action-card:hover,
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.fx-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.fx-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.fx-text-in {
  animation: fxReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
main > .section,
main > section {
  animation: fxFadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.btn {
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .bg-grid,
  .bg-glow,
  .bg-orb,
  #bg-canvas { animation: none !important; }
  .fx-reveal,
  main > .section,
  main > section,
  .nav { animation: none !important; transition: none !important; }
  .card:hover,
  .card-prop:hover,
  .action-card:hover { transform: none; }
  .card-prop:hover .card-prop__media img { transform: none; }
}

/* Legal + cookies */
.legal__body h1 { margin-bottom: .35rem; }
.legal__updated { color: var(--c-text-dim); font-size: .9rem; margin-bottom: 1.5rem; }
.legal__body h2 {
  font-size: 1.05rem;
  margin: 1.35rem 0 .5rem;
  color: #111827;
}
.legal__body p,
.legal__body li {
  color: var(--c-text-dim);
  line-height: 1.65;
  font-size: .95rem;
}
.legal__body ul { margin: .5rem 0 1rem 1.1rem; }
.legal__body a { color: var(--c-primary); }

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.42);
  border-top: 1px solid var(--glass-border);
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.cookie-banner__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.cookie-banner p {
  margin: 0;
  font-size: .9rem;
  color: #374151;
  max-width: 720px;
  line-height: 1.5;
}
.cookie-banner__actions {
  display: flex;
  gap: .5rem;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .cookie-banner__inner { flex-direction: column; align-items: stretch; }
  .cookie-banner__actions { justify-content: stretch; }
  .cookie-banner__actions .btn { flex: 1; }
}

/* Autocompletado — desplegable por regiones */
.mph-ac-wrap {
  position: relative;
  z-index: 50;
}
.mph-ac-list {
  margin: 0;
  padding: .35rem 0;
  list-style: none;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  box-shadow:
    0 20px 56px rgba(15, 23, 42, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.mph-ac-list.is-open {
  display: block;
}
.mph-ac-group__title {
  padding: .55rem .9rem .3rem;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--c-primary);
  background: rgba(255, 247, 237, 0.85);
  border-bottom: 1px solid rgba(255, 180, 100, 0.35);
  position: sticky;
  top: 0;
  z-index: 1;
  list-style: none;
}
.mph-ac-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .6rem .9rem;
  font-size: .9rem;
  cursor: pointer;
  color: #1f2937;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}
.mph-ac-item:last-child { border-bottom: none; }
.mph-ac-item:hover,
.mph-ac-item:focus {
  background: rgba(255, 247, 237, 0.75);
  color: var(--c-primary-2);
}
.mph-ac-item__main {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mph-ac-item__tag {
  flex-shrink: 0;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #9ca3af;
  padding: .15rem .45rem;
  border-radius: 6px;
  background: rgba(243, 244, 246, 0.9);
}
.mph-ac-item--ciudad .mph-ac-item__tag { color: #ea580c; background: #fff7ed; }
.mph-ac-item--distrito .mph-ac-item__tag { color: #0369a1; background: #f0f9ff; }
.field--checks { display: flex; flex-direction: column; gap: .35rem; justify-content: flex-end; }
.check-inline { display: flex; align-items: center; gap: .4rem; font-size: .88rem; white-space: nowrap; }
.check-block { display: flex; align-items: center; gap: .5rem; }
.perfil-preview { margin: .5rem 0 1rem; }
.perfil-preview__img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.fav-compare-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding: .75rem 1rem;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.fav-card-wrap { position: relative; }
.fav-compare-check {
  position: absolute;
  top: .5rem;
  right: .5rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .25rem;
  padding: .2rem .45rem;
  font-size: .75rem;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border-radius: 8px;
  border: 1px solid var(--glass-border);
}
.compare-table-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.compare-table th, .compare-table td { padding: .65rem .75rem; border-bottom: 1px solid #e5e7eb; text-align: left; vertical-align: top; }
.compare-table thead th { font-size: .85rem; }
.compare-back { margin-top: 1.5rem; }
.landing-terrenos__intro { color: var(--c-muted, #64748b); max-width: 52ch; }
.landing-terrenos__nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.25rem; }
.landing-terrenos__nav .chip.is-active { background: #ff6b00; color: #fff; border-color: #ff6b00; }
.section-related { margin-top: 2rem; }
.grid-props--compact .card-prop { font-size: .95rem; }
.share-link__qr { display: flex; align-items: center; gap: .75rem; margin: .65rem 0; }
.share-link__qr img { border-radius: 8px; border: 1px solid #e5e7eb; }
.share-link__qr-hint { font-size: .8rem; color: var(--c-muted, #64748b); max-width: 14ch; }
.continue-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .65rem 1rem;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-border);
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  pointer-events: auto;
}
.continue-banner__link {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  flex: 1;
}
.continue-banner__img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.continue-banner__text small { display: block; font-size: .72rem; color: #64748b; text-transform: uppercase; letter-spacing: .04em; }
.continue-banner__text strong { display: block; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: min(60vw, 320px); }
.continue-banner__close {
  flex-shrink: 0;
  position: relative;
  z-index: 3;
  border: none;
  background: rgba(255, 255, 255, 0.75);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: #334155;
  padding: .35rem .55rem;
  border-radius: 8px;
  min-width: 36px;
  min-height: 36px;
}
.continue-banner__close:hover {
  background: #fff;
  color: #b91c1c;
}

/* Videos embebidos (YouTube, TikTok, Facebook) */
.publicar-videos { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid #e5e7eb; }
.publicar-videos h2 { font-size: 1.05rem; margin: 0 0 .35rem; }
.videos-edit__list { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .75rem; }
.videos-edit__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  padding: .5rem .65rem;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  font-size: .88rem;
}
.videos-edit__link { flex: 1; min-width: 0; color: #374151; word-break: break-all; }
.videos-edit__del { display: flex; align-items: center; gap: .25rem; font-size: .82rem; color: #b91c1c; }
/* ===== Videos — glassmorphism (tarjetas + lightbox TikTok) ===== */
.detalle-videos--glass {
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.35rem;
  border-radius: 20px;
  background: var(--glass-bg) !important;
  backdrop-filter: var(--glass-blur) !important;
  -webkit-backdrop-filter: var(--glass-blur) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--glass-shadow);
}
.detalle-videos__head h2 { margin: 0 0 .25rem; font-size: 1.1rem; }
.detalle-videos__hint {
  margin: 0 0 1rem;
  font-size: .85rem;
  color: var(--c-muted, #64748b);
}
.video-cards--glass {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
}
.video-card--glass {
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.video-card__glass {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}
.video-card--glass .video-card__media {
  position: relative;
  width: 140px;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    0 12px 40px rgba(15, 23, 42, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform .25s ease, box-shadow .25s ease;
}
.video-card--youtube .video-card__media,
.video-card--facebook .video-card__media {
  width: 200px;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
}
.video-card--glass:hover .video-card__media,
.video-card--glass:focus-visible .video-card__media {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
}
.video-card--glass:focus-visible { outline: none; }
.video-card--glass:focus-visible .video-card__media {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 3px;
}
.video-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(165deg, #1a2744 0%, #2d1f3d 45%, #4a2c1a 100%);
}
.video-card--tiktok .video-card__placeholder {
  background: linear-gradient(165deg, #0f172a 0%, #1e3a5f 40%, #c2410c 100%);
}
.video-card--facebook .video-card__placeholder {
  background: linear-gradient(165deg, #1e3a8a 0%, #0f172a 100%);
}
.video-card__ring {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 24px rgba(255, 180, 100, 0.25);
  pointer-events: none;
}
.video-card--youtube .video-card__ring,
.video-card--facebook .video-card__ring { display: none; }
.video-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(10, 15, 30, 0.2);
}
.video-card__play svg {
  width: 40px;
  height: 40px;
  padding: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.video-card__badge {
  position: absolute;
  left: .5rem;
  top: .5rem;
  padding: .18rem .45rem;
  font-size: .62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.video-card__cta {
  font-size: .78rem;
  color: #64748b;
  letter-spacing: .02em;
}
.video-card--glass:hover .video-card__cta { color: #334155; }

/* Botones glass reutilizables */
.video-glass-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-width: 48px;
  height: 48px;
  padding: 0 .85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  color: #fff;
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.video-glass-btn:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.72);
  transform: translateY(-1px);
  color: #fff;
}
.video-glass-btn__label { white-space: nowrap; }

/* Lightbox glass — fondo atardecer + panel frosted */
body.video-lightbox-open { overflow: hidden; }
.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 1rem;
  box-sizing: border-box;
}
.video-lightbox[hidden] { display: none !important; }
.video-lightbox__backdrop {
  position: fixed;
  inset: 0;
  background: #0a0a12;
}
.video-lightbox__ambient {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(234, 88, 12, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 20% 30%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 85% 20%, rgba(168, 85, 247, 0.15) 0%, transparent 45%),
    linear-gradient(180deg, #0f172a 0%, #1a1028 40%, #2d1810 100%);
  filter: blur(0);
}
.video-lightbox__orb {
  position: fixed;
  bottom: 8%;
  right: 12%;
  width: 120px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(251, 146, 60, 0.5) 0%, transparent 70%);
  filter: blur(28px);
  pointer-events: none;
  opacity: .85;
}
.video-lightbox--tiktok .video-lightbox__orb {
  bottom: 15%;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: 200px;
  height: 80px;
}
.video-lightbox__shell {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-height: 96dvh;
}
.video-lightbox__dialog {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}
.video-lightbox__glass-panel {
  padding: .85rem .85rem 1rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(32px) saturate(1.45);
  -webkit-backdrop-filter: blur(32px) saturate(1.45);
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.video-lightbox__meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .65rem;
  padding: 0 .15rem;
}
.video-lightbox__pill {
  padding: .22rem .55rem;
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}
.video-lightbox__user {
  font-size: .82rem;
  color: rgba(255, 255, 255, 0.75);
}
.video-lightbox__frame {
  position: relative;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.video-lightbox__dialog--youtube .video-lightbox__frame,
.video-lightbox__dialog--facebook .video-lightbox__frame {
  width: min(92vw, calc(88dvh * 16 / 9));
  max-width: 1200px;
  aspect-ratio: 16 / 9;
}
.video-lightbox__dialog--tiktok .video-lightbox__glass-panel {
  padding: 1rem 1rem 1.1rem;
  border-radius: 32px;
}
.video-lightbox__dialog--tiktok .video-lightbox__frame {
  width: min(78vw, 380px);
  aspect-ratio: 9 / 16;
  max-height: min(72dvh, 680px);
}
.video-lightbox__dialog--tiktok .video-lightbox__frame iframe,
.video-lightbox__iframe--tiktok {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
  background: #000;
}
.video-lightbox__dialog--youtube .video-lightbox__frame iframe,
.video-lightbox__dialog--facebook .video-lightbox__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.video-lightbox__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: .5rem .75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.video-lightbox__nav .video-glass-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: none;
  min-width: 44px;
  height: 44px;
  padding: 0 .7rem;
}
.video-lightbox__nav .video-glass-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.video-lightbox__external[hidden] { display: none !important; }
@media (max-width: 480px) {
  .video-card--glass .video-card__media { width: 120px; }
  .video-card--youtube .video-card__media,
  .video-card--facebook .video-card__media { width: 160px; }
  .video-lightbox__dialog--tiktok .video-lightbox__frame {
    width: min(88vw, 340px);
    max-height: 65dvh;
  }
  .video-glass-btn__label { display: none; }
  .video-lightbox__external { padding: 0; min-width: 44px; }
}
