/* V1 editorial system — Book family (Manecillas piloto). Ported from
   lab/diseno-home-v1/css/book.css, scoped to html.v1 pages. */
html.v1 .book-page{max-width:var(--layout-max);margin:auto;padding-inline:var(--page-gutter)}
html.v1 .book-hero{min-height:clamp(680px,68vw,840px);display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:var(--grid-gap);align-items:center;padding:clamp(2.4rem,4.8vw,4.8rem) 0 clamp(4rem,6.4vw,6.4rem)}
html.v1 .book-cover-zone{grid-column:1/span 4;position:relative;align-self:center;display:grid;place-items:center;min-width:0}
html.v1 .book-cover{margin:0;width:min(100%,430px);position:relative;isolation:isolate}
html.v1 .book-cover::before{content:"";position:absolute;inset:0;border:1px solid color-mix(in srgb,var(--color-accent-strong) 28%,var(--color-border));pointer-events:none}
html.v1 .book-cover img{width:100%;height:auto;box-shadow:var(--shadow-object)}
html.v1 .book-cover-fallback{width:min(100%,430px);aspect-ratio:2/3;border:1px solid var(--color-border);display:grid;align-items:end;padding:1rem;font-size:.78rem;color:var(--color-muted)}
html.v1 .book-hero__copy{grid-column:5/span 5;align-self:center;min-width:0}
html.v1 .book-hero h1{margin:.5rem 0 1rem;max-width:9ch;font-family:var(--font-display);font-size:clamp(3.7rem,5.4vw,5rem);font-weight:400;line-height:.9;letter-spacing:-.035em;text-wrap:balance;overflow-wrap:normal}
html.v1 .book-author{margin:0;font-size:.9rem;font-weight:600;letter-spacing:.02em}
html.v1 .book-lead{max-width:44ch;margin:clamp(1.7rem,3.4vw,2.5rem) 0 1.5rem;font-family:var(--font-reading);font-size:clamp(1.22rem,1.8vw,1.53rem);line-height:1.5}
html.v1 .book-date{display:block;color:var(--color-muted);font-size:.88rem}
html.v1 .book-actions{display:flex;align-items:center;gap:1.25rem;margin-top:2rem;flex-wrap:wrap}
html.v1 .book-meta-ledger{grid-column:10/-1;align-self:center;margin:0;border-top:1px solid var(--color-border)}
html.v1 .book-meta-ledger>div{padding:.9rem 0;border-bottom:1px solid var(--color-border)}
html.v1 .book-meta-ledger dt{font-size:.66rem;text-transform:uppercase;letter-spacing:.09em;color:var(--color-muted)}
html.v1 .book-meta-ledger dd{margin:.25rem 0 0;font-family:var(--font-reading);font-size:1rem;line-height:1.3}
html.v1 .book-anchor-alias{display:block;height:0;scroll-margin-top:96px}
html.v1 .book-dedication{display:grid;grid-template-columns:3fr minmax(0,6fr) 3fr;gap:var(--grid-gap);align-items:start;padding:clamp(2.8rem,5.6vw,4.8rem) 0;border-top:1px solid var(--color-border)}
html.v1 .book-dedication>.eyebrow{grid-column:1;margin:0}
html.v1 .book-dedication blockquote{grid-column:2;margin:0;max-width:18ch;font-family:var(--font-display);font-size:clamp(2rem,3.5vw,4rem);font-weight:400;line-height:.98;letter-spacing:-.025em;text-wrap:balance}
html.v1 .book-dedication cite{grid-column:2;display:block;margin-top:1rem;font-style:normal;font-size:.82rem;color:var(--color-muted)}
html.v1 .book-seam{height:clamp(70px,8vw,120px);display:flex;align-items:center}
html.v1 .book-seam span{display:block;width:min(52%,680px);height:1px;background:color-mix(in srgb,var(--color-accent) 55%,transparent)}
html.v1 .book-section{display:grid;grid-template-columns:3fr minmax(0,6fr) 3fr;gap:var(--grid-gap);padding:clamp(2.8rem,4.8vw,4.8rem) 0;border-top:1px solid var(--color-border)}
html.v1 .book-section__label{align-self:start}
html.v1 .book-section__label h2{margin:.65rem 0 0;font-family:var(--font-display);font-size:clamp(1.65rem,2.4vw,2.35rem);font-weight:400;line-height:1.05;letter-spacing:-.02em;text-wrap:balance}
html.v1 .book-section__label h2 + .tool-meta{margin-top:.85rem}
html.v1 .prose-field{max-width:68ch;font-family:var(--font-reading);font-size:clamp(1.1rem,1.42vw,1.3rem);line-height:1.55}
html.v1 .prose-field h2{margin:0 0 1.5rem;font-family:var(--font-display);font-size:clamp(1.55rem,2.4vw,2.25rem);font-weight:400;line-height:1.15;letter-spacing:-.02em;text-wrap:balance}
html.v1 .prose-field p{margin:0 0 1.2em}
html.v1 .prose-field--compact{max-width:64ch}
html.v1 .book-margin-note{align-self:end;padding-left:var(--grid-gap);border-left:1px solid var(--color-border);color:var(--color-muted);font-size:.78rem}
html.v1 .book-margin-note span{display:block;text-transform:uppercase;letter-spacing:.08em;font-size:.65rem}
html.v1 .book-margin-note p{margin:.5rem 0 0}
html.v1 .excerpt-section{grid-template-columns:3fr minmax(0,7fr) 2fr}
html.v1 .excerpt-field{grid-column:2;font-family:var(--font-reading);font-size:clamp(1.15rem,1.56vw,1.42rem);line-height:1.6;padding-left:clamp(1.2rem,2.5vw,2rem);border-left:1px solid var(--color-accent)}
html.v1 .excerpt-field p{margin:0 0 1.3em}
html.v1 .context-section .prose-field{grid-column:2}
html.v1 .availability-section{grid-template-columns:4fr 6fr 2fr}
html.v1 .availability-list{grid-column:2;max-width:60ch}
html.v1 .availability-status{margin-top:0;font-family:var(--font-reading);font-size:1.1rem;line-height:1.5}
html.v1 .availability-list dl{margin:2.5rem 0 0;border-top:1px solid var(--color-border)}
html.v1 .availability-list dl>div{display:grid;grid-template-columns:1fr 2fr;gap:1rem;padding:1rem 0;border-bottom:1px solid var(--color-border)}
html.v1 .availability-list dt{font-size:.68rem;text-transform:uppercase;letter-spacing:.08em;color:var(--color-muted)}
html.v1 .availability-list dd{margin:0;font-family:var(--font-reading)}
html.v1 .book-utility-actions{display:grid;grid-template-columns:3fr 6fr 3fr;gap:var(--grid-gap);align-items:center;padding:1.25rem 0;border-top:1px solid var(--color-border)}
html.v1 .book-utility-actions>.text-action{grid-column:2;justify-self:start}
html.v1 .book-share-status{grid-column:3;min-height:1.5em;color:var(--color-muted);font-size:.78rem}
html.v1 .book-related{display:grid;grid-template-columns:3fr 6fr 3fr;gap:var(--grid-gap);padding:clamp(2.8rem,4.8vw,4.8rem) 0;border-top:1px solid var(--color-border)}
html.v1 .book-related>div:first-child h2{margin:.65rem 0 0;max-width:7ch;font-family:var(--font-display);font-size:clamp(2.5rem,4.2vw,4.15rem);font-weight:400;line-height:.92}
html.v1 .related-primary{padding-top:.2rem}
html.v1 .related-type{margin:0 0 .65rem;font-size:.68rem;text-transform:uppercase;letter-spacing:.08em;color:var(--color-muted)}
html.v1 .related-primary h3{margin:0;font-family:var(--font-display);font-size:clamp(2rem,3.3vw,3.3rem);font-weight:400;line-height:.98}
html.v1 .related-primary h3 a{text-decoration:none}
html.v1 .related-primary h3 a:hover,html.v1 .related-primary h3 a:focus-visible{text-decoration:underline}
html.v1 .related-primary p:last-child{max-width:38ch;color:var(--color-muted)}
html.v1 .related-secondary{display:grid;align-content:start;gap:.85rem;padding-left:var(--grid-gap);border-left:1px solid var(--color-border)}
html.v1 .book-newsletter{display:grid;grid-template-columns:5fr 7fr;gap:clamp(2rem,6vw,6rem);padding:clamp(2.8rem,4.8vw,4rem) 0;border-top:1px solid var(--color-border)}
html.v1 .book-newsletter h2{margin:.5rem 0 1rem;font-family:var(--font-display);font-size:clamp(1.65rem,2.4vw,2.35rem);font-weight:400;line-height:1.05}
html.v1 .book-newsletter>div>p:last-child{max-width:42ch;color:var(--color-muted)}
@media(max-width:1199px){html.v1 .book-hero{grid-template-columns:repeat(8,minmax(0,1fr));min-height:auto}html.v1 .book-cover-zone{grid-column:1/span 3}html.v1 .book-hero__copy{grid-column:4/-1}html.v1 .book-meta-ledger{grid-column:4/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:-2rem}html.v1 .book-meta-ledger>div:nth-child(even){padding-left:var(--grid-gap);border-left:1px solid var(--color-border)}html.v1 .book-section,html.v1 .excerpt-section,html.v1 .availability-section{grid-template-columns:2fr 6fr}html.v1 .book-margin-note{grid-column:2;border-left:0;border-top:1px solid var(--color-border);padding:1rem 0 0;margin-top:2rem}html.v1 .book-related{grid-template-columns:2fr 4fr 2fr}}
@media (min-width:768px) and (max-width:899px){html.v1 .book-hero{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:var(--grid-gap);min-height:auto;padding:clamp(3rem,6vw,4rem) 0 clamp(4.5rem,8vw,6rem);align-items:start}html.v1 .book-hero__copy{display:contents}html.v1 .book-hero__copy>.eyebrow{grid-column:1/-1;grid-row:1}html.v1 .book-hero h1{grid-column:1/10;grid-row:2;font-size:clamp(3rem,7vw,4rem);max-width:9ch;margin:.5rem 0 .7rem}html.v1 .book-author{grid-column:1/7;grid-row:3}html.v1 .book-date{grid-column:7/-1;grid-row:3;align-self:end;justify-self:start;margin:0}html.v1 .book-cover-zone{grid-column:1/span 5;grid-row:4/span 3;margin-top:2.5rem;align-self:start}html.v1 .book-cover{width:min(100%,280px)}html.v1 .book-cover-fallback{width:min(100%,280px)}html.v1 .book-lead{grid-column:6/-1;grid-row:4;margin:2.5rem 0 0;font-size:clamp(1.25rem,2.7vw,1.5rem);max-width:42ch}html.v1 .book-actions{grid-column:6/-1;grid-row:5;margin-top:1.5rem}html.v1 .book-meta-ledger{grid-column:6/-1;grid-row:6;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:2rem 0 0}}
@media (max-width:899px){html.v1 .book-hero{display:flex;flex-direction:column;align-items:stretch;min-height:0;padding:clamp(2.5rem,8vw,4rem) 0 clamp(4rem,10vw,6rem)}html.v1 .book-hero__copy{display:contents}html.v1 .book-hero__copy>.eyebrow{order:1}html.v1 .book-hero h1{order:2;max-width:none;overflow-wrap:anywhere;text-wrap:pretty;font-size:clamp(2.9rem,11vw,4.4rem)}html.v1 .book-author{order:3}html.v1 .book-date{order:4;margin-top:.65rem}html.v1 .book-cover-zone{order:5;margin:2rem 0;width:100%;max-width:16rem}html.v1 .book-cover{width:min(100%,16rem)}html.v1 .book-cover-fallback{width:min(100%,16rem)}html.v1 .book-lead{order:6;max-width:none;overflow-wrap:anywhere;text-wrap:pretty;font-size:clamp(1.12rem,4.2vw,1.45rem)}html.v1 .book-actions{order:7;display:grid;grid-template-columns:1fr;align-items:stretch;margin-top:1.5rem}html.v1 .book-actions .primary-action{width:100%}html.v1 .book-meta-ledger{order:8;display:block;margin:2rem 0 0}html.v1 .book-meta-ledger>div,html.v1 .book-meta-ledger>div:nth-child(even){padding:1rem 0;border-left:0}html.v1 .book-seam{height:60px}html.v1 .book-section,html.v1 .excerpt-section,html.v1 .availability-section,html.v1 .book-related,html.v1 .book-utility-actions,html.v1 .book-newsletter,html.v1 .book-dedication,html.v1 .book-themes,html.v1 .book-crosspromo{grid-template-columns:1fr;gap:1.5rem}html.v1 .book-section__label,html.v1 .prose-field,html.v1 .context-section .prose-field,html.v1 .excerpt-field,html.v1 .availability-list,html.v1 .book-related>div:first-child,html.v1 .related-secondary,html.v1 .book-newsletter>div,html.v1 .book-themes>div,html.v1 .book-crosspromo-media{grid-column:1;min-width:0}html.v1 .book-section__label h2{max-width:none;text-wrap:pretty;font-size:clamp(2.2rem,9vw,3.4rem)}html.v1 .prose-field h2{font-size:clamp(2.4rem,10vw,3.6rem);overflow-wrap:anywhere;text-wrap:pretty}html.v1 .excerpt-field{padding-left:1rem}html.v1 .book-margin-note{grid-column:1;padding-left:0;border-left:0;border-top:1px solid var(--color-border);margin-top:1.5rem;padding-top:1rem}html.v1 .book-utility-actions>.text-action,html.v1 .book-share-status{grid-column:1}html.v1 .related-secondary{padding-left:0;border-left:0;border-top:1px solid var(--color-border);padding-top:1rem}html.v1 .book-newsletter h2{font-size:clamp(2.2rem,9vw,3.4rem)}html.v1 .book-cover-zone{max-width:14rem}html.v1 .book-cover{width:min(100%,14rem)}html.v1 .book-cover-fallback{width:min(100%,14rem)}html.v1 .book-themes{grid-template-columns:1fr}html.v1 .book-theme-list{grid-column:1;grid-template-columns:1fr}html.v1 .book-theme{padding-top:1rem}html.v1 .book-crosspromo-media{max-width:12rem}}
@media(max-width:767px){html.v1 .book-page{padding-inline:var(--page-gutter)}html.v1 .book-breadcrumb{padding-top:1.25rem}html.v1 .book-hero{display:flex;flex-direction:column;align-items:stretch;padding:clamp(2.5rem,9vw,4rem) 0 clamp(4rem,12vw,6rem)}html.v1 .book-hero__copy{display:contents}html.v1 .book-hero__copy>.eyebrow{order:1}html.v1 .book-hero h1{order:2;font-size:clamp(3.3rem,14vw,4.6rem);max-width:9ch;margin:.5rem 0 .7rem}html.v1 .book-author{order:3}html.v1 .book-date{order:4;margin-top:.65rem}html.v1 .book-cover-zone{order:5;margin:2.5rem 0;width:100%}html.v1 .book-cover{width:min(68vw,310px)}html.v1 .book-lead{order:6;margin:0;font-size:clamp(1.25rem,5.4vw,1.5rem)}html.v1 .book-actions{order:7;display:grid;grid-template-columns:1fr;align-items:stretch;margin-top:1.75rem}html.v1 .book-actions .primary-action{width:100%}html.v1 .book-meta-ledger{order:8;display:block;margin:2.5rem 0 0}html.v1 .book-meta-ledger>div,html.v1 .book-meta-ledger>div:nth-child(even){padding:1rem 0;border-left:0}html.v1 .book-seam{height:65px}html.v1 .book-dedication{grid-template-columns:1fr;gap:1.25rem;padding:clamp(3.5rem,12vw,5rem) 0}html.v1 .book-dedication>.eyebrow,html.v1 .book-dedication blockquote{grid-column:1}html.v1 .book-dedication blockquote{font-size:clamp(2.6rem,12vw,3.8rem)}html.v1 .book-anchor-alias{scroll-margin-top:128px}html.v1 .book-section,html.v1 .excerpt-section,html.v1 .availability-section{grid-template-columns:1fr;gap:2rem;padding:clamp(4rem,14vw,6rem) 0}html.v1 .prose-field,html.v1 .context-section .prose-field,html.v1 .excerpt-field,html.v1 .availability-list{grid-column:1}html.v1 .prose-field h2{font-size:clamp(3rem,13vw,4.3rem)}html.v1 .excerpt-field{padding-left:1rem}html.v1 .book-margin-note{grid-column:1}html.v1 .book-utility-actions{grid-template-columns:1fr;gap:.4rem}html.v1 .book-utility-actions>.text-action,html.v1 .book-share-status{grid-column:1}html.v1 .book-related{grid-template-columns:1fr;gap:2rem}html.v1 .book-related>div:first-child h2{max-width:10ch}html.v1 .related-secondary{padding:1.25rem 0 0;border-left:0;border-top:1px solid var(--color-border)}html.v1 .book-newsletter{grid-template-columns:1fr}}
@media(max-width:389px){html.v1 .book-cover{width:72vw}html.v1 .book-hero h1{font-size:clamp(3rem,15vw,4rem)}}
@media(max-width:899px){html.v1 .book-dedication{grid-template-columns:1fr;gap:1rem;padding:clamp(3rem,10vw,4.5rem) 0}html.v1 .book-dedication blockquote{grid-column:1;max-width:none;overflow-wrap:anywhere;text-wrap:pretty;font-size:clamp(1.9rem,7vw,2.8rem)}html.v1 .book-dedication cite{grid-column:1}html.v1 .book-cover-zone{max-width:11rem}html.v1 .book-cover{width:min(100%,11rem)}html.v1 .book-cover-fallback{width:min(100%,11rem)}}
@media print{html.v1 .book-actions,html.v1 .book-newsletter,html.v1 .book-utility-actions{display:none!important}html.v1 .book-page{max-width:none;padding:0}html.v1 .book-breadcrumb{display:none}html.v1 .book-hero{display:grid;grid-template-columns:1fr 2fr;min-height:0;padding:0 0 2rem}html.v1 .book-cover-zone{grid-column:1}html.v1 .book-cover{width:180px}html.v1 .book-hero__copy{grid-column:2}html.v1 .book-meta-ledger{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,1fr)}html.v1 .book-section,html.v1 .book-related{page-break-inside:avoid;padding:2rem 0}html.v1 .book-section{grid-template-columns:1fr 3fr}html.v1 .book-related{grid-template-columns:1fr 2fr}html.v1 .excerpt-field,html.v1 .prose-field{font-size:11pt}html.v1 .primary-action,html.v1 .text-action{display:none!important}}

/* Extension not present in the lab scaffold: real content this session must
   preserve — the three theme cards (Memoria/Valor/Futuro) and the Samuel
   cross-promo. Built from the same book-section grammar (ledger/hairline,
   no cards) rather than inventing a new pattern. */
html.v1 .book-themes{grid-template-columns:3fr minmax(0,9fr)}
html.v1 .book-theme-list{grid-column:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--grid-gap);border-top:1px solid var(--color-border)}
html.v1 .book-theme{display:block;padding:1.5rem 0 0;border-top:1px solid var(--color-border);text-decoration:none;color:inherit}
html.v1 .book-theme .eyebrow{margin-bottom:.75rem}
html.v1 .book-theme h3{margin:0 0 .6rem;font-family:var(--font-display);font-weight:400;font-size:clamp(1.26rem,1.8vw,1.62rem);line-height:1.05;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:.15em;transition:text-decoration-color .15s ease,color .15s ease}
html.v1 .book-theme p{margin:0;color:var(--color-muted);font-size:.92rem;line-height:1.5}
html.v1 .book-theme:hover h3,html.v1 .book-theme:focus-visible h3{color:var(--color-accent-strong);text-decoration-color:var(--color-accent-strong)}
@media(max-width:1199px){html.v1 .book-theme-list{grid-column:1/-1}}
@media(max-width:767px){html.v1 .book-theme-list{grid-column:1;grid-template-columns:1fr;gap:2rem}}
/* .book-themes carries its own 2-column base (line above, 3fr/minmax(9fr))
   instead of .book-section's 3-column one. The @media(max-width:899px)
   block further up already tries to collapse it to grid-template-columns:1fr,
   but that base rule sits AFTER that block in source order with equal
   specificity, so it silently won the cascade and .book-section__label h2
   ("Memoria, valor y futuro.") was breaking mid-word in an ~80px column.
   Re-asserting the collapse here, after the base rule, fixes the order. */
@media(max-width:899px){html.v1 .book-themes{grid-template-columns:1fr}}
html.v1 .book-crosspromo{grid-template-columns:3fr minmax(0,6fr) 3fr}
html.v1 .book-crosspromo-media{grid-column:3;align-self:start}
html.v1 .book-crosspromo-media picture{display:block;position:relative;isolation:isolate}
html.v1 .book-crosspromo-media picture::before{content:"";position:absolute;inset:8px -8px -8px 8px;border:1px solid color-mix(in srgb,var(--color-accent) 35%,transparent);pointer-events:none}
html.v1 .book-crosspromo-media img{display:block;width:100%;height:auto;box-shadow:var(--shadow-object);border:1px solid var(--color-border)}
@media(max-width:1199px){html.v1 .book-crosspromo{grid-template-columns:2fr 6fr}html.v1 .book-crosspromo-media{grid-column:2;margin-top:2rem;max-width:220px}}
@media(max-width:767px){html.v1 .book-crosspromo{grid-template-columns:1fr}html.v1 .book-crosspromo-media{grid-column:1;max-width:200px}}
