:root {
  --ink: #202625;
  --muted: #606b67;
  --line: #dedbd2;
  --paper: #faf9f6;
  --warm: #f1eee7;
  --brand: #f6c815;
  --brand-dark: #151a1b;
  --olive: #59645f;
  --gold: #9f741c;
  --white: #fff;
  color-scheme: light;
  font-family: Montserrat, "Helvetica Neue", Arial, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  text-rendering: optimizeLegibility;
}

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

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px clamp(18px, 5vw, 72px);
  background: #101414;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
}

.topbar a {
  color: white;
  font-weight: 800;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
  padding: 12px clamp(18px, 5vw, 84px);
  border-bottom: 1px solid rgba(31, 37, 35, 0.08);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.brand img {
  display: block;
  height: 66px;
  width: auto;
  filter: drop-shadow(0 8px 14px rgba(31, 37, 35, 0.12));
}

.main-nav {
  display: flex;
  gap: 28px;
  color: #2e3432;
  font-size: 0.9rem;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 590px;
  display: flex;
  align-items: center;
  padding: clamp(52px, 8vw, 92px) clamp(18px, 5vw, 84px) 72px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(11, 13, 14, 0.90), rgba(11, 13, 14, 0.50)),
    radial-gradient(circle at 78% 30%, rgba(243, 194, 27, 0.20), transparent 28%),
    linear-gradient(135deg, #202728, #716c5d);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.075) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 72px);
  mask-image: linear-gradient(90deg, black, transparent 78%);
}

.hero-overlay {
  position: absolute;
  inset: auto 0 0;
  height: 80px;
  background: linear-gradient(0deg, rgba(247, 246, 243, 0.42), transparent);
}

.hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(980px, 100%);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-family: Montserrat, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
  font-weight: 800;
}

h1 {
  font-size: clamp(2.45rem, 5.5vw, 5.1rem);
  max-width: 920px;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.8rem);
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-copy > p {
  max-width: 720px;
  font-size: 1.04rem;
  color: rgba(255, 255, 255, 0.82);
}

.hero h1,
.hero .eyebrow {
  color: white;
}

.hero .eyebrow {
  color: var(--brand);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 14px;
  padding: 0 8px;
  background: rgba(246, 200, 21, 0.12);
  color: var(--brand);
  font-size: 0.68rem;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(210px, 1.25fr) repeat(4, minmax(112px, 0.65fr)) minmax(126px, 0.72fr) auto;
  gap: 0;
  width: min(100%, 1060px);
  margin: 32px 0 0;
  padding: 6px;
  border: 1px solid rgba(32, 38, 37, 0.09);
  border-radius: 3px;
  background: var(--white);
  box-shadow: 0 16px 36px rgba(32, 38, 37, 0.10);
}

.search-panel input,
.search-panel select,
.inline-contact input,
.property-form input,
.property-form textarea,
.lia-contact input,
.lia-form input {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 0 14px;
  background: var(--white);
  color: var(--ink);
}

.inline-contact input,
.property-form input,
.property-form textarea,
.lia-contact input,
.lia-form input {
  border: 1px solid var(--line);
  border-radius: 3px;
}

.inline-contact input {
  min-height: 46px;
  border-color: rgba(32, 38, 37, 0.13);
  background: rgba(255, 255, 255, 0.86);
}

.search-panel input:last-of-type,
.search-panel select:last-of-type {
  border-right: 0;
}

.search-panel button,
.inline-contact button,
.property-form button,
.lia-form button {
  min-height: 44px;
  border: 0;
  border-radius: 3px;
  padding: 0 20px;
  background: var(--brand);
  color: var(--brand-dark);
  font-weight: 800;
  cursor: pointer;
}

.link-button {
  width: max-content;
  min-height: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-bottom: 2px solid var(--brand);
  border-radius: 0;
  padding: 0 0 3px;
  background: transparent;
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.link-button::after {
  content: "→";
  font-size: 0.95rem;
}

.section {
  padding: 46px clamp(18px, 5vw, 84px) 52px;
  overflow: hidden;
}

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

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

.featured-strip {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  margin-inline: 0;
  padding: 4px 8px 18px 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(155, 116, 42, 0.38) transparent;
}

.featured-strip .property-card {
  min-width: 292px;
  width: 292px;
  scroll-snap-align: start;
}

.featured-wrap {
  position: relative;
}

.carousel-btn {
  position: absolute;
  top: 76px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(32, 38, 37, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(32, 38, 37, 0.16);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

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

.property-card {
  min-height: 0;
  display: grid;
  grid-template-rows: 184px 1fr;
  overflow: hidden;
  border: 1px solid rgba(32, 38, 37, 0.11);
  border-radius: 3px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(31, 37, 35, 0.055);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.property-card:hover {
  border-color: rgba(155, 116, 42, 0.42);
  box-shadow: 0 14px 30px rgba(31, 37, 35, 0.10);
  transform: translateY(-2px);
}

.property-art {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(21, 26, 27, 0.12), rgba(246, 200, 21, 0.18)),
    linear-gradient(45deg, #ded8c6, #9b927b);
  background-size: cover;
  background-position: center;
}

.property-art em {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 2px;
  padding: 5px 8px;
  background: var(--brand);
  color: #161a1b;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.property-art strong {
  position: absolute;
  left: 13px;
  bottom: 12px;
  color: white;
  font-size: 1.08rem;
  font-weight: 900;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.property-body {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 15px 16px 17px;
}

.property-body h3 {
  font-size: 0.9rem;
  min-height: 2.28em;
  line-height: 1.28;
  text-transform: uppercase;
}

.property-body p {
  margin: 0;
  min-height: 3.9em;
  display: -webkit-box;
  overflow: hidden;
  color: #58645f;
  font-size: 0.84rem;
  line-height: 1.55;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.price {
  color: #111;
  font-size: 1.22rem;
  font-weight: 900;
}

.operation-chip {
  width: max-content;
  border-radius: 999px;
  padding: 5px 10px;
  background: #171b1d;
  color: white;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.facts span,
.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--muted);
  font-size: 0.74rem;
  white-space: nowrap;
}

.property-card .facts {
  align-items: center;
  padding-top: 2px;
}

.property-card .facts span {
  background: #fff;
}

.facts:empty {
  display: none;
}

.catalog-page,
.detail-page {
  padding: clamp(24px, 5vw, 58px) clamp(18px, 5vw, 84px);
}

.catalog-head {
  display: grid;
  gap: 8px;
  max-width: 760px;
}

.catalog-page h1 {
  font-size: clamp(2rem, 4vw, 3.35rem);
}

.catalog-toolbar {
  margin: 22px 0 28px;
}

.catalog-toolbar .search-panel {
  width: min(100%, 1040px);
  margin-top: 0;
  border-color: rgba(32, 38, 37, 0.08);
  box-shadow: 0 10px 26px rgba(32, 38, 37, 0.07);
}

.catalog-grid .property-card {
  grid-template-rows: 178px 1fr;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(380px, 0.86fr) minmax(330px, 0.58fr);
  gap: 28px;
  align-items: start;
  max-width: 1540px;
  margin: 0 auto;
}

.detail-media {
  grid-row: span 2;
  display: grid;
  gap: 10px;
}

.side-panel {
  grid-column: 2;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
}

.detail-art {
  min-height: min(48vw, 500px);
  border: 1px solid rgba(32, 38, 37, 0.10);
  border-radius: 4px;
  background:
    linear-gradient(140deg, rgba(23, 27, 29, 0.18), rgba(196, 154, 69, 0.20)),
    linear-gradient(45deg, #e8e3d7, #8f8a7d);
  background-size: cover;
  background-position: center;
}

.detail-section {
  margin-top: 18px;
  padding: 28px 0 4px;
  border-top: 1px solid var(--line);
}

.detail-section h2 {
  margin-bottom: 18px;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

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

.thumb-grid button {
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.thumb-grid button.active {
  border-color: var(--brand-dark);
  outline: 2px solid var(--brand);
}

.detail-copy {
  position: sticky;
  top: 114px;
  display: grid;
  gap: 13px;
  padding: 22px;
  border: 1px solid rgba(32, 38, 37, 0.10);
  border-radius: 4px;
  background: white;
  box-shadow: 0 12px 32px rgba(32, 38, 37, 0.055);
}

.detail-copy h1 {
  font-size: clamp(1.55rem, 2.55vw, 2.45rem);
  line-height: 1.08;
}

.detail-eyebrow {
  margin-bottom: -4px;
}

.detail-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.detail-main-facts {
  margin-top: 0;
}

.detail-description {
  margin: 0;
  color: #4f5b57;
  font-size: 0.9rem;
  line-height: 1.72;
}

.detail-description p {
  max-width: 920px;
  margin: 0 0 12px;
}

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

.info-table {
  display: grid;
  margin: 2px 0 0;
  border-top: 1px solid var(--line);
}

.info-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.85fr) minmax(0, 1.15fr);
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.info-row dt,
.info-row dd {
  margin: 0;
}

.info-row dt {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.info-row dd {
  color: #4f5b57;
  font-size: 0.86rem;
  text-align: right;
}

.amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.amenities span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: white;
  color: var(--muted);
  font-size: 0.78rem;
}

.side-panel {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 18px;
  background: var(--white);
}

.property-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.property-form textarea {
  min-height: 96px;
  padding-top: 12px;
  resize: vertical;
}

.city-section {
  padding: 54px clamp(18px, 5vw, 84px) 66px;
  background: #fff;
}

.city-section h2 {
  max-width: 680px;
  margin-bottom: 26px;
}

.city-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: end;
}

.city-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 8px;
  padding: 22px;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(0deg, rgba(17, 20, 21, 0.76), rgba(17, 20, 21, 0.10)),
    linear-gradient(135deg, #6f746d, #c3a15c);
  background-position: center;
  background-size: cover;
  box-shadow: 0 18px 38px rgba(31, 37, 35, 0.10);
  transition: transform 180ms ease, filter 180ms ease;
}

.city-card:nth-child(even) {
  min-height: 260px;
}

.city-card:hover {
  filter: saturate(1.05);
  transform: translateY(-3px);
}

.city-rosario {
  background-image:
    linear-gradient(0deg, rgba(17, 20, 21, 0.76), rgba(17, 20, 21, 0.14)),
    url("https://images.unsplash.com/photo-1611175694989-4870fafa4494?auto=format&fit=crop&w=900&q=80");
}

.city-funes {
  background-image:
    linear-gradient(0deg, rgba(17, 20, 21, 0.72), rgba(17, 20, 21, 0.06)),
    url("https://images.unsplash.com/photo-1449824913935-59a10b8d2000?auto=format&fit=crop&w=900&q=80");
}

.city-roldan {
  background-image:
    linear-gradient(0deg, rgba(17, 20, 21, 0.72), rgba(17, 20, 21, 0.08)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=900&q=80");
}

.city-san-lorenzo {
  background-image:
    linear-gradient(0deg, rgba(17, 20, 21, 0.76), rgba(17, 20, 21, 0.14)),
    url("https://images.unsplash.com/photo-1500375592092-40eb2168fd21?auto=format&fit=crop&w=900&q=80");
}

.city-card strong {
  font-size: 1.45rem;
}

.city-card span,
.city-card small {
  color: rgba(255, 255, 255, 0.78);
}

.city-card span {
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.service-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: 38px;
  align-items: center;
  padding: 64px clamp(18px, 5vw, 84px);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  min-height: 176px;
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(246, 200, 21, 0.10), transparent 42%),
    white;
  color: var(--ink);
}

.service-card span {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(32, 38, 37, 0.18);
  border-radius: 50%;
  background: var(--brand-dark);
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 900;
}

.service-card strong {
  font-size: 1rem;
  font-weight: 900;
}

.service-card p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
}

.valuation-band {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 56px clamp(18px, 5vw, 72px);
  background: #151a1b;
  color: white;
}

.valuation-band p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.72);
}

.valuation-band .eyebrow {
  color: var(--gold);
}

.light-button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: white;
  font-weight: 900;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 34px;
  align-items: center;
  padding: 46px clamp(18px, 5vw, 84px);
  border-top: 1px solid var(--line);
  background: var(--warm);
}

.inline-contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(32, 38, 37, 0.08);
  background: rgba(255, 255, 255, 0.56);
}

.inline-contact input[name="mensaje"] {
  grid-column: span 2;
}

.inline-contact button {
  width: min(100%, 260px);
  justify-self: start;
}

.state {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
}

.lia-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 232px;
  min-height: 64px;
  border: 0;
  border-radius: 999px;
  padding: 8px 18px 8px 8px;
  background: var(--brand);
  color: var(--brand-dark);
  box-shadow: 0 18px 45px rgba(31, 37, 35, 0.28);
  cursor: pointer;
}

.lia-fab img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(21, 26, 27, 0.18);
}

.lia-fab span {
  display: grid;
  gap: 2px;
  text-align: left;
}

.lia-fab strong {
  font-size: 0.92rem;
  line-height: 1;
}

.lia-fab small {
  color: rgba(21, 26, 27, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
}

.lia-panel {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 31;
  width: min(430px, calc(100vw - 32px));
  height: min(620px, calc(100svh - 124px));
  display: none;
  grid-template-rows: auto 1fr auto auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 28px 70px rgba(31, 37, 35, 0.28);
}

.lia-panel.open {
  display: grid;
}

.lia-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--brand-dark);
  color: white;
}

.lia-head span {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.84rem;
}

.lia-head button {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: transparent;
  color: white;
  cursor: pointer;
}

.lia-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  padding: 14px;
  background: #f7f3ed;
}

.msg {
  max-width: 86%;
  border-radius: 8px;
  padding: 10px 12px;
  line-height: 1.45;
}

.msg.bot {
  align-self: flex-start;
  background: white;
  border: 1px solid var(--line);
}

.msg.user {
  align-self: flex-end;
  background: var(--brand);
  color: white;
}

.lia-contact,
.lia-form {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--line);
}

.lia-contact {
  grid-template-columns: 1fr 1fr;
}

.lia-contact input[name="nombre"] {
  grid-column: span 2;
}

.lia-form {
  grid-template-columns: 1fr auto;
}

@media (max-width: 920px) {
  .detail-hero,
  .contact-band,
  .service-section,
  .valuation-band {
    grid-template-columns: 1fr;
  }

  .detail-media,
  .side-panel {
    grid-column: auto;
    grid-row: auto;
  }

  .detail-copy {
    position: static;
  }

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

  .search-panel {
    grid-template-columns: 1fr 1fr;
    gap: 1px;
  }

  .search-panel input[name="q"] {
    grid-column: span 2;
  }

  .city-grid,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .topbar {
    display: block;
    line-height: 1.6;
  }

  .hero {
    min-height: 610px;
    padding-bottom: 64px;
  }

  .brand img {
    height: 58px;
  }

  .main-nav {
    width: 100%;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 3.6rem);
  }

  .grid,
  .search-panel,
  .inline-contact,
  .lia-contact,
  .city-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .inline-contact input[name="mensaje"],
  .search-panel input[name="q"],
  .lia-contact input[name="nombre"] {
    grid-column: auto;
  }

  .section-head {
    display: block;
  }

  .featured-strip .property-card {
    min-width: min(82vw, 300px);
    width: min(82vw, 300px);
  }

  .carousel-btn {
    top: 72px;
  }

  .thumb-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
