*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ── Image loading spinner ── */
@keyframes img-spin {
  to { transform: rotate(360deg); }
}

.image-trigger,
.overview-inline-photo,
.overview-full-photo,
.mosaic-tile {
  position: relative;
  background: var(--sand-100, #f7f3ea);
}

.image-trigger::before,
.overview-inline-photo::before,
.overview-full-photo::before,
.mosaic-tile::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border: 3px solid var(--ink-100, #e7edf2);
  border-top-color: var(--teal-500, #2f7f86);
  border-radius: 50%;
  animation: img-spin .7s linear infinite;
  z-index: 0;
}

.image-trigger img,
.overview-inline-photo img,
.overview-full-photo img,
.mosaic-tile img {
  position: relative;
  z-index: 1;
}

:root {
  --ink-950: #10202c;
  --ink-900: #1a2f3f;
  --ink-700: #365167;
  --ink-500: #5f7688;
  --ink-100: #e7edf2;
  --sand-100: #f7f3ea;
  --sand-200: #efe6d6;
  --stone-100: #faf8f3;
  --teal-500: #2f7f86;
  --teal-700: #225f64;
  --gold-500: #b88a49;
  --success-500: #1fa96b;
  --wa-green: #25d366;
  --wa-dark: #128c7e;
  --white: #ffffff;
  --shadow-soft: 0 14px 36px rgba(18, 32, 43, 0.12);
  --shadow-panel: 0 22px 60px rgba(16, 32, 44, 0.32);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --max-width: 1180px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink-900);
  line-height: 1.6;
  background:
    radial-gradient(circle at 15% -10%, #edf5f5 0, transparent 44%),
    radial-gradient(circle at 92% 15%, #f8efde 0, transparent 35%),
    var(--stone-100);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink-950);
  line-height: 1.15;
  font-family: "Montserrat", "Avenir Next", "Segoe UI", sans-serif;
  letter-spacing: 0.005em;
}

p {
  margin: 0;
}

main {
  display: block;
}

.content-section {
  width: min(var(--max-width), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 5rem 0 0;
}

.section-head {
  margin-bottom: 1.4rem;
}

.section-head p {
  margin-top: 0.7rem;
  color: var(--ink-700);
  max-width: 70ch;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hero — Full-bleed CPC ── */
.hero {
  position: relative;
  min-height: max(88vh, 620px);
  color: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 20, 28, 0.45) 0%, rgba(10, 20, 28, 0.28) 40%, rgba(10, 20, 28, 0.6) 85%, rgba(10, 20, 28, 0.85) 100%),
    linear-gradient(135deg, rgba(0,0,0,0.2) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(860px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 3rem 0 1.5rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem 0.4rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(37, 211, 102, 0.18);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #8cffc0;
  margin-bottom: 1.3rem;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wa-green);
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.55); }
  70% { box-shadow: 0 0 0 10px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

.hero-price {
  font-family: "Montserrat", "Avenir Next", "Segoe UI", sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  margin-bottom: 0.15rem;
}

.hero-price-note {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.2rem;
}

.hero-headline {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.hero-sub {
  margin: 1rem auto 0;
  max-width: 54ch;
  font-size: clamp(1.02rem, 1.8vw, 1.22rem);
  color: rgba(255,255,255,0.9);
  line-height: 1.55;
}

.hero-pills {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.78rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
}

.hero-ctas {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.76rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 0.97rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-whatsapp {
  gap: 0.5rem;
  padding: 0.88rem 1.6rem;
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(145deg, #d4175e, #c7054e);
  box-shadow: 0 6px 20px rgba(199, 5, 78, 0.35);
  border: 1px solid rgba(255,255,255,0.15);
}

.btn-whatsapp:hover {
  box-shadow: 0 10px 28px rgba(199, 5, 78, 0.45);
  background: linear-gradient(145deg, #e01f68, #d4175e);
}

.btn-ghost {
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(4px);
  gap: 0.25rem;
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.14);
}

.btn-solid {
  color: #072027;
  background: linear-gradient(145deg, #f0dcb7, #e8c992);
  box-shadow: 0 10px 24px rgba(194, 141, 68, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-solid:hover {
  box-shadow: 0 14px 30px rgba(194, 141, 68, 0.4);
}

.btn-outline {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(7, 24, 33, 0.36);
}

/* ── Photo Mosaic Strip ── */
.hero-mosaic {
  position: relative;
  z-index: 2;
  width: min(960px, calc(100% - 2rem));
  margin: 1rem auto 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(0,0,0,0.22);
}

.mosaic-tile {
  position: relative;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #1a2f3f;
}

.mosaic-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.mosaic-tile:hover img {
  transform: scale(1.08);
}

.mosaic-more {
  position: relative;
}

.mosaic-more img {
  filter: brightness(0.45);
}

.mosaic-more:hover img {
  filter: brightness(0.55);
  transform: scale(1.08);
}

.mosaic-count {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  pointer-events: none;
}

.facts {
  width: min(var(--max-width), calc(100% - 2.5rem));
  margin: -3rem auto 0;
  padding: 1.1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.8rem;
  position: relative;
  z-index: 3;
}

.fact-card {
  padding: 0.9rem 0.75rem;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #fbf9f4, #f2ece0);
  border: 1px solid #ece6d8;
  text-align: center;
}

.fact-value {
  display: block;
  color: var(--teal-700);
  font-size: 1.26rem;
  font-weight: 700;
}

.fact-price {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--ink-950);
  letter-spacing: -0.01em;
}

.fact-card-price {
  background: linear-gradient(145deg, #e8f5ee, #d5ede0);
  border-color: #b8d9c7;
}

.fact-label {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.9rem;
  color: var(--ink-700);
}

#overview p {
  margin-top: 0.9rem;
  color: var(--ink-700);
  max-width: none;
}



/* ── Overview inline photos ── */
.overview-inline-photo {
  margin: 0.3rem 0 1rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  max-width: 50%;
}

.overview-inline-photo.float-right {
  float: right;
  margin-left: 1.4rem;
}

.overview-inline-photo.float-left {
  float: left;
  margin-right: 1.4rem;
}


.overview-inline-photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.overview-side-photo {
  float: right;
  clear: none;
  margin: 0.3rem 0 1rem 1.4rem;
}

.overview-full-photo {
  clear: both;
  margin: 1.4rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.overview-full-photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media (max-width: 900px) {
  .overview-inline-photo {
    float: none !important;
    max-width: 90%;
    margin: 1rem auto;
    display: block;
  }
}

.financing-callout {
  clear: both;
  margin-top: 1.6rem;
  padding: 1.3rem 1.4rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #f0f7f4, #e8f0ec);
  border: 1px solid #c8dad1;
  border-left: 4px solid var(--teal-500);
}

.financing-price {
  font-family: "Montserrat", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink-950);
  margin-bottom: 0.45rem;
}

.financing-callout p {
  color: var(--ink-700);
  max-width: 72ch;
}

.feature-grid {
  margin-top: 1.35rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  padding: 1.35rem 1.15rem 1.2rem;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--ink-100);
  box-shadow: var(--shadow-soft);
}

.feature-card h3 {
  font-size: 1.55rem;
}

.feature-card ul {
  margin: 0.85rem 0 0;
  padding-left: 1.1rem;
}

.feature-card li {
  margin-top: 0.45rem;
  color: var(--ink-700);
}

.classified-gallery {
  padding-bottom: 0.3rem;
}

.category-tabs {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.category-tab {
  border: 1px solid #d7dfde;
  background: var(--white);
  color: var(--ink-700);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-tab:hover {
  border-color: #b8cbc8;
  color: var(--ink-900);
}

.category-tab.active {
  color: var(--white);
  border-color: var(--teal-700);
  background: linear-gradient(135deg, var(--teal-700), #1c5160);
}

.gallery-grid {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.95rem;
}

.gallery-item {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #e2e8eb;
  background: var(--white);
  box-shadow: 0 9px 26px rgba(20, 36, 48, 0.1);
  opacity: 0;
  transform: translateY(10px);
  animation: cardIn 0.42s ease forwards;
  animation-delay: calc(var(--stagger, 0) * 0.04s);
}

.image-trigger {
  border: 0;
  padding: 0;
  margin: 0;
  display: block;
  width: 100%;
  background: #dbe6e9;
  cursor: zoom-in;
}

.image-trigger img {
  width: 100%;
  height: 188px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-item:hover .image-trigger img {
  transform: scale(1.03);
}

.gallery-caption {
  padding: 0.75rem 0.78rem 0.86rem;
}

.gallery-chip {
  display: inline-block;
  margin-bottom: 0.28rem;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--teal-700);
  font-weight: 700;
}

.gallery-caption .gallery-title {
  color: var(--ink-900);
  font-size: 0.96rem;
  line-height: 1.35;
}

.gallery-caption .gallery-alt {
  color: var(--ink-500);
  font-size: 0.82rem;
  line-height: 1.3;
  margin-top: 0.2rem;
  font-style: italic;
}

.map-section {
  padding-bottom: 0.4rem;
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid #d9e0e3;
  box-shadow: var(--shadow-soft);
}

.map-container iframe {
  display: block;
}

.faq-section {
  padding-bottom: 5.8rem;
}

.faq-item {
  border-bottom: 1px solid #dde5ea;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border: 0;
  padding: 1.04rem 0;
  background: none;
  text-align: left;
  color: var(--ink-900);
  font-size: 1.02rem;
  font-weight: 700;
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--teal-700);
}

.faq-question[aria-expanded="true"]::after {
  content: "-";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease, padding-bottom 0.28s ease;
}

.faq-answer.open {
  max-height: 220px;
  padding-bottom: 0.95rem;
}

.faq-answer p {
  color: var(--ink-700);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 16, 23, 0.93);
  padding: 1.3rem;
}

.lightbox.active {
  display: flex;
}

.lightbox-figure {
  margin: 0;
  max-width: min(1100px, 90vw);
  max-height: 90vh;
  text-align: center;
}

.lightbox img {
  max-width: min(1100px, 90vw);
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

#lightboxCaption {
  margin-top: 0.62rem;
  color: rgba(255, 255, 255, 0.93);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  border: 0;
  color: var(--white);
  background: rgba(14, 29, 40, 0.74);
  cursor: pointer;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.45rem;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
  font-size: 1.8rem;
}

.lightbox-prev {
  left: 1.05rem;
}

.lightbox-next {
  right: 1.05rem;
}

.whatsapp-cta {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  z-index: 1050;
  text-decoration: none;
  padding: 0.76rem 1.12rem;
  border-radius: 999px;
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.01em;
  background: linear-gradient(145deg, #27b56a, #1d9857);
  box-shadow: 0 12px 24px rgba(21, 115, 66, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(21, 115, 66, 0.38);
}

.footer-price {
  font-family: "Montserrat", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--ink-950);
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
}

footer {
  padding: 1.75rem 1rem 2.2rem;
  text-align: center;
  color: #6a7c89;
  border-top: 1px solid #e1e7eb;
  background: linear-gradient(180deg, #f6f8f7, #eef3f2);
}

footer p + p {
  margin-top: 0.25rem;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: max(92vh, 580px);
  }

  .hero-content {
    padding: 2rem 0 1rem;
  }

  .hero-price {
    font-size: clamp(2.6rem, 11vw, 4rem);
  }

  .hero-headline {
    font-size: clamp(1.5rem, 5.5vw, 2rem);
  }

  .hero-mosaic {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    width: calc(100% - 1rem);
  }

  .mosaic-tile:nth-child(4),
  .mosaic-tile:nth-child(5) {
    display: none;
  }

  .mosaic-tile:nth-child(3) {
    position: relative;
  }

  .mosaic-tile:nth-child(3) img {
    filter: brightness(0.45);
  }

  .mosaic-tile:nth-child(3)::after {
    content: "+56 Photos";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    pointer-events: none;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-pills {
    gap: 0.35rem;
  }

  .pill {
    font-size: 0.75rem;
    padding: 0.28rem 0.6rem;
  }

  .facts {
    margin-top: -2.3rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-section {
    width: min(var(--max-width), calc(100% - 1.4rem));
    padding-top: 3.2rem;
  }

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

  .image-trigger img {
    height: 128px;
  }

  .gallery-caption p {
    font-size: 0.89rem;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .whatsapp-cta {
    left: 0.8rem;
    right: 0.8rem;
    justify-content: center;
    border-radius: var(--radius-sm);
  }
}
