/* RVE WEB 2.0 / Integracion visual V1. 2026-11-27.
   Scoped exclusively to the seven approved home scenes. Typography, palette,
   source JS, SEO/GEO metadata, links and secondary pages are not replaced. */
/* 01 Mexico: separate left editorial reading axis and a unified right group. */
.chapter-shell-mexico #mexico .mex-stage{display:grid;grid-template-columns:minmax(0,.91fr) minmax(0,1.09fr);grid-template-areas:'heading animals' 'writing animals' 'writing reflection' 'action reflection';grid-template-rows:auto 1fr auto auto;align-items:start;gap:clamp(13px,2vh,23px) clamp(28px,4vw,72px);width:min(1320px,calc(100% - clamp(44px,11vw,160px)));height:100%;padding-bottom:20px;}
.chapter-shell-mexico #mexico .mex-heading,.chapter-shell-mexico #mexico .mex-writing,.chapter-shell-mexico #mexico .mex-voice,.chapter-shell-mexico #mexico .mex-end{position:relative;inset:auto;left:auto;right:auto;top:auto;bottom:auto;width:100%;max-width:none;padding:0;margin:0;min-height:0;transform:none;}
#mexico .mex-heading{grid-area:heading;align-self:start;z-index:4}
#mexico .mex-title strong{white-space:normal;max-width:10ch}
#mexico .mex-writing{grid-area:writing;max-width:44ch;align-self:start}
#mexico .mex-voice{grid-area:reflection;align-self:start;z-index:4}
.chapter-shell-mexico #mexico .mex-voice p{text-align:left}
.chapter-shell-mexico #mexico .mex-end{grid-area:action;align-self:end;z-index:8}
.chapter-shell-mexico #mexico .maqueta-mex-animales{grid-area:animals;position:relative;min-height:0;height:100%;width:100%;aspect-ratio:1.45;align-self:center;isolation:isolate}
.chapter-shell-mexico #mexico .maqueta-mex-animales .mex-creature{position:absolute;inset:auto;object-fit:contain;height:auto;max-width:none;pointer-events:none}
.chapter-shell-mexico #mexico .maqueta-mex-animales .mex-jaguar{width:46%;left:3%;bottom:0;z-index:4}
.chapter-shell-mexico #mexico .maqueta-mex-animales .mex-xolo{width:37%;left:43%;bottom:8%;z-index:2}
.chapter-shell-mexico #mexico .maqueta-mex-animales .mex-ajolote{width:23%;left:24%;top:5%;z-index:3}
.chapter-shell-mexico #mexico .maqueta-mex-animales .mex-conejo{width:27%;right:0;bottom:0;z-index:5}
/* 02 Flor Negra. Keep visual, clouds, stage geometry and timeline. Two editorial zones. */
#flor .flor-stage>.wrap{display:grid;grid-template-columns:minmax(0,.91fr) minmax(0,1.09fr);grid-template-areas:'label label' 'title copy';column-gap:clamp(30px,7vw,100px);align-items:start;padding-top:clamp(50px,9vh,96px);margin:auto;}
#flor .flor-stage>.wrap>.eyebrow{grid-area:label}
#flor .flor-name{grid-area:title;max-width:none;align-self:start;margin:0;padding:0;}
#flor .flor-content{grid-area:copy;max-width:52ch;margin:0;padding:clamp(20px,5vh,50px) 0;align-self:start;position:relative;z-index:3;}
#flor .flor-content p{max-width:none}
#flor .flor-content .super-flor{position:relative;inset:auto;transform:none;margin:24px 0 0;padding:0;border:0;width:auto;max-width:100%;background:none}
#flor .flor-content .lineup{margin-top:26px}
#flor .flor-stage:after{background:linear-gradient(90deg,rgba(15,14,14,.93) 0%,rgba(15,14,14,.70) 46%,rgba(15,14,14,.60) 100%)}
#flor .flor-stage .flor-visual{mask-image:linear-gradient(90deg,transparent 0%,#000 45%);-webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 45%)}
/* 03 Espejo Negro: same asset, same inversion, more vertical presence. */
.chapter-shell-espejo #espejo .espejo-layout{grid-template-columns:minmax(0,.89fr) minmax(0,1.11fr);grid-template-areas:'editorial visual' 'reflection visual';grid-template-rows:auto auto;align-items:start;row-gap:18px;column-gap:clamp(24px,4vw,65px);}
.chapter-shell-espejo #espejo .espejo-editorial{align-self:end}
.chapter-shell-espejo #espejo .espejo-layout .espejo-visual{width:100%;max-width:750px;max-height:clamp(350px,65svh,650px);align-self:center;justify-self:center;margin:0}
.chapter-shell-espejo #espejo .espejo-layout .super-espejo{position:relative;inset:auto;left:auto;transform:none;width:100%;max-width:52ch;margin:0;align-self:start;justify-self:start}
/* 04 Painting. Maintain existing paint backdrop and CTA drips; show three actual artworks. */
.chapter-shell-pintura #pintura .paint-scene-grid{display:grid;grid-template-columns:1fr;grid-template-areas:'editorial' 'gallery' 'action';gap:clamp(12px,1.8vh,22px);width:calc(100% - clamp(40px,8vw,150px));max-width:1300px;align-items:center;justify-items:center;}
.chapter-shell-pintura #pintura .paint-editorial{width:100%;max-width:850px}
.chapter-shell-pintura #pintura .paint-editorial h2{margin:8px 0 10px}
.chapter-shell-pintura #pintura .paint-editorial .paint-main-copy{max-width:67ch}
.chapter-shell-pintura #pintura .paint-editorial .paint-reflection{margin:9px 0 0;max-width:780px}
.chapter-shell-pintura #pintura .paint-editorial .paint-reflection p{max-width:62ch}
#pintura .maqueta-paint-gallery{grid-area:gallery;width:min(100%,1080px);display:grid;grid-template-columns:1.14fr .84fr 1.10fr;gap:clamp(10px,2.4vw,38px);align-items:center;justify-items:center}
#pintura .maqueta-paint-gallery figure{margin:0;min-width:0;width:100%}
#pintura .maqueta-paint-gallery img{display:block;width:100%;height:clamp(125px,29svh,320px);object-fit:contain;filter:drop-shadow(0 7px 8px #3c26132b)}
#pintura .paint-action{grid-area:action;position:relative;margin:0;align-self:center;justify-self:center}
/* 05 Voice. Three-column stage with title/intro above; existing reverberation stays. */
.chapter-shell-voz #voz>.wrap{display:grid;grid-template-columns:1fr 1.05fr 1fr;grid-template-areas:'label label label' 'title title title' 'intro intro intro' 'reflection mic action';grid-template-rows:auto auto auto 1fr;column-gap:clamp(16px,3vw,40px);row-gap:clamp(10px,2vh,22px);align-items:start;justify-items:center;width:min(1320px,calc(100% - clamp(40px,8vw,150px)));height:100%;position:relative;}
#voz>.wrap>.eyebrow{grid-area:label;justify-self:start}
#voz>.wrap>h2{grid-area:title;text-align:center;max-width:100%;margin:0;line-height:1;}
#voz>.wrap>.paragraph{grid-area:intro;text-align:center;max-width:59ch;margin:0;}
#voz>.wrap>.super-voz{grid-area:reflection;max-width:33ch;align-self:end;justify-self:start;margin:0 0 15px;}
#voz>.wrap>.cta{grid-area:action;align-self:end;justify-self:end;margin:0 0 15px;}
#voz .maqueta-microfono{grid-area:mic;max-height:clamp(170px,35svh,360px);width:100%;object-fit:contain;align-self:end;object-position:center bottom;pointer-events:none;}
/* 06 Biblioteca. Authentic books are cropped from the original 3344 x 1882 render.
   The same six buttons, JS, datasets and public URLs are used. The supplied tabletop
   was cropped below all inaccurate book covers; no incorrect artwork is displayed. */
#libros.rve-library::after,#libros .rve-library-desk::after{display:none!important}
#libros .rve-library-layout{display:grid;grid-template-columns:minmax(0,2.15fr) minmax(0,1fr);grid-template-areas:'heading heading' 'desk detail' 'hint detail';grid-template-rows:auto minmax(0,1fr) auto;gap:clamp(12px,2vh,24px) clamp(26px,4vw,62px);width:min(1400px,calc(100% - clamp(28px,7vw,120px)));height:100%;min-height:0;padding:clamp(112px,15vh,155px) 0 36px;align-items:center}
#libros .maqueta-library-heading{grid-area:heading;text-align:center;justify-self:center;width:100%;max-width:100%;min-width:0}
#libros .maqueta-library-heading>.eyebrow{display:block;text-align:left;color:#5d493a}
#libros .maqueta-library-heading h2{font-size:clamp(3.2rem,5vw,5.75rem);line-height:.96;letter-spacing:var(--rve-display-letter-spacing);margin:.1em 0 .16em}
#libros .maqueta-library-heading .rve-library-intro{margin:0 auto;max-width:63ch}
#libros .maqueta-library-heading .rve-library-categories{margin:8px auto 0;max-width:none;justify-content:center}
#libros .rve-library-desk{grid-area:desk;position:relative;inset:auto;height:auto;width:100%;min-width:0;aspect-ratio:1570/780;overflow:visible;align-self:center;}
#libros .rve-library-plane{position:absolute;inset:0;left:0;top:0;width:100%;height:100%;transform:none;aspect-ratio:auto;}
#libros .rve-library-books-render{position:absolute;inset:0 auto auto 0;width:100%;height:64.74359%;object-fit:fill;z-index:3;}
#libros .rve-library-table{position:absolute;inset:auto 0 0;width:100%;height:35.25641%;object-fit:fill;mask-image:none;-webkit-mask-image:none;z-index:1}
/* Maps existing hotspot percentages to the cropped authentic image, normalized to the composite. */
#libros .rve-book-ensemble--cimbalo{--hit-x:6.04%;--hit-y:3.87%;--hit-w:14.80%;--hit-h:43.51%}
#libros .rve-book-ensemble--rey{--hit-x:20.02%;--hit-y:10.44%;--hit-w:15.46%;--hit-h:45.21%}
#libros .rve-book-ensemble--hija{--hit-x:34.14%;--hit-y:12.69%;--hit-w:15.84%;--hit-h:46.31%}
#libros .rve-book-ensemble--animales{--hit-x:50.49%;--hit-y:13.98%;--hit-w:15.48%;--hit-h:45.24%}
#libros .rve-book-ensemble--hotel{--hit-x:65.46%;--hit-y:11.22%;--hit-w:15.16%;--hit-h:43.64%}
#libros .rve-book-ensemble--horror{--hit-x:80.54%;--hit-y:4.66%;--hit-w:14.62%;--hit-h:42.96%}
#libros .rve-library-copy{grid-area:detail;position:relative;inset:auto;transform:none;width:100%;max-width:none;margin:0;padding:0;align-self:center;min-width:0}
#libros .rve-library-selected{border-bottom:1px solid #2a261f40;padding-bottom:22px}
#libros .rve-library-hint{grid-area:hint;position:relative;justify-self:center;margin:0;text-align:center;max-width:none}
/* 07 Hablemos. Original supplied isolated table and exact original steam sources. */
#contacto .conversation-layout{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);align-items:center;gap:clamp(22px,4vw,70px)}
#contacto .conversation-copy{width:100%;max-width:530px;min-width:0}
#contacto .conversation-art{position:relative;inset:auto;transform:none;align-self:end;width:100%;aspect-ratio:1122/1402;max-width:700px;max-height:none;margin:0 0 clamp(-260px,-16vw,-120px);overflow:visible;}
#contacto .conversation-table{mask-image:none;-webkit-mask-image:none;object-fit:contain;object-position:center}
#contacto .conversation-art::before{display:none!important}
#contacto .coffee-steam-holder{width:12%;aspect-ratio:256/589;transform:translate(-50%,-99%)}
#contacto .coffee-steam-holder.steam-one{left:31.9%;top:11.2%}
#contacto .coffee-steam-holder.steam-two{left:68.1%;top:11.2%}
/* Compact screens retain normal document flow. No type family/weights changed. */
@media(max-width:1050px), (max-height:759px){
 .chapter-shell-mexico{height:auto!important}
 .chapter-shell-mexico>#mexico{position:relative!important;top:auto!important;height:auto!important;min-height:100svh!important;overflow:visible!important;}
 .chapter-shell-mexico #mexico .mex-stage{height:auto;min-height:480px;grid-template-rows:auto auto auto auto;}
 .chapter-shell-mexico #mexico .maqueta-mex-animales{height:auto;min-height:280px;}
 #flor .flor-stage>.wrap{padding-top:80px;align-items:center;gap:30px;}
 .chapter-shell-espejo #espejo .espejo-layout .espejo-visual{max-height:54svh}
 #libros .rve-library-layout{height:auto;min-height:0;padding:115px 0 38px;grid-template-rows:auto auto auto}
 #voz .maqueta-microfono{max-height:29svh}
}
@media(max-width:760px){
 .chapter-shell-mexico #mexico .mex-stage{display:grid;grid-template-columns:1fr;grid-template-areas:'heading' 'writing' 'animals' 'reflection' 'action';grid-template-rows:auto;gap:24px;width:calc(100% - 40px);padding:0;min-height:0;}
 .chapter-shell-mexico #mexico .mex-heading{padding:0}
 .chapter-shell-mexico #mexico .mex-title strong{max-width:10ch}
 .chapter-shell-mexico #mexico .maqueta-mex-animales{min-height:0;aspect-ratio:1.35;height:auto;max-width:460px;justify-self:center}
 .chapter-shell-mexico #mexico .mex-end{align-self:start}
 #flor .flor-stage>.wrap{display:block;padding:0;margin:0 auto;}
 #flor .flor-stage .flor-name{padding-top:75px;max-width:100%;}
 #flor .flor-content{padding:20px 0 0;max-width:100%}
 #flor .flor-stage .flor-visual{top:10%;}
 #flor .flor-stage:after{background:linear-gradient(180deg,transparent,rgba(15,14,14,.88) 51%,#151412 90%)}
 .chapter-shell-espejo #espejo .espejo-layout{grid-template-columns:1fr;grid-template-areas:'editorial' 'visual' 'reflection';grid-template-rows:auto;}
 .chapter-shell-espejo #espejo .espejo-layout .espejo-visual{width:100%;max-width:490px;max-height:390px;}
 .chapter-shell-pintura #pintura .paint-scene-grid{width:calc(100% - 36px);}
 #pintura .maqueta-paint-gallery{grid-template-columns:1fr 1fr;gap:12px;}
 #pintura .maqueta-paint-gallery figure:nth-child(2){grid-row:2;grid-column:1/-1;width:55%;}
 #pintura .maqueta-paint-gallery img{height:auto;max-height:250px;}
 .chapter-shell-voz #voz>.wrap{height:auto;grid-template-columns:1fr;grid-template-areas:'label' 'title' 'intro' 'mic' 'reflection' 'action';grid-template-rows:auto;row-gap:24px;align-items:start;justify-items:center;}
 #voz>.wrap>h2{font-size:clamp(44px,11.5vw,82px)}
 #voz>.wrap>.paragraph{max-width:100%}
 #voz>.wrap>.super-voz,#voz>.wrap>.cta{justify-self:start;align-self:start;margin:0;}
 #voz .maqueta-microfono{height:250px;max-height:none;width:auto;}
 #libros .rve-library-layout{grid-template-columns:1fr;grid-template-areas:'heading' 'desk' 'detail' 'hint';grid-template-rows:auto;width:calc(100% - 24px);padding:108px 0 46px;gap:22px}
 #libros .maqueta-library-heading h2{font-size:clamp(3rem,12vw,5rem)}
 #libros .rve-library-copy{width:calc(100% - 20px);max-width:100%;margin:auto}
 #libros .rve-library-desk{width:100%;height:auto;min-height:0;aspect-ratio:1570/780;}
 #libros .rve-library-plane{height:100%;width:100%;transform:none;inset:0;}
 #contacto .conversation-layout{display:flex;flex-direction:column;align-items:stretch;gap:24px;padding-bottom:0}
 #contacto .conversation-copy{width:100%;max-width:100%}
 #contacto .conversation-art{align-self:center;width:min(100%,440px);left:auto;right:auto;margin:25px 0 -65px;}
}

/* V1.1 / Correcciones de composición a partir de capturas y recursos del usuario. */
/* México: una sola ilustración compuesta; el ajolote está sobre el jaguar. */
.chapter-shell-mexico #mexico .maqueta-mex-animales{height:auto;min-height:0;aspect-ratio:auto;align-self:center;display:flex;align-items:center;justify-content:center;}
.chapter-shell-mexico #mexico .maqueta-grupo{display:block;width:100%;height:auto;max-height:clamp(280px,54svh,565px);object-fit:contain;filter:none;}
@media(min-width:761px){
 .chapter-shell-mexico #mexico .mex-stage{grid-template-areas:'heading animals' 'writing animals' 'action reflection';grid-template-rows:auto minmax(0,1fr) auto;align-content:center;row-gap:clamp(12px,2.5vh,28px)}
 .chapter-shell-mexico #mexico .mex-writing{align-self:center;max-width:48ch}
 .chapter-shell-mexico #mexico .mex-end{align-self:center}
 .chapter-shell-mexico #mexico .mex-voice{align-self:center}
}
/* Flor: avoid rendering any prose over the original artwork. A separate reading column. */
#flor .flor-stage>.wrap{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:'label .' 'title .' 'copy .';row-gap:14px;column-gap:5%;position:relative;z-index:3;padding-top:0;margin:auto;align-content:center;}
#flor .flor-stage .flor-name{font-size:clamp(75px,9vw,155px);max-width:100%;line-height:.85;}
#flor .flor-content{max-width:52ch;padding:0;margin:0;}
#flor .flor-content .super-flor{margin:18px 0 0;}
#flor .flor-content .lineup{margin-top:18px;}
#flor .flor-stage .flor-visual{width:52%;max-width:none;right:0;top:50%;transform:translateY(-50%);mask-image:linear-gradient(90deg,transparent 0%,#000 12%);-webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 12%);}
#flor .flor-stage:after{content:none;}
/* Espejo: maintain original paired images and inversion; center within usable viewport. */
.chapter-shell-espejo #espejo .espejo-layout .espejo-visual{width:100%;max-width:650px;max-height:none;aspect-ratio:1350/1104;height:auto;align-self:center;}
@media(min-width:761px){
 .chapter-shell-espejo #espejo .espejo-layout{grid-template-rows:auto auto;align-content:center;row-gap:14px;}
 .chapter-shell-espejo #espejo .espejo-layout .espejo-visual{max-width:min(650px,calc((100svh - 190px)*1.222826));align-self:center;}
 .chapter-shell-espejo #espejo .espejo-editorial{align-self:end;}
}
/* Library: fixed image coordinates for table and volumes. No disjoint crops. */
#libros .rve-library-layout{margin-inline:auto;grid-template-rows:auto auto auto;align-content:center;}
#libros .rve-library-desk{aspect-ratio:1570/780;height:auto;min-height:0;}
#libros .rve-library-books-render{inset:0;width:100%;height:100%;object-fit:contain;}
#libros .rve-library-plane{inset:0;transform:none;}
#libros .rve-library-copy{align-self:center;}
@media(min-width:761px) and (max-width:1199px){
 #libros .rve-library-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);grid-template-areas:'heading heading' 'desk detail' 'hint detail';}
}
/* Micro and coffee: source files, no artificial stretching. */
#voz .maqueta-microfono{object-fit:contain;object-position:center bottom;}
#contacto .conversation-art{aspect-ratio:1122/1402;}
#contacto .coffee-steam-holder.steam-one{left:32.0%;top:11.0%}
#contacto .coffee-steam-holder.steam-two{left:68.0%;top:11.0%}
/* Compact viewport: avoid clipping or pinning oversized prose. */
@media(min-width:950px) and (min-height:760px){
 #flor .flor-stage>.wrap{padding-top:110px;padding-bottom:22px;}
 .chapter-shell-espejo>#espejo{padding-top:150px!important;padding-bottom:35px!important;}
}
@media(max-width:1050px), (max-height:759px){
 #flor .flor-stage{height:auto;min-height:100svh;}
 #flor .flor-stage>.wrap{padding-top:100px;padding-bottom:50px;}
}
@media(max-width:760px){
 .chapter-shell-mexico #mexico .maqueta-mex-animales{width:100%;max-width:440px;aspect-ratio:auto;}
 .chapter-shell-mexico #mexico .maqueta-grupo{max-height:380px;}
 #flor .flor-stage{display:flex;flex-direction:column;align-items:stretch;padding:110px 0 48px;min-height:0;}
 #flor .flor-stage>.wrap{display:block;margin:0 auto;padding:0;}
 #flor .flor-stage .flor-name{padding:0;margin:14px 0 24px;font-size:clamp(72px,18vw,118px);}
 #flor .flor-content{max-width:100%;}
 #flor .flor-stage .flor-visual{position:relative;right:auto;top:auto;transform:none;order:2;width:100%;height:auto;aspect-ratio:1322/1190;margin:25px 0 0;mask-image:linear-gradient(180deg,transparent,#000 12%);-webkit-mask-image:linear-gradient(180deg,transparent,#000 12%);}
 .chapter-shell-espejo #espejo .espejo-layout .espejo-visual{max-width:490px;max-height:390px;}
 #libros .rve-library-layout{grid-template-columns:1fr;grid-template-areas:'heading' 'desk' 'detail' 'hint';}
}
