:root {
  --blue-900: #0b3154;
  --blue-800: #123f68;
  --blue-700: #164e7f;
  --ink: #1f2933;
  --muted: #667085;
  --line: #d9dee7;
  --soft: #f2f5f8;
  --white: #ffffff;
  --gold: #c99b32;
  --gold-dark: #a57c21;
  --shadow: 0 18px 45px rgba(15, 47, 79, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

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

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 12px 56px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(217, 222, 231, 0.8);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 158px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.brand-mark-clean {
  width: 54px;
  height: 48px;
  border-radius: 0;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-logo-text {
  gap: 0;
  line-height: 0.9;
}

.brand-first,
.brand-last {
  color: var(--blue-900);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}

.brand-first {
  font-size: 0.86rem;
}

.brand-last {
  font-size: 1.24rem;
}

.brand-name {
  color: var(--blue-900);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.brand-role {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.site-nav a,
.header-action {
  border-radius: 8px;
}

.site-nav a {
  padding: 10px 12px;
  color: #3d4754;
  font-size: 0.95rem;
  font-weight: 650;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--blue-900);
  background: var(--soft);
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  color: var(--white);
  background: var(--blue-800);
  font-weight: 800;
}

.header-action:hover,
.header-action:focus-visible {
  background: var(--blue-900);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 10px;
}

.header-action-button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.admin-user-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  color: var(--blue-900);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 850;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--blue-900);
}

.section {
  padding: 92px 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
  align-items: center;
  gap: 58px;
  min-height: calc(100vh - 76px);
  background:
    linear-gradient(90deg, rgba(242, 245, 248, 0.8), rgba(255, 255, 255, 0)),
    var(--white);
}

.hero-copy,
.section-heading,
.split-section,
.proof-band,
.service-grid,
.trust-grid,
.property-grid,
.cta-section,
.contact-section,
.site-footer {
  width: min(100%, 1180px);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue-700);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  color: var(--blue-900);
  font-size: 4rem;
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  color: var(--blue-900);
  font-size: 2.45rem;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  color: var(--blue-900);
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 30px;
  color: #4a5563;
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 850;
  text-align: center;
}

.button-primary {
  color: var(--white);
  background: var(--blue-800);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--blue-900);
}

.button-secondary {
  color: var(--blue-900);
  background: var(--white);
  border-color: var(--line);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--blue-800);
}

.button-light {
  color: var(--blue-900);
  background: var(--white);
}

.hero-media {
  min-height: 620px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
  object-position: center top;
}

.proof-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: -34px;
  background: var(--blue-900);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.proof-item {
  padding: 26px 28px;
  color: var(--white);
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.proof-item:last-child {
  border-right: 0;
}

.proof-item span {
  display: block;
  margin-bottom: 6px;
  color: #d8e4ef;
  font-size: 0.85rem;
  font-weight: 750;
  text-transform: uppercase;
}

.proof-item strong {
  display: block;
  font-size: 1.2rem;
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: start;
}

.section-text p,
.resource-list p,
.trust-grid p,
.service-card p,
.property-body p,
.contact-copy p,
.cta-section p {
  color: #4f5c6b;
}

.muted {
  background: var(--soft);
}

.section-heading {
  margin-bottom: 42px;
}

.section-heading h2 {
  max-width: 850px;
  margin-bottom: 0;
}

.section-heading.compact h2 {
  max-width: 760px;
}

.section-heading.with-actions {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

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

.service-card,
.trust-grid article,
.property-card,
.resource-list article,
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-card {
  min-height: 280px;
  padding: 28px;
}

.service-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 26px;
  color: var(--blue-900);
  background: #e5edf4;
  border-radius: 8px;
  font-weight: 900;
}

.service-card a,
.property-body a,
.contact-lines a {
  color: var(--blue-800);
  font-weight: 850;
}

.service-card a:hover,
.property-body a:hover,
.contact-lines a:hover {
  color: var(--gold-dark);
}

.property-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.property-card-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.property-card-actions a:first-child {
  color: var(--white);
  background: var(--blue-800);
  border-color: var(--blue-800);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.trust-grid article {
  min-height: 210px;
  padding: 24px;
}

.property-section-lead {
  width: min(100%, 1180px);
  margin: -10px auto 14px;
  color: var(--muted);
  font-size: 1.02rem;
}

.property-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  width: min(100%, 1180px);
  margin: 0 auto 28px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.property-filters.is-collapsed {
  display: none;
}

.property-filters label {
  display: grid;
  gap: 7px;
  margin: 0;
  color: var(--blue-900);
  font-size: 0.9rem;
  font-weight: 850;
}

.property-filters select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.property-filters select:focus {
  outline: 3px solid rgba(22, 78, 127, 0.16);
  border-color: var(--blue-700);
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.property-card {
  overflow: hidden;
}

.property-card-featured {
  border-color: rgba(199, 154, 43, 0.48);
  box-shadow: 0 20px 42px rgba(18, 63, 104, 0.12);
}

.property-card[hidden] {
  display: none;
}

.property-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.property-body {
  padding: 24px;
}

.property-body span,
.resource-list span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.property-location {
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 750;
  text-transform: capitalize;
}

.property-price {
  margin-bottom: 16px;
  color: var(--blue-900) !important;
  font-size: 1.15rem;
  font-weight: 900;
}

.property-featured-note {
  width: fit-content;
  margin: -2px 0 14px;
  padding: 6px 10px;
  color: #6b4a00;
  background: #fff4d6;
  border: 1px solid #f1d48b;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 900;
}

.catalog-more-actions {
  display: flex;
  justify-content: start;
  width: min(100%, 1180px);
  margin: 0 auto 18px;
}

.catalog-more-actions .button {
  width: auto;
}

.property-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 18px 0;
  list-style: none;
}

.property-specs li {
  padding: 6px 10px;
  color: var(--blue-900);
  background: var(--soft);
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 800;
}

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

.property-thumb-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.empty-state {
  margin: 0;
  color: var(--muted);
}

.resource-list {
  display: grid;
  gap: 14px;
}

.resource-list article {
  padding: 24px;
}

.resource-list h3 {
  margin-bottom: 8px;
}

.resource-list p {
  margin-bottom: 0;
}

.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 16px;
  margin-bottom: 16px;
  padding: 44px 48px;
  color: var(--white);
  background: var(--blue-900);
  border-radius: 8px;
}

.cta-section h2,
.cta-section .eyebrow,
.cta-section p {
  color: var(--white);
}

.cta-section h2 {
  max-width: 760px;
  margin-bottom: 12px;
}

.cta-section p {
  margin-bottom: 0;
  opacity: 0.88;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  align-items: start;
}

.contact-lines {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.contact-option {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  color: var(--blue-900);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-option:hover,
.contact-option:focus-visible {
  border-color: var(--blue-800);
  box-shadow: var(--shadow);
}

.contact-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: var(--blue-800);
  border-radius: 8px;
  font-size: 1.15rem;
  font-weight: 900;
}

.contact-option strong,
.contact-option small {
  display: block;
}

.contact-option strong {
  color: var(--blue-900);
  font-weight: 900;
}

.contact-option small {
  color: var(--muted);
  font-weight: 750;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--blue-900);
  font-weight: 850;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(22, 78, 127, 0.16);
  border-color: var(--blue-700);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 38px 56px 46px;
  border-top: 1px solid var(--line);
}

.site-footer img {
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  border-radius: 0;
  object-fit: contain;
}

.site-footer p {
  margin: 0 0 4px;
  color: var(--blue-900);
  font-weight: 900;
}

.site-footer span,
.copyright {
  color: var(--muted);
}

.site-footer div:nth-child(2) {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-content: start;
  justify-content: end;
}

.site-footer a {
  color: var(--blue-900);
  font-weight: 800;
}

.copyright {
  grid-column: 1 / -1;
  font-size: 0.9rem;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    linear-gradient(135deg, rgba(18, 63, 104, 0.08), rgba(199, 154, 43, 0.08)),
    var(--soft);
}

.login-screen.is-hidden {
  display: none;
}

.private-app.is-locked {
  display: none;
}

.login-card {
  display: grid;
  gap: 18px;
  width: min(100%, 460px);
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-card img {
  width: 62px;
  height: 62px;
  margin-bottom: 18px;
  border-radius: 8px;
  object-fit: cover;
}

.login-card h1 {
  margin-bottom: 12px;
  font-size: 2.2rem;
}

.login-card p {
  color: var(--muted);
}

.login-card label {
  display: grid;
  gap: 7px;
  color: var(--blue-900);
  font-weight: 850;
}

.login-card input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
}

.login-card input:focus {
  outline: 3px solid rgba(22, 78, 127, 0.16);
  border-color: var(--blue-700);
}

.login-error {
  min-height: 20px;
  margin: -6px 0 0;
  color: #9f1239 !important;
  font-weight: 850;
}

.admin-shell {
  padding: 72px 56px 92px;
  background: var(--soft);
}

.admin-intro,
.admin-layout {
  width: min(100%, 1180px);
  margin: 0 auto;
}

.admin-intro {
  margin-bottom: 38px;
}

.admin-intro h1 {
  max-width: 850px;
  margin-bottom: 18px;
  font-size: 3.2rem;
}

.admin-intro p {
  max-width: 820px;
  color: #4f5c6b;
  font-size: 1.1rem;
}

.admin-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 1180px);
  margin: 0 auto 24px;
}

.admin-kpis article {
  display: grid;
  gap: 6px;
  min-height: 132px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.admin-kpis span,
.system-module-grid span {
  color: var(--gold-dark);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-kpis strong {
  color: var(--blue-900);
  font-size: 2rem;
  line-height: 1;
}

.admin-kpis small {
  color: var(--muted);
  font-weight: 750;
}

.admin-overview {
  width: min(100%, 1180px);
  margin: 0 auto 24px;
  padding: 22px;
}

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

.admin-overview-head h2 {
  margin-bottom: 0;
  font-size: 1.6rem;
}

.catalog-counts,
.status-tabs,
.catalog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-counts span {
  padding: 7px 10px;
  color: var(--blue-900);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 850;
}

.status-tabs {
  margin-bottom: 16px;
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.catalog-search {
  display: grid;
  gap: 6px;
  min-width: min(100%, 360px);
  flex: 1 1 360px;
  color: var(--blue-900);
  font-size: 0.86rem;
  font-weight: 850;
}

.catalog-search input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.catalog-search input:focus {
  outline: 3px solid rgba(22, 78, 127, 0.16);
  border-color: var(--blue-700);
}

.import-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 16px;
  color: var(--blue-900);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 850;
}

.import-control:hover,
.import-control:focus-within {
  border-color: var(--blue-800);
}

.import-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.status-tabs button,
.catalog-actions button,
.catalog-actions a {
  min-height: 36px;
  padding: 0 12px;
  color: var(--blue-900);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 850;
}

.status-tabs button.active,
.status-tabs button:hover,
.status-tabs button:focus-visible,
.catalog-actions button:hover,
.catalog-actions button:focus-visible,
.catalog-actions a:hover,
.catalog-actions a:focus-visible {
  color: var(--white);
  background: var(--blue-800);
  border-color: var(--blue-800);
}

.catalog-table {
  display: grid;
  gap: 10px;
}

.catalog-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto minmax(240px, auto);
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.catalog-row > img {
  width: 74px;
  height: 74px;
  border-radius: 8px;
  object-fit: cover;
}

.catalog-main {
  display: grid;
  gap: 3px;
}

.catalog-main strong {
  color: var(--blue-900);
}

.catalog-main span,
.catalog-main small {
  color: var(--muted);
  text-transform: capitalize;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  color: var(--blue-900);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 900;
}

.status-publicada,
.status-reservada {
  color: var(--white);
  background: var(--blue-800);
  border-color: var(--blue-800);
}

.status-archivada,
.status-pausada {
  color: #4b5563;
  background: #e5e7eb;
}

.status-vendida,
.status-alquilada {
  color: #6b4a00;
  background: #fff4d6;
  border-color: #f1d48b;
}

.admin-system-map {
  width: min(100%, 1180px);
  margin: 0 auto 24px;
  padding: 22px;
}

.admin-system-map h2 {
  margin-bottom: 18px;
  font-size: 1.6rem;
}

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

.system-module-grid article {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.system-module-grid h3 {
  margin: 0;
  color: var(--blue-900);
  font-size: 1.05rem;
}

.system-module-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: start;
}

.admin-form,
.admin-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 24px;
}

.admin-form fieldset {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.admin-form legend {
  margin-bottom: 2px;
  color: var(--blue-900);
  font-size: 1.05rem;
  font-weight: 900;
}

.admin-form label {
  display: grid;
  gap: 7px;
  color: var(--blue-900);
  font-size: 0.92rem;
  font-weight: 850;
}

.admin-form .checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 45px;
  padding: 11px 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-form .checkbox-field input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  padding: 0;
}

.admin-form .checkbox-field span {
  color: var(--blue-900);
  font-weight: 900;
}

.field-help {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.upload-summary {
  display: grid;
  gap: 4px;
  min-height: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.upload-summary strong {
  color: var(--blue-900);
}

.upload-summary span {
  overflow-wrap: anywhere;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--white);
}

.admin-form textarea {
  resize: vertical;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  outline: 3px solid rgba(22, 78, 127, 0.16);
  border-color: var(--blue-700);
}

.full-field,
.form-actions {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.form-actions.stacked {
  display: grid;
}

.admin-side {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 18px;
}

.admin-panel {
  padding: 20px;
}

.admin-panel h2 {
  margin-bottom: 16px;
  font-size: 1.28rem;
}

.property-card-preview {
  box-shadow: none;
}

.saved-list {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.saved-property {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.saved-property strong,
.saved-property span {
  display: block;
}

.saved-property strong {
  color: var(--blue-900);
}

.saved-property span {
  color: var(--muted);
  font-size: 0.86rem;
  text-transform: capitalize;
}

.saved-actions {
  display: flex;
  gap: 8px;
}

.saved-actions button {
  min-height: 34px;
  padding: 0 12px;
  color: var(--blue-900);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 850;
}

.saved-actions button:hover,
.saved-actions button:focus-visible {
  border-color: var(--blue-800);
}

.property-detail-shell {
  padding: 58px 56px 92px;
  background: var(--soft);
}

.detail-hero,
.detail-content,
.detail-section {
  width: min(100%, 1180px);
  margin: 0 auto;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 28px;
  align-items: start;
}

.detail-gallery,
.detail-summary,
.detail-section {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.detail-gallery {
  padding: 14px;
}

.detail-main-image {
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 8px;
  object-fit: cover;
  background: var(--soft);
}

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.detail-thumbs button {
  padding: 0;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
}

.detail-thumbs button.active,
.detail-thumbs button:hover,
.detail-thumbs button:focus-visible {
  border-color: var(--blue-800);
}

.detail-thumbs img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.detail-summary {
  position: sticky;
  top: 94px;
  padding: 28px;
}

.detail-summary h1 {
  margin-bottom: 8px;
  font-size: 2.4rem;
}

.detail-zone {
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 750;
}

.detail-price {
  margin-bottom: 22px;
  color: var(--blue-900);
  font-size: 2rem;
  font-weight: 950;
}

.detail-private-note {
  padding: 12px;
  color: #6b4a00;
  background: #fff4d6;
  border: 1px solid #f1d48b;
  border-radius: 8px;
  font-weight: 750;
}

.detail-specs,
.detail-data-panel dl {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
}

.detail-specs div,
.detail-data-panel dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  background: var(--soft);
  border-radius: 8px;
}

.detail-specs dt,
.detail-data-panel dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-specs dd,
.detail-data-panel dd {
  margin: 0;
  color: var(--blue-900);
  font-weight: 900;
  text-align: right;
  text-transform: capitalize;
}

.detail-whatsapp {
  width: 100%;
}

.detail-secondary-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  margin-top: 24px;
}

.detail-section {
  padding: 28px;
}

.detail-section h2 {
  font-size: 1.6rem;
}

.detail-section p {
  color: #4f5c6b;
}

.detail-video {
  width: 100%;
  max-height: 680px;
  border-radius: 8px;
  background: #000;
}

.detail-empty {
  width: min(100%, 900px);
  margin: 0 auto;
  padding: 72px 28px;
  text-align: center;
}

@media (max-width: 1060px) {
  .site-header {
    grid-template-columns: auto auto;
    padding: 12px 24px;
  }

  .brand {
    min-width: 0;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .site-nav,
  .header-action,
  .header-actions {
    display: none;
  }

  .site-header.nav-open .site-nav {
    display: grid;
    grid-column: 1 / -1;
    gap: 2px;
    padding: 12px 0 4px;
  }

  .site-header.nav-open .header-action {
    display: inline-flex;
    grid-column: 1 / -1;
    width: 100%;
  }

  .site-header.nav-open .header-actions {
    display: grid;
    grid-column: 1 / -1;
    gap: 8px;
  }

  .site-header.nav-open .admin-user-pill {
    justify-content: center;
    width: 100%;
  }

  .admin-page .site-header {
    grid-template-columns: 1fr;
  }

  .admin-page .site-nav,
  .admin-page .header-actions {
    display: flex;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    justify-content: start;
    width: 100%;
  }

  .admin-page .header-actions .header-action {
    display: inline-flex;
  }

  .section {
    padding: 72px 24px;
  }

  .admin-shell {
    padding: 58px 24px 72px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 58px;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-media {
    min-height: 520px;
  }

  .hero-media img {
    min-height: 520px;
  }

  .proof-band,
  .service-grid,
  .trust-grid,
  .property-grid,
  .admin-kpis,
  .system-module-grid,
  .split-section,
  .contact-section,
  .admin-layout,
  .admin-form {
    grid-template-columns: 1fr;
  }

  .admin-side {
    position: static;
  }

  .catalog-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .catalog-status,
  .catalog-actions {
    grid-column: 1 / -1;
  }

  .catalog-search {
    flex-basis: 100%;
  }

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

  .property-detail-shell {
    padding: 42px 24px 72px;
  }

  .detail-hero,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .detail-summary {
    position: static;
  }

  .detail-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }

  .proof-band {
    margin: 0 24px;
  }

  .proof-item {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .proof-item:last-child {
    border-bottom: 0;
  }

  .section-heading.with-actions,
  .cta-section,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .site-footer div:nth-child(2) {
    justify-content: start;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 68px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-mark-clean {
    width: 48px;
    height: 42px;
  }

  .brand-first {
    font-size: 0.78rem;
  }

  .brand-last {
    font-size: 1.12rem;
  }

  .brand-name {
    font-size: 0.9rem;
  }

  .brand-role {
    font-size: 0.72rem;
  }

  .section {
    padding: 58px 18px;
  }

  .admin-shell {
    padding: 46px 18px 58px;
  }

  .admin-intro h1 {
    font-size: 2.25rem;
  }

  .admin-overview-head {
    align-items: start;
    flex-direction: column;
  }

  .property-detail-shell {
    padding: 32px 18px 58px;
  }

  .detail-summary h1 {
    font-size: 2rem;
  }

  .detail-thumbs {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    gap: 34px;
  }

  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.72rem;
  }

  .hero-lead {
    font-size: 1.02rem;
  }

  .hero-actions,
  .property-filters {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .hero-media,
  .hero-media img {
    min-height: 430px;
  }

  .proof-band {
    margin: 0 18px;
  }

  .service-card,
  .trust-grid article,
  .resource-list article,
  .contact-form,
  .property-body {
    padding: 22px;
  }

  .property-filters {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cta-section {
    margin-left: 18px;
    margin-right: 18px;
    padding: 32px 22px;
  }

  .site-footer {
    padding: 32px 18px 38px;
  }
}
