/* ===== CONFIGURACIÓN GENERAL ===== */

body{
    padding-top:160px;
    background:#f4f6f8;
    font-family: Arial, Helvetica, sans-serif;
}

/* ===== CONTENEDOR DEL VISOR ===== */

.viewer{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:20px;
    margin:40px auto;
    max-width:1000px;
}

/* ===== BOTONES DE NAVEGACIÓN ===== */

.nav-btn{
    background:#0a2a43;
    color:#fff;
    border:none;
    padding:16px 20px;
    font-size:26px;
    cursor:pointer;
    border-radius:10px;
    transition:all 0.25s ease;
    box-shadow:0 4px 10px rgba(0,0,0,0.2);
}

.nav-btn:hover{
    background:#14679a;
    transform:scale(1.08);
}

/* ===== FLIPBOOK ===== */

.flip-book{
    width:390px;
    height:500px;
    background:white;
    box-shadow:0 10px 25px rgba(0,0,0,0.25);
    border-radius:6px;
    overflow:hidden;
}

/* ===== PÁGINAS ===== */

.page{
    background:white;
    display:flex;
    align-items:center;
    justify-content:center;

    overflow: hidden;
}

.page.cover{
    background:#000;
}

/* imágenes dentro de páginas */
.page img{
    width:100%;
    height:100%;
    object-fit: cover;
    display:block;
}
.page{
    position:relative;
}

.page::after{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:transparent;
}

/* ===== OCULTAR MINIATURAS SI EXISTEN ===== */

.thumbnails{
    display:none !important;
}

/* ===== CONTROLES ANTIGUOS (por si siguen cargando) ===== */

.controls{
    display:none !important;
}

/* ===== RESPONSIVE ===== */

@media (max-width:768px){

    .viewer{
        gap:10px;
    }

   .flip-book{
    width:390px;
    height:500px;
    background:white;
    box-shadow:0 10px 25px rgba(0,0,0,0.25);
    border-radius:6px;
    overflow:hidden;
    padding:0;
}

    .nav-btn{
        font-size:22px;
        padding:12px 14px;
    }
}

@media (max-width:480px){

    .viewer{
        flex-direction:column;
    }

    .nav-btn{
        width:100%;
        max-width:200px;
    }
}