/* Metrocuadrado home — visual 1:1 from live screenshots + site CSS tokens */

:root {
  --primary: #ff5f00;
  --ink: #151718;
  --ink-2: #262829;
  --gray-70: #383e42;
  --gray-50: #b2b9bd;
  --bg-gray: #f5f5f5;
  --success: #008f56;
  --white: #fff;
  --max: 1232px;
  --header-h: 64px;
  --font: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-2);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

/* ===== Top billboard ===== */
.top-billboard {
  background: #fff;
  border-bottom: 1px solid #eee;
}

.billboard-inner {
  width: min(960px, 100%);
  margin: 0 auto;
  min-height: 90px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 16px;
}

.billboard-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.billboard-brand strong {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #222;
  max-width: 90px;
  line-height: 1.2;
}

.billboard-brand img {
  width: 56px;
  height: 70px;
  object-fit: cover;
}

.billboard-copy {
  margin: 0;
  flex: 1;
  font-size: 14px;
  color: #111;
  font-weight: 500;
}

.billboard-copy b { font-weight: 700; }

.billboard-tags {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.tag-green { background: #008f56; color: #fff; }
.tag-yellow { background: #e8ad43; color: #111; }

.billboard-cta {
  flex-shrink: 0;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 2px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.header-inner {
  height: 100%;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.logo-mark {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-text b { font-weight: 700; }

.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 16px;
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-dropdown { position: relative; }

.nav-item {
  border: 0;
  background: none;
  color: var(--gray-70);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 10px;
}

.nav-item:hover,
.nav-item.is-open { color: var(--primary); }
.chev { font-size: 10px; margin-left: 2px; display: inline-block; transition: transform .2s ease; }
.nav-item.is-open .chev,
.drawer-collapse.is-open .chev { transform: rotate(180deg); }

.mega-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  padding: 8px 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  z-index: 120;
}

.mega-panel.is-open { display: block; }

.mega-link {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--gray-70);
}

.mega-link:hover {
  background: #f5f5f5;
  color: var(--primary);
}

.site-header.is-scrolled {
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}

/* Mobile drawer */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0;
  background: rgba(0,0,0,.35);
  z-index: 90;
}
.drawer-overlay.is-open { display: block; }

.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  bottom: 0;
  width: min(320px, 86vw);
  background: #fff;
  z-index: 95;
  padding: 16px;
  overflow: auto;
  transform: translateX(-105%);
  transition: transform .25s ease;
  border-right: 1px solid #e5e7eb;
}
.mobile-drawer.is-open { transform: translateX(0); }

.drawer-collapse {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0;
  background: none;
  padding: 14px 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}

.drawer-links {
  display: none;
  flex-direction: column;
  padding: 4px 0 12px;
}
.drawer-links.is-open { display: flex; }
.drawer-links .mega-link { padding: 10px 8px; }

.drawer-login {
  margin: 16px 0 12px;
  width: 100%;
  justify-content: flex-start;
}

.menu-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.is-open span:nth-child(2) { opacity: 0; }
.menu-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-btn span { transition: transform .2s ease, opacity .2s ease; }

.nav-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  color: var(--gray-70);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px;
}

.btn-publish {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  border-radius: 2px;
  background: transparent;
  white-space: nowrap;
}

.btn-publish:hover { background: rgba(255, 95, 0, 0.06); }

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
  order: -1;
}

.menu-btn span {
  display: block;
  height: 2px;
  background: var(--gray-70);
  margin: 5px 0;
}

/* ===== Hero ===== */
.hero-parent {
  position: relative;
  display: flex;
  justify-content: flex-end;
  max-width: 100%;
  min-height: 788px;
  background: #e8dfd2;
}

.hero-image {
  height: 788px;
  width: 50%;
  max-width: 50%;
  flex: 0 0 50%;
  object-fit: cover;
  object-position: center;
}

.hero-search-wrap {
  position: absolute;
  inset: 0;
  background: transparent;
  width: 100%;
  min-height: 788px;
}

.hero-search-limit {
  max-width: var(--max);
  margin: 24px auto 0;
  height: 100%;
}

.search-panel {
  max-width: 604px;
  height: 740px;
  background: #fff;
  border-radius: 2px;
}

.search-form-block {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 332px;
  padding: 0.5rem 1rem;
}

.hero-title {
  margin: 0 0 8px;
  color: var(--ink);
  font-weight: 700;
  font-size: 38px;
  line-height: 48px;
  text-align: left;
  min-height: 96px;
}

.hero-title b {
  color: var(--primary);
  font-weight: 700;
}

#tiWord {
  display: inline-block;
  min-width: 1ch;
}

.row-place-offer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 1rem;
}

.field { position: relative; width: 100%; }
.field-location, .field-select { width: 49%; }

.field-location {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  border: 1px solid var(--gray-70);
  border-radius: 2px;
  background: #fff;
  padding: 0 8px;
  position: relative;
}

.field-location:focus-within,
.field-location:hover { border-color: var(--primary); }

.field-location:focus-within {
  box-shadow: 0 0 0 1px var(--primary);
}

.field-location input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
  color: var(--ink-2);
  min-width: 0;
}

.field-location input::placeholder { color: var(--gray-50); }
.field-icon { display: flex; flex-shrink: 0; }

.field-clear {
  border: 0;
  background: none;
  color: var(--gray-70);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
.field-clear:hover { background: #f2f4f6; }

.suggest-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 40;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  max-height: 280px;
  overflow: auto;
}

.suggest-menu li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
}
.suggest-menu li:hover { background: #f2f4f6; }

.suggest-pin {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 21s7-5.4 7-11a7 7 0 1 0-14 0c0 5.6 7 11 7 11Z' stroke='%23FF5F00' stroke-width='1.6'/%3E%3Ccircle cx='12' cy='10' r='2.5' stroke='%23FF5F00' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat;
}

.suggest-text { display: flex; flex-direction: column; min-width: 0; }
.suggest-text strong { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.suggest-text small { font-size: 12px; color: var(--gray-50); }
.suggest-empty {
  padding: 14px;
  color: var(--gray-50);
  font-size: 13px;
  cursor: default;
}

.select-trigger {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--gray-70);
  border-radius: 2px;
  background: #fff;
  padding: 0 8px;
  cursor: pointer;
  color: var(--ink-2);
  text-align: left;
  font-size: 15px;
}

.select-trigger span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.select-trigger.is-success { border-color: var(--success); }
.select-trigger:hover { border-color: var(--primary); }
.select-trigger[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.select-trigger .chevron { transition: transform .2s ease; flex-shrink: 0; }

.field-property { margin-top: 4px; }

.select-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 30;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  max-height: 260px;
  overflow: auto;
}

.select-menu li {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 14px;
  border-bottom: 1px solid #f2f4f6;
}

.select-menu li:last-child { border-bottom: 0; }
.select-menu li:hover,
.select-menu li.is-selected { background: #f2f4f6; }

.search-actions {
  display: flex;
  flex-direction: row;
  white-space: nowrap;
  margin-top: 8px;
  margin-bottom: 6px;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 2px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  order: 1;
}

.btn-primary:hover { filter: brightness(0.95); }

.btn-tertiary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  order: 2;
}

.btn-tertiary:hover { text-decoration: underline; }

.search-by-code {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 16px;
  min-height: 220px;
}

.search-by-code[hidden],
.search-form-block[hidden] {
  display: none !important;
}

.code-title { margin: 0; font-size: 18px; font-weight: 600; }

.code-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.code-row input {
  flex: 1;
  height: 48px;
  border: 1px solid var(--gray-70);
  border-radius: 2px;
  padding: 0 12px;
  font-size: 16px;
}

.code-row input:focus {
  outline: none;
  border-color: var(--primary);
}

.code-row input.is-error {
  border-color: #e00031;
}

.code-error {
  margin: 0;
  color: #e00031;
  font-size: 13px;
}

.btn-back {
  border: 0;
  background: none;
  color: var(--gray-70);
  font-weight: 600;
  cursor: pointer;
  width: fit-content;
  padding: 0;
  height: 48px;
}

/* Quick cards */
.quick-cards {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #fff;
  width: 100%;
}

.card-btn {
  display: flex;
  border: 1px solid #383e42;
  padding: 10px;
  min-height: 77px;
  height: 77px;
  background: #fff;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.card-btn:hover { border-color: var(--primary); }

.card-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: #f5f5f5;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px;
}

.icon-map {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 21s6-5 6-10a6 6 0 1 0-12 0c0 5 6 10 6 10Z' stroke='%23FF5F00' stroke-width='1.6'/%3E%3Ccircle cx='12' cy='11' r='2.2' stroke='%23FF5F00' stroke-width='1.6'/%3E%3Ccircle cx='17' cy='7' r='3.2' stroke='%23FF5F00' stroke-width='1.4'/%3E%3Cpath d='m18.6 8.6-1.2-1.2' stroke='%23FF5F00' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
}
.icon-credit {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4 20V9l8-5 8 5v11H4Z' stroke='%23FF5F00' stroke-width='1.5'/%3E%3Ccircle cx='12' cy='13' r='3' stroke='%232B6CB0' stroke-width='1.4'/%3E%3Cpath d='M12 11.5v3M10.7 13h2.6' stroke='%232B6CB0' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E");
}
.icon-alarm {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 3 4 7v5c0 5 3.5 8.5 8 9 4.5-.5 8-4 8-9V7l-8-4Z' stroke='%23FF5F00' stroke-width='1.5'/%3E%3Crect x='10' y='11' width='4' height='5' rx='1' stroke='%23FF5F00' stroke-width='1.4'/%3E%3Cpath d='M12 11V9.5' stroke='%23FF5F00' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
}
.icon-bank {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4 10h16M6 10v8M10 10v8M14 10v8M18 10v8M3 18h18M12 4l9 6H3l9-6Z' stroke='%23FF5F00' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.card-text { flex: 1; color: var(--gray-70); min-width: 0; }
.card-text h6 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
}
.card-text p { margin: 0; font-size: 13px; }
.card-arrow {
  color: var(--primary);
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  font-weight: 600;
}
.br-desktop { display: inline; }

/* Mobile publish */
.mobile-publish {
  display: none;
  justify-content: center;
  align-items: center;
  height: 48px;
  margin: 8px 0 4px;
}

.btn-publish-full {
  width: 328px;
  max-width: calc(100% - 32px);
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #262829;
  color: #fff;
  font-weight: 600;
  border-radius: 2px;
}

/* Properties */
.properties { padding: 24px 0 40px; background: #fff; }
.prop-section { margin-bottom: 40px; }

.prop-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 16px;
}

.prop-head h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
}

.prop-head p {
  margin: 4px 0 0;
  color: var(--gray-70);
  font-size: 14px;
}

.see-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.prop-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 296px);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.prop-card {
  scroll-snap-align: start;
  border: 1px solid #e5e7eb;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  display: block;
  color: inherit;
  transition: box-shadow .15s ease, transform .15s ease;
}

.prop-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.prop-media {
  aspect-ratio: 16 / 10;
  background: #d9d9d9;
  overflow: hidden;
}

.prop-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prop-body { padding: 12px; }

.prop-badge {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.prop-price {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.prop-meta {
  margin: 6px 0;
  font-size: 13px;
  color: var(--gray-70);
}

.prop-loc {
  margin: 0;
  font-size: 13px;
  color: var(--gray-50);
}

/* Herramientas */
.herramientas {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: end;
  height: 950px;
  padding: 0 25px;
  background: #fff;
}

.herramientas-inner {
  display: flex;
  flex-direction: column;
  max-width: var(--max);
  width: 100%;
}

.herramientas-title {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: baseline;
  font-size: 40px;
  font-weight: 700;
  color: var(--ink);
  padding: 5px;
}

.herramientas-title p {
  margin: 0;
  font-size: 40px;
  line-height: 1.1;
}

.herramientas-title b {
  color: var(--primary);
  font-weight: inherit;
}

.herramientas-body {
  display: flex;
  flex-direction: row;
  height: 848px;
  gap: 0.5rem;
  margin-top: 16px;
}

.herramientas-image {
  display: flex;
  width: 608px;
  height: 848px;
  flex-shrink: 0;
}

.herramientas-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.tools-carousel-wrap {
  position: relative;
  width: 612px;
  margin: 0 auto;
  height: 848px;
  display: flex;
  align-items: center;
}

.tools-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
  width: 100%;
  max-height: 848px;
  overflow-y: auto;
  padding: 8px 4px;
  align-content: start;
  scroll-behavior: smooth;
}

.tools-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: var(--gray-70);
}
.tools-prev { left: -18px; }
.tools-next { right: -18px; }
.tools-arrow:hover { border-color: var(--primary); color: var(--primary); }

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  background: #fff;
  height: 200px;
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.tool-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
}

.tool-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 2px;
}

.tool-icon {
  width: 28px;
  height: 28px;
  background: #fff5ee;
  border-radius: 4px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px;
}
.tool-icon-map { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 21s6-5 6-10a6 6 0 1 0-12 0c0 5 6 10 6 10Z' stroke='%23FF5F00' stroke-width='1.6'/%3E%3C/svg%3E"); }
.tool-icon-credit { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4 20V9l8-5 8 5v11H4Z' stroke='%23FF5F00' stroke-width='1.5'/%3E%3C/svg%3E"); }
.tool-icon-purchase_portfolio { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4 10h16M6 10v8M10 10v8M14 10v8M18 10v8M3 18h18M12 4l9 6H3l9-6Z' stroke='%23FF5F00' stroke-width='1.5'/%3E%3C/svg%3E"); }
.tool-icon-security_alarm { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 3 4 7v5c0 5 3.5 8.5 8 9 4.5-.5 8-4 8-9V7l-8-4Z' stroke='%23FF5F00' stroke-width='1.5'/%3E%3C/svg%3E"); }
.tool-icon-search,
.tool-icon-notarial,
.tool-icon-sales,
.tool-icon-price_suggestion {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='11' cy='11' r='7' stroke='%23FF5F00' stroke-width='1.6'/%3E%3Cpath d='m20 20-3.5-3.5' stroke='%23FF5F00' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}

.tool-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  padding-right: 48px;
  white-space: pre-line;
}

.tool-card p {
  margin: 0;
  flex: 1;
  font-size: 13px;
  color: var(--gray-70);
}

.tool-cta {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}

/* SEO / Footer accordions + brand footer (pt-footer recreation) */
.site-footer {
  background: #fff;
  padding: 24px 0 40px;
  border-top: 1px solid #eee;
}

.footer-accordions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 24px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid #eee;
}

.footer-acc {
  min-width: 0;
}

.footer-acc-title {
  display: none;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.footer-acc.is-open .footer-acc-title {
  display: block;
}

.footer-acc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  padding: 0;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.footer-acc-toggle .chev {
  color: var(--primary);
  font-size: 11px;
  transition: transform .2s ease;
}

.footer-acc.is-open .footer-acc-toggle .chev {
  transform: rotate(180deg);
}

.footer-acc-panel {
  display: none;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  max-height: 280px;
  overflow: auto;
}

.footer-acc.is-open .footer-acc-panel { display: flex; }

.footer-acc-panel a {
  font-size: 13px;
  color: var(--gray-70);
  line-height: 1.35;
}

.footer-acc-panel a:hover { color: var(--primary); }

.footer-main {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1.5fr;
  gap: 32px;
  align-items: start;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-logo-mark {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.footer-offices h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.footer-offices p {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.45;
}

.footer-offices a {
  color: inherit;
}

.footer-apps-title,
.footer-social-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.footer-social-title { margin-top: 18px; }

.app-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.app-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 8px;
  overflow: hidden;
  transition: opacity .15s ease;
}

.app-badge:hover { opacity: .92; }

.app-badge img {
  display: block;
  width: 143px;
  height: auto;
}

.social-row {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #111;
}

.social-row a {
  display: inline-flex;
  color: #111;
}

.social-row a:hover { color: var(--primary); }

/* ===== < 1232px ===== */
@media (max-width: 1231px) {
  .top-billboard .billboard-tags { display: none; }
  .billboard-copy { font-size: 12px; }

  .hero-parent {
    min-height: auto;
    background: #fff;
    justify-content: flex-start;
  }

  .hero-image { display: none; }

  .hero-search-wrap {
    position: relative;
    background: #fff;
    min-height: auto;
  }

  .hero-search-limit { margin-top: 0; }

  .search-panel {
    max-width: 100%;
    height: auto;
  }

  .search-form-block { min-height: auto; }

  .hero-title {
    font-size: 28px;
    line-height: 34px;
    min-height: 68px;
  }

  .row-place-offer {
    flex-direction: column;
  }

  .field-location,
  .field-select { width: 100%; }

  .btn-primary { order: 2; }
  .btn-tertiary { order: 1; }

  .quick-cards {
    background: #f5f5f5;
    padding: 2rem 1rem;
  }

  .br-desktop { display: none; }

  .mobile-publish { display: flex; }

  .herramientas {
    height: auto;
    margin-top: 20px;
    align-items: stretch;
  }

  .herramientas-title {
    font-size: 25px;
  }

  .herramientas-title p { font-size: 25px; }

  .herramientas-body {
    flex-direction: column;
    height: auto;
    align-items: center;
  }

  .herramientas-image { display: none; }

  .tools-carousel-wrap {
    width: 100%;
    max-width: 330px;
    height: auto;
    margin: 0 auto;
  }

  .tools-grid {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 330px;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .tools-arrow { display: none !important; }

  .tool-card { height: auto; min-height: 160px; }

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

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

  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ===== Mobile ===== */
@media (max-width: 767px) {
  .menu-btn { display: block; }

  .header-inner {
    justify-content: space-between;
    width: calc(100% - 24px);
    gap: 8px;
  }

  .logo {
    margin-left: auto;
    gap: 6px;
  }

  .logo-mark {
    width: 24px;
    height: 24px;
  }

  .logo-text {
    font-size: 15px;
  }

  .header-nav { display: none; }

  .mobile-drawer { display: flex; flex-direction: column; }
  .mobile-drawer .btn-publish { width: 100%; text-align: center; }

  .mega-panel { display: none !important; }

  .card-btn {
    min-height: 84px;
    height: auto;
  }

  .card-text p { display: none; }

  .card-text h6 {
    font-size: 16px;
    line-height: 22px;
  }

  .hero-title {
    font-size: 22px;
    line-height: 30px;
  }

  .search-actions { width: 100%; }
  .search-actions .btn-primary { flex: 1; }

  .prop-head h2 { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-accordions { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .top-billboard .billboard-inner {
    flex-wrap: wrap;
    min-height: auto;
    gap: 8px;
  }
  .top-billboard .billboard-cta {
    width: 100%;
  }
  .billboard-brand img { display: none; }
}

@media (max-width: 440px) {
  .hero-title {
    font-size: 18px;
    line-height: 26px;
    min-height: 52px;
  }

  .herramientas-title p { font-size: 18px; }
}
