/* SAIH Embalses - CSS consolidado (fase 4C).
   Cargar despues de visor.css y embalses_fotos.css. */

/* =========================================================
   EMBALSES - LIGHTBOX MODERNO V2
   ========================================================= */
/* Fondo oscuro */
#lightboxOverlay {
    background: #14252d;
    opacity: 0.88;
}

/* Fotografia */
#lightbox .lb-outerContainer {
    position: relative !important;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.28);
}

#lightbox .lb-image {
    border-radius: 8px;
}

#lightbox .lb-container {
    padding: 4px;
}

/* Ficha lateral */
#lightbox .lb-dataContainer {
    position: absolute !important;
    top: 15px !important;
    left: 15px !important;
    bottom: auto !important;
    width: 325px !important;
    max-width: calc(100vw - 30px) !important;
    padding: 0 !important;
    background: rgba(255, 255, 255, 0.94) !important;
    border: 1px solid rgba(214, 227, 233, 0.8);
    border-radius: 13px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(8px);
    box-sizing: border-box;
    z-index: 2000;
    overflow: hidden;
}

/* Distribucion interna */
#lightbox .lb-data {
    padding: 0;
    color: #354f5b;
}

#lightbox .lb-data .lb-details {
    float: none;
    width: 100%;
    text-align: left;
}

#lightbox .lb-caption {
    display: block;
    color: #354f5b !important;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
    text-shadow: none !important;
}

/* Ficha */
#lightbox .saih-lb-ficha {
    padding: 13px 15px;
}

#lightbox .saih-lb-titulo {
    margin: 0 32px 12px 0;
    padding-bottom: 10px;
    color: #294f60;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    border-bottom: 1px solid #dce6ea;
}

#lightbox .saih-lb-dato {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    padding: 5px 0;
    border-bottom: 1px solid #eef2f4;
}

#lightbox .saih-lb-dato span {
    color: #718a95;
    font-size: 11px;
    font-weight: 500;
}

#lightbox .saih-lb-dato strong {
    color: #294f60;
    font-size: 12px;
    font-weight: 700;
    text-align: right;
}

#lightbox .saih-lb-seccion {
    margin: 12px 0 5px;
    color: #527482;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

#lightbox .saih-lb-fecha {
    margin: 0 0 5px;
    color: #8a9ca4;
    font-size: 10.5px;
    text-align: right;
}

/* Numero de fotografia: oculto */
#lightbox .lb-number {
    display: none !important;
}

/* Cierre */
#lightbox .lb-closeContainer {
    position: absolute;
    top: 9px;
    right: 9px;
    z-index: 2001;
}

#lightbox .lb-close {
    width: 25px;
    height: 25px;
    opacity: 0.72;
}

/* Pantallas mas pequenas */
@media (max-width: 1350px) {
    #lightbox .lb-dataContainer {
        width: 285px !important;
        max-height: 72vh;
        overflow-y: auto;
    }

    #lightbox .saih-lb-ficha {
        padding: 10px 12px;
    }

    #lightbox .saih-lb-dato {
        padding: 4px 0;
    }
}

@media (max-width: 768px) {
    #lightbox .lb-dataContainer {
        top: 10px !important;
        left: 10px !important;
        width: min(280px, calc(100vw - 20px)) !important;
        max-height: 45vh;
    }
}

/* Estilos antes incrustados en la vista */
/*
 * =========================================================
 * Popup SAIH
 * =========================================================
 */
.saih-popup {
    width: 260px;
    color: #354f5b;
    font-family: inherit;
}

/*
 * Cabecera
 */
.saih-popup__header {
    padding: 1px 1px 8px;
    border-bottom: 1px solid #dce6ea;
}

.saih-popup__title {
    color: #294f60;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.saih-popup__type {
    margin-top: 2px;
    color: #7d929c;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/*
 * Métricas
 */
.saih-popup__metrics {
    display: flex;
    gap: 7px;
    margin: 10px 0;
}

.saih-popup__metric {
    flex: 1;
    min-width: 0;
    padding: 8px 9px;
    background: #f3f7f8;
    border: 1px solid #e2eaed;
    border-radius: 10px;
}

.saih-popup__metric-label {
    margin-bottom: 3px;
    color: #7a909a;
    font-size: 10px;
    font-weight: 600;
}

.saih-popup__metric-value {
    color: #294f60;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

/*
 * Acciones
 */
.saih-popup__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding-top: 8px;
    border-top: 1px solid #dce6ea;
}

.saih-popup__action,
.saih-popup__action:link,
.saih-popup__action:visited {
    display: inline-block;
    padding: 5px 8px;
    background: #eef3f5;
    border: 1px solid #d5e0e4;
    border-radius: 7px;
    color: #456875 !important;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
}

.saih-popup__action:hover,
.saih-popup__action:focus {
    background: #e3ecef;
    color: #294f60 !important;
    text-decoration: none !important;
}

/*
 * Acción principal
 */
.saih-popup__action--primary,
.saih-popup__action--primary:link,
.saih-popup__action--primary:visited {
    background: #39758c;
    border-color: #39758c;
    color: #fff !important;
}

.saih-popup__action--primary:hover,
.saih-popup__action--primary:focus {
    background: #2f6478;
    border-color: #2f6478;
    color: #fff !important;
}

/*
 * Contenedor exterior Leaflet
 */
.saih-popup-shell
.leaflet-popup-content-wrapper {
    border-radius: 14px;
    box-shadow:
        0 5px 18px
        rgba(34, 67, 80, 0.16);
}

.saih-popup-shell
.leaflet-popup-content {
    margin: 13px 15px;
}

/*
 * =========================================================
 * Cajetín de ratón
 * =========================================================
 */
.leaflet-tooltip.saih-hover-tooltip {
    padding: 5px 7px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid #d9e4e8;
    border-radius: 7px;
    color: #354f5b;
    box-shadow:
        0 2px 7px
        rgba(34, 67, 80, 0.13);
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
}

.saih-hover-label__title {
    margin-bottom: 3px;
    color: #294f60;
    font-size: 11.5px;
    font-weight: 700;
}

.saih-hover-label__data {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #607d89;
}

.saih-hover-label__value {
    color: #456875;
    font-weight: 700;
}

/*
 * =========================================================
 * Visor Embalses - controles Leaflet
 * =========================================================
 */
#map.visor-embalses .leaflet-top.leaflet-right {
    top: 68px !important;
    right: 26px !important;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

#map.visor-embalses .leaflet-top.leaflet-right > .leaflet-control {
    float: none !important;
    clear: none !important;
    margin: 0 !important;
}

/* Orden de herramientas */
#map.visor-embalses .saih-embalse-control-layers {
    order: 1;
}

#map.visor-embalses .saih-embalse-control-zoom {
    order: 2;
}

#map.visor-embalses .saih-embalse-control-home {
    order: 3;
}

#map.visor-embalses .saih-embalse-control-fullscreen {
    order: 4;
}

#map.visor-embalses .saih-embalse-control-file {
    order: 5;
}

/* Tamaño común */
#map.visor-embalses .leaflet-top.leaflet-right
.leaflet-bar a,
#map.visor-embalses .leaflet-top.leaflet-right
.leaflet-bar button,
#map.visor-embalses .leaflet-top.leaflet-right
.easy-button-button,
#map.visor-embalses .leaflet-top.leaflet-right
.leaflet-control-fullscreen a,
#map.visor-embalses .leaflet-control-layers-toggle {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    line-height: 34px !important;
    box-sizing: border-box;
    background-size: 26px 52px !important;
    background-position: 4px 4px !important;
}

#map.visor-embalses .leaflet-control-layers-toggle {
    background-size: 18px 18px !important;
    background-position: center !important;
    border-radius: 4px;
}

/* =========================================================
   VISOR EMBALSES - CONTROLES LEAFLET MODERNOS
   ========================================================= */
/* Contenedores de controles */
#map.visor-embalses .leaflet-bar {
    border: none;
    border-radius: 6px;
    background-color: transparent;
    box-shadow: 0 2px 6px rgba(25, 55, 75, 0.14);
}

/* Botones normales y personalizados */
#map.visor-embalses .leaflet-bar a,
#map.visor-embalses .leaflet-bar button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    margin: 0;
    background-color: #ffffff;
    color: #29485b;
    border: 1px solid #dce6ec;
    border-radius: 5px;
    font-size: 17px;
    line-height: 1;
    box-sizing: border-box;
    cursor: pointer;
}

/* Hover */
#map.visor-embalses .leaflet-bar a:hover,
#map.visor-embalses .leaflet-bar button:hover {
    background-color: #eef4f7;
    color: #17658f;
    border-color: #b9cfdd;
}

/* Accesibilidad */
#map.visor-embalses .leaflet-bar a:focus-visible,
#map.visor-embalses .leaflet-bar button:focus-visible {
    outline: 2px solid #2477a5;
    outline-offset: 2px;
}

/* Zoom */
#map.visor-embalses .leaflet-control-zoom {
    display: flex;
    flex-direction: column;
    gap: 3px;
    background-color: transparent;
    box-shadow: none;
}

#map.visor-embalses .leaflet-control-zoom a {
    font-size: 19px;
    font-weight: 600;
}

/* EasyButton */
#map.visor-embalses .leaflet-control-easyButton {
    border: none;
    background-color: transparent;
    box-shadow: none;
}

#map.visor-embalses .leaflet-control-easyButton .easy-button-button {
    width: 34px;
    height: 34px;
    border-radius: 5px;
}

/* Iconos */
#map.visor-embalses .leaflet-control-easyButton i,
#map.visor-embalses .leaflet-bar button i {
    font-size: 16px;
    line-height: 1;
}

/* Selector de capas cerrado */
#map.visor-embalses .leaflet-control-layers:not(.leaflet-control-layers-expanded) {
    border: 1px solid #dce6ec;
    border-radius: 6px;
    background-color: #ffffff;
    box-shadow: 0 2px 6px rgba(25, 55, 75, 0.14);
}

#map.visor-embalses .leaflet-control-layers-toggle {
    width: 34px;
    height: 34px;
    background-size: 18px 18px !important;
    background-position: center !important;
}

/*
 * =========================================================
 * Leyenda moderna - Embalses
 * =========================================================
 */
#map.visor-embalses .saih-legend-control {
    position: relative;
    z-index: 1020;
    margin-right: 12px !important;
    margin-bottom: 8px !important;
    font-family: 'Open Sans', Arial, sans-serif;
}

#map.visor-embalses .saih-legend-panel {
    width: 310px;
    max-width: calc(100vw - 92px);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid #dce6ea;
    border-radius: 12px;
    box-shadow:
        0 4px 14px
        rgba(34, 67, 80, 0.15);
    backdrop-filter: blur(4px);
    color: #354f5b;
}

#map.visor-embalses .saih-legend-header,
#map.visor-embalses .saih-legend-section-header {
    width: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

#map.visor-embalses .saih-legend-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 10px 8px 12px;
}

#map.visor-embalses .saih-legend-header:hover,
#map.visor-embalses .saih-legend-header:focus,
#map.visor-embalses .saih-legend-section-header:hover,
#map.visor-embalses .saih-legend-section-header:focus {
    background: rgba(248, 250, 251, 0.78);
    outline: none;
}

#map.visor-embalses .saih-legend-kicker {
    display: block;
    margin-bottom: 1px;
    color: #7d929c;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

#map.visor-embalses .saih-legend-title {
    display: block;
    color: #294f60;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

#map.visor-embalses .saih-legend-main-chevron,
#map.visor-embalses .saih-legend-section-chevron {
    color: #80949d;
    font-size: 11px;
    transition: transform 0.15s ease;
}

#map.visor-embalses .saih-legend-panel.is-collapsed
.saih-legend-main-chevron {
    transform: rotate(-90deg);
}

#map.visor-embalses .saih-legend-panel.is-collapsed
.saih-legend-body {
    display: none;
}

#map.visor-embalses .saih-legend-body {
    border-top: 1px solid rgba(227, 235, 238, 0.90);
}

#map.visor-embalses .saih-legend-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 10px 7px 12px;
    color: #526f7b;
    font-size: 11.5px;
    font-weight: 700;
}

#map.visor-embalses .saih-legend-section:not(.is-open)
.saih-legend-section-chevron {
    transform: rotate(-90deg);
}

#map.visor-embalses .saih-legend-section-body {
    display: none;
    padding: 0 10px 9px 12px;
}

#map.visor-embalses .saih-legend-section.is-open
.saih-legend-section-body {
    display: block;
}

#map.visor-embalses .saih-legend-grid--embalses {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 8px;
}

#map.visor-embalses .saih-legend-item {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    padding: 3px 4px;
    border-radius: 6px;
}

#map.visor-embalses .saih-legend-swatch {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    border: 1px solid rgba(41, 79, 96, 0.35);
    border-radius: 50%;
    box-shadow: inset 0 1px 1px rgba(255,255,255,.45);
}

#map.visor-embalses .saih-legend-item-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

#map.visor-embalses .saih-legend-item-text strong {
    color: #456875;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.15;
}

#map.visor-embalses .saih-legend-item-text small {
    margin-top: 1px;
    color: #83979f;
    font-size: 10.5px;
    line-height: 1.15;
}

@media (max-width: 768px) {
    #map.visor-embalses
    .saih-legend-control {
        margin-right: 8px !important;
        margin-bottom: 8px !important;
    }

    #map.visor-embalses
    .saih-legend-panel {
        width: min(285px, calc(100vw - 82px));
        max-width: none;
    }

    #ticker {
        height: 35px;
    }
}

/* =========================================================
   EMBALSES V2
   ========================================================= */
.saih-embalse-marker-v2 {
    background: transparent !important;
    border: 0 !important;
}

.saih-embalse-marker-v2 svg {
    display: block;
    overflow: visible;
}

.saih-legend-grid--embalses .saih-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.saih-legend-swatch-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    min-width: 34px;
    height: 34px;
}

.saih-legend-swatch-svg svg {
    width: 30px;
    height: 30px;
}

.saih-legend-note {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e3eaee;
    font-size: 11px;
    line-height: 1.35;
    color: #718690;
}

/* Avisos: conservar su ubicación fuera de la columna de herramientas. */
#map.visor-embalses .saih-embalse-notifications {
    position: absolute !important;
    top: 0;
    right: 50px;
    width: 300px;
    order: 20;
}

/* =========================================================
   RESERVAS - Panel desplegable
   ========================================================= */
#map.visor-embalses {
    position: relative;
    height: calc(100vh - 235px) !important;
    min-height: 680px !important;
}

#map.visor-embalses .saih-embalses-resumen {
    position: absolute;
    top: 12px !important;
    left: 12px !important;
    z-index: 1012;
    width: 320px;
    max-width: calc(100% - 24px);
    border: 1px solid #dce6ea;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 3px 12px rgba(34, 67, 80, 0.15);
    backdrop-filter: blur(6px);
    color: #354f5b;
    font-family: 'Open Sans', Arial, sans-serif;
}

#map.visor-embalses .saih-embalses-resumen__toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    background: transparent;
    color: #294f60;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

#map.visor-embalses .saih-embalses-resumen__toggle .glyphicon { color: #44adeb; }
#map.visor-embalses .saih-embalses-resumen__chevron { margin-left: auto; color: #78909a; }
#map.visor-embalses .saih-embalses-resumen:not(.is-open) .saih-embalses-resumen__body { display: none; }
#map.visor-embalses .saih-embalses-resumen:not(.is-open) .saih-embalses-resumen__chevron { transform: rotate(-90deg); }
#map.visor-embalses .saih-embalses-resumen__body {
    max-height: min(60vh, 520px);
    overflow-y: auto;
    padding: 5px 12px 10px;
    border-top: 1px solid #e4ecef;
}
#map.visor-embalses .saih-embalses-resumen__item { padding: 7px 0; }
#map.visor-embalses .saih-embalses-resumen__item + .saih-embalses-resumen__item { border-top: 1px solid #ecf1f3; }
#map.visor-embalses .saih-embalses-resumen__fila {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
}
#map.visor-embalses .saih-embalses-resumen__fila strong { font-size: 12px; color: #27677c; white-space: nowrap; }
#map.visor-embalses .saih-embalses-resumen__meta {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    margin-top: 4px;
    color: #8296a0;
    font-size: 10.5px;
}
#map.visor-embalses .saih-embalses-resumen button:focus-visible { outline: 2px solid #2477a5; outline-offset: 2px; }
#map.visor-embalses .saih-embalses-resumen__group + .saih-embalses-resumen__group {
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid #e4ecef;
}
#map.visor-embalses .saih-embalses-resumen__group > summary {
    padding: 8px 0;
    color: #456875;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}
#map.visor-embalses .saih-embalses-resumen__group > summary:hover { color: #17658f; }

/* =========================================================
   PROVINCIAS - Selector y dock
   ========================================================= */
.saih-provincia-v3 {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.saih-provincia-v3 .legend-title-Emb {
    flex: 0 0 auto;
    margin: 0 8px 0 0;
    color: #456875;
    font-size: 11px;
    font-weight: 700;
}
.saih-provincia-v3 .provincia-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.saih-provincia-v3 .provincia-btn-container { display: flex; flex-direction: column; align-items: center; margin: 0; }
.saih-provincia-v3 .provincia-btn {
    padding: 4px 10px;
    border: 1px solid #d7e3e8;
    border-radius: 7px;
    background: #f7fafb;
    color: #456875;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}
.saih-provincia-v3 .provincia-btn:hover { background: #e8f3f7; border-color: #9fbfc9; }
.saih-provincia-v3 .provincia-volumen { margin-top: 2px; color: #617f8b; font-size: 10px; font-weight: 700; }
#map.visor-embalses .saih-embalses-provincias-dock {
    position: absolute;
    bottom: 146px;
    left: 12px;
    z-index: 1022;
    max-width: calc(100% - 380px);
    min-height: 0;
    padding: 6px 8px;
    border: 1px solid rgba(185, 205, 214, 0.65);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.62) !important;
    box-shadow: 0 2px 10px rgba(34, 67, 80, 0.13);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
#map.visor-embalses .saih-provincia-v3 { width: auto; gap: 7px; }
#map.visor-embalses .saih-provincia-v3 .provincia-buttons { flex-wrap: nowrap; gap: 5px; }
#map.visor-embalses .saih-provincia-v3 .provincia-btn {
    padding: 6px 9px;
    background: rgba(255, 255, 255, 0.78);
}

/* =========================================================
   FOTOGRAFIAS - Acabado del fondo del carrusel
   ========================================================= */
.coordinatedImagePreviewControlMainDiv.saih-embalses-fotos-v3 {
    background: rgba(255, 255, 255, 0.62) !important;
    border-color: rgba(185, 205, 214, 0.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* =========================================================
   AJUSTES POR PANTALLA
   ========================================================= */
#map.visor-embalses .leaflet-control-mouseposition { display: none !important; }

@media (max-width: 1000px) {
    #map.visor-embalses .saih-embalses-provincias-dock {
        max-width: calc(100% - 24px);
        bottom: 155px;
    }
    #map.visor-embalses .saih-provincia-v3 { overflow-x: auto; }
}

@media (max-width: 768px) {
    #map.visor-embalses #saih-embalses-resumen {
        top: 10px !important;
        left: 8px !important;
        width: min(320px, calc(100% - 16px));
    }
    #map.visor-embalses .saih-embalses-resumen { max-width: calc(100% - 80px); }
    .saih-provincia-v3 { display: block; }
    .saih-provincia-v3 .legend-title-Emb { margin-bottom: 5px; }
    #map.visor-embalses .saih-embalses-provincias-dock { left: 8px; bottom: 162px; }
    #map.visor-embalses { min-height: 630px !important; }
}

/* =========================================================
   EMBALSES - CONTROL DE CAPAS HOMOGENEO A PRECIPITACIONES
   Mantiene el L.control.layers() nativo y las capas existentes.
   ========================================================= */
#map.visor-embalses .leaflet-control-layers-expanded {
    min-width: 172px;
    padding: 9px 10px !important;
    background: rgba(255,255,255,.97) !important;
    border: 1px solid #dce6ea !important;
    border-radius: 11px !important;
    box-shadow: 0 5px 17px rgba(34,67,80,.18) !important;
    color: #456875;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 12px;
}
#map.visor-embalses .leaflet-control-layers-list {
    margin: 0;
}
#map.visor-embalses .leaflet-control-layers-base,
#map.visor-embalses .leaflet-control-layers-overlays {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
#map.visor-embalses .leaflet-control-layers label {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    font-weight: 400;
    cursor: pointer;
}
#map.visor-embalses .leaflet-control-layers label > span {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 27px;
    padding: 4px 7px;
    border-radius: 7px;
    color: #526f7b;
    line-height: 1.25;
    transition: background-color .12s ease;
}
#map.visor-embalses .leaflet-control-layers label > span:hover {
    background-color: #f1f6f8;
}
#map.visor-embalses .leaflet-control-layers label:has(input:checked) > span {
    background-color: #eaf3f7;
    color: #34576a;
    font-weight: 700;
}
#map.visor-embalses .leaflet-control-layers input {
    flex: 0 0 auto;
    margin: 0 2px 0 0;
    accent-color: #367c97;
    cursor: pointer;
}
#map.visor-embalses .leaflet-control-layers-separator {
    margin: 7px 0;
    border-top: 1px solid #e3ebee;
}
