/* Sinopsis ampliada de la trilogía — aislado para no alterar otras secciones */
.book-modal {
    width: min(calc(100% - 32px), 1080px);
    max-height: min(92dvh, 900px);
}

.book-modal-grid {
    grid-template-columns: minmax(280px, .74fr) minmax(0, 1.26fr);
    align-items: stretch;
}

.book-modal-cover {
    position: sticky;
    top: 0;
    align-self: start;
    min-height: 650px;
    height: min(92dvh, 900px);
}

.book-modal-cover img {
    width: min(76%, 310px);
    max-height: 78%;
}

.book-modal-copy {
    justify-content: flex-start;
    padding: 52px 52px 46px;
}

.book-modal-copy h2 {
    margin-bottom: 14px;
}

.book-modal-intro {
    margin: 0 0 22px;
    color: var(--muted);
    line-height: 1.7;
}

.book-synopsis-panel {
    margin: 4px 0 10px;
    padding: 24px 24px 22px;
    background: rgba(255,255,255,.72);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.book-synopsis-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.book-synopsis-heading span {
    color: var(--rose);
    font-size: .9rem;
}

.book-synopsis-heading h3 {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.55rem;
    line-height: 1;
}

.book-synopsis-text {
    display: grid;
    gap: 14px;
}

.book-synopsis-text p {
    margin: 0;
    color: #4c4d56;
    font-size: .88rem;
    line-height: 1.78;
}

.book-synopsis-text p:last-child {
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1rem;
}

@media (max-width: 820px) {
    .book-modal-grid {
        grid-template-columns: 1fr;
    }

    .book-modal-cover {
        position: static;
        min-height: 330px;
        height: 330px;
        padding: 34px;
    }

    .book-modal-cover img {
        width: auto;
        height: 100%;
        max-height: 100%;
    }

    .book-modal-copy {
        padding: 34px 28px 36px;
    }
}

@media (max-width: 560px) {
    .book-modal {
        width: min(calc(100% - 18px), 1080px);
        border-radius: 18px;
    }

    .book-modal-cover {
        min-height: 280px;
        height: 280px;
        padding: 28px;
    }

    .book-modal-copy {
        padding: 28px 20px 30px;
    }

    .book-synopsis-panel {
        padding: 20px 18px;
        border-radius: 15px;
    }

    .book-synopsis-text p {
        font-size: .84rem;
        line-height: 1.72;
    }
}


/* Siempre fuiste tú — sinopsis desde la portada de inicio */
.sft-home-cover-button { appearance:none; -webkit-appearance:none; padding:0; border:0; background:transparent; cursor:pointer; text-align:left; font:inherit; }
.sft-home-cover-button:focus-visible { outline:3px solid rgba(255,255,255,.85); outline-offset:5px; border-radius:10px; }
.sft-cover-read { position:absolute; right:12px; bottom:12px; z-index:3; padding:8px 11px; color:#17110f; background:rgba(247,233,212,.94); border-radius:999px; font-size:.62rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; box-shadow:0 8px 24px rgba(0,0,0,.22); transition:transform .2s ease, background .2s ease; }
@media (hover:hover) and (pointer:fine) { .sft-home-cover-button:hover .sft-cover-read { transform:translateY(-2px); background:#fff7e9; } }
.sft-synopsis-modal .book-modal-cover { background:linear-gradient(145deg,#17110f,#2b1411 56%,#17121b); }
.sft-synopsis-modal .sft-synopsis-cover img { width:min(78%,330px); height:auto; max-height:80%; object-fit:contain; }
.sft-synopsis-modal .book-modal-intro { font-family:var(--serif); font-size:1.15rem; font-style:italic; color:#7d5f35; }
.sft-synopsis-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:22px; }
@media (max-width:560px) { .sft-synopsis-actions .button { width:100%; } }


/* Siempre fuiste tú: modal sin dependencia de JavaScript */
.sft-hash-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: grid;
    place-items: center;
    padding: 28px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
}
.sft-hash-modal:target {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
.sft-hash-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 16, .76);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.sft-hash-panel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(190px, 290px) minmax(0, 1fr);
    gap: clamp(26px, 4vw, 48px);
    width: min(980px, 100%);
    max-height: min(820px, calc(100vh - 56px));
    overflow: auto;
    padding: clamp(26px, 4vw, 46px);
    color: #17110f;
    background: #fbf7ef;
    border: 1px solid rgba(35, 21, 15, .12);
    border-radius: 24px;
    box-shadow: 0 35px 100px rgba(0,0,0,.38);
}
.sft-hash-close {
    position: absolute;
    top: 14px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    background: #15110e;
    font-size: 1.7rem;
    line-height: 1;
    text-decoration: none;
}
.sft-hash-cover {
    align-self: start;
    padding: 14px;
    background: linear-gradient(145deg,#17110f,#2b1411 56%,#17121b);
    border-radius: 18px;
}
.sft-hash-cover img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 620px;
    object-fit: contain;
    border-radius: 5px;
}
.sft-hash-copy { min-width: 0; padding-top: 8px; }
.sft-hash-copy h2 {
    margin: 0 0 8px;
    font-family: var(--serif);
    font-size: clamp(2.6rem, 5vw, 4.6rem);
    line-height: .92;
    letter-spacing: -.04em;
}
.sft-hash-tagline {
    margin: 0 0 26px;
    color: #7d5f35;
    font-family: var(--serif);
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.45;
}
.sft-hash-copy h3 {
    margin: 0 0 14px;
    font-size: .78rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.sft-hash-text {
    display: grid;
    gap: 14px;
    color: #554b44;
    font-size: .96rem;
    line-height: 1.75;
}
.sft-hash-text p { margin: 0; }
.sft-hash-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}
@media (max-width: 720px) {
    .sft-hash-modal { padding: 14px; }
    .sft-hash-panel {
        grid-template-columns: 1fr;
        max-height: calc(100vh - 28px);
        padding: 22px 18px 26px;
        border-radius: 18px;
    }
    .sft-hash-cover { width: min(190px, 58vw); margin: 0 auto; }
    .sft-hash-copy h2 { font-size: 2.9rem; }
    .sft-hash-actions .button { width: 100%; }
}
