/* ============================================================
   Zentrycam Proyectos - Hoja de estilos del sitio publico
   ============================================================ */

:root {
  --navy-900: #0c2843;
  --navy-800: #123a63;
  --navy-700: #1a4a7d;
  --gold-500: #e2a13a;
  --gold-400: #efc06e;
  --bg-soft: #f6f7fa;
  --bg-white: #ffffff;
  --text-main: #1c2b3a;
  --text-muted: #5c6b7c;
  --border-soft: #e6e9ee;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebc59;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 14px rgba(12, 40, 67, 0.06);
  --shadow-md: 0 14px 34px rgba(12, 40, 67, 0.12);
  --container: 1180px;
  --font-head: "Bricolage Grotesque", "Georgia", serif;
  --font-body: "Public Sans", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--bg-white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { font-family: var(--font-head); margin: 0 0 14px; line-height: 1.15; font-weight: 700; }
p { margin: 0 0 14px; color: var(--text-muted); }

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

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 0;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--navy-900); color: #fff; }
.btn-primary:hover { background: var(--navy-800); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-light { background: #fff; color: var(--navy-900); border: 1.5px solid var(--navy-900); }
.btn-light:hover { background: var(--navy-900); color: #fff; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: var(--whatsapp-dark); transform: translateY(-1px); }
.btn-whatsapp svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 64px; width: auto; }

nav.main-nav { display: flex; align-items: center; gap: 6px; }
nav.main-nav a {
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-main);
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
nav.main-nav a:hover { background: var(--bg-soft); color: var(--navy-900); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1.5px solid var(--border-soft);
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy-900);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 0; overflow: hidden; }
.hero-media {
  position: relative;
  padding: 90px 0 52px;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(12,40,67,0.92) 0%, rgba(12,40,67,0.76) 40%, rgba(12,40,67,0.40) 70%, rgba(12,40,67,0.18) 100%);
  z-index: 0;
}
.hero-media .container { position: relative; z-index: 1; width: 100%; }
.hero-content { max-width: 620px; color: #fff; text-align: left; margin-right: auto; }
.hero-content .eyebrow { color: var(--gold-400); }
.hero-content h1 { font-size: clamp(32px, 4.4vw, 50px); color: #fff; }
.hero-content p { color: rgba(255,255,255,0.86); font-size: 17px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

/* Datos clave del proyecto (usados debajo de "Terrenos seleccionados"): limpios, sin relleno de color */
.key-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  max-width: 620px;
  margin: 0 auto;
}
.key-stats div {
  flex: 1 1 140px;
  text-align: center;
  padding: 0 22px;
  border-left: 1px solid var(--border-soft);
}
.key-stats div:first-child { border-left: none; }
.key-stats div strong { display: block; font-family: var(--font-head); font-size: 22px; color: var(--navy-900); font-weight: 700; }
.key-stats div span { font-size: 11.5px; color: var(--text-muted); letter-spacing: 0.03em; text-transform: uppercase; }

/* ---------- Generic section ---------- */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin: 0 auto 46px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 38px); }
.section-head p { font-size: 15.5px; }
.section-soft { background: var(--bg-soft); }

/* ---------- Property cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}
.property-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.property-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.property-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.property-media img { width: 100%; height: 100%; object-fit: cover; }
.property-tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(12,40,67,0.88); color: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em;
  padding: 6px 12px; border-radius: 999px;
}
.property-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.property-body h3 { font-size: 19px; margin: 0; }
.property-price { font-family: var(--font-head); font-size: 22px; color: var(--navy-900); font-weight: 700; }
.property-area { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.property-cta { margin-top: 10px; font-size: 13.5px; font-weight: 700; color: var(--gold-500); display: flex; align-items: center; gap: 6px; }
.property-cta svg { width: 14px; height: 14px; }

/* ---------- Info / financing split ---------- */
.info-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
}
.info-split h2 { font-size: clamp(24px, 3vw, 34px); }
.info-points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.info-points li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14.5px; color: var(--text-main); font-weight: 600;
}
.info-points li svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--gold-500); margin-top: 1px; }
.info-figure { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-md); }
.info-figure img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Gallery carousel ---------- */
.carousel { position: relative; max-width: 900px; margin: 0 auto; }
.carousel-viewport {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg-soft);
}
.carousel-track { position: absolute; inset: 0; display: flex; height: 100%; transition: transform 0.55s cubic-bezier(.65,0,.35,1); }
.carousel-slide { position: relative; flex: 0 0 100%; height: 100%; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.92); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); z-index: 3; color: var(--navy-900);
  transition: background 0.15s ease;
}
.carousel-arrow:hover { background: #fff; }
.carousel-arrow.prev { left: 16px; }
.carousel-arrow.next { right: 16px; }
.carousel-arrow svg { width: 20px; height: 20px; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.carousel-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: none;
  background: var(--border-soft); cursor: pointer; padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-dots button.active { background: var(--gold-500); transform: scale(1.25); }

/* ---------- Videos ---------- */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  max-width: 940px;
  margin: 0 auto;
}
.video-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  background: var(--navy-900);
}
.video-card img { width: 100%; height: 100%; object-fit: cover; opacity: 0.88; transition: transform 0.3s ease, opacity 0.3s ease; }
.video-card:hover img { transform: scale(1.05); opacity: 1; }
.video-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,40,67,0) 45%, rgba(12,40,67,0.75) 100%); }
.video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(255,255,255,0.94);
  display: flex; align-items: center; justify-content: center;
  z-index: 2; box-shadow: var(--shadow-md);
}
.video-play svg { width: 22px; height: 22px; color: var(--navy-900); margin-left: 3px; }
.video-caption {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2;
  color: #fff; font-size: 13.5px; font-weight: 700;
}

/* ---------- Lightbox (videos) ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(9, 22, 38, 0.92);
  display: none; align-items: center; justify-content: center;
  z-index: 200; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox-inner { position: relative; width: 100%; max-width: 420px; }
.lightbox-inner video { width: 100%; max-height: 80vh; border-radius: var(--radius-md); background: #000; display: block; }
.lightbox-close {
  position: absolute; top: -46px; right: 0; width: 36px; height: 36px;
  border-radius: 50%; background: rgba(255,255,255,0.14); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.lightbox-close svg { width: 18px; height: 18px; }

/* ---------- Process (accordion) ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  align-items: start;
}
.process-step {
  background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow 0.2s ease;
}
.process-step:has(.process-step-trigger[aria-expanded="true"]) { box-shadow: var(--shadow-md); border-color: var(--gold-500); }
.process-step-trigger {
  width: 100%; background: none; border: 0; cursor: pointer; font-family: var(--font-body);
  padding: 24px 20px 20px; text-align: center; display: flex; flex-direction: column; align-items: center;
  color: inherit;
}
.process-icon {
  width: 52px; height: 52px; border-radius: 50%; background: var(--bg-soft); color: var(--navy-900);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
  transition: background 0.2s ease, color 0.2s ease;
}
.process-icon svg { width: 24px; height: 24px; }
.process-step-trigger[aria-expanded="true"] .process-icon { background: var(--navy-900); color: var(--gold-400); }
.process-step h4 { font-size: 14.5px; margin: 0; }
.process-chevron { margin-top: 10px; color: var(--text-muted); transition: transform 0.2s ease; }
.process-chevron svg { width: 16px; height: 16px; }
.process-step-trigger[aria-expanded="true"] .process-chevron { transform: rotate(180deg); color: var(--gold-500); }
.process-step-body {
  max-height: 0; overflow: hidden; transition: max-height 0.25s ease, padding 0.25s ease;
  padding: 0 20px;
}
.process-step-body p { font-size: 13px; margin: 0; text-align: center; }
.process-step-body.open { max-height: 160px; padding: 0 20px 22px; }

/* ---------- Map ---------- */
.map-wrap {
  max-width: 980px; margin: 0 auto;
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md);
  border: 1px solid var(--border-soft);
}
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; }
.map-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }

/* ---------- CTA strip ---------- */
.cta-strip {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius-lg);
  padding: 54px 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  color: #fff;
}
.cta-strip h2 { color: #fff; font-size: 26px; margin-bottom: 6px; }
.cta-strip p { color: rgba(255,255,255,0.78); margin: 0; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.82); padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid img { height: 54px; margin-bottom: 14px; }
.footer-grid h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer-grid p, .footer-grid a { font-size: 13.5px; color: rgba(255,255,255,0.72); display: block; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--gold-400); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 12.5px; color: rgba(255,255,255,0.5);
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--whatsapp); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  transition: transform 0.15s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  animation: wa-pulse 2.4s infinite;
}
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- Lote (detail) pages ---------- */
.breadcrumb { font-size: 12.5px; color: var(--text-muted); padding: 22px 0 0 0.3cm; }
.breadcrumb a { color: var(--navy-800); font-weight: 600; }
.lote-hero { padding: 30px 0 3cm; }
.lote-hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.lote-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-md); }
.lote-media img { width: 100%; height: 100%; object-fit: cover; }
.lote-info .property-price { font-size: 30px; }
.lote-info .eyebrow { margin-bottom: 8px; }
.lote-features { list-style: none; margin: 20px 0 26px; padding: 0; display: grid; gap: 12px; }
.lote-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; font-weight: 600; }
.lote-features li svg { width: 18px; height: 18px; color: var(--gold-500); flex-shrink: 0; margin-top: 2px; }
.lote-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.lote-sticky-bar {
  position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--border-soft);
  padding: 14px 0; display: none; z-index: 50;
}
.lote-sticky-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* ---------- Mobile ---------- */
@media (max-width: 960px) {
  .info-split { grid-template-columns: 1fr; }
  .info-figure { order: -1; aspect-ratio: 16/9; }
  .lote-hero-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .header-inner { height: 70px; }
  .brand img { height: 50px; }
  nav.main-nav {
    position: fixed; top: 70px; left: 0; right: 0; bottom: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 18px; gap: 4px; transform: translateX(100%);
    transition: transform 0.25s ease; overflow-y: auto;
  }
  nav.main-nav.open { transform: translateX(0); }
  nav.main-nav a { padding: 14px 12px; font-size: 15px; border-bottom: 1px solid var(--border-soft); border-radius: 0; }
  .header-actions .btn-whatsapp span { display: none; }
  .header-actions .btn-whatsapp { padding: 12px; border-radius: 50%; }
  .nav-toggle { display: flex; }
  .hero-media { padding: 46px 0 32px; }
  .map-wrap iframe { height: 300px; }
  .hero-content { max-width: 100%; }
  .key-stats { justify-content: flex-start; }
  .key-stats div { flex: 1 1 30%; padding: 0 10px; }
  .key-stats div strong { font-size: 17px; }
  .key-stats div span { font-size: 9.5px; }
  section { padding: 58px 0; }
  .cta-strip { flex-direction: column; text-align: center; padding: 40px 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .lote-sticky-bar { display: block; }
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}

@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .videos-grid { grid-template-columns: repeat(2, 1fr); }
  .carousel-arrow { width: 38px; height: 38px; }
}
