/* PATRIMONI V6 — cinematic editorial rhythm; native scrolling, no heavy libraries */
:root{--v6-cream:#f4f1ec;--v6-olive:#344235;--v6-ink:#273128;--v6-serif:Georgia,serif}
/* Sharper large-screen model photograph: native 1536px image rather than the older 1054px asset. */
.page-home .operating-image.v6-operating-photo{background:linear-gradient(0deg,rgba(15,21,16,.31),transparent 46%),url('../img/modelo-patrimoni-v6.webp') center/cover no-repeat!important;position:relative;isolation:isolate;min-height:610px}
.v6-photo-label{position:absolute;bottom:25px;left:28px;color:#fff;font-size:10px;letter-spacing:.17em;text-transform:uppercase;text-shadow:0 1px 10px rgba(0,0,0,.45);font-weight:600}
/* Elevated opening: graphical light + scroll line, without video or fake controls. */
.page-home .hero::before{background-image:linear-gradient(90deg,rgba(9,17,13,.47),rgba(9,17,13,.08)),url('../img/portada.webp');filter:saturate(1.04) contrast(1.025)}
.page-home .hero-title{max-width:1000px;letter-spacing:-.068em!important}
.page-home .hero::after{content:"";position:absolute;bottom:0;left:50%;height:62px;width:1px;background:linear-gradient(0deg,transparent,rgba(255,255,255,.8));z-index:2;transform-origin:top;animation:v6-scroll-breathe 3s ease-in-out infinite}
@keyframes v6-scroll-breathe{0%,100%{transform:scaleY(.65);opacity:.48}50%{transform:scaleY(1);opacity:1}}
/* Full-bleed modern Mediterranean visual reset between dense strategy sections. */
.v6-interlude{min-height:min(80vh,730px);position:relative;overflow:hidden;color:#fff;background:#354435;display:flex;align-items:flex-end;padding:clamp(64px,9vw,125px) 0}
.v6-interlude-image{position:absolute;inset:-5%;background:url('../img/comunidades-jardin.webp') center/cover no-repeat;transform:translateY(var(--v6-image-shift,0px)) scale(1.055);will-change:transform}
.v6-interlude-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(10,20,13,.70) 0%,rgba(10,20,13,.25) 85%)}
.v6-interlude-content{position:relative;z-index:2;width:100%;max-width:1440px}
.v6-interlude .eyebrow{color:#fff;opacity:.83}
.v6-interlude h2{font-size:clamp(38px,5vw,78px);line-height:1.14;letter-spacing:-.062em;font-weight:450;margin:0 0 28px;max-width:1060px}
.v6-interlude h2 em{font-family:var(--v6-serif);font-weight:400}
.v6-interlude-link{display:inline-flex;align-items:center;gap:18px;color:#fff;font-size:13px;border-bottom:1px solid #d8e2d0;padding-bottom:12px;transition:gap .28s ease}
.v6-interlude-link:hover{gap:30px}
.v6-interlude-credit{position:absolute;bottom:20px;right:22px;font-size:10px;z-index:3;color:#fff;letter-spacing:.1em;opacity:.8}
/* Scroll-driven chapters: one sticky photographic frame, three readable narratives. */
.v6-chapters{background:#f8f7f3;color:var(--v6-ink);padding:clamp(75px,9vw,135px) 0 70px;scroll-margin-top:70px}
.v6-chapters-header{display:grid;grid-template-columns:1.4fr 1fr;gap:clamp(30px,7vw,120px);align-items:end;margin:0 auto clamp(50px,6vw,85px)}
.v6-chapters-header .eyebrow{color:#64705f}
.v6-chapters-header h2{font-size:clamp(40px,5vw,76px);line-height:1.1;letter-spacing:-.065em;font-weight:500;margin:0}
.v6-chapters-header h2 span{font-family:var(--v6-serif);font-weight:400;color:#6d786c}
.v6-chapters-header>p{font-size:clamp(15px,1.22vw,19px);line-height:1.7;color:#687167;margin:0 0 8px}
.v6-chapters-layout{display:grid;grid-template-columns:minmax(0,1.13fr) minmax(0,.87fr);gap:clamp(30px,5vw,90px);padding:0 clamp(22px,4vw,72px) 0 0;max-width:1650px;margin:auto;align-items:start}
.v6-chapters-visual{height:clamp(490px,74vh,790px);position:sticky;top:clamp(60px,11vh,115px);overflow:hidden;background:#859082;isolation:isolate;border-radius:0 7px 7px 0}
.v6-visual{position:absolute;inset:0;opacity:0;transform:scale(1.065);transition:opacity .9s ease,transform 2.1s cubic-bezier(.2,.8,.2,1)}
.v6-visual.v6-active{opacity:1;transform:scale(1)}
.v6-visual img{width:100%;height:100%;object-fit:cover}
.v6-visual-overlay{position:absolute;inset:auto 0 0;padding:28px 32px;color:white;display:flex;justify-content:space-between;font-size:10px;letter-spacing:.2em;background:linear-gradient(transparent,rgba(0,0,0,.48))}
.v6-visual-counter{font-weight:500;font-size:12px;letter-spacing:.13em}
.v6-chapters-copy{padding:12px 0}
.v6-chapter{min-height:clamp(475px,73vh,760px);display:flex;flex-direction:column;align-items:flex-start;justify-content:center;max-width:550px;padding:60px 10px 60px 0;transition:opacity .35s ease}
.v6-chapter-number{letter-spacing:.2em;color:#728069;font-weight:700;font-size:11px}
.v6-chapter h3{font-size:clamp(36px,4vw,63px);font-weight:450;line-height:1.12;letter-spacing:-.055em;margin:35px 0 25px}
.v6-chapter p{font-size:clamp(15px,1.3vw,19px);line-height:1.75;color:#69736a;margin:0;max-width:460px}
.v6-chapter a{margin-top:38px;display:inline-block;font-size:13px;border-bottom:1px solid #9fa89b;padding-bottom:12px;color:#41533e}
.v6-chapter-mobile-photo{display:none}
.v6-chapters-disclaimer{font-size:10px;color:#7c8179;margin:45px auto 0;line-height:1.65}
/* Crisp navigation and cards with more motion and visual hierarchy */
.page-home .editorial-card{position:relative;overflow:visible}
.page-home .editorial-card .editorial-photo{border-radius:4px;filter:saturate(.94);transition:transform .8s cubic-bezier(.18,.8,.2,1),filter .7s ease!important}
.page-home .editorial-card:hover .editorial-photo{transform:scale(1.028)!important;filter:saturate(1.11)}
.page-home .model-row{transition:background-color .35s ease,padding-left .45s ease}
.page-home a.model-row:hover{background:rgba(255,255,255,.26);padding-left:12px}
.page-home .v5-notebook-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:clamp(13px,1.4vw,25px)}
.page-home .v5-notebook-card .v5-note-photo{aspect-ratio:1.15;border-radius:4px}
.page-home .v5-notebook-card h3{font-size:clamp(17px,1.4vw,22px)}
.page-home .v5-notebook-card p{font-size:12px}
.page-home .v5-notebook-card .v5-read{padding-top:6px}
.page-home .v5-notebook-head{margin-bottom:40px}
.page-home .operating-image.v6-operating-photo{background-position:center 47%}
/* New editorial archive spacing for 6 stories; clickable article cards. */
.page-cuaderno .notebook-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:44px 26px}
.page-cuaderno .notebook-grid>a:hover img{filter:contrast(1.04) saturate(1.06)}
.page-cuaderno .notebook-grid h2{font-size:clamp(20px,2vw,27px)}
@media(min-width:1150px){.page-home .hero{min-height:100svh}.page-home .nav{transition:background .3s,backdrop-filter .3s}}
@media(max-width:1190px){.page-home .v5-notebook-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:850px){
 .v6-interlude{min-height:510px}
 .v6-chapters-header{grid-template-columns:1fr}
 .v6-chapters-layout{grid-template-columns:1fr;padding:0 clamp(20px,5vw,45px)}
 .v6-chapters-visual{display:none}
 .v6-chapter{padding:20px 0 70px;min-height:auto;max-width:none}
 .v6-chapter-mobile-photo{display:block;width:100%;aspect-ratio:1.65;object-fit:cover;border-radius:5px;margin-bottom:32px}
 .v6-chapter h3{margin:16px 0 20px}
 .v6-chapter a{margin-top:24px}
 .page-home .v5-notebook-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .page-cuaderno .notebook-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
 .page-home .operating-image.v6-operating-photo{min-height:350px}
 .v6-interlude{min-height:475px;padding:95px 0 80px}
 .v6-interlude h2{font-size:clamp(36px,9vw,49px)}
 .v6-interlude-image{background-position:58% center}
 .v6-chapters{padding:70px 0 35px}
 .v6-chapters-header{margin-bottom:40px}
 .v6-chapter-mobile-photo{aspect-ratio:1.3}
 .page-home .v5-notebook-grid{grid-template-columns:1fr}
 .page-home .v5-notebook-card .v5-note-photo{aspect-ratio:1.65}
 .page-cuaderno .notebook-grid{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
 .page-home .hero::after{animation:none}
 .v6-visual{transition:none;transform:none!important}
 .v6-interlude-image{transform:none!important;will-change:auto}
 .page-home .editorial-card .editorial-photo{transition:none!important}
}
