
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    min-height: 100vh;
    background:
        url('../images/fondo.jpg') no-repeat center center / cover,
        linear-gradient(135deg, #021B38 0%, #054B88 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

.newheader {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    z-index: 99998 !important;
}

.catalogo-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 110px;
    padding-bottom: 40px;
}

.flipbook-viewport {
    width: min(90vw, calc((100vh - 200px) * 1.4135));
    aspect-ratio: 4960 / 3509;
    height: auto;

    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);

    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;
    padding: 0;
    overflow: hidden;
}

.book-positioner {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

    transform: translateX(0);
    transition: transform 0.5s ease-out;
    will-change: transform;
}


.book-positioner.is-cover {
    transform: translateX(-25%);
}

.book-positioner.is-back-cover {
    transform: translateX(25%);
}
.book-positioner:not(.is-cover):not(.is-back-cover) .st-book::after {
    opacity: 1;
}

.book-positioner.is-back-cover .st-book .--right {
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
}
.book-positioner.is-back-cover .st-book .st-page-wrapper:last-child {
    box-shadow: none !important;
}
.st-book {
    position: relative;
    margin: 0 auto;
    isolation: isolate;
}

.st-book::after {
    content: "";
    display: block;

    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;

    width: 2px;
    transform: translateX(-50%);

    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.04),
        rgba(0, 0, 0, 0.24),
        rgba(255, 255, 255, 0.42),
        rgba(0, 0, 0, 0.08)
    );

    box-shadow: 0 0 4px rgba(0, 0, 0, 0.12);

    pointer-events: none;
    z-index: 999999;

    opacity: 0;
    transition: opacity 0.3s ease;
}

.book-positioner.is-cover .st-book::after {
    opacity: 0;
}

.book-positioner:not(.is-cover) .st-book::after {
    opacity: 1;
}

.book-positioner.is-cover .st-book .--left{
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
}

.book-positioner.is-cover .st-book .st-page-wrapper:first-child {
    box-shadow: none !important;
}

.page {
    background-color: #ffffff;
    overflow: hidden;
}

.page-content {
    width: 100%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    background: #ffffff;
}

.page-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.page-blank,
.page-blank .page-content {
    background: #ffffff !important;
}

.controls-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;

    margin-top: 20px;
    z-index: 100;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;

    width: 48px;
    height: 48px;
    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-items: center;

    cursor: pointer;
    font-size: 22px;

    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px) scale(1.05);
}

.page-counter {
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;

    background: rgba(0, 0, 0, 0.3);
    padding: 8px 18px;
    border-radius: 20px;

    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
@media (max-width: 768px) {
    .flipbook-viewport {
        width: min(96vw, calc((100vh - 170px) * 1.4135));
        border-radius: 12px;
    }

    .book-positioner.is-cover {
        transform: translateX(0);
    }

    .st-book.is-cover {
        transform: translateX(0);
    }

    .controls-bar {
        gap: 12px;
        margin-top: 16px;
    }

    .nav-btn {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .page-counter {
        font-size: 13px;
        padding: 8px 12px;
    }
}
