/* Componentes acotados: no altera botones de compra, precios ni formularios previos. */
.diotima-related{grid-column:1/-1;width:100%;min-width:0;margin-top:28px;padding:28px 0 4px;border-top:1px solid rgba(111,35,48,.2);text-align:left;text-transform:none;letter-spacing:0}
.diotima-related-heading{margin:0 0 14px;color:#6f2330;font:700 19px/1.3 Arial,Helvetica,sans-serif;letter-spacing:.08em}
.diotima-related-phrase{margin:0 0 24px;max-width:720px;color:#50453d;font:italic 17px/1.6 Georgia,serif;overflow-wrap:anywhere}
.diotima-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;max-width:780px}
.diotima-related-card{min-width:0;max-width:240px;text-align:center}
.diotima-related-cover{display:flex;align-items:flex-end;justify-content:center;min-height:205px;text-decoration:none}
.diotima-related-cover img{display:block;width:auto;max-width:140px;height:auto;max-height:205px;object-fit:contain;box-shadow:0 6px 14px rgba(47,41,37,.17)}
.diotima-related-card h4{margin:14px 0 5px;color:#6f2330;font:400 19px/1.28 Georgia,serif;overflow-wrap:anywhere}
.diotima-related-card h4 a{color:inherit;text-decoration:none}.diotima-related-card h4 a:hover{text-decoration:underline}
.diotima-related-author{margin:0;color:#756b63;font:14px/1.45 Arial,Helvetica,sans-serif;overflow-wrap:anywhere}
.diotima-related-no-cover{width:140px;min-height:180px;display:grid;place-items:center;padding:14px;background:#f1e9da;color:#756b63;font:14px/1.5 Arial,sans-serif}
.diotima-related-genres{display:flex;flex-wrap:wrap;gap:12px 24px;margin-top:25px}.diotima-related-genres:first-child{margin-top:0}
.diotima-related-genres a{padding:9px 0;color:#6f2330;font:700 13px/1.45 Arial,Helvetica,sans-serif;text-decoration:underline;text-underline-offset:5px;letter-spacing:.035em}
.diotima-related a:focus-visible{outline:2px solid #6f2330;outline-offset:5px}
.admin-app-body .book-tabs{flex-wrap:wrap}
.dr-editor{margin:28px 0 0;padding:22px 18px;border:1px solid #dbcdbb;border-top:3px solid #d66d2f;border-radius:8px;background:#fffaf2;scroll-margin-top:24px}
.dr-editor h3{margin:0 0 12px;color:#6f2330;font:400 24px/1.2 Georgia,serif}.dr-editor p{font:14px/1.55 Arial,Helvetica,sans-serif}
.dr-form{margin-top:20px}.dr-form label{display:block;font:700 13px/1.5 Arial,sans-serif;margin:0 0 6px}
.dr-form input[type=search],.dr-form select,.dr-form textarea{width:100%;max-width:100%;min-width:0;box-sizing:border-box;border:1px solid #c7b8a8;border-radius:5px;padding:10px;background:white;color:#2f2925;font:14px/1.45 Arial,sans-serif}
.dr-form select{min-height:44px;text-overflow:ellipsis}.dr-form textarea{min-height:100px;resize:vertical}.dr-form small,.dr-editor-help{display:block;margin:8px 0;color:#756b63;font:13px/1.5 Arial,sans-serif}
.dr-slots{display:grid;grid-template-columns:minmax(0,1fr);gap:15px;margin-top:18px}.dr-slot{padding:15px;border:1px solid #e0d5c6;border-radius:6px;background:#fff;min-width:0}
.dr-slot-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.dr-slot-actions button{border:1px solid #cbbbaf;border-radius:5px;background:#fffaf2;color:#6f2330;padding:7px 10px;min-height:36px;font:13px Arial,sans-serif;cursor:pointer}.dr-slot-actions button:disabled{opacity:.4;cursor:default}
.dr-preview{display:flex;gap:12px;align-items:center;margin-top:12px}.dr-preview:empty{display:none}.dr-preview img{width:auto;max-width:52px;height:auto;max-height:76px;object-fit:contain}.dr-preview p{margin:0;overflow-wrap:anywhere;font-size:13px}.dr-preview small{color:#9b3c24}
.dr-message{padding:12px;border:1px solid #afc7b7;background:#edf7ef;border-radius:5px}.dr-message.dr-error{border-color:#d4aa96;background:#fff0e6;color:#873718}
.dr-search-status{color:#756b63;font-size:13px}.dr-form :focus-visible{outline:2px solid #6f2330;outline-offset:3px}
@media(max-width:620px){.diotima-related-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 18px}.diotima-related-heading{font-size:17px}.diotima-related-card h4{font-size:17px}.diotima-related-cover img{max-width:120px;max-height:180px}.diotima-related-cover{min-height:180px}.diotima-related-card{max-width:none}.diotima-related-phrase{font-size:16px}.dr-editor{padding:18px 12px}.dr-slot{padding:12px}}
@media(max-width:350px){.diotima-related-grid{grid-template-columns:minmax(0,1fr)}}

/* Compra + recomendaciones: una tapa por fila, titulo y autor a su lado. */
.diotima-related,.diotima-related *{box-sizing:border-box}
.diotima-related-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr))}
.diotima-related-cover img{max-width:min(140px,100%)}
.diotima-related-card h4{overflow-wrap:break-word;word-break:normal;hyphens:manual}
.diotima-related-author{overflow-wrap:break-word;word-break:normal}
.book-visual>.diotima-related,.book-intro .diotima-related,.book-discovery>.diotima-related{margin-top:20px;padding-top:20px}
.book-visual>.diotima-related .diotima-related-grid,.book-intro .diotima-related .diotima-related-grid,.book-discovery>.diotima-related .diotima-related-grid{grid-template-columns:minmax(0,1fr);gap:22px;max-width:none}
.book-visual>.diotima-related .diotima-related-card,.book-intro .diotima-related .diotima-related-card,.book-discovery>.diotima-related .diotima-related-card{display:grid;grid-template-columns:76px minmax(0,1fr);grid-template-rows:auto 1fr;gap:5px 16px;max-width:none;text-align:left;align-items:start}
.book-visual>.diotima-related .diotima-related-cover,.book-intro .diotima-related .diotima-related-cover,.book-discovery>.diotima-related .diotima-related-cover{grid-column:1;grid-row:1/3;min-height:0;align-items:flex-start;justify-content:flex-start}
.book-visual>.diotima-related .diotima-related-cover img,.book-intro .diotima-related .diotima-related-cover img,.book-discovery>.diotima-related .diotima-related-cover img{width:auto;max-width:100%;height:auto;max-height:116px}
.book-visual>.diotima-related h4,.book-intro .diotima-related h4,.book-discovery>.diotima-related h4{grid-column:2;grid-row:1;margin:0;font-size:17px;line-height:1.4}
.book-visual>.diotima-related .diotima-related-author,.book-intro .diotima-related .diotima-related-author,.book-discovery>.diotima-related .diotima-related-author{grid-column:2;grid-row:2;font-size:13px;line-height:1.5}
.book-visual>.diotima-related .diotima-related-heading{font-size:14px}
.book-visual>.diotima-related .diotima-related-phrase{font-size:15px;line-height:1.6}
.book-visual>.diotima-related .diotima-related-no-cover,.book-intro .diotima-related .diotima-related-no-cover,.book-discovery>.diotima-related .diotima-related-no-cover{width:100%;min-height:106px;padding:7px;font-size:11px}
.book-discovery{grid-column:1/-1;min-width:0;width:100%}.book-discovery>.diotima-buy-assurance{margin-top:0}
@media(max-width:380px){.book-visual>.diotima-related .diotima-related-card,.book-intro .diotima-related .diotima-related-card,.book-discovery>.diotima-related .diotima-related-card{grid-template-columns:62px minmax(0,1fr);column-gap:12px}.book-visual>.diotima-related h4,.book-intro .diotima-related h4,.book-discovery>.diotima-related h4{font-size:16px}}
