*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    background:#2c3e50;
    overflow:hidden;
    font-family:Arial, sans-serif;
}

/* Contenedor principal */
#catalogo{

    position:fixed;

    top:0;
    left:0;

    width:100%;

    height:calc(100vh - 90px);

    display:flex;

    justify-content:center;
    align-items:center;

    padding:20px;

}

.portada{
display: flex;
  flex-direction: column; /* Cambia la orientación a columna (uno sobre otro) */
  justify-content: center; /* Centra verticalmente (ahora es el eje principal) */
  align-items: center;    /* Centra horizontalmente (ahora es el eje secundario) */
  height: 100vh;
  
}

/*
.portada img{
    margin: 0;
    padding: 0;
    width: 50%;
    
}
*/
.portada img{

    width:100%;

    max-width:280px;

    height:auto;
}


h6{
    text-align: center;
    color: rgb(249, 232, 5);
}
/* Libro */
#flipbook{

    display:flex;

    justify-content:center;
    align-items:center;

    

}

/* Página */
.page{

    position:relative;

    display:flex;

    justify-content:center;
    align-items:center;

    background:#fff;

   
  

}

/* Portada */
.cover{

    background:linear-gradient(
        135deg,
        #048ec0,
        #2d95f7
    );

    color:white;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
   
}

.cover h1{
    font-size:60px;
    font-weight:bold;
}

.cover p{
    font-size:22px;
}



/* Página producto */
.producto{

    width:100%;
    height:100%;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    padding:20px;

    text-align:center;

}

.producto img{

    max-width:90%;

    max-height:55%;

    width:auto;
    height:auto;

    object-fit:contain;

}

.descripcion{

    margin-top:15px;

    max-width:90%;

    text-align:center;

    color:#6b7280;

    font-size:15px;

    line-height:1.6;
}

.nombre{

    margin-top:20px;

    font-size:30px;
    font-weight:bold;

    text-align:center;
}

.estado{

    margin-top:10px;
    font-size:18px;
}

.numero{

    position:absolute;
    bottom:15px;
    right:20px;

    color:#777;
}

/*
@media(max-width:480px){

    .producto img{
        height:250px;
    }

    .nombre{
        font-size:22px;
    }

}
*/

#loader{

    position:fixed;

    top:0;
    left:0;

    width:100%;
    height:100%;

    background:#111827;

    display:flex;

    justify-content:center;
    align-items:center;

    z-index:99999;
}


/* ==========================
   BARRA DE NAVEGACIÓN
========================== */

.toolbar{

    position:fixed;

    bottom:20px;
    left:50%;

    transform:translateX(-50%);

    z-index:9999;

    display:flex;
    align-items:center;
    gap:12px;

    padding:12px 20px;

    background:rgba(255,255,255,.95);

    backdrop-filter:blur(12px);

    border-radius:60px;

    box-shadow:
    0 10px 30px rgba(0,0,0,.20);

    border:1px solid rgba(255,255,255,.5);

}

/* Información página */

#pageInfo{

    min-width:140px;

    text-align:center;

    font-weight:600;

    color:#374151;

    font-size:15px;
}

/* Botones */

.nav-btn{

    width:50px;
    height:50px;

    border:none;

    border-radius:50%;

    background:linear-gradient(
        135deg,
        #048ec0,
        #1687f1
    );

    color:#fff;

    font-size:20px;

    display:flex;
    align-items:center;
    justify-content:center;

    cursor:pointer;

    transition:all .25s ease;
}

.nav-btn:hover{

    transform:translateY(-3px);

    box-shadow:
    0 8px 20px rgba(37,99,235,.4);

}

.nav-btn:active{

    transform:scale(.95);
}

/* Botón fullscreen */

.fullscreen-btn{

    height:50px;

    border:none;

    border-radius:30px;

    padding:0 20px;

    background:linear-gradient(
        135deg,
        #f00404,
        #900303
    );

    color:white;

    font-weight:600;

    cursor:pointer;

    transition:.3s;
}

.fullscreen-btn:hover{

    transform:translateY(-3px);

    box-shadow:
    0 8px 20px rgba(16,185,129,.35);

}

/* Responsive */

@media(max-width:480px){

    .toolbar{

        width:95%;

        justify-content:center;

        padding:10px;
    }

    #pageInfo{

        min-width:auto;
        font-size:14px;
    }

    .fullscreen-btn{

        padding:0 15px;
        font-size:14px;
    }

}








.progress-container{

    position:fixed;

    top:0;
    left:0;

    width:100%;
    height:5px;

    background:#ddd;

    z-index:99999;
}

#progressBar{

    width:0%;

    height:100%;

    background:#0d6efd;

    transition:.4s;
}

/* =====================================
   MODO CELULAR
===================================== */
/*

@media (max-width: 768px ) {

    body{
        overflow:hidden;
    }

    #catalogo{
        padding:0;
        height:100vh;
    }

    .page{
        width:100% !important;
        height:100% !important;
    }

    .producto{

        padding:5px;

        justify-content:center;

        gap:5px;
    }

    .producto img{

        width:100%;

        height:75vh;

        max-width:100%;

        max-height:none;

        object-fit:contain;
    }

    .nombre{

        font-size:18px;

        margin-top:5px;
    }

    .descripcion{

        font-size:12px;

        margin-top:5px;

        line-height:1.3;
    }

    .badge-producto{
        margin-top:5px;
    }

    .numero{
        display:none;
    }

    .toolbar{

        bottom:10px;

        width:95%;

        border-radius:15px;

        padding:8px;
    }

    .fullscreen-btn{

        width:50px;

        padding:0;

        overflow:hidden;

        font-size:0;
    }

    .fullscreen-btn i{

        font-size:18px;
    }

}

*/