/* A2 Glossy Premium. Capa visual sobre la estructura y los controles de 7B. */
:root {
  --gloss-paper: #f4f7f2;
  --gloss-mist: #eaf2e9;
  --gloss-ink: #19221d;
  --gloss-muted: #4c6355;
  --gloss-border: #d3e2d6;
  --gloss-panel: linear-gradient(151deg,#fff 12%,#f7fbf7 100%);
  --gloss-green: linear-gradient(130deg,#0d8541,#086737);
  --gloss-deep: linear-gradient(142deg,#107442,#063c27 83%);
  --gloss-shadow: 0 14px 38px #123a2212,0 2px 6px #123a2209;
  --gloss-float: 0 22px 53px #082c2027,0 3px 9px #082c200d;
  --gloss-rim: inset 0 1px 0 #fff;
  --gloss-radius: 22px;
  --gloss-ease: cubic-bezier(.22,1,.36,1);
}
body { background: var(--gloss-paper); color: var(--gloss-ink); }
.section.soft, .testimonials-section {
  background: radial-gradient(ellipse at 85% 15%,#e3efe5,transparent 62%),var(--gloss-paper);
}
.section-intro, .catalog-note { color: var(--gloss-muted); }
.section-kicker, .simple-link, .text-button, .catalog-back { color: #096e39; }

.header {
  top: 10px;
  margin: 12px 0 0;
  border: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body[data-view="inicio"] .header { margin-bottom: -90px; }
.headerin {
  width: min(1328px,calc(100% - 72px));
  padding: 0 19px;
  background: rgb(255 255 255 / 82%);
  border: 1px solid #ffffff9c;
  border-radius: 22px;
  box-shadow: 0 10px 28px #06261c1f,inset 0 1px 0 #ffffffb3;
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
}
.headerin .brand img { width: 49px; height: 49px; }
.header .nav a {
  color: #233c2e;
  border-radius: 10px;
  transition: color .2s, background-color .2s;
}
.header .nav a[aria-current="page"], .header .nav a:hover {
  color: #075d32;
  background-color: #0d854111;
}
.mobile-menu-btn { background: var(--gloss-panel); border-color: var(--gloss-border); }
.nav.mobile-open { background: #fff; border-color: var(--gloss-border); box-shadow: var(--gloss-shadow); }

.hero-shell { background: transparent; }
.hero-shell > .container { width: min(1392px,calc(100% - 32px)); }
.hero.variant-b {
  border-radius: 0 0 27px 27px;
  min-height: 674px;
  box-shadow: var(--gloss-shadow);
}
.hero.variant-b .hero-copy {
  min-height: 674px;
  padding: 122px clamp(38px,6vw,88px) 95px;
  max-width: 835px;
}
.hero.variant-b h1 { font-size: clamp(48px,5.1vw,74px); max-width: 630px; }
.hero.variant-b .hero-visual img {
  object-position: 56% 47%;
  animation: glossy-depth 14s ease-out both;
}
.hero.variant-b .hero-visual::before {
  background:
    radial-gradient(ellipse at 85% 12%,#eef7cb25,transparent 52%),
    linear-gradient(0deg,#031b13a1,transparent 48%),
    linear-gradient(90deg,#041c13ed,#062919bb 43%,#05261729 90%);
}
.hero.variant-b .hero-copy .intro { color: #f0f6ef; }
.hero.variant-b h1 em {
  color: #c0eccc;
  background: linear-gradient(110deg,#f7fff7,#bceccb 63%,#e4f9e9);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-catalog {
  position: absolute;
  z-index: 3;
  right: clamp(26px,3.6vw,52px);
  bottom: 78px;
  width: min(290px,28%);
  padding: 19px;
  color: #17372a;
  background: linear-gradient(148deg,#ffffffef,#eaf5ece0);
  border: 1px solid #ffffffab;
  border-radius: 19px;
  box-shadow: 0 12px 36px #041c133b,inset 0 1px 0 #fff;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  animation: heroEnter .66s .17s var(--gloss-ease) both;
}
.hero-catalog h2 { margin: 0; font-size: 21px; line-height: 1.15; letter-spacing: -.03em; }
.hero-catalog p { margin: 7px 0 13px; color: #345144; font-size: 13px; line-height: 1.45; }
.hero-catalog .btn { min-height: 44px; padding: 8px 15px; }
@keyframes glossy-depth { from { transform: scale(1.035); } to { transform: scale(1); } }

.btn, .floating-wa {
  border-radius: 999px;
  transition: transform .22s var(--gloss-ease), box-shadow .22s, background-color .2s, color .2s;
}
.btn-primary, .floating-wa, .banner-text .btn {
  background: var(--gloss-green);
  color: #fff;
  box-shadow: 0 7px 18px #063c2727,inset 0 1px 0 #ffffff45;
}
.btn-dark, #searchForm .btn { background: var(--gloss-deep); box-shadow: 0 7px 18px #063c2726,inset 0 1px 0 #ffffff35; }
.hero.variant-b .btn-outline { background: #19372de8; border-color: #ffffff9c; color: #fff; }
.contact .contact-whatsapp, .catalog-lead-cta .btn { background: var(--gloss-panel); color: #063c27; }
.btn:focus-visible, .prop a:focus-visible, .nav a:focus-visible, .floating-wa:focus-visible,
button:focus-visible, summary:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #aa591c;
  outline-offset: 3px;
}
.hero .btn:focus-visible, .contact-whatsapp:focus-visible { outline-color: #ffbd80; }

.search {
  position: relative;
  background: linear-gradient(155deg,#ffffffed,#f3f9f3f5);
  border: 1px solid #fff;
  border-radius: var(--gloss-radius);
  box-shadow: var(--gloss-float),var(--gloss-rim);
  -webkit-backdrop-filter: blur(15px) saturate(130%);
  backdrop-filter: blur(15px) saturate(130%);
}
.search-head strong { letter-spacing: -.02em; }
.search-head span, .field span { color: #4c6355; }
.field, .catalog-filters .field, .catalog-tools .field {
  background: #fbfdfb;
  border: 1px solid var(--gloss-border);
  border-radius: 12px;
  box-shadow: inset 0 1px 2px #123a2207;
}
.field select { background-color: transparent; }
.field:focus-within { border-color: #16824b; box-shadow: 0 0 0 2px #16824b26; }
.catalog-page { padding-top: 32px; }
.catalog-page .section-head { border-bottom-color: var(--gloss-border); }
.resultbar { padding: 8px 0 6px; }
.empty { background: var(--gloss-panel); border-color: var(--gloss-border); box-shadow: var(--gloss-shadow); }
.pagination .btn { min-height: 48px; }

.prop, .category, .approach-item, .opp-mini, .step, .testimonials-stage {
  background: var(--gloss-panel);
  border: 1px solid var(--gloss-border);
  border-radius: var(--gloss-radius);
  box-shadow: var(--gloss-shadow),var(--gloss-rim);
}
.prop, .category { transition: transform .28s var(--gloss-ease),box-shadow .28s,border-color .28s; }
.prop-image { isolation: isolate; }
.prop-image::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg,transparent 70%,#06261a2e);
}
.prop-image img { transition: transform .34s var(--gloss-ease); }
.prop-image .badge { z-index: 1; background: #f7fff9f5; color: #06462a; border-radius: 999px; border: 1px solid #fff; }
.prop-image .badge.pre { background: #e4f4e8fa; }
.prop-content > small, .prop-content .card-note, .prop-meta, .price-note { color: var(--gloss-muted); }
.prop-title a { color: #162b21; }
.prop-link { align-items: center; color: #096b37; }
.prop-link span, .category .arr {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: var(--gloss-green);
  color: #fff;
  box-shadow: 0 5px 12px #0d854131;
}
.step { padding: 24px; border-top: 2px solid #0d8541; }
.approach-number { color: #096e39; }
.testimonials-stage { overflow: hidden; }
.testimonial-placeholder { background: #f9fcf9; border-color: var(--gloss-border); }

#propertyDialog { border: 1px solid #fff; border-radius: var(--gloss-radius); background: #fcfefb; box-shadow: 0 24px 80px #031e155c; }
#propertyDialog::backdrop { background: #061f16c9; -webkit-backdrop-filter: none; backdrop-filter: none; }
.detail-gallery { background: linear-gradient(155deg,#254d3b,#0c2b1e 68%); }
.gallery-controls button { background: linear-gradient(145deg,#406853,#254b38); border-color: #8eaa99; }
.thumbs button[aria-pressed="true"] { border-color: #b8efc5; box-shadow: 0 0 0 1px #b8efc5; }
.detail-price, .detail-specs span { background: var(--gloss-panel); border-color: var(--gloss-border); }
.detail-price { box-shadow: var(--gloss-shadow); }
.close-detail { background: #fff; color: #063c27; }
.price-variants dt, .detail-body p, .features { color: var(--gloss-muted); }

.path-banner, .private-panel, .catalog-lead-cta, .contact {
  background: radial-gradient(ellipse at 76% 7%,#30674a,transparent 62%),linear-gradient(145deg,#0a3c2a,#06281d);
}
.path-banner, .private-panel, .catalog-lead-cta { box-shadow: var(--gloss-float); border: 1px solid #ffffff26; }
.private-panel { border-radius: var(--gloss-radius); }
.private-panel .btn-special:disabled { background: #e6f0e9; color: #2e5140; opacity: 1; box-shadow: none; }
.contact { border-top: 1px solid #365d49; }
.contactin { padding-bottom: 22px; border-bottom: 1px solid #ffffff30; }
.contact .contact-maplink { color: #e1f3e7; border-color: #b4d6be; }
.lead-panel { background: var(--gloss-panel); border-color: #fff; box-shadow: var(--gloss-float),var(--gloss-rim); }
.lead-panel .lead-eyebrow, .lead-extra summary { color: #096e39; }
.lead-count, .lead-field small, .lead-extra summary span { color: #496252; }
.lead-preview-note { background: #eaf4ec; border-color: #cddfd0; }
.lead-field input,.lead-field select,.lead-field textarea { background: #fff; border-color: #c8d9cd; border-radius: 11px; }
.lead-field input::placeholder,.lead-field textarea::placeholder { color: #5b6e62; }
.lead-field input:focus,.lead-field select:focus,.lead-field textarea:focus { border-color: #0d8541; }
.lead-extra { background: #f3f8f3; border: 1px solid var(--gloss-border); border-radius: 12px; padding: 13px; }
.lead-checkbox { align-items: flex-start; }
.footer { background: linear-gradient(155deg,#0d3729,#06261c); border-top: 1px solid #335b47; }
.footer-nav a, .review-disclaimer { color: #d3e7da; }
.footer .social { background: #204838; border-color: #789b86; }
.will-reveal { transform: translateY(12px); transition-duration: .54s; }

@media (hover:hover) and (pointer:fine) {
  .prop:hover, .category:hover { transform: translateY(-4px); box-shadow: var(--gloss-float); }
  .prop:hover .prop-image img { transform: scale(1.025); }
  .btn:not(:disabled):hover { transform: translateY(-2px); }
  .hero.variant-b .btn-outline:hover { background: #234c3a; }
}
@media (max-width:1023px) {
  .headerin { width: calc(100% - 48px); }
  .hero.variant-b .hero-copy { min-height: 0; padding: 122px 42px 24px; }
  .hero-catalog {
    position: relative;
    inset: auto;
    width: auto;
    max-width: 380px;
    margin: 0 42px 72px;
  }
}
@media (max-width:700px) {
  .header { top: 6px; margin-top: 8px; }
  body[data-view="inicio"] .header { margin-bottom: -78px; }
  .headerin { width: calc(100% - 34px); padding: 0 10px; height: 66px; border-radius: 16px; }
  .headerin .brand img { width: 42px; height: 42px; }
  .search { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .headerin { background: rgb(255 255 255 / 87%); }
  .hero-shell > .container { width: calc(100% - 16px); }
  .hero.variant-b { min-height: 0; border-radius: 0 0 21px 21px; }
  .hero.variant-b .hero-copy { min-height: 0; padding: 105px 23px 20px; }
  .hero-catalog { margin: 0 23px 47px; padding: 14px; }
  .hero-catalog h2 { font-size: 18px; }
  .hero-catalog p { margin-block: 5px 9px; }
  .hero.variant-b h1 { font-size: clamp(36px,10.8vw,54px); }
  .hero.variant-b .hero-visual img { object-position: 61% center; animation: none; }
  .hero.variant-b .hero-visual::before {
    background: linear-gradient(180deg,#041d15a6,#05271be0 65%,#05271bde),
                linear-gradient(90deg,#041d1580,transparent);
  }
  .hero.variant-b .hero-actions { gap: 10px; }
  .search-space { margin-top: -25px; }
  .search { background: var(--gloss-panel); border-radius: 17px; }
  .search-head span { display: block; font-size: 10px; line-height: 1.4; }
  .catalog-page { padding-top: 16px; }
  .prop, .opp-mini, .approach-item, .testimonials-stage, #propertyDialog { border-radius: 17px; }
  .lead-panel { padding: 23px 18px; }
  .lead-field input,.lead-field select,.lead-field textarea { font-size: 16px; }
  .lead-form-bottom .btn { white-space: normal; }
  .contactin { padding-bottom: 22px; }
}
@media (hover:none), (pointer:coarse) {
  .prop:hover, .category:hover, .btn:hover, .prop:hover .prop-image img { transform: none; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .will-reveal { opacity: 1 !important; transform: none !important; }
}


/* ---------------------------------------------------------------
   VIVE 8A.1 — VIDRIO REAL EN NAVEGACION (NO SIMULACION OPACA)
   Mantener al FINAL: prevalece sobre la capa A2 Glossy de 8A.
   backdrop-filter procesa realmente los pixeles de fondo.
   --------------------------------------------------------------- */
.header {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: 0;
  overflow: visible;
}
.header .headerin {
  position: relative;
  background: linear-gradient(115deg,
    rgba(221, 250, 231, .47) 0%,
    rgba(229, 253, 237, .28) 48%,
    rgba(221, 250, 231, .39) 100%);
  -webkit-backdrop-filter: blur(24px) saturate(165%) contrast(106%);
  backdrop-filter: blur(24px) saturate(165%) contrast(106%);
  border: 1px solid rgba(255, 255, 255, .62);
  box-shadow:
    0 18px 46px rgba(3, 33, 21, .24),
    0 4px 12px rgba(3, 33, 21, .09),
    inset 0 1px 0 rgba(255, 255, 255, .8),
    inset 0 -1px 0 rgba(21, 116, 63, .14);
  /* No usar opacity en .header ni en .headerin: destruye legibilidad
     y puede interrumpir la composición del backdrop. */
}
.header .headerin::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 1px;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(165deg,
    rgba(255,255,255,.32) 0%,
    rgba(255,255,255,.03) 35%,
    rgba(255,255,255,.14) 67%,
    rgba(182,234,193,.10) 100%);
}
.header .headerin > * { position: relative; z-index: 1; }
.header .nav.mobile-open {
  position: absolute;
  z-index: 35;
  background: rgba(242,252,245,.95);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  backdrop-filter: blur(16px) saturate(125%);
}
/* Mantener contraste y tactilidad en pantallas estrechas. */
@media (max-width: 700px) {
  .header .headerin {
    background: linear-gradient(115deg,
      rgba(228, 251, 234, .64), rgba(222, 249, 231, .53));
    -webkit-backdrop-filter: blur(18px) saturate(155%);
    backdrop-filter: blur(18px) saturate(155%);
  }
}
/* Fallback elegante y legible para navegadores sin backdrop-filter. */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .header .headerin { background: rgba(235,249,239,.96); }
  .header .nav.mobile-open { background: #f4faf5; }
}
