.container { width: min(1320px, calc(100% - clamp(32px, 5vw, 80px))); }
html, body { max-width: 100%; overflow-x: clip; }
.section, .hero, .site-header, .footer { width: 100%; }

.property-yield {
  margin: 14px 0 0;
  padding: 10px 12px;
  background: #f0ece2;
  color: #5b4a2b;
  font-size: .78rem;
}

.filters {
  grid-template-columns: repeat(6, minmax(125px, 1fr)) auto;
}

.catalog-modes {
  display: grid;
  grid-template-columns: 1fr 1fr .55fr;
  gap: 10px;
  margin: 0 0 14px;
}

.catalog-mode {
  appearance: none;
  min-height: 76px;
  padding: 14px 18px;
  border: 2px solid #19282c;
  border-radius: 5px;
  background: #fff;
  color: #19282c;
  font-family: Arial, sans-serif;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.catalog-mode.is-active {
  color: #fff;
  background: #19282c;
  border-color: #19282c;
  box-shadow: inset 5px 0 0 #b9985b;
}

.catalog-mode[data-mode="yield"] { color: #6b4510; background: #fff3d8; border-color: #b9985b; }
.catalog-mode[data-mode="yield"] small { color: #846936; }
.catalog-mode[data-mode="yield"].is-active { color: #fff; background: #9a681f; border-color: #9a681f; box-shadow: inset 5px 0 0 #f1dcae; }
.catalog-mode[data-mode="yield"].is-active small { color: #fff3d8; }

.catalog-mode:hover { transform: translateY(-2px); }
.catalog-mode span { display: block; font-size: .92rem; font-weight: 900; letter-spacing: .055em; text-transform: uppercase; }
.catalog-mode small { display: block; margin-top: 7px; color: #69777a; font-size: .7rem; font-weight: 700; }
.catalog-mode.is-active small { color: #dbe3e3; }
.catalog-mode--all { border-color: #aeb8b7; }
.catalog-mode-label { margin-bottom: 9px; color: #69777a; font-size: .72rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }

.mode-explanation {
  display: grid;
  grid-template-columns: minmax(190px, .35fr) 1fr;
  gap: 24px;
  align-items: start;
  padding: 18px 20px;
  margin-bottom: 20px;
  background: #e9eeec;
  border-left: 3px solid #b9985b;
  color: #526166;
  font-size: .88rem;
}

.mode-explanation strong { color: #19282c; }
.property-mode-note { margin: 12px 0 0; color: #69777a; font-size: .75rem; }

.operator-service {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  margin: -4px 0 22px;
  padding: 18px 20px;
  background: #19282c;
  color: #fff;
  border-radius: 5px;
}

.operator-service strong,
.operator-service span { display: block; }
.operator-service strong { margin-bottom: 3px; color: #d5bd88; }
.operator-service span { font-size: .83rem; color: #dbe3e3; }
.operator-service a { flex: 0 0 auto; color: #fff; font-size: .72rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; text-underline-offset: 4px; }
.hero .trust strong { color: #d5bd88; }
.hero-inventory { display: inline-flex; align-items: center; gap: 11px; margin: 14px 0 18px; padding: 9px 14px 9px 12px; background: rgba(16,28,31,.72); border-left: 3px solid #d5bd88; backdrop-filter: blur(5px); animation: rise .68s .04s both; }
.hero-inventory strong { color: #fff; font: 400 1.7rem/1 Georgia, "Times New Roman", serif; }
.hero-inventory span { color: #dbe3e3; font-size: .68rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { max-width: 980px; font-size: clamp(2.55rem, 4.4vw, 4.8rem); line-height: .98; }
.filter-note { margin: 4px 0 10px; color: #69777a; font-size: .76rem; }
.open-search { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr); gap: 18px; align-items: center; padding: 18px 20px; background: #eef1ef; border: 1px solid #d5d9d7; border-radius: 5px; }
.open-search label { margin: 0 0 3px; color: #19282c; font-size: .9rem; }
.open-search p { margin: 0; color: #69777a; font-size: .74rem; }
.open-search input { min-height: 56px; border-color: #aeb9b6; box-shadow: 0 3px 12px rgba(25,40,44,.06); }
.property-visual { width: 100%; padding: 0; border: 0; cursor: pointer; }
.property-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.property:hover .property-visual img { transform: scale(1.035); }
.property-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,25,29,.08), rgba(12,25,29,.4)); }
.property-visual .property-tag { z-index: 3; }
.generic-image-label { position: absolute; z-index: 3; right: 12px; bottom: 10px; color: #fff; font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.property-detail-panel { width: min(960px, 100%); height: min(820px, 92vh); padding: 0; overflow: hidden; }
.property-detail-layout { display: grid; grid-template-columns: .95fr 1.05fr; height: 100%; min-height: 0; }
.property-detail-media { position: relative; min-height: 100%; background: #19282c; }
.property-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.property-detail-media::after { content: "Imagen genérica"; position: absolute; right: 16px; bottom: 14px; padding: 6px 9px; background: rgba(25,40,44,.86); color: #fff; font-size: .65rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.property-detail-content { padding: 38px; overflow: auto; }
.property-detail-tag { display: inline-block; margin-bottom: 14px; color: #8b6728; font-size: .68rem; font-weight: 900; letter-spacing: .09em; }
.property-detail-content h2 { margin-bottom: 8px; font-size: clamp(1.8rem, 3vw, 2.8rem); }
.property-detail-location { margin-bottom: 18px; color: #69777a; font-size: .82rem; }
.property-detail-description { color: #526166; font-size: .92rem; }
.property-web-description { margin-top: 22px; padding-top: 20px; border-top: 1px solid #d9ddda; }
.property-web-description h3 { margin: 0 0 12px; color: #19282c; font: 400 1.35rem/1.2 Georgia, "Times New Roman", serif; }
.property-web-description p { margin: 0 0 12px; color: #435257; font-size: .86rem; line-height: 1.65; }
.property-web-description p:last-child { margin-bottom: 0; }
.property-characteristics { display: grid; grid-template-columns: 1fr 1fr; margin: 22px 0; border-top: 1px solid #d9ddda; }
.property-characteristics div { padding: 13px 10px 13px 0; border-bottom: 1px solid #d9ddda; }
.property-characteristics span,.property-characteristics strong { display: block; }
.property-characteristics span { color: #69777a; font-size: .65rem; letter-spacing: .05em; text-transform: uppercase; }
.property-characteristics strong { margin-top: 3px; color: #19282c; font-size: .84rem; }
.form-destination { background: #e9eeec; text-align: center; }
.form-destination p { max-width: 650px; margin-inline: auto; color: #526166; }

.buyer-form-section { background: #e9eeec; }
.seller-form-section { display: block; width: 100%; background: #19282c; color: #fff; }
.form-section-layout { display: grid; grid-template-columns: minmax(280px, .78fr) minmax(480px, 1.22fr); gap: clamp(42px, 6vw, 88px); align-items: start; width: min(1320px, calc(100% - 48px)); margin-inline: auto; }
.form-section-layout > * { min-width: 0; }
.form-section-copy { position: sticky; top: 108px; }
.form-section-copy h2 { margin: 10px 0 18px; font-size: clamp(2rem, 4vw, 3.65rem); line-height: 1.02; }
.form-section-copy p { max-width: 500px; color: #526166; line-height: 1.75; }
.form-section-copy ul { margin: 28px 0 0; padding: 0; list-style: none; }
.form-section-copy li { position: relative; padding: 12px 0 12px 24px; border-top: 1px solid rgba(25,40,44,.16); color: #314347; font-size: .82rem; font-weight: 750; }
.form-section-copy li::before { content: ""; position: absolute; left: 1px; top: 18px; width: 8px; height: 8px; background: #b9985b; }
.seller-form-section .form-section-copy h2 { color: #fff; }
.seller-form-section .form-section-copy p,
.seller-form-section .form-section-copy li { color: #dbe3e3; }
.seller-form-section .form-section-copy li { border-color: rgba(255,255,255,.16); }
.fluent-form-shell { width: 100%; max-width: 780px; justify-self: end; padding: clamp(24px, 4vw, 46px); background: #fff; border-top: 4px solid #b9985b; box-shadow: 0 20px 55px rgba(25,40,44,.1); color: #19282c; }
.fluent-form-shell--seller { box-shadow: 0 20px 55px rgba(0,0,0,.22); }

.fluent-form-shell > .fluentform,
.fluent-form-shell .fluentform_wrapper,
.fluent-form-shell .frm-fluent-form,
.fluent-form-shell form { width: 100%; max-width: none; margin: 0; }
.fluent-form-shell .ff-t-container { width: 100%; gap: 16px; }
.fluent-form-shell .ff-t-cell { min-width: 0; }

.fluent-form-shell .ff-el-group { margin-bottom: 20px; }
.fluent-form-shell .ff-el-input--label label,
.fluent-form-shell .ff-preview-label { display: block; margin-bottom: 8px; color: #19282c; font-size: .75rem; font-weight: 850; letter-spacing: .03em; }
.fluent-form-shell input[type="text"],
.fluent-form-shell input[type="tel"],
.fluent-form-shell input[type="email"],
.fluent-form-shell select,
.fluent-form-shell textarea { width: 100%; min-height: 52px; padding: 13px 14px; border: 1px solid #b9c2c0; border-radius: 2px; background: #fff; color: #19282c; font: 400 .88rem/1.4 Arial, sans-serif; }
.fluent-form-shell textarea { min-height: 112px; resize: vertical; }
.fluent-form-shell input:focus,
.fluent-form-shell select:focus,
.fluent-form-shell textarea:focus { outline: 2px solid rgba(185,152,91,.3); border-color: #9a762f; }
.fluent-form-shell .ff-el-form-check { margin: 7px 0; }
.fluent-form-shell .ff-el-form-check label { display: flex; gap: 9px; align-items: flex-start; color: #435257; font-size: .78rem; line-height: 1.45; }
.fluent-form-shell input[type="radio"],
.fluent-form-shell input[type="checkbox"] { width: 17px; height: 17px; accent-color: #19282c; flex: 0 0 auto; }
.fluent-form-shell .ff-btn,
.fluent-form-shell button[type="submit"] { width: 100%; min-height: 54px; padding: 14px 22px; border: 0; border-radius: 2px; background: #19282c; color: #fff; font: 850 .76rem/1 Arial, sans-serif; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.fluent-form-shell .ff-btn:hover,
.fluent-form-shell button[type="submit"]:hover { background: #9a762f; transform: translateY(-1px); }
.ff-preview-form { margin: 0; }
.ff-preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.ff-preview-wide { grid-column: 1 / -1; }
.ff-preview-choices { display: grid; gap: 7px; }
.ff-preview-form a { color: #70531f; text-underline-offset: 3px; }
.ff-preview-hint { margin: -3px 0 8px; color: #69777a; font-size: .7rem; }

@media (max-width: 1100px) {
  .filters { grid-template-columns: repeat(4, 1fr); }
  .form-section-layout { grid-template-columns: minmax(240px, .82fr) minmax(400px, 1.18fr); gap: 38px; }
}

@media (min-width: 1500px) {
  .container { width: min(1320px, calc(100% - 80px)); }
  .properties { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
}

@media (max-width: 900px) {
  .filters { grid-template-columns: repeat(2, 1fr); }
  .catalog-modes { grid-template-columns: 1fr 1fr; }
  .catalog-mode--all { grid-column: 1 / -1; min-height: 58px; }
  .form-section-layout { grid-template-columns: 1fr; }
  .form-section-copy { position: static; }
  .fluent-form-shell { max-width: none; justify-self: stretch; }
}

@media (max-width: 520px) {
  .filters { grid-template-columns: 1fr; }
  .filters .btn { grid-column: auto; }
  .mode-explanation { grid-template-columns: 1fr; gap: 5px; }
  .catalog-modes { grid-template-columns: 1fr; }
  .catalog-mode--all { grid-column: auto; }
  .operator-service { align-items: flex-start; flex-direction: column; gap: 12px; }
  .hero h1 { font-size: clamp(2.15rem, 10.5vw, 3.15rem); line-height: 1.02; }
  .hero-inventory { margin: 11px 0 16px; }
  .hero-inventory strong { font-size: 1.45rem; }
  .open-search { grid-template-columns: 1fr; padding: 16px; }
  .property-detail-layout { grid-template-columns: 1fr; }
  .property-detail-layout { grid-template-rows: 250px minmax(0, 1fr); }
  .property-detail-media { min-height: 250px; }
  .property-detail-content { padding: 26px 20px; }
  .property-characteristics { grid-template-columns: 1fr; }
  .form-section-layout { width: calc(100% - 28px); gap: 28px; }
  .form-section-copy h2 { font-size: clamp(2rem, 10vw, 2.85rem); }
  .form-section-copy p { line-height: 1.62; }
  .form-section-copy ul { margin-top: 20px; }
  .fluent-form-shell { padding: 22px 16px; }
  .fluent-form-shell .ff-t-container { display: block; }
  .fluent-form-shell .ff-t-cell { width: 100% !important; margin: 0 !important; }
  .fluent-form-shell input[type="text"],
  .fluent-form-shell input[type="tel"],
  .fluent-form-shell input[type="email"],
  .fluent-form-shell select,
  .fluent-form-shell textarea { font-size: 16px; }
  .ff-preview-grid { grid-template-columns: 1fr; }
  .ff-preview-wide { grid-column: auto; }
}
