.book-page{width:min(88%,1100px);padding:44px 0 96px;color:#142b40}
.book-page h1,.book-page h2,.book-page h3{font-family:var(--title);font-weight:800;letter-spacing:-.045em}
.book-page h1{font-size:clamp(44px,5.4vw,72px);line-height:1.06;margin:16px 0 24px;max-width:680px}
.book-page h2{font-size:clamp(32px,4vw,50px);line-height:1.12;margin:12px 0 24px}
.book-page h3{font-size:22px;line-height:1.25;margin:0 0 10px}
.book-page p{font-size:17px;line-height:1.75}
.book-page .home-eyebrow{font-size:12px;letter-spacing:.15em;text-transform:uppercase;font-weight:750;color:#526a77;margin-bottom:12px}
.book-hero{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:minmax(0,1.22fr) minmax(230px,.78fr);gap:32px;align-items:center;padding:62px 60px;border:1px solid #dbe9e9;border-radius:44px;background:linear-gradient(112deg,#fff2a6 0%,#e8f4d9 48%,#b2edf3 100%);box-shadow:0 26px 65px #24425212}
.book-hero-copy{position:relative;z-index:2;max-width:700px}
.book-hero-lead{font-size:20px!important;line-height:1.65!important;max-width:650px;margin:0 0 20px}
.book-actions{display:flex;align-items:center;flex-wrap:wrap;gap:18px 24px;margin-top:30px}
.purchase-action{display:grid;justify-items:start;gap:8px;max-width:360px}
.book-buy{gap:22px;margin:0;cursor:not-allowed;opacity:.68;background:#142b40;color:#fff;border:0}
.book-buy:disabled{opacity:.72}
.purchase-state{font-size:12px!important;line-height:1.45!important;color:#536976;margin:8px 0 0!important;max-width:310px}
.book-actions>.home-text-link{font-size:14px;font-weight:700;text-decoration:none;border-bottom:1px solid currentColor;padding-bottom:3px}
.book-hero-note{font-size:13px!important;line-height:1.55!important;color:#506776;max-width:550px;margin:24px 0 0!important}
.book-hero .book-cover-frame{position:relative;z-index:1;width:min(28vw,274px);height:auto;aspect-ratio:704/1067;max-width:274px;max-height:416px;justify-self:center;perspective:1000px;margin:0}
.book-hero .book-mockup{width:100%;height:100%;margin-left:0;transform:rotateY(-3deg) rotateZ(-5deg)}
.book-hero .book-cover-image{display:block;width:100%;height:auto;max-height:430px;aspect-ratio:auto;object-fit:contain;object-position:center;border-radius:6px 14px 14px 6px;border:1px solid #fff9;box-shadow:12px 20px 36px #12324a38;transform:rotate(2deg);background:#f7f2bc}
.book-cover-frame figcaption{max-width:300px;text-align:center;font-size:12px!important;line-height:1.5!important;color:#4b6573;margin:18px auto 0}
.hero-orbit{position:absolute;z-index:-1;display:block;border-radius:50%;pointer-events:none}
.hero-orbit--one{width:300px;height:300px;right:-90px;top:-140px;background:radial-gradient(circle at 36% 62%,#39cee277,#16bcd200 68%)}
.hero-orbit--two{width:190px;height:190px;left:48%;bottom:-145px;background:radial-gradient(circle at 50% 40%,#f3d83c82,#f3d83c00 68%)}
.book-section{margin:100px auto 0}
.section-intro{max-width:830px;margin:0 auto 46px}
.section-intro p:not(.home-eyebrow){max-width:790px;color:#40565f;margin:0 0 18px}
.audience-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:48px}
.book-page .audience-label{max-width:none;margin:42px 0 0;color:#526a77;font-size:12px;line-height:1.5;font-weight:750;letter-spacing:.15em;text-transform:uppercase}
.book-page .audience-list{margin-top:14px}
.audience-item{display:grid;grid-template-columns:42px 1fr;gap:13px;padding:24px 22px;border:1px solid #dae5e2;border-radius:22px;background:#fff}
.book-page .audience-item,.book-page .journey-stop{text-align:left;hyphens:none}
.audience-number{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#e9f4f2;color:#143c4d;font-family:var(--title);font-weight:800;font-size:13px}
.audience-item h3{font-size:19px}
.audience-item p{font-size:14px!important;line-height:1.65!important;color:#5d7079;margin:0}
.journey-section{margin-top:112px}
.journey-map{position:relative;isolation:isolate;padding:20px 4% 12px}
.journey-route{position:absolute;inset:0;width:100%;height:100%;z-index:-1;overflow:visible;pointer-events:none}
.journey-route--mobile{display:none}
.route-main,.route-return{fill:none;stroke:#73c9d1;stroke-linecap:round;stroke-linejoin:round}
.route-main{stroke-width:9;opacity:.48}
.route-return{stroke:#e5c736;stroke-width:5;stroke-dasharray:8 11;opacity:.78}
.journey-stops{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:15%;row-gap:34px;margin:0;padding:0;list-style:none}
.journey-stop{position:relative;display:grid;grid-template-columns:45px 1fr;gap:14px;align-items:start;min-height:240px;padding:25px 24px;border:1px solid #dbe6e3;border-radius:24px;background:#ffffffed;box-shadow:0 12px 28px #142b400c;backdrop-filter:blur(3px)}
.journey-stop:nth-child(2n){transform:translateY(42px)}
.stop-number{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:linear-gradient(145deg,#fff0a2,#b8eff0);color:#142b40;font-family:var(--title);font-weight:800;font-size:14px}
.stop-label{display:flex;align-items:center;gap:8px;font-size:11px!important;line-height:1.4!important;letter-spacing:.1em;text-transform:uppercase;font-weight:750;color:#647780;margin:0 0 10px!important}
.stop-icon{flex:0 0 22px;width:22px;height:22px;fill:none;stroke:#087d91;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.journey-stop h3{font-size:22px}
.journey-stop div>p:not(.stop-label){font-size:14px!important;line-height:1.6!important;color:#526871;margin:0 0 12px}
.journey-stop ul{margin:0;padding-left:18px;color:#40565f}
.journey-stop li{font-size:13px;line-height:1.55;margin:5px 0}
.sample-section{margin-top:116px;scroll-margin-top:110px}
.sample-intro{margin-bottom:34px}
.sample-edition{display:inline-block;border-radius:999px;background:#f4f2db;padding:8px 13px;font-size:13px!important;font-weight:700;color:#53640e!important}
.sample-shortcuts{display:flex;flex-wrap:wrap;gap:12px;margin:0 auto 18px;max-width:900px}
.sample-shortcuts a{display:inline-flex;align-items:center;gap:12px;padding:11px 16px;border:1px solid #b9d8d7;border-radius:999px;background:#eff8f5;color:#142b40;font-size:14px;font-weight:700;text-decoration:none}
.sample-shortcuts a:hover{background:#e1f2ef}
.sample-viewer{max-width:900px;margin:0 auto;border-radius:20px;overflow:hidden;background:#122b39;color:#f7faf8;box-shadow:0 18px 46px #17364724}
.viewer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 20px;border-bottom:1px solid #ffffff1c}
.viewer-title{font-family:var(--title);font-size:14px!important;font-weight:700;line-height:1.4!important;margin:0!important}
.viewer-controls{display:flex;align-items:center;gap:8px}
.viewer-button{min-width:40px;min-height:40px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #d9e8e9;border-radius:10px;background:#ffffff0c;color:#fff;font-size:14px;font-weight:700;cursor:pointer}
.viewer-button:hover:not(:disabled){background:#ffffff20}
.viewer-button:disabled{opacity:.42;cursor:not-allowed}
.viewer-fullscreen{padding:0 13px}
.viewer-select{min-height:40px;max-width:190px;padding:0 30px 0 10px;border:1px solid #d9e8e9;border-radius:10px;background:#193b4b;color:#fff;font:600 12px var(--body);}
.viewer-select:disabled{opacity:.55}
.page-counter{min-width:100px;text-align:center;font-variant-numeric:tabular-nums;font-size:12px;color:#d5e5e6}
.viewer-stage{min-height:470px;max-height:82vh;display:grid;place-items:center;margin:0;padding:26px;background:#e7e9e5}
.viewer-placeholder{max-width:420px;padding:24px;text-align:center;color:#48616b;font-size:15px;line-height:1.6}
.viewer-page{display:block;max-width:100%;max-height:76vh;object-fit:contain;box-shadow:0 8px 25px #0c172429;background:white}
.sample-downloads{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;padding:15px 20px;border-top:1px solid #ffffff1c;font-size:13px}
.download-link{color:#d7f6f2;font-weight:700;text-underline-offset:4px}
.download-link[aria-disabled="true"]{color:#a7b8bd;text-decoration:none;cursor:not-allowed}
.download-separator{color:#8ea6ad}
.audio-sample{max-width:900px;display:grid;grid-template-columns:1fr minmax(240px,1.2fr) auto;align-items:center;gap:22px;margin:24px auto 0;padding:22px 24px;border:1px solid #dce7e3;border-radius:20px;background:#f7fbfa}
.audio-sample[hidden]{display:none}
.audio-sample h3{font-size:18px;margin:0}
.audio-sample .home-eyebrow{margin:0 0 6px}
.audio-disclosure{font-size:12px!important;line-height:1.4!important;color:#657781;margin:5px 0 0!important}
.audio-sample audio{width:100%;min-width:0}
.audio-sample .download-link{color:#142b40}
.book-final-call{display:flex;align-items:center;justify-content:space-between;gap:32px;margin:110px 0 0;padding:42px 48px;border:1px solid #dce8e4;border-radius:30px;background:linear-gradient(110deg,#f8f3d4,#e2f5f5)}
.book-final-call h2{font-size:clamp(28px,3.5vw,40px);margin:8px 0 12px}
.book-final-call p{font-size:14px!important;color:#526770;margin:0;max-width:640px}
.book-final-call .purchase-action{flex:0 0 260px}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.book-page a:focus-visible,.book-page button:focus-visible{outline:3px solid #087d91;outline-offset:4px}
.sample-viewer:fullscreen{width:100vw;height:100vh;max-width:none;border-radius:0;display:grid;grid-template-rows:auto 1fr auto;background:#122b39}
.sample-viewer:fullscreen .viewer-stage{max-height:none;min-height:0}
.sample-viewer:fullscreen .viewer-page{max-height:calc(100vh - 180px)}
@media(max-width:820px){
  .book-page{width:min(90%,680px);padding-top:28px}
  .book-hero{grid-template-columns:minmax(0,1fr) 220px;gap:15px;padding:42px 34px;border-radius:34px}
  .book-page h1{font-size:clamp(40px,7vw,62px)}
  .book-hero .book-cover-frame{width:210px}
  .audience-list{grid-template-columns:1fr;gap:12px}
  .audience-item{padding:18px 20px}
  .journey-stops{column-gap:7%;row-gap:26px}
  .journey-stop{min-height:260px;padding:22px 18px;grid-template-columns:38px 1fr;gap:10px}
  .stop-number{width:36px;height:36px}
  .journey-stop h3{font-size:19px}
  .viewer-stage{min-height:390px}
  .audio-sample{grid-template-columns:1fr 1.3fr}
  .audio-sample .download-link{grid-column:1/-1}
  .book-final-call{padding:32px}
}
@media(max-width:600px){
  .book-page{width:90%;padding:20px 0 66px}
  .book-hero{grid-template-columns:1fr;gap:32px;padding:32px 25px 34px;border-radius:28px}
  .book-page h1{font-size:43px;letter-spacing:-1.8px;margin:13px 0 18px}
  .book-hero-lead{font-size:18px!important;line-height:1.65!important}
  .book-actions{align-items:flex-start;flex-direction:column;gap:18px;margin-top:23px}
  .book-hero-note{margin-top:19px!important}
  .book-hero .book-cover-frame{width:min(68%,245px);justify-self:center}
  .book-section{margin-top:72px}
  .section-intro{margin-bottom:30px}
  .section-intro h2{font-size:34px;letter-spacing:-1.4px}
  .section-intro p:not(.home-eyebrow){font-size:16px}
  .journey-section{margin-top:82px}
  .journey-map{padding:12px 0 8px}
  .journey-route--desktop{display:none}
  .journey-route--mobile{display:block;inset:0 auto 0 0;width:70px;height:100%}
  .journey-stops{grid-template-columns:1fr;gap:14px;padding-left:42px}
  .journey-stop,.journey-stop:nth-child(2n){min-height:0;transform:none;padding:19px 17px;grid-template-columns:34px 1fr;gap:10px}
  .journey-stop h3{font-size:19px}
  .journey-stop div>p:not(.stop-label){font-size:13px!important}
  .journey-stop li{font-size:12px}
  .sample-section{margin-top:80px}
  .sample-shortcuts{gap:8px}
  .sample-shortcuts a{font-size:13px}
  .viewer-toolbar{align-items:flex-start;flex-direction:column;padding:14px}
  .viewer-controls{width:100%;justify-content:center}
  .viewer-select{max-width:150px}
  .page-counter{flex:1}
  .viewer-stage{min-height:340px;padding:14px}
  .sample-downloads{gap:8px 10px;padding:13px 14px;font-size:12px}
  .audio-sample{grid-template-columns:1fr;gap:14px;padding:19px}
  .audio-sample .download-link{grid-column:auto}
  .book-final-call{align-items:flex-start;flex-direction:column;margin-top:76px;padding:27px 24px;border-radius:24px}
  .book-final-call .purchase-action{flex-basis:auto}
}
@media(prefers-reduced-motion:reduce){.book-page{scroll-behavior:auto}.book-cover-image{transform:none}}

/* r3 · medidas de Sobre Iván y portada modelada con el envolvente aprobado */
.book-page>.book-section{width:min(100%,980px)}
.book-page .section-intro{max-width:none}
.book-page .section-intro p:not(.home-eyebrow){max-width:none}
.book-page .sample-shortcuts,.book-page .sample-viewer,.book-page .audio-sample{max-width:980px}
.book-page .book-final-call{width:100%}
.book-page .audience-item p{text-align:left!important;hyphens:none!important}
.book-cover-frame{width:min(28vw,300px);aspect-ratio:704/1067;max-width:300px;justify-self:center;perspective:1200px;margin:0}
.book-mockup{position:relative;width:calc(100% - 17px);height:100%;margin-left:2px;transform-style:preserve-3d;transform:rotateY(-3deg) rotateZ(-5deg)}
.book-mockup::before{content:"";position:absolute;inset:3px 0 0 0;z-index:0;transform:translate(5px,5px);border-radius:3px 7px 7px 3px;background:repeating-linear-gradient(to bottom,#fffef9 0 2px,#e7e5dc 2px 2.65px);box-shadow:3px 8px 14px #102c4030}
.book-front-cover,.book-back-cover,.book-spine,.book-page-block{position:absolute;display:block;box-sizing:border-box}
.book-front-cover{inset:0;z-index:2;border-radius:2px 7px 7px 2px;background-image:url("assets/muestra/cubierta-completa.png");background-repeat:no-repeat;background-size:209.38% 100%;background-position:right center;transform:translateZ(0);backface-visibility:hidden;box-shadow:0 18px 24px #102c4030,inset -5px 0 10px #153b4b18,inset 1px 0 1px #ffffff66}
.book-back-cover{inset:0;z-index:0;border-radius:7px 2px 2px 7px;background-image:url("assets/muestra/cubierta-completa.png");background-repeat:no-repeat;background-size:201.92% 100%;background-position:left center;transform:translateZ(-22px) rotateY(180deg);backface-visibility:hidden}
.book-spine{top:0;left:0;z-index:1;width:22px;height:100%;background-image:url("assets/muestra/cubierta-completa.png");background-repeat:no-repeat;background-size:3685% 100%;background-position:50.9% center;transform-origin:left center;transform:translateZ(-22px) rotateY(-90deg);backface-visibility:hidden;box-shadow:inset 0 0 5px #122b4033}
.book-page-block{top:3px;left:100%;z-index:1;width:22px;height:calc(100% - 6px);background:repeating-linear-gradient(to bottom,#fffef9 0 2px,#e7e5dc 2px 2.65px);transform-origin:left center;transform:rotateY(90deg);box-shadow:inset -2px 0 4px #736d5d32,inset 2px 0 3px #ffffffcc}
.book-page-block::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#fffef7 0%,#f1efe6 70%,#dedbd0 100%);opacity:.23}
@media(max-width:600px){.book-cover-frame{width:min(68%,245px)}}
@media(prefers-reduced-motion:reduce){.book-mockup{transform:rotateY(-3deg) rotateZ(-5deg)}}

/* r5 · lector compacto y audio en panel lateral */
.sample-viewer [hidden]{display:none!important}
.sample-layout{display:grid;grid-template-columns:minmax(0,630px) minmax(270px,300px);gap:24px;align-items:stretch;width:min(100%,980px);margin:0 auto}
.sample-layout .sample-viewer{width:100%;height:520px;max-width:630px;margin:0;border-radius:18px;display:grid;grid-template-rows:auto minmax(0,1fr) 50px;overflow:hidden}
.sample-layout .viewer-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:7px 10px;padding:10px 14px}
.sample-layout .viewer-title{width:100%;font-size:13px!important}
.sample-layout .viewer-controls{width:100%;justify-content:space-between;gap:6px}
.sample-layout .viewer-button{min-width:38px;min-height:38px}
.sample-layout .viewer-fullscreen{padding:0 10px}
.sample-layout .viewer-select{max-width:140px;min-width:90px;padding:0 24px 0 8px}
.sample-layout .page-counter{min-width:88px;font-size:11px}
.sample-layout .viewer-stage{position:relative;height:auto;min-height:0;max-height:none;overflow:hidden;padding:10px;display:grid;place-items:center}
.sample-layout .viewer-page{position:absolute;inset:10px;width:calc(100% - 20px);height:calc(100% - 20px);max-width:none;max-height:none;object-fit:contain;background:transparent;box-shadow:none}
.sample-layout .viewer-toolbar{flex-wrap:nowrap;align-items:center;gap:10px 14px}
.sample-layout .viewer-title{width:auto;flex:0 1 auto;white-space:nowrap}
.sample-layout .viewer-controls{width:auto;flex:0 0 auto;margin-left:auto;justify-content:flex-end;gap:8px}
.sample-layout .viewer-placeholder{max-width:360px;padding:16px}
.sample-layout .sample-downloads{height:50px;box-sizing:border-box;padding:0 16px;align-items:center}
.sample-side-panel{display:grid;grid-template-rows:minmax(0,1fr) auto;gap:12px;min-width:0}
.sample-layout .audio-sample,.sample-text-panel{display:grid;grid-template-columns:1fr;align-content:start;gap:8px;max-width:none;margin:0;padding:17px 18px;border:1px solid #dce7e3;border-radius:18px;background:#f7fbfa}
.sample-layout .audio-sample[hidden]{display:none}
.sample-layout .audio-sample .home-eyebrow,.sample-text-panel .home-eyebrow{margin:0;color:#526a77}
.sample-layout .audio-sample h3,.sample-text-panel h3{font-size:17px;line-height:1.3;margin:0}
.audio-status,.audio-ended{font-size:12px!important;line-height:1.4!important;color:#657781;margin:0!important}
.audio-duration{font-size:12px!important;line-height:1.4!important;color:#526770;margin:0!important}
.audio-sample audio{width:100%;min-width:0}
.side-download{display:block;color:#142b40;text-underline-offset:4px;font-size:13px}
.audio-credits{margin-top:3px;padding-top:8px;border-top:1px solid #dce7e3;font-size:12px;line-height:1.5}
.audio-credits summary{cursor:pointer;color:#40565f;font-weight:700}
.audio-credits-copy{padding-top:7px;color:#526770}
.audio-credits-copy p{font-size:12px!important;line-height:1.5!important;margin:0 0 8px!important}
.audio-credits-copy a{color:#143c4d;text-underline-offset:3px}
.sample-text-panel{background:#fff}
.viewer-end-overlay[hidden]{display:none}
.viewer-end-overlay{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;box-sizing:border-box;padding:24px;background:#122b39f2;color:#fff;text-align:center}
.viewer-end-overlay .home-eyebrow{color:#c7e1df;margin:0}
.viewer-end-overlay>p:not(.home-eyebrow){max-width:440px;font-size:18px!important;line-height:1.55!important;margin:0;color:#fff}
.viewer-buy{opacity:.7;cursor:not-allowed}
.viewer-return{border:0;background:transparent;color:#e0f5f2;font:inherit;font-size:13px;font-weight:700;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.sample-viewer:fullscreen{width:100vw;height:100vh;max-width:none;margin:0;border-radius:0;grid-template-rows:auto minmax(0,1fr) 50px}
.sample-viewer:fullscreen .viewer-toolbar{padding:12px 20px}
.sample-viewer:fullscreen .viewer-title{width:auto}
.sample-viewer:fullscreen .viewer-controls{width:auto;gap:8px}
.sample-viewer:fullscreen .viewer-stage{height:auto;min-height:0;max-height:none;padding:14px}
.sample-viewer:fullscreen .viewer-page{max-height:none}
@media(max-width:820px){
  .sample-layout{grid-template-columns:1fr;gap:14px}
  .sample-layout .sample-viewer{max-width:none}
  .sample-side-panel{grid-template-columns:1fr 1fr;grid-template-rows:auto;align-items:stretch}
}
@media(max-width:600px){
  .sample-layout{gap:12px}
  .sample-layout .sample-viewer{height:420px;grid-template-rows:90px minmax(0,1fr) 48px;border-radius:16px}
  .sample-layout .viewer-toolbar{align-content:center;gap:5px;padding:8px 10px}
  .sample-layout .viewer-title{font-size:12px!important;line-height:1.2!important}
  .sample-layout .viewer-controls{gap:4px}
  .sample-layout .viewer-button{min-width:34px;min-height:36px;font-size:12px}
  .sample-layout .viewer-select{max-width:112px;min-width:80px;min-height:36px;font-size:11px}
  .sample-layout .page-counter{min-width:72px;font-size:10px}
  .sample-layout .viewer-stage{padding:8px}
  .sample-layout .sample-downloads{height:48px;padding:0 12px}
  .sample-side-panel{grid-template-columns:1fr;gap:10px}
  .sample-layout .audio-sample,.sample-text-panel{gap:6px;padding:13px 15px;border-radius:16px}
  .sample-layout .audio-sample h3,.sample-text-panel h3{font-size:16px}
  .audio-credits{padding-top:6px;font-size:11px}
  .audio-credits-copy p{font-size:11px!important}
  .side-download{font-size:12px}
  .viewer-end-overlay{gap:10px;padding:18px}
  .viewer-end-overlay>p:not(.home-eyebrow){font-size:16px!important}
}

/* r6 · visor ancho con audio y lecturas debajo */
.sample-section{margin-top:65px}
.sample-section .sample-intro{margin-bottom:22px}
.sample-layout{display:block;width:min(100%,980px);margin:0 auto}
.sample-layout .sample-viewer{width:100%;height:780px;max-width:980px;margin:0;grid-template-rows:auto minmax(0,1fr) auto}
.sample-layout .viewer-stage{position:relative;height:auto;min-height:0;max-height:none;overflow:hidden;padding:10px;display:grid;place-items:center}
.sample-layout .viewer-page{position:absolute;inset:10px;width:calc(100% - 20px);height:calc(100% - 20px);max-width:none;max-height:none;object-fit:contain;background:transparent;box-shadow:none}
.sample-layout .sample-downloads{height:auto;min-height:58px;gap:10px 22px;padding:12px 18px;align-items:center}
.sample-layout .sample-downloads .download-link{font-size:13px}
.sample-layout .sample-viewer:fullscreen{height:100vh;grid-template-rows:auto minmax(0,1fr) auto}
.sample-layout .sample-viewer:fullscreen .viewer-stage{height:auto;min-height:0;max-height:none;padding:14px}
.sample-layout .sample-viewer:fullscreen .viewer-page{inset:14px;width:calc(100% - 28px);height:calc(100% - 28px);max-height:none}
.audio-sample-horizontal{display:block;width:min(100%,980px);max-width:980px;margin:16px auto 0;padding:16px 20px;border:1px solid #dce7e3;border-radius:18px;background:#f7fbfa}
.audio-main-row{display:grid;grid-template-columns:minmax(210px,260px) minmax(280px,1fr) minmax(145px,175px);gap:20px;align-items:center}
.audio-heading .home-eyebrow{margin:0 0 5px;color:#526a77}
.audio-heading h3{font-size:18px;line-height:1.3;margin:0 0 5px}
.audio-duration,.audio-status,.audio-ended{font-size:12px!important;line-height:1.4!important;color:#526770;margin:0!important}
.audio-controls audio{display:block;width:100%;min-width:0}
.audio-actions{display:grid;gap:8px;justify-items:start}
.audio-credits{margin-top:13px;padding-top:10px;border-top:1px solid #dce7e3;font-size:12px;line-height:1.5}
.audio-credits-copy{padding-top:7px;color:#526770}
.audio-credits-copy p{font-size:12px!important;line-height:1.5!important;margin:0 0 8px!important}
.audio-credits-copy a{color:#143c4d;text-underline-offset:3px}
@media(max-width:820px){
  .sample-layout .sample-viewer{height:740px}
  .audio-main-row{grid-template-columns:minmax(170px,1fr) minmax(220px,1.5fr) minmax(135px,.8fr);gap:14px}
}
@media(max-width:720px) and (min-width:601px){
  .sample-layout .viewer-toolbar{flex-wrap:wrap;align-items:flex-start}
  .sample-layout .viewer-title{width:100%;white-space:normal}
  .sample-layout .viewer-controls{width:100%;margin-left:0;justify-content:space-between}
}
@media(max-width:600px){
  .sample-section{margin-top:65px}
  .sample-layout .sample-viewer{height:640px;grid-template-rows:90px minmax(0,1fr) auto}
  .sample-layout .viewer-stage{padding:8px}
  .sample-layout .sample-viewer .viewer-toolbar{flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:5px;padding:8px 10px}
  .sample-layout .sample-viewer .viewer-title{width:100%;flex:0 0 auto;white-space:normal;font-size:12px!important;line-height:1.2!important}
  .sample-layout .sample-viewer .viewer-controls{width:100%;min-width:0;flex:0 0 auto;margin:0;justify-content:space-between;gap:3px}
  .sample-layout .viewer-button{min-width:30px;min-height:34px;font-size:10px}
  .sample-layout .viewer-fullscreen{padding:0 5px}
  .sample-layout .viewer-select{max-width:78px;min-width:64px;min-height:34px;padding:0 20px 0 6px;font-size:10px}
  .sample-layout .page-counter{min-width:50px;font-size:9px}
  .sample-layout .sample-downloads{min-height:48px;padding:10px 12px;gap:8px 14px}
  .sample-layout .sample-downloads .download-link{font-size:12px}
  .audio-sample-horizontal{margin-top:12px;padding:14px 15px}
  .audio-main-row{grid-template-columns:1fr;gap:12px}
  .audio-heading h3{font-size:16px}
  .audio-actions{gap:5px}
  .audio-credits-copy p{font-size:11px!important}
}

/* Tres tarjetas en fila con personajes integrados en sus bordes. */
.book-page .audience-list{display:grid;width:100%;max-width:1100px;margin:24px auto 0;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:stretch}
.book-page .audience-item{position:relative;isolation:isolate;display:block;min-width:0;min-height:330px;padding:0;overflow:visible;border:0;border-radius:0;background:transparent;box-shadow:none}
.audience-copy{position:absolute;inset:0;z-index:2;padding:24px 20px;border:1px solid #d8e5e2;border-radius:22px;background:#fff;box-shadow:0 12px 28px #142b400d}
.book-page .audience-number{display:grid;place-items:center;width:32px;height:32px;margin:0 0 12px;border-radius:50%;background:#e9f4f2;color:#143c4d;font-family:var(--title);font-weight:800;font-size:13px}
.audience-illustration{position:absolute;z-index:3;display:flex;align-items:flex-end;justify-content:center;overflow:visible;pointer-events:none}
.audience-character{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 3px 4px #142b4020)}
.book-page .audience-item h3{font-size:19px;line-height:1.28;letter-spacing:-.25px;margin:0 0 10px}
.book-page .audience-item p{font-size:14px!important;line-height:1.6!important;color:#536a74;margin:0}
.audience-item--student .audience-copy{padding-left:90px}
.audience-item--student .audience-illustration{left:-28px;bottom:-22px;width:135px;height:205px}
.audience-item--leinn .audience-copy{padding:22px 20px 180px}
.audience-item--leinn .audience-illustration{right:-10px;bottom:-30px;width:200px;height:170px}
.audience-item--professional .audience-copy{padding:24px 115px 24px 20px}
.audience-item--professional .audience-illustration{right:-35px;bottom:-25px;width:165px;height:250px}
@media(max-width:1000px){
 .book-page .audience-list{grid-template-columns:minmax(0,600px);justify-content:center;gap:24px;margin-top:24px}
 .book-page .audience-item{min-height:300px}
 .audience-item--student .audience-copy{padding-left:150px}
 .audience-item--student .audience-illustration{left:0;width:145px;height:225px}
 .audience-item--leinn .audience-copy{padding-bottom:155px}
 .audience-item--leinn .audience-illustration{right:12px;bottom:-18px;width:230px;height:180px}
 .audience-item--professional .audience-copy{padding-right:180px}
 .audience-item--professional .audience-illustration{right:4px;bottom:-18px;width:165px;height:250px}
}
@media(max-width:600px){
 .book-page .audience-list{width:100%;gap:22px}
 .book-page .audience-item{min-height:0}
 .audience-copy{position:relative;inset:auto;padding:20px 18px 175px!important}
 .audience-item--student .audience-copy{padding-left:18px!important;padding-bottom:190px!important}
 .audience-item--student .audience-illustration{left:auto;right:8px;bottom:-4px;width:140px;height:180px}
 .audience-item--leinn .audience-copy{padding-bottom:150px!important}
 .audience-item--leinn .audience-illustration{right:8px;bottom:-8px;width:210px;height:150px}
 .audience-item--professional .audience-copy{padding-right:18px!important;padding-bottom:190px!important}
 .audience-item--professional .audience-illustration{right:10px;bottom:-5px;width:135px;height:180px}
}
@media(max-width:380px){
 .audience-copy{padding-right:16px!important;padding-left:16px!important}
 .audience-item--student .audience-copy{padding-bottom:185px!important}
 .audience-item--student .audience-illustration{right:0;width:132px;height:170px}
 .audience-item--leinn .audience-illustration{right:0;width:190px;height:140px}
 .audience-item--professional .audience-copy{padding-bottom:185px!important}
 .audience-item--professional .audience-illustration{right:0;width:128px;height:170px}
}

/* r12 · pequeñas viñetas constructivas apoyadas en el borde inferior */
.book-page .journey-stop{min-height:240px;padding-bottom:80px;overflow:hidden}
.journey-mini-construction{position:absolute;z-index:1;right:16px;bottom:0;width:min(168px,48%);height:78px;object-fit:contain;object-position:right bottom;pointer-events:none}
@media(max-width:820px){
  .book-page .journey-stop{min-height:240px;padding-bottom:78px}
  .journey-mini-construction{right:13px;width:min(156px,48%);height:74px}
}
@media(max-width:600px){
  .book-page .journey-stop,.book-page .journey-stop:nth-child(2n){min-height:0;padding:19px 17px 73px}
  .journey-mini-construction{right:12px;width:min(145px,50%);height:68px}
}
.journey-stop:nth-child(1) .journey-mini-construction{bottom:-17px}
.journey-stop:nth-child(2) .journey-mini-construction{bottom:-14px}
.journey-stop:nth-child(3) .journey-mini-construction{bottom:-13px}
@media(max-width:820px){
  .journey-stop:nth-child(1) .journey-mini-construction{bottom:-16px}
  .journey-stop:nth-child(2) .journey-mini-construction{bottom:-13px}
  .journey-stop:nth-child(3) .journey-mini-construction{bottom:-13px}
}
@media(max-width:600px){
  .journey-stop:nth-child(1) .journey-mini-construction{bottom:-15px}
  .journey-stop:nth-child(2) .journey-mini-construction{bottom:-12px}
  .journey-stop:nth-child(3) .journey-mini-construction{bottom:-12px}
}
.journey-stop:nth-child(4) .journey-mini-construction{bottom:-8px}
@media(max-width:820px){.journey-stop:nth-child(4) .journey-mini-construction{bottom:-7px}}
@media(max-width:600px){.journey-stop:nth-child(4) .journey-mini-construction{bottom:-6px}}
.journey-stop:nth-child(5) .journey-mini-construction{bottom:-11px}
@media(max-width:820px){.journey-stop:nth-child(5) .journey-mini-construction{bottom:-17px}}
@media(max-width:600px){.journey-stop:nth-child(5) .journey-mini-construction{bottom:-15px}}
/* Ajuste de contacto para escenas panorámicas 5–6: object-position ancla abajo. */
.journey-stop:nth-child(5) .journey-mini-construction{bottom:-6px}
.journey-stop:nth-child(6) .journey-mini-construction{bottom:-6px}
@media(max-width:820px){
  .journey-stop:nth-child(5) .journey-mini-construction,.journey-stop:nth-child(6) .journey-mini-construction{bottom:-5px}
}
@media(max-width:600px){
  .journey-stop:nth-child(5) .journey-mini-construction,.journey-stop:nth-child(6) .journey-mini-construction{bottom:-5px}
}

/* r13 · puente panorámico integrado en el borde inferior de cada tarjeta */
.book-page .journey-stop{padding-bottom:112px}
.journey-mini-construction{left:-4px;right:auto;bottom:0;width:calc(100% + 8px);height:124px;object-fit:contain;object-position:center bottom}
.journey-stop:nth-child(1) .journey-mini-construction{bottom:-17px}
.journey-stop:nth-child(2) .journey-mini-construction{bottom:-20px}
.journey-stop:nth-child(3) .journey-mini-construction{bottom:-19px}
.journey-stop:nth-child(4) .journey-mini-construction{bottom:-12px}
.journey-stop:nth-child(5) .journey-mini-construction{bottom:-12px}
.journey-stop:nth-child(6) .journey-mini-construction{bottom:-18px}
@media(max-width:820px){
  .book-page .journey-stop{padding-bottom:108px}
  .journey-mini-construction{left:-4px;width:calc(100% + 8px);height:112px}
  .journey-stop:nth-child(1) .journey-mini-construction{bottom:-16px}
  .journey-stop:nth-child(2) .journey-mini-construction{bottom:-18px}
  .journey-stop:nth-child(3) .journey-mini-construction{bottom:-17px}
  .journey-stop:nth-child(4) .journey-mini-construction{bottom:-11px}
  .journey-stop:nth-child(5) .journey-mini-construction{bottom:-11px}
  .journey-stop:nth-child(6) .journey-mini-construction{bottom:-16px}
}
@media(max-width:600px){
  .book-page .journey-stop,.book-page .journey-stop:nth-child(2n){padding:19px 17px 100px}
  .journey-mini-construction{left:-5px;width:calc(100% + 10px);height:100px}
  .journey-stop:nth-child(1) .journey-mini-construction{bottom:-14px}
  .journey-stop:nth-child(2) .journey-mini-construction{bottom:-16px}
  .journey-stop:nth-child(3) .journey-mini-construction{bottom:-15px}
  .journey-stop:nth-child(4) .journey-mini-construction{bottom:-10px}
  .journey-stop:nth-child(5) .journey-mini-construction{bottom:-10px}
  .journey-stop:nth-child(6) .journey-mini-construction{bottom:-15px}
}

/* r14 · franja panorámica más densa, con cuadrillas pequeñas y mayor detalle */
.book-page .journey-stop{padding-bottom:130px}
.journey-mini-construction{height:140px}
.journey-stop:nth-child(1) .journey-mini-construction{bottom:-22px}
.journey-stop:nth-child(2) .journey-mini-construction{bottom:-18px}
.journey-stop:nth-child(3) .journey-mini-construction{bottom:-12px}
.journey-stop:nth-child(4) .journey-mini-construction{bottom:-14px}
.journey-stop:nth-child(5) .journey-mini-construction{bottom:-7px}
.journey-stop:nth-child(6) .journey-mini-construction{bottom:-15px}
@media(max-width:820px){
  .book-page .journey-stop{padding-bottom:120px}
  .journey-mini-construction{height:130px}
  .journey-stop:nth-child(1) .journey-mini-construction{bottom:-20px}
  .journey-stop:nth-child(2) .journey-mini-construction{bottom:-17px}
  .journey-stop:nth-child(3) .journey-mini-construction{bottom:-11px}
  .journey-stop:nth-child(4) .journey-mini-construction{bottom:-13px}
  .journey-stop:nth-child(5) .journey-mini-construction{bottom:-6px}
  .journey-stop:nth-child(6) .journey-mini-construction{bottom:-13px}
}
@media(max-width:600px){
  .book-page .journey-stop,.book-page .journey-stop:nth-child(2n){padding:19px 17px 110px}
  .journey-mini-construction{height:120px}
  .journey-stop:nth-child(1) .journey-mini-construction{bottom:-18px}
  .journey-stop:nth-child(2) .journey-mini-construction{bottom:-15px}
  .journey-stop:nth-child(3) .journey-mini-construction{bottom:-9px}
  .journey-stop:nth-child(4) .journey-mini-construction{bottom:-12px}
  .journey-stop:nth-child(5) .journey-mini-construction{bottom:-6px}
  .journey-stop:nth-child(6) .journey-mini-construction{bottom:-12px}
}

/* r15 · escenas secuenciales: replanteo vacío, movilización, tramos y finalización */
.book-page .journey-stop{padding-bottom:130px}
.journey-mini-construction{height:140px}
.journey-stop:nth-child(1) .journey-mini-construction{bottom:-4px}
.journey-stop:nth-child(2) .journey-mini-construction{bottom:-4px}
.journey-stop:nth-child(3) .journey-mini-construction{bottom:-6px}
.journey-stop:nth-child(4) .journey-mini-construction{bottom:-7px}
.journey-stop:nth-child(5) .journey-mini-construction{bottom:-14px}
.journey-stop:nth-child(6) .journey-mini-construction{bottom:-13px}
@media(max-width:820px){
  .book-page .journey-stop{padding-bottom:120px}
  .journey-mini-construction{height:130px}
  .journey-stop:nth-child(1) .journey-mini-construction{bottom:-3px}
  .journey-stop:nth-child(2) .journey-mini-construction{bottom:-4px}
  .journey-stop:nth-child(3) .journey-mini-construction{bottom:-5px}
  .journey-stop:nth-child(4) .journey-mini-construction{bottom:-6px}
  .journey-stop:nth-child(5) .journey-mini-construction{bottom:-11px}
  .journey-stop:nth-child(6) .journey-mini-construction{bottom:-11px}
}
@media(max-width:600px){
  .book-page .journey-stop,.book-page .journey-stop:nth-child(2n){padding:19px 17px 110px}
  .journey-mini-construction{height:120px}
  .journey-stop:nth-child(1) .journey-mini-construction{bottom:-3px}
  .journey-stop:nth-child(2) .journey-mini-construction{bottom:-3px}
  .journey-stop:nth-child(3) .journey-mini-construction{bottom:-5px}
  .journey-stop:nth-child(4) .journey-mini-construction{bottom:-5px}
  .journey-stop:nth-child(5) .journey-mini-construction{bottom:-11px}
  .journey-stop:nth-child(6) .journey-mini-construction{bottom:-11px}
}
@media(max-width:600px){.book-page .journey-stop:nth-child(4){padding-bottom:116px}}
/* r17 · apoyo de cada escena al borde según su alpha inferior */
.journey-stop:nth-child(1) .journey-mini-construction{bottom:-4px}
.journey-stop:nth-child(2) .journey-mini-construction{bottom:-14px}
.journey-stop:nth-child(3) .journey-mini-construction{bottom:-19px}
.journey-stop:nth-child(4) .journey-mini-construction{bottom:-12px}
.journey-stop:nth-child(5) .journey-mini-construction{bottom:-14px}
.journey-stop:nth-child(6) .journey-mini-construction{bottom:-16px}
@media(max-width:820px){
  .journey-stop:nth-child(1) .journey-mini-construction{bottom:-3px}
  .journey-stop:nth-child(2) .journey-mini-construction{bottom:-12px}
  .journey-stop:nth-child(3) .journey-mini-construction{bottom:-16px}
  .journey-stop:nth-child(4) .journey-mini-construction{bottom:-10px}
  .journey-stop:nth-child(5) .journey-mini-construction{bottom:-12px}
  .journey-stop:nth-child(6) .journey-mini-construction{bottom:-13px}
}
@media(max-width:600px){
  .journey-stop:nth-child(1) .journey-mini-construction{bottom:-3px}
  .journey-stop:nth-child(2) .journey-mini-construction{bottom:-12px}
  .journey-stop:nth-child(3) .journey-mini-construction{bottom:-16px}
  .journey-stop:nth-child(4) .journey-mini-construction{bottom:-10px}
  .journey-stop:nth-child(5) .journey-mini-construction{bottom:-12px}
  .journey-stop:nth-child(6) .journey-mini-construction{bottom:-13px}
}

/* Cubierta aportada y fondo limpio como el bloque de la home. */
.book-hero{background:linear-gradient(115deg,#fbf5d5 0%,#f4f7e8 44%,#e2f3f8 100%)}
.book-hero .hero-orbit,.book-hero::before,.book-hero::after{display:none!important}
.book-front-cover,.book-back-cover,.book-spine{background-image:url("assets/cubierta-nueva-20261020.png")}
.book-front-cover{background-size:209.38% 100%;background-position:right center}

.book-buy{cursor:pointer;opacity:1}.book-buy:hover{background:#28516a}.viewer-buy{opacity:1;cursor:pointer}.purchase-state{color:#536976!important}

/* CTA de compra del hero del libro. */
.book-hero .book-actions{gap:14px 16px}
.book-hero .book-actions>.book-buy{gap:10px;padding:14px 18px;font-size:14px;white-space:nowrap}
.book-hero .book-actions>button.book-buy:disabled{cursor:not-allowed;opacity:1}
.brand-mark{display:inline-block;flex:0 0 19px;width:19px;height:19px;background-color:currentColor;mask-position:center;mask-repeat:no-repeat;mask-size:contain;-webkit-mask-position:center;-webkit-mask-repeat:no-repeat;-webkit-mask-size:contain}
.brand-mark--amazon{mask-image:url("assets/brands/amazon.svg");-webkit-mask-image:url("assets/brands/amazon.svg")}
.brand-mark--leanpub{mask-image:url("assets/brands/leanpub.svg");-webkit-mask-image:url("assets/brands/leanpub.svg")}
@media(max-width:820px){.book-hero .book-actions{gap:12px}.book-hero .book-actions>.book-buy{padding:13px 15px;font-size:13px}}
@media(max-width:600px){.book-hero .book-actions{gap:14px;align-items:stretch}.book-hero .book-actions>.book-buy{justify-content:center;width:100%;padding:14px 18px;font-size:14px}}

/* CTA secundario subrayado con la línea ajustada al texto. */
.book-hero .book-actions>.book-buy{box-sizing:border-box;min-width:0}
.book-hero .book-actions>.home-text-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:fit-content;max-width:100%;min-width:0;min-height:0;padding:0 0 3px;border:0;border-bottom:1px solid currentColor;border-radius:0;background:transparent;text-align:center;text-decoration:none;font-size:14px;line-height:1.4;white-space:normal}
.book-hero .book-actions>.home-text-link:hover{background:transparent;text-decoration:underline}
@media(max-width:600px){.book-hero .book-actions>.book-buy{width:100%;min-width:0;min-height:48px;box-sizing:border-box}.book-hero .book-actions>.home-text-link{width:fit-content;align-self:flex-start}}

/* r10 · evita desbordamientos del visor al reducir la columna de lectura. */
@media(min-width:601px) and (max-width:820px){
  .sample-layout,.sample-layout .sample-viewer{width:100%;min-width:0;max-width:100%}
  .sample-layout .sample-viewer{grid-template-rows:auto minmax(0,1fr) auto}
  .sample-layout .viewer-toolbar{width:100%;min-width:0;box-sizing:border-box;flex-wrap:wrap;align-items:flex-start}
  .sample-layout .viewer-title{width:100%;min-width:0;flex:1 1 100%;white-space:normal;overflow-wrap:anywhere}
  .sample-layout .viewer-controls{width:100%;min-width:0;flex:1 1 100%;margin-left:0;justify-content:space-between;gap:6px}
  .sample-layout .viewer-stage,.sample-layout .sample-downloads{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
}

/* Nota editorial bajo las descargas de la muestra. */
.sample-layout .sample-downloads{height:auto;min-height:0;align-items:center}
.sample-downloads .sample-download-note{flex:0 0 100%;width:100%;margin:0;color:#d6e3e8;font-size:11px;line-height:1.5}


/* Burbuja de venta final compacta. */
.book-page .book-final-call{display:grid;grid-template-columns:minmax(120px,.65fr) minmax(0,2fr) minmax(180px,1fr);align-items:center;justify-items:center;gap:24px;min-height:213px;margin:78px 0 0;padding:24px;box-sizing:border-box}
.book-final-cover{justify-self:center;width:110px;height:auto;margin:0}
.book-final-cover img{display:block;width:100%;height:auto;object-fit:contain;object-position:center;border-radius:5px 9px 9px 5px;box-shadow:0 8px 18px rgba(20,43,64,.22);transform:rotate(-5deg);transform-origin:center}
.book-final-copy{width:100%;min-width:0;text-align:center}
.book-final-copy h2{margin:0 0 8px;font-size:clamp(27px,3vw,36px);line-height:1.12;letter-spacing:-.9px}
.book-final-copy p{margin:0 auto;max-width:440px;text-align:center!important;font-size:15px!important;line-height:1.55!important;color:#405963}
.book-final-actions{display:flex;flex-direction:column;gap:10px;width:100%;max-width:200px;min-width:0;justify-self:center}
.book-final-actions .book-buy{box-sizing:border-box;width:100%;min-width:0;min-height:46px;justify-content:center;gap:10px;padding:12px 15px;font-size:14px;white-space:nowrap}
.book-final-actions .book-buy:disabled{cursor:not-allowed}
@media(max-width:720px){
 .book-page .book-final-call{grid-template-columns:100px minmax(0,1fr);gap:16px;margin-top:58px;padding:20px;min-height:0;justify-items:center}
 .book-final-cover{justify-self:center;width:95px;height:auto}
 .book-final-actions{grid-column:1/-1;flex-direction:row;gap:12px;max-width:440px}
 .book-final-actions .book-buy{flex:1 1 0;min-width:0;white-space:normal}
}
@media(max-width:420px){
 .book-page .book-final-call{grid-template-columns:minmax(0,1fr);gap:16px;padding:20px;border-radius:24px;justify-items:center}
 .book-final-cover{justify-self:center;width:90px;height:auto}
 .book-final-copy{grid-column:1;text-align:center}
 .book-final-actions{grid-column:1;flex-direction:column;gap:10px;width:100%}
 .book-final-actions .book-buy{width:100%;min-height:48px}
}
