
/* Habinara: portada editorial, catálogo y buscador ampliado */
body:not(.crm){background:#fff}
.sitehead .logo{width:224px;height:70px}
header.sitehead{height:112px;max-width:1440px;padding:0 48px}
.sitehead nav{gap:28px}.sitehead nav a{font-size:15px}
.sitehead nav a:hover{color:var(--blue)}
.hero{isolation:isolate;max-width:1440px;margin:auto;min-height:560px;background:#edf7fc;color:var(--navy);overflow:hidden}
.hero:after{content:"";position:absolute;inset:0 0 0 49%;z-index:-1;background:url('/assets/hero.webp') center/cover;border-radius:100px 0 0 0}
.hero-inner{width:100%;padding:58px 52% 94px 64px}
.hero h1{font-size:clamp(42px,4.1vw,64px);line-height:1.08;max-width:620px;letter-spacing:-2px;font-weight:500}
.hero .eyebrow{color:var(--blue);font-size:13px}
.hero p{color:#4a6b7e;font-size:18px;line-height:1.7}
.hero .btn{padding:15px 23px}.illustrative{font-size:12px;bottom:48px;right:24px}
.search-enhanced{display:block;max-width:1184px;margin:-40px auto 0;padding:26px 32px;border-radius:12px;box-shadow:0 20px 55px #173e5515}
.search-primary{display:grid;grid-template-columns:1.25fr 1.2fr 1fr auto;gap:24px;align-items:end}
.search-enhanced label{font-size:14px;text-transform:none;letter-spacing:0}
.search-primary input,.search-primary select{height:48px;border-color:#d8e4ec;background:#fcfdfe}
.search-primary button{height:48px;min-width:140px}
.advanced-search{border-top:1px solid var(--line);margin-top:22px;padding-top:15px}
.advanced-search summary{display:flex;justify-content:space-between;align-items:center;cursor:pointer;font-size:14px;font-weight:600;color:var(--blue);list-style:none}
.advanced-search summary::-webkit-details-marker{display:none}
.advanced-search[open] summary{margin-bottom:24px}.advanced-search[open] summary span{transform:rotate(45deg)}
.advanced-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.amenities{border:0;padding:14px 0;margin:10px 0;display:flex;gap:15px 24px;flex-wrap:wrap}
.amenities legend{font-size:14px;font-weight:600;margin-bottom:8px}
.amenities label{display:flex;flex-direction:row;align-items:center;gap:8px;font-size:14px;white-space:nowrap}
.amenities input{width:17px;height:17px;accent-color:var(--blue)}
.advanced-actions{display:flex;justify-content:space-between;align-items:center}
.results-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px;gap:20px}
.results-head label{flex-direction:row;align-items:center;white-space:nowrap}.results-head select{width:220px}
.section{padding-top:82px;padding-bottom:82px}
.section h2{font-size:clamp(28px,3vw,40px);font-weight:450;line-height:1.18;letter-spacing:-1.1px;max-width:660px}
.property-card{border-radius:3px;border:0;box-shadow:none;transition:transform .2s;background:#fff}
.property-card:hover{transform:translateY(-4px)}
.card-image{height:auto;aspect-ratio:4/3;border-radius:3px;overflow:hidden}
.card-image img{transition:transform .35s}.property-card:hover .card-image img{transform:scale(1.035)}
.card-content{padding:21px 0 0}.card-content .muted{font-size:14px;margin-bottom:8px}
.card-content h3{font-size:22px;font-weight:500;letter-spacing:-.4px;line-height:1.3;margin-bottom:16px}
.price{font-size:25px;color:var(--navy)}.meta{margin-top:16px;gap:18px}
.demo-property{position:absolute;bottom:12px;left:12px;right:12px;background:#fff5dfef;color:#715022;font-size:12px;padding:5px 9px;border-radius:3px}
.journal-section{border-top:1px solid var(--line)}
.journal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
.journal-card{border:1px solid var(--line);border-radius:4px;overflow:hidden;background:white}
.journal-card>img{display:block;width:100%;height:215px;object-fit:cover}
.journal-cover{min-height:215px;background:#eaf5fb;padding:24px;display:flex;flex-direction:column;justify-content:space-between;color:#247699}
.journal-cover strong{font-size:66px;font-weight:300;line-height:1.15}.journal-cover span{font-size:12px;letter-spacing:1px}
.journal-card:nth-child(2) .journal-cover{background:#163f55;color:white}
.journal-card:nth-child(3) .journal-cover{background:#d5eaf6}
.journal-copy{padding:27px}.journal-copy .eyebrow{font-size:12px;letter-spacing:1px}
.journal-copy h3{font-size:23px;font-weight:500;margin:14px 0;line-height:1.3}
.journal-copy p{font-size:15px;color:var(--muted)}.journal-copy .textbtn{display:inline-block;margin-top:12px;font-size:14px;padding:0}
.editorial-title{font-size:clamp(38px,4.5vw,62px);font-weight:450;letter-spacing:-1.5px;line-height:1.1;max-width:820px}
.journal-filters{display:flex;flex-wrap:wrap;gap:14px;margin:32px 0}
.journal-filters a{padding:10px 17px;border:1px solid var(--line);border-radius:30px}
.journal-filters a.selected{background:var(--navy);color:white}
.article-page{max-width:1020px;margin:auto;padding:60px 30px 90px}
.article-page>.eyebrow{margin-top:40px}.article-page>h1{font-size:clamp(35px,4vw,56px);line-height:1.14;font-weight:500;letter-spacing:-1.4px}
.article-deck{font-size:22px;color:var(--muted);line-height:1.5;max-width:800px}
.article-byline{font-size:14px;padding:22px 0;border-top:1px solid var(--line)}
.article-hero{width:100%;max-height:530px;object-fit:cover;border-radius:4px;margin:15px 0 40px}
.article-body{max-width:740px;margin:30px auto 40px;font-size:18px;line-height:1.85}
.article-body h2{font-size:30px;line-height:1.3;margin:35px 0 18px}.article-body h3{margin-top:25px}.article-body p{margin-bottom:24px}
.blog-admin-cover{width:100%;max-height:200px;object-fit:cover;border-radius:7px;margin-bottom:18px}
#article-form textarea[name="body"],#article-language-form textarea[name="body"]{min-height:320px}
.crm .journal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.crm .journal-grid h3{margin-top:18px}
@media(max-width:1000px){
 header.sitehead{padding:15px 25px;height:auto;min-height:100px;gap:20px}.sitehead nav{gap:16px}.sitehead .logo{width:190px}
 .hero-inner{padding-left:35px}.hero h1{font-size:48px}.hero{min-height:520px}
 .search-enhanced{margin:-35px 25px 0}.search-primary{gap:14px}.search-primary button{min-width:100px}
 .advanced-grid{grid-template-columns:repeat(2,1fr)}
 .journal-grid{gap:20px;grid-template-columns:repeat(2,minmax(0,1fr))}.section{padding:60px 25px}
}
@media(max-width:700px){
 header.sitehead{padding:16px 20px;gap:12px}.sitehead .logo{width:170px;height:57px}.sitehead .lang{width:115px}.sitehead nav{gap:8px;width:100%;overflow:auto;justify-content:space-between;padding-top:8px}.sitehead nav a{font-size:13px;white-space:nowrap}
 .hero{display:block;min-height:0;padding-bottom:230px}.hero:after{inset:auto 0 0;height:230px;border-radius:45px 0 0 0}
 .hero-inner{padding:38px 24px 32px}.hero h1{font-size:43px;letter-spacing:-1.3px;max-width:380px;margin-bottom:18px}.hero p{font-size:16px;max-width:420px}.hero .btn{margin-top:2px}
 .illustrative{bottom:44px;right:10px}
 .search-enhanced{padding:22px 20px;margin:-26px 16px 0;border-radius:8px}.search-primary{grid-template-columns:1fr 1fr;gap:16px}.search-primary button{width:100%}.search-enhanced label{font-size:13px}
 .advanced-grid{gap:16px}.advanced-grid input{min-width:0}.amenities{gap:12px 18px}.amenities label{font-size:13px}
 .section{padding:48px 20px}.section-head{display:block}.section-head>.textbtn{display:inline-block;margin-top:8px}.grid3,.journal-grid,.crm .journal-grid{grid-template-columns:1fr}
 .grid3{gap:35px}.card-image{aspect-ratio:4/3}.results-head{align-items:start;flex-direction:column}.results-head label{width:100%;justify-content:space-between}.results-head select{width:190px}
 .journal-card{display:block}.journal-cover{min-height:170px}.article-page{padding:40px 22px}.article-deck{font-size:19px}.article-body{font-size:17px}
}
@media(prefers-reduced-motion:reduce){.property-card,.card-image img{transition:none}}


@media(min-width:1001px){.search-enhanced{width:calc(100% - 88px)}}
.journal-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))}

.about-section{max-width:1260px;margin:auto;display:grid;grid-template-columns:minmax(280px,.85fr) 1.15fr;gap:70px;padding:75px 44px 90px;align-items:start}
.about-portrait{background:#eef7fc;border-radius:4px;overflow:hidden;margin-top:10px}
.about-portrait>img{display:block;width:100%;height:auto;object-fit:contain;background:white}
.portrait-caption{padding:25px 28px;border-top:1px solid var(--line);display:grid;gap:5px}
.portrait-caption strong{font-size:25px;font-weight:500}.portrait-caption span{font-size:14px;color:var(--muted)}
.about-copy h1,.about-copy h2{font-size:clamp(32px,3.5vw,49px);line-height:1.15;letter-spacing:-1.2px;font-weight:500;margin:0 0 25px}
.about-copy>p{line-height:1.8;color:#496675}.about-copy>.eyebrow{color:var(--blue);font-size:12px}.about-copy>.about-intro{font-size:20px;line-height:1.65;color:var(--navy)}
.career-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;padding:24px 0;margin:24px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.career-stats strong{display:block;font-size:38px;line-height:1.3;color:var(--blue);font-weight:500}.career-stats span{display:block;font-size:13px;line-height:1.5;color:var(--muted)}
.about-compact{align-items:center}.about-compact .about-portrait{max-width:390px}.about-compact .career-stats{margin:18px 0}
@media(max-width:1000px){.about-section{gap:35px;padding:60px 25px}.about-copy>.about-intro{font-size:18px}}
@media(max-width:700px){.about-section{grid-template-columns:1fr;padding:40px 22px;gap:30px}.about-portrait{max-width:440px;justify-self:center}.about-copy h1,.about-copy h2{font-size:34px}.career-stats{gap:13px}.career-stats strong{font-size:32px}.about-compact .about-portrait{max-width:340px}}
.whatsapp-float{position:fixed;right:max(22px,env(safe-area-inset-right));bottom:calc(22px + env(safe-area-inset-bottom));z-index:90;display:inline-flex;align-items:center;gap:9px;min-height:56px;padding:10px 18px;border-radius:999px;background:#087b42;color:#fff;text-decoration:none;font-weight:600;box-shadow:0 5px 20px #123a3540;transition:background .15s,transform .15s}
.whatsapp-float svg{width:30px;height:30px}.whatsapp-float:hover{background:#056333;color:#fff;transform:translateY(-2px)}.whatsapp-float:focus-visible{outline:3px solid #087fb9;outline-offset:4px}.foot{padding-bottom:100px}
@media(max-width:600px){.whatsapp-float{right:16px;bottom:calc(16px + env(safe-area-inset-bottom));padding:12px;min-width:56px;justify-content:center}.whatsapp-float span{display:none}}
@media(prefers-reduced-motion:reduce){.whatsapp-float{transition:none}}

#photos-grid .photo>img{cursor:grab;touch-action:none;user-select:none;-webkit-user-drag:none}#photos-grid .photo-dragging{opacity:.55}#photos-grid .photo-dragging>img{cursor:grabbing}#photos-grid .photo-target{outline:3px solid #138cc4;outline-offset:2px;background:#eaf7ff}#photos-grid[aria-busy="true"]{opacity:.65}

.property-video{margin-top:30px;padding:22px;border:1px solid var(--line);border-radius:10px}.video-consent{padding:20px;background:#eff8fc;margin:12px 0}.video-consent button{margin-top:16px}.video-player iframe{width:100%;aspect-ratio:16/9;border:0;display:block;margin:15px 0}.property-video [hidden]{display:none}

.photo-purge{display:block;color:#a72f23;margin-top:8px}

/* Property gallery: complete images and accessible navigation. */
.property-gallery{min-width:0}
.gallery-stage{position:relative;width:100%;height:min(75vw,740px);background:#f0f3f5;border-radius:12px;overflow:hidden}
.gallery-stage .detail-hero{display:block;width:100%;height:100%;object-fit:contain;border-radius:0;background:transparent}
.gallery-stage .gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:48px;height:48px;padding:0;border:1px solid #dce4e9;border-radius:50%;background:#fffffff2;color:var(--navy);box-shadow:0 2px 12px #0002;cursor:pointer}
.gallery-arrow span{font-family:Arial,sans-serif;font-size:38px;line-height:1;transform:translateY(-2px)}
.gallery-stage .gallery-prev{left:16px}.gallery-stage .gallery-next{right:16px}
.gallery-stage .gallery-arrow:hover{background:#fff;color:var(--blue)}
.gallery-arrow:focus-visible,.property-gallery .gallery-pick:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.gallery-counter{position:absolute;right:16px;bottom:14px;border-radius:20px;padding:5px 12px;background:#153e55e6;color:#fff;font-size:13px;pointer-events:none}
.property-gallery .gallery{position:relative;padding:4px 3px 8px;scrollbar-width:thin}
.property-gallery .gallery-pick{flex:0 0 auto;border:2px solid transparent;border-radius:8px;line-height:0}
.property-gallery .gallery-pick[aria-pressed="true"]{border-color:var(--blue);box-shadow:0 0 0 1px var(--blue)}
@media(max-width:700px){.gallery-stage{height:auto;aspect-ratio:4/3}.gallery-stage .detail-hero{position:absolute;inset:0}.gallery-stage .gallery-arrow{width:44px;height:44px}.gallery-stage .gallery-prev{left:8px}.gallery-stage .gallery-next{right:8px}.gallery-counter{right:10px;bottom:10px}.property-gallery .gallery{gap:8px}.property-gallery .gallery img{width:96px;height:72px}}
@media print{.gallery-stage{height:350px}.gallery-counter{display:none}}

/* YouTube cover: player loads only after the visitor presses play. */
.property-video .video-consent{padding:0;background:transparent;margin:12px 0}
.video-consent .video-cover{position:relative;display:block;width:100%;aspect-ratio:16/9;overflow:hidden;padding:0;margin:0;border:0;border-radius:8px;background:#102b3b;cursor:pointer}
.video-cover img{display:block;width:100%;height:100%;object-fit:cover;opacity:.9}
.video-cover .video-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:76px;height:54px;border-radius:14px;background:#e62117;color:white;font-size:28px;padding-left:4px;box-shadow:0 3px 15px #0004}
.video-cover-label{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(transparent,#000c);padding:28px 12px 12px;color:#fff;font-size:16px;text-align:center}
.video-cover:hover .video-play{background:#c91912}.video-cover:focus-visible{outline:3px solid var(--blue);outline-offset:4px}
.video-consent p,.video-consent>a{font-size:13px;line-height:1.5}.video-consent p{margin:12px 0 4px;color:var(--muted)}

.property-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 18px}.property-heading-copy{min-width:0}.property-heading h1{margin:0 0 18px}.property-heading-copy p{margin:0}.property-video-shortcut{flex-shrink:0}.property-video-shortcut .btn{white-space:nowrap}
@media(max-width:700px){.property-heading{flex-direction:column;align-items:flex-start;gap:12px;margin-bottom:16px}.property-heading h1{margin-bottom:12px}.property-video-shortcut .btn{padding:9px 14px;font-size:14px}}
