@import '_content/LeafletForBlazor/LeafletForBlazor.bundle.scp.css';

/* /Componentes/ErrorPagina.razor.rz.scp.css */
/* Fondo animado con color principal */
.modeloFondo[b-dht6vkc6an] {
    margin: 0;
    padding: 0;
    height: 100vh;
    background: linear-gradient(135deg, #003d1f, #005a2e, #002d15);
    background-size: 400% 400%;
    animation: gradientShift-b-dht6vkc6an 15s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    overflow: hidden;
}

    .modeloFondo[b-dht6vkc6an]::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
        animation: float-b-dht6vkc6an 20s ease-in-out infinite;
    }

@keyframes gradientShift-b-dht6vkc6an {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes float-b-dht6vkc6an {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Contenedor principal mejorado */
.error-container[b-dht6vkc6an] {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    text-align: center;
    max-width: 550px;
    width: 90%;
    position: relative;
    overflow: hidden;
    animation: slideIn-b-dht6vkc6an 0.6s ease-out;
    z-index: 1;
}

@keyframes slideIn-b-dht6vkc6an {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contenedor del escudo con imagen */
.shield-container[b-dht6vkc6an] {
    width: 180px;
    height: 180px;
    margin: 0 auto 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /*background: linear-gradient(135deg, #003d1f, #005a2e);*/
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 61, 31, 0.3), inset 0 -5px 15px rgba(0, 0, 0, 0.2);
    animation: pulse-b-dht6vkc6an 3s ease-in-out infinite;
}

    .shield-container[b-dht6vkc6an]::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        border: 3px solid rgba(0, 61, 31, 0.3);
        animation: ripple-b-dht6vkc6an 2s ease-out infinite;
    }

    .shield-container[b-dht6vkc6an]::after {
        content: '';
        position: absolute;
        width: 120%;
        height: 120%;
        border-radius: 50%;
        border: 2px solid rgba(0, 61, 31, 0.15);
        animation: ripple-b-dht6vkc6an 2s ease-out infinite 0.5s;
    }

@keyframes pulse-b-dht6vkc6an {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes ripple-b-dht6vkc6an {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.logo-image[b-dht6vkc6an] {
    width: 140px;
    height: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.2));
}

/* Título */
.access-title[b-dht6vkc6an] {
    font-size: 2.2rem;
    font-weight: 700;
    color: #003d1f;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

/* Divisor decorativo */
.divider[b-dht6vkc6an] {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #003d1f, transparent);
    margin: 20px auto;
    border-radius: 2px;
}

/* Mensaje */
.access-message[b-dht6vkc6an] {
    font-size: 1.1rem;
    color: #495057;
    line-height: 1.6;
    margin-bottom: 35px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Botón mejorado */
.btn-custom[b-dht6vkc6an] {
    padding: 14px 40px;
    font-size: 1.05rem;
    font-weight: 600;
    background: linear-gradient(135deg, #003d1f, #005a2e);
    border: none;
    border-radius: 50px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 61, 31, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

    .btn-custom[b-dht6vkc6an]::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s;
    }

    .btn-custom:hover[b-dht6vkc6an]::before {
        left: 100%;
    }

    .btn-custom:hover[b-dht6vkc6an] {
        background: linear-gradient(135deg, #005a2e, #007a3e);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 61, 31, 0.4);
    }

    .btn-custom:active[b-dht6vkc6an] {
        transform: translateY(0);
        box-shadow: 0 3px 10px rgba(0, 61, 31, 0.3);
    }

.btn-icon[b-dht6vkc6an] {
    font-size: 1.3rem;
    font-weight: bold;
    transition: transform 0.3s;
}

.btn-custom:hover .btn-icon[b-dht6vkc6an] {
    transform: translateX(-3px);
}

/* Círculo decorativo */
.decorative-circle[b-dht6vkc6an] {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 3px solid rgba(0, 61, 31, 0.1);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: rotate-b-dht6vkc6an 25s linear infinite;
}

    .decorative-circle[b-dht6vkc6an]::before {
        content: '';
        position: absolute;
        width: 150px;
        height: 150px;
        border: 2px solid rgba(0, 61, 31, 0.08);
        border-radius: 50%;
        top: 25px;
        left: 25px;
    }

@keyframes rotate-b-dht6vkc6an {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Puntos decorativos */
.decorative-dots[b-dht6vkc6an] {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

    .decorative-dots span[b-dht6vkc6an] {
        width: 8px;
        height: 8px;
        background: linear-gradient(135deg, #003d1f, #005a2e);
        border-radius: 50%;
        animation: bounce-b-dht6vkc6an 1.5s ease-in-out infinite;
    }

        .decorative-dots span:nth-child(2)[b-dht6vkc6an] {
            animation-delay: 0.2s;
        }

        .decorative-dots span:nth-child(3)[b-dht6vkc6an] {
            animation-delay: 0.4s;
        }

@keyframes bounce-b-dht6vkc6an {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    50% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Responsividad */
@media (max-width: 576px) {
    .error-container[b-dht6vkc6an] {
        padding: 40px 25px;
    }

    .shield-container[b-dht6vkc6an] {
        width: 150px;
        height: 150px;
    }

    .logo-image[b-dht6vkc6an] {
        width: 110px;
    }

    .access-title[b-dht6vkc6an] {
        font-size: 1.8rem;
    }

    .access-message[b-dht6vkc6an] {
        font-size: 1rem;
    }

    .btn-custom[b-dht6vkc6an] {
        padding: 12px 30px;
        font-size: 1rem;
    }
}
/* /Componentes/MenuHorizontal.razor.rz.scp.css */
.user-profile-dropdown[b-ypaj5daj5m] {
    position: relative;
    display: inline-block;
}

.user-profile-button[b-ypaj5daj5m] {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

    .user-profile-button:hover[b-ypaj5daj5m] {
        background-color: rgba(255, 255, 255, 0.1);
    }

.user-avatar[b-ypaj5daj5m] {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.user-info[b-ypaj5daj5m] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-right: 8px;
}

.user-name[b-ypaj5daj5m] {
    color: rgb(1, 61, 31);
    font-size: 12px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.user-rank[b-ypaj5daj5m] {
    color: rgb(1, 61, 31);
    font-size: 12px;
    margin: 0;
    line-height: 1;
}

.dropdown-arrow[b-ypaj5daj5m] {
    color: white;
    transition: transform 0.2s;
}

    .dropdown-arrow.rotated[b-ypaj5daj5m] {
        transform: rotate(180deg);
    }

.dropdown-menu-custom[b-ypaj5daj5m] {
    position: fixed;
    top: 60px; /* Ajusta según la altura de tu header */
    right: 80px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    min-width: 220px;
    z-index: 9999; /* Muy alto para estar por encima de todo */
    overflow: hidden;
    margin-top: 8px;
    animation: fadeIn-b-ypaj5daj5m 0.2s ease-out;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

@keyframes fadeIn-b-ypaj5daj5m {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item-custom[b-ypaj5daj5m] {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 14px;
    line-height: 1;
}

    .dropdown-item-custom:hover[b-ypaj5daj5m] {
        background-color: #f5f5f5;
        text-decoration: none;
        color: #333;
    }

.dropdown-item-icon[b-ypaj5daj5m] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-divider-custom[b-ypaj5daj5m] {
    height: 1px;
    background-color: #e9ecef;
    margin: 0;
}

.user-status[b-ypaj5daj5m] {
    display: flex;
    align-items: center;
    margin-top: 2px;
}

.status-dot[b-ypaj5daj5m] {
    width: 8px;
    height: 8px;
    background-color: #28a745;
    border-radius: 50%;
    margin-right: 6px;
}

.status-text[b-ypaj5daj5m] {
    color: seagreen;
    font-size: 11px;
}

/* Overlay para cerrar el menú al hacer clic fuera */
.dropdown-overlay[b-ypaj5daj5m] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    background: transparent;
}

/* Asegurar que el header no tenga overflow hidden */
#kt_header[b-ypaj5daj5m] {
    overflow: visible !important;
}

.header[b-ypaj5daj5m] {
    overflow: visible !important;
}

.toolbar[b-ypaj5daj5m] {
    overflow: visible !important;
}

@media (max-width: 768px) {
    .user-info[b-ypaj5daj5m] {
        margin-inline-start: 1px;
    }

    .dropdown-menu-custom[b-ypaj5daj5m] {
        right: 20px;
    }
}
/* /Componentes/MenuHorizontalMapa.razor.rz.scp.css */
.icon-path-primary[b-5okkisess4] {
    fill: #4f4f4f !important; /* negro */
}

.icon-path-secondary[b-5okkisess4] {
    fill: #4f4f4f !important; /* plomo o gris oscuro */
    opacity: 0.3; /* respetando tu opacidad original */
}

.user-profile-dropdown[b-5okkisess4] {
    position: relative;
    display: inline-block;
}

.user-profile-button[b-5okkisess4] {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

    .user-profile-button:hover[b-5okkisess4] {
        background-color: rgba(255, 255, 255, 0.1);
    }

.user-avatar[b-5okkisess4] {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.user-info[b-5okkisess4] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-right: 8px;
}

.user-name[b-5okkisess4] {
    color: rgb(1, 61, 31);
    font-size: 12px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.user-rank[b-5okkisess4] {
    color: rgb(1, 61, 31);
    font-size: 12px;
    margin: 0;
    line-height: 1;
}

.dropdown-arrow[b-5okkisess4] {
    color: white;
    transition: transform 0.2s;
}

    .dropdown-arrow.rotated[b-5okkisess4] {
        transform: rotate(180deg);
    }

.dropdown-menu-custom[b-5okkisess4] {
    position: fixed;
    top: 60px; /* Ajusta según la altura de tu header */
    right: 80px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    min-width: 220px;
    z-index: 9999; /* Muy alto para estar por encima de todo */
    overflow: hidden;
    margin-top: 8px;
    animation: fadeIn-b-5okkisess4 0.2s ease-out;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

@keyframes fadeIn-b-5okkisess4 {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item-custom[b-5okkisess4] {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 14px;
    line-height: 1;
}

    .dropdown-item-custom:hover[b-5okkisess4] {
        background-color: #f5f5f5;
        text-decoration: none;
        color: #333;
    }

.dropdown-item-icon[b-5okkisess4] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-divider-custom[b-5okkisess4] {
    height: 1px;
    background-color: #e9ecef;
    margin: 0;
}

.user-status[b-5okkisess4] {
    display: flex;
    align-items: center;
    margin-top: 2px;
}

.status-dot[b-5okkisess4] {
    width: 8px;
    height: 8px;
    background-color: #28a745;
    border-radius: 50%;
    margin-right: 6px;
}

.status-text[b-5okkisess4] {
    color: seagreen;
    font-size: 11px;
}

/* Overlay para cerrar el menú al hacer clic fuera */
.dropdown-overlay[b-5okkisess4] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    background: transparent;
}

/* Asegurar que el header no tenga overflow hidden */
#kt_header[b-5okkisess4] {
    overflow: visible !important;
}

.header[b-5okkisess4] {
    overflow: visible !important;
}

.toolbar[b-5okkisess4] {
    overflow: visible !important;
}

@media (max-width: 768px) {
    .user-info[b-5okkisess4] {
        margin-inline-start: 1px;
    }

    .dropdown-menu-custom[b-5okkisess4] {
        right: 20px;
    }
}
/* /Componentes/MenuVertical.razor.rz.scp.css */
/* Estilos para scroll en el menú lateral */
.aside-menu[b-t3mbhefwo7] {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden; /* Evita scroll en el contenedor principal */
}

/* Contenedor principal del menú con scroll */
.hover-scroll-overlay-y[b-t3mbhefwo7] {
    flex: 1; /* Toma todo el espacio disponible */
    overflow-y: auto; /* Permite scroll vertical */
    overflow-x: hidden; /* Oculta scroll horizontal */
    max-height: calc(100vh - 200px); /* Ajusta según tu layout */
    scrollbar-width: thin; /* Para Firefox */
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent; /* Para Firefox */
}

    /* Estilos del scrollbar para Webkit (Chrome, Safari, Edge) */
    .hover-scroll-overlay-y[b-t3mbhefwo7]::-webkit-scrollbar {
        width: 6px;
    }

    .hover-scroll-overlay-y[b-t3mbhefwo7]::-webkit-scrollbar-track {
        background: transparent;
    }

    .hover-scroll-overlay-y[b-t3mbhefwo7]::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.3);
        border-radius: 3px;
    }

        .hover-scroll-overlay-y[b-t3mbhefwo7]::-webkit-scrollbar-thumb:hover {
            background-color: rgba(255, 255, 255, 0.5);
        }

/* Smooth scroll behavior */
.hover-scroll-overlay-y[b-t3mbhefwo7] {
    scroll-behavior: smooth;
}

/* Ajustes para diferentes alturas de pantalla */
@media (max-height: 768px) {
    .hover-scroll-overlay-y[b-t3mbhefwo7] {
        max-height: calc(100vh - 150px);
    }
}

@media (max-height: 600px) {
    .hover-scroll-overlay-y[b-t3mbhefwo7] {
        max-height: calc(100vh - 120px);
    }
}

@media (max-height: 480px) {
    .hover-scroll-overlay-y[b-t3mbhefwo7] {
        max-height: calc(100vh - 100px);
    }
}

/* Asegurar que el menú no se salga del contenedor */
.menu.menu-column[b-t3mbhefwo7] {
    min-height: min-content;
    padding-bottom: 20px; /* Espacio adicional al final */
}

/* Opcional: Fade effect en los bordes para indicar scroll */
.hover-scroll-overlay-y[b-t3mbhefwo7]::before {
    content: '';
    position: sticky;
    top: 0;
    height: 10px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), transparent);
    z-index: 1;
    pointer-events: none;
}

.hover-scroll-overlay-y[b-t3mbhefwo7]::after {
    content: '';
    position: sticky;
    bottom: 0;
    height: 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.1), transparent);
    z-index: 1;
    pointer-events: none;
}
/* /Componentes/MenuVerticalAnterior.razor.rz.scp.css */
/* Estilos para scroll en el menú lateral */
.aside-menu[b-rd6yuupzk0] {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden; /* Evita scroll en el contenedor principal */
}

/* Contenedor principal del menú con scroll */
.hover-scroll-overlay-y[b-rd6yuupzk0] {
    flex: 1; /* Toma todo el espacio disponible */
    overflow-y: auto; /* Permite scroll vertical */
    overflow-x: hidden; /* Oculta scroll horizontal */
    max-height: calc(100vh - 200px); /* Ajusta según tu layout */
    scrollbar-width: thin; /* Para Firefox */
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent; /* Para Firefox */
}

    /* Estilos del scrollbar para Webkit (Chrome, Safari, Edge) */
    .hover-scroll-overlay-y[b-rd6yuupzk0]::-webkit-scrollbar {
        width: 6px;
    }

    .hover-scroll-overlay-y[b-rd6yuupzk0]::-webkit-scrollbar-track {
        background: transparent;
    }

    .hover-scroll-overlay-y[b-rd6yuupzk0]::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.3);
        border-radius: 3px;
    }

        .hover-scroll-overlay-y[b-rd6yuupzk0]::-webkit-scrollbar-thumb:hover {
            background-color: rgba(255, 255, 255, 0.5);
        }

/* Smooth scroll behavior */
.hover-scroll-overlay-y[b-rd6yuupzk0] {
    scroll-behavior: smooth;
}

/* Ajustes para diferentes alturas de pantalla */
@media (max-height: 768px) {
    .hover-scroll-overlay-y[b-rd6yuupzk0] {
        max-height: calc(100vh - 150px);
    }
}

@media (max-height: 600px) {
    .hover-scroll-overlay-y[b-rd6yuupzk0] {
        max-height: calc(100vh - 120px);
    }
}

@media (max-height: 480px) {
    .hover-scroll-overlay-y[b-rd6yuupzk0] {
        max-height: calc(100vh - 100px);
    }
}

/* Asegurar que el menú no se salga del contenedor */
.menu.menu-column[b-rd6yuupzk0] {
    min-height: min-content;
    padding-bottom: 20px; /* Espacio adicional al final */
}

/* Opcional: Fade effect en los bordes para indicar scroll */
.hover-scroll-overlay-y[b-rd6yuupzk0]::before {
    content: '';
    position: sticky;
    top: 0;
    height: 10px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), transparent);
    z-index: 1;
    pointer-events: none;
}

.hover-scroll-overlay-y[b-rd6yuupzk0]::after {
    content: '';
    position: sticky;
    bottom: 0;
    height: 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.1), transparent);
    z-index: 1;
    pointer-events: none;
}
/* /Componentes/VistaError.razor.rz.scp.css */
:root[b-yy5e8fzgdb]{
  --pnp:#003d1f;           /* principal */
  --pnp-700:#0a5a35;
  --ink:#0e1211;
  --muted:#5b6761;
  --card:#ffffff;
  --ring:rgba(0,61,31,.16);
}

/* ====== Fondo y centrar ====== */
.nf-root[b-yy5e8fzgdb]{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:clamp(16px,3vw,32px);
  background:
    radial-gradient(1400px 800px at -10% 120%, rgba(255,255,255,.7), transparent 60%),
    linear-gradient(120deg, var(--pnp) 0%, #195a41 45%, #e9f2ec 100%);
  background-size:160% 160%;
  animation:bg-pan-b-yy5e8fzgdb 18s ease-in-out infinite;
  font-family:system-ui,Segoe UI,Roboto,Ubuntu,Calibri,sans-serif;
}
@media (prefers-reduced-motion:reduce){ .nf-root[b-yy5e8fzgdb]{animation:none;} }
@keyframes bg-pan-b-yy5e8fzgdb{
  0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%}
}

/* ====== Card ====== */
.nf-card[b-yy5e8fzgdb]{
  width:min(1100px,100%);
  background:color-mix(in oklab, var(--card) 94%, transparent);
  backdrop-filter:saturate(120%) blur(6px);
  border-radius:22px;
  box-shadow:
    0 18px 40px rgba(0,0,0,.22),
    inset 0 0 0 1px rgba(0,0,0,.05);
  display:grid;
  grid-template-columns: 1.05fr 1fr;
  overflow:clip;
}
@media (max-width:920px){ .nf-card[b-yy5e8fzgdb]{ grid-template-columns:1fr } }

/* ====== Imagen: SIEMPRE completa ====== */
.nf-left[b-yy5e8fzgdb]{
  display:grid; place-items:center;
  padding:clamp(20px,3vw,36px);
  background:
    radial-gradient(800px 480px at 10% -30%, rgba(255,255,255,.65), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,.15));
}
.nf-img-frame[b-yy5e8fzgdb]{
  width:min(460px,82%);
  aspect-ratio:1/1;
  border-radius:28px;
  background:#fff;
  box-shadow:
    0 24px 50px rgba(0,0,0,.18),
    0 0 0 1px rgba(0,0,0,.06),
    0 40px 120px var(--ring);
  display:grid; place-items:center;
  padding:clamp(18px,2.2vw,28px);
}
.nf-img[b-yy5e8fzgdb]{
  width:100%; height:100%;
  object-fit:contain;  /* <-- evita recortes */
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.25));
  transform:translateZ(0);
}

/* ====== Texto y 404 ====== */
.nf-right[b-yy5e8fzgdb]{
  position:relative;
  padding:clamp(28px,4vw,56px);
  display:flex; flex-direction:column;
  justify-content:center;
}
.nf-code[b-yy5e8fzgdb]{
  font-size:clamp(86px, 12vw, 180px); /* GRANDE de verdad */
  line-height:.9;
  font-weight:1000;
  letter-spacing:-.02em;
  color:transparent;
  background:linear-gradient(180deg, var(--pnp) 0%, var(--pnp-700) 55%, #86d2ad 100%);
  -webkit-background-clip:text;
  background-clip:text;
  text-shadow:
     0 10px 26px rgba(0,61,31,.25),
     0 1px 0 rgba(255,255,255,.45);
  margin:0 0 6px 0;
}
.nf-title[b-yy5e8fzgdb]{
  margin:2px 0 6px;
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 850;
  color:var(--ink);
}
.nf-desc[b-yy5e8fzgdb]{
  margin:0 0 18px;
  font-size: clamp(16px, 1.15vw, 18px);
  color:var(--muted);
}

/* ====== Botón ====== */
.nf-btn[b-yy5e8fzgdb]{
  align-self:flex-start;
  background:var(--pnp);
  color:#fff;
  border:0;
  border-radius:999px;
  padding:12px 22px;
  font-weight:800;
  box-shadow:0 12px 22px var(--ring);
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
  cursor:pointer;
}
.nf-btn:hover[b-yy5e8fzgdb]{ background:var(--pnp-700); transform:translateY(-1px); box-shadow:0 16px 26px var(--ring); }
.nf-btn:active[b-yy5e8fzgdb]{ transform:translateY(0); }
.nf-btn:focus-visible[b-yy5e8fzgdb]{ outline:3px solid #ccebdc; outline-offset:3px; }

/* Centrado en móvil */
@media (max-width:920px){
  .nf-right[b-yy5e8fzgdb]{ text-align:center; }
  .nf-btn[b-yy5e8fzgdb]{ align-self:center; }
}
/* /Layout/LoginLayout.razor.rz.scp.css */
/* /Pages/AlertaExterna/BandejaAlertasExternaGrid.razor.rz.scp.css */
body[b-3a4s4y6qvy] {
}
/* /Pages/AlertaExterna/BandejaAlertasExtorsivas.razor.rz.scp.css */
/* BOTÓN FLOTANTE */
.chat-float-btn[b-ctab4lzwfd] {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
    z-index: 9999;
}

/* BURBUJA DEL CHAT */
.chat-widget[b-ctab4lzwfd] {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 320px;
    height: 420px;
    background: white;
    border-radius: 12px;
    box-shadow: 0px 6px 20px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 99999;
}

/* HEADER */
.chat-header[b-ctab4lzwfd] {
    background: #007bff;
    color: white;
    padding: 10px;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn[b-ctab4lzwfd] {
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

/* LISTA DE MENSAJES */
.chat-body[b-ctab4lzwfd] {
    padding: 10px;
    flex-grow: 1;
    overflow-y: auto;
    background: #f5f5f5;
}

/* INPUT */
.chat-input[b-ctab4lzwfd] {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
}

    .chat-input input[b-ctab4lzwfd] {
        flex-grow: 1;
        border: 1px solid #ccc;
        padding: 6px;
        border-radius: 6px;
    }

.send-btn[b-ctab4lzwfd] {
    margin-left: 8px;
    background: #007bff;
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}


.msg-propio[b-ctab4lzwfd] {
    text-align: right;
    margin-bottom: 8px;
}

    .msg-propio .bubble[b-ctab4lzwfd] {
        background: #d1e7ff;
        padding: 8px 12px;
        border-radius: 10px;
        display: inline-block;
    }

.msg-otro[b-ctab4lzwfd] {
    text-align: left;
    margin-bottom: 8px;
}

    .msg-otro .bubble[b-ctab4lzwfd] {
        background: #eee;
        padding: 8px 12px;
        border-radius: 10px;
        display: inline-block;
    }



#kt_content_container-nuevo[b-ctab4lzwfd] {
    max-width: 80%; /* Aumenta el ancho máximo */
    margin: 0 auto; /* Centra el contenido */
}

.zoom-container[b-ctab4lzwfd] {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
    width: 450px;
    margin: auto;
}

    .zoom-container img[b-ctab4lzwfd] {
        transition: transform 0.3s ease;
        cursor: zoom-in;
        max-height: 100%;
        max-width: 100%;
    }

    .zoom-container:hover img[b-ctab4lzwfd] {
        transform: scale(2.5);
        z-index: 10;
        position: relative;
    }
/* /Pages/MapaNivelSuperior/MapaSuperior.razor.rz.scp.css */
.contenedor-mapa-full[b-xv39s7xll1] {
    position: relative;
    width: 100%;
    height: calc(100vh - 78px); /* respeta barra superior */
}

#mapaCalor[b-xv39s7xll1] {
    width: 100%;
    height: 100%;
}

.panel-filtros[b-xv39s7xll1] {
    position: absolute;
    top: 100px;
    left: 80px;
    width: 540px;
    background: rgba(255,255,255,.96);
    z-index: 9999;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
    max-height: 90vh;
    overflow: auto;
}
    .panel-filtros h5[b-xv39s7xll1] {
        text-align: center;
        font-weight: 700;
        color: #0F3F23; /* 🔥 verde institucional */
        font-size: 18px;
        margin-bottom: 12px;
    }

    /* Scroll bonito */
    .panel-filtros[b-xv39s7xll1]::-webkit-scrollbar,
    .lista-check[b-xv39s7xll1]::-webkit-scrollbar {
        width: 8px;
    }

    .panel-filtros[b-xv39s7xll1]::-webkit-scrollbar-thumb,
    .lista-check[b-xv39s7xll1]::-webkit-scrollbar-thumb {
        background: #b9b9b9;
        border-radius: 10px;
    }


/* Sub panel */
.sub-panel[b-xv39s7xll1] {
    margin-top: 10px;
    padding-left: 12px;
}

/* Labels */
.panel-filtros label[b-xv39s7xll1] {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    cursor: pointer;
}

/* Subtitulo */
.lbl-subtitulo[b-xv39s7xll1] {
    font-weight: 600;
    margin-top: 12px;
    margin-bottom: 8px;
    display: block;
    color: #343a40;
}

/* =======================================================
   INPUTS
======================================================= */

/* Input buscador */
.input-busqueda[b-xv39s7xll1] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 10px;
    outline: none;
    margin-bottom: 10px;
    font-size: 14px;
    transition: .2s;
}

    .input-busqueda:focus[b-xv39s7xll1] {
        border-color: #0d6efd;
        box-shadow: 0 0 0 3px rgba(13,110,253,.15);
    }

/* Select normal */
.form-select[b-xv39s7xll1] {
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 14px;
}

/* =======================================================
   LISTAS GRANDES (200 resultados API)
======================================================= */
.lista-check[b-xv39s7xll1] {
    border: 1px solid #dee2e6;
    border-radius: 12px;
    background: white;
    max-height: 220px;
    overflow-y: auto;
    padding: 10px;
    margin-bottom: 12px;
}

.item-check[b-xv39s7xll1] {
    display: block;
    padding: 6px 4px;
    border-bottom: 1px solid #f1f1f1;
    font-size: 12px;
}

    .item-check:last-child[b-xv39s7xll1] {
        border-bottom: none;
    }

/* =======================================================
   OPCIONES SELECCIONADAS
======================================================= */
.chips-box[b-xv39s7xll1] {
    border: 1px dashed #d0d0d0;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 10px;
    min-height: 45px;
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip-item[b-xv39s7xll1] {
    background: #e9f5ff;
    color: #0d6efd;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chip-x[b-xv39s7xll1] {
    border: none;
    background: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
}

/* =======================================================
   BOTON BUSCAR
======================================================= */
.contenedor-btn[b-xv39s7xll1] {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.btn-buscar[b-xv39s7xll1] {
    background: #198754;
    color: white;
    border: none;
    padding: 11px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    min-width: 150px;
    transition: .25s;
    cursor: pointer;
}

    .btn-buscar:hover[b-xv39s7xll1] {
        background: #157347;
        transform: translateY(-1px);
    }

/* =======================================================
   POPUP FLOTANTE GENERAL
======================================================= */
.popup-evento[b-xv39s7xll1] {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 320px;
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,.25);
    z-index: 9999;
    animation: fadeIn-b-xv39s7xll1 .25s ease;
}

    .popup-evento h5[b-xv39s7xll1] {
        margin-bottom: 15px;
        font-weight: 700;
        color: #0d6efd;
    }

    .popup-evento p[b-xv39s7xll1] {
        margin-bottom: 10px;
        font-size: 15px;
    }

/* Botón cerrar */
.btn-cerrar[b-xv39s7xll1] {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: #dc3545;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
}

    .btn-cerrar:hover[b-xv39s7xll1] {
        background: #bb2d3b;
    }

/* =======================================================
   POPUP DEL MAPA
======================================================= */
.popup-policial[b-xv39s7xll1] {
    min-width: 220px;
    font-size: 14px;
}

    .popup-policial h5[b-xv39s7xll1] {
        margin-bottom: 10px;
        color: #0d6efd;
        font-weight: 700;
    }

/* =======================================================
   ANIMACION
======================================================= */
@keyframes fadeIn-b-xv39s7xll1 {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contenedor-fechas[b-xv39s7xll1] {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.bloque-fecha[b-xv39s7xll1] {
    flex: 1;
}

.lbl-fecha[b-xv39s7xll1] {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}


.panel-resumen-mapa[b-xv39s7xll1] {
    position: absolute;
    right: 25px;
    bottom: 25px;
    width: 470px;
    max-width: 45%;
    background: rgba(255,255,255,.97);
    z-index: 9999;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0,0,0,.18);
    overflow: hidden;
    animation: aparecerResumen-b-xv39s7xll1 .35s ease;
    backdrop-filter: blur(8px);
}

/* Header */
.header-resumen[b-xv39s7xll1] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #198754, #157347);
    color: white;
}

.icono-resumen[b-xv39s7xll1] {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.titulo-resumen[b-xv39s7xll1] {
    font-weight: 700;
    font-size: 16px;
}

.subtitulo-resumen[b-xv39s7xll1] {
    font-size: 12px;
    opacity: .85;
}

/* Body */
.contenido-resumen[b-xv39s7xll1] {
    padding: 18px 20px;
}

.item-resumen[b-xv39s7xll1] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f1f1;
}

    .item-resumen:last-child[b-xv39s7xll1] {
        border-bottom: none;
    }

.label-resumen[b-xv39s7xll1] {
    font-size: 13px;
    color: #6c757d;
    font-weight: 600;
}

.valor-resumen[b-xv39s7xll1] {
    font-size: 14px;
    color: #212529;
    font-weight: 700;
}

/* Total */
.total-box[b-xv39s7xll1] {
    margin-top: 8px;
    padding-top: 14px;
}

.valor-total[b-xv39s7xll1] {
    font-size: 24px;
    color: #0d6efd;
    font-weight: 800;
}

/* Animación */
@keyframes aparecerResumen-b-xv39s7xll1 {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.opciones-inline[b-xv39s7xll1] {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-top: 8px;
    margin-bottom: 8px;
}

.radio-inline[b-xv39s7xll1] {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

    .radio-inline input[type="radio"][b-xv39s7xll1] {
        cursor: pointer;
    }

.lista-unidades[b-xv39s7xll1] {
    max-height: 180px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.unidad-item[b-xv39s7xll1] {
    background: #f1f3f5;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px; /* 🔥 más pequeño */
    word-break: break-word;
    white-space: normal; /* 🔥 evita corte feo */
}
.item-resumen-columna[b-xv39s7xll1] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}
.header-filtros[b-xv39s7xll1] {
    text-align: center;
    margin-bottom: 15px;
}



/* CAJA DE GUIA */
.guia-filtros[b-xv39s7xll1] {
    background: #f1f8ff;
    border: 1px solid #cfe2ff;
    border-radius: 12px;
    padding: 12px;
    font-size: 13px;
    color: #084298;
    text-align: left;
}

    /* TEXTO */
    .guia-filtros p[b-xv39s7xll1] {
        margin: 0 0 6px 0;
        font-weight: 600;
    }

    /* LISTA */
    .guia-filtros ul[b-xv39s7xll1] {
        margin: 0;
        padding-left: 18px;
    }

    .guia-filtros li[b-xv39s7xll1] {
        margin-bottom: 4px;
    }

.nota-importante[b-xv39s7xll1] {
    margin-top: 10px;
    padding: 10px;
    background: #fff3cd;
    border: 1px solid #ffe69c;
    border-radius: 10px;
    color: #664d03;
    font-size: 13px;
}
/* /Pages/MapaPatrullaje/MapaPatrullaje.razor.rz.scp.css */
/* Mapa que ocupa toda la pantalla disponible */
#mapa[b-kuzfy6y6xn] {
    width: 100vw;
    height: calc(100vh - 60px); /* Ajusta según la altura de MenuHorizontalMapa */
    position: fixed;
    top: 76px; /* Altura del menú horizontal */
    left: 0;
    z-index: 1;
}

/* Panel flotante de capas - COMPACTO Y LADO IZQUIERDO */
.panel-capas-flotante[b-kuzfy6y6xn] {
    position: fixed;
    top: 90px; /* Debajo del menú */
    left: 48px !important; /* Lado izquierdo */
    width: 300px !important; /* Ancho más compacto */
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    z-index: 1000;
    max-height: calc(100vh - 120px);
    overflow: hidden;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

    .panel-capas-flotante.collapsed[b-kuzfy6y6xn] {
        width: 80px; /* Ancho para mostrar el botón colapsado */
        overflow: hidden;
    }

/* Botón colapsado que se muestra cuando el panel está cerrado */
.btn-capas-collapsed[b-kuzfy6y6xn] {
    display: none; /* Oculto por defecto */
    position: fixed;
    top: 90px;
    left: 48px !important; /* Lado izquierdo */
    width: 60px !important;
    height: 60px !important;
    background: white;
    border: none;
    border-radius: 50% !important; /* Completamente circular */
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    z-index: 1001;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #495057;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 0;
}

    .btn-capas-collapsed:hover[b-kuzfy6y6xn] {
        background-color: #f8f9fa;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        transform: scale(1.05); /* Efecto de hover más suave */
    }

    .btn-capas-collapsed i[b-kuzfy6y6xn] {
        font-size: 18px;
        margin-bottom: 0px;
        display: block;
    }

    .btn-capas-collapsed span[b-kuzfy6y6xn] {
        font-size: 8px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        line-height: 1;
    }

/* Mostrar botón colapsado cuando el panel está oculto */
.panel-capas-flotante.collapsed + .btn-capas-collapsed[b-kuzfy6y6xn] {
    display: flex !important;
}

/* Ocultar el panel completo cuando está colapsado */
.panel-capas-flotante.collapsed[b-kuzfy6y6xn] {
    display: none;
}

.panel-header[b-kuzfy6y6xn] {
    background: #f8f9fa;
    padding: 6px 10px; /* Padding más compacto */
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    white-space: nowrap;
    min-height: 32px; /* Altura mínima más pequeña */
}

    .panel-header h6[b-kuzfy6y6xn] {
        color: #495057;
        font-weight: 600;
        margin: 0;
        font-size: 13px; /* Texto más pequeño */
        overflow: hidden;
        text-overflow: ellipsis;
        display: flex;
        align-items: center;
        gap: 6px; /* Espacio entre ícono y texto */
    }

        .panel-header h6 i[b-kuzfy6y6xn] {
            font-size: 14px;
            color: #6c757d;
            flex-shrink: 0; /* Evita que el ícono se comprima */
        }

.btn-toggle[b-kuzfy6y6xn] {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 4px 6px; /* Padding más pequeño */
    border-radius: 3px;
    transition: all 0.2s;
    flex-shrink: 0;
    font-size: 10px; /* Icono más pequeño */
}

    .btn-toggle:hover[b-kuzfy6y6xn] {
        background-color: #e9ecef;
        color: #495057;
    }

.panel-content[b-kuzfy6y6xn] {
    max-height: 320px; /* Altura máxima reducida */
    overflow-y: auto;
    padding: 4px; /* Padding más compacto */
}

.capa-item[b-kuzfy6y6xn] {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Distribuye espacio entre TreeView y controles */
    padding: 3px 5px; /* Padding muy compacto */
    margin-bottom: 1px; /* Margen mínimo */
    border-radius: 3px;
    transition: background-color 0.2s;
    min-height: 26px; /* Altura mínima reducida */
    width: 100%; /* Asegurar que ocupe todo el ancho */
}

    .capa-item:hover[b-kuzfy6y6xn] {
        background-color: #f8f9fa;
    }

.numero-capa[b-kuzfy6y6xn] {
    width: 16px; /* Círculo más pequeño */
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 9px; /* Número más pequeño */
    margin-right: 5px; /* Margen reducido */
    flex-shrink: 0;
}

/* Colores para cada tipo de capa */
.conexion-unidad[b-kuzfy6y6xn] {
    background-color: #28a745;
}

.conexion-efectivo[b-kuzfy6y6xn] {
    background-color: #28a745;
}

.delimitacion[b-kuzfy6y6xn] {
    background-color: #dc3545;
}

.emergencias[b-kuzfy6y6xn] {
    background-color: #17a2b8;
}

.denuncias-calor[b-kuzfy6y6xn] {
    background-color: #ffc107;
    color: #212529 !important;
}

.denuncias-puntos[b-kuzfy6y6xn] {
    background-color: #6f42c1;
}

.app-ciudadano[b-kuzfy6y6xn] {
    background-color: #fd7e14;
}

.nombre-capa[b-kuzfy6y6xn] {
    flex: 1;
    font-size: 12px; /* Texto más pequeño */
    color: #495057;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 4px; /* Espacio antes de los controles */
}

.controles-capa[b-kuzfy6y6xn] {
    display: flex;
    gap: 3px; /* Gap un poco mayor para mejor separación */
    flex-shrink: 0;
    margin-left: auto; /* Empuja los controles hacia la derecha */
    padding-left: 8px; /* Espacio entre el contenido y los controles */
}

.btn-control[b-kuzfy6y6xn] {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 2px 3px; /* Padding muy compacto */
    border-radius: 2px;
    font-size: 8px; /* Iconos más pequeños */
    transition: all 0.2s;
    min-width: 16px; /* Ancho mínimo reducido */
    height: 16px; /* Altura reducida */
    display: flex;
    align-items: center;
    justify-content: center;
}

    .btn-control:hover[b-kuzfy6y6xn] {
        background-color: #e9ecef;
        color: #495057;
    }

    .btn-control.active[b-kuzfy6y6xn] {
        background-color: #007bff;
        color: white;
    }

/* Responsive - Móviles */
@media (max-width: 768px) {
    .panel-capas-flotante[b-kuzfy6y6xn] {
        width: 180px; /* Aún más compacto en móviles */
        left: 8px; /* Lado izquierdo */
    }

    .btn-capas-collapsed[b-kuzfy6y6xn] {
        width: 55px !important;
        height: 55px !important;
        left: 8px; /* Lado izquierdo */
        font-size: 9px;
    }

        .btn-capas-collapsed i[b-kuzfy6y6xn] {
            font-size: 16px;
        }

        .btn-capas-collapsed span[b-kuzfy6y6xn] {
            font-size: 7px;
        }

    .nombre-capa[b-kuzfy6y6xn] {
        font-size: 9px;
    }

    .panel-header h6[b-kuzfy6y6xn] {
        font-size: 10px;
    }

    .numero-capa[b-kuzfy6y6xn] {
        width: 14px;
        height: 14px;
        font-size: 8px;
    }
}

@media (max-width: 480px) {
    .panel-capas-flotante[b-kuzfy6y6xn] {
        width: 160px; /* Máximo compacto en pantallas pequeñas */
        left: 5px; /* Lado izquierdo */
    }

    .btn-capas-collapsed[b-kuzfy6y6xn] {
        width: 50px !important;
        height: 50px !important;
        left: 5px; /* Lado izquierdo */
        font-size: 8px;
    }

        .btn-capas-collapsed i[b-kuzfy6y6xn] {
            font-size: 14px;
        }

        .btn-capas-collapsed span[b-kuzfy6y6xn] {
            font-size: 6px;
        }

    .capa-item[b-kuzfy6y6xn] {
        padding: 2px 4px;
        min-height: 24px;
    }

    .numero-capa[b-kuzfy6y6xn] {
        width: 12px;
        height: 12px;
        font-size: 7px;
        margin-right: 3px;
    }

    .nombre-capa[b-kuzfy6y6xn] {
        font-size: 8px;
    }

    .btn-control[b-kuzfy6y6xn] {
        min-width: 14px;
        height: 14px;
        font-size: 7px;
    }

    .panel-header[b-kuzfy6y6xn] {
        padding: 4px 6px;
        min-height: 28px;
    }
}

/* Scroll personalizado para el panel */
.panel-content[b-kuzfy6y6xn]::-webkit-scrollbar {
    width: 4px;
}

.panel-content[b-kuzfy6y6xn]::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.panel-content[b-kuzfy6y6xn]::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

    .panel-content[b-kuzfy6y6xn]::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }

/* Estilos para MudTreeView dentro de capa-item */
.capa-item .mud-treeview[b-kuzfy6y6xn] {
    flex: 1; /* Toma todo el espacio disponible */
    margin-right: 8px; /* Espacio antes de los controles */
}

.capa-item .mud-treeview-item[b-kuzfy6y6xn] {
    font-size: 12px !important;
    color: #495057 !important;
}

.capa-item .mud-treeview-item-content[b-kuzfy6y6xn] {
    padding: 2px 4px !important;
}

/* Ajustar el tamaño de los iconos de expansión del TreeView */
.capa-item .mud-treeview .mud-icon-button[b-kuzfy6y6xn] {
    width: 16px !important;
    height: 16px !important;
    padding: 0 !important;
}

    .capa-item .mud-treeview .mud-icon-button .mud-icon-root[b-kuzfy6y6xn] {
        font-size: 12px !important;
    }



/* Agregar al final de tu archivo CSS existente */

/* OCULTAR TODOS LOS POPUPS Y TOOLTIPS */
/*.leaflet-popup {
    display: none !important;
}*/

/*.leaflet-popup-pane {
    display: none !important;
}

.leaflet-tooltip {
    display: none !important;
}

.leaflet-tooltip-pane {
    display: none !important;
}

.jurisdiccion-tooltip {
    display: none !important;
}
*/
/* Ocultar cualquier elemento flotante de Leaflet */
.leaflet-overlay-pane .leaflet-popup[b-kuzfy6y6xn],
.leaflet-overlay-pane .leaflet-tooltip[b-kuzfy6y6xn] {
    display: none !important;
}

/* Animación para polígonos */
@keyframes polygon-appear-b-kuzfy6y6xn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.leaflet-interactive[b-kuzfy6y6xn] {
    animation: polygon-appear-b-kuzfy6y6xn 0.3s ease-in-out;
}

/* Mejoras responsivas para el mapa */
@media (max-width: 768px) {
    /* Asegurar que no aparezcan tooltips en móviles */
    .leaflet-tooltip[b-kuzfy6y6xn],
    .leaflet-popup[b-kuzfy6y6xn] {
        display: none !important;
    }
}

/* Animación para polígonos */
@keyframes polygon-appear-b-kuzfy6y6xn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.leaflet-interactive[b-kuzfy6y6xn] {
    animation: polygon-appear-b-kuzfy6y6xn 0.3s ease-in-out;
}

/* Mejoras responsivas para el mapa */
@media (max-width: 768px) {
    .leaflet-popup-content[b-kuzfy6y6xn] {
        margin: 8px 12px !important;
        font-size: 11px !important;
    }

    .jurisdiccion-tooltip[b-kuzfy6y6xn] {
        font-size: 10px !important;
        padding: 2px 6px !important;
    }
}



/* Estilos específicos para mapa de calor - Agregar al final de tu CSS */

/* Estilo para el botón de mapa de calor */
.btn-control .fa-fire[b-kuzfy6y6xn] {
    color: #ff6b6b;
    transition: all 0.3s ease;
}

.btn-control:hover .fa-fire[b-kuzfy6y6xn] {
    color: #ff5252;
    transform: scale(1.1);
}

.btn-control.active .fa-fire[b-kuzfy6y6xn] {
    color: white;
    animation: fire-pulse-b-kuzfy6y6xn 1.5s ease-in-out infinite alternate;
}

/* Animación para el ícono de fuego */
@keyframes fire-pulse-b-kuzfy6y6xn {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }

    100% {
        transform: scale(1.1);
        filter: brightness(1.2);
    }
}

/* Personalización para SweetAlert2 del mapa de calor */
.swal2-popup.swal2-modal[b-kuzfy6y6xn] {
    border-radius: 12px !important;
}

.swal2-title[b-kuzfy6y6xn] {
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
}

/* Estilos para los selects en el modal */
.swal2-html-container select[b-kuzfy6y6xn] {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

    .swal2-html-container select:focus[b-kuzfy6y6xn] {
        border-color: #ff6b6b !important;
        box-shadow: 0 0 0 0.2rem rgba(255, 107, 107, 0.25) !important;
        outline: none;
    }

    .swal2-html-container select:disabled[b-kuzfy6y6xn] {
        background-color: #f8f9fa;
        color: #6c757d;
        cursor: not-allowed;
    }

/* Estilos para inputs de fecha */
.swal2-html-container input[type="date"][b-kuzfy6y6xn] {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

    .swal2-html-container input[type="date"]:focus[b-kuzfy6y6xn] {
        border-color: #ff6b6b !important;
        box-shadow: 0 0 0 0.2rem rgba(255, 107, 107, 0.25) !important;
        outline: none;
    }

/* Estilo para el estado de filtros */
#estado-filtros[b-kuzfy6y6xn] {
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Hover effects para los labels */
.swal2-html-container label[b-kuzfy6y6xn] {
    transition: color 0.3s ease;
    cursor: pointer;
}

    .swal2-html-container label:hover[b-kuzfy6y6xn] {
        color: #ff6b6b !important;
    }

/* Grid responsive para las fechas */
@media (max-width: 480px) {
    .swal2-html-container div[style*="grid-template-columns"][b-kuzfy6y6xn] {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
}

/* Indicador visual de carga del mapa de calor */
.capa-item.loading .btn-control .fa-fire[b-kuzfy6y6xn] {
    animation: spin-b-kuzfy6y6xn 1s linear infinite;
}

@keyframes spin-b-kuzfy6y6xn {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Estilos para la capa de heatmap activa */
.leaflet-heatmap-layer[b-kuzfy6y6xn] {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* Tooltip personalizado para puntos de calor */
.heatmap-tooltip[b-kuzfy6y6xn] {
    background: rgba(255, 107, 107, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: none;
}

    .heatmap-tooltip[b-kuzfy6y6xn]::before {
        border-top-color: rgba(255, 107, 107, 0.9) !important;
    }

/* Controles de intensidad del mapa de calor */
.heatmap-controls[b-kuzfy6y6xn] {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
}

    .heatmap-controls label[b-kuzfy6y6xn] {
        font-size: 12px;
        font-weight: 600;
        color: #495057;
        margin-bottom: 5px;
        display: block;
    }

    .heatmap-controls input[type="range"][b-kuzfy6y6xn] {
        width: 100%;
        margin: 5px 0;
    }




/* ✅ NUEVA REGLA SÚPER ESPECÍFICA QUE SIEMPRE GANARÁ */
div.heatmap-legend[b-kuzfy6y6xn],
div#heatmap-legend-container[b-kuzfy6y6xn],
#heatmap-legend-container.heatmap-legend[b-kuzfy6y6xn] {
    position: fixed !important;
    bottom: 20px !important;
    right: 3px !important; /* SÚPER PEGADO AL BORDE */
    background: white !important;
    padding: 15px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25) !important;
    z-index: 99999 !important; /* Z-INDEX MÁS ALTO */
    min-width: 220px !important;
    max-width: 280px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    border: 2px solid #007bff !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    transition: right 0.3s ease !important;
}

/* ✅ FORZAR POSICIÓN EN DESKTOP CON MÁXIMA ESPECIFICIDAD */
@media (min-width: 1025px) {
    div.heatmap-legend[b-kuzfy6y6xn],
    div#heatmap-legend-container[b-kuzfy6y6xn],
    #heatmap-legend-container.heatmap-legend[b-kuzfy6y6xn] {
        right: 3px !important; /* CASI EN EL BORDE */
        bottom: 15px !important;
    }
}

/* ✅ TABLETS CON MÁXIMA ESPECIFICIDAD */
@media (min-width: 769px) and (max-width: 1024px) {
    div.heatmap-legend[b-kuzfy6y6xn],
    div#heatmap-legend-container[b-kuzfy6y6xn],
    #heatmap-legend-container.heatmap-legend[b-kuzfy6y6xn] {
        right: 5px !important;
        bottom: 15px !important;
        min-width: 200px !important;
        max-width: 250px !important;
    }
}

/* ✅ MÓVILES CON MÁXIMA ESPECIFICIDAD */
@media (max-width: 768px) {
    div.heatmap-legend[b-kuzfy6y6xn],
    div#heatmap-legend-container[b-kuzfy6y6xn],
    #heatmap-legend-container.heatmap-legend[b-kuzfy6y6xn] {
        bottom: 80px !important;
        right: 5px !important;
        left: 5px !important;
        min-width: auto !important;
        max-width: calc(100vw - 10px) !important;
        padding: 12px !important;
    }
}

/* ✅ OVERRIDE COMPLETO DE REGLAS ANTERIORES */
.heatmap-legend[b-kuzfy6y6xn] {
    position: fixed !important;
    right: 5px !important;
    bottom: 20px !important;
}

/* ✅ EVITAR INTERFERENCIA CON CONTROLES DE LEAFLET */
.leaflet-bottom.leaflet-right[b-kuzfy6y6xn] {
    margin-bottom: 5px !important;
    margin-right: 290px !important;
}

/* ✅ RESPONSIVE PARA CONTROLES */
@media (max-width: 768px) {
    .leaflet-bottom.leaflet-right[b-kuzfy6y6xn] {
        margin-right: 5px !important;
        margin-bottom: 180px !important;
    }
}

/* ✅ CUANDO EL PANEL ESTÁ ABIERTO */
body:has(.panel-capas-flotante:not(.collapsed)) .leaflet-bottom.leaflet-right[b-kuzfy6y6xn] {
    margin-right: 590px !important;
}

@media (max-width: 768px) {
    body:has(.panel-capas-flotante:not(.collapsed)) .leaflet-bottom.leaflet-right[b-kuzfy6y6xn] {
        margin-right: 5px !important;
        margin-bottom: 180px !important;
    }
}

/* ✅ ANIMACIÓN DE ENTRADA */
@keyframes leyendaSlideIn-b-kuzfy6y6xn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

div.heatmap-legend[b-kuzfy6y6xn],
div#heatmap-legend-container[b-kuzfy6y6xn] {
    animation: leyendaSlideIn-b-kuzfy6y6xn 0.4s ease-out !important;
}


.heatmap-legend h6[b-kuzfy6y6xn] {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    text-align: center;
}

.heatmap-gradient[b-kuzfy6y6xn] {
    height: 20px;
    background: linear-gradient(to right, blue, lime, yellow, orange, red, darkred);
    border-radius: 10px;
    margin-bottom: 8px;
}

.heatmap-labels[b-kuzfy6y6xn] {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #6c757d;
}

/* Responsivo para móviles */
@media (max-width: 768px) {
    .heatmap-legend[b-kuzfy6y6xn] {
        bottom: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
    }

    .heatmap-controls[b-kuzfy6y6xn] {
        top: 5px;
        right: 5px;
        left: 5px;
        text-align: center;
    }
}

/* =====================================
   CSS DEFINITIVO PARA LEYENDA DEL MAPA DE CALOR
   ===================================== */

/* Leyenda base - Posición fija correcta */
.heatmap-legend[b-kuzfy6y6xn],
#heatmap-legend-container[b-kuzfy6y6xn] {
    position: fixed !important;
    bottom: 20px !important;
    right: 5px !important; /* MÁS CERCA del borde derecho */
    background: white !important;
    padding: 15px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25) !important;
    z-index: 10000 !important;
    min-width: 220px !important;
    max-width: 280px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    border: 2px solid #007bff !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    transition: right 0.3s ease !important;
}

/* ✅ FORZAR POSICIÓN EN DESKTOP */
@media (min-width: 1025px) {
    .heatmap-legend[b-kuzfy6y6xn],
    #heatmap-legend-container[b-kuzfy6y6xn] {
        right: 15px !important; /* Muy cerca del borde */
        bottom: 15px !important;
    }
}

/* Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .heatmap-legend[b-kuzfy6y6xn],
    #heatmap-legend-container[b-kuzfy6y6xn] {
        right: 15px !important;
        bottom: 15px !important;
        min-width: 200px !important;
        max-width: 250px !important;
    }
}

/* Móviles */
@media (max-width: 768px) {
    .heatmap-legend[b-kuzfy6y6xn],
    #heatmap-legend-container[b-kuzfy6y6xn] {
        bottom: 80px !important;
        right: 10px !important;
        left: 10px !important;
        min-width: auto !important;
        max-width: calc(100vw - 20px) !important;
        padding: 12px !important;
    }
}

/* ✅ EVITAR INTERFERENCIA CON CONTROLES DE LEAFLET */
.leaflet-bottom.leaflet-right[b-kuzfy6y6xn] {
    margin-bottom: 5px !important;
    margin-right: 300px !important; /* Dar espacio a la leyenda */
}

/* ✅ RESPONSIVE PARA CONTROLES */
@media (max-width: 768px) {
    .leaflet-bottom.leaflet-right[b-kuzfy6y6xn] {
        margin-right: 10px !important;
        margin-bottom: 180px !important;
    }
}

/* ✅ CUANDO EL PANEL ESTÁ ABIERTO - MOVER CONTROLES */
body:has(.panel-capas-flotante:not(.collapsed)) .leaflet-bottom.leaflet-right[b-kuzfy6y6xn] {
    margin-right: 600px !important; /* Panel + leyenda */
}

@media (max-width: 768px) {
    body:has(.panel-capas-flotante:not(.collapsed)) .leaflet-bottom.leaflet-right[b-kuzfy6y6xn] {
        margin-right: 10px !important;
        margin-bottom: 180px !important;
    }
}

/* ✅ ASEGURAR QUE LA LEYENDA ESTÉ SIEMPRE VISIBLE */
.heatmap-legend[b-kuzfy6y6xn],
#heatmap-legend-container[b-kuzfy6y6xn] {
    /* Forzar visibilidad absoluta */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    /* Evitar que se oculte por otros elementos */
    z-index: 99999 !important;
    /* Posición absoluta respecto al viewport */
    position: fixed !important;
}

/* ✅ ANIMACIÓN DE ENTRADA */
@keyframes leyendaSlideIn-b-kuzfy6y6xn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.heatmap-legend[b-kuzfy6y6xn],
#heatmap-legend-container[b-kuzfy6y6xn] {
    animation: leyendaSlideIn-b-kuzfy6y6xn 0.4s ease-out !important;
}


/* =====================================
   ESTILOS PARA DENUNCIAS POR PUNTOS
   ===================================== */

/* Estilo para el botón de puntos */
.btn-control .fa-exclamation-triangle[b-kuzfy6y6xn] {
    color: #6f42c1;
    transition: all 0.3s ease;
}

.btn-control:hover .fa-exclamation-triangle[b-kuzfy6y6xn] {
    color: #5a2d91;
    transform: scale(1.1);
}

.btn-control.active .fa-exclamation-triangle[b-kuzfy6y6xn] {
    color: white;
    animation: triangle-pulse-b-kuzfy6y6xn 1.5s ease-in-out infinite alternate;
}

/* Animación para el ícono de triángulo */
@keyframes triangle-pulse-b-kuzfy6y6xn {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }

    100% {
        transform: scale(1.1);
        filter: brightness(1.2);
    }
}

/* Estilos para marcadores de puntos en el mapa */
.leaflet-popup-content-wrapper[b-kuzfy6y6xn] {
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.leaflet-popup-tip[b-kuzfy6y6xn] {
    background: white !important;
}

/* Estilos responsivos para popups de puntos */
@media (max-width: 768px) {
    .leaflet-popup-content[b-kuzfy6y6xn] {
        margin: 8px 12px !important;
        font-size: 11px !important;
        min-width: 200px !important;
    }

        .leaflet-popup-content h6[b-kuzfy6y6xn] {
            font-size: 12px !important;
        }

        .leaflet-popup-content p[b-kuzfy6y6xn] {
            font-size: 10px !important;
            margin-bottom: 6px !important;
        }
}

/* Animación para aparecer los puntos */
@keyframes point-appear-b-kuzfy6y6xn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.leaflet-marker-icon[b-kuzfy6y6xn],
.leaflet-marker-shadow[b-kuzfy6y6xn] {
    animation: point-appear-b-kuzfy6y6xn 0.3s ease-in-out;
}

/* Hover effect para círculos */
.leaflet-interactive.leaflet-marker-icon[b-kuzfy6y6xn] {
    transition: all 0.2s ease-in-out;
}

/* Estilo para SweetAlert2 de puntos */
.swal2-popup.swal2-modal h2[b-kuzfy6y6xn] {
    color: #6f42c1 !important;
}

/* Personalización de inputs en modal de puntos */
.swal2-html-container select:focus[b-kuzfy6y6xn],
.swal2-html-container input[type="date"]:focus[b-kuzfy6y6xn] {
    border-color: #6f42c1 !important;
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.25) !important;
}

/* Estado de filtros para puntos */
#estado-filtros-puntos[b-kuzfy6y6xn] {
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Indicador visual de carga para puntos */
.capa-item.loading .btn-control .fa-exclamation-triangle[b-kuzfy6y6xn] {
    animation: spin-b-kuzfy6y6xn 1s linear infinite;
}

/* Tooltip personalizado para puntos */
.punto-tooltip[b-kuzfy6y6xn] {
    background: rgba(111, 66, 193, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: none;
}

    .punto-tooltip[b-kuzfy6y6xn]::before {
        border-top-color: rgba(111, 66, 193, 0.9) !important;
    }


.popup-denuncia-custom .leaflet-popup-content-wrapper[b-kuzfy6y6xn] {
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.popup-denuncia-custom .leaflet-popup-content[b-kuzfy6y6xn] {
    margin: 0;
    min-width: 300px;
}

.popup-denuncia-custom .leaflet-popup-tip[b-kuzfy6y6xn] {
    background: white;
}

/* =====================================
   LEYENDA UNIFICADA - VERSIÓN DEFINITIVA
   ===================================== */

/* Contenedor principal */
.leyenda-mejorada[b-kuzfy6y6xn],
#leyenda-mejorada-container[b-kuzfy6y6xn] {
    position: fixed !important;
    bottom: 20px !important;
    /* right: 20px !important;*/
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 24px rgba(0,0,0,0.3) !important;
    z-index: 99999 !important;
    width: 380px !important;
    max-height: calc(100vh - 120px) !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    overflow: hidden !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    transition: right 0.3s ease !important;
}

/* Ajuste cuando el panel está abierto */
body:has(.panel-capas-flotante:not(.collapsed)) .leyenda-mejorada[b-kuzfy6y6xn],
body:has(.panel-capas-flotante:not(.collapsed)) #leyenda-mejorada-container[b-kuzfy6y6xn] {
    right: 360px !important;
}

/* Header con gradiente */
.leyenda-header[b-kuzfy6y6xn] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 16px;
    color: white;
    border-radius: 12px 12px 0 0;
}

.leyenda-titulo[b-kuzfy6y6xn] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

    .leyenda-titulo i[b-kuzfy6y6xn] {
        font-size: 18px;
    }

/* Sistema de tabs */
.leyenda-tabs[b-kuzfy6y6xn] {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    margin: 0;
    padding: 0;
}

.tab-btn[b-kuzfy6y6xn] {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
    position: relative;
    outline: none;
}

    .tab-btn:hover[b-kuzfy6y6xn] {
        background: #e9ecef;
        color: #495057;
    }

    .tab-btn.active[b-kuzfy6y6xn] {
        color: #667eea;
        background: white;
    }

        .tab-btn.active[b-kuzfy6y6xn]::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #667eea, #764ba2);
        }

    .tab-btn i[b-kuzfy6y6xn] {
        font-size: 14px;
    }

/* Contenido scrolleable */
.leyenda-content[b-kuzfy6y6xn] {
    padding: 16px;
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    overflow-x: hidden;
}

    /* Custom scrollbar */
    .leyenda-content[b-kuzfy6y6xn]::-webkit-scrollbar {
        width: 6px;
    }

    .leyenda-content[b-kuzfy6y6xn]::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    .leyenda-content[b-kuzfy6y6xn]::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 3px;
        transition: background 0.3s ease;
    }

        .leyenda-content[b-kuzfy6y6xn]::-webkit-scrollbar-thumb:hover {
            background: #a8a8a8;
        }

/* Total general */
.total-general[b-kuzfy6y6xn] {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 16px;
    border-left: 4px solid #667eea;
}

.total-label[b-kuzfy6y6xn] {
    font-size: 11px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.total-numero[b-kuzfy6y6xn] {
    font-size: 32px;
    font-weight: 800;
    color: #667eea;
    line-height: 1;
    margin: 8px 0;
}

.total-info[b-kuzfy6y6xn] {
    font-size: 11px;
    color: #999;
    margin-top: 6px;
}

/* Gradiente para mapa de calor */
.gradiente-container[b-kuzfy6y6xn] {
    margin-bottom: 16px;
}

.gradiente-barra[b-kuzfy6y6xn] {
    height: 24px;
    background: linear-gradient(to right, #0000ff, #00ffff, #00ff00, #ffff00, #ff8000, #ff0000);
    border-radius: 12px;
    margin-bottom: 8px;
    border: 2px solid #e9ecef;
}

.gradiente-labels[b-kuzfy6y6xn] {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #6c757d;
    font-weight: 600;
    padding: 0 4px;
}

/* Lista de unidades */
.unidades-lista[b-kuzfy6y6xn] {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Item de unidad policial */
.unidad-item[b-kuzfy6y6xn] {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

    .unidad-item:hover[b-kuzfy6y6xn] {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

/* Header de unidad (clickeable) */
.unidad-header[b-kuzfy6y6xn] {
    padding: 14px 16px;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
    user-select: none;
}

    .unidad-header:hover[b-kuzfy6y6xn] {
        background: #f8f9fa;
    }

.unidad-info[b-kuzfy6y6xn] {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

    .unidad-info i[b-kuzfy6y6xn] {
        color: #667eea;
        font-size: 16px;
        flex-shrink: 0;
    }

.unidad-nombre[b-kuzfy6y6xn] {
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.unidad-stats[b-kuzfy6y6xn] {
    display: flex;
    align-items: center;
    gap: 12px;
}

.unidad-total[b-kuzfy6y6xn] {
    background: #667eea;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.toggle-icon[b-kuzfy6y6xn] {
    color: #6c757d;
    font-size: 12px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

/* Contenido expandible de unidad */
.unidad-content[b-kuzfy6y6xn] {
    padding: 12px 16px;
    background: white;
    border-top: 1px solid #e9ecef;
    display: none;
}

/* Lista de modalidades */
.modalidades-lista[b-kuzfy6y6xn] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Modalidad - Estilo para mapa de calor */
.modalidad-item-calor[b-kuzfy6y6xn] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 12px;
    transition: all 0.2s ease;
}

    .modalidad-item-calor:hover[b-kuzfy6y6xn] {
        background: #e9ecef;
        transform: translateX(2px);
    }

    .modalidad-item-calor .modalidad-nombre[b-kuzfy6y6xn] {
        color: #495057;
        font-weight: 500;
        flex: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-right: 12px;
    }

    .modalidad-item-calor .modalidad-valor[b-kuzfy6y6xn] {
        font-weight: 700;
        color: #667eea;
        font-size: 13px;
        flex-shrink: 0;
    }

/* Modalidad - Estilo para puntos */
.modalidad-item-punto[b-kuzfy6y6xn] {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    gap: 12px;
    transition: all 0.2s ease;
}

    .modalidad-item-punto:hover[b-kuzfy6y6xn] {
        background: #e9ecef;
        transform: translateX(2px);
    }

.modalidad-color[b-kuzfy6y6xn] {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.modalidad-details[b-kuzfy6y6xn] {
    flex: 1;
    min-width: 0;
}

.modalidad-item-punto .modalidad-nombre[b-kuzfy6y6xn] {
    font-size: 12px;
    color: #495057;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.modalidad-stats[b-kuzfy6y6xn] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: #6c757d;
}

    .modalidad-stats span:first-child[b-kuzfy6y6xn] {
        flex: 1;
    }

.modalidad-porcentaje[b-kuzfy6y6xn] {
    font-weight: 700;
    font-size: 11px;
    flex-shrink: 0;
}

/* Footer informativo */
.leyenda-footer[b-kuzfy6y6xn] {
    padding: 12px 16px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 10px;
    color: #6c757d;
    text-align: center;
    border-radius: 0 0 12px 12px;
}

    .leyenda-footer i[b-kuzfy6y6xn] {
        color: #667eea;
        flex-shrink: 0;
    }

/* Animación de entrada */
@keyframes slideInRight-b-kuzfy6y6xn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.leyenda-mejorada[b-kuzfy6y6xn],
#leyenda-mejorada-container[b-kuzfy6y6xn] {
    animation: slideInRight-b-kuzfy6y6xn 0.4s ease-out;
}

/* ===================================== 
   RESPONSIVE DESIGN
   ===================================== */

/* Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .leyenda-mejorada[b-kuzfy6y6xn],
    #leyenda-mejorada-container[b-kuzfy6y6xn] {
        width: 340px !important;
        right: 15px !important;
    }

    body:has(.panel-capas-flotante:not(.collapsed)) .leyenda-mejorada[b-kuzfy6y6xn],
    body:has(.panel-capas-flotante:not(.collapsed)) #leyenda-mejorada-container[b-kuzfy6y6xn] {
        right: 320px !important;
    }
}

/* Móviles */
@media (max-width: 768px) {
    .leyenda-mejorada[b-kuzfy6y6xn],
    #leyenda-mejorada-container[b-kuzfy6y6xn] {
        width: calc(100vw - 40px) !important;
        left: 20px !important;
        right: 20px !important;
        bottom: 10px !important;
        max-height: calc(100vh - 180px) !important;
    }

    body:has(.panel-capas-flotante:not(.collapsed)) .leyenda-mejorada[b-kuzfy6y6xn],
    body:has(.panel-capas-flotante:not(.collapsed)) #leyenda-mejorada-container[b-kuzfy6y6xn] {
        left: 20px !important;
        right: 20px !important;
    }

    .tab-btn span[b-kuzfy6y6xn] {
        display: none;
    }

    .tab-btn[b-kuzfy6y6xn] {
        padding: 10px 8px;
    }

    .unidad-nombre[b-kuzfy6y6xn] {
        font-size: 11px;
    }

    .total-numero[b-kuzfy6y6xn] {
        font-size: 28px;
    }

    .leyenda-content[b-kuzfy6y6xn] {
        max-height: calc(100vh - 360px);
    }
}

/* Muy pequeño (smartphones en vertical) */
@media (max-width: 480px) {
    .leyenda-mejorada[b-kuzfy6y6xn],
    #leyenda-mejorada-container[b-kuzfy6y6xn] {
        width: calc(100vw - 20px) !important;
        left: 10px !important;
        right: 10px !important;
    }

    .leyenda-header[b-kuzfy6y6xn] {
        padding: 12px;
    }

    .leyenda-titulo[b-kuzfy6y6xn] {
        font-size: 14px;
    }

    .leyenda-content[b-kuzfy6y6xn] {
        padding: 12px;
    }

    .total-numero[b-kuzfy6y6xn] {
        font-size: 24px;
    }
}

/* Ajuste de controles de Leaflet */
.leaflet-bottom.leaflet-right[b-kuzfy6y6xn] {
    margin-bottom: 10px !important;
    margin-right: 10px !important;
}

body:has(.leyenda-mejorada) .leaflet-bottom.leaflet-right[b-kuzfy6y6xn],
body:has(#leyenda-mejorada-container) .leaflet-bottom.leaflet-right[b-kuzfy6y6xn] {
    margin-right: 410px !important;
}

@media (max-width: 768px) {
    body:has(.leyenda-mejorada) .leaflet-bottom.leaflet-right[b-kuzfy6y6xn],
    body:has(#leyenda-mejorada-container) .leaflet-bottom.leaflet-right[b-kuzfy6y6xn] {
        margin-right: 10px !important;
        margin-bottom: 200px !important;
    }
}




/* Gradiente del header */
.bg-legend-grad[b-kuzfy6y6xn] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* Paleta para calor / puntos */
.text-heat[b-kuzfy6y6xn] {
    color: #ff6b6b !important;
}

.text-points[b-kuzfy6y6xn] {
    color: #6f42c1 !important;
}

.border-heat[b-kuzfy6y6xn] {
    border-color: #ff6b6b !important;
}

.border-points[b-kuzfy6y6xn] {
    border-color: #6f42c1 !important;
}

.bg-heat[b-kuzfy6y6xn] {
    background: #ff6b6b !important;
}

/* Barra de gradiente (calor) */
.legend-gradient[b-kuzfy6y6xn] {
    height: 22px;
    border-radius: 12px;
    background: linear-gradient(to right,#0000ff,#00ffff,#00ff00,#ffff00,#ff8000,#ff0000);
}

/* Puntos de color (puntos) */
.legend-dot[b-kuzfy6y6xn] {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
}

/* Peso 800 para número grande */
.fw-800[b-kuzfy6y6xn] {
    font-weight: 800;
}

/* Compatibilidad con tu contenedor existente */
.leyenda-mejorada.card[b-kuzfy6y6xn] {
    overflow: hidden;
}







/* Estilos para tabs MudBlazor en la leyenda */
.mud-tab:hover[b-kuzfy6y6xn] {
    background: #003d1f !important;
}

.mud-tab-active:hover[b-kuzfy6y6xn] {
    background: #fff !important;
}

/* Hover para botones de accordion */
.leyenda-mejorada button:hover[b-kuzfy6y6xn] {
    background: #ebebeb !important;
}

/* Scrollbar personalizado */
.mud-tabs-panels > div[b-kuzfy6y6xn]::-webkit-scrollbar {
    width: 6px;
}

.mud-tabs-panels > div[b-kuzfy6y6xn]::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.mud-tabs-panels > div[b-kuzfy6y6xn]::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

    .mud-tabs-panels > div[b-kuzfy6y6xn]::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
