/* ============================================================
   LG Inmobiliaria — Estilos Frontend
   Leonardo Giménez Inmobiliaria · Matrícula MP.7388
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* ── Variables ─────────────────────────────────── */
:root {
  --go-ivory:        #f7f3ea;
  --go-taupe:        #968a76;
  --go-forest:       #214d40;
  --go-graphite:     #282c2b;
  --go-gold:         #a88140;
  --go-font-display:'Cormorant Garamond', Georgia, serif;
  --go-font-body:   'Montserrat', system-ui, sans-serif;
  --go-border:       rgba(40,44,43,.12);
  --go-border-strong:rgba(33,77,64,.22);
  --lgi-dark:        var(--go-forest);
  --lgi-dark-mid:    #14190e;
  --lgi-dark-surf:   #1a2012;
  --lgi-dark-border: rgba(76,175,80,.15);
  --lgi-green:       var(--go-forest);
  --lgi-green-mid:   #183d33;
  --lgi-green-bright:var(--go-forest);
  --lgi-green-light: #c7ddd1;
  --lgi-green-pale:  #e9efe9;
  --lgi-bg:          var(--go-ivory);
  --lgi-bg-alt:      #f0ebe1;
  --lgi-card:        #ffffff;
  --lgi-border:      #d8d0c1;
  --lgi-text:        var(--go-graphite);
  --lgi-text-mid:    #50554e;
  --lgi-text-muted:  var(--go-taupe);
  --lgi-white:       #ffffff;
  --lgi-gold:        var(--go-gold);
  --lgi-wa:          #25d366;
  --ff-title:        var(--go-font-display);
  --ff-body:         var(--go-font-body);
  --radius:          10px;
  --radius-lg:       16px;
  --shadow:          0 2px 16px rgba(6,14,9,.07);
  --shadow-md:       0 6px 32px rgba(6,14,9,.12);
  --shadow-lg:       0 16px 56px rgba(6,14,9,.18);
  --transition:      all .28s cubic-bezier(.4,0,.2,1);
  --nav-h:           72px;
}

/* ── Canvas resets — neutralize TwentyTwentyFive bleeding ── */
body.lgi-canvas {
  margin: 0 !important;
  padding: 0 !important;
  background: var(--lgi-bg) !important;
  font-family: var(--ff-body) !important;
  color: var(--lgi-text) !important;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.lgi-canvas .wp-site-blocks,
body.lgi-canvas .wp-block-template-part,
body.lgi-canvas header.wp-block-template-part,
body.lgi-canvas footer.wp-block-template-part { display: none !important; }
body.lgi-canvas #lgi-page { display: flex; flex-direction: column; min-height: 100vh; }
body.lgi-canvas #lgi-main { flex: 1; }
body.lgi-canvas h1.wp-block-post-title,
body.lgi-canvas .wp-block-post-content,
body.lgi-canvas .wp-block-group.is-layout-constrained,
body.lgi-canvas .has-global-padding { all: unset !important; }

/* ── Global page wrapper ─────────────────────────── */
#lgi-page { font-family: var(--ff-body); }
#lgi-page *, #lgi-page *::before, #lgi-page *::after { box-sizing: border-box; }
#lgi-page a { text-decoration: none; }
#lgi-page img { max-width: 100%; height: auto; display: block; }
#lgi-page h1,#lgi-page h2,#lgi-page h3,#lgi-page h4 {
  font-family: var(--ff-title);
  line-height: 1.2;
  margin: 0;
}
#lgi-page p { margin: 0; }
#lgi-page ul { list-style: none; margin: 0; padding: 0; }
#lgi-page button { font-family: var(--ff-body); cursor: pointer; }

/* ── Container ──────────────────────────────────── */
.lgi-container, .lg-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px) {
  .lgi-container, .lg-container { padding: 0 20px; }
}

/* ====================================================
   NAVIGATION
   ==================================================== */
.lgi-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background .35s ease, box-shadow .35s ease;
}
.lgi-nav.scrolled,
.lgi-nav--dark {
  background: rgba(6,14,9,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.lgi-nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.lgi-nav-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1;
}
.lgi-nav-logo-name {
  font-family: var(--ff-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.01em;
}
.lgi-nav-logo-mat {
  font-family: var(--ff-body);
  font-size: .65rem;
  color: var(--lgi-green-light);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: 2px;
}
.lgi-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
}
.lgi-nav-links li a {
  display: block;
  padding: 8px 14px;
  font-family: var(--ff-body);
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.82);
  text-decoration: none;
  border-radius: 6px;
  transition: var(--transition);
  letter-spacing: .01em;
}
.lgi-nav-links li a:hover,
.lgi-nav-links li a.active {
  color: #fff;
  background: rgba(76,175,80,.15);
}
.lgi-nav-cta {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lgi-nav-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lgi-wa);
  color: #fff;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: .84rem;
  font-weight: 600;
  font-family: var(--ff-body);
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.lgi-nav-wa:hover { background: #1ebe5d; color: #fff; }
.lgi-nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
}
.lgi-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}
.lgi-nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.lgi-nav-toggle.open span:nth-child(2) { opacity: 0; }
.lgi-nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav dropdown */
.lgi-nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(6,14,9,.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 20px 24px 28px;
  border-top: 1px solid rgba(76,175,80,.2);
  z-index: 999;
  transform: translateY(-10px);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.lgi-nav-mobile.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.lgi-nav-mobile a {
  display: block;
  padding: 13px 0;
  font-family: var(--ff-body);
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  border-bottom: 1px solid rgba(76,175,80,.12);
  text-decoration: none;
  transition: color .2s;
}
.lgi-nav-mobile a:last-child { border-bottom: none; }
.lgi-nav-mobile a:hover { color: var(--lgi-green-bright); }
.lgi-nav-mobile-wa {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--lgi-wa);
  color: #fff !important;
  border-radius: 8px;
  padding: 13px;
  font-weight: 600 !important;
  border-bottom: none !important;
}
.lgi-nav-mobile-wa:hover { background: #1ebe5d !important; }

@media (max-width: 900px) {
  .lgi-nav-links, .lgi-nav-cta { display: none; }
  .lgi-nav-toggle { display: flex; }
  .lgi-nav-inner { gap: 16px; }
}
@media (max-width: 640px) {
  .lgi-nav-inner { padding: 0 20px; }
}

/* ====================================================
   FOOTER
   ==================================================== */
.lgi-footer {
  background: var(--lgi-dark);
  color: rgba(255,255,255,.75);
  font-family: var(--ff-body);
}
.lgi-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 3.2fr 1fr 1fr;
  gap: 36px;
  padding: 64px 0 48px;
}
.lgi-footer-brand-name {
  font-family: var(--ff-title);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.lgi-footer-brand-mat {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lgi-green-light);
  margin-bottom: 14px;
}
.lgi-footer-brand-desc {
  font-size: .85rem;
  line-height: 1.7;
  color: rgba(255,255,255,.6);
  max-width: 260px;
}
.lgi-footer-col h4 {
  font-family: var(--ff-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lgi-green-light);
  margin-bottom: 18px;
}
.lgi-footer-col ul { list-style: none; margin: 0; padding: 0; }
.lgi-footer-col ul li { margin-bottom: 10px; }
.lgi-footer-col ul li a {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color .2s;
}
.lgi-footer-col ul li a:hover { color: var(--lgi-green-bright); }
.lgi-footer-contact-items,
.lgi-footer-contacts { display: flex; flex-direction: column; gap: 12px; }
.lgi-footer-ci {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  line-height: 1.5;
}
.lgi-footer-ci svg { flex-shrink: 0; margin-top: 2px; opacity: .7; }
.lgi-footer-ci a { color: inherit; text-decoration: none; transition: color .2s; }
.lgi-footer-ci a:hover { color: var(--lgi-green-bright); }
.lgi-footer-bottom {
  border-top: 1px solid rgba(76,175,80,.12);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
  gap: 16px;
  flex-wrap: wrap;
}
.lgi-footer-bottom a { color: var(--lgi-green-light); text-decoration: none; }
.lgi-footer-bottom a:hover { color: #fff; }

@media (max-width: 900px) {
  .lgi-footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; padding: 48px 0 36px; }
}
@media (max-width: 640px) {
  .lgi-footer-grid { grid-template-columns: 1fr; gap: 32px; padding: 40px 0 32px; }
  .lgi-footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
}

/* ====================================================
   FLOATING WHATSAPP BUTTON
   ==================================================== */
.lgi-wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 58px;
  height: 58px;
  background: var(--lgi-wa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform .25s ease, box-shadow .25s ease;
  text-decoration: none;
}
.lgi-wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,.55);
}
.lgi-wa-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,.35);
  animation: lgi-wa-pulse 2.5s ease infinite;
}
@keyframes lgi-wa-pulse {
  0%,100% { transform: scale(1); opacity: .8; }
  50% { transform: scale(1.18); opacity: 0; }
}
@media (max-width: 640px) {
  .lgi-wa-float { bottom: 20px; right: 20px; width: 52px; height: 52px; }
}

/* ====================================================
   SCOPED RESET
   ==================================================== */
.lg-inmo, .lg-inmo *, .lg-property-detail, .lg-property-detail * {
  box-sizing: border-box;
}
.lg-inmo a { text-decoration: none; }
.lg-inmo img { max-width: 100%; height: auto; }

/* ── Typography helpers ─────────────────────────── */
.lg-inmo h1, .lg-inmo h2, .lg-inmo h3 {
  font-family: var(--ff-title);
  line-height: 1.2;
}
.lg-label {
  font-family: var(--ff-body);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lgi-green-bright);
  margin-bottom: 10px;
  display: block;
}

/* ── Buttons ────────────────────────────────────── */
.lg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: .9rem;
  border-radius: 8px;
  padding: 12px 24px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.lg-btn-green  { background: var(--lgi-green-bright); color: #fff; border-color: var(--lgi-green-bright); }
.lg-btn-green:hover { background: var(--lgi-green-mid); border-color: var(--lgi-green-mid); color: #fff; }
.lg-btn-wa     { background: var(--lgi-wa); color: #fff; border-color: var(--lgi-wa); }
.lg-btn-wa:hover { background: #1ebe5d; border-color: #1ebe5d; color: #fff; }
.lg-btn-wa-lg  { background: var(--lgi-wa); color: #fff; border-color: var(--lgi-wa); padding: 14px 32px; font-size: 1rem; }
.lg-btn-wa-lg:hover { background: #1ebe5d; border-color: #1ebe5d; color: #fff; }
.lg-btn-wa-full { width: 100%; justify-content: center; background: var(--lgi-wa); color: #fff; border-color: var(--lgi-wa); padding: 14px; font-size: 1rem; }
.lg-btn-wa-full:hover { background: #1ebe5d; color: #fff; }
.lg-btn-outline-dark  { background: transparent; color: var(--lgi-green); border-color: var(--lgi-green); }
.lg-btn-outline-dark:hover { background: var(--lgi-green); color: #fff; }
.lg-btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.lg-btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.lg-btn-ghost-sm, .lg-btn-green-sm, .lg-btn-map-sm { padding: 8px 16px; font-size: .83rem; border-radius: 6px; }
.lg-btn-green-sm { background: var(--lgi-green-bright); color: #fff; border-color: var(--lgi-green-bright); }
.lg-btn-green-sm:hover { background: var(--lgi-green-mid); }
.lg-btn-ghost-sm { background: transparent; color: var(--lgi-text-muted); border: 1px solid var(--lgi-border); }
.lg-btn-ghost-sm:hover { border-color: var(--lgi-green); color: var(--lgi-green); }
.lg-btn-map-sm   { background: var(--lgi-green-pale); color: var(--lgi-green); border: 1px solid var(--lgi-green-light); }
.lg-btn-full { width: 100%; justify-content: center; }

/* ── Sections ────────────────────────────────────── */
.lg-section { padding: 88px 0; }
.lg-section-light { background: var(--lgi-bg); }
.lg-section-dark  { background: var(--lgi-dark-mid); }
.lg-section-header { text-align: center; margin-bottom: 52px; }
.lg-section-header h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); color: var(--lgi-text); margin-bottom: 14px; }
.lg-section-header h2 em { font-style: italic; color: var(--lgi-green); }
.lg-section-header p { font-size: 1rem; color: var(--lgi-text-muted); max-width: 520px; margin: 0 auto; line-height: 1.75; }
.lg-section-header-light h2 { color: var(--lgi-white); }
.lg-section-header-light p  { color: rgba(255,255,255,.7); }
.lg-section-header-light .lg-label { color: var(--lgi-green-light); }
.lg-section-cta { text-align: center; margin-top: 44px; }

/* ====================================================
   HERO — 2-column layout
   ==================================================== */
.lg-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(150deg, rgba(17,22,13,.97) 0%, rgba(20,25,14,.90) 55%, rgba(20,25,14,.95) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 800 800'%3E%3Cg fill='none' stroke='%234caf50' stroke-width='1.5' opacity='0.035'%3E%3Ccircle cx='400' cy='400' r='300'/%3E%3Ccircle cx='400' cy='400' r='200'/%3E%3Ccircle cx='400' cy='400' r='100'/%3E%3Cpath d='M100 400 Q250 200 400 400 Q550 600 700 400'/%3E%3Cpath d='M400 100 Q600 250 400 400 Q200 550 400 700'/%3E%3C/g%3E%3C/svg%3E") center/cover;
  overflow: hidden;
}
.lg-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 75% 40%, rgba(46,125,50,.18) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 70%, rgba(76,175,80,.08) 0%, transparent 45%);
  pointer-events: none;
}
.lg-hero .lg-container {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 80px;
  width: 100%;
}
.lg-hero-grid {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 64px;
  align-items: start;
}
.lg-hero-content {}
.lg-hero-content .lg-label { color: var(--lgi-green-light); margin-bottom: 18px; }
.lg-hero-title {
  font-family: var(--ff-title);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  color: var(--lgi-white);
  line-height: 1.12;
  margin-bottom: 22px;
}
.lg-hero-title em { font-style: italic; color: var(--lgi-green-light); }
.lg-hero-sub {
  font-size: clamp(.95rem, 1.8vw, 1.1rem);
  color: rgba(255,255,255,.72);
  line-height: 1.75;
  margin-bottom: 38px;
  max-width: 500px;
}
.lg-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

/* Stats row under hero CTAs */
.lg-hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 36px;
  border-top: 1px solid rgba(76,175,80,.2);
}
.lg-hero-stat-num {
  font-family: var(--ff-title);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.lg-hero-stat-label {
  font-size: .75rem;
  color: rgba(255,255,255,.5);
  margin-top: 4px;
  font-family: var(--ff-body);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Right panel: search card */
.lg-hero-panel {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 36px 28px;
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
}
.lg-hero-panel h3 {
  font-family: var(--ff-title);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 6px;
}
.lg-hero-panel > p {
  font-size: .83rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 24px;
}
.lg-hero-search { display: flex; flex-direction: column; gap: 14px; }
.lg-hero-select,
.lg-hero-input {
  width: 100%;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.18);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: .88rem;
  font-family: var(--ff-body);
  color: #fff;
  transition: border-color .2s;
  appearance: none;
  -webkit-appearance: none;
}
.lg-hero-select option { background: var(--lgi-dark-mid); color: #fff; }
.lg-hero-select:focus,
.lg-hero-input:focus {
  outline: none;
  border-color: var(--lgi-green-bright);
  background: rgba(255,255,255,.14);
}
.lg-hero-select::placeholder,
.lg-hero-input::placeholder { color: rgba(255,255,255,.45); }
.lg-hero-search-btn {
  width: 100%;
  justify-content: center;
  padding: 13px;
  font-size: .95rem;
  border-radius: 10px;
  margin-top: 4px;
}
.lg-hero-panel-footer {
  margin-top: 18px;
  text-align: center;
  font-size: .78rem;
  color: rgba(255,255,255,.35);
  font-family: var(--ff-body);
}

/* Old single-column hero inner (fallback) */
.lg-hero-inner { max-width: 680px; }

.lg-hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.3);
  font-size: 1.3rem;
  animation: lgi-bounce 2.2s ease-in-out infinite;
}
@keyframes lgi-bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(9px); }
}

@media (max-width: 1024px) {
  .lg-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .lg-hero-panel { max-width: 480px; }
  .lg-hero-content .lg-hero-sub { max-width: 100%; }
}
@media (max-width: 640px) {
  .lg-hero { min-height: auto; }
  .lg-hero .lg-container { padding-top: calc(var(--nav-h) + 32px); padding-bottom: 60px; }
  .lg-hero-title { font-size: 2rem; }
  .lg-hero-cta { flex-direction: column; gap: 12px; }
  .lg-hero-cta .lg-btn { width: 100%; justify-content: center; }
  .lg-hero-stats { gap: 20px; flex-wrap: wrap; }
  .lg-hero-panel { padding: 24px 20px; }
}

/* ── Filtros ─────────────────────────────────────── */
.lg-filters-wrap {
  background: var(--lgi-card);
  border: 1px solid var(--lgi-border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}
.lg-filters-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.lg-filter-select, .lg-filter-input {
  border: 1.5px solid var(--lgi-border);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: .875rem;
  font-family: var(--ff-body);
  color: var(--lgi-text);
  background: var(--lgi-bg);
  flex: 1;
  min-width: 140px;
  max-width: 200px;
  transition: border-color .2s;
  appearance: none;
  -webkit-appearance: none;
}
.lg-filter-select:focus, .lg-filter-input:focus {
  outline: none;
  border-color: var(--lgi-green-bright);
  background: #fff;
}
.lg-contador {
  font-size: .85rem;
  color: var(--lgi-text-muted);
  margin-bottom: 20px;
  font-family: var(--ff-body);
}

/* ── Grid de propiedades ─────────────────────────── */
.lg-properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 40px;
}

/* ── Tarjeta ──────────────────────────────────────── */
.lg-property-card {
  background: var(--lgi-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
}
.lg-property-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  border-color: var(--lgi-green-light);
}
.lg-card-image {
  position: relative;
  display: block;
  height: 230px;
  overflow: hidden;
  background: var(--lgi-green-pale);
}
.lg-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.lg-property-card:hover .lg-card-image img { transform: scale(1.07); }
.lg-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  background: var(--lgi-green-pale);
}
.lg-badge-op {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-family: var(--ff-body);
}
.lg-badge-venta    { background: rgba(6,14,9,.85); color: var(--lgi-green-light); backdrop-filter: blur(4px); }
.lg-badge-alquiler { background: rgba(230,81,0,.9); color: #fff; }
.lg-badge-estado-card {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: .66rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--ff-body);
  backdrop-filter: blur(4px);
}
.lg-badge-dest-card {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 1.1rem;
  text-shadow: 0 2px 6px rgba(0,0,0,.5);
}
.lg-card-body {
  padding: 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lg-card-precio {
  font-family: var(--ff-title);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--lgi-green);
}
.lg-card-titulo {
  font-family: var(--ff-title);
  font-size: 1rem;
  font-weight: 600;
  color: var(--lgi-text);
  margin: 0;
  line-height: 1.35;
}
.lg-card-titulo a { color: inherit; }
.lg-card-titulo a:hover { color: var(--lgi-green); }
.lg-card-dir {
  font-size: .8rem;
  color: var(--lgi-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--ff-body);
}
.lg-card-carac {
  display: flex;
  gap: 14px;
  font-size: .8rem;
  color: var(--lgi-text-mid);
  padding-top: 12px;
  border-top: 1px solid var(--lgi-border);
  margin-top: auto;
  font-family: var(--ff-body);
  flex-wrap: wrap;
}
.lg-card-carac span { display: flex; align-items: center; gap: 4px; }
.lg-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.lg-card-btn-detail {
  flex: 1;
  text-align: center;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--lgi-green-pale);
  color: var(--lgi-green);
  font-size: .84rem;
  font-weight: 600;
  font-family: var(--ff-body);
  transition: var(--transition);
  border: 1.5px solid var(--lgi-green-light);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lg-card-btn-detail:hover { background: var(--lgi-green); color: #fff; border-color: var(--lgi-green); }
.lg-card-btn-wa {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--lgi-wa);
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: var(--transition);
  text-decoration: none;
}
.lg-card-btn-wa:hover { background: #1ebe5d; }

/* ── Map containers ──────────────────────────────── */
#lg-global-map,
#lg-detail-map,
#lgi-admin-map {
  width: 100%;
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--lgi-bg-alt);
  border: 1px solid var(--lgi-border);
}
#lg-global-map { height: 380px; margin-bottom: 28px; }
.lg-map-toggle-wrap { margin-bottom: 18px; }

/* ── Loading / Spinner ───────────────────────────── */
.lg-loading { display: flex; justify-content: center; padding: 64px 0; }
.lg-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--lgi-green-pale);
  border-top-color: var(--lgi-green-bright);
  border-radius: 50%;
  animation: lgi-spin .75s linear infinite;
}
@keyframes lgi-spin { to { transform: rotate(360deg); } }

/* ── Empty state ─────────────────────────────────── */
.lg-empty {
  text-align: center;
  padding: 64px 24px;
  color: var(--lgi-text-muted);
  font-family: var(--ff-body);
}
.lg-empty-icon { font-size: 3rem; margin-bottom: 16px; }
.lg-empty h3 { font-family: var(--ff-title); font-size: 1.3rem; color: var(--lgi-text); margin-bottom: 8px; }
.lg-empty p { font-size: .9rem; max-width: 340px; margin: 0 auto 24px; line-height: 1.7; }

/* ── Paginación ───────────────────────────────────── */
.lg-paginacion {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 8px 0 40px;
}
.lg-paginacion button {
  border: 1.5px solid var(--lgi-border);
  background: var(--lgi-card);
  border-radius: 8px;
  padding: 9px 18px;
  font-size: .875rem;
  font-family: var(--ff-body);
  cursor: pointer;
  transition: var(--transition);
  color: var(--lgi-text);
}
.lg-paginacion button:hover,
.lg-paginacion button.active {
  background: var(--lgi-green);
  border-color: var(--lgi-green);
  color: #fff;
}

/* ── Servicios grid ───────────────────────────────── */
.lg-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}
.lg-service-card {
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(165,214,167,.28);
  border-radius: var(--radius-lg);
  padding: 36px 26px;
  text-align: center;
  transition: var(--transition);
}
.lg-service-card:hover {
  background: rgba(255,255,255,.20);
  border-color: var(--lgi-green-light);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
}
.lg-service-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.lg-service-icon .lgi-icon {
  width: 120px !important;
  height: 120px !important;
  object-fit: contain;
  display: block;
}
.lg-service-card h3 {
  font-family: var(--ff-title);
  font-size: 1.15rem;
  color: var(--lgi-green-light);
  margin-bottom: 12px;
}
.lg-service-card p { font-size: .875rem; color: rgba(255,255,255,.65); line-height: 1.75; }
.lg-services-grid-page .lg-service-card {
  background: var(--lgi-card);
  border-color: var(--lgi-border);
  box-shadow: var(--shadow);
}
.lg-services-grid-page .lg-service-card h3 { color: var(--lgi-green); }
.lg-services-grid-page .lg-service-card p  { color: var(--lgi-text-muted); }
.lg-services-grid-page .lg-service-card:hover { border-color: var(--lgi-green-bright); }
.lg-services-grid-page .lg-service-icon .lgi-icon {
  /* no override needed — transparent icons float on any background */
}

/* ── Trust / Confianza ────────────────────────────── */
.lg-trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.lg-trust-text h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); color: var(--lgi-text); margin-bottom: 14px; }
.lg-trust-text h2 em { color: var(--lgi-green); }
.lg-trust-sub { font-size: 1rem; color: var(--lgi-text-muted); line-height: 1.75; margin-bottom: 28px; }
.lg-trust-items { display: flex; flex-direction: column; gap: 18px; margin-bottom: 32px; }
.lg-trust-item { display: flex; align-items: flex-start; gap: 14px; }
.lg-trust-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 1px; }
.lg-trust-item strong { display: block; font-size: .95rem; color: var(--lgi-text); font-family: var(--ff-body); font-weight: 600; }
.lg-trust-item span { font-size: .83rem; color: var(--lgi-text-muted); line-height: 1.5; }
.lg-trust-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lg-stat-card {
  background: var(--lgi-green-pale);
  border: 1px solid var(--lgi-green-light);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
}
.lg-stat-num {
  font-family: var(--ff-title);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--lgi-green);
  line-height: 1;
  margin-bottom: 8px;
}
.lg-stat-label { font-size: .8rem; color: var(--lgi-text-muted); font-family: var(--ff-body); line-height: 1.4; }

/* ── CTA Section ──────────────────────────────────── */
.lg-cta-section {
  background: var(--lgi-dark);
  position: relative;
  overflow: hidden;
}
.lg-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(76,175,80,.1) 0%, transparent 65%);
  pointer-events: none;
}
.lg-cta-inner { text-align: center; position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.lg-cta-inner h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); color: var(--lgi-white); margin-bottom: 16px; }
.lg-cta-inner h2 em { font-style: italic; color: var(--lgi-green-light); }
.lg-cta-inner p { font-size: 1rem; color: rgba(255,255,255,.66); line-height: 1.75; margin-bottom: 36px; }
.lg-cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.lg-cta-contact a {
  color: var(--lgi-green-light);
  font-size: .88rem;
  text-decoration: none;
  font-family: var(--ff-body);
}
.lg-cta-contact a:hover { color: #fff; text-decoration: underline; }

/* ====================================================
   DETAIL PAGE
   ==================================================== */
.lg-property-detail {
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 32px 64px;
}
.lg-detail-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  margin-bottom: 48px;
  align-items: start;
}
.lg-gallery-wrap {}
.lg-gallery-main {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: #071a10;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lg-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity .3s ease;
}
.lg-gallery-main #lg-main-img-link {
  width: 100%;
  height: 100%;
  display: block;
  cursor: zoom-in;
}
.lg-gallery-prev, .lg-gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(6,14,9,.72);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(6px);
}
.lg-gallery-prev { left: 14px; }
.lg-gallery-next { right: 14px; }
.lg-gallery-prev:hover, .lg-gallery-next:hover { background: var(--lgi-green); }
.lg-gallery-count {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: .75rem;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: var(--ff-body);
  backdrop-filter: blur(4px);
}

.lg-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(3,10,7,.92);
  backdrop-filter: blur(6px);
  padding: 28px;
}

.lg-lightbox.is-open {
  display: flex;
}

.lg-lightbox-stage {
  width: min(94vw, 1400px);
  height: min(88vh, 920px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lg-lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.lg-lightbox-prev,
.lg-lightbox-next,
.lg-lightbox-close {
  position: absolute;
  border: 1px solid rgba(255,255,255,.26);
  background: rgba(7,23,16,.72);
  color: #f3fff6;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, border-color .2s ease;
}

.lg-lightbox-prev,
.lg-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 999px;
  font-size: 1.65rem;
}

.lg-lightbox-prev { left: 28px; }
.lg-lightbox-next { right: 28px; }

.lg-lightbox-close {
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-size: 1.8rem;
  line-height: 1;
}

.lg-lightbox-prev:hover,
.lg-lightbox-next:hover,
.lg-lightbox-close:hover {
  background: rgba(143,242,166,.22);
  border-color: rgba(143,242,166,.58);
}

.lg-lightbox-count {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .82rem;
  color: rgba(243,255,246,.9);
  background: rgba(7,23,16,.78);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 6px 12px;
}

body.lg-lightbox-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .lg-lightbox {
    padding: 14px;
  }

  .lg-lightbox-prev,
  .lg-lightbox-next {
    width: 44px;
    height: 44px;
    font-size: 1.35rem;
  }

  .lg-lightbox-prev { left: 10px; }
  .lg-lightbox-next { right: 10px; }
  .lg-lightbox-close { top: 10px; right: 10px; }
}

.lg-gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--lgi-green-light) transparent;
}
.lg-thumb {
  width: 84px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
  transition: var(--transition);
  opacity: .7;
}
.lg-thumb:hover, .lg-thumb.active { border-color: var(--lgi-green-bright); opacity: 1; }
.lg-gallery-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  background: var(--lgi-green-pale);
  border-radius: var(--radius-lg);
}
.lg-detail-info { display: flex; flex-direction: column; gap: 18px; position: sticky; top: calc(var(--nav-h) + 20px); }
.lg-detail-badges { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lg-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-family: var(--ff-body);
}
.lg-badge-venta   { background: var(--lgi-dark-mid); color: var(--lgi-green-light); }
.lg-badge-alquiler { background: #e65100; color: #fff; }
.lg-badge-estado  { font-size: .82rem; font-weight: 600; font-family: var(--ff-body); }
.lg-badge-dest    { background: #fff9c4; color: #5d4037; padding: 4px 10px; border-radius: 20px; font-size: .72rem; font-family: var(--ff-body); }
.lg-detail-titulo {
  font-family: var(--ff-title);
  font-size: clamp(1.45rem, 3vw, 2rem);
  color: var(--lgi-text);
  margin: 0;
  line-height: 1.2;
}
.lg-detail-precio {
  font-family: var(--ff-title);
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--lgi-green);
}
.lg-detail-dir {
  font-size: .88rem;
  color: var(--lgi-text-muted);
  font-family: var(--ff-body);
  display: flex;
  align-items: center;
  gap: 6px;
}
.lg-detail-carac {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--lgi-bg-alt);
  border-radius: var(--radius);
  padding: 16px;
}
.lg-carac-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--lgi-card);
  border: 1px solid var(--lgi-border);
  border-radius: 8px;
  padding: 9px 14px;
}
.lg-carac-icon { font-size: 1.1rem; }
.lg-carac-chip strong { font-size: .88rem; color: var(--lgi-text); display: block; font-family: var(--ff-body); font-weight: 600; }
.lg-carac-chip span { font-size: .73rem; color: var(--lgi-text-muted); font-family: var(--ff-body); }
.lg-detail-servicios h3 {
  font-size: .9rem;
  color: var(--lgi-text);
  margin-bottom: 10px;
  font-family: var(--ff-body);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.lg-servicios-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lg-servicio-chip {
  background: var(--lgi-green-pale);
  color: var(--lgi-green);
  border: 1px solid var(--lgi-green-light);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: .8rem;
  font-family: var(--ff-body);
  font-weight: 500;
}
.lg-detail-share {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
  font-size: .82rem;
  color: var(--lgi-text-muted);
  font-family: var(--ff-body);
}
.lg-share-btn {
  padding: 7px 14px;
  border-radius: 6px;
  font-size: .78rem;
  font-weight: 600;
  font-family: var(--ff-body);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  line-height: 1;
}
.lg-share-wa   { background: #dcf8e4; color: #1a5c32; }
.lg-share-wa:hover { background: #25d366; color: #fff; }
.lg-share-fb   { background: #e8f0fe; color: #1877f2; }
.lg-share-fb:hover { background: #1877f2; color: #fff; }
.lg-share-copy { background: var(--lgi-bg-alt); color: var(--lgi-text-mid); }
.lg-share-copy:hover { background: var(--lgi-green-pale); color: var(--lgi-green); }

.lg-detail-section { margin-bottom: 40px; }
.lg-detail-section h3 {
  font-family: var(--ff-title);
  font-size: 1.3rem;
  color: var(--lgi-text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--lgi-green-pale);
}
.lg-detail-desc { font-size: .95rem; line-height: 1.85; color: var(--lgi-text-muted); font-family: var(--ff-body); }
.lg-map-na {
  background: var(--lgi-bg-alt);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--lgi-text-muted);
  font-family: var(--ff-body);
  font-size: .9rem;
  text-align: center;
}

/* ====================================================
   CONTACT PAGE
   ==================================================== */
.lg-contact-wrap { max-width: 980px; margin: 0 auto; }
.lg-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 56px;
  align-items: start;
}
.lg-contact-info h3 { font-family: var(--ff-title); font-size: 1.6rem; color: var(--lgi-text); margin-bottom: 12px; }
.lg-contact-info > p { font-size: .9rem; color: var(--lgi-text-muted); line-height: 1.75; margin-bottom: 28px; font-family: var(--ff-body); }
.lg-ci-items { display: flex; flex-direction: column; gap: 14px; }
.lg-ci-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .9rem;
  font-family: var(--ff-body);
  color: var(--lgi-text-mid);
}
.lg-ci-icon {
  width: 36px;
  height: 36px;
  background: var(--lgi-green-pale);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.lg-ci-item a { color: var(--lgi-green); text-decoration: none; }
.lg-ci-item a:hover { text-decoration: underline; }
.lg-ci-wa {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0faf2;
  border: 1px solid #b2dfb4;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--lgi-green) !important;
  text-decoration: none !important;
  transition: var(--transition);
  font-size: .9rem;
  margin-top: 6px;
}
.lg-ci-wa:hover { background: var(--lgi-wa); color: #fff !important; border-color: var(--lgi-wa); }

/* Contact form */
.lg-form-card {
  background: var(--lgi-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 36px;
  border: 1px solid var(--lgi-border);
}
.lg-form-card h3 {
  font-family: var(--ff-title);
  font-size: 1.3rem;
  color: var(--lgi-text);
  margin-bottom: 6px;
}
.lg-form-card > p { font-size: .85rem; color: var(--lgi-text-muted); margin-bottom: 24px; font-family: var(--ff-body); }
.lg-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lg-form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; }
.lg-form-group label { font-size: .82rem; font-weight: 600; color: var(--lgi-text); font-family: var(--ff-body); letter-spacing: .02em; }
.lg-form-group input,
.lg-form-group select,
.lg-form-group textarea {
  border: 1.5px solid var(--lgi-border);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: .9rem;
  font-family: var(--ff-body);
  color: var(--lgi-text);
  background: var(--lgi-bg);
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
  -webkit-appearance: none;
}
.lg-form-group input:focus,
.lg-form-group select:focus,
.lg-form-group textarea:focus {
  outline: none;
  border-color: var(--lgi-green-bright);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(76,175,80,.12);
}
.lg-req { color: #c62828; }
.lg-form-msg {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: .88rem;
  font-family: var(--ff-body);
  line-height: 1.5;
}
.lg-form-msg.ok  { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.lg-form-msg.err { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }

/* ====================================================
   RESPONSIVE
   ==================================================== */
@media (max-width: 900px) {
  .lg-section            { padding: 64px 0; }
  .lg-detail-layout      { grid-template-columns: 1fr; }
  .lg-detail-info        { position: static; }
  .lg-trust-grid         { grid-template-columns: 1fr; gap: 44px; }
  .lg-contact-grid       { grid-template-columns: 1fr; }
  .lg-form-card          { padding: 28px 24px; }
}
@media (max-width: 640px) {
  .lg-section            { padding: 48px 0; }
  .lg-hero-cta           { flex-direction: column; gap: 12px; }
  .lg-hero-cta .lg-btn   { width: 100%; justify-content: center; }
  .lg-filters-inner      { flex-direction: column; }
  .lg-filter-select,
  .lg-filter-input       { max-width: 100%; min-width: 0; }
  .lg-properties-grid    { grid-template-columns: 1fr; }
  .lg-form-row           { grid-template-columns: 1fr; }
  .lg-detail-carac       { flex-direction: column; gap: 8px; }
  .lg-trust-stats        { grid-template-columns: 1fr 1fr; }
  .lg-cta-btns           { flex-direction: column; align-items: center; }
  .lg-gallery-main       { aspect-ratio: 4/3; }
  .lg-property-detail    { padding: 24px 20px 48px; }
  .lg-stat-num           { font-size: 2rem; }
  .lg-hero-stats         { flex-wrap: wrap; gap: 20px; border-top: none; }
}

/* ══════════════════════════════════════════════════════════
   UTILIDADES DE IMAGEN
   ══════════════════════════════════════════════════════════ */
.lgi-img-cover {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.lgi-img-contain {
  width: 100%; height: 100%; object-fit: contain; display: block;
}
.lgi-media-frame {
  background: #071a10; border-radius: var(--radius-lg); overflow: hidden;
}
.lgi-media-frame--contain {
  display: flex; align-items: center; justify-content: center;
}
.lgi-media-frame--contain img {
  object-fit: contain; width: 100%; height: 100%;
}

/* Card images: cover con aspect fijo en listado */
.lg-card-image { aspect-ratio: 4/3; }
.lg-card-image img { object-fit: cover; width: 100%; height: 100%; }
.lg-card-image.lgi-img-contain img { object-fit: contain; }

/* Service card link */
.lg-service-card-link {
  display: block; text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
.lg-service-card-link:hover { transform: translateY(-4px); }
.lg-service-cta {
  display: block; margin-top: 10px; color: var(--lgi-green);
  font-size: .88rem; font-weight: 600;
}

/* ══════════════════════════════════════════════════════════
   TASACIÓN CTA (HOME)
   ══════════════════════════════════════════════════════════ */
.lg-tasacion-cta .lg-container { padding: 60px 24px; }
.lg-tasacion-cta-inner {
  display: flex; flex-direction: column; align-items: center;
  background: var(--lgi-card); border-radius: var(--radius-xl);
  padding: 48px; box-shadow: var(--shadow-md);
  text-align: center;
}
.lg-tasacion-cta-text {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; max-width: 640px;
}
.lg-tasacion-cta-text h2 { margin: 8px 0 14px; }
.lg-tasacion-cta-text p  { color: var(--lgi-text-muted); margin-bottom: 20px; line-height: 1.7; }
.lg-tasacion-cta-icon {
  margin-top: 28px;
  opacity: .65;
  user-select: none;
}
.lg-tasacion-cta-icon .lgi-icon {
  width: 100px !important;
  height: 100px !important;
  object-fit: contain;
  display: block;
}
@media (max-width: 768px) {
  .lg-tasacion-cta-inner { padding: 28px 24px; }
}

/* ══════════════════════════════════════════════════════════
   FORMULARIO DE TASACIÓN [lg_inmo_valuation]
   ══════════════════════════════════════════════════════════ */
.lg-val-wrap { padding: 0 0 80px; }
.lg-val-header { text-align: center; padding: 60px 0 48px; }
.lg-val-header .lg-label { margin-bottom: 10px; }
.lg-val-header h2 { font-size: clamp(1.8rem,4vw,2.8rem); margin: 0 0 12px; }
.lg-val-subtitle { color: var(--lgi-text-muted); max-width: 600px; margin: 0 auto; line-height: 1.7; }

.lg-val-form-wrap { max-width: 860px; margin: 0 auto; }

.lg-val-block {
  background: var(--lgi-card);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--lgi-border);
}
.lg-val-block-header {
  display: flex; align-items: center; gap: 16px; margin-bottom: 28px;
  padding-bottom: 20px; border-bottom: 1px solid var(--lgi-border);
}
.lg-val-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--lgi-green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(46,125,50,.30);
}
.lg-val-block-header h3 {
  margin: 0; font-size: 1.45rem; color: var(--lgi-text);
  font-family: var(--ff-title); font-weight: 600;
}

.lg-val-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lg-val-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.lg-val-field-full { grid-column: 1 / -1; }

.lg-val-field label {
  display: block; font-size: .875rem; font-weight: 600;
  color: var(--lgi-text-mid); margin-bottom: 7px; letter-spacing: .2px;
}
.lg-val-field input,
.lg-val-field select,
.lg-val-field textarea {
  width: 100%; padding: 11px 16px; border: 1.5px solid var(--lgi-border);
  border-radius: var(--radius-md); background: var(--lgi-bg);
  color: var(--lgi-text); font-size: 1rem; font-family: var(--ff-body);
  transition: border-color .2s;
}
.lg-val-field input:focus,
.lg-val-field select:focus,
.lg-val-field textarea:focus {
  outline: none; border-color: var(--lgi-green);
}
.lg-val-field input::placeholder,
.lg-val-field textarea::placeholder { color: var(--lgi-text-muted); }
.lg-val-field textarea { resize: vertical; min-height: 90px; }
.lg-val-field select option { background: var(--lgi-bg); }

.req { color: var(--lgi-green); }

/* Radios personalizados */
.lg-val-radios { display: flex; flex-wrap: wrap; gap: 8px; }
.lg-val-radios-row { flex-direction: row; }
.lg-val-radio { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.lg-val-radio input { display: none; }
.lg-val-radio span {
  padding: 8px 18px; border: 1.5px solid var(--lgi-border);
  border-radius: 20px; font-size: .95rem; transition: all .2s;
  background: var(--lgi-bg-alt); color: var(--lgi-text-mid);
}
.lg-val-radio input:checked + span {
  border-color: var(--lgi-green); background: rgba(76,175,80,.12); color: var(--lgi-green);
}

/* Checkboxes personalizados */
.lg-val-checkboxes-wrap { margin-top: 20px; }
.lg-val-check-label {
  font-size: .875rem; font-weight: 600; color: var(--lgi-text-mid);
  letter-spacing: .2px; margin-bottom: 10px;
}
.lg-val-checkboxes { display: flex; flex-wrap: wrap; gap: 8px; }
.lg-val-check { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.lg-val-check input { display: none; }
.lg-val-check span {
  padding: 6px 14px; border: 1.5px solid var(--lgi-border);
  border-radius: 16px; font-size: .92rem; color: var(--lgi-text-mid);
  background: var(--lgi-bg-alt); transition: all .2s;
}
.lg-val-check input:checked + span {
  border-color: var(--lgi-green); color: var(--lgi-green); background: rgba(76,175,80,.1);
}
.lg-val-check-required { display: flex; align-items: flex-start; gap: 10px; }
.lg-val-check-required span { border: none; background: none; padding: 0; border-radius: 0; font-size: .9rem; color: var(--lgi-text); }
.lg-val-check-required input[type=checkbox] { display: inline-block; width: 18px; height: 18px; min-width: 18px; accent-color: var(--lgi-green); margin-top: 2px; }

/* Área de upload */
.lg-val-tip {
  background: rgba(76,175,80,.08); border-left: 3px solid var(--lgi-green);
  padding: 10px 16px; border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: .88rem; color: var(--lgi-text-muted); margin-bottom: 18px;
}
.lg-val-upload-area { position: relative; margin-bottom: 16px; }
.lg-val-upload-area input[type=file] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2;
}
.lg-val-upload-label {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 32px 20px;
  border: 2px dashed rgba(76,175,80,.4); border-radius: var(--radius-lg);
  text-align: center; cursor: pointer; transition: border-color .2s, background .2s;
}
.lg-val-upload-label:hover { border-color: var(--lgi-green); background: rgba(76,175,80,.04); }
.lg-val-upload-icon { font-size: 2rem; }
.lg-val-upload-label span { color: var(--lgi-text-muted); font-size: .9rem; }
.lg-val-upload-label small { color: rgba(255,255,255,.3); font-size: .8rem; }
.lg-val-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.lg-val-preview-item {
  width: 90px; text-align: center;
}
.lg-val-preview-item img {
  width: 90px; height: 90px; object-fit: contain;
  border-radius: 8px; border: 1px solid rgba(255,255,255,.1);
  background: #0a1a0f;
}
.lg-val-preview-item span { display: block; font-size: .72rem; color: rgba(255,255,255,.4); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Acepto */
.lg-val-acepto { margin-top: 20px; }

/* Mensajes */
.lg-val-msg {
  padding: 14px 18px; border-radius: var(--radius-md); margin-bottom: 18px; font-size: .9rem;
}
.lg-val-msg-err { background: rgba(183,28,28,.12); border: 1px solid rgba(183,28,28,.3); color: #ef9a9a; }
.lg-val-msg-ok  { background: rgba(76,175,80,.12);  border: 1px solid rgba(76,175,80,.3);  color: #a5d6a7; }

/* Botón submit */
.lg-val-submit-wrap { text-align: center; margin-top: 8px; }
.lg-val-submit-note { font-size: .8rem; color: rgba(255,255,255,.3); margin-top: 10px; }
.lg-btn-xl { padding: 16px 48px; font-size: 1rem; }

/* Bloque de éxito */
.lg-val-success {
  text-align: center; padding: 60px 40px;
  background: var(--lgi-card); border-radius: var(--radius-xl); box-shadow: var(--shadow-md);
}
.lg-val-success-icon { font-size: 3rem; margin-bottom: 16px; }
.lg-val-success h3 { font-size: 1.6rem; margin-bottom: 12px; }
.lg-val-success p { color: var(--lgi-text-muted); margin-bottom: 8px; line-height: 1.7; }
.lg-val-success-sub { font-size: .9rem; }

/* Responsive tasación */
@media (max-width: 768px) {
  .lg-val-block      { padding: 22px 18px; }
  .lg-val-grid-2,
  .lg-val-grid-3     { grid-template-columns: 1fr; }
  .lg-val-field-full { grid-column: auto; }
  .lg-val-radios     { gap: 6px; }
  .lg-val-submit-wrap .lg-btn-xl { padding: 14px 28px; }
}

/* ====================================================
   FILTRO APTO CRÉDITO
   ==================================================== */
.lg-filter-check-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .875rem;
  font-family: var(--ff-body);
  color: var(--lgi-text);
  cursor: pointer;
  white-space: nowrap;
  padding: 4px 0;
}
.lg-filter-check-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--lgi-green-bright);
  cursor: pointer;
  flex-shrink: 0;
}

/* ====================================================
   PÁGINA TÍTULO EN SUB-PÁGINAS (Venta, Alquiler, etc.)
   ==================================================== */
.lg-props-page-header {
  background: var(--lgi-dark-mid);
  border-bottom: 1px solid rgba(76,175,80,.15);
  margin-top: var(--nav-h);
}
.lg-props-page-title {
  font-family: var(--ff-title);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--lgi-white);
  padding: 28px 0 24px;
  margin: 0;
}

/* ====================================================
   EMPRENDIMIENTOS
   ==================================================== */
.lg-emp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.lg-emp-card {
  background: var(--lgi-card);
  border: 1px solid var(--lgi-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.lg-emp-card:hover {
  border-color: var(--lgi-green-bright);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.lg-emp-card-icon { font-size: 2.6rem; margin-bottom: 18px; }
.lg-emp-card h3 {
  font-family: var(--ff-title);
  font-size: 1.15rem;
  color: var(--lgi-green);
  margin-bottom: 12px;
}
.lg-emp-card p { font-size: .875rem; color: var(--lgi-text-muted); line-height: 1.75; }
