:root {
  --navy: #146b8d;
  --navy-deep: #e7f2f4;
  --blue: #5abde6;
  --cyan: #57d5df;
  --teal: #42b8aa;
  --green: #55bc7d;
  --ink: #e4eef1;
  --muted: #a5b7c0;
  --surface: #102530;
  --line: #294451;
  --white: #091923;
  --shadow: 0 18px 50px rgba(6, 43, 74, .12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: var(--white);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9,25,35,.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(7,59,104,.08);
}
.header-inner {
  min-height: 82px;
  display: grid;
  grid-template-columns: 190px 1fr auto;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0;
}
.brand img {
  width: 150px;
  height: 66px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 0 2px rgba(255,255,255,.98)) drop-shadow(0 0 7px rgba(255,255,255,.28));
}
.main-nav { display: flex; justify-content: center; gap: 28px; }
.main-nav a { font-size: 14px; font-weight: 700; color: #c4d6dc; }
.main-nav a:hover { color: var(--blue); }
.main-nav a.active { color: var(--blue); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  transition: .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-header { min-height: 44px; background: var(--navy); color: white; }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--cyan)); color: white; }
.btn-light { background: #d9f2f1; color: #073b68; }
.btn-whatsapp { background: #1fbf59; color: white; font-size: 20px; }

.nav-toggle { display: none; border: 0; background: transparent; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }

.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  background: url("assets/prop-comasagua.jpg") center 44% / cover no-repeat;
  transform: scale(1.03);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2,31,56,.86) 0%, rgba(2,31,56,.64) 45%, rgba(2,31,56,.16) 76%),
    linear-gradient(0deg, rgba(2,31,56,.28), transparent 50%);
}
.hero-content { position: relative; z-index: 2; padding-block: 105px 90px; }
.eyebrow {
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  font-weight: 800;
  color: #9eeefa;
}
.eyebrow.dark { color: var(--blue); }

.hero h1,
.section h2,
.experience-section h2,
.sell-section h2,
.contact-section h2 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  line-height: 1.03;
  margin: 0;
}
.hero h1 {
  color: white;
  max-width: 760px;
  font-size: clamp(48px, 6vw, 84px);
  letter-spacing: -.045em;
}
.hero-copy {
  max-width: 650px;
  color: rgba(255,255,255,.84);
  font-size: 18px;
  line-height: 1.7;
  margin: 24px 0 38px;
}
.property-search {
  width: min(1100px, 100%);
  background: #102530;
  border-radius: 18px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 1.15fr 1.1fr auto;
  gap: 8px;
  box-shadow: var(--shadow);
}
.property-search label {
  display: flex;
  flex-direction: column;
  padding: 8px 14px;
  border-right: 1px solid var(--line);
}
.property-search label span {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.property-search select {
  margin-top: 5px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  min-height: 28px;
  font-weight: 700;
}
.property-search select option,
.catalog-filters select option {
  background: #102530;
  color: var(--ink);
}
.search-btn { min-width: 190px; }

.section { padding: 100px 0; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 50px;
  margin-bottom: 44px;
}
.section-heading h2 { font-size: clamp(38px, 4vw, 58px); color: var(--navy-deep); }
.section-heading > p { max-width: 470px; color: var(--muted); line-height: 1.7; }
.section-heading.align-end { align-items: end; }

.category-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 250px 250px;
  gap: 16px;
}
.category-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 250px;
}
.category-card.large { grid-row: span 2; }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2,31,56,.72), transparent 58%);
}
.category-card span {
  position: absolute;
  left: 24px;
  bottom: 22px;
  z-index: 2;
  color: white;
  font-size: 24px;
  font-weight: 800;
}
.category-card:hover img { transform: scale(1.05); }

.properties-section { background: var(--surface); }
.text-link { color: var(--blue); font-weight: 800; }
.text-link.light { color: white; }
.filter-status {
  min-height: 26px;
  margin: -18px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.property-card {
  overflow: hidden;
  border-radius: 22px;
  background: #112a36;
  box-shadow: 0 10px 35px rgba(6,43,74,.08);
}
.property-card.wide { grid-column: span 2; }
.property-image { position: relative; height: 250px; overflow: hidden; background: #071923; }
.property-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s ease; }
.property-card:hover .property-image img { transform: none; }
.property-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: rgba(255,255,255,.92);
  color: var(--navy);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.property-status, .listing-status {
  z-index: 2;
  color: #fff;
  font-weight: 900;
  letter-spacing: .1em;
  line-height: 1;
  text-transform: uppercase;
}
.property-status {
  background: #16834f;
  box-shadow: 0 8px 22px rgba(5, 93, 51, .34);
}
.property-status { position: absolute; top: 16px; right: 16px; padding: 8px 11px; border-radius: 7px; font-size: 11px; }
.property-body { padding: 23px; }
.property-meta { color: var(--blue); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.property-body h3 { margin: 9px 0 12px; font-size: 22px; line-height: 1.25; color: var(--navy-deep); }
.property-body h3 a { color: inherit; }
.property-link { display: inline-flex; align-items: center; gap: 10px; }
.property-link span { transition: transform .2s ease; }
.property-link:hover span { transform: translateX(4px); }
.price { margin: 0 0 16px; font-size: 22px; font-weight: 800; }
.price small { font-size: 12px; color: var(--muted); font-weight: 700; }
.property-facts { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 12px; margin-bottom: 20px; }
.property-facts span { padding-right: 10px; border-right: 1px solid var(--line); }
.property-body a { color: var(--blue); font-weight: 800; font-size: 14px; }

.location-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.location-card {
  position: relative;
  height: 360px;
  padding: 0;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  background: var(--navy);
  color: white;
}
.location-card img { width: 100%; height: 100%; object-fit: cover; }
.location-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2,31,56,.82), rgba(2,31,56,.03) 65%);
}
.location-card span {
  position: absolute;
  left: 22px; right: 22px; bottom: 22px;
  z-index: 2;
  text-align: left;
}
.location-card strong { display: block; font-size: 23px; }
.location-card small { display: block; margin-top: 5px; color: rgba(255,255,255,.75); }

.experience-section {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  color: white;
  background: linear-gradient(135deg, #052e55 0%, #075c8d 58%, #0bb8c9 100%);
}
.experience-shape {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  right: -120px;
  top: -190px;
  border: 1px solid rgba(255,255,255,.18);
}
.experience-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
}
.experience-copy h2 { font-size: clamp(44px, 5vw, 72px); max-width: 770px; }
.experience-copy > p:not(.eyebrow) { max-width: 680px; color: rgba(255,255,255,.78); line-height: 1.75; font-size: 18px; }
.experience-actions { display: flex; gap: 24px; align-items: center; margin-top: 30px; }
.experience-logo img { filter: drop-shadow(0 24px 45px rgba(0,0,0,.2)); }
.experience-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 22px;
  background: rgba(3,42,76,.45);
  box-shadow: 0 30px 65px rgba(0,0,0,.28);
}
.experience-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.investment-layout {
  display: grid;
  grid-template-columns: .9fr 1.2fr;
  gap: 90px;
}
.investment-intro h2 { font-family: "Playfair Display", serif; font-size: clamp(40px, 4vw, 58px); color: var(--navy-deep); margin: 0 0 22px; }
.investment-intro p:last-child { color: var(--muted); line-height: 1.75; }
.investment-list article {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.investment-list article > span { color: var(--cyan); font-size: 13px; font-weight: 800; }
.investment-list h3 { margin: 0 0 8px; color: var(--navy-deep); font-size: 22px; }
.investment-list p { margin: 0; color: var(--muted); line-height: 1.65; }

.sell-section {
  padding: 68px 0;
  background: linear-gradient(120deg, #06364e, #0a5262);
  color: white;
}
.sell-inner { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.sell-section .eyebrow { color: #9eeefa; }
.sell-section h2 { color: white; font-size: clamp(38px, 4vw, 56px); margin-bottom: 12px; }
.sell-section p:not(.eyebrow) { color: rgba(255,255,255,.72); margin: 0; }

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
}
.about-layout h2 { font-family: "Playfair Display", serif; color: var(--navy-deep); font-size: clamp(38px, 4vw, 56px); margin: 0; }
.about-layout > div:last-child { color: var(--muted); line-height: 1.8; font-size: 17px; }

.contact-section {
  padding: 90px 0;
  background: linear-gradient(135deg, #102c35, #0c202c);
}
.contact-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.contact-section h2 { font-size: clamp(38px, 4vw, 58px); color: var(--navy-deep); max-width: 720px; }
.contact-section p:not(.eyebrow) { color: var(--muted); }
.formulario-contacto { width: min(430px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.formulario-contacto input, .formulario-contacto textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; }.formulario-contacto textarea, .formulario-contacto button, .mensaje-contacto { grid-column: 1 / -1; }.formulario-contacto button { justify-content: center; }.mensaje-contacto { min-height: 18px; margin: 0; color: var(--navy); font-size: 12px; font-weight: 800; }

.site-footer { background: #04111a; color: white; padding: 70px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 60px; }
.footer-brand img { width: 230px; padding: 10px; border-radius: 14px; background: #fff; }
.footer-brand p { color: rgba(255,255,255,.58); max-width: 300px; line-height: 1.7; }
.site-footer h3 { font-size: 14px; margin: 0 0 18px; }
.site-footer a, .site-footer span { display: block; color: rgba(255,255,255,.62); font-size: 13px; margin: 11px 0; }
.footer-bottom {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.floating-whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1fbf59;
  color: white;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(31,191,89,.32);
}

/* Catálogo y fichas: mismas entidades que puede entregar un futuro API. */
.catalog-page { background: #091923; }
.catalog-hero { padding: 125px 0 85px; background: #102c35; }
.catalog-hero h1, .detail-intro h1 { margin: 0; font: 600 clamp(54px, 7vw, 100px)/.94 "Playfair Display", serif; letter-spacing: -.055em; color: var(--navy-deep); }
.catalog-hero h1 em { color: var(--teal); font-weight: 600; }
.catalog-hero p:last-child { max-width: 480px; margin: 28px 0 0; color: var(--muted); line-height: 1.75; }
.catalog-content { padding: 48px 0 100px; }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 32px; }
.catalog-count { font-size: 13px; text-transform: uppercase; font-weight: 800; letter-spacing: .1em; color: var(--muted); }
.filter-toggle { display: none; background: none; border: 0; font-weight: 800; color: var(--navy); }
.catalog-layout { display: grid; grid-template-columns: 230px 1fr; gap: 40px; align-items: start; }
.catalog-filters { position: sticky; top: 108px; padding-right: 28px; border-right: 1px solid var(--line); }
.filter-kicker { margin: 0 0 25px; font-size: 12px; text-transform: uppercase; letter-spacing: .13em; color: var(--navy); font-weight: 800; }
.catalog-filters label { display: flex; flex-direction: column; gap: 9px; margin-bottom: 25px; font-size: 13px; font-weight: 800; color: var(--navy-deep); }
.catalog-filters select { padding: 0 0 10px; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--muted); outline: 0; }
.filter-reset { padding: 0; border: 0; background: none; color: var(--blue); cursor: pointer; font-weight: 800; }
.catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.catalog-grid .property-image { height: 300px; }
.empty-state { grid-column: 1 / -1; padding: 65px 30px; text-align: center; background: #112a36; border-radius: 20px; }
.empty-state h2 { font-family: "Playfair Display", serif; color: var(--navy-deep); font-size: 40px; margin: 0; }
.empty-state p { color: var(--muted); }
.compact-footer { padding-top: 25px; }
.compact-footer .footer-bottom { margin-top: 0; border-top: 0; }
.detail-hero { display: grid; grid-template-columns: 1.15fr .85fr; min-height: calc(100vh - 82px); background: #edf4f2; }
.detail-image { min-height: 620px; }
.detail-image img { width: 100%; height: 100%; object-fit: cover; }
.detail-intro { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(45px, 8vw, 110px); }
.back-link { margin-bottom: 65px; color: var(--blue); font-size: 14px; font-weight: 800; }
.detail-intro h1 { font-size: clamp(48px, 5vw, 75px); }
.detail-price { margin: 28px 0 20px; font-size: 28px; font-weight: 800; color: var(--navy-deep); }
.detail-price small { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; }
.detail-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 35px; }
.detail-facts span { padding: 8px 12px; border: 1px solid #c8d9d6; color: var(--navy); font-size: 12px; font-weight: 700; border-radius: 99px; }
.detail-content { display: grid; grid-template-columns: 1fr 1fr; gap: 110px; padding: 120px 0; }
.detail-content h2 { max-width: 410px; margin: 0; font: 600 clamp(38px, 4vw, 58px)/1.04 "Playfair Display", serif; color: var(--navy-deep); }
.detail-content > div:last-child { max-width: 510px; color: var(--muted); font-size: 17px; line-height: 1.85; }
.commercial-summary { padding: 100px 0; background: var(--surface); }
.commercial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.commercial-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #cbd9df; }
.commercial-prices .eyebrow { grid-column: 1 / -1; margin: 0; padding: 0 0 18px; background: var(--surface); }
.commercial-prices div { display: flex; flex-direction: column; gap: 6px; padding: 28px; background: #112a36; }
.commercial-prices span, .commercial-prices small { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.commercial-prices strong { color: var(--navy-deep); font-size: clamp(27px, 3vw, 42px); letter-spacing: -.04em; }
.commercial-location h2 { margin: 0 0 16px; font: 600 clamp(32px, 3vw, 45px)/1.08 "Playfair Display", serif; color: var(--navy-deep); }
.commercial-location p { max-width: 520px; color: var(--muted); line-height: 1.75; }
.commercial-features { padding: 95px 0; }
.commercial-features > div { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.commercial-features span { padding: 24px 18px 24px 0; margin-right: 18px; color: var(--navy-deep); font-size: 14px; font-weight: 700; line-height: 1.5; border-right: 1px solid var(--line); }
.commercial-features span:last-child { border: 0; }
.property-media { display: grid; grid-template-columns: 1.25fr .75fr; gap: 26px; padding: 0 0 105px; }
.property-media video { width: 100%; aspect-ratio: 16 / 9; display: block; object-fit: cover; background: var(--navy-deep); border-radius: 16px; }
.property-media > a { position: relative; overflow: hidden; display: block; border-radius: 16px; background: var(--navy-deep); }
.property-media > a img { width: 100%; height: 100%; object-fit: cover; }
.property-media > a span { position: absolute; right: 14px; bottom: 14px; left: 14px; padding: 11px 13px; border-radius: 10px; background: rgba(3,28,48,.84); color: white; font-size: 13px; font-weight: 800; text-align: center; }

/* Ficha editorial: galería arriba, contenido legible y panel de contacto persistente. */
.listing-header { display: grid; grid-template-columns: 1fr auto; gap: 28px; padding: 58px 0 34px; align-items: end; }
.listing-header .back-link { grid-column: 1 / -1; margin: 0; }
.listing-header h1 { max-width: 820px; margin: 0; font: 600 clamp(45px, 5vw, 78px)/.98 "Playfair Display", serif; letter-spacing: -.05em; color: var(--navy-deep); }
.listing-header-price { margin: 0; padding-bottom: 6px; color: var(--navy-deep); font-size: 27px; font-weight: 800; white-space: nowrap; }
.listing-header-price small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; font-weight: 700; text-align: right; }
.listing-reference { display: block; margin-top: 9px; color: var(--cyan); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.listing-gallery { display: grid; grid-template-columns: 1.45fr .7fr; gap: 14px; height: 570px; }
.listing-main-image, .listing-main-video, .listing-gallery-side > * { position: relative; overflow: hidden; margin: 0; border-radius: 16px; background: #05131d; }
.listing-main-image img, .listing-gallery-side img { width: 100%; height: 100%; object-fit: contain; }
.listing-main-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.listing-status { position: absolute; top: 24px; right: 24px; padding: 16px 22px; border: 3px solid rgba(255,255,255,.92); border-radius: 10px; background: #df2020; box-shadow: 0 8px 22px rgba(125, 0, 0, .34); font-size: clamp(24px, 3vw, 42px); transform: rotate(4deg); pointer-events: none; }
.lightbox-trigger { display: block; width: 100%; height: 100%; padding: 0; overflow: hidden; border: 0; background: transparent; cursor: zoom-in; }
.lightbox-trigger img { display: block; transition: transform .35s ease; }
.listing-gallery .lightbox-trigger:hover img { transform: none; }
.listing-gallery-side { display: grid; grid-template-rows: 1fr 1fr; gap: 14px; min-height: 0; }
.listing-gallery-side.single { grid-template-rows: 1fr; }
.listing-video video, .listing-video iframe { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }
.listing-video span, .listing-flyer span, .listing-supporting-image span { position: absolute; right: 12px; bottom: 12px; left: 12px; padding: 9px 11px; border-radius: 8px; background: rgba(3,28,48,.82); color: white; font-size: 12px; font-weight: 800; text-align: center; }
.listing-flyer { display: block; }
.property-photo-gallery { padding-bottom: 34px; }
.listing-photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.listing-photo-grid figure, .listing-photo-grid .lightbox-trigger { height: 310px; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #05131d; }
.listing-photo-grid img { width: 100%; height: 100%; object-fit: contain; }
.property-area-reference { margin: 22px 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #05131d; }
.property-area-reference img { display: block; width: 100%; }
.property-area-reference figcaption { padding: 12px 15px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.image-lightbox { position: fixed; z-index: 1000; inset: 0; display: none; align-items: center; justify-content: center; padding: 24px; }
.image-lightbox.open { display: flex; }
.image-lightbox-backdrop { position: absolute; inset: 0; background: rgba(2, 12, 19, .9); backdrop-filter: blur(5px); }
.image-lightbox-content { position: relative; z-index: 1; max-width: min(1180px, 96vw); max-height: 92vh; }
.image-lightbox-content img { display: block; max-width: 100%; max-height: 92vh; border-radius: 12px; box-shadow: 0 24px 70px rgba(0, 0, 0, .45); }
.image-lightbox-close { position: absolute; top: -15px; right: -15px; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: #0e2937; color: #fff; font-size: 27px; line-height: 1; cursor: pointer; }
body.lightbox-open { overflow: hidden; }
.listing-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 105px; padding: 105px 0; align-items: start; }
.listing-section { padding: 42px 0; border-top: 1px solid var(--line); }
.listing-section.first { padding-top: 0; border: 0; }
.listing-section h2 { max-width: 650px; margin: 0 0 21px; color: var(--navy-deep); font: 600 clamp(32px, 3vw, 48px)/1.08 "Playfair Display", serif; }
.listing-section > p:not(.eyebrow) { max-width: 700px; color: var(--muted); font-size: 17px; line-height: 1.8; }
.listing-section .detail-facts { margin: 28px 0 0; }
.listing-prices { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.listing-prices div { display: flex; flex-direction: column; gap: 6px; padding: 28px; }
.listing-prices div + div { border-left: 1px solid var(--line); }
.listing-prices span, .listing-prices small { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.listing-prices strong { color: var(--navy-deep); font-size: clamp(26px, 3vw, 39px); letter-spacing: -.04em; }
.listing-features { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin: 0; padding: 0; list-style: none; }
.listing-features li { padding: 15px 0; color: var(--navy-deep); font-weight: 700; line-height: 1.45; border-bottom: 1px solid var(--line); }
.listing-features li::before { content: '↗'; margin-right: 10px; color: var(--cyan); }
.location-block h2 { font-size: 30px; }
.listing-map { height: 320px; overflow: hidden; margin: 28px 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.listing-map iframe { width: 100%; height: 100%; border: 0; }
.interactive-listing-map { position: relative; z-index: 0; height: 420px; }
.interactive-listing-map.is-fullscreen { position: fixed; z-index: 2000; inset: 0; width: 100vw; height: 100vh; margin: 0; border: 0; border-radius: 0; }
.interactive-listing-map .leaflet-control-attribution { color: #4f6673; background: rgba(238, 246, 247, .88); font-size: 10px; }
.interactive-listing-map .leaflet-control-attribution a { color: #1f7f94; }
.map-fullscreen-toggle { position: absolute; z-index: 1001; top: 12px; right: 12px; display: grid; width: 38px; height: 38px; place-items: center; border: 0; border-radius: 4px; background: #fff; color: #0a2432; box-shadow: 0 1px 5px rgba(0, 0, 0, .35); font-size: 25px; font-weight: 800; line-height: 1; cursor: pointer; }
.map-fullscreen-toggle:hover, .map-fullscreen-toggle.is-active { background: #ffd334; }
body.map-fullscreen { overflow: hidden; }
.map-reference-note { margin: -3px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.navigation-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.map-action { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font-size: 14px; font-weight: 800; transition: transform .2s ease, border-color .2s ease; }
.map-action:hover { border-color: var(--cyan); transform: translateY(-1px); }
.map-action img { width: 28px; height: 28px; padding: 3px; border-radius: 7px; background: white; object-fit: contain; }
.waze-action img { width: 36px; height: 36px; padding: 0; border-radius: 0; background: transparent; }
.map-action span { display: flex; flex-direction: column; gap: 2px; color: var(--muted); font-size: 12px; font-weight: 700; }
.map-action strong { color: var(--ink); font-size: 14px; }
.maps-action { background: #102d40; }
.waze-action { background: #12343d; }
.listing-sidebar { position: sticky; top: 110px; padding: 30px; border: 1px solid var(--line); background: #112a36; }
.listing-sidebar h2 { margin: 0 0 14px; color: var(--navy-deep); font: 600 35px/1.08 "Playfair Display", serif; }
.listing-sidebar p:not(.eyebrow) { color: var(--muted); line-height: 1.7; }
.listing-sidebar .btn { width: 100%; margin-top: 12px; }
.sidebar-map { display: block; margin-top: 18px; color: var(--blue); font-size: 14px; font-weight: 800; text-align: center; }
.sidebar-reference { margin: 18px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.sidebar-reference strong { color: var(--ink); }

.is-hidden { display: none !important; }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 1fr auto auto; }
  .nav-toggle { display: block; order: 2; }
  .btn-header { order: 3; }
  .main-nav {
    display: none;
    position: absolute;
    left: 20px; right: 20px; top: 76px;
    padding: 20px;
    background: #112a36;
    border-radius: 18px;
    box-shadow: var(--shadow);
    flex-direction: column;
  }
  .main-nav.open { display: flex; }
  .property-search { grid-template-columns: 1fr 1fr; }
  .property-search label { border-right: 0; border-bottom: 1px solid var(--line); }
  .category-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 260px); }
  .category-card.large { grid-row: span 1; }
  .property-grid { grid-template-columns: repeat(2, 1fr); }
  .property-card.wide { grid-column: span 2; }
  .location-grid { grid-template-columns: repeat(2, 1fr); }
  .experience-inner, .investment-layout, .about-layout { grid-template-columns: 1fr; gap: 50px; }
  .experience-logo, .experience-video { max-width: 680px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .catalog-layout { grid-template-columns: 190px 1fr; gap: 25px; }
  .detail-hero { grid-template-columns: 1fr; }
  .detail-image { min-height: 480px; }
  .detail-intro { padding: 70px 8%; }
  .commercial-grid, .property-media { grid-template-columns: 1fr; gap: 45px; }
  .commercial-features > div { grid-template-columns: repeat(3, 1fr); }
  .listing-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 55px; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1180px); }
  .header-inner { min-height: 72px; grid-template-columns: 1fr auto; }
  .brand { padding: 0; }
  .brand img { width: 126px; height: 58px; }
  .btn-header { display: none; }
  .hero { min-height: 760px; }
  .hero-content { padding-block: 90px 60px; }
  .hero h1 { font-size: 48px; }
  .hero-copy { font-size: 16px; }
  .property-search { grid-template-columns: 1fr; border-radius: 20px; }
  .search-btn { width: 100%; }
  .section { padding: 76px 0; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 18px; }
  .category-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .category-card { height: 250px; }
  .property-grid { grid-template-columns: 1fr; }
  .property-card.wide { grid-column: span 1; }
  .location-grid { grid-template-columns: 1fr; }
  .location-card { height: 280px; }
  .experience-actions { align-items: flex-start; flex-direction: column; }
  .sell-inner, .contact-inner { align-items: flex-start; flex-direction: column; }
  .formulario-contacto { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .catalog-hero { padding: 82px 0 58px; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filter-toggle { display: block; }
  .catalog-filters { display: none; position: static; padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .catalog-filters.open { display: block; }
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-grid .property-image { height: 260px; }
  .detail-image { min-height: 350px; }
  .detail-intro { padding: 48px 28px 65px; }
  .back-link { margin-bottom: 45px; }
  .detail-content { grid-template-columns: 1fr; gap: 34px; padding: 78px 0; }
  .commercial-summary, .commercial-features { padding: 70px 0; }
  .commercial-grid { gap: 45px; }
  .commercial-prices { grid-template-columns: 1fr; }
  .commercial-features > div { grid-template-columns: 1fr; }
  .commercial-features span { margin-right: 0; padding: 17px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .commercial-features span:last-child { border-bottom: 0; }
  .property-media { padding-bottom: 76px; }
  .listing-header { display: block; padding: 35px 0 26px; }
  .listing-header .back-link { display: inline-block; margin-bottom: 38px; }
  .listing-header-price { margin-top: 20px; }
  .listing-header-price small { text-align: left; }
  .listing-gallery { grid-template-columns: 1fr; height: auto; }
  .listing-main-image { height: 380px; }
  .listing-gallery-side { grid-template-columns: 1fr 1fr; grid-template-rows: 220px; }
  .listing-gallery-side.single { grid-template-columns: 1fr; grid-template-rows: 220px; }
  .listing-photo-grid { grid-template-columns: 1fr; }
  .listing-photo-grid figure, .listing-photo-grid .lightbox-trigger { height: 340px; }
  .image-lightbox { padding: 16px; }
  .image-lightbox-close { top: -11px; right: -7px; }
  .listing-layout { grid-template-columns: 1fr; gap: 45px; padding: 75px 0; }
  .listing-sidebar { position: static; }
  .listing-prices, .listing-features { grid-template-columns: 1fr; }
  .listing-prices div + div { border-left: 0; border-top: 1px solid var(--line); }
  .listing-map { height: 280px; }
  .interactive-listing-map { height: 340px; }
  .navigation-actions { grid-template-columns: 1fr; }
}
