::-webkit-scrollbar {
    width: 6px;
    /* Ancho de la barra vertical */
    height: 6px;
    /* Altura de la barra horizontal */
}

/* Color del fondo del scrollbar */
::-webkit-scrollbar-track {
    background: rgb(183, 200, 216) !important;
    /* Color oscuro de fondo */
    border-radius: 10px;
    /* Bordes redondeados */
}

/* Color de la barra en sí */
::-webkit-scrollbar-thumb {
    background: rgb(88, 98, 107) !important;
    /* Color de la barra */
    border-radius: 10px;
    /* Bordes redondeados */
}

/* Cambio de color cuando se pasa el mouse sobre la barra */
::-webkit-scrollbar-thumb:hover {
    background: rgb(158, 179, 199);
    ;
    /* Un poco más claro */
}

nav.navbar {
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

.main-content {
    padding: 0px;
    margin: 0px;
}

/* los estilos de los card del hover*/
.hover-card-container {
    position: relative;
    display: inline-block;
}

.hover-card-container img.rounded {
    border-radius: 50%;
    cursor: pointer;
}

.hover-card {
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-20%);
    width: 220px;
    /* Ancho fijo para evitar desbordes */
    height: fit-content;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    padding: 12px;
    z-index: 9999;
    display: none;
    transition: opacity 0.2s ease-in-out;
    opacity: 0;
    white-space: normal;
    /* Permite que los textos se ajusten dentro del contenedor */
    word-wrap: break-word;
    /* Rompe las palabras largas */
    overflow: hidden;
    /* Evita que el contenido se desborde */
    text-overflow: ellipsis;
    /* Agrega "..." si el texto es demasiado largo */
    max-height: 250px;
    /* Limita la altura del tooltip */
    overflow-y: auto;
    /* Agrega scroll si el contenido es muy grande */
    font-size: 14px;
    /* Tamaño de texto más compacto */
    line-height: 1;
    z-index: 10000;
}


.hover-card-container:hover .hover-card {
    display: block;
    opacity: 1;
}


/*select 2//////////////////////////////////////////////////////////////*/

.select2-container {
    width: auto;
    margin-top: 4px;
    border: 2px solid var(--background-border);
    padding: 0px;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    appearance: none;
    color: var(--text-color);
    font-size: 16px;
    background-color: var(--background-container);
    z-index: 9999999 !important;
}

.select2-selection {
    width: auto;
    height: auto !important;
    border: none !important;
    background-repeat: no-repeat;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="%23AAAAAA" d="M7 10l5 5 5-5H7z"/></svg>') !important;
    background-position: right 10px center;
    background-size: 20px;
    /* padding: 5px; */
    transition: all 0.3s ease-in-out;
    display: flex !important;
    flex-wrap: wrap;
    z-index: 9999 !important;
}

.select2-selection-multiple {
    width: 100% !important;
    height: auto;
    /* min-height: 48px; Ajustado para parecerse al simple */
    border: none !important;
    background-repeat: no-repeat;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="%23AAAAAA" d="M7 10l5 5 5-5H7z"/></svg>') !important;
    background-position: right 10px center;
    background-size: 20px;
    padding: 8px 12px;
    /* Reduce padding excesivo */
    transition: all 0.3s ease-in-out;
    flex-wrap: wrap;
    /* Esta línea permite que los items bajen */
    align-items: flex-start;
    overflow-y: auto;
    /* Por si hay muchos items */
    box-sizing: border-box;
    display: flex !important;

}

.select2-selection--single {
    width: 100% !important;
    height: auto !important;
    border: none !important;
    background-repeat: no-repeat;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="%23AAAAAA" d="M7 10l5 5 5-5H7z"/></svg>') !important;
    background-position: right 10px center;
    background-size: 20px;
    padding: 14px;
    transition: all 0.3s ease-in-out;
}

.select2-selection__rendered {
    display: flex !important;
    flex-wrap: wrap;
    gap: 4px;
    /* Espacio entre elementos */
    padding: 4px;
    width: 100% !important;
}

.select2-search {
    height: 100%;
    width: 100%;
    font-size: 16px;
}

.select2-dropdown--below {
    border: 1px solid var(--background-border) !important;
    border-radius: 5px !important;
    box-shadow: 3px 10px 10px var(--hover-color);
}


.select2-selection__choice {
    background-color: var(--background-sidebar);
    border: 1px solid var(--background-border);
    border-radius: 4px;
    cursor: default;
    display: inline-block;
    margin: 2px;
    padding: 0px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    white-space: nowrap;
    height: 40px !important;
}

.select2-selection__choice__remove {
    color: #999;
    cursor: pointer;
    display: inline-block;
    font-weight: bold;
    margin: 0px;
    padding: 0px;
    background-color: var(--background-sidebar);
    height: 38px !important;
    width: 38px !important;
    border: 1px solid var(--hover-color);
}

.select2-selection__choice__remove:hover {
    background-color: var(--hover-color);
}

.select2-selection__choice__display {
    margin-inline: 3px;
}

.select2-results__option:hover {
    background-color: var(--hover-color);
}

.select2_imagen {
    border-radius: 3px;
}

.select2_imagen_user {
    border-radius: 100px;
}

.select2-search__field {
    width: 100% !important;
    padding: 12px;
    margin-inline: 5px;
    margin-top: 2px;
    border: 2px solid var(--background-border);
    border-radius: 5px;
    background-color: var(--background-container);
    color: var(--text-color);
    font-size: 16px;
    transition: all 0.3s ease-in-out;
    appearance: none;
}


/*select 2//////////////////////////////////////////////////////////////*/

.upload-picture {
    position: relative;
    width: 200px;
    height: 200px;
    background-color: #f3f3f3;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    border: 2px solid #e8e8e8;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    margin-left: 10px;
    margin-right: 10px;
}

.upload-picture .btn-foto {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 30px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.upload-picture .btn-foto:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.upload-picture input[type="file"] {
    display: none !important;
}


.upload-picture .colored-black-grey {
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 30px;
}

.upload-picture .colored-black-grey .fas {
    transition: transform 0.3s ease;
}

.upload-picture .colored-black-grey .fas:hover {
    transform: scale(1.2);
}

/* Barra de progreso */
.upload-picture progress {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background-color: #e0e0e0;
    appearance: none;
}

.upload-picture progress::-webkit-progress-bar {
    background-color: #e0e0e0;
}

.upload-picture progress::-webkit-progress-value {
    background-color: #4caf50;
    border-radius: 5px;
}

.upload-picture progress::-moz-progress-bar {
    background-color: #4caf50;
    border-radius: 5px;
}

.upload-picture .progress-bar {
    height: 8px;
    border-radius: 5px;
    background-color: #e0e0e0;
    /* Esto asegura que la barra sea visible y ocupe espacio correctamente */
}

.hide {
    display: none !important;
}

.rating {
    display: inline-flex;
    direction: rtl;
    unicode-bidi: bidi-override;
}

.rating input {
    display: none;
}

.rating label {
    font-size: 2rem;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
}

.rating label.full {
    color: gold;
}


/* Ajustar la altura del carrusel */
.carousel-image {
    height: 500px;
    /* Altura por defecto */
    object-fit: cover;
}

.product-item:hover {
    background-color: var(--hover-color) !important;
    opacity: 0.5 !important;
}

.selected-product {
    background-color: var(--hover-color) !important;
    border-radius: 10px !important;
}

/* 		Breadcrumb		*/
.breadcrumbs {
    list-style: none;
    display: inline;
    width: auto;
    border-left: 1px solid #efefef;
    margin-left: 25px;
    padding-left: 25px;
    margin-bottom: 0px;
    padding-top: 8px;
    padding-bottom: 8px;
    height: 100%;
}

.breadcrumbs li {
    display: inline-block;
}

.breadcrumbs li a {
    color: var(--bs-primary);
    font-size: 13px;
}

.breadcrumbs li a i {
    font-size: 16px;
}

.breadcrumbs li a:hover {
    text-decoration: none;
}

.breadcrumbs li.separator {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 12px;
}


/*     Alert    */
.alert {
    border: 0px;
    position: relative;
    padding: .95rem 1.25rem;
    border-radius: 1px;
    color: inherit;
    background-color: #ffffff;
    -webkit-box-shadow: 1px 1px 14px 0px rgba(18, 38, 63, 0.26);
    -moz-box-shadow: 1px 1px 14px 0px rgba(18, 38, 63, 0.26);
    box-shadow: 1px 1px 14px 0px rgba(18, 38, 63, 0.26);
}

.alert [data-notify="icon"] {
    display: block;
}

.alert [data-notify="icon"]::before {
    line-height: 35px;
    font-size: 22px;
    display: block;
    left: 15px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    border-radius: 30px;
    text-align: center;
    color: #fff;
}

.alert [data-notify="title"] {
    display: block;
    color: #2b2b2b;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 5px;
}

.alert [data-notify="message"] {
    font-size: 13px;
    color: #908e8e;
}

.alert .close {
    background: rgba(255, 255, 255, 0.8);
    width: 25px;
    height: 25px;
    line-height: 25px;
    top: 12px !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*    Alert States    */
.alert-black {
    border-left: 4px solid #1a2035;
}

.alert-black [data-notify="icon"]:before {
    background: #1a2035;
}

.alert-primary {
    border-left: 4px solid #1572E8;
}

.alert-primary [data-notify="icon"]:before {
    background: #1572E8;
}

.alert-secondary {
    border-left: 4px solid #6861CE;
}

.alert-secondary [data-notify="icon"]:before {
    background: #6861CE;
}

.alert-info {
    border-left: 4px solid #48ABF7;
}

.alert-info [data-notify="icon"]:before {
    background: #48ABF7;
}

.alert-success {
    border-left: 4px solid #31CE36;
}

.alert-success [data-notify="icon"]:before {
    background: #31CE36;
}

.alert-warning {
    border-left: 4px solid #FFAD46;
}

.alert-warning [data-notify="icon"]:before {
    background: #FFAD46;
}

.alert-danger {
    border-left: 4px solid #F25961;
}

.alert-danger [data-notify="icon"]:before {
    background: #F25961;
}


/* Estilo para la calificación (rating) */
.rating {
    font-size: 1.5rem;
    color: #ccc;
}

.rating .fa-star {
    cursor: pointer;
    transition: color 0.3s;
}

.rating .fa-star:hover,
.rating .fa-star.selected {
    color: #ffcc00;
}


/* Reducir altura en móviles */
@media (max-width: 768px) {
    .carousel-image {
        height: 300px;
    }
}
