/* la comu · sitio web
   Paleta y tipografía según Manual de Identidad v2.2 */
:root {
  --navy: #0B1E40;
  --navy-2: #12295A;
  --navy-line: #31466B;
  --white: #F4F6F8;
  --gold: #E8B746;
  --gold-2: #F2C965;
  --bruma: #AEB9CC;
  --jg: #07247E;
  --cream: #F4EFE6;
  --green: #7A9B76;
  --terra: #C97B5E;
  --ink: #0B1E40;
  --ink-soft: #4A5875;
  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(11, 30, 64, .35);
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: .85rem; }
.muted { color: var(--bruma); }
.t-bruma { color: var(--bruma); }
.t-gold { color: var(--gold); }

.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: .9em; }
.eyebrow.dark { color: var(--jg); }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .95em 1.6em; border-radius: 999px; border: 2px solid transparent;
  font: 500 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .2s, background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .7em 1.2em; font-size: .92rem; }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 10px 24px -10px rgba(232, 183, 70, .7); }
.btn-gold:hover { background: var(--gold-2); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { border-color: rgba(244, 246, 248, .5); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(244, 246, 248, .08); }
.btn-block { width: 100%; }

/* ---------- encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 30, 64, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(174, 185, 204, .12);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--white); }
.brand img { width: 54px; height: auto; }
.brand-word { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; letter-spacing: -.02em; line-height: 1; }
.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a:not(.btn) { color: var(--bruma); text-decoration: none; font-weight: 500; font-size: .95rem; transition: color .2s; }
.main-nav a:not(.btn):hover { color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: transform .25s, opacity .25s; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--navy); color: var(--white); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.05); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(11, 30, 64, .96) 0%, rgba(11, 30, 64, .82) 45%, rgba(11, 30, 64, .6) 100%);
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.5fr .7fr; gap: 3rem; align-items: center; padding: clamp(4rem, 10vw, 8rem) 0; }
.tagline { font-size: clamp(2.5rem, 6vw, 4.6rem); margin-bottom: .45em; }
.tagline span { display: block; }
.lead { font-size: 1.15rem; color: var(--bruma); max-width: 40em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0; }
.hero-ctas.center { justify-content: center; }
.hero-proof { list-style: none; padding: 1.5rem 0 0; margin: 0; display: flex; flex-wrap: wrap; gap: 2.5rem; border-top: 1px solid var(--navy-line); }
.hero-proof li { display: flex; flex-direction: column; }
.hero-proof strong { font-family: var(--serif); font-size: 1.9rem; color: var(--gold); line-height: 1.1; }
.hero-proof span { color: var(--bruma); font-size: .9rem; }
.hero-card {
  justify-self: end; text-align: center; padding: 1.8rem 1.6rem;
  background: rgba(11, 30, 64, .72); border: 1px solid var(--navy-line); border-radius: 22px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero-card p { margin: 0; }
.jg-hero { width: 180px; margin: .9rem auto; background: var(--jg); border-radius: 22px; padding: 16px 18px; }
.jg-name { font-weight: 700; font-size: .95rem; color: var(--white); }

/* ---------- franja ---------- */
.trust-strip { background: var(--gold); color: var(--navy); font-weight: 500; font-size: .92rem; }
.trust-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; padding: 1rem 0; }
.trust-inner .ico { font-size: .7rem; margin-right: .35em; }

/* ---------- secciones ---------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; position: relative; }
.section-light { background: var(--white); }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: var(--white); }
.section-head { max-width: 760px; margin-bottom: 3rem; }
.section-sub { color: var(--ink-soft); font-size: 1.1rem; }
.section-navy .section-sub { color: var(--bruma); }

/* servicios */
.grid-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.svc {
  background: #fff; border: 1px solid #E3E7EE; border-radius: var(--radius); padding: 1.8rem;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.svc p { color: var(--ink-soft); margin: 0; }
.svc-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--navy); display: grid; place-items: center; margin-bottom: 1.2rem; }
.svc-ico svg { width: 26px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; margin-top: 5rem; }
.split-img { min-height: 460px; border-radius: 24px; background-size: cover; background-position: center; box-shadow: var(--shadow); }
.checks { list-style: none; padding: 0; margin: 0 0 2rem; }
.checks li { position: relative; padding-left: 2rem; margin-bottom: .8rem; color: var(--ink-soft); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1E40' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/70% no-repeat;
}
.checks.light li { color: var(--bruma); }

/* pasos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: s; }
.steps li { padding: 1.8rem; border: 1px solid var(--navy-line); border-radius: var(--radius); background: rgba(255, 255, 255, .03); }
.steps p { color: var(--bruma); margin: 0; }
.step-n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--navy); font: 600 1.2rem var(--serif); margin-bottom: 1rem; }

/* inmobiliaria */
.filters { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.tabs { display: inline-flex; background: #fff; border-radius: 999px; padding: 5px; box-shadow: 0 2px 10px rgba(11, 30, 64, .06); }
.tab { border: 0; background: none; padding: .6em 1.3em; border-radius: 999px; font: 500 .95rem var(--sans); color: var(--ink-soft); cursor: pointer; }
.tab.is-active { background: var(--navy); color: var(--white); }
.select-wrap select, .f input, .f select, .f textarea {
  width: 100%; font: 400 1rem var(--sans); color: var(--ink);
  border: 1.5px solid #D5DBE5; border-radius: 12px; padding: .75em .9em; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.select-wrap select { border-radius: 999px; padding: .7em 2.6em .7em 1.2em; min-width: 240px; }
select {
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1E40' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right .9em center !important; background-size: 18px !important;
  padding-right: 2.6em !important;
}
.grid-props { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.prop { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 14px rgba(11, 30, 64, .06); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.prop:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.prop-img { position: relative; aspect-ratio: 4 / 3; background: var(--bruma) center/cover; }
.prop-badge { position: absolute; top: 14px; left: 14px; background: var(--navy); color: var(--white); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .4em .8em; border-radius: 999px; }
.prop-badge.venta { background: var(--gold); color: var(--navy); }
.prop-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.prop-price { font: 600 1.45rem var(--serif); color: var(--navy); margin: 0 0 .2em; }
.prop-price small { font: 400 .85rem var(--sans); color: var(--ink-soft); }
.prop-title { font: 700 1rem var(--sans); margin: 0 0 .2em; }
.prop-loc { color: var(--ink-soft); font-size: .92rem; margin-bottom: .9em; }
.prop-feats { display: flex; gap: 1.1rem; font-size: .88rem; color: var(--ink-soft); border-top: 1px solid #EEF0F4; padding-top: .9em; margin-top: auto; }
.prop-cta { margin-top: 1rem; align-self: flex-start; font-weight: 700; color: var(--jg); text-decoration: none; font-size: .95rem; }
.prop-cta:hover { text-decoration: underline; }
.empty { text-align: center; color: var(--ink-soft); padding: 2rem; }

.owner-cta { display: grid; grid-template-columns: .9fr 1.1fr; margin-top: 4.5rem; background: var(--navy); color: var(--white); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); }
.owner-img { min-height: 380px; background-size: cover; background-position: center; }
.owner-copy { padding: clamp(2rem, 5vw, 3.5rem); }

/* por qué */
.grid-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.why { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; min-height: 400px; color: var(--white); }
.why img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.why:hover img { transform: scale(1.05); }
.why::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 30, 64, .1) 20%, rgba(11, 30, 64, .92) 85%); }
.why figcaption { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 1.8rem; }
.why h3 { font-size: 1.6rem; color: var(--gold); }
.why p { margin: 0; color: var(--white); }
.voice { margin: 4rem auto 0; max-width: 820px; text-align: center; }
.voice p { font: 600 clamp(1.3rem, 2.6vw, 1.8rem)/1.35 var(--serif); color: var(--navy); }
.voice cite { font-style: normal; color: var(--ink-soft); }

/* formularios */
.section-form { overflow: hidden; }
.form-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .12; }
.form-layout { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.form-intro { position: sticky; top: 110px; }
.form-intro p { color: var(--bruma); font-size: 1.08rem; }
.form-intro.dark p { color: var(--ink-soft); }
.card-form { background: #fff; color: var(--ink); border-radius: 24px; padding: clamp(1.4rem, 3.5vw, 2.4rem); box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .5); }
.card-form.light { box-shadow: var(--shadow); border: 1px solid #E3E7EE; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; margin-bottom: 1.1rem; }
.fields[hidden] { display: none; }
.f { display: flex; flex-direction: column; gap: .35rem; font-size: .88rem; font-weight: 500; color: var(--ink-soft); }
.f.full { grid-column: 1 / -1; }
.f input:focus, .f select:focus, .f textarea:focus, .select-wrap select:focus { outline: none; border-color: var(--jg); box-shadow: 0 0 0 4px rgba(7, 36, 126, .12); }
.f textarea { resize: vertical; }
.f.invalid input, .f.invalid select, .f.invalid textarea { border-color: var(--terra); }
fieldset { border: 0; padding: 0; margin: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: #EEF1F6; border-radius: 14px; padding: 5px; margin-bottom: 1.4rem; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: .75em; border-radius: 10px; font-weight: 500; color: var(--ink-soft); transition: background .2s, color .2s; }
.seg input:checked + span { background: var(--navy); color: var(--white); }
.seg input:focus-visible + span { outline: 2px solid var(--jg); outline-offset: 2px; }
.chips { flex-direction: row; flex-wrap: wrap; gap: .5rem; }
.chips legend { width: 100%; margin-bottom: .4rem; font-size: .88rem; font-weight: 500; color: var(--ink-soft); }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-block; padding: .45em 1em; border: 1.5px solid #D5DBE5; border-radius: 999px; font-size: .9rem; transition: all .2s; }
.chips input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chips input:focus-visible + span { outline: 2px solid var(--jg); outline-offset: 2px; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; color: var(--ink-soft); margin-bottom: 1.2rem; line-height: 1.45; }
.consent input { margin-top: .2em; accent-color: var(--navy); width: 18px; height: 18px; flex-shrink: 0; }
.consent.invalid { color: var(--terra); }
.form-msg { margin: 1rem 0 0; font-size: .95rem; }
.form-msg:empty { display: none; }
.form-msg.err { color: var(--terra); }
.form-ok { text-align: center; padding: 1.5rem .5rem; }
.form-ok .ok-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--green); display: grid; place-items: center; margin: 0 auto 1rem; }
.form-ok .ok-ico svg { width: 32px; stroke: #fff; fill: none; stroke-width: 3; }
.form-ok .radicado { display: inline-block; font: 600 1.5rem var(--serif); color: var(--navy); background: var(--cream); padding: .3em .8em; border-radius: 12px; margin: .3rem 0 1rem; }
.form-ok p { color: var(--ink-soft); }
.form-ok .btn { margin: .3rem; }

.pqrs-types { display: grid; gap: .8rem; margin-top: 1.6rem; }
.pqrs-types div { display: flex; gap: 1rem; align-items: flex-start; }
.pqrs-types strong { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: var(--gold); display: grid; place-items: center; font: 600 1.15rem var(--serif); }
.pqrs-types span { color: var(--ink-soft); font-size: .95rem; padding-top: .45em; }

/* faq */
.faq { background: #fff; border-radius: 14px; margin-bottom: .8rem; box-shadow: 0 2px 10px rgba(11, 30, 64, .05); }
.faq summary { cursor: pointer; padding: 1.2rem 3.2rem 1.2rem 1.4rem; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.4rem; top: 50%; transform: translateY(-50%); font: 600 1.5rem var(--serif); color: var(--gold); transition: transform .2s; }
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { padding: 0 1.4rem 1.3rem; margin: 0; color: var(--ink-soft); }

/* cta final */
.final-cta { background: radial-gradient(ellipse at top, var(--navy-2), var(--navy) 70%); color: var(--white); padding: clamp(4rem, 8vw, 6.5rem) 0; text-align: center; }
.final-inner img { margin: 0 auto 1.4rem; width: 120px; height: auto; }
.tagline-sm { font: 500 1.05rem var(--sans); }
.final-cta .tagline-sm { font-size: 1.2rem; }

/* pie */
.site-footer { background: #081631; color: var(--bruma); padding: 4rem 0 1.5rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--navy-line); }
.footer-grid h4 { color: var(--white); font: 700 .8rem var(--sans); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 1rem; }
.footer-grid a:not(.brand) { display: block; text-decoration: none; margin-bottom: .5rem; transition: color .2s; }
.footer-grid a:hover { color: var(--gold); }
.footer-grid .tagline-sm { margin-top: 1rem; }
.endorse p { margin: 0; }
.jg-plate { display: inline-block; background: var(--jg); border-radius: 16px; padding: 10px 14px; margin: .5rem 0; }
.jg-plate img { width: 96px; height: auto; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-top: 1.5rem; font-size: .82rem; }
.footer-legal p { margin: 0; }

/* whatsapp flotante */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 10px 25px -8px rgba(0, 0, 0, .45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* animación de entrada */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .grid-services, .grid-props { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); padding: .5rem 16px 1.5rem; border-bottom: 1px solid var(--navy-line);
    transform: translateY(-120%); transition: transform .3s; z-index: -1;
  }
  .main-nav.open { transform: none; }
  .main-nav a:not(.btn) { padding: 1rem 0; border-bottom: 1px solid var(--navy-line); font-size: 1.05rem; }
  .main-nav .btn { margin-top: 1rem; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { justify-self: start; display: flex; align-items: center; gap: 1rem; text-align: left; padding: 1rem 1.2rem; }
  .jg-hero { width: 90px; margin: 0; padding: 8px 10px; border-radius: 14px; order: -1; }
  .split, .owner-cta, .form-layout { grid-template-columns: 1fr; }
  .split-img { min-height: 300px; }
  .owner-img { min-height: 240px; }
  .form-intro { position: static; }
  .grid-why { grid-template-columns: 1fr; }
  .why { min-height: 320px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .grid-services, .grid-props, .steps, .fields { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-proof { gap: 1.4rem; }
  .hero-ctas .btn { width: 100%; }
  .filters { flex-direction: column; }
  .tabs { width: 100%; }
  .tab { flex: 1; }
  .select-wrap select { width: 100%; }
  .trust-inner { flex-direction: column; }
}

/* ---------- hero: carrusel de edificios ---------- */
.hero-slides { position: absolute; inset: 0; }
.hero-slides .hero-bg { opacity: 0; transition: opacity 1.6s ease, transform 8s linear; transform: scale(1.12); }
.hero-slides .hero-bg.is-on { opacity: 1; transform: scale(1.02); }
.hero-msg {
  position: absolute; z-index: 3; right: max(16px, calc((100% - 1180px) / 2)); top: 28px; max-width: 380px;
  display: flex; align-items: center; gap: .6rem;
  background: rgba(11, 30, 64, .78); border: 1px solid var(--navy-line); color: var(--white);
  padding: .65rem 1rem; border-radius: 999px; font-size: .88rem; font-weight: 500;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero-msg #heroMsg { transition: opacity .5s; }
.hero-msg-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); flex-shrink: 0; box-shadow: 0 0 0 4px rgba(232, 183, 70, .25); }

/* ---------- galería gestión P.H. ---------- */
.ph-gallery .section-head { max-width: 860px; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 270px; grid-auto-flow: dense; gap: 1.1rem; }
.tile { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; color: var(--white); isolation: isolate; }
.tile.t-tall { grid-row: span 2; }
.tile.t-wide { grid-column: span 2; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s ease; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 30, 64, .05) 25%, rgba(11, 30, 64, .93) 92%); transition: background .4s; }
.tile:hover img { transform: scale(1.06); }
.tile:hover::after { background: linear-gradient(180deg, rgba(11, 30, 64, .35) 0%, rgba(11, 30, 64, .96) 80%); }
.tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1.5rem; }
.tile h3 { font-size: 1.3rem; margin-bottom: .3em; }
.tile.t-tall h3 { font-size: 1.7rem; }
.tile p { margin: 0; color: var(--bruma); font-size: .93rem; line-height: 1.5; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s ease, opacity .45s ease; }
.tile:hover p, .tile:focus-within p, .tile.t-tall p { max-height: 8em; opacity: 1; }
.tile-tag { display: inline-block; background: var(--gold); color: var(--navy); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .3em .75em; border-radius: 999px; margin-bottom: .7rem; }
.gallery-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 2.5rem; padding: 1.4rem 1.8rem; border: 1px solid var(--navy-line); border-radius: var(--radius); background: rgba(255, 255, 255, .03); }
.gallery-cta p { margin: 0; color: var(--bruma); font-size: 1.05rem; }
.gallery-cta strong { color: var(--white); }

@media (hover: none) { .tile p { max-height: 8em; opacity: 1; } }
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .hero-msg { left: 16px; right: 16px; top: auto; bottom: 16px; max-width: none; border-radius: 14px; }
  .hero-inner { padding-bottom: 6rem; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: 300px; }
  .tile.t-tall, .tile.t-wide { grid-row: auto; grid-column: auto; }
  .tile p { max-height: 8em; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slides .hero-bg { transition: opacity .01s; transform: none; }
}

/* ---------- inmobiliaria conectada a la base ---------- */
.trampa { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.badge-reco {
  display: inline-flex; align-items: center; gap: .3em; background: var(--gold); color: var(--navy);
  font-size: .78rem; font-weight: 700; letter-spacing: .04em; padding: .4em .8em; border-radius: 999px;
  box-shadow: 0 6px 14px -6px rgba(232, 183, 70, .8);
}
.prop-img { display: block; text-decoration: none; }
.prop-img .badge-reco { position: absolute; top: 14px; right: 14px; }
.prop.is-reco { box-shadow: 0 0 0 2px var(--gold), 0 2px 14px rgba(11, 30, 64, .06); }
.prop-title a { color: inherit; text-decoration: none; }
.prop-title a:hover { text-decoration: underline; }
.prop-copro { font-size: .85rem; color: var(--jg); font-weight: 500; margin: -.6em 0 .9em; }
.reco-explica { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; background: #fff; border-radius: 16px; padding: 1rem 1.3rem; margin-bottom: 1.6rem; border-left: 4px solid var(--gold); }
.reco-explica p { margin: 0; color: var(--ink-soft); flex: 1 1 300px; }
.filters-right { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.search-wrap input { font: 400 1rem var(--sans); border: 1.5px solid #D5DBE5; border-radius: 999px; padding: .7em 1.2em; min-width: 240px; background: #fff; color: var(--ink); }
.search-wrap input:focus { outline: none; border-color: var(--jg); box-shadow: 0 0 0 4px rgba(7, 36, 126, .12); }
.reco-toggle { position: relative; cursor: pointer; }
.reco-toggle input { position: absolute; opacity: 0; }
.reco-toggle span { display: inline-block; padding: .7em 1.2em; border-radius: 999px; background: #fff; border: 1.5px solid #D5DBE5; font-weight: 500; color: var(--ink-soft); transition: all .2s; }
.reco-toggle input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.reco-toggle input:focus-visible + span { outline: 2px solid var(--jg); outline-offset: 2px; }
.props-total { color: var(--ink-soft); font-size: .9rem; margin: -.8rem 0 1rem; min-height: 1.2em; }
.props-mas { text-align: center; margin-top: 2rem; }
.grid-props[aria-busy="true"] { opacity: .5; transition: opacity .2s; }
.form-ok .ref-web { font-size: .85rem; color: var(--ink-soft); margin-top: 1rem; }
.form-msg a { color: inherit; font-weight: 700; }

/* ---------- página de un inmueble ---------- */
.detalle { min-height: 70vh; padding-top: 2.5rem; }
.migas { font-size: .88rem; color: var(--ink-soft); }
.migas a { color: var(--jg); }
.det-cabeza { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; margin-bottom: 1.6rem; }
.det-cabeza h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: .5rem 0 .2rem; }
.det-etiquetas { display: flex; gap: .5rem; flex-wrap: wrap; }
.det-etiquetas .prop-badge { position: static; }
.det-loc { color: var(--ink-soft); margin: 0; }
.det-precio { font: 600 clamp(1.8rem, 3.5vw, 2.4rem) var(--serif); color: var(--navy); margin: 0; }
.det-precio small { font: 400 1rem var(--sans); color: var(--ink-soft); }
.det-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 2rem; align-items: start; }
.det-grid aside { position: sticky; top: 96px; }
.det-principal { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; background: var(--bruma); box-shadow: var(--shadow); }
.det-minis { display: flex; gap: .5rem; overflow-x: auto; padding: .7rem 0; }
.det-minis button { flex: 0 0 92px; height: 68px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; }
.det-minis button.activa { border-color: var(--gold); }
.det-minis img { width: 100%; height: 100%; object-fit: cover; }
.det-reco { background: var(--navy); color: var(--white); border-radius: 16px; padding: 1.2rem 1.4rem; margin: 1.2rem 0; border-left: 5px solid var(--gold); }
.det-reco strong { color: var(--gold); }
.det-reco p { margin: .3rem 0 0; color: var(--bruma); }
.det-reco b { color: var(--white); }
.det-ficha { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; margin: 1.4rem 0; }
.det-ficha div { background: #fff; border-radius: 14px; padding: .9rem 1rem; }
.det-ficha dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.det-ficha dd { margin: .2rem 0 0; font: 600 1.25rem var(--serif); color: var(--navy); }
.det-desc { background: #fff; border-radius: 16px; padding: 1.4rem 1.6rem; }
.det-desc h2 { font-size: 1.4rem; }
.det-desc p { color: var(--ink-soft); margin: 0; }
.det-form-t { font-size: 1.5rem; margin-bottom: .2rem; }
.det-form-s { color: var(--ink-soft); }
.btn-ghost-dark { border-color: #CBD3E0; color: var(--navy); margin-top: .7rem; }
.btn-ghost-dark:hover { border-color: var(--navy); }
.no-disponible { text-align: center; padding: 4rem 0; }
.pagina-inmueble .site-footer { padding-top: 1rem; }
@media (max-width: 880px) {
  .det-grid { grid-template-columns: 1fr; }
  .det-grid aside { position: static; }
  .pagina-inmueble .main-nav { position: static; transform: none; flex-direction: row; background: none; padding: 0; border: 0; z-index: auto; }
  .pagina-inmueble .main-nav a:not(.btn) { border: 0; padding: 0; font-size: .9rem; }
  .pagina-inmueble .main-nav .btn { display: none; }
  .pagina-inmueble .nav-toggle { display: none; }
}
@media (max-width: 600px) {
  .filters-right, .search-wrap, .search-wrap input { width: 100%; min-width: 0; }
  .reco-toggle span { display: block; text-align: center; }
  .reco-toggle { width: 100%; }
}

[hidden] { display: none !important; }
