body{
    overflow-y:scroll;
    font-family: var(--font-body-family);
    font-size: var(--body-txt-font-size);
    background: var(--body-bg);
}
.bs-main.bs-main{
    padding-top:0;
    padding-bottom:3rem;
}

/****************
Sitio En construcción
*******************/

.bs-construction-page {
    height:100%;
    display: flex;
    align-items: center;
}
.fondo-construccion {
    background: url(texturaseda.jpeg);
}

/******************
        Sucursales 
*******************/

.bs-table {
    display:flex;
    flex-wrap:wrap;
}

.bs-table table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
}

.bs-table table td{
    vertical-align: top;
    border-top:1px solid var(--gray-500);
}

.bs-table div {
    width:50%;
}

/******************
        Sucursales tabla 
*******************/
/* Estilos para la tabla estática */
.bs-table-sucursal-static table {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    text-align: left;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1); 
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Estilos para la tabla en el acordeón */
.bs-table-sucursal-accordion table {
    width: 100%;
    margin: 1px auto;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    text-align: left;
    background-color: #ffffff;
    border: 1px solid rgb(248 249 250);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Encabezado de la tabla */
.bs-table-sucursal-static thead, .bs-table-sucursal-accordion thead {
    background-color: #f8f9fa; 
    color: #333;
}

.bs-table-sucursal-static th, .bs-table-sucursal-accordion th {
    padding: 6px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    text-transform: capitalize;
    font-weight: bold;
}

/* Filas de la tabla */
.bs-table-sucursal-static td, .bs-table-sucursal-accordion td {
    padding: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05); /* Borde sutil */
}

.bs-table-sucursal-static tbody tr:last-child td, .bs-table-sucursal-accordion tbody tr:last-child td {
    border-bottom: none;
}

.bs-table-sucursal-static tbody tr:hover, .bs-table-sucursal-accordion tbody tr:hover {
    background-color: #f5f5f5; /* Efecto hover */
    transition: background-color 0.3s ease;
}

/* Estilos para el acordeón */
.stock-accordion .stock-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 7px;
    margin: 8px 0;
    width: 70%;
}

.stock-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: bold;
    color: #333;
}

.stock-accordion-title {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

.stock-accordion-btn {
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    color: var(--primary-contrast);
    font-size: 18px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.stock-accordion-btn:hover {
    background-color: var(--primary-hover-color);
    border-color: var(--primary-hover-color);
    color: white;
}

.stock-toggle-icon {
    font-size: 18px;
}

.collapse.show + .stock-card-header .stock-accordion-btn .stock-toggle-icon {
    content: "-";
}

.stock-card-body {
    flex: 1 1 auto;
    min-height: 1px;
    padding: 0px;
}

.stock-accordion-body {
    padding: 10px 20px;
    font-size: 14px;
    background-color: #ffffff;
    color: #333;
}

/****************
Oferta cabecera
*******************/
.alert-content {
    display: inline-flex;
    align-items: center;
    white-space: pre-wrap; /* Por defecto */
}

.alert-content.animated {
    white-space: nowrap; /* Cuando tiene animación */
}

.alert {
    color: var(--primary-contrast);
    background: var(--primary-color);
    border-color: var(--primary-color);
    padding: 4px 16px; 
    position: relative;
    display: flex;
    align-items: center; 
    justify-content: center; 
    white-space: nowrap;
}
.alert-dismissible .close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    padding: 0rem 1.25rem;
    color: inherit;
}
.animated {
    animation: marquee var(--animation-speed) linear infinite;
}
.animated:hover {
    animation-play-state: paused;
}
@keyframes marquee {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-100%);
    }
}

/**********************
    Alert
***********************/
.alert{
    color: black;
    background:var(--primary-color);
    border-color:var(--primary-color);
    padding: 4px;
}
.alert-dismissible .close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    padding: 0rem 1.25rem;
    color: inherit;
}
/*************************
    Inputs
**************************/
.form-control{
    border:var(--input-border);
    border-radius: var(--default-border-radius);
    color: var(--input-txt-color);
    background: var(--input-bg-color);
}
.input-group .form-control{
    height:auto;
    border-left:0;
    border-right:0;
}
input.form-control{
   padding: var(--input-padding , 0.375rem 0.75rem );
}
.form-control option:hover{
    background: var(--primary-color);
}

.custom-control-input:checked~.custom-control-label::before{
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--primary-contrast);
    box-shadow:none;
}



.custom-control-input.is-invalid~.custom-control-label, .was-validated .custom-control-input:invalid~.custom-control-label{
    font-weight:var(--font-bold);
}
.custom-control-input.is-invalid~.custom-control-label::before, .was-validated .custom-control-input:invalid~.custom-control-label::before{
    border-width:2px;
}
.custom-control-input.is-invalid~.custom-control-label a, .was-validated .custom-control-input:invalid~.custom-control-label a{
    text-decoration:underline;
    color:#dc3545;
}


/***************************
    Filter
****************************/
.bs-collection-filter .panel-collapse{
    max-height:200px;
    overflow-y:auto;
}
/**************************
Pagination
***************************/
.page-item .page-link.page-link{
    border:0px none;
    border-radius:var(--default-border-radius);
    margin:0 .25rem;
    color:var(--secondary-contrast);
    background:var(--secondary-color);
    border-radius:var(--btn-border-radius);
}
.page-link.page-link:hover{
    color:var(--secondary-hover-contrast);
    background:var(--secondary-hover-color);
}
.page-item.active .page-link.page-link{
    color:var(--primary-hover-contrast);
    background:var(--primary-hover-color);
}
/***************************
    Badge
****************************/
.badge-primary{
    background: var(--primary-color);
    color: var(--primary-txt-color);
}
.badge-secondary{
    background: var(--secondary-color);
    color: var(--secondary-contrast);
}
/**********************************
    TITULOS
***********************************/
 h1 ,h2 ,h3, h4, h5, h6,
.h1,.h2,.h3,.h4,.h5,.h6{
    font-family: var(--font-title-family);
}
.bs-title-home{
    color: var(--home-title-color);
    text-transform: var(--title-transform);
    font-weight: var(--title-weight);
    padding: 2rem 0 1rem;
    text-align:center;
}
.bs-banners__item__title{
    color: var(--home-title-color);
    text-transform: var(--title-transform);
    font-weight: var(--title-weight);
    padding: 1rem 0 1rem;
    text-align:center;   
}

@media screen and (max-width:576px) {
 .bs-title-home{
    font-size:17px;
} 
.bs-banners__item__title{
    font-size:17px;   
}
}
@media screen and (min-width:577px) {
 .bs-title-home{
    font-size:var(--home-title-size);
} 
.bs-banners__item__title{
    font-size:var(--home-title-size);
}
}

/**********************************
    Migas de Pan
***********************************/
.breadcrumb{
    background: var(--breadcrumb-bg-color, --element-bg);
    border-radius:var(--default-border-radius);
    
}



/*****************************
    Imagenes medios de pago
******************************/
.bs-pay-method{
    opacity:0.5;
}


    
/*******************
discount 
*********************/
.bs-discount{
    font-weight:var(--font-bold);
}





/* media queries */ 




@media screen and (min-width:768px){
    
    .bs-article-title::before,
    .bs-article-title::after,
    .bs-home-title::before,
    .bs-home-title::after{
        max-width:100px;
        min-width:40px;
    }
}
/***********************
container
********************************/

    


    .container-xxl, .container{
        max-width:1320px;
        width:100%;
        margin-left:auto;
        margin-right:auto;
        padding-right: 15px;
        padding-left: 15px;
    }   
    
    
/* parche aspect ratio  

--aspect-ratio= alto/ancho
****************************/
.bs-img-squeare{display: block;}
.bs-img-square picture img{ object-fit: var(--img-square-fit, contain)}
.bs-img-square::after{padding-bottom: calc( var(--aspect-ratio,1) * 100%);}
@media screen and (min-width:576px){.bs-img-square::after{padding-bottom: calc( var(--aspect-ratio-sm,var(--aspect-ratio,1)) * 100%);}}
@media screen and (min-width:768px){.bs-img-square::after{padding-bottom: calc( var(--aspect-ratio-md,var(--aspect-ratio-sm,var(--aspect-ratio,1))) * 100%);}}
@media screen and (min-width:992px){.bs-img-square::after{padding-bottom: calc( var(--aspect-ratio-lg,var(--aspect-ratio-md,var(--aspect-ratio-sm,var(--aspect-ratio,1)))) * 100%);}}
@media screen and (min-width:1200px){.bs-img-square::after{padding-bottom: calc( var(--aspect-ratio-xl,var(--aspect-ratio-lg,var(--aspect-ratio-md,var(--aspect-ratio-sm,var(--aspect-ratio,1))))) * 100%);}}

/************************************
Chat Widget
*************************************/
.chat-widget .dropdown-toggle::after {
    display: none; /* Oculta el dropdown-toggle solo dentro del widget */
}

.chat-widget {
    --box-shadow-widget: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
    position: fixed;
    bottom: 100px;
    z-index: 1000;
    right: 10px; /* Por defecto, ajusta a la izquierda si se requiere */
}

.chat-widget .chat-widget__close-icon { display: none; }
.chat-widget.show .chat-widget__close-icon { display: inline; }
.chat-widget .chat-widget__chat-icon { display: inline; }
.chat-widget.show .chat-widget__chat-icon { display: none; }

.chat-widget .dropdown-menu.show {
    box-shadow: var(--box-shadow-widget);
    width: auto;
}

.chat-widget__btn {
    background: var(--primary-color);
    box-shadow: var(--box-shadow-widget);
    color: white;
    width: 1.5em;
    height: 1.5em;
    font-size: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100px;
    border: solid 1px rgba(255, 255, 255, 0.3); 

}
.chat-widget__btn:hover {
    background: var(--primary-hover-color);
    transition: 0.3s;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2), 0px 2px 6px rgba(0, 0, 0, 0.1); 

}
.chat-widget__content {
    background: white;
    width: 100%;
    min-width: 260px;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 10px;
    padding: 10px;
}

.chat-widget__img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.chat-widget__message {
    box-sizing: border-box;
    border: silver 1px solid;
    padding: 6px;
    border-radius: var(--default-border-radius);
}

.chat-widget__chat-list {
    grid-column: 2 / 3;
    display: flex;
    flex-wrap: wrap;
}

.chat-widget__whatsapp,
.chat-widget__facebook {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 100px;
}

.chat-widget__whatsapp {
    background: linear-gradient(0deg, rgb(32,176,56) 0%, rgb(96,214,106) 100%);
    color: white;
    margin-left: 6px;
}

.chat-widget__whatsapp:hover {
    color: white;
    outline: 4px rgba(96,214,106, 0.6) solid;
}

.chat-widget__facebook {
    background: linear-gradient(0deg, rgba(0,98,224,1) 0%, rgba(25,175,255,1) 100%);
    color: white;
    margin-left: 4px;
}

.chat-widget__facebook:hover {
    color: white;
    outline: 4px rgba(25,175,255, 0.6) solid;
}

@media screen and (min-width: 768px) {
    .chat-widget { bottom: 30%; }
}
