:root {
  --brand: #0b3a3c;
  --brand-dark: #082a2c;
  --gold: #c8a25c;
  --page-bg: #ececec;
  --card-bg: #ffffff;
  --text-main: #222222;
  --text-muted: #4a4a4a;
  --border: #e2e2e2;
  --radius: 6px;
  --font-body: 'Roboto', sans-serif;
  --font-head: 'Merriweather Sans', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--page-bg);
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

svg { fill: currentColor; }
svg[fill="none"] { fill: none; }   /* íconos de línea */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ================= HEADER ================= */
.site-header {
  background: var(--brand);
  color: #fff;
}

.topbar {
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}

.topbar-social {
  display: flex;
  gap: 16px;
}

.topbar-social a svg,
.footer-social a svg {
  width: 16px;
  height: 16px;
  color: #fff;
  opacity: 0.9;
  transition: opacity .15s;
}

.topbar-social a:hover svg,
.footer-social a:hover svg { opacity: 1; }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.topbar-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.topbar-phone svg { width: 13px; height: 13px; }

.topbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  white-space: nowrap;
}

.topbar-search svg { width: 14px; height: 14px; flex-shrink: 0; color: #fff; opacity: 0.9; }

.topbar-search input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  padding: 2px 0;
  width: 140px;
}

.topbar-search input::placeholder { color: rgba(255,255,255,0.75); }
.topbar-search input:focus { outline: none; border-bottom-color: var(--gold); }

.hero-searchbox {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  max-width: 560px;
  flex-wrap: wrap;
}

.hero-searchbox input {
  flex: 1;
  min-width: 200px;
  padding: 13px 16px;
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
}

.hero-searchbox input:focus { outline: 2px solid var(--gold); }

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.logo img {
  height: 60px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.main-nav a {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .15s, color .15s;
}

.main-nav a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.main-nav a.active {
  border-color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
}

/* ================= GALLERY ================= */
.gallery {
  padding-top: 24px;
}

.gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8.4;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 4px;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.35);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  opacity: 0;
  transition: opacity .15s, background .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main:hover .gallery-arrow { opacity: 1; }
.gallery-arrow:hover { background: rgba(0,0,0,0.6); }
.gallery-arrow.prev { left: 16px; }
.gallery-arrow.next { right: 16px; }

/* ================= LAYOUT ================= */
.property-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  padding-top: 24px;
  align-items: start;
}

.property-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* ---- summary card ---- */
.property-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.property-location svg { width: 12px; height: 12px; fill: var(--brand); }

.property-summary h1 {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--text-main);
}

.price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.badge {
  background: var(--brand);
  color: #fff;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 20px;
}

.badge.badge-inactive {
  background: #8a8a8a;
}

.status-banner {
  background: #fdf2e3;
  border: 1px solid #f0d9ad;
  color: #7a5b1e;
  font-size: 14px;
  padding: 14px 18px;
  border-radius: 10px;
  margin: 0 0 20px;
}

.price {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-main);
}

.stats-row {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat svg {
  width: 26px;
  height: 26px;
  fill: var(--brand);
  flex-shrink: 0;
}

.stat div { display: flex; flex-direction: column; }
.stat strong { font-size: 20px; line-height: 1.2; }
.stat span { font-size: 13px; color: var(--text-muted); }

/* ---- section titles ---- */
.section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 8px;
  padding-bottom: 10px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 3px;
  background: var(--gold);
}

.details-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  font-size: 14px;
}

.details-list .label { color: var(--text-muted); margin-right: 4px; }

.description {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-main);
}

.description p { margin: 0 0 14px; }
.description p:last-child { margin-bottom: 0; }

/* ================= LEGAL PAGES ================= */
.legal-page {
  max-width: 860px;
  padding: 32px 24px 64px;
}

.description-note {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-main);
  margin: 0 0 24px;
}

.legal-page .section-title { margin-top: 28px; }
.legal-page h2.section-title:first-of-type { margin-top: 0; }

.finance-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  font-size: 14px;
}

.finance-list li {
  padding: 4px 0;
}

.finance-list li::before {
  content: '·';
  margin-right: 8px;
  color: var(--gold);
  font-weight: 700;
}

.location-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-muted);
  margin: 14px 0 16px;
}

.location-line svg { width: 12px; height: 12px; fill: var(--brand); }

.map-embed {
  width: 100%;
  height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
}

/* ================= SIDEBAR ================= */
.property-sidebar {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card { padding: 24px; }

.agent-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.agent-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.agent-row strong { font-size: 15px; }

#contactForm {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#contactForm input,
#contactForm select,
#contactForm textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: #f5f5f5;
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-main);
  resize: none;
}

#contactForm input:focus,
#contactForm select:focus,
#contactForm textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity .15s, background .15s;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover { background: var(--brand-dark); }

.btn-outline {
  background: #fff;
  color: var(--brand);
  border-color: var(--border);
}

.btn-outline:hover { background: #f5f5f5; }

.btn-outline svg { width: 16px; height: 16px; fill: #25D366; }

.captcha-note {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 14px 0 0;
}

.captcha-note a { text-decoration: underline; }

/* ================= CONTACT PAGE ================= */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px 24px 56px;
  align-items: start;
}

.contact-info-list {
  list-style: none;
  margin: 16px 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.5;
}

.contact-info-list svg {
  width: 16px;
  height: 16px;
  fill: var(--brand);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-list a { color: var(--text-main); }
.contact-info-list a:hover { color: var(--brand); }

.contact-social {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-social svg { width: 16px; height: 16px; fill: #fff; }
.contact-social a:hover { background: var(--brand-dark); }

.contact-map { height: 260px; }

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.print-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
}

.print-link svg { width: 14px; height: 14px; }
.print-link:hover { color: var(--brand); }

/* ================= FEATURED ================= */
.featured {
  padding: 48px 24px 40px;
  text-align: center;
}

.featured-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
  margin: 0 0 32px;
}

.featured-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--gold);
}

.featured-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.featured-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  flex: 1;
  overflow: hidden;
}

.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  text-align: left;
  transition: transform .15s, box-shadow .15s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.feature-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.feature-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
}

.feature-body { padding: 16px; }

.feature-price {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.feature-name {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.feature-specs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
}

.carousel-arrow {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--brand);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  flex-shrink: 0;
}

.carousel-arrow:hover { background: var(--brand); color: #fff; }

/* ================= FOOTER ================= */
.site-footer {
  background: var(--brand);
  color: #fff;
  text-align: center;
  padding: 40px 24px 24px;
  font-size: 14px;
  line-height: 1.8;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-social a svg { width: 18px; height: 18px; }

.footer-title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.footer-powered {
  margin-top: 20px;
  font-size: 12px;
  opacity: 0.7;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .property-layout {
    grid-template-columns: 1fr;
  }
  .property-sidebar { position: static; }
  .featured-track { grid-template-columns: repeat(3, minmax(240px, 1fr)); overflow-x: auto; }
}

@media (max-width: 768px) {
  .topbar-inner { flex-wrap: wrap; gap: 10px; }
  .header-main { flex-wrap: wrap; }
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding-top: 12px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .details-list { grid-template-columns: 1fr; }
  .stats-row { gap: 24px; }
  .featured-track { grid-template-columns: repeat(3, minmax(220px, 1fr)); }
}

/* ================= HOME: HERO ================= */
.hero-wrap {
  padding-top: 24px;
  position: relative;
}

.hero {
  position: relative;
  border-radius: 40px;
  min-height: 480px;
  padding: 48px 80px 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  color: #fff;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.55) 100%);
}

.hero h1,
.hero-sub,
.hero-phone {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: 52px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 20px;
  max-width: 640px;
}

.hero-sub {
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-head);
  margin: 0 0 10px;
}

.hero-phone {
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-head);
  margin: 0;
}

.search-bar {
  position: relative;
  z-index: 2;
  margin: -56px auto 0;
  width: 90%;
  max-width: 900px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  padding: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.search-field {
  flex: 1;
  min-width: 180px;
}

.search-field label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.search-field select {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-main);
}

.search-submit {
  border-radius: 14px;
  padding: 16px 28px;
  white-space: nowrap;
}

/* ================= HOME: FEATURED GRID ================= */
.featured-home {
  padding: 56px 24px 40px;
  text-align: center;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.feature-tag-rent {
  background: var(--brand);
}

.feature-tag-inactive {
  background: #8a8a8a;
}

.listing-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  padding: 40px 0;
}

/* ================= HOME: WELCOME ================= */
.welcome {
  background: var(--brand);
  color: #fff;
  padding: 64px 0;
}

.welcome-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.welcome-text {
  position: relative;
}

.quote-mark {
  font-family: var(--font-head);
  font-size: 80px;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
  opacity: 0.8;
}

.welcome-text h2 {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 20px;
}

.welcome-text p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin: 0;
  max-width: 480px;
}

.welcome-img img {
  border-radius: 24px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

@media (max-width: 900px) {
  .hero { padding: 36px 32px 90px; border-radius: 24px; }
  .hero h1 { font-size: 36px; }
  .search-bar { flex-direction: column; align-items: stretch; margin-top: -40px; }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .welcome-inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .featured-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
}

/* ================= LISTING PAGE (En Venta / En Renta) ================= */
.page-banner {
  background: var(--brand);
  color: #fff;
  padding: 40px 24px 56px;
}

.breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin: 0 0 12px;
}

.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 4px; }

.page-banner h1 {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 8px;
}

.page-banner-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  margin: 0;
}

.listing-filters {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  padding: 20px;
  margin-top: -32px;
  position: relative;
  z-index: 2;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.listing-filters .search-field select {
  border-radius: 10px;
}

.listing-filter-submit {
  border-radius: 10px;
  padding: 14px 24px;
  white-space: nowrap;
}

.listing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 8px;
}

.listing-count {
  font-size: 14px;
  color: var(--text-muted);
}

.listing-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.listing-sort select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 14px;
  background: #fff;
  color: var(--text-main);
}

.listing-section {
  padding-bottom: 56px;
}

.listing-grid {
  margin-top: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}

.page-num,
.page-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-main);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  transition: background .15s, color .15s;
}

.page-num:hover,
.page-arrow:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.page-num.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

@media (max-width: 900px) {
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .listing-filters { flex-direction: column; align-items: stretch; margin-top: -24px; }
}

@media (max-width: 600px) {
  .listing-grid { grid-template-columns: 1fr; }
  .page-banner h1 { font-size: 28px; }
}

/* ================= MAP PAGE ================= */
.map-section {
  padding: 32px 24px 56px;
}

.city-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.city-tab {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-main);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}

.city-tab:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.city-tab.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.map-list-empty {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  padding: 24px 8px;
}

.map-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}

.map-embed-large {
  width: 100%;
  height: 640px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

#leafletMap {
  width: 100%;
  height: 100%;
  background: var(--page-bg);
  font-family: var(--font-body);
}

.map-popup {
  width: 180px;
  text-align: center;
}

.map-popup img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
}

.map-popup-tag {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-head);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.map-popup-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.map-popup-name {
  font-size: 12px;
  color: var(--text-muted);
  margin: 2px 0 8px;
}

.map-popup-link {
  display: inline-block;
  background: var(--brand);
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  text-decoration: none;
}

.map-popup-link:hover {
  background: var(--brand-dark);
}

.leaflet-popup-content-wrapper {
  border-radius: 12px;
}

.map-list-panel {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  padding: 16px;
  height: 640px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.map-list-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 4px 0 4px;
}

.map-list-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 10px;
  transition: background .15s;
}

.map-list-item[hidden] {
  display: none;
}

.map-list-item:hover {
  background: var(--page-bg);
}

.map-list-item img {
  width: 72px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.map-list-tag {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-head);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.map-list-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.map-list-name {
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .map-layout { grid-template-columns: 1fr; }
  .map-embed-large { height: 380px; }
  .map-list-panel { height: auto; max-height: 480px; }
}

/* ================= PORTAL (asesores y propietarios) ================= */
.portal-wrap { max-width: 620px; padding-top: 28px; padding-bottom: 48px; }
.portal-wrap.portal-wide { max-width: 900px; }
.portal-card { padding: 24px; }
.muted { color: var(--text-muted); font-weight: 400; font-size: 13px; }

.portal-tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 2px solid var(--border); }
.portal-tab {
  flex: 1; padding: 12px; background: none; border: 0; cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--text-muted);
  border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.portal-tab.active { color: var(--brand); border-bottom-color: var(--gold); }

.portal-form { display: flex; flex-direction: column; gap: 14px; }
.portal-form[hidden], .portal-alert[hidden], [hidden] { display: none !important; }
.portal-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.portal-form input[type=text], .portal-form input[type=email], .portal-form input[type=password],
.portal-form input[type=tel], .portal-form input[type=number], .portal-form select, .portal-form textarea {
  width: 100%; border: 1px solid var(--border); background: #f5f5f5; border-radius: var(--radius);
  padding: 12px 14px; font-family: var(--font-body); font-size: 15px; color: var(--text-main);
}
.portal-form textarea { resize: vertical; }
.portal-form input:focus, .portal-form select:focus, .portal-form textarea:focus {
  outline: none; border-color: var(--brand); background: #fff;
}
.portal-form .section-title { margin: 12px 0 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-hint { font-size: 13px; color: var(--text-muted); margin: 0; }

.radio-row { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.radio-row legend { font-size: 14px; font-weight: 500; padding: 0; margin-bottom: 8px; width: 100%; }
.portal-form .radio-pill {
  flex-direction: row; align-items: center; gap: 8px; border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 14px; background: #fff; cursor: pointer; font-weight: 400;
}
.portal-form .radio-pill input { width: auto; margin: 0; }
.portal-form .check-row { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; line-height: 1.45; }
.check-row input { width: auto; margin-top: 3px; flex-shrink: 0; }
.check-row a, .link-btn { color: var(--brand); text-decoration: underline; }
.link-btn { background: none; border: 0; cursor: pointer; font-size: 14px; padding: 4px; align-self: flex-start; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.portal-alert { padding: 12px 14px; border-radius: var(--radius); font-size: 14px; line-height: 1.45; margin-bottom: 14px; }
.alert-error { background: #fdecec; color: #8a1f1f; border: 1px solid #f3c1c1; }
.alert-ok { background: #e8f5ec; color: #1d5b32; border: 1px solid #b9dfc5; }
.alert-info { background: #eaf2f8; color: #1d4a6b; border: 1px solid #bcd6e8; }

.portal-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 18px; }
.portal-toolbar .btn { display: inline-flex; width: auto; padding: 12px 20px; }
.btn-sm { padding: 7px 12px !important; font-size: 12px !important; }

.portal-list { display: flex; flex-direction: column; gap: 12px; }
.portal-item {
  background: var(--card-bg); border-radius: var(--radius); padding: 16px 18px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.portal-item h3 { margin: 0 0 4px; font-family: var(--font-head); font-size: 16px; }
.portal-item p { margin: 4px 0 0; }
.portal-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.portal-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.portal-actions .btn { display: inline-flex; width: auto; }

.chip { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.chip-gris { background: #e8e8e8; color: #444; }
.chip-azul { background: #dcebf7; color: #1d4a6b; }
.chip-verde { background: #dff0e5; color: #1d5b32; }
.chip-rojo { background: #f9dcdc; color: #8a1f1f; }

@media (max-width: 640px) {
  .form-grid, .form-grid.grid-3 { grid-template-columns: 1fr; }
  .portal-item-side { align-items: flex-start; width: 100%; }
  .portal-actions { justify-content: flex-start; }
  .portal-card { padding: 18px; }
}

/* ---- Panel de revisión (admin) ---- */
.admin-wrap.portal-wide { max-width: 1000px; }
.admin-item .portal-item-main { flex: 1 1 520px; min-width: 0; }
.table-scroll { overflow-x: auto; margin-top: 8px; }
.cambios-tabla { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.cambios-tabla th, .cambios-tabla td { text-align: left; vertical-align: top; padding: 6px 8px; border-bottom: 1px solid #d9e4ee; white-space: pre-line; }
.cambios-tabla thead th { font-weight: 600; color: #1d4a6b; }
.admin-meta { list-style: none; padding: 0; margin: 8px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4px 16px; font-size: 14px; }
.admin-desc { font-size: 14px; line-height: 1.5; white-space: pre-wrap; max-height: 9em; overflow: auto; background: #f7f7f7; padding: 10px; border-radius: var(--radius); }
.admin-photos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.admin-photos img { width: 84px; height: 64px; object-fit: cover; border-radius: 4px; }
.portal-tab .count:not(:empty) { background: var(--gold); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: 12px; margin-left: 4px; }
.inline-filter { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.inline-filter select { border: 1px solid var(--border); border-radius: var(--radius); padding: 9px 12px; background: #fff; font-size: 14px; }
.portal-toolbar .portal-item-side { align-items: flex-start; }

/* ---- Fotos del portal ---- */
.upload-btn { display: inline-flex !important; width: auto !important; cursor: pointer; margin-right: 10px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.photo-item { position: relative; margin: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 6px; display: flex; flex-direction: column; gap: 6px; }
.photo-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.photo-item select { width: 100%; font-size: 13px; padding: 6px; border: 1px solid var(--border); border-radius: 4px; background: #f5f5f5; }
.photo-actions { display: flex; justify-content: space-between; gap: 6px; }
.photo-actions .link-btn { font-size: 12px; padding: 2px; }
.photo-main { position: absolute; top: 10px; left: 10px; background: var(--gold); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; z-index: 1; }

/* ---- Aviso de terceros, insignia Verificada y reporte ---- */
.third-party-note { margin: 10px 0 0; font-size: 13px; color: var(--text-muted); }
.verified-badge {
  display: inline-flex; align-items: center; gap: 4px; margin-left: 10px;
  background: #e8f5ec; color: #1d5b32; border: 1px solid #b9dfc5; border-radius: 999px;
  padding: 4px 10px; font-size: 12px; font-weight: 700; font-family: var(--font-head);
}
.verified-badge:hover { background: #dff0e5; }
.verified-chip {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  background: rgba(255,255,255,.95); color: #1d5b32; border-radius: 999px;
  padding: 3px 9px; font-size: 11px; font-weight: 700; font-family: var(--font-head);
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.report-link { margin-top: 8px; }
.report-dialog { border: 0; border-radius: var(--radius); padding: 22px; width: min(440px, calc(100vw - 32px)); }
.report-dialog::backdrop { background: rgba(0,0,0,.45); }
.report-dialog h2 { margin: 0 0 6px; font-family: var(--font-head); font-size: 18px; }
.report-dialog form { display: flex; flex-direction: column; gap: 12px; }
.report-dialog label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.report-dialog input[type=text], .report-dialog input[type=tel], .report-dialog select, .report-dialog textarea {
  width: 100%; border: 1px solid var(--border); background: #f5f5f5; border-radius: var(--radius);
  padding: 10px 12px; font-family: var(--font-body); font-size: 15px;
}
.report-help { margin: 0; font-size: 13px; color: var(--text-muted); }
.report-msg { margin: 0; padding: 10px 12px; border-radius: var(--radius); font-size: 14px; }
.report-msg.ok { background: #e8f5ec; color: #1d5b32; }
.report-msg.error { background: #fdecec; color: #8a1f1f; }
.report-actions { display: flex; gap: 10px; justify-content: flex-end; }
.report-actions .btn { display: inline-flex; width: auto; padding: 10px 18px; }

/* ---- Estadísticas ---- */
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.stat-card { background: var(--card-bg); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.stat-card-title { font-family: var(--font-head); font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; }
.stat-card-num { font-family: var(--font-head); font-size: 34px; color: var(--brand); line-height: 1.1; }
.stat-card-sub { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.bar-chart { display: flex; align-items: flex-end; gap: 3px; height: 180px; padding-top: 8px; }
.bar-col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.bar { width: 78%; background: var(--brand); border-radius: 3px 3px 0 0; }
.bar-val { font-size: 10px; color: var(--text-muted); height: 14px; line-height: 14px; }
.bar-lbl { font-size: 10px; color: var(--text-muted); height: 16px; line-height: 16px; white-space: nowrap; }
.stat-help { margin: 0 0 10px; padding-left: 18px; font-size: 14px; line-height: 1.6; }
.stats-line { font-size: 13px; }
.stats-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.stats-table th, .stats-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.stats-table th { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .3px; }
.stats-table td.num, .stats-table th.num { text-align: right; }
@media (max-width: 640px) { .stat-cards { grid-template-columns: 1fr; } }

/* ---- Alertas de propiedades ---- */
.alertas-section { padding: 8px 0 36px; }
.alertas-card { padding: 24px; display: grid; grid-template-columns: 1fr 1.5fr; gap: 24px; align-items: start; }
.alertas-intro h2 { margin: 0 0 8px; font-family: var(--font-head); font-size: 22px; color: var(--brand); }
.alertas-intro p { margin: 0; color: var(--text-muted); line-height: 1.5; }
.alertas-form { display: flex; flex-direction: column; gap: 12px; }
.alertas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.alertas-form label, .alertas-dialog label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 500; }
.alertas-opc { color: var(--text-muted); font-weight: 400; }
.alertas-form input[type=tel], .alertas-form input[type=text], .alertas-form select {
  width: 100%; border: 1px solid var(--border); background: #f5f5f5; border-radius: var(--radius);
  padding: 11px 12px; font-family: var(--font-body); font-size: 15px;
}
.alertas-form label[hidden] { display: none; }
.alertas-check { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; line-height: 1.45; }
.alertas-check input { width: auto; margin-top: 3px; flex-shrink: 0; }
.alertas-check a { color: var(--brand); text-decoration: underline; }
.alertas-msg { margin: 0; padding: 9px 12px; border-radius: var(--radius); font-size: 14px; }
.alertas-msg.ok { background: #e8f5ec; color: #1d5b32; }
.alertas-msg.error { background: #fdecec; color: #8a1f1f; }
.alertas-btn { display: inline-flex !important; width: auto !important; align-self: flex-start; padding: 12px 22px !important; }
.alertas-gracias { margin: 0; padding: 14px; background: #e8f5ec; color: #1d5b32; border-radius: var(--radius); line-height: 1.5; }
.alertas-dialog { border: 0; border-radius: var(--radius); padding: 26px; width: min(520px, calc(100vw - 32px)); position: fixed; }
.alertas-dialog::backdrop { background: rgba(0,0,0,.5); }
.alertas-dialog h2 { margin: 0 0 6px; font-family: var(--font-head); font-size: 22px; color: var(--brand); }
.alertas-dialog > p { margin: 0 0 14px; color: var(--text-muted); font-size: 14px; line-height: 1.5; }
.alertas-cerrar { position: absolute; top: 8px; right: 12px; background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: var(--text-muted); }
@media (max-width: 760px) { .alertas-card { grid-template-columns: 1fr; padding: 18px; } .alertas-grid { grid-template-columns: 1fr; } }
.alertas-dialog { max-height: calc(100vh - 32px); overflow-y: auto; }

/* ---- Formulario de contacto: estado y confirmación ---- */
.consulta-msg { margin: 0; padding: 9px 12px; border-radius: var(--radius); font-size: 14px; }
.consulta-msg.ok { background: #e8f5ec; color: #1d5b32; }
.consulta-msg.error { background: #fdecec; color: #8a1f1f; }
.consulta-aviso { margin: 8px 0 0; font-size: 12px; color: var(--text-muted); }
.consulta-aviso a { text-decoration: underline; }
.consulta-ok { padding: 16px; background: #e8f5ec; color: #1d5b32; border-radius: var(--radius); display: flex; flex-direction: column; gap: 12px; }
.consulta-ok p { margin: 0; line-height: 1.5; }
.consulta-ok .btn { display: inline-flex; width: auto; align-self: flex-start; color: var(--brand); }

.consulta-consent { display: flex; flex-direction: row; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.45; color: var(--text-main); }
.consulta-consent input { width: auto; margin-top: 3px; flex-shrink: 0; }
.consulta-consent a { text-decoration: underline; }
#contactForm .consulta-consent { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; }
#contactForm .consulta-consent input[type=checkbox] { width: auto; padding: 0; margin: 3px 0 0; flex: 0 0 auto; background: none; border: 0; }
#contactForm .consulta-consent span { flex: 1 1 auto; }

.main-nav .nav-logout { opacity: .85; font-size: 13px; }

/* ---- Publica con Galba ---- */
.pcg { padding: 28px 24px 48px; display: flex; flex-direction: column; gap: 18px; }
.pcg-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pcg-card { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.pcg-card h2 { margin: 0; font-family: var(--font-head); color: var(--brand); font-size: 22px; }
.pcg-card ul { margin: 0; padding-left: 18px; line-height: 1.6; flex: 1; }
.pcg-card .btn { display: inline-flex; width: auto; align-self: flex-start; padding: 12px 20px; }
.pcg-tag { align-self: flex-start; background: var(--gold); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.pcg-pasos, .pcg-faq { padding: 24px; }
.pcg-pasos ol { margin: 0; padding-left: 20px; line-height: 1.8; }
.pcg-faq details { border-bottom: 1px solid var(--border); padding: 10px 0; }
.pcg-faq summary { cursor: pointer; font-weight: 700; }
.pcg-faq p { margin: 8px 0 0; color: var(--text-muted); line-height: 1.5; }
.pcg-ya { text-align: center; color: var(--text-muted); }
.pcg-ya a { color: var(--brand); text-decoration: underline; }
@media (max-width: 760px) { .pcg-cards { grid-template-columns: 1fr; } }

/* ---------- Menú: zona para asesores y propietarios, separada de la de compradores ---------- */
.main-nav { align-items: center; }
.nav-pro {
  display: flex; align-items: center; gap: 14px;
  margin-left: 6px; padding-left: 22px; border-left: 1px solid rgba(255,255,255,.22);
}
.nav-pro-label {
  font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.6); line-height: 1.2; max-width: 92px;
}
.main-nav a.nav-pro-cta {
  border: 1.5px solid var(--gold); color: var(--gold); border-radius: 999px; padding: 8px 16px; white-space: nowrap;
}
.main-nav a.nav-pro-cta:hover, .main-nav a.nav-pro-cta.active { background: var(--gold); color: var(--brand); border-color: var(--gold); }
.main-nav a.nav-pro-cuenta { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.nav-pro-cuenta svg { width: 18px; height: 18px; fill: none; }
@media (max-width: 1100px) and (min-width: 769px) {
  .nav-pro-label { display: none; }
  .main-nav { gap: 20px; }
}
@media (max-width: 768px) {
  .main-nav { align-items: stretch; }
  .nav-pro {
    flex-direction: column; align-items: stretch; gap: 10px; margin: 14px 0 6px; padding: 14px;
    border-left: 0; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(200,162,92,.35);
  }
  .nav-pro-label { max-width: none; color: var(--gold); }
  .main-nav a.nav-pro-cta { text-align: center; padding: 11px 16px; border-bottom: 1.5px solid var(--gold); }
  .main-nav a.nav-pro-cuenta { justify-content: center; border-bottom: 0; padding: 8px 0; }
}
.footer-legal { margin-top: 10px; font-size: 13px; opacity: .85; }

/* =====================================================================
   Portada con degradados verde/dorado (mismo estilo que la landing de asesores)
   ===================================================================== */
:root { --g-accent: #ff7a00; --g-accent-2: #ffb800; }
.home-kicker {
  display: inline-block; position: relative; z-index: 1; font-family: var(--font-body); font-size: 12px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: var(--g-accent-2); margin-bottom: 12px;
}
.home-kicker-dark { color: var(--g-accent); margin-bottom: 4px; }

.home-hero::before {
  background:
    radial-gradient(circle at 92% 8%, rgba(255,184,0,.45), transparent 38%),
    linear-gradient(105deg, rgba(7,43,45,.94) 0%, rgba(11,58,60,.78) 42%, rgba(11,58,60,.25) 70%, rgba(138,74,10,.45) 100%);
}
.home-hero h1 { font-size: 56px; letter-spacing: -.01em; }
.home-hero h1 em {
  font-style: normal; display: inline-block;
  background: linear-gradient(90deg, var(--g-accent-2), #ff9d2e); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.home-hero .hero-sub { font-family: var(--font-body); font-weight: 500; font-size: 20px; opacity: .95; margin-bottom: 22px; }
.home-hero-ctas { position: relative; z-index: 1; display: flex; gap: 12px; flex-wrap: wrap; }
.home-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-family: var(--font-head); font-weight: 700; font-size: 15px;
  color: #fff; background: linear-gradient(180deg, #ff8f1f, var(--g-accent)); box-shadow: 0 6px 18px rgba(255,122,0,.4); transition: transform .15s, box-shadow .15s;
}
.home-pill:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,122,0,.5); }
.home-pill svg { width: 18px; height: 18px; }
.home-pill.ghost { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); box-shadow: none; backdrop-filter: blur(4px); }
.home-pill.ghost:hover { background: rgba(255,255,255,.2); }

.home-search-btn { background: linear-gradient(180deg, #ff8f1f, var(--g-accent)) !important; box-shadow: 0 6px 18px rgba(255,122,0,.35); }
.home-search-btn:hover { box-shadow: 0 8px 24px rgba(255,122,0,.45); }

/* Bloque para asesores y propietarios */
.home-pub-wrap { padding: 8px 24px 56px; }
.home-pub {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; color: #fff; border-radius: 32px; padding: 48px;
  background: radial-gradient(circle at 90% 10%, rgba(255,184,0,.45), transparent 40%), linear-gradient(130deg, #072b2d 0%, var(--brand) 50%, #8a4a0a 140%);
  box-shadow: 0 18px 50px rgba(11,58,60,.25);
}
.home-pub h2 { font-family: var(--font-head); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; margin: 0 0 14px; }
.home-pub p { margin: 0 0 18px; opacity: .92; line-height: 1.6; font-size: 16px; max-width: 560px; }
.home-pub ul { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 10px; }
.home-pub li { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.home-pub li svg { width: 20px; height: 20px; color: var(--g-accent-2); flex-shrink: 0; }
.home-pub-ctas { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.home-btn-accent {
  display: inline-flex; align-items: center; justify-content: center; padding: 15px 28px; border-radius: 12px; font-family: var(--font-head); font-weight: 700; font-size: 16px;
  color: #fff; background: linear-gradient(180deg, #ff8f1f, var(--g-accent)); box-shadow: 0 6px 18px rgba(255,122,0,.4); transition: transform .15s, box-shadow .15s;
}
.home-btn-accent:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,122,0,.5); }
.home-link-light { color: var(--g-accent-2); font-weight: 700; font-size: 15px; }
.home-link-light:hover { text-decoration: underline; }
.home-pub-cards { display: flex; flex-direction: column; gap: 14px; }
.home-pub-card {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-radius: 18px; color: #fff;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); transition: background .15s, transform .15s;
}
.home-pub-card:hover { background: rgba(255,255,255,.17); transform: translateY(-2px); }
.home-pub-card b { display: block; font-family: var(--font-head); font-size: 18px; }
.home-pub-card small { display: block; font-size: 13px; opacity: .8; }
.home-pub-card strong { font-family: var(--font-head); font-size: 26px; text-align: right; line-height: 1.1; }
.home-pub-card strong small { font-family: var(--font-body); font-size: 11px; font-weight: 500; }
.home-pub-card.pop { background: #fff; color: var(--text-main); border-color: var(--g-accent); transform: scale(1.04); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.home-pub-card.pop:hover { transform: scale(1.04) translateY(-2px); }
.home-pub-card.pop small { opacity: .7; }
.home-pub-card em {
  position: absolute; top: -11px; left: 20px; font-style: normal; font-size: 11px; font-weight: 800; color: #fff; background: var(--g-accent);
  padding: 3px 10px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase;
}

/* Bienvenida con el mismo degradado */
.home-welcome { background: radial-gradient(circle at 8% 90%, rgba(255,184,0,.28), transparent 35%), linear-gradient(120deg, #072b2d 0%, var(--brand) 55%, #5a3a12 130%); }
.home-welcome .quote-mark { background: linear-gradient(180deg, var(--g-accent-2), #ff9d2e); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 1; }
.home-welcome .welcome-img img { box-shadow: 0 20px 50px rgba(0,0,0,.35); }

/* Alertas (en todas las páginas): acento en degradado */
.alertas-card { border-top: 5px solid transparent; border-image: linear-gradient(90deg, var(--brand), var(--gold), var(--g-accent)) 1; }

@media (max-width: 900px) {
  .home-hero h1 { font-size: 36px; }
  .home-pub { grid-template-columns: 1fr; padding: 32px 22px; border-radius: 24px; gap: 28px; }
  .home-pub-wrap { padding: 0 16px 40px; }
}
@media (max-width: 480px) {
  .home-hero .hero-sub { font-size: 17px; }
  .home-pill { width: 100%; justify-content: center; }
  .home-pub-card { padding: 16px 18px; }
  .home-pub-card strong { font-size: 22px; }
}

/* ---------- Portada: accesos rápidos, historias, carruseles, ciudades ---------- */
.home-chips { display: flex; gap: 10px; overflow-x: auto; padding: 22px 24px 4px; scrollbar-width: none; }
.home-chips::-webkit-scrollbar { display: none; }
.home-chips a {
  flex-shrink: 0; padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-weight: 600; font-size: 14px;
  color: var(--text-main); box-shadow: 0 1px 3px rgba(0,0,0,.05); transition: border-color .15s, transform .15s, box-shadow .15s;
}
.home-chips a:hover { border-color: var(--g-accent); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,122,0,.15); }

.home-row, .home-stories-sec { padding: 34px 24px 6px; }
.home-row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.home-row-head h2 { font-family: var(--font-head); font-size: 28px; margin: 0; color: var(--text-main); }
.home-row-nav { display: flex; align-items: center; gap: 8px; }
.home-ver { font-weight: 700; color: var(--g-accent); font-size: 14px; margin-right: 6px; white-space: nowrap; }
.home-ver:hover { text-decoration: underline; }
.home-arrow {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: #fff; cursor: pointer; font-size: 24px; line-height: 1;
  color: var(--brand); display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.home-arrow:hover { background: var(--brand); color: #fff; }
.home-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 16px; scrollbar-width: thin; }
.home-slide { position: relative; scroll-snap-align: start; min-width: 0; }
.home-slide .feature-card { height: 100%; }
.home-nuevo, .home-ads-tag {
  position: absolute; z-index: 3; right: 12px; top: 12px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #fff;
  padding: 4px 10px; border-radius: 999px; background: linear-gradient(90deg, var(--g-accent), #ff9d2e); box-shadow: 0 3px 10px rgba(255,122,0,.35);
}
.home-ads-tag { background: linear-gradient(90deg, var(--brand), #12595c); box-shadow: 0 3px 10px rgba(11,58,60,.35); }
.home-nuevo + .home-ads-tag { top: 40px; }
#homeCargando { margin: 30px auto; }

/* Historias */
.home-stories { display: flex; gap: 18px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; }
.home-stories::-webkit-scrollbar { display: none; }
.home-story { flex-shrink: 0; background: none; border: 0; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 96px; font: inherit; color: var(--text-main); }
.home-story-ring {
  position: relative; width: 88px; height: 88px; border-radius: 50%; padding: 3px; display: block;
  background: conic-gradient(from 200deg, var(--g-accent-2), var(--g-accent), var(--gold), var(--brand), var(--g-accent-2));
  transition: transform .15s;
}
.home-story:hover .home-story-ring { transform: scale(1.05); }
.home-story-ring img, .home-story-ini { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; border: 3px solid #fff; background: var(--brand); }
.home-story-ini { display: grid; place-items: center; color: var(--gold); font-family: var(--font-head); font-weight: 800; font-size: 30px; }
.home-story-play { position: absolute; right: 2px; bottom: 2px; width: 26px; height: 26px; border-radius: 50%; background: var(--g-accent); color: #fff; font-size: 10px; display: grid; place-items: center; border: 2px solid #fff; }
.home-story-name { font-weight: 700; font-size: 13px; max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-story small { font-size: 11px; color: var(--text-muted); margin-top: -4px; }

.home-viewer { position: fixed; inset: 0; z-index: 1000; background: rgba(5,20,20,.92); display: grid; place-items: center; }
.home-viewer[hidden] { display: none; }
.home-viewer-box { position: relative; width: min(420px, 100vw); height: min(760px, 100vh); background: #000; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.home-viewer video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.home-viewer-bars { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; z-index: 3; }
.home-viewer-bars span { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
.home-viewer-bars i { display: block; height: 100%; width: 0; background: #fff; }
.home-viewer-top { position: absolute; top: 20px; left: 14px; right: 10px; display: flex; align-items: center; gap: 6px; z-index: 3; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.home-viewer-who { margin-right: auto; display: flex; flex-direction: column; }
.home-viewer-who b { font-family: var(--font-head); font-size: 15px; }
.home-viewer-who small { font-size: 12px; opacity: .9; }
.home-viewer-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,.35); color: #fff; font-size: 17px; cursor: pointer; }
.home-viewer-tap { position: absolute; top: 80px; bottom: 120px; width: 35%; background: none; border: 0; z-index: 2; cursor: pointer; }
.home-viewer-tap.prev { left: 0; }
.home-viewer-tap.next { right: 0; }
.home-viewer-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 60px 18px 20px; color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,.75), transparent); display: flex; flex-direction: column; gap: 12px;
}
.home-viewer-frase { margin: 0; font-size: 16px; line-height: 1.45; font-weight: 500; }
.home-viewer-frase:empty { display: none; }
.home-viewer-cta { align-self: flex-start; padding: 11px 20px; border-radius: 999px; font-family: var(--font-head); font-weight: 700; color: #fff; background: linear-gradient(180deg, #ff8f1f, var(--g-accent)); }

/* Ciudades */
.home-cities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.home-city {
  position: relative; min-height: 200px; border-radius: 22px; overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
  padding: 20px; color: #fff; background: var(--brand) center/cover; isolation: isolate; transition: transform .2s;
}
.home-city::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(7,43,45,.92), rgba(11,58,60,.25) 60%), radial-gradient(circle at 90% 10%, rgba(255,184,0,.35), transparent 40%); }
.home-city:hover { transform: translateY(-3px); }
.home-city b { display: block; font-family: var(--font-head); font-size: 24px; }
.home-city small { font-size: 13px; opacity: .9; }
.home-city i { font-style: normal; font-weight: 700; color: var(--g-accent-2); white-space: nowrap; }

@media (max-width: 900px) {
  .home-track { grid-auto-columns: 46%; gap: 16px; }
  .home-cities { grid-template-columns: 1fr; }
  .home-city { min-height: 150px; }
}
@media (max-width: 600px) {
  .home-row, .home-stories-sec { padding: 26px 16px 4px; }
  .home-chips { padding: 18px 16px 2px; }
  .home-row-head h2 { font-size: 22px; }
  .home-arrow { display: none; }
  .home-track { grid-auto-columns: 82%; }
  .home-story { width: 78px; }
  .home-story-ring { width: 72px; height: 72px; }
  .home-viewer-box { width: 100vw; height: 100vh; border-radius: 0; }
}

/* ---------- Buscador grande de la portada ---------- */
.home-search {
  position: relative; z-index: 2; margin: -64px auto 0; width: 92%; max-width: 860px; background: #fff; border-radius: 26px;
  box-shadow: 0 18px 50px rgba(11,58,60,.22); padding: 18px 18px 14px;
}
.home-search-ops { display: flex; gap: 6px; margin: 0 4px 12px; }
.home-search-ops label { cursor: pointer; }
.home-search-ops input { position: absolute; opacity: 0; pointer-events: none; }
.home-search-ops span { display: inline-block; padding: 7px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--text-muted); background: #f1f3f0; transition: background .15s, color .15s; }
.home-search-ops input:checked + span { background: var(--brand); color: #fff; }
.home-search-ops input:focus-visible + span { outline: 2px solid var(--g-accent); outline-offset: 2px; }
.home-search-box { display: flex; align-items: center; gap: 10px; border: 2px solid #e3e6e1; border-radius: 18px; padding: 6px 6px 6px 16px; transition: border-color .15s, box-shadow .15s; }
.home-search-box:focus-within { border-color: var(--g-accent); box-shadow: 0 0 0 4px rgba(255,122,0,.12); }
.home-search-box > svg { width: 22px; height: 22px; color: var(--g-accent); flex-shrink: 0; }
.home-search-box input { flex: 1; min-width: 0; border: 0; outline: 0; font-family: var(--font-body); font-size: 18px; padding: 12px 0; color: var(--text-main); background: transparent; }
.home-search-box input::placeholder { color: #8a938f; }
.home-search-btn2 {
  border: 0; cursor: pointer; padding: 15px 30px; border-radius: 14px; font-family: var(--font-head); font-weight: 700; font-size: 16px; color: #fff;
  background: linear-gradient(180deg, #ff8f1f, var(--g-accent)); box-shadow: 0 6px 18px rgba(255,122,0,.35); transition: box-shadow .15s, transform .15s;
}
.home-search-btn2:hover { box-shadow: 0 8px 24px rgba(255,122,0,.45); transform: translateY(-1px); }
.home-search-tips { margin: 10px 6px 0; font-size: 13px; color: var(--text-muted); }
.home-search-tips a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 600px) {
  .home-search { margin-top: -48px; width: calc(100% - 24px); padding: 14px 12px 12px; border-radius: 20px; }
  .home-search-box { flex-wrap: wrap; padding: 4px 4px 4px 12px; }
  .home-search-box input { font-size: 16px; padding: 10px 0; }
  .home-search-btn2 { width: 100%; margin: 4px 0 2px; }
  .home-search-ops span { padding: 7px 12px; font-size: 13px; }
}

/* =====================================================================
   Ficha de propiedad (rediseño móvil primero)
   ===================================================================== */
.pd-gallery { position: relative; max-width: 1200px; margin: 20px auto 0; padding: 0 24px; }
.pd-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; border-radius: 22px; background: #0d1716;
  aspect-ratio: 16 / 8; scrollbar-width: none; outline: none; cursor: zoom-in;
}
.pd-track::-webkit-scrollbar { display: none; }
.pd-slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.pd-slide img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.pd-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--brand); font-size: 18px; box-shadow: 0 4px 14px rgba(0,0,0,.2); display: grid; place-items: center; z-index: 2;
}
.pd-gallery .pd-nav.prev { left: 40px; }
.pd-gallery .pd-nav.next { right: 40px; }
.pd-counter { position: absolute; left: 40px; bottom: 16px; z-index: 2; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.pd-gal-actions { position: absolute; right: 40px; bottom: 16px; z-index: 2; display: flex; gap: 8px; }
.pd-chip-btn {
  display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; background: rgba(255,255,255,.95); color: var(--text-main);
  font-family: var(--font-head); font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
.pd-chip-btn svg { width: 16px; height: 16px; }
.pd-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 24px 0; scrollbar-width: thin; }
.pd-thumbs button { flex: 0 0 auto; width: 92px; height: 64px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; opacity: .7; background: #ddd; }
.pd-thumbs button.on { border-color: var(--g-accent); opacity: 1; }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pd-lightbox { position: fixed; inset: 0; z-index: 1000; background: #050b0b; display: flex; flex-direction: column; }
.pd-lightbox[hidden] { display: none; }
.pd-lb-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; color: #fff; font-weight: 700; }
.pd-lb-top button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 18px; cursor: pointer; }
.pd-lb-track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pd-lb-track::-webkit-scrollbar { display: none; }
.pd-lb-track .pd-slide img { object-fit: contain; }
.pd-lightbox .pd-nav.prev { left: 16px; }
.pd-lightbox .pd-nav.next { right: 16px; }

.pd-layout { padding-top: 20px; }
.pd-head { padding: 22px 24px; }
.pd-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.pd-badges .badge { margin: 0; }
.pd-folio { margin-left: auto; font-size: 12px; color: var(--text-muted); }
.pd-price { font-family: var(--font-head); font-size: 34px; font-weight: 800; color: var(--text-main); line-height: 1.1; }
.pd-price small { font-size: 16px; font-weight: 600; color: var(--text-muted); }
.pd-price2 { margin: 4px 0 0; font-weight: 600; color: var(--brand); font-size: 15px; }
.pd-title { font-family: var(--font-head); font-size: 20px; line-height: 1.3; font-weight: 700; margin: 10px 0 6px; color: var(--text-main); }
.pd-loc { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 15px; }
.pd-loc svg { width: 16px; height: 16px; color: var(--g-accent); }
.pd-loc:hover { color: var(--brand); text-decoration: underline; }
.pd-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 10px; margin-top: 18px; }
.pd-fact { background: #f4f6f3; border-radius: 14px; padding: 12px 10px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.pd-fact svg { width: 22px; height: 22px; fill: var(--brand); margin-bottom: 4px; }
.pd-fact b { font-family: var(--font-head); font-size: 18px; color: var(--text-main); }
.pd-fact span { font-size: 12px; color: var(--text-muted); }
.pd-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.pd-q {
  display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 8px; border-radius: 12px; border: 1px solid var(--border);
  font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--brand); background: #fff;
}
.pd-q svg { width: 18px; height: 18px; fill: currentColor; }
.pd-q svg[fill="none"] { fill: none; }
.pd-q-wa { background: #25d366; border-color: #25d366; color: #fff; }

.pd-sec { padding: 22px 24px; }
.pd-h2 { font-family: var(--font-head); font-size: 19px; margin: 0 0 14px; color: var(--text-main); }
.pd-highlights { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pd-highlights li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.4; }
.pd-highlights svg { width: 22px; height: 22px; color: var(--g-accent); flex-shrink: 0; }
.pd-desc { font-size: 16px; line-height: 1.7; }
.pd-desc p { margin: 0 0 10px; }
.pd-desc.is-clamped { max-height: 15.5em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.pd-more { margin-top: 6px; border: 0; background: none; color: var(--g-accent); font-weight: 700; font-size: 15px; cursor: pointer; padding: 6px 0; }
.pd-details { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.pd-details li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid #eef0ed; font-size: 15px; }
.pd-details span { color: var(--text-muted); }
.pd-details b { text-align: right; font-weight: 600; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-tags span { background: #f4f6f3; border-radius: 999px; padding: 8px 14px; font-size: 14px; }
.pd-tags-green span { background: #e3f4ea; color: #17733f; font-weight: 600; }

.pd-calc { background: linear-gradient(135deg, #fff 0%, #fff7ee 100%); }
.pd-calc-note { font-size: 13px; color: var(--text-muted); margin: 0 0 14px; line-height: 1.5; }
.pd-calc-note a { color: var(--g-accent); font-weight: 600; }
.pd-calc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pd-calc-grid label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text-muted); }
.pd-calc-grid strong { color: var(--text-main); font-size: 16px; }
.pd-calc-grid input[type=range] { width: 100%; accent-color: var(--g-accent); height: 28px; }
.pd-calc-res { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; margin: 18px 0 12px; }
.pd-calc-res div { background: #fff; border: 1px solid #f1e2cf; border-radius: 14px; padding: 12px 14px; }
.pd-calc-res small { display: block; font-size: 12px; color: var(--text-muted); }
.pd-calc-res b { font-family: var(--font-head); font-size: 24px; color: var(--g-accent); }
.pd-calc-res span { font-family: var(--font-head); font-size: 17px; font-weight: 700; }

.pd-contact-kicker { margin: 0 0 12px; font-family: var(--font-head); font-weight: 800; font-size: 18px; }
.contact-card .agent-row div { display: flex; flex-direction: column; }
.pd-agent-sub { font-size: 12px; color: #17733f; }
.pd-wa-big { background: #25d366 !important; color: #fff !important; border-color: #25d366 !important; margin: 14px 0 6px; padding: 14px !important; font-size: 15px; }
.pd-wa-big svg { fill: #fff !important; width: 18px; height: 18px; }
.pd-or { text-align: center; color: var(--text-muted); font-size: 13px; margin: 8px 0 10px; }

.pd-sticky { display: none; }

@media (max-width: 900px) {
  .pd-highlights, .pd-details { grid-template-columns: 1fr; }
  .pd-calc-grid { grid-template-columns: 1fr; gap: 12px; }
  .pd-calc-res { grid-template-columns: 1fr 1fr; }
  .pd-calc-res div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .pd-gallery { margin: 0; padding: 0; }
  .pd-track { border-radius: 0; aspect-ratio: 4 / 3.2; }
  .pd-gallery .pd-nav { display: none; }
  .pd-counter { left: 12px; bottom: 12px; }
  .pd-gal-actions { right: 12px; bottom: 12px; }
  .pd-thumbs { display: none; }
  .pd-layout { padding-top: 0; gap: 12px; }
  .pd-layout .property-main { gap: 12px; }
  .pd-head { border-radius: 0 0 22px 22px; margin: 0 -16px; padding: 18px 16px 20px; }
  .pd-price { font-size: 28px; }
  .pd-title { font-size: 17px; }
  .pd-sec { padding: 18px 16px; }
  .pd-fact { padding: 10px 6px; }
  .pd-sticky {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; align-items: center; gap: 10px;
    background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(0,0,0,.08); padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  }
  .pd-sticky[hidden] { display: none; }
  .pd-sticky-price { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .pd-sticky-price b { font-family: var(--font-head); font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pd-sticky-price small { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pd-sticky-call { width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--brand); flex-shrink: 0; }
  .pd-sticky-call svg { width: 22px; height: 22px; }
  .pd-sticky-wa { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 14px; background: #25d366; color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 15px; flex-shrink: 0; }
  .pd-sticky-wa svg { width: 20px; height: 20px; fill: #fff; }
  body.pd-has-sticky { padding-bottom: 78px; }
}
@media print { .pd-sticky, .pd-gal-actions, .pd-nav, .pd-quick { display: none !important; } }

/* Ficha: el formulario es la acción principal; WhatsApp, la secundaria */
.pd-quick { grid-template-columns: 1.6fr 1fr; }
.pd-q-main { background: linear-gradient(180deg, #ff8f1f, var(--g-accent)); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(255,122,0,.3); font-size: 15px; }
.pd-q-wa { background: #fff; color: #128c4a; border-color: #b9e6cb; }
.pd-q-wa svg { fill: #25d366 !important; }
.pd-contact-sub { margin: -6px 0 14px; font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.pd-submit { background: linear-gradient(180deg, #ff8f1f, var(--g-accent)) !important; border: 0 !important; font-size: 16px !important; padding: 15px !important; box-shadow: 0 6px 16px rgba(255,122,0,.3); }
.pd-wa-alt { color: #128c4a !important; border-color: #b9e6cb !important; }
.pd-wa-alt svg { fill: #25d366 !important; }
.consulta-ok { display: flex; flex-direction: column; gap: 8px; }
.consulta-ok-sig { margin: 6px 0 0; font-size: 14px; color: var(--text-muted); }
.consulta-ok .pd-wa-big { display: flex; }
@media (max-width: 768px) {
  .pd-sticky-info {
    display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 18px; border-radius: 14px; flex-shrink: 0;
    background: linear-gradient(180deg, #ff8f1f, var(--g-accent)); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 15px;
    box-shadow: 0 6px 16px rgba(255,122,0,.3);
  }
  .pd-sticky-wa { width: 48px; padding: 0; justify-content: center; }
}
@media (max-width: 768px) {
  .pd-sticky { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .pd-sticky-price b { font-size: 15px; text-overflow: clip; }
  .pd-sticky-info { padding: 0 14px; font-size: 14px; }
}

/* Portada: la foto es una <img> prioritaria (más rápida que un fondo CSS) */
.home-hero { isolation: isolate; background-color: var(--brand); }
.home-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.home-esqueleto { min-height: 360px; border-radius: var(--radius); background: linear-gradient(90deg, #e9ece8 0%, #f4f6f3 50%, #e9ece8 100%); background-size: 200% 100%; animation: home-brillo 1.4s ease-in-out infinite; }
@keyframes home-brillo { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .home-esqueleto { animation: none; } }

/* Interruptores del piloto (portal-config.js → funciones). Por defecto, apagados. */
html:not(.con-ads) [data-solo~="ads"],
html:not(.con-propietarios) [data-solo~="propietarios"],
html.con-ads [data-sin~="ads"],
html.con-propietarios [data-sin~="propietarios"] { display: none !important; }
