/*=====================================================
                    Tipografia
======================================================*/
@font-face{
    font-family: "RobotoCondensedLight";
    src: url("../webfonts/robotocondensed-light.ttf"), 
    url("../webfonts/robotocondensed-light.eot"), 
    url("../webfonts/robotocondensed-light.woff"), 
    url("../webfonts/robotocondensed-light.woff2"), 
    url("../webfonts/robotocondensed-light.svg");
}
@font-face{
    font-family: "RobotoRegular";
    src: url("../webfonts/roboto-regular.ttf"), 
    url("../webfonts/roboto-regular.eot"), 
    url("../webfonts/roboto-regular.woff"), 
    url("../webfonts/roboto-regular.woff2"), 
    url("../webfonts/roboto-regular.svg");
}
@font-face{
    font-family: "OswaldLight";
    src: url("../webfonts/oswald-light.ttf"), 
    url("../webfonts/oswald-light.eot"), 
    url("../webfonts/oswald-light.woff"), 
    url("../webfonts/oswald-light.woff2"), 
    url("../webfonts/oswald-light.svg");
}

body,html{
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-family: "RobotoRegular";
    position: relative;
    background-color: #fff;
}

.main-container{
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000428;
    background: -webkit-linear-gradient(to right, #004e92, #000428);
    background: linear-gradient(to right, #004e92, #000428);
}

.main-container > .login,
.main-container > .hero-body{
    height: auto;
    width: 100%;
    max-width: 400px;
    min-width: 300px;
}

.is-photo{
    max-width: 300px;
    height: auto;
    margin: 0 auto;
}

.text-condensedLight{ font-family: "RobotoCondensedLight"; }
.tittles{ font-family: "OswaldLight"; }
.full-width{
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}
.list-unstyle{
    margin: 0;
    padding: 0;
    list-style: none;
    box-sizing: border-box;
}
.img-responsive{
    width: 100%;
    height: auto;
}
.divider-menu-h{
    height: 0 !important;
    border-top: 1px solid #E1E1E1;
    width: 92% !important;
    margin: 0 auto !important;
}

.page-container{
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    display: flex;
    justify-content: space-between;
}

/*  Scrolls */
.scroll::-webkit-scrollbar{
    width: 8px;
}
.scroll::-webkit-scrollbar-thumb{
    background: rgba(102,107,122,1);
}
.scroll::-webkit-scrollbar-thumb:active,
.scroll::-webkit-scrollbar-thumb:hover{
    background: rgba(102,107,122,1);
} 
.scroll::-webkit-scrollbar-track{
    background: rgba(29, 30, 34, 1);
}
.scroll::-webkit-scrollbar-track:hover, 
.scroll::-webkit-scrollbar-track:active{
    background: rgba(29, 30, 34, 1);
}
/*=============Estilos barra superior*/
.navBar{
    background-color: #3F51B5;
    height: 45px;
    color: #fff;
    position: relative;
    margin-bottom: 30px;
}
.navBar-options{
    line-height: 45px;
    height: 45px;
    padding: 0;
    transition: all .3s ease-in-out;
    display: flex;
    justify-content: space-between;
}
.navBar-options .fa-exchange-alt,
.navBar-options-list{
    line-height: 45px;
    height: 45px;
    margin: 0;
    padding: 0;
}
.navBar-options .fa-exchange-alt{
    width: 40px;
    left: 0;
    font-size: 23px;
    cursor: pointer;
    user-select: none;
    text-align: center;
    outline: none;
    margin-left: 9px;
}
.navBar-options-list{
    right: 9px;
}
.navBar-options-list .noLink{
    cursor: inherit;
}
.navBar-options-list ul{
    height: 45px;
    display: flex;
}
.navBar-options-list ul li{
    height: 45px;
    line-height: 45px;
    cursor: pointer;
    padding: 0 7px;
    font-size: 21px;
    user-select: none;
}
.navBar-options-list ul li{ outline: none; }
.navBar-options-list ul li a,
.navBar-options-list ul li img{
    margin: 0;
    padding: 0;
    padding-top: 0;
    margin-top: 0;
    box-sizing: border-box;
    color: #FFF;
}
.navBar-options-list ul li img{
    border: 1px solid #E1E1E1;
    border-radius: 50%;
    width: 39px;
    height: 39px;
    margin-top: 3px;
    margin-bottom: 0;
}

/*=============Estilos en comun navegacion lateral y contenido pagina*/
.navLateral,
.pageContent,
.navLateral-body{
    height: 100%;
}
.navLateral,
.pageContent{
    overflow-y: auto;
}
/*=============Estilos navegacion lateral*/
.navLateral{
    width: 300px;
    border-right: 1px solid #E1E1E1;
    transition: all .3s ease-in-out;
    position: relative;
}
.navLateral-change{
    pointer-events: none;
    opacity: 0;
    width: 0;
    border-right: none;
}
.navLateral-body{
    background-color: #fff;
    position: relative;
}
.navLateral-body-logo{
    height: 45px;
    line-height: 45px;
    color: #fff;
    width: 100%;
    font-size: 25px;
    background-color: #3F51B5;
}
.navLateral-body-cl,
.navLateral-body-cr{
    box-sizing: border-box;
    height: 77px;
    float: left;
    margin: 0;
    padding: 0;
    position: relative;
}
.navLateral-body-cl{
    width: 30%;
}
.navLateral-body-cl img{
    width: 57px;
    height: 57px;
    margin: 0 auto;
    display: block;
    margin-top: 10px;
}
.navLateral-body-cr{
    width: 70%;
    font-family: "RobotoCondensedLight";
}
.navLateral-body-tittle-menu{
    height: 70px;
    line-height: 70px; 
    font-size:20px; 
    background-color: #F5F5F5;
    text-align: center;
}
.menu-principal li,
.menu-principal li a{
    display: block;
}
.menu-principal li a{
    height: 45px;
    color: #333;
    position: relative;
    transition: all .3s ease-in-out;
}
.menu-principal li a:hover{
    color: #3F51B5;
}
.menu-principal li a div.navLateral-body-cl,
.menu-principal li a div.navLateral-body-cr{
    height: 45px;
    line-height: 45px;
}
.menu-principal li a div.navLateral-body-cl{
    text-align: center;
    font-size: 20px;
}
.btn-subMenu span.fa-chevron-down{
    position: absolute;
    top: 0;
    right: 7px;
    line-height: 45px;
    height: 45px;
    font-size: 19px;
    transition: all .3s ease-in-out;
}
.btn-subMenu + .sub-menu-options{
    transition: all .3s ease-in-out;
}
.sub-menu-options{
    height: 0;
    background-color: #F5F5F5;
    overflow-y: hidden;
    transition: all .3s ease-in-out;
}
.sub-menu-options li a{ border-left: 4px solid transparent; }
.sub-menu-options li a:hover{ border-left: 4px solid #3F51B5; }
.btn-subMenu-show{
    background-color: rgba(0, 0, 0, 0.1);
}
.btn-subMenu-show .navLateral-body-cl,
.btn-subMenu-show .navLateral-body-cr{
    color: #3F51B5;
}
.btn-subMenu-show + .sub-menu-options{
    height: auto;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.1);
}

.btn-subMenu-show span.fa-chevron-down{
    transform: rotate(180deg);
}

/*=============Estilos contenido pagina*/
.pageContent{
    width: calc(100% - 300px);
    background-color: #fff;
    transition: all .3s ease-in-out;
}
.pageContent-change{
    width: 100%;
}
/*=============Estilos detalle de venta*/
.sale-details{
    display: flex;
    justify-content: space-between;
    transition: all .3s ease-in-out;
    padding: 5px;
}
.sale-details:hover{
    background-color: rgba(0, 0, 0, 0.07);
}

/*=====================================================
                    Media  Queries
======================================================*/
@media (max-width: 750px){
    .navLateral{
        pointer-events: none;
        opacity: 0;
        width: 0;
        border-right: none;
    }
    .navLateral-change{
        width: 300px;
        pointer-events: auto;
        opacity: 1;
        border-right: 1px solid #E1E1E1;
    }
    .pageContent{
        width: 100%;
    }
    .pageContent-change{
        width: calc(100% - 300px);
    }
}

/* Mantener todas las cards iguales */
.card-producto {
    height: 100%;
    display: flex;
    flex-direction: column;
    
}

.img-producto {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    
}

.img-fit {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    
}

/* Alinear contenido */
.card-content {
    flex-grow: 1;
}

/* Iconos uniformes */
.icono-accion {
    display: flex;
    justify-content: center;
    align-items: center;
}

.icono-accion i {
    font-size: 18px;
}

/* Botón eliminar limpio */
.btn-icono {
    background: none;
    border: none;
    cursor: pointer;
}

/*=====================================================
                OPTIMIZACIÓN MÓVIL
======================================================*/
@media (max-width: 600px){

    /* Tipografía general más pequeña */
    body, html{
        font-size: 14px;
    }

    h1{ font-size: 20px; }
    h2{ font-size: 18px; }
    h3{ font-size: 16px; }

    /* Navbar más compacta */
    .navBar{
        height: 40px;
    }

    .navBar-options{
        height: 40px;
        line-height: 40px;
    }

    .navBar-options .fa-exchange-alt{
        font-size: 18px;
        width: 35px;
    }

    .navBar-options-list ul li{
        font-size: 16px;
        padding: 0 5px;
    }

    .navBar-options-list ul li img{
        width: 32px;
        height: 32px;
    }

    /* Menú lateral más compacto */
    .navLateral{
        width: 250px;
    }

    .navLateral-change{
        width: 250px;
    }

    .navLateral-body-logo{
        font-size: 18px;
    }

    .navLateral-body-tittle-menu{
        font-size: 16px;
        height: 50px;
        line-height: 50px;
    }

    .menu-principal li a{
        height: 40px;
    }

    .menu-principal li a div.navLateral-body-cl,
    .menu-principal li a div.navLateral-body-cr{
        height: 40px;
        line-height: 40px;
        font-size: 14px;
    }

    /* Contenido principal */
    .pageContent{
        padding: 5px;
    }

    /* Cards más compactas */
    .card-producto{
        font-size: 14px;
    }

    .img-producto{
        height: 150px;
    }

    .icono-accion i{
        font-size: 16px;
    }

    /* Detalles de venta */
    .sale-details{
        flex-direction: column;
        gap: 5px;
        font-size: 13px;
    }

    /* Botones */
    button, .button{
        font-size: 13px;
        padding: 6px 10px;
    }

    /* Inputs */
    input, select{
        font-size: 13px;
        padding: 6px;
    }
}
@media (max-width: 600px){

    .page-container{
        display: block; /* 🔥 evita problemas con flex */
    }

    .navLateral{
        position: fixed;
        left: -250px; /* oculto fuera de pantalla */
        top: 0;
        width: 250px;
        height: 100%;
        z-index: 1000;
        opacity: 1;
        pointer-events: auto;
    }

    .navLateral-change{
        left: 0; /* aparece */
    }

    .pageContent{
        width: 100% !important; /* 🔥 clave */
        margin-left: 0 !important;
    }

}

/* Eliminar bordes blancos globales */
html, body{
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden; /* 🔥 evita scroll lateral */
}

/* Asegurar que todo use bien el ancho */
*{
    box-sizing: border-box;
}

/* Contenedor principal */
.page-container{
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Contenido principal */
.pageContent{
    padding: 0 !important; /* 🔥 si quieres puedes dejar 5px si prefieres */
}

/* Header del sidebar */
.navLateral-header{
    width: 100%;
    height: 45px;
    background-color: #3F51B5;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 15px;
    position: sticky;
    top: 0;
    z-index: 1001; /* 🔥 más alto que el contenido */
}

/* Botón cerrar */
.btn-close-menu{
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

/* Asegurar que el menú esté encima */
.navLateral{
    z-index: 1000;
}
@media (min-width: 601px){
    .navLateral-header{
        display: none;
    }
}
@media (min-width: 601px){
    #btn-menu{
        display: inline-block !important;
    }
}

.custom-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 25px;
}

.custom-switch input { display: none; }

.custom-slider {
  position: absolute;
  cursor: pointer;
  background-color: #9e9e9e; /* OFF */
  border-radius: 25px;
  top: 0; left: 0; right: 0; bottom: 0;
  transition: .3s;
}

.custom-slider:before {
  position: absolute;
  content: "";
  height: 19px;
  width: 19px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: .3s;
}

.custom-switch input:checked + .custom-slider {
  background-color: #485fc7; /* ON */
}

.custom-switch input:checked + .custom-slider:before {
  transform: translateX(24px);
}

/* Contenedor padre para que no estorbe en el diseño del sistema */
.contenedor-invisible {
    width: 0;
    height: 0;
    overflow: hidden;
    position: absolute;
    left: -2000px; 
    top: 0;
}

#tarjeta-producto {
    /* Medidas fijas para la captura */
    width: 1000px; 
    height: 1000px;
    background-color: white;
    
    /* Centrado absoluto del contenido */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Espaciado de seguridad para que nada toque los bordes de la imagen */
    padding: 60px; 
    box-sizing: border-box;
    overflow: hidden;
}

/* Forzamos que la fila de Bulma ocupe el ancho sin márgenes manuales */
.columns-container {
    width: 100%;
    margin: 0 !important;
}

/* Contenedor y ajuste de la imagen */
.is-photo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.is-photo {
    max-height: 500px; 
    width: auto;
    object-fit: contain;
}

/* Estilos de texto y control de saltos de línea */
#tarjeta-producto .content p {
    font-size: 1.3rem;
    line-height: 1.5;
    /* Control de desbordamiento para que no se corte el texto */
    overflow-wrap: anywhere; 
    word-break: normal;
}

/* Ajuste específico para la columna de texto */
#tarjeta-producto .column.is-7 {
    /* Padding extra a la derecha para asegurar que el texto no se pegue al borde */
    padding-right: 40px; 
}

/* Tipografía de títulos si los usas */
#tarjeta-producto .subtitle {
    font-size: 1.8rem !important;
}

