@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600&display=swap");
:root {
  --black: #070707;
  --ink: #171717;
  --gold: #cda73f;
  --gold-light: #eadb9a;
  --paper: #f6f5f1;
  --white: #ffffff;
  --line: rgba(17, 17, 17, 0.14);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
}
button,
select,
input,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}
.topbar {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  width: 100%;
  height: 88px;
  padding: 0 clamp(22px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 7, 7, 0.96);
  border-bottom: 1px solid rgba(205, 167, 63, 0.35);
  backdrop-filter: blur(16px);
}
.brand {
  width: 166px;
  height: 88px;
  padding: 7px 14px;
  display: inline-flex;
  align-items: center;
  background: var(--white);
}
.brand img {
  width: 138px;
  height: 72px;
  object-fit: contain;
  object-position: center;
}
.menu-button {
  width: 72px;
  height: 60px;
  padding: 9px 13px 6px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 1px solid rgba(234, 219, 154, 0.52);
  background: transparent;
  color: var(--white);
  cursor: pointer;
}
.menu-button span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--gold-light);
}
.menu-button small {
  margin-top: 2px;
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--gold-light);
}

.side-menu {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  width: min(440px, 88vw);
  height: 100dvh;
  padding: 26px clamp(28px, 6vw, 58px) 34px;
  display: flex;
  flex-direction: column;
  background: var(--black);
  color: var(--white);
  transform: translateX(-101%);
  transition: transform 360ms cubic-bezier(0.77, 0, 0.18, 1);
  box-shadow: 24px 0 70px rgba(0, 0, 0, 0.32);
}
.side-menu.is-open {
  transform: translateX(0);
}
.side-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #333;
  padding-bottom: 22px;
}
.side-menu-head p {
  margin: 0;
  color: var(--gold-light);
  font-size: 11px;
  letter-spacing: 0.28em;
}
.side-menu-head button {
  width: 46px;
  height: 46px;
  border: 1px solid #555;
  background: transparent;
  color: white;
  font-size: 30px;
  font-weight: 200;
  cursor: pointer;
}
.side-menu nav {
  display: grid;
  margin-top: 34px;
}
.side-menu nav button {
  padding: 19px 0;
  border: 0;
  border-bottom: 1px solid #292929;
  background: transparent;
  color: white;
  text-align: left;
  font-size: clamp(18px, 3vw, 22px);
  cursor: pointer;
  transition:
    color 180ms ease,
    padding 180ms ease;
}
.side-menu nav button:hover {
  padding-left: 9px;
  color: var(--gold-light);
}
.owner-link {
  margin-top: 30px;
  color: var(--gold-light);
  font-size: 13px;
  letter-spacing: 0.08em;
}
.side-signature {
  margin-top: auto;
  color: #737373;
  font-family: Didot, Georgia, serif;
  font-size: 24px;
  line-height: 1.2;
}
.menu-overlay,
.modal-backdrop {
  position: fixed;
  z-index: 50;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.54);
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
  transition:
    opacity 280ms ease,
    visibility 280ms ease;
}
.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.hero {
  min-height: 760px;
  padding: 170px clamp(24px, 7vw, 108px) 92px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: clamp(50px, 9vw, 140px);
  background:
    radial-gradient(
      circle at 74% 28%,
      rgba(205, 167, 63, 0.14),
      transparent 28%
    ),
    linear-gradient(115deg, #050505 0%, #111 58%, #050505 100%);
  color: var(--white);
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
}
.eyebrow.dark {
  color: #8a6d1d;
}
.hero h1,
.section-heading h2,
.about-section h2,
.contact-section h2,
.modal-copy h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(50px, 6vw, 88px);
  line-height: 0.98;
}
.hero-text {
  max-width: 650px;
  margin: 30px 0 34px;
  color: #cfcfcf;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.75;
}
.gold-button {
  padding: 17px 25px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #080808;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease;
}
.gold-button:hover {
  background: transparent;
  color: var(--gold-light);
}
.hero-mark {
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  text-align: center;
  border: 1px solid rgba(205, 167, 63, 0.42);
  outline: 1px solid rgba(205, 167, 63, 0.12);
  outline-offset: 13px;
  border-radius: 50%;
}
.mark-star {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: clamp(80px, 10vw, 142px);
  line-height: 0.72;
}
.hero-mark p {
  margin: 26px 0 8px;
  font-family: Didot, Georgia, serif;
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: 0.14em;
}
.hero-mark small {
  color: #888;
  font-size: 8px;
  letter-spacing: 0.2em;
}

.catalog {
  padding: clamp(76px, 10vw, 140px) clamp(20px, 6vw, 92px);
  background: var(--paper);
}
.section-heading {
  max-width: 1400px;
  margin: 0 auto 48px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(42px, 5vw, 66px);
}
.section-heading > p {
  max-width: 390px;
  margin: 0 0 7px;
  color: #696969;
  line-height: 1.7;
}
.catalog-tools {
  max-width: 1400px;
  margin: 0 auto 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.filter-tabs {
  display: flex;
  align-self: stretch;
}
.filter-tabs button {
  min-width: 118px;
  padding: 22px 25px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.filter-tabs button.active {
  background: var(--black);
  color: var(--gold-light);
}
.sort-control {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #777;
  font-size: 13px;
}
.sort-control select {
  padding: 10px 34px 10px 10px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 650;
  cursor: pointer;
}
.property-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.property-card {
  overflow: hidden;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.09);
  box-shadow: 0 14px 34px rgba(10, 10, 10, 0.055);
}
.property-media {
  position: relative;
  aspect-ratio: 1.14;
  overflow: hidden;
  background: #ddd;
}
.property-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}
.property-card:hover .property-media > img {
  transform: scale(1.025);
}
.image-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: #111;
  color: var(--gold-light);
  letter-spacing: 0.2em;
}
.property-media::after {
  content: "";
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  pointer-events: none;
}
.card-tags {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 6px;
}
.card-tags span {
  padding: 7px 10px;
  background: rgba(7, 7, 7, 0.86);
  color: white;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.media-bottom {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  color: white;
}
.media-bottom strong {
  display: block;
  font-family: Didot, Georgia, serif;
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 400;
}
.media-bottom del {
  display: block;
  margin-top: 3px;
  color: #c5c5c5;
  font-size: 13px;
}
.carousel-buttons {
  display: flex;
  align-items: center;
  gap: 7px;
}
.carousel-buttons button {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.44);
  color: white;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.carousel-buttons span {
  min-width: 31px;
  font-size: 10px;
  text-align: center;
}
.property-body {
  padding: 25px 24px 23px;
}
.location {
  margin: 0 0 9px;
  color: #8a6d1d;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.property-body h3 {
  min-height: 58px;
  margin: 0;
  font-family: Didot, Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
}
.property-facts {
  margin: 21px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid #e6e3db;
  border-bottom: 1px solid #e6e3db;
}
.property-facts span {
  padding: 12px 11px 12px 0;
  margin-right: 11px;
  color: #717171;
  font-size: 11px;
}
.property-facts b {
  color: var(--ink);
  font-size: 14px;
}
.details-button {
  width: 100%;
  padding: 13px 0 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  color: #171717;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.details-button span {
  color: #9c7920;
  font-size: 19px;
}

.about-section {
  padding: clamp(82px, 10vw, 150px) clamp(24px, 8vw, 130px);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 11vw;
  background: var(--black);
  color: white;
}
.about-section h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(44px, 5.8vw, 78px);
  line-height: 1.05;
}
.about-section > p {
  align-self: end;
  margin: 0;
  padding-left: 30px;
  border-left: 1px solid var(--gold);
  color: #c2c2c2;
  font-size: 18px;
  line-height: 1.85;
}
.contact-section {
  padding: clamp(78px, 10vw, 138px) 24px;
  text-align: center;
  background: white;
}
.contact-section h2 {
  max-width: 850px;
  margin: 0 auto 22px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.08;
}
.contact-section > p:not(.eyebrow) {
  max-width: 660px;
  margin: 0 auto 36px;
  color: #666;
  line-height: 1.75;
}
.contact-section > a {
  display: inline-flex;
  gap: 42px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.contact-section > a span {
  color: #9c7920;
  font-size: 18px;
}

footer {
  padding: 62px clamp(24px, 6vw, 86px) 30px;
  background: var(--black);
  color: #aaa;
  text-align: center;
}
footer > img {
  width: 210px;
  height: 142px;
  margin: 0 auto 20px;
  padding: 10px 18px;
  object-fit: contain;
  background: white;
}
footer > p {
  margin: 0 0 55px;
  color: var(--gold-light);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
footer > div {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #292929;
  font-size: 12px;
}
footer a {
  color: #d3d3d3;
}

.property-modal {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
}
.property-modal[hidden] {
  display: none;
}
.property-modal .modal-backdrop {
  z-index: 0;
  opacity: 1;
  visibility: visible;
}
.property-modal > article {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: calc(100dvh - 44px);
  overflow: auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: white;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.4);
}
.property-modal > article > img {
  width: 100%;
  height: 100%;
  min-height: 590px;
  object-fit: cover;
}
.modal-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  background: #080808;
  color: white;
  font-size: 27px;
  cursor: pointer;
}
.modal-copy {
  padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 60px);
}
.modal-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.08;
}
.modal-price {
  display: block;
  margin-bottom: 28px;
  color: #8b6a12;
  font-family: Didot, Georgia, serif;
  font-size: 28px;
  font-weight: 500;
}
.modal-copy > p:not(.eyebrow) {
  color: #666;
  line-height: 1.7;
}
.modal-facts {
  margin: 26px 0 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #444;
  font-size: 12px;
}
.modal-copy > a {
  display: inline-block;
  padding: 14px 18px;
  background: var(--black);
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 1050px) {
  .property-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero {
    min-height: 680px;
    grid-template-columns: 1fr 0.55fr;
  }
  .hero-mark {
    aspect-ratio: auto;
    height: 310px;
  }
}

@media (max-width: 760px) {
  .topbar {
    height: 78px;
    padding: 0 18px;
  }
  .brand {
    width: 138px;
    height: 78px;
    padding: 6px 11px;
  }
  .brand img {
    width: 116px;
    height: 66px;
  }
  .menu-button {
    width: 62px;
    height: 52px;
  }
  .hero {
    min-height: 720px;
    padding: 142px 24px 74px;
    grid-template-columns: 1fr;
    gap: 58px;
  }
  .hero h1 {
    font-size: clamp(46px, 14vw, 66px);
  }
  .hero-mark {
    display: none;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
  }
  .catalog {
    padding-left: 16px;
    padding-right: 16px;
  }
  .catalog-tools {
    align-items: stretch;
    flex-direction: column;
    border-bottom: 0;
  }
  .filter-tabs {
    width: 100%;
  }
  .filter-tabs button {
    min-width: 0;
    flex: 1;
    padding: 18px 8px;
    border-bottom: 1px solid var(--line);
  }
  .sort-control {
    padding: 0 4px 16px;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
  }
  .sort-control select {
    max-width: 190px;
  }
  .property-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .property-media {
    aspect-ratio: 1.08;
  }
  .property-body h3 {
    min-height: 0;
    font-size: 26px;
  }
  .about-section {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-section > p {
    font-size: 16px;
  }
  footer > div {
    align-items: center;
    flex-direction: column;
    gap: 13px;
  }
  .property-modal > article {
    display: block;
  }
  .property-modal > article > img {
    min-height: 0;
    height: 300px;
  }
  .modal-copy {
    padding: 38px 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Panel privado */
.admin-access-page {
  min-height: 100dvh;
  padding: 30px;
  display: grid;
  place-items: center;
  background: var(--black);
}
.admin-access-page section {
  width: min(620px, 100%);
  padding: clamp(36px, 7vw, 72px);
  background: white;
  text-align: center;
}
.admin-access-page img {
  width: 155px;
  height: 125px;
  margin: 0 auto 20px;
  object-fit: contain;
  filter: drop-shadow(0 0 1px #777);
}
.admin-access-page h1 {
  margin: 0 0 18px;
  font-family: Didot, Georgia, serif;
  font-size: clamp(38px, 6vw, 58px);
  font-weight: 400;
  line-height: 1.05;
}
.admin-access-page section > p:not(.eyebrow) {
  color: #666;
  line-height: 1.7;
}
.admin-access-page a {
  margin-top: 24px;
  display: inline-block;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-shell {
  min-height: 100vh;
  background: #f4f2ec;
}
.admin-header {
  height: 88px;
  padding: 0 clamp(20px, 5vw, 70px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--black);
  color: white;
}
.admin-header > a {
  width: 154px;
  height: 88px;
  padding: 7px 12px;
  display: grid;
  place-items: center;
  background: white;
}
.admin-header img {
  width: 125px;
  height: 74px;
  object-fit: contain;
}
.admin-header > div {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #999;
  font-size: 12px;
}
.admin-header > div a {
  padding: 11px 14px;
  border: 1px solid #5c501f;
  color: var(--gold-light);
}
.admin-intro {
  max-width: 1380px;
  margin: 0 auto;
  padding: 70px clamp(18px, 4vw, 50px) 38px;
}
.admin-intro h1 {
  margin: 0;
  font-family: Didot, Georgia, serif;
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 400;
  line-height: 1;
}
.admin-intro > p:not(.eyebrow) {
  color: #666;
}
.preview-notice {
  margin-top: 25px;
  padding: 13px 16px;
  border-left: 3px solid var(--gold);
  background: #fff9df;
  color: #67531a;
  font-size: 13px;
}
.admin-layout {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 50px) 90px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  gap: 28px;
  align-items: start;
}
.property-form,
.admin-list {
  padding: clamp(24px, 4vw, 42px);
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.form-title,
.admin-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}
.form-title h2,
.admin-list-head h2 {
  margin: 0;
  font-family: Didot, Georgia, serif;
  font-size: 31px;
  font-weight: 500;
}
.form-title button {
  border: 0;
  background: transparent;
  color: #80651b;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px;
}
.form-grid label {
  display: grid;
  align-content: start;
  gap: 8px;
  color: #383838;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.form-grid label.wide {
  grid-column: 1 / -1;
}
.form-grid input:not([type="checkbox"]),
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d9d6cd;
  border-radius: 0;
  outline: none;
  background: white;
  color: var(--ink);
  font-size: 15px;
  font-weight: 450;
  letter-spacing: 0;
  text-transform: none;
}
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(205, 167, 63, 0.13);
}
.form-grid small {
  color: #888;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.form-grid .check-label {
  display: flex;
  align-items: center;
  align-self: end;
  gap: 9px;
  padding: 13px 0;
}
.check-label input {
  accent-color: #9c7920;
}
.admin-save {
  margin-top: 26px;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--gold);
  background: var(--black);
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.admin-save:disabled {
  opacity: 0.55;
  cursor: wait;
}
.admin-message {
  margin: 14px 0 0;
  color: #80651b;
  font-size: 13px;
}
.admin-list {
  padding: 30px;
}
.admin-list-head span {
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--black);
  color: var(--gold-light);
  font-size: 12px;
}
.admin-list article {
  padding: 17px 0;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  border-top: 1px solid #e4e1d9;
}
.admin-list article > img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  background: #111;
}
.admin-list article p {
  margin: 0 0 6px;
  color: #927221;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.admin-list article h3 {
  margin: 0 0 7px;
  font-family: Didot, Georgia, serif;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.18;
}
.admin-list article strong {
  font-size: 13px;
}
.admin-list article div > div {
  margin-top: 12px;
  display: flex;
  gap: 7px;
}
.admin-list article button {
  padding: 7px 10px;
  border: 1px solid #d6d1c4;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}
.admin-list article button:last-child {
  color: #9b2c2c;
}
.empty-list {
  color: #777;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-header > div span {
    display: none;
  }
}

@media (max-width: 560px) {
  .admin-header {
    height: 76px;
    padding: 0 14px;
  }
  .admin-header > a {
    width: 128px;
    height: 76px;
  }
  .admin-header img {
    width: 103px;
    height: 64px;
  }
  .admin-header > div a {
    font-size: 10px;
  }
  .admin-intro {
    padding-top: 50px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid label.wide {
    grid-column: auto;
  }
  .admin-list article {
    grid-template-columns: 88px minmax(0, 1fr);
  }
  .admin-list article > img {
    width: 88px;
    height: 88px;
  }
}
.menu-button {
  margin-right: auto;
}
/* COLUMNA DERECHA DEL HERO */

.hero-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.hero-side .hero-mark {
  width: 100%;
}

/* CONTACTOS DEBAJO DEL CÍRCULO */

.hero-contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hero-contact-link {
  min-width: 0;
  padding: 16px 17px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;

  border: 1px solid rgba(205, 167, 63, 0.35);
  background: rgba(255, 255, 255, 0.025);
  color: white;

  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.hero-contact-link:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  background: rgba(205, 167, 63, 0.1);
}

.hero-contact-link div {
  min-width: 0;
}

.hero-contact-link span {
  display: block;
  margin-bottom: 5px;
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-contact-link small {
  display: block;
  overflow-wrap: anywhere;
  color: #a9a9a9;
  font-size: 11px;
  line-height: 1.4;
}

.hero-contact-link b {
  color: var(--gold);
  font-size: 18px;
  font-weight: 400;
}

@media (max-width: 760px) {
  .hero-side {
    gap: 22px;
  }

  .hero-side .hero-mark {
    display: grid;
    height: 290px;
  }

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

  .hero-contact-link {
    padding: 14px;
  }
}

@media (max-width: 480px) {
  .hero-contacts {
    grid-template-columns: 1fr;
  }
}

/* NOMBRE GRUPO SI + CUU */

.hero-brand-title {
  margin: 26px 0 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.hero-mark .hero-brand-title p {
  margin: 0;
  color: white;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.14em;
}

.hero-brand-title span {
  padding-left: 0.14em;
  color: white;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.14em;
}

/* TÍTULO DE LOS ACCESOS DIRECTOS */

.hero-side {
  gap: 0;
}

.hero-side .hero-mark {
  margin-bottom: 28px;
}

.hero-contacts-title {
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  color: white;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-align: center;
}

/* LÍNEAS DORADAS A LOS LADOS */

.hero-contacts-title::before,
.hero-contacts-title::after {
  content: "";
  width: 42px;
  height: 1px;
  background: rgba(205, 167, 63, 0.65);
}

/* ACERCAR “SI” A “GRUPO” */

.hero-brand-title .brand-si {
  display: inline-block;
  margin-left: -0.18em;
  padding: 0;

  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}

/* GRUPO SI CUU EN UNA SOLA LÍNEA */

.hero-brand-title {
  margin: 22px 0 11px;
  gap: 0;
}

.hero-mark .hero-brand-title p {
  margin: 0;
  color: white;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(25px, 2.8vw, 37px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.11em;
  white-space: nowrap;
}

/* CÍRCULO UN POCO MÁS COMPACTO */

.hero-side .hero-mark {
  width: 100%;
  max-width: 480px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 761px) {
  .hero-mark > small {
    color: #a9a9a9;
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: 0.2em;
    white-space: nowrap;
  }
}
@media (max-width: 760px) {
  .hero {
    gap: 30px;
  }

  .hero-side .hero-mark {
    height: 250px;
    margin-bottom: 20px;
  }

  .hero-brand-title {
    margin: 17px 0 9px;
  }

  .hero-mark .hero-brand-title p {
    font-size: 27px;
    letter-spacing: 0.08em;
  }

  .hero-mark > small {
    width: auto;
    max-width: none;
    display: block;

    font-size: clamp(8.5px, 2.5vw, 10px);
    line-height: 1.5;
    letter-spacing: 0.07em;
    text-align: center;
    white-space: nowrap;
  }
}

/* ACCESOS DIRECTOS ÚNICAMENTE EN CELULAR */

@media (max-width: 760px) {
  /* Ocultar las flechas */
  .hero-contact-link b {
    display: none;
  }

  /* Convertir cada recuadro en una sola columna */
  .hero-contact-link {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  /* Centrar completamente el nombre */
  .hero-contact-link > div {
    width: 100%;
    text-align: center;
  }

  .hero-contact-link span {
    width: 100%;
    display: block;
    margin: 0;
    text-align: center;
  }
}
/* FIRMA DEL MENÚ DE NAVEGACIÓN */

.side-signature {
  width: 100%;
  margin-top: auto;
  text-align: center;
}

.side-signature span {
  display: block;

  color: var(--gold);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 29px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.12em;
}

.side-signature small {
  display: block;
  margin-top: 9px;

  color: #b3b3b3;
  font-family: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.16em;
}

/* UBICACIÓN */

.contact-location {
  margin: 20px auto 34px;
  color: #80651b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* MAPA DE GOOGLE */

.google-map {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 8px;

  border: 1px solid rgba(205, 167, 63, 0.65);
  background: var(--black);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.12);
}

.google-map iframe {
  width: 100%;
  height: 430px;
  display: block;
  border: 0;
}

/* BOTONES DEBAJO DEL MAPA */

.map-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.map-actions a {
  min-width: 230px;
  padding: 16px 22px;

  border: 1px solid var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;

  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.map-button {
  background: var(--black);
  color: var(--gold-light);
}

.contact-email-button {
  background: transparent;
  color: var(--black);
}

.map-actions a:hover {
  transform: translateY(-3px);
  background: var(--gold);
  color: var(--black);
}

@media (max-width: 760px) {
  .contact-section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .contact-location {
    margin-bottom: 25px;
    font-size: 10px;
  }

  .google-map {
    padding: 4px;
  }

  .google-map iframe {
    height: 330px;
  }

  .map-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .map-actions a {
    width: 100%;
    min-width: 0;
  }
}

/* OCULTAR FLECHAS DE LOS BOTONES SOLO EN CELULAR */

@media (max-width: 760px) {
  .map-button-arrow {
    display: none;
  }
}
/* PAGINACIÓN DE PROPIEDADES */

#propiedades {
  scroll-margin-top: 100px;
}

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

.property-pagination {
  width: min(1400px, 100%);
  margin: 45px auto 0;
  padding-top: 25px;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;

  border-top: 1px solid rgba(17, 17, 17, 0.16);
}

.pagination-button {
  padding: 14px 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;

  border: 1px solid var(--gold);
  background: transparent;
  color: var(--black);

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;

  transition:
    background-color 180ms ease,
    color 180ms ease,
    opacity 180ms ease;
}

.pagination-button.previous {
  justify-self: start;
}

.pagination-button.next {
  justify-self: end;
}

.pagination-button:hover:not(:disabled) {
  background: var(--black);
  color: var(--gold-light);
}

.pagination-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.page-information {
  color: #777;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}
@media (max-width: 760px) {
  .property-pagination {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 35px;
  }

  .page-information {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 5px;
  }

  .pagination-button.previous {
    grid-column: 1;
    grid-row: 2;
  }

  .pagination-button.next {
    grid-column: 2;
    grid-row: 2;
  }

  .pagination-button {
    width: 100%;
    min-height: 52px;
    padding: 11px 10px;
    justify-content: center;
    gap: 7px;
    font-size: 9px;
  }
}
/* CONSERVAR LOS SALTOS DE LÍNEA DE LA DESCRIPCIÓN */

#modal-description {
  white-space: pre-line;
}
/* VENTANA AMPLIADA DE LA PROPIEDAD */

.property-modal > article {
  width: min(1200px, calc(100% - 30px));
  height: min(820px, calc(100dvh - 40px));
  max-height: calc(100dvh - 40px);

  display: grid;
  grid-template-columns:
    minmax(0, 1.25fr)
    minmax(360px, 0.75fr);

  overflow: hidden;
}

/* GALERÍA */

.modal-gallery {
  min-width: 0;
  min-height: 0;

  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;

  overflow: hidden;
  background: #050505;
}

.modal-image-stage {
  position: relative;
  min-height: 0;

  display: grid;
  place-items: center;

  overflow: hidden;
  background: #050505;
}

.modal-image-stage > img {
  width: 100%;
  height: 100%;
  min-height: 0;

  display: block;
  object-fit: contain;
  object-position: center;

  background: #050505;
}

/* FLECHAS DE LA GALERÍA */

.modal-gallery-button {
  position: absolute;
  z-index: 3;
  top: 50%;

  width: 52px;
  height: 52px;

  display: grid;
  place-items: center;

  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.72);
  color: white;

  font-size: 32px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.modal-gallery-button.previous {
  left: 16px;
}

.modal-gallery-button.next {
  right: 16px;
}

.modal-gallery-button:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

/* CONTADOR */

.modal-image-counter {
  position: absolute;
  z-index: 3;
  bottom: 18px;
  left: 50%;

  padding: 8px 12px;
  transform: translateX(-50%);

  background: rgba(0, 0, 0, 0.72);
  color: white;

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* MINIATURAS */

.modal-thumbnails {
  height: 92px;
  padding: 10px;

  display: flex;
  gap: 8px;

  overflow-x: auto;
  overflow-y: hidden;

  background: #111;
  scrollbar-color: var(--gold) #222;
}

.modal-thumbnail {
  width: 92px;
  min-width: 92px;
  height: 70px;
  padding: 0;

  overflow: hidden;
  border: 1px solid #444;
  background: #222;
  opacity: 0.55;
  cursor: pointer;
}

.modal-thumbnail.active {
  border-color: var(--gold);
  opacity: 1;
}

.modal-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* INFORMACIÓN DESPLAZABLE */

.modal-copy {
  min-width: 0;
  overflow-y: auto;
}

#modal-description {
  white-space: pre-line;
}
@media (max-width: 760px) {
  .property-modal {
    padding: 10px;
  }

  .property-modal > article {
    width: 100%;
    height: calc(100dvh - 20px);
    max-height: calc(100dvh - 20px);

    display: flex;
    flex-direction: column;
  }

  .modal-gallery {
    flex: 0 0 52dvh;
  }

  .modal-image-stage {
    min-height: 0;
  }

  .modal-thumbnails {
    height: 72px;
    padding: 7px;
  }

  .modal-thumbnail {
    width: 72px;
    min-width: 72px;
    height: 56px;
  }

  .modal-gallery-button {
    width: 43px;
    height: 43px;
    font-size: 27px;
  }

  .modal-gallery-button.previous {
    left: 10px;
  }

  .modal-gallery-button.next {
    right: 10px;
  }

  .modal-image-counter {
    bottom: 12px;
  }

  .modal-copy {
    flex: 1;
    overflow-y: auto;
    padding: 34px 24px;
  }
}
.modal-gallery-button {
  z-index: 20;
  pointer-events: auto;
}

.modal-image-stage > img {
  pointer-events: none;
}

.contact-popup[hidden] {
  display: none;
}

.contact-popup {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.contact-popup-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(0, 0, 0, 0.72);
  cursor: pointer;
}

.contact-popup-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 46px 38px 38px;
  border: 1px solid var(--gold);
  background: #ffffff;
  color: #111111;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.contact-popup-close {
  position: absolute;
  top: 12px;
  right: 15px;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: #111111;
  font-size: 30px;
  cursor: pointer;
}

.contact-popup-label {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.contact-popup-card h2 {
  margin: 0 0 28px;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.15;
}

.contact-popup-options {
  display: grid;
  gap: 10px;
}

.contact-popup-option {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 18px;
  border: 1px solid #111111;
  background: #111111;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.contact-popup-option:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: #111111;
}

@media (max-width: 760px) {
  .contact-popup-card {
    padding: 43px 24px 28px;
  }

  .contact-popup-card h2 {
    text-align: center;
  }

  .contact-popup-label {
    text-align: center;
  }
}

/* BUSCADOR DE PROPIEDADES POR ZONA */

.zone-search {
  width: min(360px, 100%);
  margin-top: 24px;
}

.zone-search label {
  display: block;
  margin-bottom: 9px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.zone-search input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #bdb8ad;
  border-radius: 0;
  outline: none;
  background: #ffffff;
  color: #111111;
  font-family: inherit;
  font-size: 14px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.zone-search input::placeholder {
  color: #8b877f;
}

.zone-search input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(183, 139, 39, 0.13);
}

.no-properties-message {
  grid-column: 1 / -1;
  padding: 60px 25px;
  border: 1px solid #d8d4cb;
  color: #555149;
  text-align: center;
}

@media (max-width: 760px) {
  .zone-search {
    width: 100%;
    margin-top: 20px;
  }

  .zone-search input {
    height: 52px;
    font-size: 16px;
  }
}

.property-price-note {
  display: block;
  margin-top: 3px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* Etiqueta de propiedad rentada o vendida */

.card-tags .property-status-tag {
  border: 1px solid #d1aa4f;
  background-color: #d1aa4f;
  color: #000000;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Estado dentro de la vista ampliada */

#modal-category {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

#modal-category .modal-status-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid #d1aa4f;
  background-color: #d1aa4f;
  color: #000000;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
/* Alinear el buscador con Todas / Venta / Renta solo en PC */

@media (min-width: 761px) {
  .zone-search {
    width: 354px;
    margin-left: max(0px, calc((100% - 1400px) / 2));
  }
}
#return-all-properties-container {
  max-width: 1400px;
  margin: 32px auto 0;
  display: flex;
  justify-content: center;
}

#return-all-properties-container[hidden] {
  display: none;
}

#return-all-properties {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 54px;
  padding: 14px 28px;
  border: 1px solid var(--gold);
  background: #050505;
  color: var(--gold);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

#return-all-properties:hover {
  background: var(--gold);
  color: #050505;
  transform: translateY(-2px);
}

#return-all-properties span {
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 760px) {
  #return-all-properties-container {
    width: 100%;
    margin-top: 24px;
    padding: 0 20px;
  }

  #return-all-properties {
    width: 100%;
  }
}
.pagination-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pagination-center #return-all-properties-container {
  margin: 18px 0 0;
}
#modal-share-property {
  width: 100%;
  min-height: 56px;
  margin-top: 12px;
  padding: 14px 22px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  border: 1px solid var(--gold);
  background: transparent;
  color: #080808;

  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

#modal-share-property span {
  color: var(--gold);
  font-size: 18px;
  line-height: 1;
}

#modal-share-property:hover {
  background: #080808;
  color: var(--gold);
  transform: translateY(-2px);
}

#modal-share-property:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

#pdf-share-status {
  min-height: 18px;
  margin: 9px 0 0;
  color: #666;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

#pdf-share-status:empty {
  display: none;
}
@media (max-width: 760px) {
  #modal-previous-photo,
  #modal-next-photo {
    display: none !important;
  }

  .modal-image-stage {
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
  }

  #modal-image {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
  }
}
@media (max-width: 760px) {
  #property-grid .carousel-buttons button {
    display: none !important;
  }

  #property-grid .carousel-buttons {
    gap: 0;
    pointer-events: none;
  }

  #property-grid .property-media {
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
  }

  #property-grid .property-media img {
    user-select: none;
    -webkit-user-drag: none;
  }
}
@media (max-width: 760px) {
  .details-button > span {
    display: none !important;
  }

  .details-button {
    justify-content: flex-start;
  }
}
.hero-brand-logo {
  display: block;
  width: min(72%, 360px);
  height: auto;
  margin: 0 auto 16px;
  object-fit: contain;
}

@media (max-width: 760px) {
  .hero-brand-logo {
    width: min(76%, 270px);
    margin-bottom: 12px;
  }
}
.hero-mark small {
  display: block;
  margin-top: 0 !important;
  transform: translateY(-38px);
}

.hero-brand-logo {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .hero-mark small {
    transform: translateY(-36px);
  }
}
.hero-mark small {
  display: none !important;
}
/* Permitir guardar las fotografías de las propiedades */
#property-grid .property-media img,
#modal-image,
#modal-thumbnails img {
  pointer-events: auto !important;

  user-select: auto !important;
  -webkit-user-select: auto !important;

  -webkit-user-drag: auto !important;
  -webkit-touch-callout: default !important;
}
/* =========================================
   GALERÍA DE IMÁGENES EN PANTALLA COMPLETA
========================================= */

.image-lightbox[hidden] {
  display: none !important;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: grid;
  place-items: center;

  width: 100%;
  height: 100vh;
  height: 100dvh;
}

.image-lightbox-backdrop {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  border: 0;
  background: rgba(0, 0, 0, 0.96);
  cursor: pointer;
}

.image-lightbox-content {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;
  padding: 30px 100px;
}

.image-lightbox-stage {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;

  touch-action: pan-y;
}

#image-lightbox-photo {
  display: block;

  max-width: 100%;
  max-height: calc(100vh - 60px);
  max-height: calc(100dvh - 60px);

  width: auto;
  height: auto;

  object-fit: contain;

  user-select: auto;
  -webkit-user-select: auto;
  -webkit-user-drag: auto;
  -webkit-touch-callout: default;
}

.image-lightbox-close {
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 4;

  width: 52px;
  height: 52px;

  border: 1px solid var(--gold);
  background: #080808;
  color: #ffffff;

  font-family: Arial, sans-serif;
  font-size: 34px;
  font-weight: 300;
  line-height: 1;

  cursor: pointer;
}

.image-lightbox-arrow {
  position: fixed;
  top: 50%;
  z-index: 4;

  width: 58px;
  height: 70px;

  border: 1px solid var(--gold);
  background: rgba(8, 8, 8, 0.88);
  color: #ffffff;

  font-family: Arial, sans-serif;
  font-size: 46px;
  line-height: 1;

  transform: translateY(-50%);
  cursor: pointer;

  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.image-lightbox-arrow.previous {
  left: 24px;
}

.image-lightbox-arrow.next {
  right: 24px;
}

.image-lightbox-arrow:hover,
.image-lightbox-close:hover {
  background: var(--gold);
  color: #080808;
}

.image-lightbox-counter {
  position: fixed;
  bottom: 22px;
  left: 50%;
  z-index: 4;

  padding: 9px 14px;

  background: rgba(8, 8, 8, 0.8);
  color: #ffffff;

  font-family: Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.12em;

  transform: translateX(-50%);
}

/* CELULAR */

@media (max-width: 760px) {
  .image-lightbox-content {
    padding: 62px 10px 52px;
  }

  .image-lightbox-arrow {
    display: none !important;
  }

  .image-lightbox-close {
    top: 14px;
    right: 14px;

    width: 46px;
    height: 46px;

    font-size: 30px;
  }

  #image-lightbox-photo {
    max-width: 100%;
    max-height: calc(100dvh - 115px);
  }

  .image-lightbox-counter {
    bottom: 14px;
  }
}
#modal-share-property {
  justify-content: center;
  text-align: center;
}
#modal-share-property > span,
#modal-share-property::before,
#modal-share-property::after {
  display: none !important;
  content: none !important;
}

#modal-share-property {
  justify-content: center !important;
  text-align: center;
}

/* Ventana de SI Legal */
.si-legal-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 32px;
}

.si-legal-modal[hidden] {
  display: none;
}

.si-legal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.si-legal-panel {
  position: relative;
  z-index: 1;
  width: min(1100px, 94vw);
  min-height: min(760px, 88vh);
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 70px 40px;
  border: 1px solid rgba(196, 156, 45, 0.7);
  background:
    radial-gradient(
      circle at center,
      rgba(196, 156, 45, 0.08),
      transparent 55%
    ),
    #050505;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}

.si-legal-content {
  width: min(720px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.si-legal-logo {
  display: block;
  width: min(420px, 80%);
  max-height: 260px;
  object-fit: contain;
  margin-bottom: 48px;
}

.si-legal-content p {
  max-width: 720px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(18px, 1.5vw, 23px);
  line-height: 1.8;
}

.si-legal-return-button {
  min-width: 210px;
  margin-top: 48px;
  padding: 15px 30px;
  border: 1px solid #c49c2d;
  background: transparent;
  color: #c49c2d;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.si-legal-return-button:hover {
  background: #c49c2d;
  color: #050505;
  transform: translateY(-2px);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Ajustes exclusivos para celular */
@media (max-width: 760px) {
  .si-legal-modal {
    padding: 12px;
  }

  .si-legal-panel {
    width: 100%;
    min-height: 94vh;
    padding: 45px 22px;
  }

  .si-legal-logo {
    width: min(300px, 85%);
    margin-bottom: 35px;
  }

  .si-legal-content p {
    font-size: 17px;
    line-height: 1.7;
  }

  .si-legal-return-button {
    width: 100%;
    max-width: 280px;
    margin-top: 38px;
  }
}
.si-legal-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 48px;
}

.si-legal-actions .si-legal-return-button {
  margin-top: 0;
}

.si-legal-facebook-button {
  min-width: 210px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border: 1px solid #c49c2d;
  background: #c49c2d;
  color: #050505;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.si-legal-facebook-button:hover {
  background: #ffffff;
  color: #050505;
  transform: translateY(-2px);
}

@media (max-width: 760px) {
  .si-legal-actions {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 38px;
  }

  .si-legal-facebook-button,
  .si-legal-actions .si-legal-return-button {
    width: 100%;
    max-width: 280px;
  }
}
@media (max-width: 760px) {
  .si-legal-modal {
    height: 100vh;
    height: 100dvh;
    padding: 12px;
    box-sizing: border-box;
    overflow: hidden;
  }

  .si-legal-panel {
    width: 100%;
    height: calc(100vh - 24px);
    height: calc(100dvh - 24px);
    min-height: 0;
    max-height: calc(100dvh - 24px);
    box-sizing: border-box;
    overflow-y: auto;
    padding: 45px 22px 55px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
}
