/* =========================================
   PRESENCIA QUE FLORECE
   Diseño principal y responsive
========================================= */

:root {
    --pink: #f4dce5;
    --lilac: #dcd0ed;
    --cream: #f7f0e7;
    --gold: #c7a46b;
    --wine: #a44d62;
    --wine-dark: #793347;
    --text: #55423f;
    --muted: #887773;
    --white: #fffdfb;
    --serif: Georgia, "Times New Roman", serif;
    --sans: "Segoe UI", Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    background: var(--cream);
    color: var(--text);
    font-family: var(--sans);
    line-height: 1.6;
    overflow-x: hidden;
}

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

img {
    display: block;
    max-width: 100%;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

::selection {
    background: var(--pink);
    color: var(--wine-dark);
}

/* HEADER */

.site-header {
    min-height: 94px;
    padding: 15px 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    background: rgba(255, 253, 251, 0.94);
    border-bottom: 1px solid rgba(199, 164, 107, 0.25);
    position: relative;
    z-index: 10;
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.brand-logo {
    width: 205px;
    max-height: 75px;
    object-fit: contain;
    object-position: left center;
}

.header-button {
    padding: 12px 23px;
    border: 1px solid var(--wine);
    color: var(--wine);
    font-size: 13px;
    letter-spacing: 0.04em;
    transition: background 0.25s ease, color 0.25s ease;
}

.header-button:hover {
    background: var(--wine);
    color: var(--white);
}

/* BOTONES */

.primary-button {
    min-height: 54px;
    padding: 15px 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    background: var(--wine);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.025em;
    border: 1px solid var(--wine);
    box-shadow: 0 8px 22px rgba(164, 77, 98, 0.15);
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.primary-button:hover {
    background: var(--wine-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(164, 77, 98, 0.22);
}

.primary-button span {
    font-size: 20px;
    line-height: 1;
}

/* HERO */

.hero {
    min-height: 660px;
    padding: 65px 9% 75px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 35px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(
            ellipse at 8% 0%,
            rgba(244, 220, 229, 0.9),
            transparent 38%
        ),
        radial-gradient(
            ellipse at 94% 100%,
            rgba(220, 208, 237, 0.8),
            transparent 43%
        ),
        var(--cream);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 550px;
}

.eyebrow {
    display: inline-block;
    color: var(--wine);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.23em;
    line-height: 1.8;
}

.hero h1 {
    margin-top: 20px;
    color: #80552f;
    font-family: var(--serif);
    font-size: clamp(48px, 5.4vw, 77px);
    font-weight: 400;
    line-height: 0.99;
    letter-spacing: -0.055em;
}

.hero h1 span {
    color: var(--wine);
    font-style: italic;
    font-weight: 400;
}

.title-divider {
    margin: 22px 0 18px;
    display: flex;
    align-items: center;
    gap: 13px;
    max-width: 315px;
}

.title-divider span {
    height: 1px;
    flex: 1;
    background: var(--gold);
}

.title-divider img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.hero-description {
    max-width: 440px;
    color: var(--muted);
    font-family: var(--serif);
    font-size: 19px;
    line-height: 1.65;
}

.preorder-tag {
    margin-top: 24px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 12px;
    border: 1px solid rgba(164, 77, 98, 0.28);
    color: var(--wine);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.13em;
}

.preorder-dot {
    width: 7px;
    height: 7px;
    background: var(--wine);
    border-radius: 50%;
}

.price-block {
    margin-top: 16px;
}

.price-label {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.hero .price {
    color: var(--wine);
    font-family: var(--serif);
    font-size: 51px;
    line-height: 1.2;
}

.currency {
    font-size: 30px;
    vertical-align: top;
}

.currency-code {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.preorder-dates {
    margin: 5px 0 21px;
    color: var(--muted);
    font-size: 12px;
}

.shipping-note {
    margin-top: 17px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 12px;
}

.shipping-note span {
    color: var(--gold);
    font-size: 19px;
}

/* DECORACIÓN DEL HERO */

.hero-decoration {
    position: absolute;
    z-index: -1;
    pointer-events: none;
    border: 1px solid rgba(199, 164, 107, 0.25);
    border-radius: 50%;
}

.hero-decoration-top {
    width: 390px;
    height: 390px;
    top: -280px;
    left: -120px;
}

.hero-decoration-bottom {
    width: 450px;
    height: 450px;
    right: -310px;
    bottom: -220px;
}

/* LIBRO Y FLOR */

.hero-visual {
    min-width: 0;
    min-height: 475px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.visual-halo {
    position: absolute;
    width: min(100%, 460px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: linear-gradient(
        145deg,
        rgba(255, 253, 251, 0.95),
        rgba(244, 220, 229, 0.7) 48%,
        rgba(220, 208, 237, 0.65)
    );
    border: 1px solid rgba(199, 164, 107, 0.45);
    box-shadow:
        inset 0 0 0 10px rgba(255, 253, 251, 0.3),
        0 22px 65px rgba(128, 85, 47, 0.07);
}

.hero-flower {
    position: absolute;
    width: 70%;
    max-width: 310px;
    top: 10px;
    right: -5px;
    opacity: 0.16;
    transform: rotate(14deg);
}

.book-scene {
    width: 100%;
    min-height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    perspective: 1200px;
}

.book-shadow {
    position: absolute;
    bottom: 30px;
    left: 16%;
    width: 68%;
    height: 35px;
    border-radius: 50%;
    background: rgba(85, 66, 63, 0.18);
    filter: blur(18px);
}

.book {
    width: clamp(205px, 23vw, 290px);
    aspect-ratio: 0.69;
    position: relative;
    z-index: 1;
    transform: rotateY(-9deg) rotateZ(-2deg);
    filter: drop-shadow(12px 16px 15px rgba(85, 66, 63, 0.2));
    transition: transform 0.4s ease;
}

.book:hover {
    transform: rotateY(-3deg) rotateZ(0deg) translateY(-5px);
}

.book-cover {
    width: 100%;
    height: 100%;
    padding: 10% 8% 8%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            ellipse at 15% 12%,
            rgba(244, 220, 229, 0.95),
            transparent 40%
        ),
        radial-gradient(
            ellipse at 95% 90%,
            rgba(220, 208, 237, 0.95),
            transparent 45%
        ),
        #fffaf2;
    border: 1px solid var(--gold);
    box-shadow: inset 0 0 0 5px rgba(199, 164, 107, 0.12);
}

.book-cover::before {
    content: "";
    position: absolute;
    inset: 9px;
    border: 1px solid rgba(199, 164, 107, 0.48);
    pointer-events: none;
}

.cover-topline {
    position: relative;
    z-index: 1;
    color: #916a3d;
    font-size: clamp(5px, 0.6vw, 8px);
    letter-spacing: 0.14em;
    text-align: center;
}

.cover-flower-wrap {
    width: 84%;
    height: 48%;
    margin-top: 9%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cover-flower {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cover-title {
    position: relative;
    z-index: 1;
    color: #80552f;
    font-family: var(--serif);
    font-size: clamp(20px, 2.5vw, 32px);
    line-height: 0.98;
    text-align: center;
    letter-spacing: -0.06em;
}

.cover-title span {
    display: block;
    margin-top: 5px;
    color: var(--wine);
    font-style: italic;
}

.cover-rule {
    width: 55%;
    height: 1px;
    margin: 11px 0;
    background: var(--gold);
}

.cover-subtitle {
    color: #80552f;
    font-size: clamp(5px, 0.6vw, 7px);
    letter-spacing: 0.12em;
    text-align: center;
}

.cover-author {
    margin-top: auto;
    padding-bottom: 4%;
    color: var(--wine);
    font-size: clamp(6px, 0.7vw, 8px);
    font-weight: 700;
    letter-spacing: 0.16em;
}

.book-pages {
    position: absolute;
    top: 5px;
    right: -8px;
    width: 9px;
    height: calc(100% - 10px);
    background: repeating-linear-gradient(
        90deg,
        #f5e9d9,
        #f5e9d9 2px,
        #e4d5c5 3px,
        #f5e9d9 4px
    );
    transform: skewY(2deg);
}

.floating-note {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 62px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 17px;
    background: rgba(255, 253, 251, 0.95);
    border: 1px solid rgba(199, 164, 107, 0.4);
    box-shadow: 0 8px 25px rgba(85, 66, 63, 0.07);
}

.note-flower {
    color: var(--wine);
    font-size: 27px;
}

.floating-note strong,
.floating-note span:not(.note-flower) {
    display: block;
}

.floating-note strong {
    font-family: var(--serif);
    font-size: 14px;
    font-weight: 400;
}

.floating-note div span {
    color: var(--muted);
    font-size: 10px;
}

.visual-caption {
    position: relative;
    z-index: 2;
    margin-top: -8px;
    color: var(--muted);
    font-family: var(--serif);
    font-size: 14px;
    font-style: italic;
}

/* SECCIÓN DE PREVENTA */

.preorder-section {
    padding: 100px 9%;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    gap: 75px;
    position: relative;
    overflow: hidden;
    background: var(--white);
}

.section-flower {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(199, 164, 107, 0.4);
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(244, 220, 229, 0.55),
            rgba(220, 208, 237, 0.3) 60%,
            transparent 70%
        );
}

.section-flower img {
    width: 85%;
    height: 85%;
    object-fit: contain;
}

.section-content {
    max-width: 600px;
}

.section-content h2 {
    margin: 14px 0 20px;
    color: #80552f;
    font-family: var(--serif);
    font-size: clamp(38px, 4vw, 55px);
    font-weight: 400;
    line-height: 1.12;
}

.section-content h2 span {
    color: var(--wine);
    font-style: italic;
}

.section-description {
    max-width: 530px;
    color: var(--muted);
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.8;
}

.purchase-details {
    margin: 28px 0;
    display: grid;
    gap: 20px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.detail-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wine);
    background: var(--pink);
    border-radius: 50%;
    font-size: 21px;
}

.detail-item strong {
    display: block;
    color: var(--text);
    font-size: 13px;
}

.detail-item p {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.secondary-button {
    margin-top: 3px;
}

.section-footnote {
    margin-top: 15px;
    color: var(--muted);
    font-size: 11px;
}

/* CONTACTO */

.contact-section {
    padding: 80px 9%;
    background:
        radial-gradient(
            ellipse at 0% 100%,
            rgba(220, 208, 237, 0.6),
            transparent 40%
        ),
        var(--pink);
}

.contact-heading {
    max-width: 580px;
    margin: 0 auto 38px;
    text-align: center;
}

.contact-heading h2 {
    margin-top: 9px;
    color: #80552f;
    font-family: var(--serif);
    font-size: clamp(42px, 5vw, 58px);
    font-weight: 400;
}

.contact-heading h2 span {
    color: var(--wine);
}

.contact-heading p {
    margin-top: 9px;
    color: var(--muted);
    font-family: var(--serif);
    font-size: 16px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-card {
    min-width: 0;
    min-height: 155px;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    background: rgba(255, 253, 251, 0.8);
    border: 1px solid rgba(199, 164, 107, 0.4);
    transition: transform 0.25s ease, background 0.25s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    background: var(--white);
}

.contact-icon {
    margin-bottom: 4px;
    color: var(--wine);
    font-size: 21px;
}

.contact-label {
    color: var(--muted);
    font-size: 11px;
}

.contact-card strong {
    max-width: 100%;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
}

/* FOOTER */

.site-footer {
    min-height: 120px;
    padding: 25px 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    background: var(--white);
    border-top: 1px solid rgba(199, 164, 107, 0.25);
}

.footer-brand img {
    width: 130px;
    max-height: 60px;
    object-fit: contain;
}

.site-footer p {
    color: var(--muted);
    font-family: var(--serif);
    font-size: 13px;
    font-style: italic;
    text-align: center;
}

.back-to-top {
    color: var(--wine);
    font-size: 11px;
    white-space: nowrap;
}

/* TABLETAS */

@media (max-width: 900px) {

    .hero {
        padding: 55px 6%;
        gap: 15px;
    }

    .hero h1 {
        font-size: clamp(44px, 6vw, 65px);
    }

    .hero-visual {
        min-height: 400px;
    }

    .book-scene {
        min-height: 390px;
    }

    .floating-note {
        right: -5px;
        bottom: 45px;
        padding: 10px 12px;
    }

    .preorder-section {
        padding: 75px 6%;
        gap: 40px;
    }

    .contact-section {
        padding: 70px 6%;
    }
}

/* CELULARES */

@media (max-width: 600px) {

    html {
        scroll-padding-top: 20px;
    }

    .site-header {
        min-height: 76px;
        padding: 12px 5%;
        gap: 12px;
    }

    .brand-logo {
        width: 135px;
        max-height: 55px;
    }

    .header-button {
        padding: 10px 12px;
        font-size: 11px;
        text-align: center;
    }

    .hero {
        padding: 48px 7% 55px;
        grid-template-columns: 1fr;
        gap: 12px;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .eyebrow {
        font-size: 10px;
        letter-spacing: 0.17em;
    }

    .hero h1 {
        margin-top: 15px;
        font-size: clamp(43px, 12vw, 61px);
    }

    .title-divider {
        margin: 20px auto 17px;
        max-width: 250px;
    }

    .hero-description {
        max-width: 380px;
        margin: 0 auto;
        font-size: 17px;
    }

    .preorder-tag {
        margin-top: 20px;
    }

    .hero .price {
        font-size: 47px;
    }

    .preorder-dates {
        max-width: 290px;
        margin: 8px auto 20px;
        line-height: 1.7;
    }

    .primary-button {
        width: 100%;
        max-width: 350px;
        min-height: 54px;
        padding: 14px 18px;
        gap: 15px;
        font-size: 13px;
    }

    .shipping-note {
        justify-content: center;
        font-size: 11px;
    }

    .hero-visual {
        min-height: 390px;
        margin-top: 10px;
    }

    .visual-halo {
        width: min(94%, 350px);
    }

    .hero-flower {
        width: 70%;
        max-width: 240px;
        top: 20px;
        right: 0;
    }

    .book-scene {
        min-height: 375px;
    }

    .book {
        width: clamp(205px, 62vw, 260px);
    }

    .cover-title {
        font-size: clamp(23px, 7vw, 29px);
    }

    .cover-topline {
        font-size: 6px;
    }

    .cover-subtitle {
        font-size: 6px;
    }

    .cover-author {
        font-size: 7px;
    }

    .floating-note {
        right: 0;
        bottom: 43px;
        padding: 9px 12px;
        gap: 7px;
        text-align: left;
    }

    .note-flower {
        font-size: 23px;
    }

    .floating-note strong {
        font-size: 12px;
    }

    .floating-note div span {
        font-size: 9px;
    }

    .visual-caption {
        margin-top: -1px;
        font-size: 12px;
    }

    .preorder-section {
        padding: 65px 7%;
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .section-flower {
        width: 75%;
        max-width: 270px;
        margin: 0 auto;
    }

    .section-content {
        text-align: center;
    }

    .section-content h2 {
        font-size: 42px;
    }

    .section-description {
        font-size: 16px;
    }

    .purchase-details {
        text-align: left;
        gap: 18px;
    }

    .detail-item {
        gap: 12px;
    }

    .detail-item strong {
        font-size: 12px;
    }

    .detail-item p {
        font-size: 12px;
    }

    .section-footnote {
        line-height: 1.7;
    }

    .contact-section {
        padding: 60px 7%;
    }

    .contact-heading {
        margin-bottom: 28px;
    }

    .contact-heading h2 {
        font-size: 45px;
    }

    .contact-heading p {
        font-size: 15px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .contact-card {
        min-height: 115px;
        padding: 17px 14px;
    }

    .contact-card strong {
        font-size: 12px;
    }

    .site-footer {
        padding: 25px 7%;
        flex-direction: column;
        justify-content: center;
        gap: 12px;
    }

    .footer-brand img {
        width: 120px;
    }

    .site-footer p {
        font-size: 12px;
    }
}

/* CELULARES MUY ESTRECHOS */

@media (max-width: 360px) {

    .brand-logo {
        width: 112px;
    }

    .header-button {
        padding: 9px 8px;
        font-size: 10px;
    }

    .hero {
        padding-right: 5%;
        padding-left: 5%;
    }

    .hero h1 {
        font-size: 41px;
    }

    .floating-note {
        right: -3px;
        padding: 8px;
    }

    .book {
        width: 195px;
    }

    .cover-title {
        font-size: 22px;
    }
}



/* ==========================================
   PRESENCIA QUE FLORECE
   SECCIÓN EDITORIAL - HISTORIA DEL LIBRO
========================================== */

.story-section {
    position: relative;
    padding: 115px 24px 125px;
    background: #f7f0e7;
    overflow: hidden;
}

.story-container {
    position: relative;
    max-width: 1050px;
    margin: 0 auto;
    z-index: 1;
}

.story-heading {
    max-width: 850px;
    margin: 0 auto 65px;
    text-align: center;
}

.story-heading h2 {
    margin: 22px 0 30px;
    color: #533c47;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 4.3vw, 59px);
    font-weight: 400;
    line-height: 1.18;
    letter-spacing: -1.2px;
}

.story-heading h2 span {
    display: block;
    color: #a44d62;
    font-style: italic;
}

.story-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 17px;
}

.story-divider span {
    width: 70px;
    height: 1px;
    background: #c7a46b;
    opacity: .65;
}

.story-divider img {
    width: 43px;
    height: 43px;
    object-fit: contain;
    border-radius: 50%;
}

.story-body {
    max-width: 790px;
    margin: 0 auto;
}

.story-body > p {
    margin: 0 0 28px;
    color: #64535a;
    font-size: 18px;
    line-height: 1.95;
    font-weight: 400;
}

.story-highlight {
    position: relative;
    margin: 47px 0;
    padding: 42px 45px;
    border-left: 3px solid #c7a46b;
    border-radius: 0 18px 18px 0;
    background: #f4dce5;
}

.story-highlight-symbol {
    display: block;
    margin-bottom: 15px;
    color: #a44d62;
    font-size: 27px;
}

.story-highlight p {
    margin: 0;
    color: #6e4355;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(19px, 2.2vw, 25px);
    line-height: 1.75;
}

.story-highlight strong {
    color: #a44d62;
    font-weight: 600;
}

.story-closing {
    margin-top: 50px;
    padding: 46px 35px;
    text-align: center;
    border-top: 1px solid rgba(199, 164, 107, .5);
    border-bottom: 1px solid rgba(199, 164, 107, .5);
}

.story-closing p {
    margin: 0 0 22px;
    color: #64535a;
    font-size: 19px;
    line-height: 1.85;
}

.story-closing strong {
    display: block;
    color: #a44d62;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 3.8vw, 43px);
    font-style: italic;
    font-weight: 400;
    line-height: 1.3;
}

/* TABLETS */

@media (max-width: 900px) {
    .story-section {
        padding: 90px 28px 100px;
    }

    .story-heading {
        margin-bottom: 50px;
    }

    .story-body > p {
        font-size: 17px;
        line-height: 1.85;
    }
}

/* MÓVILES */

@media (max-width: 600px) {
    .story-section {
        padding: 75px 21px 85px;
    }

    .story-heading {
        margin-bottom: 42px;
    }

    .story-heading h2 {
        font-size: clamp(31px, 8vw, 40px);
        letter-spacing: -.6px;
    }

    .story-divider span {
        width: 46px;
    }

    .story-divider img {
        width: 37px;
        height: 37px;
    }

    .story-body > p {
        margin-bottom: 23px;
        font-size: 16px;
        line-height: 1.85;
    }

    .story-highlight {
        margin: 36px 0;
        padding: 30px 24px;
        border-radius: 0 13px 13px 0;
    }

    .story-highlight p {
        font-size: 19px;
        line-height: 1.7;
    }

    .story-closing {
        margin-top: 38px;
        padding: 35px 12px;
    }

    .story-closing p {
        font-size: 16px;
        line-height: 1.8;
    }

    .story-closing strong {
        font-size: 31px;
    }
}



/* ==========================================
   PRESENCIA QUE FLORECE
   CARRITO PERSONALIZADO
========================================== */

.pqf-cart-page {
    background: var(--cream);
}

.pqf-cart-main {
    min-height: 65vh;
    padding: 75px 7% 95px;
    background:
        radial-gradient(
            ellipse at 0% 0%,
            rgba(244, 220, 229, .65),
            transparent 42%
        ),
        var(--cream);
}

/* ENCABEZADO */

.pqf-cart-heading {
    max-width: 850px;
    margin: 0 auto 55px;
    text-align: center;
}

.pqf-cart-heading h1 {
    margin: 12px 0 14px;
    color: #80552f;
    font-family: var(--serif);
    font-size: clamp(44px, 6vw, 70px);
    font-weight: 400;
    line-height: 1.1;
}

.pqf-cart-heading h1 span {
    color: var(--wine);
}

.pqf-cart-heading > p {
    color: var(--muted);
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.7;
}

.pqf-cart-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

.pqf-cart-divider span {
    width: 65px;
    height: 1px;
    background: var(--gold);
}

.pqf-cart-divider img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* CONTENEDOR DEL CARRITO */

.pqf-cart-content {
    max-width: 1150px;
    margin: 0 auto;
}

.pqf-cart-content .wp-block-woocommerce-cart {
    width: 100%;
}

/* TARJETAS DEL CARRITO */

.pqf-cart-page .wc-block-cart-items,
.pqf-cart-page .wc-block-cart__totals-title,
.pqf-cart-page .wc-block-cart__totals {
    border-color: rgba(199, 164, 107, .35);
}

.pqf-cart-page .wc-block-cart__main,
.pqf-cart-page .wc-block-cart__sidebar {
    min-width: 0;
}

.pqf-cart-page .wc-block-cart-items {
    background: var(--white);
}

.pqf-cart-page .wc-block-cart-items__row {
    border-color: rgba(199, 164, 107, .25);
}

.pqf-cart-page .wc-block-components-product-name {
    color: var(--wine-dark);
    font-family: var(--serif);
    font-size: 19px;
    font-weight: 400;
}

.pqf-cart-page .wc-block-components-product-price {
    color: var(--wine);
    font-weight: 600;
}

/* RESUMEN DE COMPRA */

.pqf-cart-page .wc-block-cart__sidebar {
    padding: 25px;
    background: var(--white);
    border: 1px solid rgba(199, 164, 107, .35);
}

.pqf-cart-page .wc-block-cart__totals-title {
    color: #80552f;
    font-family: var(--serif);
    font-size: 22px;
}

/* BOTÓN FINALIZAR COMPRA */

.pqf-cart-page .wc-block-cart__submit-button {
    min-height: 55px;
    background: var(--wine);
    color: var(--white);
    border: 1px solid var(--wine);
    transition:
        background .25s ease,
        transform .25s ease;
}

.pqf-cart-page .wc-block-cart__submit-button:hover {
    background: var(--wine-dark);
    color: var(--white);
    transform: translateY(-2px);
}

.pqf-cart-page .wc-block-cart__submit-button .wc-block-components-button__text {
    color: inherit;
    font-size: 14px;
    font-weight: 600;
}

/* ENLACES */

.pqf-cart-page .wc-block-components-product-details a,
.pqf-cart-page .wc-block-cart-item__remove-link {
    color: var(--wine);
}

/* OCULTAR RECOMENDACIONES DEL CARRITO */

.pqf-cart-page .wp-block-woocommerce-empty-cart-block
.wc-block-grid__products {
    display: none;
}

/* INFORMACIÓN DE ENVÍO */

.pqf-cart-shipping {
    max-width: 1150px;
    margin: 38px auto 0;
    padding: 23px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 1px solid rgba(199, 164, 107, .4);
    background: rgba(255, 253, 251, .65);
    text-align: center;
}

.pqf-cart-shipping > span {
    color: var(--gold);
    font-size: 27px;
}

.pqf-cart-shipping p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.pqf-cart-shipping strong {
    color: var(--wine-dark);
}

/* RESPONSIVE */

@media (max-width: 900px) {

    .pqf-cart-main {
        padding: 60px 5% 75px;
    }

    .pqf-cart-page .wc-block-cart__sidebar {
        padding: 20px;
    }
}

@media (max-width: 600px) {

    .pqf-cart-main {
        padding: 48px 5% 65px;
    }

    .pqf-cart-heading {
        margin-bottom: 35px;
    }

    .pqf-cart-heading h1 {
        font-size: 46px;
    }

    .pqf-cart-heading > p {
        font-size: 16px;
    }

    .pqf-cart-page .wc-block-cart__sidebar {
        padding: 18px 14px;
    }

    .pqf-cart-shipping {
        margin-top: 25px;
        padding: 20px 15px;
        flex-direction: column;
        gap: 5px;
    }
}


/* ACCESIBILIDAD: MOVIMIENTO REDUCIDO */

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}


/* ==========================================
   CARRITO - HEADER Y FOOTER ANCHO COMPLETO
========================================== */

body.pqf-cart-page {
    margin: 0;
    padding: 0;
}

/* Encabezado */

body.pqf-cart-page .site-header {
    width: 100%;
    max-width: none;
    min-height: 94px;
    margin: 0;
    padding: 15px 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 253, 251, 0.94);
}

/* Logo */

body.pqf-cart-page .brand-logo {
    width: 205px;
    max-width: 100%;
    max-height: 75px;
    object-fit: contain;
}

/* Footer */

body.pqf-cart-page .site-footer {
    width: 100%;
    max-width: none;
    min-height: 120px;
    margin: 0;
    padding: 25px 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fffdfb;
}

/* Responsive */

@media (max-width: 600px) {
    body.pqf-cart-page .site-header {
        min-height: 76px;
        padding: 12px 5%;
    }

    body.pqf-cart-page .brand-logo {
        width: 135px;
        max-height: 55px;
    }

    body.pqf-cart-page .site-footer {
        padding: 25px 7%;
        flex-direction: column;
        justify-content: center;
        gap: 12px;
    }
}



/* Ocultar recomendaciones del carrito vacío */

.pqf-cart-page .wp-block-woocommerce-empty-cart-block
.wc-block-grid__products,
.pqf-cart-page .wp-block-woocommerce-empty-cart-block
.wc-block-grid__product,
.pqf-cart-page .wp-block-woocommerce-empty-cart-block
.wp-block-heading,
.pqf-cart-page .wp-block-woocommerce-empty-cart-block
.wc-block-cart__empty-cart__title,
.pqf-cart-page .wp-block-woocommerce-empty-cart-block
.wc-block-cart__empty-cart__link {
    display: none !important;
}

/* ==========================================
   CARRITO VACÍO - OCULTAR ENLACE A LA TIENDA
========================================== */

/* Botón Ver la tienda del bloque WooCommerce */
body.pqf-cart-page .wp-block-woocommerce-empty-cart-block
.wc-block-cart__empty-cart__link,

body.pqf-cart-page .wp-block-woocommerce-empty-cart-block
.wc-block-cart__empty-cart__link a,

body.pqf-cart-page .wp-block-woocommerce-empty-cart-block
.wp-block-button,

body.pqf-cart-page .wp-block-woocommerce-empty-cart-block
.wp-block-button__link {
    display: none !important;
}

/* Ocultar recomendaciones y título Nuevo en la tienda */
body.pqf-cart-page .wp-block-woocommerce-empty-cart-block
.wc-block-grid,

body.pqf-cart-page .wp-block-woocommerce-empty-cart-block
.wp-block-heading {
    display: none !important;
}

/* Ocultar específicamente el enlace a /tienda/ */
body.pqf-cart-page .wp-block-woocommerce-empty-cart-block
a[href*="/tienda/"] {
    display: none !important;
}
/* ============================================
   CARRITO WOOCOMMERCE BLOCKS — V3
   Un solo precio por producto. En móvil usamos
   el precio DENTRO del detalle del producto,
   evitando que la celda de total se superponga.
============================================ */
body.pqf-cart-page .pqf-cart-content,
body.pqf-cart-page .wc-block-cart,
body.pqf-cart-page .wc-block-components-sidebar-layout,
body.pqf-cart-page .wc-block-cart__main,
body.pqf-cart-page .wc-block-cart__sidebar {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
}
/* Escritorio: mostrar el subtotal de la línea, no el precio repetido. */
body.pqf-cart-page .wc-block-cart-items__row .wc-block-cart-item__prices {
    display: none !important;
}
body.pqf-cart-page .wc-block-cart-items__row .wc-block-cart-item__total .wc-block-components-formatted-money-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--wine);
}
@media (max-width: 781px) {
    body.pqf-cart-page .pqf-cart-main {
        box-sizing: border-box;
        width: 100%;
        padding: 38px 16px 60px;
    }
    body.pqf-cart-page .pqf-cart-content,
    body.pqf-cart-page .wp-block-woocommerce-cart,
    body.pqf-cart-page .wc-block-cart,
    body.pqf-cart-page .wc-block-components-sidebar-layout,
    body.pqf-cart-page .wc-block-cart__main,
    body.pqf-cart-page .wc-block-cart__sidebar {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-left: 0;
        margin-right: 0;
    }
    body.pqf-cart-page .wc-block-components-sidebar-layout {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
    body.pqf-cart-page .wc-block-cart-items,
    body.pqf-cart-page .wc-block-cart-items tbody {
        display: block;
        width: 100%;
        max-width: 100%;
    }
    body.pqf-cart-page .wc-block-cart-items__row {
        display: grid !important;
        grid-template-columns: 80px minmax(0, 1fr) !important;
        grid-template-rows: auto !important;
        gap: 14px !important;
        width: 100%;
        box-sizing: border-box;
        padding: 18px 0;
        align-items: start;
    }
    body.pqf-cart-page .wc-block-cart-items__row > .wc-block-cart-item__image,
    body.pqf-cart-page .wc-block-cart-items__row > .wc-block-cart-item__product {
        display: block !important;
        position: static !important;
        inset: auto !important;
        transform: none !important;
        float: none !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: left !important;
    }
    body.pqf-cart-page .wc-block-cart-items__row > .wc-block-cart-item__image {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }
    body.pqf-cart-page .wc-block-cart-items__row > .wc-block-cart-item__image img {
        display: block;
        width: 80px;
        height: auto;
        max-width: 100%;
        object-fit: contain;
    }
    body.pqf-cart-page .wc-block-cart-items__row > .wc-block-cart-item__product {
        grid-column: 2 !important;
        grid-row: 1 !important;
        overflow-wrap: anywhere;
    }
    /* El precio se coloca debajo del título en su misma celda. */
    body.pqf-cart-page .wc-block-cart-items__row .wc-block-components-product-name {
        display: block !important;
        position: static !important;
        font-size: 16px;
        line-height: 1.4;
        margin: 0 0 8px !important;
    }
    body.pqf-cart-page .wc-block-cart-items__row .wc-block-cart-item__prices {
        display: block !important;
        position: static !important;
        margin: 0 0 8px !important;
        line-height: 1.4;
        text-align: left;
    }
    body.pqf-cart-page .wc-block-cart-items__row .wc-block-cart-item__prices .wc-block-components-product-price,
    body.pqf-cart-page .wc-block-cart-items__row .wc-block-cart-item__prices .wc-block-components-formatted-money-amount {
        font-size: 17px !important;
        font-weight: 700;
        line-height: 1.4;
        color: var(--wine);
    }
    /* La columna del total es la que invadía el nombre del libro. */
    body.pqf-cart-page .wc-block-cart-items__row > .wc-block-cart-item__total {
        display: none !important;
    }
    body.pqf-cart-page .wc-block-cart__sidebar {
        padding: 18px 14px;
    }
    body.pqf-cart-page .wc-block-cart__submit-button {
        width: 100%;
    }
    body.pqf-cart-page .wc-block-cart__sidebar,
    body.pqf-cart-page .wc-block-cart__totals,
    body.pqf-cart-page .wc-block-components-totals-wrapper {
        overflow-wrap: anywhere;
    }
}
@media (max-width: 390px) {
    body.pqf-cart-page .pqf-cart-main {
        padding-left: 12px;
        padding-right: 12px;
    }
    body.pqf-cart-page .wc-block-cart-items__row {
        grid-template-columns: 64px minmax(0, 1fr) !important;
        gap: 10px !important;
    }
    body.pqf-cart-page .wc-block-cart-items__row > .wc-block-cart-item__image img {
        width: 64px;
    }
}

/* Portada real del libro: imagen con volumen integrado */
.book.book-new-cover {
    aspect-ratio: 782 / 1122;
    filter: drop-shadow(12px 16px 15px rgba(85, 66, 63, 0.20));
}
.book-new-cover-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
