        .bd-placeholder-img {
            font-size: 1.125rem;
            text-anchor: middle;
            -webkit-user-select: none;
            -moz-user-select: none;
            user-select: none;
        }

        @media (min-width: 768px) {
            .bd-placeholder-img-lg {
                font-size: 3.5rem;
            }
        }

        .b-example-divider {
            width: 100%;
            height: 3rem;
            background-color: rgba(0, 0, 0, .1);
            border: solid rgba(0, 0, 0, .15);
            border-width: 1px 0;
            box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
        }

        .b-example-vr {
            flex-shrink: 0;
            width: 1.5rem;
            height: 100vh;
        }

        .bi {
            vertical-align: -.125em;
            fill: currentColor;
        }

        .nav-scroller {
            position: relative;
            z-index: 2;
            height: 2.75rem;
            overflow-y: hidden;
        }

        .nav-scroller .nav {
            display: flex;
            flex-wrap: nowrap;
            padding-bottom: 1rem;
            margin-top: -1px;
            overflow-x: auto;
            text-align: center;
            white-space: nowrap;
            -webkit-overflow-scrolling: touch;
        }

        .btn-bd-primary {
            --bd-violet-bg: #712cf9;
            --bd-violet-rgb: 112.520718, 44.062154, 249.437846;

            --bs-btn-font-weight: 600;
            --bs-btn-color: var(--bs-white);
            --bs-btn-bg: var(--bd-violet-bg);
            --bs-btn-border-color: var(--bd-violet-bg);
            --bs-btn-hover-color: var(--bs-white);
            --bs-btn-hover-bg: #6528e0;
            --bs-btn-hover-border-color: #6528e0;
            --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
            --bs-btn-active-color: var(--bs-btn-hover-color);
            --bs-btn-active-bg: #5a23c8;
            --bs-btn-active-border-color: #5a23c8;
        }

        .bd-mode-toggle {
            z-index: 1500;
        }

        .bd-mode-toggle .dropdown-menu .active .bi {
            display: block !important;
        }
    .list-group-item {
        font-size: 0.8rem;
        padding: 0.3rem 0.5rem;
    }
    .color-indicator {
        display: inline-block;
        width: 20px;
        min-width: 20px;
        height: 20px;
        margin-right: 10px;
        background-clip: content-box; /* Para que el color no tenga bordes */
        border: none; /* Eliminar bordes */
    }
    html, body {
            height: 100%;
            margin: 0;
            padding: 0;
        }

        #map {
            position: absolute;
            top: 0;
            bottom: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
        }

        .container-fluid, .row {
            height: calc(100% - 48px);
            margin: 0;
            padding: 0;
        }

        .sidebar {
            height: calc(100vh - 48px);
            overflow-y: auto;
            position: relative;
            z-index: 2;
        }
    .accordion-button{
        font-size: 0.9rem;
    }
    .form-check-label{
        font-size: 0.8rem;
    }
    .mapboxgl-ctrl-top-right {
        right: 1px;
        top: 50px;
    }
    .card-header{
        font-size: 0.9rem;
    }
    .close-card{
        font-size: 0.4rem;
    }
    .card-text{
        margin-bottom: 0rem !important;
        font-size: 0.9rem;
    }
    .desc_text{
        font-size: 0.8rem;
        line-height: 1.4 !important;
        font-weight: 400;
        text-align: justify !important;

    }
    .text-body-secondary,.fw-normal {
        line-height: 1.4 !important;
        text-align: justify;
    }
    /* Estilos para el slider de opacidad */
    .opacity-slider-container {
        width: 100%;
        padding: 6px 0 4px 0;
    }
    .opacity-slider {
        -webkit-appearance: none;
        appearance: none;
        width: 100%;
        height: 4px;
        border-radius: 2px;
        background: linear-gradient(to right, rgba(200,200,200,0.3), rgba(100,100,100,0.8));
        outline: none;
        cursor: pointer;
    }
    .opacity-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #4678d7;
        cursor: pointer;
        border: 2px solid #fff;
        box-shadow: 0 1px 3px rgba(0,0,0,0.3);
        transition: transform 0.1s ease;
    }
    .opacity-slider::-webkit-slider-thumb:hover {
        transform: scale(1.2);
    }
    .opacity-slider::-moz-range-thumb {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #4678d7;
        cursor: pointer;
        border: 2px solid #fff;
        box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    }
    .list-group-item.layer-item {
        flex-direction: column;
        align-items: stretch;
    }
    .layer-item-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    /* Estilos para los botones de reordenar */
    .layer-order-controls {
        display: flex;
        flex-direction: column;
        margin-right: 6px;
        gap: 1px;
    }
    .layer-order-btn {
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        color: #6c757d;
        font-size: 0.65rem;
        line-height: 1;
        transition: color 0.15s ease;
    }
    .layer-order-btn:hover:not(:disabled) {
        color: #4678d7;
    }
    .layer-order-btn:disabled {
        color: #dee2e6;
        cursor: not-allowed;
    }
    .layer-name-text {
        font-size: 0.8rem;
        word-break: break-word;
        line-height: 1.3;
    }
    /* Estilos para los cards en legend-content */
    .feature-card {
        margin-bottom: 10px;
        border: 1px solid #dee2e6;
        border-radius: 4px;
    }
    .feature-card .card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem;
        background-color: #f8f9fa;
    }
    .feature-card .card-body {
        padding: 0.5rem;
    }
    .feature-card-controls {
        display: flex;
        gap: 4px;
    }
    .feature-card-btn {
        background: none;
        border: none;
        padding: 2px 4px;
        cursor: pointer;
        color: #6c757d;
        font-size: 0.7rem;
    }
    .feature-card-btn:hover:not(:disabled) {
        color: #4678d7;
    }
    .feature-card-btn:disabled {
        color: #dee2e6;
        cursor: not-allowed;
    }
    
    /* Estilos para sidebar colapsable */
    .sidebar-collapsible {
        transition: margin-left 0.3s ease, width 0.3s ease;
    }
    .sidebar-collapsible.collapsed {
        margin-left: -100%;
        width: 0;
    }
    #toggle-sidebar-btn {
        position: fixed;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1050;
        background-color: #4678d7;
        border: none;
        border-radius: 0 4px 4px 0;
        padding: 10px 8px;
        cursor: pointer;
        transition: left 0.3s ease;
        box-shadow: 2px 0 5px rgba(0,0,0,0.2);
        opacity: 0.8;
    }
    #toggle-sidebar-btn i {
        color: white;
        font-size: 1.2rem;
    }
    #toggle-sidebar-btn:hover {
        background-color: #3b6eb5;
    }
    .sidebar-collapsible.collapsed ~ #toggle-sidebar-btn {
        left: 0;
    }
    .sidebar-collapsible:not(.collapsed) ~ #toggle-sidebar-btn {
        left: calc(16.666667% - 8px); /* Ajusta según el ancho del sidebar en md */
    }
    
    @media (min-width: 768px) and (max-width: 991.98px) {
        .sidebar-collapsible:not(.collapsed) ~ #toggle-sidebar-btn {
            left: calc(25% - 8px); /* col-md-3 */
        }
    }
    
    @media (min-width: 992px) {
        .sidebar-collapsible:not(.collapsed) ~ #toggle-sidebar-btn {
            left: calc(16.666667% - 8px); /* col-lg-2 */
        }
    }
    
    @media (max-width: 767.98px) {
        #toggle-sidebar-btn {
            display: none; /* Ocultar en móviles, ya que usan offcanvas */
        }
    }

            /* navbar-brand width 100% in small screens */
            @media (max-width: 768px) {
                .navbar-brand {
                    width: 100%;
                }
                .mapboxgl-ctrl-top-right{
                    top: 86px !important;
                }
                .sidebar {
                    height: 0vh;
                    border: none !important;
                    top: 100px;
                }
                #sidebarMenu, #sidebarMenu2 {
                    top: 88px;
                }
            }

            @media (max-width: 576px) {
                #sidebarMenu,
                #sidebarMenu2 {
                    top: 116px; /* Altura ajustada para cuando los botones se apilan */
            }
            .mapboxgl-ctrl-top-right{
                    top: 126px !important;
                }
        }

    /* Loader Styles */
#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #4678d7 0%, #2470dc 50%, #3b6eb5 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

#page-loader.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loader-logo {
  max-width: 350px;
  width: 100%;
  margin-bottom: 0px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

@keyframes fade {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}