@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    display: grid;
    place-content: center;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background: #000000;
}

.flipbook {
    width: 90vw;
    height: 80vh;
    max-width: 1000px;
    max-height: 600px;
}

.flipbook .hard {
    position: relative;
    overflow: hidden;
    color: white;
    font-weight: bold;
    border: none;
    background: transparent !important;
}

.flipbook .hard::before {
    content: "";
    position: absolute;
    inset: 2px;
    background-color: #fff;
    background-image: url("images/PORTADA.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.flipbook .hard small,
.flipbook .hard {
    position: relative;
    z-index: 1;
}

.flipbook .hard small{
    font-style: italic;
    font-weight: lighter;
    opacity: 0.7;
    font-size: 14px;
}

.flipbook .page {
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.11);
    padding: 2px;
}

.page img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: 0;
    display: block;
}

.flipbook .page small{
    font-size: 14px;
    margin-bottom: 10px;
}





.btn-volver {
    position: fixed;
    top: 25px;
    left: 25px;
    z-index: 9999;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 11px 18px;

    color: #fff;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;

    background: #03a9f4;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);

    transition: all 0.3s ease;
}

.btn-volver span {
    font-size: 22px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.btn-volver:hover {
    background: #383838;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(11, 92, 255, 0.35);
}

.btn-volver:hover span {
    transform: translateX(-4px);
}


/* =========================================
   VISOR DE IMÁGENES A PANTALLA COMPLETA
   ========================================= */

#imageViewer {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;

    background: rgba(0, 0, 0, 0.95);

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 99999;

    opacity: 0;
    visibility: hidden;

    transition: opacity 0.25s ease, visibility 0.25s ease;
}

#imageViewer.active {
    opacity: 1;
    visibility: visible;
}


/* Imagen ampliada */

#fullscreenImage {
    max-width: 95vw;
    max-height: 95vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 4px;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}


/* Botón X */

#closeViewer {
    position: absolute;

    top: 20px;
    right: 25px;

    width: 50px;
    height: 50px;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.15);

    color: white;

    font-size: 38px;
    line-height: 45px;

    cursor: pointer;

    z-index: 100000;

    transition: all 0.2s ease;
}

#closeViewer:hover {
    background: rgba(255, 255, 255, 0.3);

    transform: scale(1.1);
}


/* Indica que las imágenes se pueden tocar */

.flipbook .page img {
    cursor: pointer;
}


.flipbook .page img {
    cursor: zoom-in;
    user-select: none;
    -webkit-user-drag: none;
}


/* =========================================
   FLECHAS DE NAVEGACIÓN
   ========================================= */

.nav-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;

    background: rgba(3, 169, 244, 0.85);
    color: #fff;
    font-size: 18px;

    cursor: pointer;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.25s ease;
}

.nav-arrow:hover {
    background: #03a9f4;
    transform: translateY(-50%) scale(1.1);
}

.nav-arrow.disabled {
    opacity: 0.25;
    pointer-events: none;
}

.nav-prev {
    left: 25px;
}

.nav-next {
    right: 25px;
}

@media (max-width: 700px) {
    .nav-arrow {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
    .nav-prev { left: 10px; }
    .nav-next { right: 10px; }
}


/* =========================================
   HINT: esquina de página doblada (arriba-derecha)
   ========================================= */

.corner-hint {
    position: fixed;
    width: 46px;
    height: 46px;
    pointer-events: none; /* no debe bloquear el click/drag de turn.js */
    z-index: 50;
    overflow: hidden;
}

.corner-hint::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        225deg,
        rgba(255, 255, 255, 0.97) 50%,
        rgba(0, 0, 0, 0.06) 50.5%,
        rgba(0, 0, 0, 0.16) 62%,
        transparent 72%
    );
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    box-shadow: -4px 4px 10px rgba(0, 0, 0, 0.3);
    transform-origin: top right;
    animation: cornerPeek 2.8s ease-in-out infinite;
}

@keyframes cornerPeek {
    0%, 14%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.8;
    }
    7% {
        transform: scale(1.18) rotate(-6deg);
        opacity: 1;
    }
}



.footer-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

.footer-text {
    text-align: center;
}

.data-fiscal {
    width: 60px;
    height: auto;
    display: block;
}