.pr-shell{--paper:#f7f3e9;--ink:#251e1a;--muted:#726558;--red:#943c34;--border:#ddd1c0;--gold:#aa7b3b;--white:#fffdf8}
.pr-shell *{box-sizing:border-box}
.pr-shell {scroll-behavior:smooth}
.pr-shell{margin:0;background:var(--paper);color:var(--ink);font-family:Georgia,"Times New Roman",serif;line-height:1.65}
.pr-shell a{color:inherit}
.pr-shell .progress{height:4px;position:fixed;top:0;left:0;width:0;background:var(--red);z-index:15}
.pr-shell .topbar{position:sticky;top:0;z-index:10;background:rgba(247,243,233,.96);backdrop-filter:blur(12px);border-bottom:1px solid var(--border)}
.pr-shell .topbar-inner{max-width:1120px;margin:auto;padding:10px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.pr-shell .brand{font:700 12px system-ui,sans-serif;letter-spacing:.18em}
.pr-shell .top-actions{display:flex;gap:8px;align-items:center}
.pr-shell button{font:600 12px system-ui,sans-serif;cursor:pointer;color:var(--ink);background:none;border:1px solid var(--border);border-radius:99px;padding:9px 13px}
.pr-shell .btn-red{background:var(--red);color:white;border-color:var(--red)}
.pr-shell .layout{max-width:1120px;margin:auto;display:grid;grid-template-columns:220px minmax(0,1fr);gap:54px;padding:0 28px}
.pr-shell .sidebar{position:sticky;top:80px;max-height:calc(100vh - 95px);overflow:auto;padding-top:40px;align-self:start}
.pr-shell .sidebar-title{font:700 10px system-ui,sans-serif;color:var(--muted);letter-spacing:.17em;margin:0 0 12px}
.pr-shell .sidebar a{display:flex;align-items:center;gap:14px;text-decoration:none;padding:8px;border-left:2px solid transparent;font:12px system-ui,sans-serif;color:var(--muted)}
.pr-shell .sidebar a span{font:700 17px Georgia,serif;color:var(--ink);width:40px}
.pr-shell .sidebar a.active,.pr-shell .sidebar a:hover{border-left-color:var(--red);color:var(--ink);background:#efe7db}
.pr-shell .sidebar small{font-size:12px}
.pr-shell .main{min-width:0}
.pr-shell .hero{padding:78px 0 48px;min-height:510px;display:flex;flex-direction:column;justify-content:center;border-bottom:1px solid var(--border);position:relative}
.pr-shell .hero:before{content:"✦";position:absolute;right:0;top:30px;font-size:85px;color:#e4d6be;opacity:.8}
.pr-shell .eyebrow{font:700 11px system-ui,sans-serif;letter-spacing:.22em;color:var(--red);text-transform:uppercase}
.pr-shell .hero h1{font-size:clamp(58px,9vw,112px);line-height:.92;letter-spacing:-.055em;margin:22px 0 20px;font-weight:normal}
.pr-shell .hero h1 span{color:var(--red)}
.pr-shell .subtitle{font-size:clamp(21px,3vw,29px);font-style:italic;max-width:480px;line-height:1.22;margin:0 0 35px}
.pr-shell .hero-text{max-width:480px;font:15px/1.7 system-ui,sans-serif;color:var(--muted)}
.pr-shell .facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:var(--border);border:1px solid var(--border);margin:30px 0 0}
.pr-shell .fact{background:var(--white);padding:17px 13px}
.pr-shell .fact strong{display:block;font:700 28px Georgia,serif}
.pr-shell .fact span{font:600 10px system-ui,sans-serif;text-transform:uppercase;letter-spacing:.07em;color:var(--muted)}
.pr-shell .chapter{scroll-margin-top:75px;padding:72px 0 82px;border-bottom:1px solid var(--border)}
.pr-shell .chapter-kicker{display:flex;align-items:center;gap:18px;color:var(--muted);font:700 10px system-ui,sans-serif;letter-spacing:.18em}
.pr-shell .roman{font:normal 36px Georgia,serif;letter-spacing:-.055em;color:var(--red);min-width:95px}
.pr-shell .chapter h2{font-weight:normal;font-size:clamp(35px,5vw,58px);line-height:1.05;letter-spacing:-.035em;margin:14px 0 32px}
.pr-shell .prose{max-width:710px;font-size:18px}
.pr-shell .prose p{margin:0 0 19px}
.pr-shell .prose h3{font:700 15px system-ui,sans-serif;text-transform:uppercase;letter-spacing:.055em;margin:36px 0 13px}
.pr-shell .prose strong{color:#302118}
.pr-shell .prose ol,.pr-shell .prose ul{padding-left:24px}
.pr-shell .prose li{padding-left:4px;margin-bottom:12px}
.pr-shell .prose blockquote{margin:32px 0;padding:24px 24px 24px 27px;border-left:4px solid var(--red);background:#f0e7db;font-size:clamp(20px,3vw,27px);line-height:1.3;font-style:italic}
.pr-shell .prose blockquote p{margin:0}
.pr-shell .edition{display:grid;grid-template-columns:90px 1fr;gap:20px;padding:20px 0;border-top:1px solid var(--border)}
.pr-shell .edition:last-child{border-bottom:1px solid var(--border)}
.pr-shell .edition-num{font-size:48px;line-height:1;font-weight:normal;color:var(--red)}
.pr-shell .edition-num small{font:700 9px system-ui,sans-serif;color:var(--muted);display:block;letter-spacing:.13em;margin-top:9px}
.pr-shell .edition-eyebrow{font:700 9px system-ui,sans-serif;letter-spacing:.16em;color:var(--gold)}
.pr-shell .edition h3{font:normal 28px Georgia,serif;text-transform:none;letter-spacing:-.01em;margin:4px 0 7px}
.pr-shell .edition p{font-size:15px;line-height:1.6;margin:0;color:#55483e}
.pr-shell .reward-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--border);border:1px solid var(--border);margin:25px 0}
.pr-shell .reward-grid>div{background:var(--white);padding:14px 8px;text-align:center}
.pr-shell .reward-grid strong,.pr-shell .reward-grid b{display:block;font:normal 26px Georgia,serif}
.pr-shell .reward-grid b{color:var(--red);margin-top:10px}
.pr-shell .reward-grid span{display:block;font:10px system-ui,sans-serif;color:var(--muted);text-transform:uppercase}
.pr-shell .footer{padding:45px 0 70px;color:var(--muted);font:12px/1.7 system-ui,sans-serif}
.pr-shell .mobile-nav{display:none}
.pr-shell.menu-open{overflow:hidden}
.pr-shell .reward-inline{display: flex;align-items: baseline;justify-content: center;gap: 6px;white-space: nowrap;}
.pr-shell .reward-inline span{font: 12px system-ui, sans-serif;}
.pr-shell .reward-inline strong{display: inline;font: normal 26px Georgia, serif;}
.pr-shell .formula{text-align: center;background: #f0e7db;border: 1px solid var(--border);border-radius: 8px;padding: 18px 12px;margin: 24px 0;font-size: clamp(18px, 4vw, 26px);}
@media (max-width:760px){.pr-shell .layout{display:block;padding:0 20px}
.pr-shell .sidebar{display:none;position:fixed;z-index:11;top:55px;left:0;right:0;bottom:0;max-height:none;background:var(--paper);padding:25px 20px;overflow:auto}
.pr-shell .menu-open .sidebar{display:block}
.pr-shell .mobile-nav{display:block}
.pr-shell .hero{min-height:470px;padding:56px 0 40px}
.pr-shell .hero:before{font-size:55px;top:18px}
.pr-shell .hero h1{font-size:clamp(56px,13vw,88px)}
.pr-shell .subtitle{font-size:23px}
.pr-shell .chapter{padding:54px 0 64px}
.pr-shell .roman{font-size:34px;min-width:75px}
.pr-shell .prose{font-size:17px}
.pr-shell .edition{grid-template-columns:65px 1fr;gap:13px}
.pr-shell .edition-num{font-size:39px}
.pr-shell .edition h3{font-size:24px}
.pr-shell .reward-grid{grid-template-columns:repeat(2,1fr)}
.pr-shell .topbar-inner{padding:8px 15px}
.pr-shell .fact strong{font-size:23px}
.pr-shell .fact span{font-size:9px}}
@media print{.pr-shell .topbar,.pr-shell .sidebar,.pr-shell .progress{display:none}
.pr-shell .layout{display:block}
.pr-shell .hero{min-height:0}
.pr-shell .chapter{break-inside:avoid}
.pr-shell{background:white}
.pr-shell .main{max-width:100%}}
@media (prefers-reduced-motion:reduce){.pr-shell {scroll-behavior:auto}}
.pr-shell{font-family:Georgia,'Times New Roman',serif;background:var(--paper);color:var(--ink);line-height:1.65;position:relative;isolation:isolate;min-height:100vh}
.pr-shell .chapter .prose{max-width:710px}
.pr-shell .chapter .pr-content{max-width:710px;font-size:18px}
.pr-shell .chapter .pr-content p{margin:0 0 19px}
.pr-shell .chapter .pr-content h3{font:700 15px system-ui,sans-serif;text-transform:uppercase;letter-spacing:.055em;margin:36px 0 13px}
.pr-shell .chapter .pr-content li{margin-bottom:12px}
.pr-shell .chapter .pr-content blockquote{margin:32px 0;padding:24px;border-left:4px solid var(--red);background:#f0e7db;font-size:24px;font-style:italic}
.pr-shell .pr-piece{display:flex;align-items:center;gap:18px;margin:30px 0;padding:14px 0;border-bottom:1px solid var(--border)}
.pr-shell .pr-piece img{width:110px;height:110px;object-fit:contain;flex-shrink:0}
.pr-shell .pr-piece strong{display:block;font:700 15px system-ui,sans-serif;letter-spacing:.04em;text-transform:uppercase}
.pr-shell .pr-marginal{margin:24px 0;padding:14px 0;text-align:center;font:italic 14px Georgia,serif;color:var(--muted)}
.pr-shell .pr-marginal img{max-width:160px;max-height:165px;object-fit:contain;display:block;margin:auto auto 8px}
.pr-shell .pr-side-marginal{margin-top:35px;border-top:1px solid var(--border);padding-top:18px}
.pr-shell .pr-inline-marginal{display:none}
.pr-shell .pr-legal-link{display:inline-flex;align-items:center;border:1px solid var(--border);padding:9px 15px;border-radius:30px;font:600 12px system-ui,sans-serif;text-decoration:none}
.pr-shell .pr-legal-link:hover{border-color:var(--red)}
@media(max-width:760px){.pr-shell .pr-inline-marginal{display:block}.pr-shell .pr-side-marginal{display:none}.pr-shell .chapter .pr-content{font-size:17px}.pr-shell .pr-piece img{width:85px;height:85px}}
@media print{.pr-shell .pr-inline-marginal,.pr-shell .pr-side-marginal{display:none}}

/* V2 — Piezas tridimensionales, marginalia y componentes del manual */
.pr-shell .pr-piece{display:grid;grid-template-columns:145px minmax(0,1fr);align-items:center;gap:18px;min-height:175px;margin:18px 0 28px;padding:15px 18px;background:linear-gradient(135deg,#fffdf7,#f0e8da);border:1px solid var(--border);border-radius:8px}
.pr-shell .pr-piece img{width:145px;height:160px;object-fit:contain;filter:drop-shadow(0 6px 7px #55413233)}
.pr-shell .pr-piece p{margin:4px 0 0;font:14px/1.5 system-ui,sans-serif;color:var(--muted)}
.pr-shell .pr-marginal img{width:100%;max-width:205px;max-height:none;border:1px solid var(--border);border-radius:6px;background:#fff9ef}
.pr-shell .pr-side-marginal{min-height:165px}
.pr-shell .pr-side-marginal [hidden]{display:none!important}
.pr-shell .pr-marginal p{max-width:220px;margin:9px auto 0;font:italic 13px/1.45 Georgia,serif}
.pr-shell .pr-section-decoration{display:block;width:146px;height:auto;margin:12px 0 15px;opacity:.75}
.pr-shell .chapter-kicker:after{content:'';height:18px;width:18px;margin-left:auto;background:url('visuales/06_Interfaz/elemento-estrella.webp') center/contain no-repeat;opacity:.72}
.pr-shell .pr-content blockquote{border:1px solid #caad8a!important;border-left:5px solid var(--red)!important;box-shadow:inset 0 0 0 4px #f6eee3;border-radius:4px}
.pr-shell .pr-content .formula{max-width:520px;margin:22px auto;padding:20px;border:2px double #ae7d55;background:#f7eddb;text-align:center;border-radius:6px}
.pr-shell .pr-content .reward-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:var(--border);border:1px solid var(--border);margin:25px 0}
.pr-shell .pr-content .reward-grid>div{background:var(--white);padding:13px 8px;text-align:center}
.pr-shell .pr-content .reward-grid strong,.pr-shell .pr-content .reward-grid b{display:block;font:normal 26px Georgia,serif}
.pr-shell .pr-content .reward-grid b{color:var(--red);margin-top:9px}
.pr-shell .pr-content .reward-grid span{display:block;font:10px/1.4 system-ui,sans-serif;text-transform:uppercase;color:var(--muted)}
.pr-shell .pr-content .reward-inline{display:flex;justify-content:center;align-items:baseline;gap:6px;white-space:nowrap}
.pr-shell .pr-content .reward-inline span{font:12px system-ui,sans-serif}
.pr-shell .pr-content .reward-inline strong{display:inline;font:normal 26px Georgia,serif}
.pr-shell .pr-content .edition{display:grid;grid-template-columns:90px 1fr;gap:20px;padding:20px 0;border-top:1px solid var(--border)}
.pr-shell .pr-content .edition-num{font:normal 46px/1 Georgia,serif;color:var(--red)}
.pr-shell .pr-content .edition-num small{display:block;font:700 9px/1.4 system-ui,sans-serif;letter-spacing:.1em;color:var(--muted);margin-top:8px}
.pr-shell .pr-content .edition-eyebrow{font:700 10px system-ui,sans-serif;letter-spacing:.1em;color:var(--gold)}
.pr-shell .pr-content .edition h3{font:normal 28px Georgia,serif;text-transform:none;margin:4px 0 7px}
.pr-shell .pr-content .edition p{font-size:15px;line-height:1.6;margin:0;color:#55483e}
@media(max-width:760px){.pr-shell .pr-piece{grid-template-columns:104px minmax(0,1fr);gap:10px;padding:12px}.pr-shell .pr-piece img{width:104px;height:130px}.pr-shell .pr-content .reward-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pr-shell .pr-content .edition{grid-template-columns:65px 1fr;gap:13px}.pr-shell .pr-content .edition-num{font-size:38px}.pr-shell .pr-content .edition h3{font-size:24px}.pr-shell .pr-inline-marginal{margin:26px auto;max-width:280px}}
