/* =========================================================
   TERRENO — Sistema visual
   Estética: premium, cálida y natural. Papel cálido, serif
   editorial (Newsreader), sans neutra (Hanken Grotesk),
   acentos en barro/terracota y verde profundo.
   ========================================================= */

:root {
  /* Tono y fondo */
  --paper:      oklch(0.972 0.010 78);
  --paper-2:    oklch(0.945 0.013 75);
  --paper-3:    oklch(0.915 0.016 74);
  --ink:        oklch(0.245 0.018 60);
  --ink-soft:   oklch(0.445 0.020 62);
  --ink-faint:  oklch(0.620 0.018 65);
  --line:       oklch(0.880 0.014 74);
  --line-soft:  oklch(0.915 0.012 74);

  /* Acentos (misma L y C, distinta H) */
  --clay:       oklch(0.560 0.105 48);   /* terracota — primario */
  --clay-deep:  oklch(0.470 0.095 46);
  --clay-soft:  oklch(0.930 0.030 56);
  --forest:     oklch(0.560 0.105 150);  /* verde — secundario */
  --forest-soft:oklch(0.930 0.030 150);

  /* Oscuro cálido (hero overlay, footer) */
  --charcoal:   oklch(0.215 0.014 62);
  --charcoal-2: oklch(0.275 0.016 62);

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 72px);

  --serif: "Spectral", Georgia, serif;
  --sans:  "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --shadow-sm: 0 1px 2px rgba(40,28,18,.05), 0 4px 14px rgba(40,28,18,.05);
  --shadow-md: 0 10px 30px rgba(40,28,18,.10), 0 2px 6px rgba(40,28,18,.06);
  --shadow-lg: 0 30px 70px rgba(40,28,18,.16), 0 8px 24px rgba(40,28,18,.08);

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* Tipografía */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -0.02em; margin: 0; }
.eyebrow {
  font-family: var(--sans);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--clay);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--clay); display: inline-block; }
.eyebrow.center::after { content: ""; width: 26px; height: 1px; background: var(--clay); display: inline-block; }
.serif-italic { font-style: italic; }

/* =================== HEADER =================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
}
.site-header.scrolled {
  background: color-mix(in oklab, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--paper); transition: color .4s var(--ease); }
.site-header.scrolled .brand { color: var(--ink); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: var(--clay); color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 19px; font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.brand-mark svg { width: 19px; height: 19px; }
.brand-name { font-family: var(--serif); font-size: 20px; letter-spacing: -0.01em; line-height: 1; }
.brand-sub  { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; opacity: .7; }
.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--paper);
  border: 1px solid color-mix(in oklab, #fff 45%, transparent);
  padding: 9px 18px; border-radius: 999px;
  transition: all .3s var(--ease);
}
.site-header.scrolled .header-cta { color: var(--ink); border-color: var(--line); }
.header-cta:hover { background: var(--clay); color: #fff; border-color: var(--clay); }
/* Sin formulario al que enlazar, el botón del encabezado es sólo una etiqueta de estado. */
.header-cta.is-static { cursor: default; opacity: .78; letter-spacing: .02em; }
.header-cta.is-static:hover { background: transparent; color: inherit; border-color: currentColor; }
.site-header.scrolled .header-cta.is-static:hover { color: var(--ink); border-color: var(--line); }
.header-nav { display: flex; align-items: center; gap: 30px; }
.header-nav a.navlink { color: var(--paper); font-size: 14.5px; font-weight: 500; opacity: .9; transition: color .4s var(--ease), opacity .2s; }
.site-header.scrolled .header-nav a.navlink { color: var(--ink-soft); }
.header-nav a.navlink:hover { opacity: 1; color: var(--clay); }

/* =================== HERO =================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media {
  position: absolute; inset: 0; z-index: 0;
  background:
    repeating-linear-gradient(135deg, var(--charcoal) 0 14px, var(--charcoal-2) 14px 28px);
}
.hero-media image-slot { width: 100%; height: 100%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(to top, rgba(28,20,14,.86) 0%, rgba(28,20,14,.30) 42%, rgba(28,20,14,.18) 70%, rgba(28,20,14,.42) 100%);
}
.hero-inner { position: relative; z-index: 3; width: 100%; padding-bottom: clamp(40px, 7vh, 84px); padding-top: 120px; color: var(--paper); }
.hero-tag {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  background: color-mix(in oklab, #fff 14%, transparent);
  border: 1px solid color-mix(in oklab, #fff 26%, transparent);
  backdrop-filter: blur(8px);
  padding: 8px 15px; border-radius: 999px; margin-bottom: 26px;
}
.hero-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--forest-soft); box-shadow: 0 0 0 4px color-mix(in oklab, var(--forest) 40%, transparent); }
.hero-tag .dot.off { background: color-mix(in oklab, var(--paper) 70%, transparent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--paper) 22%, transparent); }
.hero h1 { font-size: clamp(42px, 6.6vw, 92px); max-width: 14ch; letter-spacing: -0.025em; text-shadow: 0 2px 30px rgba(0,0,0,.3); }
.hero h1 em { font-style: italic; color: var(--clay-soft); }
.hero-lede { max-width: 52ch; font-size: clamp(16px, 1.8vw, 20px); margin-top: 22px; color: color-mix(in oklab, #fff 88%, transparent); line-height: 1.55; }
.hero-note { margin-top: 26px; max-width: 54ch; font-size: 15px; line-height: 1.55;
  color: color-mix(in oklab, var(--paper) 78%, transparent);
  border-left: 2px solid color-mix(in oklab, var(--paper) 35%, transparent); padding-left: 15px; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: clamp(20px, 5vw, 64px);
  margin-top: clamp(36px, 6vh, 60px);
  padding-top: 30px;
  border-top: 1px solid color-mix(in oklab, #fff 22%, transparent);
}
.hstat .num { font-family: var(--serif); font-size: clamp(28px, 3.6vw, 44px); line-height: 1; }
.hstat .num small { font-size: .5em; opacity: .8; }
.hstat .lab { font-size: 13px; letter-spacing: .04em; opacity: .82; margin-top: 7px; }
/* Seis métricas (dos lotes): más compactas para que quepan en una línea */
.hero-stats.six { gap: clamp(15px, 2.6vw, 40px); }
.hero-stats.six .num { font-size: clamp(22px, 2.5vw, 34px); }
.hero-stats.six .lab { font-size: 12.5px; margin-top: 6px; }


/* =================== BUTTONS =================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--sans); font-size: 15.5px; font-weight: 600; padding: 15px 28px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: transform .25s var(--ease), box-shadow .3s var(--ease), background .25s, color .25s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--clay); color: #fff; box-shadow: 0 8px 22px color-mix(in oklab, var(--clay) 40%, transparent); }
.btn-primary:hover { background: var(--clay-deep); transform: translateY(-2px); box-shadow: 0 14px 30px color-mix(in oklab, var(--clay) 46%, transparent); }
.btn-ghost { background: color-mix(in oklab, #fff 12%, transparent); color: #fff; border-color: color-mix(in oklab, #fff 40%, transparent); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--charcoal-2); transform: translateY(-2px); }

/* =================== SECTIONS =================== */
section { position: relative; }
.section-pad { padding-block: clamp(72px, 11vh, 140px); }
.section-head { max-width: 62ch; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 58px); margin-top: 18px; letter-spacing: -0.022em; }
.section-head h2 em { font-style: italic; color: var(--clay); }
.section-head p { color: var(--ink-soft); font-size: clamp(16px, 1.5vw, 19px); margin-top: 18px; }

/* Beneficios */
.bg-paper2 { background: var(--paper-2); }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; margin-top: clamp(40px, 6vh, 64px); box-shadow: var(--shadow-sm); }
.benefit { background: var(--paper); padding: 38px 34px; transition: background .35s var(--ease); }
.benefit:hover { background: var(--paper-2); }
.benefit .ic { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; background: var(--clay-soft); color: var(--clay-deep); margin-bottom: 22px; }
.benefit .ic svg { width: 25px; height: 25px; }
.benefit.alt .ic { background: var(--forest-soft); color: oklch(0.40 0.09 150); }
.benefit h3 { font-size: 22px; letter-spacing: -0.01em; }
.benefit p { color: var(--ink-soft); font-size: 15.5px; margin-top: 10px; line-height: 1.55; }

/* Legal strip */
.legal-strip { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; justify-content: center; }
.legal-chip { display: inline-flex; align-items: center; gap: 9px; background: var(--paper); border: 1px solid var(--line); padding: 11px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 500; box-shadow: var(--shadow-sm); }
.legal-chip svg { width: 17px; height: 17px; color: var(--forest); }

/* Galería en mosaico — las celdas rotan lentamente entre las fotos/videos */
.gallery-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 168px; gap: 14px; margin-top: clamp(40px, 6vh, 60px); }
.gcell { position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); cursor: zoom-in; background: var(--paper-3); }
.gcell .layer { position: absolute; inset: 0; opacity: 0; transition: opacity 1.5s var(--ease); }
.gcell .layer.on { opacity: 1; }
.gcell img, .gcell video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gcell-video { cursor: default; }
.gcell .gcap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; padding: 16px; color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .02em; background: linear-gradient(to top, rgba(28,20,14,.78), transparent); pointer-events: none; opacity: 0; transform: translateY(8px); transition: all .35s var(--ease); }
.gcell:hover .gcap { opacity: 1; transform: translateY(0); }
/* El video lleva su rótulo siempre visible (va después para ganar al opacity:0 de arriba) */
.gcell-video .gcap { opacity: 1; transform: none; }

/* Ubicación / mapa */
.bg-dark { background: var(--charcoal); color: var(--paper); }
.bg-dark .section-head h2 { color: var(--paper); }
.bg-dark .section-head h2 em { color: var(--clay-soft); }
.bg-dark .section-head p { color: color-mix(in oklab, var(--paper) 78%, transparent); }
.bg-dark .eyebrow { color: var(--clay-soft); }
.bg-dark .eyebrow::before, .bg-dark .eyebrow.center::after { background: var(--clay-soft); }
.loc-layout { display: grid; grid-template-columns: 1.55fr 1fr; gap: 28px; margin-top: clamp(40px, 6vh, 56px); align-items: stretch; }
/* El mapa se estira a la altura del panel de puntos para quedar al ras */
#map { min-height: 560px; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--charcoal-2); z-index: 1; }
.map-fallback { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 28px; background: var(--charcoal-2); color: color-mix(in oklab, var(--paper) 72%, transparent); }
.map-fallback svg { width: 38px; height: 38px; opacity: .5; }
.map-fallback p { margin: 0; font-size: 15px; max-width: 32ch; }
.poi-panel { display: flex; flex-direction: column; gap: 12px; }
.poi-panel h3 { font-size: 23px; color: var(--paper); margin-bottom: 6px; }
.poi { display: flex; align-items: center; gap: 15px; padding: 15px 18px; background: var(--charcoal-2); border: 1px solid color-mix(in oklab, #fff 8%, transparent); border-radius: 14px; cursor: pointer; transition: transform .2s var(--ease), border-color .25s, background .25s; }
.poi:hover, .poi.active { transform: translateX(5px); border-color: var(--clay); background: color-mix(in oklab, var(--clay) 18%, var(--charcoal-2)); }
.poi .pic { width: 42px; height: 42px; flex: none; border-radius: 11px; display: grid; place-items: center; background: color-mix(in oklab, var(--clay) 22%, transparent); color: var(--clay-soft); }
.poi .pic svg { width: 21px; height: 21px; }
.poi .pmain { flex: 1; min-width: 0; }
.poi .pname { font-weight: 600; font-size: 15.5px; color: var(--paper); }
.poi .pkind { font-size: 12.5px; color: color-mix(in oklab, var(--paper) 60%, transparent); letter-spacing: .02em; }
.poi .ptime { text-align: right; flex: none; }
.poi .ptime b { font-family: var(--serif); font-size: 24px; line-height: 1; color: var(--paper); }
.poi .ptime span { display: block; font-size: 11px; color: color-mix(in oklab, var(--paper) 60%, transparent); letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; }
.poi.poi-oculto { display: none; }
.poi-more { align-self: flex-start; font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--clay-soft); background: none; border: 0; padding: 4px 2px; cursor: pointer; border-bottom: 1px solid color-mix(in oklab, var(--clay-soft) 45%, transparent); transition: color .2s, border-color .2s; }
.poi-more:hover { color: var(--paper); border-color: var(--paper); }

/* Plusvalía */
.invest-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; margin-top: clamp(36px, 5vh, 52px); }
.invest-chart-card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 32px; box-shadow: var(--shadow-md); }
.invest-chart-card .cc-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.invest-chart-card .cc-head .t { font-weight: 600; font-size: 15px; }
.invest-chart-card .cc-head .g { font-size: 13px; font-weight: 700; color: var(--forest); }
.chart-holder { position: relative; height: 280px; margin-top: 14px; }
.invest-points { display: flex; flex-direction: column; gap: 22px; }
.ipoint { display: flex; gap: 18px; }
.ipoint .n { font-family: var(--serif); font-size: 38px; line-height: 1; color: var(--clay); flex: none; width: 64px; }
.ipoint h4 { font-size: 19px; margin: 0 0 6px; font-family: var(--serif); }
.ipoint p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.5; }

/* Size compare */
.sizebar { margin-top: 26px; padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.sizebar .row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.sizebar .row:last-child { margin-bottom: 0; }
.sizebar .lbl { width: 140px; flex: none; font-size: 13.5px; color: var(--ink-soft); }
.sizebar .track { flex: 1; height: 14px; background: var(--paper-3); border-radius: 999px; overflow: hidden; }
.sizebar .fill { display: block; height: 100%; border-radius: 999px; width: 0; transition: width 1.2s var(--ease); }
.sizebar .fill.a { background: var(--clay); }
.sizebar .fill.b { background: var(--forest); }
.sizebar .val { width: 78px; flex: none; text-align: right; font-weight: 600; font-size: 14px; }

/* Plot diagram — plano a escala de los dos lotes */
.plot-card { display: flex; flex-direction: column; }
.plot-svg { width: 100%; height: auto; display: block; margin-top: 10px; }
.plot-svg .lot-fill { stroke: none; }
.plot-svg .lot-a { fill: color-mix(in oklab, var(--clay) 16%, var(--paper)); }
.plot-svg .lot-b { fill: color-mix(in oklab, var(--forest) 15%, var(--paper)); }
.plot-svg .lot-tex { fill: url(#rayado); stroke: none; }
.plot-svg .tex-line { stroke: color-mix(in oklab, var(--clay) 11%, transparent); }
.plot-svg .lot-edge { fill: none; stroke: var(--clay); stroke-width: 2; stroke-linejoin: round; }
.plot-svg text { font-family: var(--sans); }
.plot-svg .lot-tag { font-size: 12px; font-weight: 700; letter-spacing: .14em; fill: var(--ink-soft); }
.plot-svg .lot-area { font-family: var(--serif); font-size: 27px; fill: var(--ink); }
.plot-svg .lot-price { font-size: 14px; font-weight: 600; fill: var(--clay-deep); }
.plot-svg .dim { font-size: 13px; font-weight: 600; fill: var(--clay-deep); }
.plot-svg .dim-bg { fill: var(--paper); }   /* limpia el rayado detrás de la cota interior */
.plot-svg .street { font-size: 11px; font-weight: 600; letter-spacing: .14em; fill: var(--ink-faint); }
.plot-note { text-align: center; font-size: 12.5px; color: var(--ink-faint); margin-top: 4px; }
.price-ref { margin-top: 8px; }
.price-note { margin: 14px 0 0; font-size: 13px; color: var(--ink-faint); line-height: 1.45; }
.price-note strong { color: var(--forest); font-weight: 700; }
.sizebar .lbl.wide { width: 168px; }

/* =================== CIERRE =================== */
.closing.section-pad { padding-block: clamp(52px, 7vh, 92px); }
.closing-inner { max-width: 58ch; margin: 0 auto; text-align: center; }
.closing-inner h2 { font-size: clamp(28px, 3.6vw, 46px); color: var(--paper); margin-top: 18px; }
.closing-inner h2 em { font-style: italic; color: var(--clay-soft); }
.closing-inner p { color: color-mix(in oklab, var(--paper) 78%, transparent); font-size: 17px; margin-top: 16px; }
.closing-note { font-size: 15px !important; color: color-mix(in oklab, var(--paper) 58%, transparent) !important; }

.status-chip { display: inline-flex; align-items: center; gap: 9px; padding: 8px 17px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: color-mix(in oklab, var(--paper) 88%, transparent);
  background: color-mix(in oklab, #fff 8%, transparent);
  border: 1px solid color-mix(in oklab, #fff 20%, transparent); }
.status-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: color-mix(in oklab, var(--paper) 65%, transparent); }

.closing-credit { margin-top: 42px; padding-top: 26px; border-top: 1px solid color-mix(in oklab, #fff 14%, transparent);
  display: flex; flex-direction: column; align-items: center; gap: 4px; }
.closing-credit .k { font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: color-mix(in oklab, var(--paper) 55%, transparent); }
.recode-mark { font-family: var(--serif); font-size: 30px; line-height: 1.2; color: var(--paper);
  transition: color .2s; }
.recode-mark:hover { color: var(--clay-soft); }
.closing-credit .s { font-size: 13px; color: color-mix(in oklab, var(--paper) 50%, transparent); }

.recode-link { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in oklab, currentColor 45%, transparent); transition: color .2s; }
.recode-link:hover { color: var(--clay-soft); }

/* =================== FOOTER =================== */
.site-footer { background: var(--charcoal); color: color-mix(in oklab, var(--paper) 70%, transparent); padding-block: 54px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; align-items: flex-start; }
.footer-top .brand { color: var(--paper); }
.footer-contacts { display: flex; flex-wrap: wrap; gap: 36px; }
.footer-contacts .fc .k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .6; margin-bottom: 6px; }
.footer-contacts .fc .v { color: var(--paper); font-size: 16px; }
.footer-bottom { margin-top: 38px; padding-top: 22px; border-top: 1px solid color-mix(in oklab, #fff 12%, transparent); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(20,14,9,.92); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; padding: 5vw; }
.lightbox.open { display: flex; animation: fade .25s var(--ease); }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox .lb-close { position: absolute; top: 22px; right: 26px; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; opacity: .85; }
.lightbox .lb-close:hover { opacity: 1; }
.lightbox .lb-empty { color: color-mix(in oklab, #fff 70%, transparent); font-family: var(--sans); text-align: center; max-width: 30ch; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Scroll reveal: solo desplazamiento (contenido SIEMPRE visible; si la
   línea de tiempo se congela, no desaparece nada). */
html.js .reveal.in { animation: revealUp .7s var(--ease) both; }
@keyframes revealUp { from { transform: translateY(20px); } to { transform: none; } }
html.js .reveal.in.d1 { animation-delay: .07s; }
html.js .reveal.in.d2 { animation-delay: .14s; }
html.js .reveal.in.d3 { animation-delay: .21s; }
html.js .reveal.in.d4 { animation-delay: .28s; }
html.js .reveal.d1 { } html.js .reveal.d2 { } html.js .reveal.d3 { } html.js .reveal.d4 { }
@media (prefers-reduced-motion: reduce) { html.js .reveal.in { animation: none; } html { scroll-behavior: auto; } }

/* Leaflet popup skin */
.leaflet-popup-content-wrapper { border-radius: 14px !important; box-shadow: var(--shadow-md) !important; padding: 4px 6px !important; }
.leaflet-popup-content { font-family: var(--sans) !important; margin: 12px 16px !important; }
.lp-name { font-weight: 700; font-size: 15px; color: var(--ink); }
.lp-time { color: var(--clay); font-weight: 600; font-size: 13px; margin-top: 3px; }
.pin {
  width: 36px; height: 36px; border-radius: 50% 50% 50% 4px;
  transform: rotate(45deg);
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.35);
  border: 2.5px solid #fff;
}
.pin svg { width: 17px; height: 17px; transform: rotate(-45deg); color: #fff; }
.pin.home { background: var(--clay); width: 46px; height: 46px; }
.pin.home svg { width: 22px; height: 22px; }
.pin.poi { background: var(--forest); }

/* =================== RESPONSIVE =================== */
@media (max-width: 1024px) {
  .loc-layout { grid-template-columns: 1fr; }
  #map { min-height: 420px; height: 420px; }
  .gallery-mosaic { grid-auto-rows: 140px; }
  .invest-layout { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .header-nav { display: none; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .benefits-grid { grid-template-columns: 1fr; }
  .gallery-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 128px; gap: 10px; }
  .hero-stats { gap: 26px; }
  .header-cta { display: none; }
  .ipoint .n { font-size: 30px; width: 50px; }
}
