/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : 25/11/2021, 17:51:32
    Author     : user
*/

/* FONT-FACE*/
@font-face {
    font-family: 'titillium_webregular';
    src: url("/GEmpresas/resources/fonts/Titillium_Web/TitilliumWeb-Regular.ttf");
}

.main-content .menu .ui-menu-list{
    text-align: center;
}

.main-content .menu .ui-menuitem-text{
    font-weight: bold;

}

.main-content .layout-content{
    margin-top: 30px;
}
.main-content .layout-topbar {
    left: 0;
    height: 100px;
    padding-left: 2em;
    padding-right: 2em;
    padding-top: 1em;
}

.main-content .layout-topbar-menu {
    position: fixed;
    top: 100px;
    z-index: 998;
    width: 100%;
}
.main-content .layout-topbar-menu .ui-menu.ui-menubar{
    border-radius: 0px;
}

.nombreFantasia{
    font-size: 18px;
    font-weight: bold;

}

.ui-dataview-header {
    display: none;
}



.font-15-bold{
    font-size: 15px;
    font-weight: bold;
}
.font-20-bold{
    font-size: 20px;
    font-weight: bold;
}


.center-text{
    text-align: center;
}

.shopping-cart {
    position: relative;

}

.cart-badge {
    position: absolute;
    bottom: 22px;
    right: 1px; /* Ajusta este valor según el tamaño del icono */
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;/* Ocultar por defecto */
    display: none;
}

.shopping-cart.has-items .cart-badge {
    display: inline-block; /* Mostrar solo si hay elementos */
}
body .ui-sidebar{
    padding: 0;
}
.ui-sidebar .body{

    padding: 0px;


}
#rightpanel{
    width: 500px;
}
.ui-sidebar-content{
    height: calc(100% - 175px);
    overflow-x: hidden;
    overflow-y: scroll;
    width: 100%;
}
.ui-sidebar .header{
    padding: 1em;

}
.ui-sidebar .footer{
    position: absolute;
    bottom: 0;
    left: 0;
    height: 150px;
    background:  #666666;
    color: #ffffff;
    width: 100%;
    padding: 1em;
}

body .ui-datalist .ui-datalist-content{
    border: none;
    padding: 0;
}

.visible{
    display:  block;
}

.no-visible{
    display: none;
}


.div-logo{
    text-align: left;
}

.imagenCarouselPortada{
    width: 100%;   /* Ajusta el ancho de la imagen al 100% del contenedor */
    height: auto;  /* Mantiene la proporción de la imagen */
    object-fit: cover; /* Asegura que la imagen cubra el contenedor sin deformarse */
    display: block;
}
/* Configura el contenedor para usar la posición relativa y ocupar todo el ancho y alto */
.custom-carousel .ui-carousel-content {
    width: 100%;
    height: 100%;
    position: relative;
}

.custom-carousel .ui-carousel-item {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.carousel-item {
    width: 100%;
    height: 100%;
    object-fit: cover; /* La imagen se adapta al tamaño del ítem */
}

/* Estilos para las flechas de navegación */
.custom-carousel .ui-carousel-prev,
.custom-carousel .ui-carousel-next {
    position: absolute;

    background-color: rgba(200, 200, 200, 0.7) !important; /* Fondo gris suave con opacidad */
    color: #fff;
    border: none;
    padding: 10px;
    z-index: 10;
    cursor: pointer;
    font-size: 18px; /* Tamaño de las flechas */
}

/* Ajuste específico para la flecha de la izquierda */
.custom-carousel .ui-carousel-prev {
    left: 15px; /* Distancia desde la izquierda */
}

/* Ajuste específico para la flecha de la derecha */
.custom-carousel .ui-carousel-next {
    right: 15px; /* Distancia desde la derecha */
}

/* Ajuste opcional para hacer las flechas redondeadas */
.custom-carousel .ui-carousel-prev,
.custom-carousel .ui-carousel-next {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;

}




@media only screen and (max-width: 768px) {
    .div-logo{
        text-align: center;
    }
 
    .main-content  .layout-topbar{
        height: 125px;
    }
    .main-content  .layout-topbar-menu{
        top: 125px;
    }
    .main-content .layout-content{
        margin-top: 60px;
    }

    #rightpanel{
        width: 100%;
    }

    .menu .ui-widget-content {
        /* Hace que los elementos se apilen */
    }

    .menu-toggle-button {
        display: block; /* Mostrar el botón */
    }

.custom-menubar .ui-menuitem-active .ui-menu-child{
    grid-template-columns: repeat(2, 1fr)!important;/* 4 columnas */
}
body .custom-menubar .ui-menuitem-active .ui-widget-content {
        max-height: calc(100vh - 350px) !important; /* Ajusta la altura según necesidad */

}


}

/*.custom-menubar  .ui-menu-child {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr)!important; 
    gap: 10px !important;
    position: absolute !important;
    left: 0 !important;
    width: auto !important;
    min-width: 400px !important; 
    background-color: #f4f4f4!important;  
    border: 1px solid #ccc !important;;
    padding: 10px !important;
    z-index: 1000 !important;
}*/

body .custom-menubar .ui-menuitem-active .ui-menu-child{
    display: grid ;
    grid-template-columns: repeat(5, 1fr);/* 4 columnas */
    gap: 10px ;
    position: absolute ;
    left: 0 ;
    width: auto ;
    min-width: 400px ; /* Ajusta según necesidad */
    background-color: #f4f4f4 ; /* 🔹 Asegura que TODA el área tenga fondo */
    border: 1px solid #ccc;
    padding: 10px;
    z-index: 1000 ;
    overflow-y: scroll;
}
body .custom-menubar .ui-menuitem-active .ui-widget-content {
    display: grid ;
    flex-direction: column; /* Organiza los ítems en columnas */
    flex-wrap: wrap; /* Permite varias columnas */
    max-height: calc(100vh - 200px); /* Ajusta la altura según necesidad */
    
}
body .custom-menubar .ui-menu-child::before {
    content: none !important;
    display: none !important;
}


body .custom-menubar .ui-menu .ui-menu-list .ui-menuitem .ui-menuitem-link {
   height: 100%;
}


.exception-body { 
       background-repeat: no-repeat;
    background-attachment: fixed;
    background: -moz-linear-gradient(125deg, #d2524f 0%, #9c1627 100%);
    /* ff3.6+ */
    background: -webkit-gradient(linear, left bottom, right top, color-stop(0%, #d2524f), color-stop(100%, #9c1627));
    /* safari4+,chrome */
    background: -webkit-linear-gradient(125deg, #d2524f 0%, #9c1627 100%);
    /* safari5.1+,chrome10+ */
    background: -o-linear-gradient(125deg, #d2524f 0%, #9c1627 100%);
    /* opera 11.10+ */
    background: -ms-linear-gradient(125deg, #d2524f 0%, #9c1627 100%);
    /* ie10+ */
    background: linear-gradient(125deg, #d2524f 0%, #9c1627 100%);
    /* w3c */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#d2524f', endColorstr='#9c1627',GradientType=1 );
}