/* Fichas compartidas por los catálogos español e inglés. */
body .book-detail>div{min-width:0}
body .book-purchase-options{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
body .book-detail .book-cart-controls{margin-top:12px}
@media(min-width:700px){
 body:has(.book-detail){height:100svh!important;min-height:0!important;overflow:hidden!important}
 body:has(.book-detail)>main{display:flex!important;flex-direction:column;flex:1!important;min-height:0!important;overflow:hidden!important}
 body:has(.book-detail) #books-content{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;padding-top:12px;padding-bottom:12px}
 body:has(.book-detail) #books-content>a{align-self:flex-start;flex:none;padding:8px 18px;font-size:16px}
 body .book-detail{display:grid;flex:1;min-height:0;grid-template-columns:minmax(170px,28%) minmax(0,1fr);gap:clamp(24px,4vw,55px);margin:10px 0;align-items:center}
 body .book-detail>img{width:100%;object-fit:contain;height:min(52svh,470px);max-height:100%;min-height:0}
 body .book-detail>div{max-height:100%;overflow:auto}
 body .book-detail h2{font-size:clamp(27px,2.8vw,40px);line-height:1.15;margin:7px 0}
 body .book-detail .eyebrow{font-size:clamp(19px,1.7vw,24px)}
 body .book-detail p{font-size:clamp(15px,1.3vw,19px);line-height:1.35;margin:6px 0}
 body .book-detail .notice{font-size:14px;padding:8px 14px}
 body .book-detail .button{font-size:16px;padding:9px 16px}
 body .book-purchase-options .book-print-edition .button{height:48px;min-height:48px;padding-right:128px}
}
@media(max-width:699px){
 body:has(.book-detail) #books-content{width:100%;max-width:100%;padding:20px 24px;box-sizing:border-box}
 body:has(.book-detail) .book-detail{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;margin:20px 0}
 body:has(.book-detail) .book-detail>img{width:min(100%,360px);height:auto;max-height:60svh;object-fit:contain;margin:auto}
 body:has(.book-detail) .book-detail>div{width:100%;min-width:0;max-width:100%;overflow-wrap:anywhere}
 body:has(.book-detail) .book-purchase-options{gap:12px}
 body:has(.book-detail) .book-cart-controls{gap:12px}
}

body:has(.book-detail){display:flex;flex-direction:column}
body .book-purchase-options .book-digital-option>.button{box-sizing:border-box;height:48px!important;min-height:48px!important}

/* Tres ediciones, conservando la identidad azul y oro de la web. */
body .edition-picker{border:0;padding:0;margin:18px 0 10px;min-width:0}
body .edition-picker legend{font:18px/1.3 Georgia,serif;color:#e8c777;padding:0;margin-bottom:10px}
body .edition-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
body .edition-card{display:flex;align-items:flex-start;gap:9px;box-sizing:border-box;padding:14px 12px;border:1px solid #aab9de;border-radius:5px;background:#ffffff08;color:white;text-decoration:none;cursor:pointer;min-width:0;transition:border-color .15s,background .15s}
body .edition-card input{accent-color:#e8c777;flex:none;margin:4px 0 0;width:16px;height:16px}
body .edition-card-copy{display:flex;flex-direction:column;gap:7px;min-width:0;font:15px/1.25 Georgia,serif}
body .edition-card-copy strong{font-size:20px;letter-spacing:.05em;color:#e8c777}
body .edition-card-copy b{font-weight:normal;font-size:18px}
body .edition-card.is-selected{border:2px solid #e8c777;padding:13px 11px;background:#ffffff14}
body .edition-card:focus-within,body a.edition-card:focus-visible{outline:3px solid #e8c777;outline-offset:3px}
body .edition-card.is-unavailable{cursor:default;border-style:dashed;background:transparent}
body .edition-availability{font-size:13px;color:#d2d9ef}
body .edition-cart-controls{margin-top:14px;justify-content:flex-start;gap:20px}
body .edition-cart-controls label{font-size:17px}
body .edition-cart-controls button:disabled{opacity:.6;cursor:default}
body .book-detail .edition-selection-status{font-size:14px;margin:8px 0}
body .review-checkout-note{color:#e8c777}
@media(max-width:900px){body .edition-cards{gap:8px}body .edition-card{padding:12px 8px}body .edition-card.is-selected{padding:11px 7px}body .edition-card-copy{font-size:13px}body .edition-card-copy strong{font-size:17px}body .edition-card-copy b{font-size:16px}}
@media(max-width:699px){body:has(.book-detail){height:auto!important;overflow:auto!important}body:has(.book-detail)>main,body:has(.book-detail) #books-content{overflow:visible!important}body .book-detail>div{overflow:visible;max-height:none}}
@media(max-width:420px){body .edition-cards{grid-template-columns:1fr}body .edition-card-copy{font-size:16px}body .edition-card-copy strong{font-size:20px}body .edition-card-copy b{font-size:18px}}

/* Ficha compacta: muestra a la izquierda, edición y unidades a la derecha. */
body .edition-shop-layout{display:grid;grid-template-columns:minmax(150px,.85fr) minmax(260px,1.4fr);align-items:center;gap:22px;margin:12px 0 6px}
body .edition-sample-column.book-cart-controls{display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin:0;min-width:0}
body .edition-sample-column .book-purchase-options{margin:0;display:block}
body .edition-sample-column .hermano-purchase-guide{order:2;display:flex!important;gap:8px!important;max-width:100%!important;min-width:0!important;width:auto!important;flex:0 1 auto!important;margin:0!important;padding:0!important}
body .edition-sample-column .hermano-purchase-guide img{width:52px!important;height:78px!important;object-fit:contain}
body .edition-sample-column .hermano-purchase-guide p{font:14px/1.25 Georgia,serif!important;min-width:0!important;max-width:200px!important;padding:8px!important;margin:0!important}
body .edition-picker{margin:0;padding:0;min-width:0}
body .edition-quantity-table{border-collapse:separate;border-spacing:0 6px;width:100%;table-layout:fixed}
body .edition-quantity-table thead th{font:18px/1.2 Georgia,serif;color:#e8c777;letter-spacing:.035em;padding:0 8px 4px;text-align:left}
body .edition-quantity-table thead th:last-child{width:100px;text-align:center}
body .edition-quantity-table tbody th{font:17px/1.25 Georgia,serif;text-align:left;font-weight:normal;padding:10px 12px;border:1px solid #aab9de;border-right:0;border-radius:4px 0 0 4px;background:#ffffff08}
body .edition-quantity-table tbody td{padding:7px 8px;border:1px solid #aab9de;border-left:0;border-radius:0 4px 4px 0;background:#ffffff08;text-align:center;font:14px/1.2 Georgia,serif}
body .edition-quantity-table label{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer}
body .edition-quantity-table strong{color:#e8c777;font-size:18px}
body .edition-quantity-table small{display:block;font-size:12px;margin-top:2px;color:#c9d2ed}
body .edition-quantity-table input{width:64px;box-sizing:border-box;font:17px/1.2 Georgia,serif;text-align:center;padding:6px 3px;background:#35479a;color:white;border:1px solid #aab9de;border-radius:3px}
body .edition-quantity-table input:disabled{opacity:.5}
body .edition-quantity-table input:focus-visible{outline:2px solid #e8c777;outline-offset:2px}
body .edition-amazon{float:right;margin-left:10px;color:white;font-size:15px}
body .edition-selection-status{min-height:1.3em}
@media(min-width:1000px){
 body .book-detail>div{max-height:none;overflow:visible}
 body .book-detail{grid-template-columns:minmax(170px,28%) minmax(0,1fr);gap:clamp(22px,3vw,48px)}
 body .book-detail h2{font-size:clamp(25px,2.3vw,37px);margin:5px 0;line-height:1.1}
 body .book-detail .eyebrow{font-size:clamp(18px,1.5vw,23px)}
 body .book-detail p{font-size:clamp(15px,1.15vw,18px);line-height:1.25;margin:5px 0}
 body .book-detail .notice{font-size:13px;line-height:1.25;padding:6px 10px;margin-top:5px}
 body .book-detail .edition-selection-status{font-size:13px;margin:4px 0}
 body .book-detail .edition-sample-column .button{height:auto!important;min-height:0!important;padding:10px 14px;font-size:16px}
 body .book-detail>img{height:min(48svh,420px)}
}
@media(min-width:1000px) and (max-height:800px){body .edition-shop-layout{margin-top:6px;gap:14px}body .edition-quantity-table{border-spacing:0 3px}body .edition-quantity-table tbody th{padding:6px 10px}body .edition-quantity-table tbody td{padding:4px 6px}body .book-detail h2{font-size:27px}body .edition-sample-column .hermano-purchase-guide img{height:60px!important;width:40px!important}body .book-detail>img{height:43svh}}
@media(max-width:999px) and (min-width:700px){body .edition-shop-layout{grid-template-columns:1fr;gap:8px}body .edition-sample-column.book-cart-controls{flex-direction:row;align-items:center}body .edition-sample-column .hermano-purchase-guide{display:none!important}body .book-detail>div{overflow:visible;max-height:none}body .book-detail h2{font-size:25px}body .book-detail p{font-size:14px}body .edition-quantity-table tbody th{padding:6px 8px}}
@media(max-width:699px){body .edition-shop-layout{grid-template-columns:1fr;gap:12px}body .edition-sample-column.book-cart-controls{flex-direction:row;align-items:center}body .edition-sample-column .hermano-purchase-guide{display:none!important}}

/* Ajuste de proporciones: más portada y guía, compra más estrecha. */
body .edition-quantity-table{border-spacing:0 3px}
body .edition-quantity-table thead th{font-size:17px;letter-spacing:0;padding:0 10px 4px}
body .edition-quantity-table thead th:last-child{width:118px;box-sizing:border-box;white-space:nowrap}
body .edition-quantity-table tbody th{padding:6px 10px}
body .edition-quantity-table tbody td{padding:4px 8px}
body .edition-quantity-table label{gap:8px}
body .edition-quantity-table input{padding:4px 3px;width:60px}
body .edition-quantity-table small{margin-top:0;line-height:1.1}
body .edition-amazon{font-size:14px;margin-left:6px}
@media(min-width:1000px){
 body .book-detail{grid-template-columns:minmax(230px,30%) minmax(0,1fr);gap:clamp(24px,3vw,48px)}
 body .book-detail>img{height:min(57svh,530px);max-height:100%;width:100%;object-fit:contain}
 body .edition-shop-layout{grid-template-columns:minmax(220px,1fr) minmax(300px,420px);align-items:start;gap:24px;margin-top:12px;margin-bottom:8px}
 body .edition-sample-column.book-cart-controls{align-items:flex-start;gap:12px;padding-top:0}
 body .book-detail .edition-sample-column .button{font-size:18px;padding:11px 16px}
 body .edition-sample-column .hermano-purchase-guide{align-items:center!important;max-width:340px!important}
 body .edition-sample-column .hermano-purchase-guide img{width:88px!important;height:130px!important}
 body .edition-sample-column .hermano-purchase-guide p{font:16px/1.3 Georgia,serif!important;max-width:220px!important;padding:9px!important}
 body .book-detail .edition-selection-status{font-size:16px;line-height:1.25;margin:6px 0}
 body .book-detail .notice{font-size:17px;line-height:1.3;padding:7px 11px;margin-top:6px}
}
@media(min-width:1000px) and (max-width:1250px){body .edition-shop-layout{grid-template-columns:minmax(180px,1fr) minmax(275px,340px);gap:16px}body .edition-sample-column .hermano-purchase-guide img{width:72px!important;height:108px!important}body .edition-sample-column .hermano-purchase-guide p{font-size:15px!important}}
@media(min-width:1000px) and (max-height:800px){body .book-detail>img{height:min(54svh,440px)}body .edition-shop-layout{margin-top:8px;gap:16px}body .edition-sample-column .hermano-purchase-guide img{width:76px!important;height:112px!important}body .book-detail .notice{font-size:16px}body .book-detail .edition-selection-status{font-size:15px}}
@media(max-width:699px){body .edition-quantity-table thead th:last-child{width:112px}}

body .book-detail:has(.edition-picker) .notice{text-align:justify;text-align-last:justify;text-justify:inter-word}


body .book-detail:has(.edition-picker) .notice.edition-delivery-note{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;text-align-last:auto;text-justify:auto}body .delivery-digital,body .delivery-print{word-spacing:normal;letter-spacing:normal}body .delivery-print{text-align:right}body .delivery-divider{flex:none;text-align:center}@media(max-width:699px){body .book-detail:has(.edition-picker) .notice.edition-delivery-note{flex-wrap:wrap}body .delivery-print{text-align:left}}

body .book-detail:has(.edition-picker) .notice.edition-delivery-note{display:flex;width:fit-content;max-width:100%;box-sizing:border-box;justify-content:flex-start;gap:14px}


body .book-detail .edition-selection-status{text-align:right}body .book-detail:has(.edition-picker) .notice.edition-delivery-note{margin-left:auto;margin-right:0}


body .book-detail:has(.edition-picker) .notice.edition-delivery-note{padding-right:0;justify-content:flex-end}

