/* FUCCI · Propiedades — Ficha */

body{font:16px Arial;margin:40px;color:#111}a{color:#111}

:root{--yellow:#ffde00;--ink:#111;--muted:#6d6d6d;--line:#e8e8e8;--soft:#f7f7f5;--white:#fff;--radius:20px;--shadow:0 14px 34px rgba(0,0,0,.08)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:"Barlow",Arial,sans-serif;color:var(--ink);background:#fff}a{color:inherit;text-decoration:none}img{display:block;max-width:100%}
.shell{width:min(1440px,calc(100% - 40px));margin:auto}
.header{position:sticky;top:0;z-index:50;background:rgba(255,222,0,.96);backdrop-filter:blur(10px);border-bottom:1px solid rgba(0,0,0,.08)}
.header-in{height:82px;display:flex;align-items:center;justify-content:space-between}.logo img{width:178px}.nav{display:flex;gap:28px;font-size:14px;font-weight:600}
.back{display:inline-flex;align-items:center;gap:8px;font-weight:600;font-size:14px;margin:30px 0 18px}
.property-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:30px;align-items:end;margin-bottom:22px}
.eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:.14em;font-weight:700;color:#555}
h1{font-size:clamp(34px,5vw,62px);line-height:.98;letter-spacing:-.04em;margin:7px 0 8px}
.place{color:var(--muted);font-size:16px}.head-price{text-align:right;font-size:28px;font-weight:700;white-space:nowrap}
.gallery{display:grid;grid-template-columns:2fr 1fr 1fr;grid-template-rows:250px 250px;gap:8px;border-radius:24px;overflow:hidden;background:#eee}
.gallery .main{grid-row:1/3}.gallery button{padding:0;border:0;background:#ddd;cursor:pointer;overflow:hidden}.gallery img{width:100%;height:100%;object-fit:cover;transition:.25s}.gallery button:hover img{transform:scale(1.02)}
.content-grid{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:42px;margin-top:34px}
.specs{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-bottom:32px}
.spec{background:var(--soft);border:1px solid var(--line);border-radius:14px;padding:14px}.spec strong{display:block;font-size:20px}.spec span{font-size:12px;color:var(--muted)}
.section{padding:28px 0;border-top:1px solid var(--line)}.section h2{font-size:25px;margin:0 0 16px}.description{font-size:17px;line-height:1.65;color:#333;white-space:normal}
.tags{display:flex;flex-wrap:wrap;gap:9px}.tag{background:var(--soft);border:1px solid var(--line);border-radius:999px;padding:9px 12px;font-size:13px;font-weight:600}
.map{border:0;width:100%;height:360px;border-radius:20px;background:#eee}
.sidebar{position:sticky;top:105px;align-self:start;min-width:0;width:100%}.contact{background:#111;color:#fff;border-radius:22px;padding:24px;box-shadow:var(--shadow);width:100%;max-width:100%;overflow:hidden}.contact h3{font-size:25px;margin:0 0 5px}.contact p{color:#bbb;margin:0 0 20px;line-height:1.45}
.form-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;width:100%;min-width:0}.field{display:flex;flex-direction:column;gap:6px;min-width:0;width:100%}.field.full{grid-column:1/-1}.field label{font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:700;color:#ccc}.field input,.field textarea{border:1px solid #333;background:#1c1c1c;color:#fff;border-radius:11px;padding:12px;font:500 14px "Barlow";outline:none;width:100%;max-width:100%;min-width:0;display:block}.field textarea{min-height:90px;resize:vertical}
.btn{border:0;border-radius:11px;height:48px;padding:0 18px;font:700 13px "Barlow";display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.btn-yellow{background:var(--yellow);color:#111;width:100%;margin-top:10px}.btn-light{background:#fff;border:1px solid var(--line)}
.production-link{margin-top:12px;display:block;text-align:center;color:#aaa;font-size:12px}
.related{padding:44px 0 65px;border-top:1px solid var(--line);margin-top:54px}.related h2{font-size:28px}.related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.r-card{border:1px solid var(--line);border-radius:18px;overflow:hidden}.r-card img{width:100%;aspect-ratio:16/10;object-fit:cover}.r-body{padding:15px}.r-body h3{margin:4px 0 5px;font-size:18px}.r-price{font-weight:700}.footer{background:#111;color:#fff}.footer-in{padding:36px 0;display:flex;justify-content:space-between;gap:30px}.footer p{color:#999;margin:4px 0;font-size:13px}
.lightbox{position:fixed;inset:0;background:rgba(0,0,0,.92);z-index:100;display:none;align-items:center;justify-content:center;padding:30px}.lightbox.open{display:flex}.lightbox img{max-width:96vw;max-height:90vh;object-fit:contain}.lightbox button{position:absolute;top:18px;right:18px;width:46px;height:46px;border:0;border-radius:50%;font-size:25px;cursor:pointer}
@media(max-width:1000px){.gallery{grid-template-columns:2fr 1fr;grid-template-rows:220px 220px}.gallery button:nth-child(n+4){display:none}.content-grid{grid-template-columns:1fr}.sidebar{position:static}.specs{grid-template-columns:repeat(3,1fr)}}
@media(max-width:720px){.shell{width:calc(100% - 24px)}.header-in{height:68px}.logo img{width:145px}.nav{display:none}.back{margin-top:20px}.property-head{grid-template-columns:1fr}.head-price{text-align:left;font-size:24px}.gallery{display:block;border-radius:17px}.gallery .main{height:330px}.gallery button:not(.main){display:none}.content-grid{margin-top:22px;gap:24px;grid-template-columns:minmax(0,1fr)}.specs{grid-template-columns:1fr 1fr}.sidebar{width:100%;max-width:100%;min-width:0}.contact{padding:20px;width:100%;max-width:100%}.form-grid{grid-template-columns:minmax(0,1fr);width:100%;max-width:100%}.field,.field.full{grid-column:1;min-width:0;width:100%}.field input,.field textarea{width:100%;max-width:100%;min-width:0}.related-grid{grid-template-columns:1fr}.footer-in{flex-direction:column}}

.property-actions{display:flex;gap:9px;flex-wrap:wrap;margin:-6px 0 20px}
.property-action{border:1px solid #dfe4e6;background:#fff;color:#26343d;border-radius:999px;padding:10px 14px;font:inherit;font-size:.84rem;font-weight:700;cursor:pointer}
.property-action:hover{border-color:#bcc6cb}.property-action.is-favorite{background:#d63b3b;color:#fff;border-color:#d63b3b}.property-action.is-selected{background:#172832;color:#fff;border-color:#172832}

.property-action .action-icon{width:17px;height:17px;vertical-align:-3px;margin-right:5px}

/* V2.3 · acciones compactas */
.property-actions{display:flex!important;align-items:center;gap:8px!important;flex-wrap:wrap;margin:0 0 20px!important}
.property-action{width:auto!important;height:40px!important;min-width:0!important;border:1px solid #dce2e5!important;background:#fff!important;color:#22313a!important;border-radius:12px!important;padding:0 13px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;font-size:.82rem!important;font-weight:700!important;line-height:1!important;box-shadow:none!important;overflow:visible!important}
.property-action:hover{border-color:#bfc8cd!important;background:#f9fafb!important;transform:translateY(-1px)}
.property-action .action-icon{width:17px!important;height:17px!important;margin:0!important;display:block}
.property-action.is-favorite{background:#fff5f5!important;color:#bd3030!important;border-color:#efcaca!important}
.property-action.is-selected{background:#172832!important;color:#fff!important;border-color:#172832!important}
@media(max-width:560px){.property-action{height:38px!important;padding:0 11px!important}.property-action span{font-size:.78rem}}

/* V2.3 · galería real */
.local-gallery-modal{position:fixed;inset:0;z-index:9000;background:rgba(6,12,16,.97);color:#fff;display:grid;grid-template-rows:auto 1fr auto}
.local-gallery-modal[hidden]{display:none!important}
.local-gallery-top{display:flex;align-items:center;justify-content:space-between;padding:14px 18px}
.local-gallery-counter{font-size:.82rem;color:#c5ced3}
.local-gallery-close,.local-gallery-prev,.local-gallery-next{border:1px solid rgba(255,255,255,.14)!important;background:rgba(255,255,255,.08)!important;color:#fff!important;border-radius:50%!important;display:grid!important;place-items:center!important;padding:0!important}
.local-gallery-close{width:42px!important;height:42px!important;font-size:1.4rem!important}
.local-gallery-stage{min-height:0;display:grid;grid-template-columns:58px minmax(0,1fr) 58px;align-items:center;gap:10px;padding:0 14px}
.local-gallery-stage img{display:block;max-width:100%;max-height:calc(100vh - 185px);width:auto;height:auto;object-fit:contain;margin:auto}
.local-gallery-prev,.local-gallery-next{width:46px!important;height:46px!important;font-size:1.65rem!important}
.local-gallery-thumbs{display:flex;gap:8px;justify-content:center;overflow-x:auto;padding:12px 18px 18px}
.local-gallery-thumb{width:74px!important;height:52px!important;flex:0 0 auto;border:2px solid transparent!important;border-radius:9px!important;overflow:hidden!important;padding:0!important;background:none!important;opacity:.55}
.local-gallery-thumb.is-active{opacity:1;border-color:#f2c500!important}
.local-gallery-thumb img{width:100%;height:100%;object-fit:cover}
@media(max-width:620px){
  .local-gallery-stage{grid-template-columns:42px minmax(0,1fr) 42px;padding:0 5px}
  .local-gallery-prev,.local-gallery-next{width:36px!important;height:36px!important}
  .local-gallery-stage img{max-height:calc(100vh - 170px)}
  .local-gallery-thumbs{justify-content:flex-start}
}

/* V2.4 TEST · formulario nativo CRM en Ficha de Propiedad */
.crm-native-contact{padding:22px!important;overflow:visible!important}
.crm-property-context{
  margin:0 0 14px;padding:12px 13px;border:1px solid #333;border-radius:12px;
  background:#181818;display:flex;flex-direction:column;gap:2px
}
.crm-property-context span{
  color:#999;font-size:10px;text-transform:uppercase;letter-spacing:.09em;font-weight:700
}
.crm-property-context strong{color:#fff;font-size:14px;line-height:1.3}
.crm-property-context small{color:#f2c500;font-size:12px;font-weight:700}
.crm-form-shell{
  width:100%;height:640px;min-height:640px;background:#fff;border-radius:14px;
  overflow:hidden;border:1px solid rgba(255,255,255,.08)
}
.crm-form-shell iframe{display:block;width:100%!important;height:100%!important;min-height:640px!important}
@media(max-width:720px){
  .crm-native-contact{padding:18px!important}
  .crm-form-shell,.crm-form-shell iframe{height:680px!important;min-height:680px!important}
}

/* Interacción consistente con listado. */
.r-card{display:block;transition:transform .25s,box-shadow .25s}.r-card img{transition:transform .35s}.r-card:hover,.r-card:focus-visible{transform:translateY(-4px);box-shadow:0 12px 28px rgba(0,0,0,.12)}
@media(prefers-reduced-motion:reduce){.r-card,.r-card img{transition:none}.r-card:hover,.r-card:focus-visible{transform:none}}
