/* =========================================================
   Tema configurable
   Tokens
========================================================= */
:root{
  --bg: var(--color-bg);
  --bg-alt: var(--color-surface);
  --ivory: var(--color-text);
  --muted: var(--color-muted);
  --gold: var(--color-primary);
  --gold-bright: var(--color-primary-hover);
  --line: rgba(var(--color-text-rgb),0.14);

  /* Texto sobre fotos: siempre claro sobre degradado oscuro fijo */
  --on-image: #FFFFFF;
  --on-image-muted: rgba(255,255,255,.82);

  --display: var(--font-heading);
  --sans: var(--font-body);

  --container: 1180px;
  --section-pad: clamp(4rem, 9vw, 8rem);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1,h2,h3{
  font-family: var(--display);
  font-weight: 500;
  margin: 0 0 .5em;
  letter-spacing: .01em;
}

p{ margin: 0 0 1em; color: var(--muted); }

::selection{ background: var(--gold); color: var(--on-primary); }

/* subtle film grain overlay for warmth */
.grain{
  position: fixed; inset: 0; pointer-events: none; z-index: 999;
  opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.eyebrow{
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0 0 1em;
  display: inline-block;
}

/* =========================================================
   Buttons
========================================================= */
.btn{
  display: inline-block;
  padding: .95em 2.1em;
  font-family: var(--sans);
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: all .3s ease;
  cursor: pointer;
}
.btn-gold{
  background: var(--gold);
  color: var(--on-primary);
}
.btn-gold:hover{ background: var(--gold-bright); }
.btn-line{
  border-color: var(--line);
  color: var(--ivory);
}
.btn-line:hover{ border-color: var(--gold); color: var(--gold-bright); }
.btn-full{ width: 100%; text-align: center; }

/* =========================================================
   Header / Nav
========================================================= */
.site-header{
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  padding: 1.1rem 0;
  transition: background .35s ease, padding .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled{
  background: rgba(var(--color-bg-rgb),.92);
  backdrop-filter: blur(10px);
  padding: .8rem 0;
  border-color: var(--line);
}
.header-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-logo{ height: 52px; width: auto; }

.main-nav{ display: flex; align-items: center; gap: 2.4rem; }
.main-nav a{
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ivory);
  position: relative;
  padding-bottom: 4px;
}
.main-nav a:not(.nav-cta)::after{
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width .3s ease;
}
.main-nav a:not(.nav-cta):hover::after{ width: 100%; }
.nav-cta{
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  padding: .55em 1.2em;
}
.nav-cta:hover{ background: var(--gold); color: var(--on-primary); }
.language-switcher{
  display: flex;
  align-items: center;
  gap: .45rem;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .12em;
}
.language-switcher a{ color: var(--muted); transition: color .2s ease; }
.language-switcher a:hover, .language-switcher a.active{ color: var(--gold-bright); }
.language-switcher a.active{ pointer-events: none; }
.detail-header-actions{ display: flex; align-items: center; gap: 1.5rem; }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px; height: 22px;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span{ width: 100%; height: 1px; background: var(--ivory); }

/* Header sobre foto (páginas con hero): texto claro fijo.
   Con el menú móvil abierto el panel es sólido y usa colores del tema. */
.has-hero .site-header:not(.scrolled) .main-nav:not(.open) a{ color: var(--on-image); }
.has-hero .site-header:not(.scrolled) .main-nav:not(.open) .nav-cta{ border-color: var(--on-image); color: var(--on-image); }
.has-hero .site-header:not(.scrolled) .language-switcher,
.has-hero .site-header:not(.scrolled) .language-switcher a{ color: var(--on-image-muted); }
.has-hero .site-header:not(.scrolled) .language-switcher a.active,
.has-hero .site-header:not(.scrolled) .language-switcher a:hover{ color: var(--on-image); }
.has-hero .site-header:not(.scrolled) .nav-toggle span{ background: var(--on-image); }
.has-hero .site-header:not(.scrolled) .main-nav.open ~ .nav-toggle span{ background: var(--ivory); }

/* Franja de aviso (site_notice): siempre legible, por encima del header fijo */
#site-notice{
  position: sticky; top: 0; z-index: 1001;
  display: block; text-align: center;
  padding: .8rem 1rem; font-size: .9rem; line-height: 1.5; letter-spacing: .02em;
  background: var(--color-primary); color: var(--on-primary);
}

/* =========================================================
   Hero
========================================================= */
.hero{
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.6rem 4rem;
  overflow: hidden;
  background: var(--bg);
}
.hero-bg{
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img{
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.85) brightness(.62);
}
.hero-bg::after{
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,.85) 100%),
    radial-gradient(ellipse at 50% 30%, rgba(var(--color-primary-rgb),.12), transparent 60%);
}
.hero-mark{
  z-index: 1;
  position: absolute;
  top: 50%; left: 50%;
  width: min(70vw, 640px);
  aspect-ratio: 1;
  transform: translate(-50%,-50%);
  color: var(--gold);
  opacity: .14;
  pointer-events: none;
}
.hero-content{ position: relative; z-index: 2; max-width: 780px; }
.hero-content .eyebrow{ color: var(--on-image); text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.hero h1{ color: var(--on-image); text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.hero-sub{ color: var(--on-image-muted); text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.hero h1{
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.1;
  font-weight: 500;
}
.hero h1 em{
  font-style: italic;
  color: var(--gold-bright);
  font-weight: 400;
}
.hero-sub{
  max-width: 520px;
  margin: 1.4rem auto 2.2rem;
  font-size: 1.02rem;
}
.hero-actions{ display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-actions .btn-line{ border-color: rgba(255,255,255,.55); color: var(--on-image); }
.hero-actions .btn-line:hover{ background: var(--gold); border-color: var(--gold); color: var(--on-primary); }

.scroll-cue{
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  width: 1px; height: 46px; background: rgba(255,255,255,.35);
  overflow: hidden;
}
.scroll-cue span{
  position: absolute; top: -46px; left: 0; width: 100%; height: 100%;
  background: var(--gold);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue{
  0%{ top: -46px; } 60%{ top: 46px; } 100%{ top: 46px; }
}

/* =========================================================
   Sections (shared)
========================================================= */
.section{
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--section-pad) 1.6rem;
}
.section-alt{
  max-width: none;
  background: var(--bg-alt);
}
.section-alt > *{ max-width: var(--container); margin-left: auto; margin-right: auto; }
.section-head{ text-align: center; max-width: 640px; margin: 0 auto 3.2rem; }
.section-head h2{ font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.section-note{ font-size: .92rem; }

/* =========================================================
   Desarrollos cards
========================================================= */
.cards-3{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1px;
}
.cards-3 > *{
  flex: 0 1 380px;
  min-width: 280px;
}
.dev-card{
  background: var(--bg);
  padding: 2.6rem 2.2rem;
  transition: background .3s ease;
}
.dev-card:hover{ background: var(--bg-alt); }
.dev-icon{ color: var(--gold); margin-bottom: 1.4rem; }
.dev-card h3{ font-size: 1.5rem; margin-bottom: .5rem; }
.dev-card p{ font-size: .92rem; margin: 0; }
.development-card{
  min-height: 390px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-alt);
}
.development-card img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.8) brightness(.62);
  transition: transform .6s ease, filter .6s ease;
}
.development-card::after{
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.9), rgba(0,0,0,.28) 60%, transparent);
}
.development-card:hover img{ transform: scale(1.05); filter: saturate(.95) brightness(.72); }
.development-card-content{ position: relative; z-index: 1; width: 100%; padding: 2rem; }
.development-card-content .eyebrow{ color: var(--on-image); }
.development-card-content h3{ margin: .3rem 0; font-size: 1.8rem; color: var(--on-image); }
.development-card-content p{ margin: 0; color: var(--on-image-muted); }
.development-card-meta{ color: var(--on-image-muted) !important; font-size: .72rem !important; letter-spacing: .12em; text-transform: uppercase; }

/* =========================================================
   Filter + Gallery
========================================================= */
.filter-bar{
  display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: 2.6rem;
}
.filter-btn{
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--sans);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .6em 1.3em;
  cursor: pointer;
  transition: all .25s ease;
}
.filter-btn:hover{ color: var(--ivory); border-color: var(--gold); }
.filter-btn.active{ background: var(--gold); color: var(--on-primary); border-color: var(--gold); }
.map-toggle[aria-pressed="true"]{ background: var(--gold); color: var(--on-primary); border-color: var(--gold); }
.municipality-filter{
  display: flex;
  margin-left: .8rem;
}
.municipality-filter input{
  min-width: 180px;
  padding: .6em .9em;
  border: 1px solid var(--line);
  border-right: 0;
  background: var(--bg);
  color: var(--ivory);
  font: .78rem var(--sans);
}
.municipality-filter input:focus{ outline: none; border-color: var(--gold); }

.gallery{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.gallery-empty{
  grid-column: 1 / -1;
  margin: 1rem 0;
  text-align: center;
  color: var(--muted);
}
.property-map{
  width: 100%;
  height: clamp(520px, 68vh, 680px);
  border: 1px solid var(--line);
  background: var(--bg-alt);
  font-family: var(--sans);
}
.map-unavailable{
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.property-price-marker{
  border: 0;
  background: transparent;
}
.property-price-marker span{
  position: relative;
  min-width: 80px;
  height: 32px;
  padding: 0 .8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-surface);
  border-radius: 16px;
  background: var(--color-primary);
  color: var(--on-primary);
  box-shadow: 0 3px 12px rgba(0,0,0,.35);
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
}
.property-price-marker span::after{
  content: '';
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 8px;
  height: 8px;
  transform: translateX(-50%) rotate(45deg);
  border-right: 1px solid var(--color-surface);
  border-bottom: 1px solid var(--color-surface);
  background: var(--color-primary);
}
.property-cluster-marker{
  border: 0;
  border-radius: 50%;
  background: transparent;
}
.property-cluster-marker span{
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 2px solid var(--color-surface);
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--on-primary);
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
  font-size: .82rem;
  font-weight: 600;
}
.property-map .leaflet-cluster-spider-leg{ stroke: var(--gold); }
.property-map .leaflet-popup-content-wrapper{
  overflow: hidden;
  border: 1px solid var(--gold);
  border-radius: 4px;
  background: var(--bg-alt);
  color: var(--on-surface);
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
}
.property-map .leaflet-popup-content{ width: 230px !important; margin: 0; }
.property-map .leaflet-popup-tip{ background: var(--bg-alt); }
.map-popup img{ width: 100%; height: 125px; object-fit: cover; }
.map-popup-content{ padding: 1rem; }
.map-popup-content h3{ margin: 0 0 .25rem; font-size: 1.2rem; }
.map-popup-content p{ margin: 0 0 .45rem; font-size: .75rem; }
.map-popup-content strong{
  display: block;
  margin-bottom: .7rem;
  color: var(--gold-bright);
  font-family: var(--display);
  font-size: 1rem;
}
.map-popup-content a{
  color: var(--gold-bright);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.prop-card{ cursor: pointer; transition: opacity .3s ease, transform .3s ease; }
.prop-card:focus-visible{ outline: 1px solid var(--gold); outline-offset: 8px; }
.prop-card.hidden{ display: none; }

.prop-frame{
  position: relative;
  aspect-ratio: 4/3;
  clip-path: polygon(0 6%, 94% 0, 100% 94%, 6% 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-alt);
}
.prop-frame img{
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.92) brightness(.94);
  transition: transform .6s ease, filter .6s ease;
}
.prop-card:hover .prop-frame img{
  transform: scale(1.06);
  filter: saturate(1) brightness(1);
}
.prop-status{
  position: absolute; top: 1.1rem; left: 1.1rem; z-index: 2;
  padding: .42em .8em;
  background: var(--gold); color: var(--on-primary);
  font-size: .65rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}
.prop-status-vendida{ background: var(--on-image); color: #111111; }
.prop-arrow{
  position: absolute; top: 50%; z-index: 2;
  width: 32px; height: 32px; padding: 0;
  display: grid; place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,.4); border-radius: 50%;
  background: rgba(0,0,0,.6); color: var(--on-image);
  font-family: var(--display); font-size: 1.5rem; line-height: 1;
  cursor: pointer; transition: background .2s ease, border-color .2s ease;
}
.prop-arrow:hover, .prop-arrow:focus-visible{ background: var(--gold); border-color: var(--gold); color: var(--on-primary); outline: none; }
.prop-arrow-prev{ left: 1rem; }
.prop-arrow-next{ right: 1rem; }
.prop-info{ padding-top: 1.1rem; }
.prop-tag{
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.prop-info h3{ font-size: 1.25rem; margin: .4rem 0 .3rem; }
.prop-info p{ font-size: .86rem; margin: 0; }
.prop-info .prop-location{ color: var(--muted); margin-bottom: .45rem; }
.prop-info .prop-specs{ color: var(--ivory); font-size: .76rem; letter-spacing: .03em; margin-bottom: .35rem; }
.prop-info .prop-price{ color: var(--gold-bright); font-family: var(--display); font-size: 1.08rem; font-weight: 500; margin-bottom: .25rem; }
.prop-info .prop-description{ color: var(--muted); }
.prop-info .prop-read-more{
  margin-left: .3em;
  color: var(--gold-bright);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
}

/* =========================================================
   Property detail
========================================================= */
.detail-header{
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.2rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.detail-back{
  color: var(--gold-bright);
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.detail-back:hover{ color: var(--ivory); }
.detail-main{
  max-width: 1080px;
  min-height: 75vh;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) 1.6rem 7rem;
}
.detail-status{ padding: 5rem 0; text-align: center; }
.detail-gallery{
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}
.detail-gallery img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-gallery .detail-image-empty{
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: .85rem;
}
.detail-arrow{
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  padding: 0;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  background: rgba(0,0,0,.6);
  color: var(--on-image);
  font: 2rem/1 var(--display);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.detail-arrow:hover{ background: var(--gold); color: var(--on-primary); }
.detail-arrow-prev{ left: 1.4rem; }
.detail-arrow-next{ right: 1.4rem; }
.detail-photo-count{
  position: absolute;
  right: 1.2rem;
  bottom: 1rem;
  padding: .35em .7em;
  background: rgba(0,0,0,.65);
  color: var(--on-image);
  font-size: .7rem;
  letter-spacing: .12em;
}
.detail-specs{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 1px 0 clamp(2.5rem, 6vw, 4.5rem);
  border: 1px solid var(--line);
  background: var(--line);
  gap: 1px;
}
.detail-spec{
  min-height: 150px;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  text-align: center;
}
.detail-spec-icon{ width: 38px; height: 38px; margin-bottom: .7rem; color: var(--gold); }
.detail-spec-icon svg{
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.detail-spec strong{ font: 500 1.25rem var(--display); color: var(--ivory); }
.detail-spec > span:last-child{
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.detail-title{
  max-width: 850px;
  margin-bottom: 1.2rem;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.05;
}
.detail-meta{
  padding: 1.3rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.detail-location{
  margin: 0;
  display: flex;
  align-items: center;
  gap: .65rem;
}
.detail-location svg{
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
}
.detail-price{
  margin: 0;
  color: var(--gold-bright);
  font: 500 clamp(1.15rem, 3vw, 1.55rem) var(--display);
  white-space: nowrap;
}
.detail-share{
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: .7rem;
  border-bottom: 1px solid var(--line);
}
.detail-share > span{
  margin-right: .4rem;
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.detail-share a, .detail-share button{
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ivory);
  cursor: pointer;
}
.detail-share a:hover, .detail-share button:hover{ border-color: var(--gold); color: var(--gold-bright); }
.detail-share svg{
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.detail-share small{ color: var(--gold-bright); font-size: .72rem; }
.detail-description{ max-width: 820px; padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.detail-description h2, .detail-map-section h2{ font-size: clamp(1.8rem, 4vw, 2.5rem); }
.detail-description p{ white-space: pre-line; }
.detail-read-more{
  padding: .3rem 0;
  border: 0;
  border-bottom: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-bright);
  font: 500 .75rem var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
.detail-map-section{ padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.detail-map{
  width: 100%;
  height: 390px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  font-family: var(--sans);
}
[hidden]{ display: none !important; }

/* =========================================================
   Development detail
========================================================= */
.development-header{ max-width: none; padding-right: max(1.6rem, calc((100vw - var(--container)) / 2)); padding-left: max(1.6rem, calc((100vw - var(--container)) / 2)); }
.development-hero{
  min-height: min(78vh, 760px);
  padding: 7rem 1.6rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background-color: var(--bg-alt);
  background-position: center;
  background-size: cover;
  text-align: center;
}
.development-hero-content{ max-width: 950px; }
.development-hero h1{ font-size: clamp(3rem, 9vw, 7rem); line-height: .92; color: var(--on-image); text-shadow: 0 3px 24px rgba(0,0,0,.55); }
.development-tagline{ max-width: 700px; margin: 1rem auto 0; color: var(--on-image); font: italic 400 clamp(1.3rem, 3vw, 2rem) var(--display); text-shadow: 0 2px 16px rgba(0,0,0,.5); }
.development-section{ max-width: var(--container); margin: 0 auto; padding: var(--section-pad) 1.6rem; }
.development-section.section-alt{ max-width: none; }
.development-section-inner{ max-width: var(--container); margin: 0 auto; }
.development-section h2, .development-contact h2{ font-size: clamp(2rem, 5vw, 3.4rem); }
.development-copy{ max-width: 880px; white-space: pre-line; font-size: 1.02rem; }
.development-location-grid{ display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.5rem; align-items: stretch; }
.development-location-grid.without-map{ grid-template-columns: minmax(0, 720px); }
.development-location-copy{ padding: 2rem 0; display: flex; flex-direction: column; justify-content: center; }
.development-location-copy p{ white-space: pre-line; }
.development-place{ color: var(--gold-bright); font-family: var(--display); font-size: 1.25rem; }
.development-directions{ display: flex; gap: .8rem; margin-top: 1.4rem; flex-wrap: wrap; }
.directions-btn{
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .65em 1.3em;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-bright);
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all .3s ease;
}
.directions-btn svg{ width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
.directions-btn:hover{ background: var(--gold); border-color: var(--gold); color: var(--on-primary); }
.directions-btn-secondary{ border-color: var(--line); color: var(--muted); }
.directions-btn-secondary:hover{ border-color: var(--gold); color: var(--on-primary); }
@media (max-width: 767px){
  .development-directions{ flex-direction: column; align-items: stretch; }
  .directions-btn{ width: 100%; justify-content: center; }
}
.masterplan-image{ width: 100%; max-height: 850px; object-fit: contain; border: 1px solid var(--line); background: var(--bg-alt); }
.amenities-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.amenity-card{ min-height: 175px; padding: 1.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; background: var(--bg); text-align: center; }
.amenity-card > span{ width: 42px; height: 42px; color: var(--gold); }
.amenity-card svg{ width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.2; }
.amenity-card strong{ font: 500 1.15rem var(--display); }
.stage-list{ display: flex; gap: .8rem; flex-wrap: wrap; }
.stage-pill{ min-width: 170px; padding: .85rem 1.2rem; border: 1px solid var(--gold); border-radius: 999px; display: flex; gap: .8rem; align-items: center; justify-content: space-between; }
.stage-pill strong{ font: 500 1rem var(--display); }
.stage-pill span{ color: var(--gold-bright); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.development-properties{ margin-top: 2.5rem; }
.development-gallery{ display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.development-gallery button{ padding: 0; aspect-ratio: 4/3; overflow: hidden; border: 1px solid var(--line); background: var(--bg-alt); cursor: zoom-in; }
.development-gallery img{ width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.development-gallery button:hover img{ transform: scale(1.04); }
.development-contact{ max-width: var(--container); margin: 0 auto; padding: var(--section-pad) 1.6rem; text-align: center; }
.development-contact .detail-share{ margin-top: 2rem; justify-content: center; border-top: 1px solid var(--line); }
.development-lightbox{ position: fixed; inset: 0; z-index: 1000; padding: 4rem; display: grid; place-items: center; background: rgba(0,0,0,.92); }
.development-lightbox img{ max-width: 100%; max-height: 88vh; object-fit: contain; }
.development-lightbox button{ position: fixed; top: 1rem; right: 1.5rem; border: 0; background: none; color: var(--on-image); font: 2.5rem/1 var(--display); cursor: pointer; }
body.lightbox-open{ overflow: hidden; }

/* Shared administration layout */
.admin-wrap{ max-width: 860px; margin: 0 auto; padding: 3rem 1.6rem 6rem; }
.admin-login{ max-width: 380px; margin: 6rem auto; text-align: center; }
.admin-login > img{ height: 32px; margin: 0 auto 1rem; }
.status-msg{ min-height: 1.2em; margin-top: 1rem; font-size: .85rem; }
.status-msg.ok{ color: var(--gold-bright); }
.status-msg.err{ color: #e08484; }
.admin-header{ display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2.4rem; }
.admin-header-title{ display: flex; align-items: center; gap: 1rem; }
.admin-header img{ height: 32px; }
.admin-header h1{ margin: 0; font-size: 1.5rem; }
.admin-card{ margin-bottom: 2rem; padding: 2rem; border: 1px solid var(--line); border-radius: 4px; background: var(--bg-alt); }
.admin-field{ display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.2rem; }
.admin-field label{ color: var(--muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.admin-field input, .admin-field select, .admin-field textarea{ padding: .8em .9em; border: 1px solid var(--line); border-radius: 2px; background: var(--bg); color: var(--ivory); font: .95rem var(--sans); }
.admin-field textarea{ width: 100%; min-height: 8rem; resize: vertical; }
.admin-field input:focus, .admin-field select:focus, .admin-field textarea:focus{ outline: none; border-color: var(--gold); }
.translation-field{
  padding: 1rem;
  border-left: 2px solid var(--gold);
  background: rgba(var(--color-primary-rgb),.05);
}
.translation-field label{ color: var(--gold-bright); }
.translation-field-head{ display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.translate-btn{
  padding: .5em .8em;
  border: 1px solid var(--gold);
  border-radius: 2px;
  background: transparent;
  color: var(--gold-bright);
  font: 500 .68rem var(--sans);
  letter-spacing: .06em;
  cursor: pointer;
}
.translate-btn:hover, .translate-btn:focus-visible{ background: var(--gold); color: var(--on-primary); outline: none; }
.translate-btn:disabled{ cursor: wait; opacity: .65; }
.translation-error{ min-height: 1em; margin: 0; color: #e08484; font-size: .76rem; }
.field input[type="file"], .admin-field input[type="file"]{ cursor: pointer; color: var(--muted); }
input[type="file"]::file-selector-button{
  margin-right: .9rem;
  padding: .65em 1em;
  border: 1px solid var(--gold);
  border-radius: 2px;
  background: transparent;
  color: var(--gold-bright);
  font: 500 .7rem var(--sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
input[type="file"]::file-selector-button:hover{ background: var(--gold); color: var(--on-primary); }
.media-preview-list{ display: flex; gap: .8rem; margin-top: .5rem; overflow-x: auto; padding-bottom: .3rem; }
.media-preview-item{ position: relative; width: 140px; height: 96px; flex: 0 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: 2px; background: var(--bg); }
.media-preview-item img{ width: 100%; height: 100%; object-fit: cover; }
.media-preview-state, .preview-item .preview-state{
  position: absolute;
  inset: 0;
  padding: .5rem;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.72);
  color: var(--on-image);
  text-align: center;
  font-size: .68rem;
  line-height: 1.3;
}
.media-preview-state.err, .preview-item .preview-state.err{ color: #f0a0a0; }
.media-preview-remove{
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 2;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: rgba(0,0,0,.7);
  color: var(--on-image);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.media-preview-remove:hover{ border-color: var(--gold); background: var(--gold); color: var(--on-primary); }
.admin-field-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.admin-actions{ display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.admin-list{ display: flex; flex-direction: column; gap: 1rem; }
.admin-row{ padding: 1rem; display: flex; align-items: center; gap: 1rem; border: 1px solid var(--line); border-radius: 4px; }
.admin-row img{ width: 90px; height: 64px; flex: 0 0 auto; object-fit: cover; background: var(--bg); }
.admin-row-info{ flex: 1; min-width: 0; }
.admin-row-info strong, .admin-row-info span{ display: block; }
.admin-row-info span{ color: var(--muted); font-size: .78rem; }
.admin-row-actions{ display: flex; gap: .5rem; }
.admin-small-btn{ padding: .5em 1em; border: 1px solid var(--line); border-radius: 2px; background: none; color: var(--muted); font: .72rem var(--sans); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.admin-small-btn:hover{ border-color: var(--gold); color: var(--gold-bright); }
.stage-editor{ margin-bottom: 1.2rem; padding: 1rem; border: 1px solid var(--line); }
.stage-editor-inputs{ display: grid; grid-template-columns: 1fr 1fr auto; gap: .6rem; }
.stage-editor-list{ display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.stage-editor-item{ padding: .45rem .7rem; display: flex; align-items: center; gap: .5rem; border: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.stage-editor-item button{ border: 0; background: none; color: #e08484; cursor: pointer; }

/* =========================================================
   Nosotros
========================================================= */
.about-grid{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 3.5rem;
  align-items: center;
}
.about-text h2{ font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.about-stats{ display: flex; flex-direction: column; gap: 1.6rem; }
.stat{
  border-left: 1px solid var(--gold);
  padding-left: 1.2rem;
}
.stat-num{
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.7rem;
  color: var(--gold-bright);
}
.stat-label{ font-size: .84rem; color: var(--muted); }

/* =========================================================
   Contacto
========================================================= */
.section-contact{
  max-width: none;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}
.contact-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--section-pad) 1.6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.contact-text h2{ font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.contact-details{ display: flex; flex-direction: column; gap: .5rem; margin-top: 1.4rem; }
.contact-details a{ color: var(--gold-bright); font-size: 1rem; }
.contact-details span{ color: var(--muted); font-size: .88rem; }

.contact-form{ display: flex; flex-direction: column; gap: 1.1rem; }
.form-row{ display: flex; flex-direction: column; gap: .4rem; }
.form-row label{
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.form-row input, .form-row select, .form-row textarea{
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: .95rem;
  padding: .8em .9em;
  border-radius: 2px;
  resize: vertical;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus{
  outline: none; border-color: var(--gold);
}

/* =========================================================
   Footer
========================================================= */
.site-footer{
  text-align: center;
  padding: 3.5rem 1.6rem 2.5rem;
  border-top: 1px solid var(--line);
}
.footer-logo{ height: 52px; width: auto; margin: 0 auto 1.4rem; opacity: .85; }
.footer-links{ display: flex; gap: 1.6rem; justify-content: center; margin-bottom: 1.4rem; }
.footer-links a{
  font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.footer-links a:hover{ color: var(--gold-bright); }
.footer-copy{ font-size: .76rem; color: var(--muted); margin: 0; }

/* =========================================================
   WhatsApp FAB
========================================================= */
.whatsapp-fab{
  position: fixed; right: 1.6rem; bottom: 1.6rem; z-index: 600;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold);
  color: var(--on-primary);
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
  transition: transform .25s ease, background .25s ease;
}
.whatsapp-fab:hover{ transform: translateY(-3px); background: var(--gold-bright); }

/* =========================================================
   Reveal on scroll
========================================================= */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in{ opacity: 1; transform: none; }

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 900px){
  .cards-3{ flex-direction: column; }
  .gallery{ grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-inner{ grid-template-columns: 1fr; }
  .amenities-grid{ grid-template-columns: repeat(2, 1fr); }
  .development-location-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 680px){
  .main-nav{
    position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 320px);
    background: var(--bg); border-left: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 2rem; padding: 2rem;
    transform: translateX(100%);
    transition: transform .35s ease;
  }
  .main-nav.open{ transform: translateX(0); }
  .nav-toggle{ display: flex; }
  .header-inner{ justify-content: flex-start; gap: 1rem; }
  .header-inner .brand{ margin-right: auto; }
  .detail-header-actions{ gap: .8rem; }
  .municipality-filter{ width: 100%; margin: .5rem 0 0; justify-content: center; }
  .municipality-filter input{ min-width: 0; flex: 1; max-width: 240px; }
  .gallery{ grid-template-columns: 1fr; }
  .property-map{ height: 520px; }
  .detail-header{ padding: .9rem 1.1rem; }
  .detail-header .brand-logo{ height: 42px; }
  .detail-back{ font-size: .65rem; letter-spacing: .08em; }
  .detail-main{ padding-right: 1rem; padding-left: 1rem; }
  .detail-gallery{ aspect-ratio: 4 / 3; }
  .detail-arrow{ width: 38px; height: 38px; }
  .detail-arrow-prev{ left: .7rem; }
  .detail-arrow-next{ right: .7rem; }
  .detail-specs{ grid-template-columns: repeat(2, 1fr); }
  .detail-spec{ min-height: 125px; }
  .detail-meta{ align-items: flex-start; flex-direction: column; gap: .7rem; }
  .detail-price{ white-space: normal; }
  .detail-share{ flex-wrap: wrap; padding: 1rem 0; }
  .detail-map{ height: 340px; }
  .development-hero{ min-height: 68vh; }
  .development-gallery{ grid-template-columns: 1fr; }
  .development-lightbox{ padding: 3rem 1rem 1rem; }
  .admin-field-grid, .stage-editor-inputs{ grid-template-columns: 1fr; }
  .admin-row{ align-items: flex-start; flex-wrap: wrap; }
  .admin-row-actions{ width: 100%; justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .reveal{ opacity: 1; transform: none; transition: none; }
  .scroll-cue span{ animation: none; }
}
