:root {
    --bg: #100c0b;
    --cream: #f3e5d6;
    --red: #bf1018;
    --red-bright: #e22429;
    --gold: #d4a077;
    --line: #65432e;
    --ui: 'DM Sans',Arial,sans-serif;
    --serif: 'Cormorant Garamond',Georgia,serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 75px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--cream);
    font-family: var(--serif);
    font-size: 19px;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    cursor: pointer;
}

img {
    max-width: 100%;
}

h1,h2,h3,p {
    margin-top: 0;
}

h1,h2,h3 {
    font-weight: 400;
}

::selection {
    background: var(--red);
    color: white;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 0 clamp(20px,3.5vw,70px);
    background: #080706f5;
    border-bottom: 1px solid #4c3028;
    backdrop-filter: blur(12px);
}

.brand {
    font-size: 16px;
    letter-spacing: .29em;
    white-space: nowrap;
}

.nav {
    display: flex;
    align-items: center;
    gap: clamp(12px,2vw,34px);
}

.nav a,.header-social,footer a {
    font: 600 10px var(--ui);
    letter-spacing: .15em;
}

.nav a {
    transition: color .2s;
}

.nav a:hover,footer a:hover {
    color: var(--red-bright);
}

.header-social {
    display: flex;
    gap: 15px;
    color: #f2d4b6;
    font-size: 18px;
}

.menu-toggle {
    display: none;
}

.eyebrow {
    font: 600 11px var(--ui);
    letter-spacing: .23em;
    color: #d5a579;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 17px;
}

.eyebrow span {
    height: 1px;
    width: 90px;
    background: #ad1620;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 23px;
    min-height: 47px;
    font: 700 10px var(--ui);
    letter-spacing: .14em;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: background .2s,border-color .2s,color .2s;
}

.btn-red {
    background: var(--red);
    border-color: var(--red);
    color: white;
}

.btn-red:hover {
    background: #e3262e;
    border-color: #e3262e;
}

.btn-outline {
    background: #08060566;
    color: #f3e7da;
    border-color: #a08b78;
}

.btn-outline:hover {
    background: #f0dcc9;
    color: #180b0b;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.hero {
    display: grid;
    grid-template-columns: 38% 62%;
    min-height: 525px;
    background: radial-gradient(ellipse at 36% 35%,#452b1f 0,#120c0b 68%);
}

.hero-book-side {
    position: relative;
    min-height: 525px;
    overflow: hidden;
    background: radial-gradient(ellipse at 36% 58%,#67402a 0,#20130f 55%,#0b0807 100%);
}

.hero-book {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.hero-book-side:after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(90deg,transparent 70%,#130c0b 100%);
}

.hero-story {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 525px;
    overflow: hidden;
    background: radial-gradient(circle at 82% 35%,#5a2d21 0,#1d1110 55%,#100b0a 90%);
}

.hero-cosmos {
    position: absolute;
    inset: 0 0 0 43%;
    background: linear-gradient(90deg,#1d1110 0%,transparent 45%),url('assets/hero-cosmos.webp') center right/cover;
    opacity: .88;
}

.hero-story:after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg,#170e0cf0 0%,#170e0cb5 40%,transparent 100%);
}

.hero-text {
    position: relative;
    z-index: 2;
    padding: 50px 30px 50px 35px;
    max-width: 670px;
}

.hero h1 {
    font-size: clamp(47px,5vw,82px);
    line-height: .86;
    letter-spacing: -.025em;
    margin: 0 0 21px;
    text-shadow: 0 2px 15px #0006;
}

.hero h1 strong {
    display: block;
    color: #e12a2d;
    font-weight: 500;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: clamp(13px,1.25vw,19px);
    letter-spacing: .10em;
    line-height: 1.18;
    text-align: center;
    max-width: 510px;
}

.red-divider {
    height: 1px;
    width: 140px;
    background: #9c1720;
    position: relative;
    margin: 18px auto 24px;
}

.red-divider i {
    position: absolute;
    top: -3px;
    left: 50%;
    width: 7px;
    height: 7px;
    background: #df1b28;
    border-radius: 50%;
}

.hero-description {
    max-width: 480px;
    font-size: clamp(18px,1.7vw,24px);
    line-height: 1.18;
    color: #f0d8c8;
}

.formula {
    position: absolute;
    color: #e7bfa8;
    opacity: .35;
    font: italic 24px var(--serif);
    z-index: 1;
}

.formula-a {
    right: 23%;
    top: 8%;
}

.formula-b {
    right: 4%;
    bottom: 7%;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 335px;
    border-top: 1px solid #5b392b;
}

.section-copy {
    padding: 40px clamp(25px,5.5vw,80px);
}

.section-copy h2 {
    font-size: clamp(34px,3.2vw,52px);
    line-height: 1.0;
    margin-bottom: 18px;
}

.section-copy p {
    font-size: clamp(18px,1.7vw,23px);
    line-height: 1.13;
    color: #e9d7c8;
}

.section-copy em {
    font-style: italic;
}

.synopsis {
    background: #0c0a09;
}

.synopsis blockquote {
    border-left: 3px solid var(--red-bright);
    padding-left: 14px;
    margin: 16px 0 0;
    font-size: clamp(17px,1.5vw,21px);
    line-height: 1.1;
    font-style: italic;
}

.synopsis-image {
    position: relative;
    background: linear-gradient(90deg,#0c0a09 0%,transparent 22%),url('assets/synopsis-couple.webp') center/cover;
    min-height: 335px;
}

.image-quote {
    position: absolute;
    right: 6%;
    top: 28%;
    font: italic clamp(20px,2vw,33px) var(--serif);
    line-height: 1.08;
    transform: rotate(-8deg);
    text-shadow: 0 2px 12px #000;
    color: #f1d8c6;
}

.themes {
    background: linear-gradient(110deg,#160f0d,#080706);
    border-block: 1px solid #5b392b;
    padding: 27px clamp(22px,5.5vw,80px) 25px;
}

.themes-header h2 {
    font-size: clamp(32px,3vw,48px);
    margin-bottom: 18px;
}

.themes-body {
    display: grid;
    grid-template-columns: minmax(0,1fr) 240px;
    gap: 24px;
    align-items: stretch;
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
}

.theme {
    padding: 5px 12px;
    text-align: center;
    border-right: 1px solid #59382e;
}

.theme:last-child {
    border: 0;
}

.theme-symbol {
    font-size: 48px;
    line-height: 1;
    color: #d3a076;
    margin-bottom: 8px;
}

.theme-symbol.red {
    color: #e4262e;
}

.theme h3 {
    font-size: clamp(18px,1.7vw,25px);
    line-height: 1;
    margin-bottom: 9px;
}

.theme p {
    font-size: clamp(14px,1.25vw,18px);
    line-height: 1.08;
    color: #d9c6b8;
    margin: 0;
}

.paper-art {
    position: relative;
    min-height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #100c0b;
}

.paper-art img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
    object-position: center;
    filter: brightness(.95);
}

.paper-art p {
    display: none;
}

.excerpt {
    background: #0d0908;
    grid-template-columns: 43% 57%;
}

.excerpt-image {
    min-height: 290px;
    background: linear-gradient(90deg,transparent 80%,#0d0908),url('assets/fragment-woman.webp') center/cover;
}

.excerpt-copy {
    padding-top: 28px;
    padding-bottom: 26px;
    background: radial-gradient(circle at 100% 40%,#261913,#0d0908 68%);
}

.excerpt-copy h2 {
    font-size: clamp(28px,2.65vw,43px);
    line-height: 1.03;
}

.excerpt-copy p {
    max-width: 680px;
}

.editorial-note {
    font: italic 11px var(--ui)!important;
    color: #9c8578!important;
    margin-top: 14px;
}

.author-buy {
    display: grid;
    grid-template-columns: 64% 36%;
    border-top: 1px solid #59372b;
    background: #110b09;
}

.author-side {
    display: grid;
    grid-template-columns: 30% 70%;
    border-right: 1px solid #5c3a2c;
}

.author-side>img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
    object-position: center 20%;
    filter: sepia(.2);
}

.author-copy {
    padding: 28px 28px;
}

.author-copy h2 {
    font-size: clamp(27px,2.6vw,39px);
    line-height: 1.02;
    margin-bottom: 12px;
}

.author-copy p:not(.eyebrow) {
    font-size: clamp(16px,1.45vw,20px);
    line-height: 1.12;
    color: #e0c9b7;
}

.signature {
    font: italic 34px var(--serif);
    color: #d7a079;
}

.buy-side {
    padding: 26px 26px;
}


.buy-layout {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
}

.buy-layout > img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 260px;

    object-fit: contain;
    object-position: center;

    box-shadow: 5px 8px 18px rgba(0, 0, 0, 0.18);
}

.buy-details p {
    font-size: 17px;
    line-height: 1.15;
}

.buy-details .btn {
    padding: 0 12px;
    white-space: normal;
    text-align: center;
}

.buy-details small {
    display: block;
    font: 11px/1.45 var(--ui);
    color: #b59c8c;
    margin-top: 14px;
}

.closing {
    position: relative;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 40px clamp(24px,6vw,90px);
    background: linear-gradient(90deg,#0c0a0be8 0%,#120b0bc9 43%,#1b0d0c70 100%),url('assets/closing-landscape.webp') center/cover;
}

.closing-content,.closing-quote {
    position: relative;
    z-index: 1;
}

.closing h2 {
    font-size: clamp(35px,3.6vw,56px);
    line-height: 1.0;
    margin-bottom: 22px;
}

.closing-quote {
    font: italic clamp(22px,2.1vw,33px) var(--serif);
    transform: rotate(-6deg);
    max-width: 300px;
    color: #f0cfb5;
}

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 25px clamp(20px,5vw,80px);
    background: #070606;
    border-top: 1px solid #58362b;
}

footer span {
    letter-spacing: .23em;
    font-size: 15px;
}

footer p {
    font: 11px var(--ui);
    color: #ae9685;
    margin: 0;
}

.modal[hidden] {
    display: none;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 18px;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: #000e;
    backdrop-filter: blur(7px);
}

.modal-card {
    position: relative;
    max-width: 690px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    background: #1d1210;
    border: 1px solid #8a4d3d;
    padding: clamp(25px,5vw,50px);
    box-shadow: 0 25px 80px #000c;
}

.modal-card h2 {
    font-size: clamp(32px,4vw,48px);
}

.modal-card p {
    font-size: 21px;
    line-height: 1.2;
}

.modal-close {
    position: absolute;
    right: 13px;
    top: 8px;
    border: 0;
    background: none;
    color: #fff;
    font-size: 36px;
}

@media(max-width:1100px) {
    .nav {
        gap: 13px;
    }
    .nav a {
        font-size: 9px;
    }
    .hero {
        grid-template-columns: 39% 61%;
    }
    .hero-text {
        padding-left: 25px;
    }
    .hero h1 {
        font-size: clamp(43px,5vw,64px);
    }
    .themes-body {
        grid-template-columns: 1fr;
    }
    .paper-art {
        display: flex;
        max-width: 320px;
        width: 100%;
        margin: 0 auto;
    }
    .author-buy {
        grid-template-columns: 1fr;
    }
    .author-side {
        border-right: 0;
        border-bottom: 1px solid #5c3a2c;
    }
    .buy-layout {
        max-width: 540px;
    }
}

@media(max-width:760px) {
    html {
        scroll-padding-top: 68px;
    }
    .site-header {
        height: 62px;
    }
    .brand {
        font-size: 13px;
    }
    .header-social {
        display: none;
    }
    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding: 8px;
        background: none;
        border: 0;
        margin-left: auto;
    }
    .menu-toggle span {
        width: 25px;
        height: 2px;
        background: #e8d4c5;
    }
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #0e0909;
        border-bottom: 1px solid #6a342d;
        padding: 10px 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        box-shadow: 0 20px 30px #0009;
    }
    .nav.is-open {
        display: flex;
    }
    .nav a {
        font-size: 11px;
        padding: 14px 8px;
    }
    .hero {
        grid-template-columns: 1fr;
    }
    .hero-book-side {
        min-height: 390px;
    }
    .hero-book {
        object-fit: contain;
    }
    .hero-story {
        min-height: 420px;
    }
    .hero-cosmos {
        inset: 0 0 0 38%;
    }
    .hero-text {
        padding: 45px 24px;
    }
    .hero h1 {
        font-size: clamp(45px,9vw,68px);
    }
    .split {
        grid-template-columns: 1fr;
    }
    .synopsis-image {
        min-height: 300px;
    }
    .section-copy {
        padding: 35px 24px;
    }
    .excerpt-image {
        min-height: 280px;
    }
    .excerpt .excerpt-image {
        order: 2;
    }
    .excerpt .excerpt-copy {
        order: 1;
    }
    .theme-grid {
        grid-template-columns: repeat(2,1fr);
        gap: 18px;
    }
    .theme {
        border: 1px solid #493027;
        padding: 18px 10px;
    }
    .author-side {
        grid-template-columns: 1fr;
    }
    .author-side>img {
        max-height: 320px;
        min-height: 0;
        object-position: center 15%;
    }
    .author-copy,.buy-side {
        padding: 28px 24px;
    }
    .closing-quote {
        display: none;
    }
}

@media(max-width:440px) {
    .hero-book-side {
        min-height: 320px;
    }
    .hero h1 {
        font-size: 43px;
    }
    .hero h1 strong {
        white-space: normal;
    }
    .hero-subtitle {
        font-size: 12px;
    }
    .actions .btn {
        width: 100%;
    }
    .buy-layout {
        grid-template-columns: 95px 1fr;
        gap: 12px;
    }
    .buy-details .btn {
        font-size: 9px;
    }
    .closing {
        min-height: 280px;
    }
    footer {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* ==========================================
   ACCESIBILIDAD - MOVIMIENTO REDUCIDO
========================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }

}