:root {
  --navy: #071a44;
  --green: #0a983f;
  --green-dark: #057332;
  --blue: #126bd8;
  --blue-dark: #0c56b1;
  --orange: #ff5f0f;
  --orange-dark: #e94f00;
  --cream: #fff4df;
  --muted: #687180;
  --line: #e7ebf0;
  --bg: #f7f8fb;
  --white: #fff;
  --shadow: 0 18px 45px rgba(8, 24, 60, .14);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--navy);
  background: var(--bg);
}

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

button, select, input, textarea { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 96px;
  display: grid;
  grid-template-columns: 240px 1fr;
  align-items: center;
  padding: 10px 6vw;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid rgba(7, 26, 68, .08);
  backdrop-filter: blur(12px);
}

.brand img {
  width: 138px;
  height: auto;
}

.main-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(22px, 4vw, 58px);
  font-weight: 800;
  font-size: 18px;
}

.main-nav a {
  color: var(--navy);
  text-decoration: none;
  position: relative;
  padding: 12px 0;
}

.main-nav a.active,
.main-nav a:hover { color: var(--orange-dark); }

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: var(--orange);
}

.main-nav .nav-whatsapp {
  color: #fff;
  background: var(--green);
  padding: 16px 28px;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(10, 152, 63, .22);
}

.main-nav .nav-whatsapp:hover {
  color: #fff;
  background: var(--green-dark);
}

.menu-toggle {
  display: none;
  justify-self: end;
  border: 0;
  background: transparent;
  font-size: 30px;
  color: var(--navy);
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
  overflow: hidden;
  background: #fff;
}

.hero-half {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero-buy {
  background:
    linear-gradient(90deg, rgba(255,255,255,.70) 0%, rgba(255,255,255,.48) 45%, rgba(255,255,255,.02) 100%),
    url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1500&q=80");
  background-size: cover;
  background-position: center;
  padding: 38px 6vw;
}

.hero-owner {
  background:
    linear-gradient(90deg, rgba(255,255,255,.92), rgba(255,248,239,.93)),
    url("https://images.unsplash.com/photo-1600566753151-384129cf4e3e?auto=format&fit=crop&w=1500&q=80");
  background-size: cover;
  background-position: center;
  clip-path: polygon(7% 0, 100% 0, 100% 100%, 0 100%);
  padding: 38px 6vw 38px 9vw;
}

.hero-content h1,
.owner-content h2 {
  margin: 0;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  color: var(--navy);
}

.hero-content p,
.owner-content p {
  margin: 16px 0 0;
  font-size: clamp(21px, 2.05vw, 30px);
  line-height: 1.22;
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 0 28px;
  border-radius: 9px;
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  font-weight: 900;
  box-shadow: var(--shadow);
}

.hero-btn.sale { background: var(--green); }
.hero-btn.rent { background: var(--blue); }
.hero-btn:hover { transform: translateY(-2px); }

.hero-btn .icon {
  font-size: 31px;
  line-height: 1;
}

.valuation-pill {
  position: absolute;
  top: 24px;
  left: 20%;
  z-index: 4;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: min(430px, 76%);
  padding: 12px 26px;
  border: 2px solid rgba(255,255,255,.85);
  border-radius: 18px;
  background: rgba(255, 244, 223, .92);
  color: #263043;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.22;
  box-shadow: 0 8px 22px rgba(8, 24, 60, .15);
}

.owner-content {
  margin-top: 48px;
}

.owner-cta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
  padding: 17px 28px;
  border-radius: 9px;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 900;
  box-shadow: 0 14px 32px rgba(255, 95, 15, .24);
}

.owner-cta span {
  font-size: 44px;
  line-height: 1;
}

.search-wrap {
  position: relative;
  z-index: 4;
  margin: -30px 3vw 0;
}

.property-search {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) minmax(170px, .8fr);
  gap: 18px;
  align-items: end;
  padding: 14px 24px;
  border-radius: 20px;
  background:
    linear-gradient(rgba(0,0,0,.46), rgba(0,0,0,.46)),
    url("https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=1500&q=80");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.property-search label {
  display: grid;
  gap: 6px;
  color: #fff;
  font-weight: 800;
}

.property-search label span {
  padding-left: 8px;
  font-size: 13px;
}

.property-search select {
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: #1b2435;
  background: #fff;
  outline: none;
}

.property-search button[type="submit"] {
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.property-search .see-all {
  grid-column: -2 / -1;
  justify-self: end;
  margin-top: -6px;
  border: 0;
  background: transparent;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.section {
  padding: 72px 6vw;
}

.section-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
}

.section h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.035em;
}

.section-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 900;
  cursor: pointer;
}

.filters {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 28px;
}

.filter {
  border: 0;
  background: transparent;
  color: var(--navy);
  padding: 10px 12px;
  font-weight: 900;
  cursor: pointer;
  border-bottom: 3px solid transparent;
}

.filter.active {
  color: var(--green);
  border-bottom-color: var(--green);
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.property-card {
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(8, 24, 60, .08);
  border: 1px solid rgba(7, 26, 68, .08);
}

.card-image {
  position: relative;
  height: 170px;
  background: #dfe6ee;
}

.property-image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  cursor: pointer;
}

.card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.property-image-button:hover img {
  transform: scale(1.035);
}

.property-image-button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: -3px;
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 7px 12px;
  border-radius: 5px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.badge.venta { background: var(--green); }
.badge.arriendo { background: var(--blue); }

.featured-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(255, 95, 15, .92);
  font-size: 16px;
  font-weight: 900;
}

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

.card-body h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.location {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.card-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 14px 0;
  color: #364154;
  font-size: 13px;
}

.card-specs span {
  white-space: nowrap;
}

.card-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.price {
  color: var(--orange);
  font-size: 18px;
  font-weight: 900;
}

.whatsapp-mini {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  text-decoration: none;
  font-weight: 900;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  font-weight: 800;
}

.about-section {
  display: grid;
  grid-template-columns: 1fr .85fr;
  gap: 36px;
  align-items: center;
  background: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.about-copy p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.about-copy .safe-highlight {
  color: var(--green-dark);
  font-weight: 800;
}

.about-signature {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
}

.about-signature img {
  width: 92px;
  height: 108px;
  flex: 0 0 auto;
  object-fit: cover;
  object-position: center top;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(7, 26, 68, .14);
}

.about-signature strong,
.about-signature span {
  display: block;
}

.about-signature strong {
  color: var(--navy);
  font-size: 21px;
  line-height: 1.2;
}

.about-signature span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}

.about-card {
  padding: 38px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--navy), var(--blue-dark));
  color: #fff;
  box-shadow: var(--shadow);
}

.about-card strong {
  display: block;
  font-size: 30px;
  line-height: 1.18;
}

.about-card p {
  color: rgba(255,255,255,.82);
  font-size: 18px;
  line-height: 1.55;
}

.about-card .about-questions {
  margin: 0;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.55;
}

.about-questions .questions-copy {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  text-align: left;
}

.about-questions .question-line {
  display: block;
}

.about-questions .questions-closing {
  margin-top: 14px;
  margin-bottom: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  font-weight: 800;
  text-align: left;
}

.contact-section {
  display: grid;
  grid-template-columns: .9fr 1fr;
  gap: 42px;
  background: #fff;
}

.contact-section > div > p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.contact-section > div > .contact-phone-prompt {
  margin-top: 22px;
  color: var(--navy);
  font-weight: 700;
}

.contact-phone-prompt a {
  color: var(--blue);
  font-size: 22px;
  font-weight: 900;
  text-decoration: none;
}

.whatsapp-mini svg {
  width: 20px;
  height: 20px;
}

.contact-phone-prompt a:hover,
.contact-phone-prompt a:focus-visible {
  text-decoration: underline;
}

.contact-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn-green,
.btn-outline {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
}

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

.btn-outline {
  border: 1px solid var(--blue);
  color: var(--blue);
  background: #fff;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid #d9dfe7;
  border-radius: 12px;
  padding: 14px 16px;
  outline: none;
}

.contact-form button {
  border: 0;
  border-radius: 999px;
  min-height: 50px;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.contact-form p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  display: grid;
  place-items: center;
  gap: 14px;
  padding: 36px 6vw;
  color: #fff;
  background: var(--navy);
  text-align: center;
}

.site-footer img {
  width: 145px;
  background: #fff;
  border-radius: 8px;
}

.main-nav .header-whatsapp {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  padding: 0;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  box-shadow: var(--shadow);
}

.header-whatsapp svg {
  width: 31px;
  height: 31px;
}

.main-nav .header-whatsapp:hover,
.main-nav .header-whatsapp:focus-visible {
  color: #fff;
  background: var(--green-dark);
  transform: translateY(-2px);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 26, 68, .68);
}

.modal-content {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  overflow: auto;
  margin: 14px auto;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.modal-close {
  position: sticky;
  top: 12px;
  float: right;
  z-index: 2;
  width: 42px;
  height: 42px;
  margin: 12px;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 30px;
  padding: 34px;
}

.detail-main-image {
  width: 100%;
  height: 430px;
  object-fit: cover;
  border-radius: 18px;
  cursor: zoom-in;
}

.detail-info h2 {
  margin: 10px 0;
  font-size: 38px;
  line-height: 1.05;
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0 34px 34px;
}

.detail-gallery img {
  width: 100%;
  height: 135px;
  object-fit: cover;
  border-radius: 12px;
  cursor: zoom-in;
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.image-viewer[hidden] {
  display: none;
}

.image-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 12, 32, .92);
}

.image-viewer img {
  position: relative;
  z-index: 1;
  display: block;
  max-width: min(1400px, 94vw);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, .45);
}

.image-viewer-close {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.image-viewer-arrow {
  position: fixed;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0 0 5px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--navy);
  font-size: 46px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.image-viewer-prev { left: 18px; }
.image-viewer-next { right: 18px; }

.image-viewer-arrow:hover,
.image-viewer-arrow:focus-visible,
.image-viewer-close:hover,
.image-viewer-close:focus-visible {
  background: var(--orange);
  color: #fff;
}

@media (max-width: 640px) {
  .image-viewer-arrow {
    width: 44px;
    height: 44px;
    font-size: 38px;
  }

  .image-viewer-prev { left: 8px; }
  .image-viewer-next { right: 8px; }
}

.detail-description {
  padding: 0 34px 38px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.detail-description p {
  white-space: pre-line;
}


/* Ajuste desktop aprobado:
   Mantiene el diseño del mockup y permite ver la barra de búsqueda sin deslizar
   en pantallas de computador comunes. */
@media (min-width: 1081px) {
  .site-header {
    min-height: 94px;
  }

  .hero-split {
    min-height: calc(100vh - 205px);
    max-height: 570px;
  }

  .hero-half {
    min-height: calc(100vh - 205px);
    max-height: 570px;
  }

  .search-wrap {
    margin-top: -28px;
  }

  .property-search {
    min-height: 86px;
  }

  .properties-section {
    padding-top: 48px;
  }
}

@media (min-width: 1081px) and (max-height: 850px) {
  .site-header {
    min-height: 82px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .brand img {
    width: 118px;
  }

  .hero-split,
  .hero-half {
    min-height: 430px;
    max-height: 430px;
  }

  .hero-content h1,
  .owner-content h2 {
    font-size: clamp(40px, 4.4vw, 60px);
  }

  .hero-content p,
  .owner-content p {
    font-size: clamp(20px, 1.8vw, 26px);
  }

  .hero-buttons {
    margin-top: 24px;
  }

  .hero-btn {
    min-height: 58px;
    font-size: 20px;
  }

  .valuation-pill {
    top: 20px;
    font-size: 17px;
    padding: 10px 24px;
  }

  .owner-content {
    margin-top: 45px;
  }

  .owner-cta {
    margin-top: 22px;
    padding: 14px 25px;
    font-size: 21px;
  }

  .search-wrap {
    margin-top: -25px;
  }

  .property-search {
    padding: 12px 22px;
    min-height: 78px;
  }

  .property-search select,
  .property-search button[type="submit"] {
    min-height: 48px;
  }
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 180px 1fr;
  }

  .main-nav {
    gap: 20px;
  }

  .properties-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .property-search {
    grid-template-columns: repeat(2, 1fr);
  }

  .property-search button[type="submit"] {
    grid-column: span 2;
  }

  .property-search .see-all {
    grid-column: span 2;
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: auto;
    padding: 12px 22px;
  }

  .brand img {
    width: 125px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 15px 0;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav .nav-whatsapp {
    padding: 12px 18px;
  }

  .hero-split {
    grid-template-columns: 1fr;
  }

  .hero-half,
  .hero-buy,
  .hero-owner {
    min-height: 460px;
    clip-path: none;
    padding: 44px 22px;
  }

  .valuation-pill {
    position: static;
    margin-bottom: 24px;
    min-width: 0;
    width: 100%;
  }

  .owner-content {
    margin-top: 0;
  }

  .search-wrap {
    margin: 0;
  }

  .property-search {
    border-radius: 0;
    grid-template-columns: 1fr;
  }

  .property-search button[type="submit"],
  .property-search .see-all {
    grid-column: auto;
  }

  .section,
  .about-section,
  .contact-section {
    padding: 54px 22px;
  }

  .section-top,
  .about-section,
  .contact-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .properties-grid,
  .detail-gallery {
    grid-template-columns: 1fr;
  }

  .filters {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .detail-main-image {
    height: 280px;
  }
}

@media (max-width: 520px) {
  .hero-content h1,
  .owner-content h2 {
    font-size: 42px;
  }

  .hero-content p,
  .owner-content p {
    font-size: 22px;
  }

  .hero-buttons {
    gap: 12px;
  }

  .hero-btn,
  .owner-cta {
    width: 100%;
    justify-content: center;
    font-size: 22px;
  }

  .card-footer {
    grid-template-columns: 1fr;
  }

  .whatsapp-mini {
    width: 100%;
    border-radius: 8px;
  }
}



/* Ajuste para respetar el diseño aprobado */
.site-header {
  min-height: 118px;
  padding: 14px 6vw;
  grid-template-columns: 250px 1fr;
}

.brand img {
  width: 150px;
}

.main-nav {
  gap: 54px;
  font-size: 18px;
}

.main-nav .nav-whatsapp {
  padding: 14px 24px;
  border-radius: 10px;
}

.approved-hero {
  position: relative;
  width: 100%;
  background: #fff;
}

.approved-hero-image {
  display: block;
  width: 100%;
  height: auto;
}

.hero-copy {
  position: absolute;
  z-index: 2;
  color: #00184d;
  font-family: Arial, Helvetica, sans-serif;
}

.hero-copy h1 {
  margin: 0;
  font-size: 3.4vw;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hero-copy p {
  margin: 1.2vw 0 0;
  font-size: 1.55vw;
  line-height: 1.24;
  font-weight: 600;
}

.hero-copy-left {
  left: 8.1%;
  top: 22.5%;
  text-align: left;
}

.hero-copy-right {
  left: 61.5%;
  top: 22.5%;
  text-align: left;
}

.hotspot {
  position: absolute;
  z-index: 3;
  display: flex;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  text-decoration: none;
}

/* Coordenadas aproximadas respecto al diseño aprobado */
.hotspot-sale {
  left: 8.1%;
  top: 59.3%;
  width: 12%;
  height: 11.2%;
  background: linear-gradient(135deg, #00a641, #008b32);
}

.hotspot-rent {
  left: 23%;
  top: 59.3%;
  width: 14%;
  height: 11.2%;
  background: linear-gradient(135deg, #1681e5, #0452ae);
}

.hotspot-valuation {
  left: 60.8%;
  top: 8.4%;
  width: 25%;
  height: 12.5%;
  border-radius: 18px;
  color: #27323d;
  font: 600 1.15vw/1.25 Arial, Helvetica, sans-serif;
  text-align: center;
}

.hotspot-owner {
  left: 61.2%;
  top: 59.8%;
  width: 22%;
  height: 13%;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff6500, #ef4c00);
}

.hero-action {
  gap: 1vw;
  padding: 0 1.2vw;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  font: 500 1.45vw/1.2 Arial, Helvetica, sans-serif;
  text-align: left;
}

.hero-action-icon {
  flex: 0 0 auto;
  line-height: 1;
}

.hero-action-icon svg {
  display: block;
  width: clamp(22px, 2vw, 34px);
  height: clamp(22px, 2vw, 34px);
}

.hero-search {
  position: absolute;
  z-index: 4;
  left: 4.8%;
  right: 5.2%;
  bottom: 1.1%;
  height: 10.2%;
  display: grid;
  grid-template-columns: 1.15fr 1.2fr 1.15fr 1fr 1.08fr;
  gap: 1.25%;
  margin: 0;
}

.hero-search select,
.hero-search button {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  border-radius: 999px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.08vw;
}

.hero-search select {
  padding: 0 2vw;
  color: #171717;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.hero-search button {
  color: #fff;
  background: linear-gradient(135deg, #1681e5, #0561cf);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 78, 181, 0.2);
}

.hero-search button:hover,
.hero-search button:focus-visible {
  background: linear-gradient(135deg, #086fd0, #034da9);
}

.properties-section {
  padding-top: 34px;
}

.section-top {
  margin-bottom: 14px;
}

/* Ya no se usa el hero reconstruido ni el buscador HTML */
.hero-split,
.search-wrap {
  display: none !important;
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: auto;
    padding: 12px 22px;
  }

  .brand img {
    width: 125px;
  }

  .main-nav {
    gap: 8px;
  }

  .approved-hero {
    overflow-x: auto;
  }

  .approved-hero-image {
    min-width: 1000px;
    width: 1000px;
  }

  .hero-search {
    left: 48px;
    right: auto;
    width: 900px;
  }

  .hotspot-sale {
    left: 5.4%;
    top: 56.5%;
    width: 14.5%;
    height: 10.5%;
  }

  .hotspot-rent {
    left: 22.7%;
    top: 56.5%;
    width: 14.5%;
    height: 10.5%;
  }

  .hotspot-valuation {
    left: 58.5%;
    top: 4.2%;
    width: 30%;
    height: 12.5%;
  }

  .hotspot-owner {
    left: 60%;
    top: 58.5%;
    width: 24.8%;
    height: 12.2%;
  }
}



/* Ajuste final: mantiene exactamente el diseño aprobado y lo escala para que
   el hero completo con la barra de búsqueda quede visible en la ventana. */
@media (min-width: 821px) {
  .site-header {
    min-height: 92px !important;
    height: 92px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }

  .brand img {
    width: 128px !important;
  }

  .main-nav {
    font-size: 17px !important;
  }

  .main-nav .nav-whatsapp {
    padding: 12px 22px !important;
  }

  .approved-hero {
    height: calc(100vh - 92px) !important;
    min-height: 560px;
    max-height: 670px;
    overflow: hidden;
  }

  .approved-hero-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: fill !important;
  }

  .properties-section {
    padding-top: 28px !important;
  }
}

/* Vista compacta de tablet y panel lateral: conserva la composición completa
   sin forzar el ancho de 1000 px usado en teléfonos pequeños. */
@media (min-width: 641px) and (max-width: 820px) {
  .approved-hero { overflow: hidden; }
  .approved-hero-image { width: 100%; min-width: 0; }
  .hero-search { left: 4.8%; right: 5.2%; width: auto; }
  .hotspot-sale { left: 8.1%; top: 59.3%; width: 12%; height: 11.2%; }
  .hotspot-rent { left: 23%; top: 59.3%; width: 14%; height: 11.2%; }
  .hotspot-owner { left: 61.2%; top: 59.8%; width: 22%; height: 13%; }
}

@media (min-width: 821px) and (max-height: 780px) {
  .site-header {
    min-height: 78px !important;
    height: 78px !important;
  }

  .brand img {
    width: 112px !important;
  }

  .main-nav {
    font-size: 16px !important;
  }

  .approved-hero {
    height: calc(100vh - 78px) !important;
    min-height: 500px;
  }
}

@media (min-width: 821px) and (max-height: 680px) {
  .site-header {
    min-height: 70px !important;
    height: 70px !important;
  }

  .brand img {
    width: 100px !important;
  }

  .main-nav {
    font-size: 15px !important;
  }

  .main-nav .nav-whatsapp {
    padding: 9px 18px !important;
  }

  .approved-hero {
    height: calc(100vh - 70px) !important;
    min-height: 440px;
  }
}



/* AJUSTE DEFINITIVO: barra de búsqueda visible en la primera pantalla.
   Mantiene el diseño aprobado como imagen de referencia y lo encaja completo
   entre el header y el borde inferior visible del navegador. */
@media (min-width: 821px) {
  body {
    overflow-x: hidden;
  }

  .site-header {
    min-height: 76px !important;
    height: 76px !important;
    padding: 4px 6vw !important;
    display: grid !important;
    align-items: center !important;
  }

  .brand img {
    width: 106px !important;
  }

  .main-nav {
    font-size: 15px !important;
    gap: 42px !important;
  }

  .main-nav a {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  .main-nav .nav-whatsapp {
    padding: 10px 18px !important;
    border-radius: 9px !important;
  }

  .approved-hero {
    height: calc(100vh - 76px) !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
    background: #fff !important;
  }

  .approved-hero-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: fill !important;
    object-position: center top !important;
  }

  .properties-section {
    padding-top: 28px !important;
  }

  .hotspot-sale,
  .hotspot-rent,
  .hotspot-valuation,
  .hotspot-owner {
    pointer-events: auto;
  }
}

@media (min-width: 821px) and (max-height: 760px) {
  .site-header {
    min-height: 64px !important;
    height: 64px !important;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
  }

  .brand img {
    width: 92px !important;
  }

  .main-nav {
    font-size: 14px !important;
    gap: 34px !important;
  }

  .main-nav .nav-whatsapp {
    padding: 8px 16px !important;
  }

  .approved-hero {
    height: calc(100vh - 64px) !important;
  }
}

@media (min-width: 821px) and (max-height: 650px) {
  .site-header {
    min-height: 58px !important;
    height: 58px !important;
  }

  .brand img {
    width: 82px !important;
  }

  .main-nav {
    font-size: 13px !important;
    gap: 28px !important;
  }

  .main-nav .nav-whatsapp {
    padding: 7px 14px !important;
  }

  .approved-hero {
    height: calc(100vh - 58px) !important;
  }
}

/* Encabezado ampliado: ocupa el doble de la franja anterior y descuenta
   exactamente esa altura del hero para conservar la búsqueda en pantalla. */
@media (min-width: 821px) {
  .site-header {
    min-height: 120px !important;
    height: 120px !important;
    padding: 8px 6vw !important;
  }

  .brand img {
    width: 170px !important;
  }

  .main-nav {
    gap: 48px !important;
    font-size: 20px !important;
  }

  .main-nav a {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
  }

  .main-nav .nav-whatsapp {
    padding: 18px 30px !important;
    border-radius: 12px !important;
  }

  .approved-hero {
    height: calc(100vh - 120px) !important;
    min-height: 0 !important;
    max-height: none !important;
  }
}
