:root {
  --bg: #0b0b0c;
  --bg-2: #141416;
  --ink: #f4f1ec;
  --muted: #a8a29a;
  --red: #e10600;
  --red-2: #ff2a22;
  --line: rgba(244, 241, 236, 0.12);
  --card: #1a1a1d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font: "Manrope", system-ui, sans-serif;
  --display: "Archivo Black", Impact, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
}

a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; }

.demo-banner {
  position: sticky;
  top: 0;
  z-index: 1100;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.25rem;
  background: var(--red);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}
.demo-banner button {
  border: 1px solid rgba(255,255,255,0.55);
  background: transparent;
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: rgba(11,11,12,0.92);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 42px;
  z-index: 1000;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 12px;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 8px 22px rgba(0,0,0,0.28);
}
.brand-logo {
  height: 58px;
  width: auto;
  max-width: min(320px, 72vw);
  display: block;
  object-fit: contain;
  background: #fff;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.auth-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.35rem;
}
.auth-actions[hidden],
.user-chip[hidden] {
  display: none !important;
}
.btn-login,
.btn-signup,
.btn-logout {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-weight: 800;
  font-size: 0.85rem;
}
.btn-login {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
}
.btn-login:hover { border-color: #fff; }
.btn-signup {
  background: #fff;
  color: #111;
}
.btn-signup:hover { background: #f3f3f3; }
.user-chip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: 0.35rem;
  padding: 0.25rem 0.35rem 0.25rem 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
}
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}
.user-name {
  font-size: 0.85rem;
  font-weight: 700;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-logout {
  background: transparent;
  color: var(--muted);
  padding: 0.35rem 0.65rem;
}
.btn-logout:hover { color: #fff; }
.nav-link {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  border-radius: 999px;
}
.nav-link.is-active,
.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}
.nav-cta {
  margin-left: 0.35rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--red);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
}

.hero {
  position: relative;
  min-height: min(78vh, 680px);
  display: grid;
  align-items: end;
  padding: 2rem 1.5rem 3.2rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,11,12,0.2) 0%, rgba(11,11,12,0.85) 65%, #0b0b0c 100%),
    linear-gradient(120deg, rgba(225,6,0,0.38), transparent 48%),
    radial-gradient(ellipse at 70% 20%, rgba(255,42,34,0.28), transparent 50%),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
}
.hero-content { position: relative; max-width: 820px; }
.hero-kicker {
  margin: 0 0 0.75rem;
  color: #ffb4ae;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 700;
}
.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.8rem, 10vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.hero h1 span { color: var(--red-2); }
.hero-sub {
  max-width: 36rem;
  margin: 1.1rem 0 1.5rem;
  color: #d6d3cd;
  font-size: 1.05rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-2); }
.btn-ghost {
  border-color: rgba(255,255,255,0.28);
  background: rgba(0,0,0,0.25);
  color: #fff;
}
.btn-wa {
  background: #19a841;
  color: #fff;
  width: 100%;
  margin-top: 0.75rem;
}
.btn-sm { padding: 0.55rem 0.9rem; font-size: 0.85rem; }

.cities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem 0;
}
.city-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(225,6,0,0.2), transparent 55%),
    var(--bg-2);
  color: #fff;
  min-height: 110px;
  padding: 1.25rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.city-card:hover {
  border-color: rgba(225,6,0,0.7);
  transform: translateY(-2px);
}
.city-label {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
}
.city-card strong {
  font-family: var(--display);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
}

.map-section {
  position: relative;
  margin: 1.5rem 1.5rem 0;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.map-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.map-head h2 {
  margin: 0 0 0.25rem;
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 1.35rem;
}
.map-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
#map {
  height: min(62vh, 520px);
  width: 100%;
  background: #1c1c1f;
  z-index: 1;
}
.map-panel {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 500;
  width: min(340px, calc(100% - 2rem));
  background: rgba(18,18,20,0.96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 0.85rem;
  backdrop-filter: blur(8px);
}
.map-panel img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  margin-bottom: 0.7rem;
}
.map-panel h3 {
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
  line-height: 1.25;
}
.map-panel .price {
  font-family: var(--display);
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}
.map-panel .meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.map-panel-actions {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.7rem;
}
.map-panel-actions .btn { flex: 1; }

.leaflet-container { font: inherit; background: #1c1c1f; }
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: #151518;
  color: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.pin-icon {
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  width: 28px !important;
  height: 28px !important;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  border: 2px solid #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}
.pin-icon.is-venta { background: #111; }
.pin-icon.is-renta { background: #c27a00; }
.pin-icon.is-active {
  transform: scale(1.15);
  background: var(--red-2);
}

.filters { padding: 1.5rem 1.5rem 0.5rem; }
.filters-bar {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.filters-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: end;
}
.filters-bar label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.filters-bar select,
.filters-bar input {
  min-width: 140px;
  background: #0f0f11;
  color: #fff;
  border: 1px solid var(--line);
  padding: 0.65rem 0.7rem;
  border-radius: 10px;
}
.filters-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.chip {
  border: 1px solid var(--line);
  background: #0f0f11;
  color: #d6d3cd;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.chip:hover { border-color: rgba(255,255,255,0.3); }
.chip.is-on {
  background: rgba(225,6,0,0.18);
  border-color: var(--red);
  color: #fff;
}
.filters-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.filters-count {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}
.mini-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.7rem;
}
.mini-chip {
  font-size: 0.7rem;
  font-weight: 700;
  color: #ffb4ae;
  border: 1px solid rgba(225,6,0,0.35);
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1rem 1.5rem 1rem;
}

.pager {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  padding: 0 1.5rem 2rem;
}
.pager[hidden] { display: none !important; }
.pager-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}
.pager-meta strong { color: #fff; }
.pager-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  align-items: center;
}
.page-btn {
  min-width: 40px;
  border: 1px solid var(--line);
  background: #121214;
  color: #fff;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
}
.page-btn:hover:not(:disabled) {
  border-color: rgba(255,255,255,0.35);
}
.page-btn.is-active {
  background: var(--red);
  border-color: var(--red);
}
.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.page-ellipsis {
  color: var(--muted);
  padding: 0 0.2rem;
  font-weight: 700;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover,
.card.is-active {
  transform: translateY(-3px);
  border-color: rgba(225,6,0,0.55);
}
.card-media {
  position: relative;
  aspect-ratio: 4/3;
  background: #222 center/cover no-repeat;
}
.card-badges {
  position: absolute;
  left: 0.7rem;
  top: 0.7rem;
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.badge {
  background: rgba(0,0,0,0.72);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.5rem;
}
.badge-op { background: var(--red); }
.badge-sold { background: #444; }
.card-body {
  padding: 1rem 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-price {
  margin: 0;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.card-title {
  margin: 0.35rem 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.card-actions {
  display: flex;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.85rem;
}
.card-actions .btn { flex: 1; }

.owners {
  margin: 0 1.5rem 1.25rem;
  padding: 2.5rem 1.5rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(225,6,0,0.22), transparent 50%),
    var(--bg-2);
}
.owners h2 {
  margin: 0 0 0.6rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1;
  text-transform: uppercase;
}
.owners p {
  max-width: 36rem;
  color: #d6d3cd;
  margin: 0 0 1.25rem;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}
.hero-social { margin-top: 1.15rem; }
.social-proof {
  margin: 0.85rem 0 0;
  color: #ffb4ae;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem 0.45rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}
.social-glyph {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.social-btn.is-ig .social-glyph,
.connect-card.is-ig .social-glyph {
  background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888);
}
.social-btn.is-ig .social-glyph::before,
.connect-card.is-ig .social-glyph::before { content: "IG"; }

.social-btn.is-tiktok .social-glyph,
.connect-card.is-tiktok .social-glyph {
  background: #111;
  box-shadow: inset 0 0 0 1px #25f4ee, 2px 0 0 #fe2c55;
}
.social-btn.is-tiktok .social-glyph::before,
.connect-card.is-tiktok .social-glyph::before { content: "TT"; }

.social-btn.is-fb .social-glyph,
.connect-card.is-fb .social-glyph {
  background: #1877f2;
}
.social-btn.is-fb .social-glyph::before,
.connect-card.is-fb .social-glyph::before { content: "f"; font-size: 1rem; font-family: Georgia, serif; }

.social-btn.is-wa .social-glyph,
.connect-card.is-wa .social-glyph {
  background: #25d366;
}
.social-btn.is-wa .social-glyph::before,
.connect-card.is-wa .social-glyph::before { content: "WA"; }

.social-btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.4); }
.social-btn.is-ig:hover { background: rgba(221,42,123,0.18); }
.social-btn.is-tiktok:hover { background: rgba(255,255,255,0.06); }
.social-btn.is-fb:hover { background: rgba(24,119,242,0.18); }
.social-btn.is-wa:hover { background: rgba(37,211,102,0.18); }
.foot-social .social-btn { padding: 0.35rem; }
.foot-social .social-btn span:not(.social-glyph) { display: none; }

.connect {
  margin: 0 1.5rem 2.5rem;
  padding: 2rem 1.25rem;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.connect-kicker {
  margin: 0 0 0.4rem;
  color: #ffb4ae;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.connect-head h2 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1;
}
.connect-head p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}
.connect-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.connect-card {
  display: grid;
  gap: 0.35rem;
  padding: 1.1rem 1rem;
  border: 1px solid var(--line);
  background: #0f0f11;
  min-height: 132px;
  transition: transform 0.15s, border-color 0.15s;
}
.connect-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.28);
}
.connect-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 0.15rem;
}
.connect-icon .social-glyph {
  width: 44px;
  height: 44px;
  font-size: 0.85rem;
}
.connect-card strong {
  font-size: 1.05rem;
}
.connect-card > span:last-child {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.foot {
  display: grid;
  gap: 1.25rem;
  padding: 1.75rem 1.5rem 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.foot-brand {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}
.foot-logo {
  height: 48px;
  width: auto;
  background: #fff;
  padding: 0.35rem 0.55rem;
  border-radius: 10px;
  object-fit: contain;
}
.foot strong { color: #fff; display: block; margin-bottom: 0.2rem; }
.foot-brand p { margin: 0; max-width: 36rem; }
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
}
.foot-links a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 1px;
}
.foot-links a:hover { border-bottom-color: var(--red); color: #fff; }

.agency-credit {
  margin-top: 0.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.agency-credit p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.agency-credit strong {
  margin: 0 !important;
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: 0.06em;
  background: linear-gradient(90deg, #ffffff 10%, #ff8a80 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 900px) {
  .connect-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .connect-grid { grid-template-columns: 1fr; }
  .hero-social .social-btn span:not(.social-glyph) { display: none; }
  .hero-social .social-btn { padding: 0.35rem; }
}

dialog {
  border: 1px solid var(--line);
  background: #121214;
  color: #fff;
  padding: 0;
  max-width: 480px;
  width: calc(100% - 2rem);
  box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(0,0,0,0.72); }

#pitch {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 620px;
  width: calc(100% - 1.5rem);
  max-height: min(92dvh, 92vh);
  margin: auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
#pitch::backdrop {
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(6px);
}
.pitch-modal {
  position: relative;
  overflow: visible;
  color: #fff;
  border: 1px solid rgba(244,241,236,0.14);
  background:
    radial-gradient(900px 280px at 12% -10%, rgba(225,6,0,0.28), transparent 55%),
    radial-gradient(700px 240px at 100% 0%, rgba(255,255,255,0.06), transparent 50%),
    linear-gradient(180deg, #17171a 0%, #0e0e10 100%);
  box-shadow: 0 28px 90px rgba(0,0,0,0.55);
  padding: 1.35rem 1.25rem 1.1rem;
}
.pitch-modal::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--red), #ff8a80 70%, transparent);
}
.pitch-close {
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}
.pitch-close:hover { color: #fff; }
.pitch-top {
  margin-bottom: 1rem;
  padding-right: 1.5rem;
}
.pitch-by {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.pitch-agency {
  margin: 0.15rem 0 0.2rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 4vw, 2.15rem);
  letter-spacing: 0.04em;
  line-height: 1;
  background: linear-gradient(90deg, #ffffff 8%, #ff8a80 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.pitch-for {
  margin: 0;
  font-size: 0.92rem;
  color: #d6d3cd;
  font-weight: 600;
}
.pitch-title {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.8vw, 1.45rem);
  line-height: 1.15;
  text-transform: none;
  letter-spacing: 0.01em;
}
.pitch-lead {
  margin: 0 0 1rem;
  color: #cfc9c0;
  font-size: 0.95rem;
  max-width: 54ch;
}
.pitch-section-label {
  margin: 0 0 0.45rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff8a80;
}
.pitch-vs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 1rem;
}
.pitch-vs > div {
  padding: 0.75rem 0.8rem 0.85rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
}
.pitch-vs > div.is-win {
  border-color: rgba(225,6,0,0.4);
  background: rgba(225,6,0,0.1);
}
.pitch-vs ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}
.pitch-vs li {
  position: relative;
  padding-left: 0.85rem;
  font-size: 0.8rem;
  line-height: 1.35;
  color: #cfc9c0;
}
.pitch-vs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--muted);
}
.pitch-vs .is-win li::before {
  background: var(--red);
}
.pitch-money {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  counter-reset: money;
  display: grid;
  gap: 0.4rem;
}
.pitch-money li {
  position: relative;
  counter-increment: money;
  display: grid;
  gap: 0.15rem;
  padding: 0.65rem 0.75rem 0.7rem 2.4rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
}
.pitch-money li::before {
  content: counter(money, decimal-leading-zero);
  position: absolute;
  left: 0.75rem;
  top: 0.85rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ff8a80;
}
.pitch-money strong {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}
.pitch-money span {
  font-size: 0.82rem;
  line-height: 1.4;
  color: #cfc9c0;
}
.pitch-money em {
  font-style: normal;
  color: #fff;
  font-weight: 700;
}
.pitch-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 1rem;
}
.pitch-split > div {
  padding: 0.75rem 0.8rem;
  background: rgba(225,6,0,0.08);
  border: 1px solid rgba(225,6,0,0.28);
}
.pitch-split-text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #d6d3cd;
}
.pitch-math {
  margin: 0 0 1rem;
  padding: 0.9rem 0.9rem 0.85rem;
  border: 1px solid rgba(225,6,0,0.35);
  background:
    linear-gradient(135deg, rgba(225,6,0,0.16), transparent 55%),
    rgba(255,255,255,0.03);
}
.pitch-math-title {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
}
.pitch-math-rows {
  list-style: none;
  margin: 0 0 0.55rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.pitch-math-rows li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 0.82rem;
  color: #cfc9c0;
  border-bottom: 1px dashed rgba(244,241,236,0.12);
  padding-bottom: 0.3rem;
}
.pitch-math-rows strong {
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
}
.pitch-math-total {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  margin: 0 0 0.4rem;
  font-size: 0.86rem;
  color: #d6d3cd;
}
.pitch-math-total strong {
  color: #ff8a80;
  font-size: 1.05rem;
  font-weight: 800;
  white-space: nowrap;
}
.pitch-math-note {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--muted);
}
.pitch-note {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
  border-left: 2px solid rgba(225,6,0,0.55);
  padding-left: 0.75rem;
}
.pitch-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: stretch;
  flex-wrap: wrap;
}
.pitch-actions .btn {
  flex: 1 1 auto;
  text-align: center;
  justify-content: center;
}
.pitch-wa {
  flex: 1.4 1 auto;
}
.pitch-foot {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}
.pitch-foot strong {
  color: #fff;
  letter-spacing: 0.06em;
}
@media (max-width: 560px) {
  .pitch-vs,
  .pitch-split { grid-template-columns: 1fr; }
  .pitch-actions { flex-direction: column; }
}

/* AUTH MODAL */
#auth-dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 420px;
  width: calc(100% - 1.5rem);
}
#auth-dialog::backdrop {
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(4px);
}
.auth-modal {
  position: relative;
  background:
    linear-gradient(165deg, rgba(225,6,0,0.16), transparent 42%),
    #121214;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.25rem 1.2rem;
  color: #fff;
}
.auth-close {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.auth-close:hover { color: #fff; }
.auth-brand {
  display: flex;
  justify-content: center;
  margin: 0.2rem 0 1rem;
}
.auth-logo-wrap {
  background: #ffffff;
  padding: 0.55rem 0.9rem;
}
.auth-brand .brand-logo {
  height: 64px;
  max-width: 300px;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  background: #0c0c0e;
  padding: 0.3rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
}
.auth-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.65rem 0.5rem;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}
.auth-tab.is-active {
  background: var(--red);
  color: #fff;
}
.auth-form {
  display: grid;
  gap: 0.75rem;
}
.auth-form[hidden] {
  display: none !important;
}
.auth-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"],
.auth-form input[type="tel"] {
  background: #0f0f11;
  border: 1px solid var(--line);
  color: #fff;
  border-radius: 12px;
  padding: 0.8rem 0.85rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  font-size: 0.95rem;
}
.auth-form input:focus {
  outline: 2px solid rgba(225,6,0,0.55);
  border-color: transparent;
}
.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.check {
  display: flex !important;
  align-items: center;
  gap: 0.45rem;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: #d6d3cd !important;
}
.check.grow { margin-top: 0.15rem; }
.check input { width: 16px; height: 16px; accent-color: var(--red); }
.linkish {
  border: 0;
  background: transparent;
  color: #ffb4ae;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0;
}
.linkish:hover { color: #fff; }
.auth-submit { width: 100%; margin-top: 0.25rem; }
.auth-divider {
  display: grid;
  place-items: center;
  margin: 1rem 0 0.85rem;
  position: relative;
}
.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}
.auth-divider span {
  position: relative;
  background: #121214;
  padding: 0 0.7rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}
.auth-social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.btn-social {
  border: 1px solid var(--line);
  background: #0f0f11;
  color: #fff;
  border-radius: 12px;
  padding: 0.75rem 0.6rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}
.btn-social:hover { border-color: rgba(255,255,255,0.35); }
.btn-social .g {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #ea4335;
  font-size: 0.75rem;
  font-weight: 900;
}
.btn-social .a {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #fff;
  display: inline-block;
}
.auth-note {
  margin: 0.9rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
}

/* DETAIL FICHA */
body.detail-open { overflow: hidden; }
.detail {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(6,6,7,0.92);
  overflow: auto;
  backdrop-filter: blur(8px);
}
.detail[hidden] { display: none !important; }
.detail-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1rem 2.5rem;
}
.detail-close {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  color: #fff;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-weight: 800;
  cursor: pointer;
  margin-bottom: 1rem;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
  background: #121214;
  border: 1px solid var(--line);
  padding: 1rem;
}
.detail-main-photo {
  aspect-ratio: 4/3;
  background: #222 center/cover no-repeat;
  border: 1px solid var(--line);
}
.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.4rem;
  margin-top: 0.55rem;
}
.thumb {
  aspect-ratio: 1;
  border: 1px solid transparent;
  background: #222 center/cover no-repeat;
  cursor: pointer;
  padding: 0;
}
.thumb.is-active,
.thumb:hover { border-color: var(--red); }
.detail-kicker {
  margin: 0 0 0.4rem;
  color: #ffb4ae;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.detail-info h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  line-height: 1.25;
}
.detail-price {
  margin: 0.7rem 0 1rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.detail-price small {
  font-family: var(--font);
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 700;
}
.detail-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.detail-specs div {
  background: #0f0f11;
  border: 1px solid var(--line);
  padding: 0.65rem 0.5rem;
  text-align: center;
}
.detail-specs strong {
  display: block;
  font-size: 1.05rem;
}
.detail-specs span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.detail-desc {
  color: #d6d3cd;
  margin: 0 0 1rem;
  font-size: 0.95rem;
}
.detail-h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.detail-feat {
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.detail-feat li {
  border: 1px solid rgba(225,6,0,0.35);
  color: #ffb4ae;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}
.detail-actions {
  display: grid;
  gap: 0.55rem;
}
.detail-note {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-thumbs { grid-template-columns: repeat(4, 1fr); }
}

.empty {
  grid-column: 1 / -1;
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
}

@media (max-width: 960px) {
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .top { top: 64px; }
  .demo-banner { flex-direction: column; align-items: flex-start; }
  .nav-cta { display: none; }
  .brand-logo { height: 40px; }
  .brand-logo-wrap { padding: 0.3rem 0.55rem; border-radius: 12px; }
  .cities { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .filters-count { margin-left: 0; width: auto; }
  .map-panel {
    position: static;
    width: 100%;
    border-top: 1px solid var(--line);
  }
  #map { height: 48vh; }
  .user-name { display: none; }
  .auth-actions { gap: 0.25rem; }
  .btn-login, .btn-signup { padding: 0.45rem 0.7rem; font-size: 0.78rem; }
}
