/* Atmospheric collage from Mar's drawings. */
body{position:relative;isolation:isolate;background:#e9eef2}
.nocta-collage{position:fixed;inset:-20px;z-index:-1;overflow:hidden;pointer-events:none;background:#b8c5d0}
.collage-art{position:absolute;width:53%;height:110%;background-size:cover;background-repeat:no-repeat;filter:blur(5px) saturate(.5);opacity:.52}
.collage-bosque{left:-9%;top:-4%;background-image:url('assets/dibujo-bosque.webp');background-position:50% 45%;transform:rotate(-7deg);mask-image:linear-gradient(90deg,#000 55%,transparent)}
.collage-guardian{left:27%;top:-3%;background-image:url('assets/dibujo-guardian.webp');background-position:50% 48%;mask-image:linear-gradient(90deg,transparent,#000 25%,#000 70%,transparent)}
.collage-luna{right:-9%;top:-5%;background-image:url('assets/dibujo-luna.webp');background-position:62% 40%;transform:rotate(6deg);mask-image:linear-gradient(90deg,transparent,#000 35%)}
.nocta-collage:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(228,237,244,.68),rgba(230,238,244,.8) 55%,rgba(214,225,235,.7))}
header{background:rgba(246,248,250,.92)}
.hero{background:rgba(232,239,244,.82)}
.hero:after{background:linear-gradient(90deg,#e8eff4 0%,#e8eff4 34%,rgba(232,239,244,.93) 40%,rgba(232,239,244,0) 58%)}
.catalogue{background:rgba(247,249,250,.65)}
.book-card{background:rgba(248,250,251,.84);padding:15px}
footer{background:rgba(237,242,246,.9)}
@media(max-width:650px){.collage-art{width:85%;filter:blur(4px) saturate(.5)}.collage-bosque{left:-38%;opacity:.35}.collage-guardian{left:0;width:100%;opacity:.4}.collage-luna{right:-45%;opacity:.35}.hero:after{background:linear-gradient(180deg,#e8eff4 0%,#e8eff4 39%,rgba(232,239,244,.92) 47%,transparent 77%)}}

/* Keep the art above the page canvas and make it recognizable. */
.nocta-collage{z-index:0}
body>header,body>.topbar,body>main,body>footer{position:relative;z-index:1}
.collage-art{opacity:.8;filter:blur(2px) saturate(.7)}
.nocta-collage:after{background:rgba(222,234,243,.48)}
.catalogue{background:rgba(247,249,250,.38)}
.hero{background:#d7e2eb}
.hero-image{inset:0;display:flex;overflow:hidden;background:none;filter:blur(2px) saturate(.7)}
.hero-image::before{content:'';position:absolute;inset:-8px;background-image:url('assets/dibujo-bosque.webp'),url('assets/dibujo-guardian.webp'),url('assets/dibujo-luna.webp');background-position:left center,center center,right center;background-size:34% auto,34% auto,34% auto;background-repeat:no-repeat}
.hero:after{background:linear-gradient(90deg,rgba(234,241,246,.97),rgba(234,241,246,.88) 33%,rgba(215,230,241,.3) 68%,rgba(215,230,241,.2))}
@media(max-width:650px){.collage-art{opacity:.72;filter:blur(2px) saturate(.7)}.hero{min-height:590px}.hero-image{inset:0}.hero-image::before{background-size:55% auto,65% auto,55% auto;background-position:-35% bottom,50% bottom,135% bottom}.hero:after{background:linear-gradient(180deg,rgba(234,241,246,.98),rgba(234,241,246,.93) 36%,rgba(215,230,241,.45) 59%,rgba(215,230,241,.18))}}

/* Sirena anchored to the right, with full-height coverage. */
.hero-image::after{content:'';position:absolute;top:-8px;bottom:-8px;right:-8px;width:42%;background:url('assets/dibujo-luna.webp') 65% 48%/cover no-repeat;mask-image:linear-gradient(90deg,transparent,#000 22%)}
.collage-luna{right:-2%;width:45%;top:-5%;height:115%;transform:none;background-position:65% 45%;background-size:cover;mask-image:linear-gradient(90deg,transparent,#000 22%)}
@media(max-width:650px){.hero-image::after{top:38%;bottom:-8px;width:52%;background-position:64% 48%;mask-image:linear-gradient(90deg,transparent,#000 18%)}.collage-luna{right:-8%;width:63%;height:115%;background-position:64% 45%}}

/* Compact catalogue: all three editions visible as a collection. */
.book-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:start}
.book-card{min-width:0}
.book-card[hidden],.book-grid[hidden]{display:none}
.book-open>img{height:300px;object-fit:contain;background:rgba(225,231,236,.6)}
.book-title{font-size:25px;line-height:1.16}
@media(max-width:650px){.book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.book-card{padding:10px}.book-open>img{width:100%;height:200px;max-height:200px;object-fit:contain}.book-title{font-size:20px;line-height:1.15}.book-author{font-size:11px}.book-card>.add-cart{font-size:9px;padding:9px 7px;width:100%}}

.categories{grid-template-columns:repeat(6,minmax(0,1fr))}.categories a{min-width:0}#product-four{max-width:960px}#four-image{display:block;width:100%;height:min(52vh,480px);object-fit:contain;background:#e5e1d7}#product-four .thumbnails{overflow-x:auto;padding:10px 0} .four-thumb{flex:0 0 60px;width:60px;height:78px;border:1px solid #b5b1a8;padding:0;background:none}.four-thumb img{width:100%;height:100%;object-fit:cover}.book-buy{border:1px solid #24231e;background:transparent;padding:10px 14px;text-transform:uppercase;font-size:10px;letter-spacing:.1em;color:#24231e;align-self:flex-start}@media(max-width:1050px){.categories{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:650px){.categories{grid-template-columns:repeat(2,minmax(0,1fr))}.categories a:last-child{grid-column:auto;min-height:145px}.book-buy{width:100%;font-size:9px;padding:9px 7px}#product-four{padding:30px 20px}}
