@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
@import url('https://fonts.googleapis.com/css?family=Inter:300,400,500,600,700');
@import url('https://fonts.googleapis.com/css2?family=Maven+Pro:wght@400..900&display=swap');

/* ============================================
   PALETA DE COLORES - AYUNTAMIENTO DE LEIOA
   ============================================ */
:root {
    /* Colores principales extraídos del sitio web del ayuntamiento */
    --primary-color: #0D585E;        /* Verde azulado oscuro - Principal */
    --secondary-color: #844159;      /* Burdeos/morado - Acento */
    --tertiary-color: #759298;       /* Gris azulado - Complementario */
    --accent-color: #41B4C6;         /* Azul turquesa - Resaltado */
    --neutral-color: #8E8657;        /* Verde oliva - Neutro */
    
    /* Colores de soporte */
    --background-color: #ffffff;
    --background-light: #E3E5E3;     /* Gris claro */
    --text-color: #333333;
    --text-light: #666666;
    --border-color: #d0d0d0;
    
    /* Sombras y efectos */
    --shadow-sm: 0 1px 3px rgba(13, 88, 94, 0.12);
    --shadow-md: 0 2px 6px rgba(13, 88, 94, 0.15);
    --shadow-lg: 0 4px 12px rgba(13, 88, 94, 0.2);
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* ============================================
   ESTILOS GENERALES
   ============================================ */
body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-normal);
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* ============================================
   HEADER / BANNER TÍTULO
   ============================================ */
#banner_titulo {
    background: linear-gradient(to right, #ffffff 0%, #f8f9f9 100%);
    position: relative;
    top: 0px;
    left: 0px;
    width: 100%;
    z-index: 12000;
    height: 70px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    border-bottom: 3px solid var(--primary-color);
}

.header-container {
    max-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

#logo_banner {
    display: flex;
    align-items: center;
    height: 100%;
    z-index: 1;
}

#logo_banner img {
    height: 50px;
    width: auto;
    transition: transform var(--transition-normal);
}

#logo_banner a:hover img {
    transform: scale(1.05);
}

#texto_banner {
    flex: 1;
    text-align: center;
    padding: 0 20px;
    z-index: 1;
}

#texto_banner h1 {
    font-family: "Maven Pro", sans-serif;
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Responsive header */
@media (max-width: 768px) {
    #banner_titulo {
        height: 60px; /* Altura fija para evitar crecimiento */
        min-height: 60px;
        padding: 0;
    }
    
    .header-container {
        flex-direction: row; /* Mantener horizontal para no crecer verticalmente */
        align-items: center;
        gap: 8px;
        padding: 8px;
        height: 100%;
    }
    
    #logo_banner {
        flex-shrink: 0;
    }
    
    #logo_banner img {
        height: 35px;
    }
    
    #texto_banner {
        flex: 1;
        text-align: right;
        padding: 0 0 0 8px;
        overflow: hidden; /* Evitar desbordamiento */
    }
    
    #texto_banner h1 {
        font-size: 11px;
        line-height: 1.2;
        letter-spacing: 0.3px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* Máximo 2 líneas */
        -webkit-box-orient: vertical;
    }
    
    /* Ajustar posiciones de controles en móvil para que queden debajo del header */
    #casos {
        top: 75px; /* Ajustado para header de 60px + margen */
    }
    
    #tipoMapa {
        top: 110px;
    }
    
    #zoom-in,
    #zoom-out {
        top: 150px;
    }
}

/* ============================================
   MAPA
   ============================================ */
#map_canvas {
    position: relative;
    top: 0px;
    left: 0px;
    height: 90vh; 
    width: 100%;
    z-index: 10;
}

/* ============================================
   CONTROLES DEL MAPA
   ============================================ */

/* Contador de casos */
#casos {
    position: absolute;
    color: white;
    height: 28px;
    top: 90px; 
    left: 10px;
    width: 110px;
    z-index: 2000;
    background-color: var(--primary-color); 
    text-align: center;
    padding: 4px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-md);
}

/* Selector de tipo de mapa */
#tipoMapa {
    font-size: 14px;
    background-color: var(--tertiary-color);
    color: white;
    position: absolute; 
    top: 125px; 
    left: 10px; 
    z-index: 1000;	
    width: 110px;
    height: 32px;
    text-align: center;
    padding-top: 5px;
    border-radius: 4px;
    box-shadow: var(--shadow-md);
}

#tipoMapa a {
    color: white;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

#tipoMapa a:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* Controles de zoom */
#zoom-in,
#zoom-out {
    position: absolute;
    top: 165px;
    z-index: 101;
    background-color: var(--secondary-color);
    border-radius: 5px;
    width: 48px;
    height: 40px;
    cursor: pointer;
    font-weight: bold;
    color: #ffffff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

#zoom-in {
    left: 10px;
}

#zoom-out {
    left: 75px;
}

#zoom-in:hover,
#zoom-out:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Botones de acción */
#acerca,
#compartir,
#mapa_sw,
#capas_sw {
    position: absolute;
    background-color: var(--secondary-color);
    border-radius: 5px;
    width: 48px;
    height: 40px;
    cursor: pointer;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
    z-index: 102;
}

#acerca:hover,
#compartir:hover,
#mapa_sw:hover,
#capas_sw:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

#acerca img,
#compartir img,
#mapa_sw img,
#capas_sw img {
    width: 28px;
    height: auto;
}

#acerca {
    bottom: 20px;
    right: 10px;
}

#compartir {
    bottom: 75px;
    right: 10px;
}

#mapa_sw {
    bottom: 20px; 
    left: 10px;
}

#capas_sw {
    bottom: 130px; 
    right: 10px;
}

/* Tooltip de capas */
#capas_t {
    display: none;
    font-size: 12px;
    position: absolute;
    color: white;
    bottom: 190px; 
    right: 60px;
    z-index: 100;
    width: 100px;
    background-color: var(--primary-color);
    border-radius: 3px;
    text-align: center;
    padding: 5px;
    box-shadow: var(--shadow-sm);
}

/* ============================================
   PANEL DE CAPAS
   ============================================ */
#capas {
    position: absolute;
    bottom: 170px; 
    right: 10px;
    background-color: var(--primary-color);
    color: #ffffff;
    z-index: 12550;
    padding: 15px;
    text-align: left;
    width: 220px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    display: none;
}

#cerrar_capas {
    position: absolute;
    top: 10px;
    right: 15px;
    text-align: right;
}

#cerrar_capas a {
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

#cerrar_capas a:hover {
    opacity: 1;
    text-decoration: none;
}

.informacion {
    color: white;
    margin-bottom: 15px;
    font-size: 15px;
    font-weight: 600;
    padding-right: 25px;
}

/* ============================================
   CUSTOM CHECKBOX
   ============================================ */
.checkbox-wrapper-33 {
    --s-xsmall: 0.625em;
    --s-small: 1.2em;
    --border-width: 1px;
    --c-primary: #ffffff;
    --c-primary-20-percent-opacity: rgb(255 255 255 / 20%);
    --c-primary-10-percent-opacity: rgb(255 255 255 / 10%);
    --t-base: 0.4s;
    --t-fast: 0.2s;
    --e-in: ease-in;
    --e-out: cubic-bezier(.11,.29,.18,.98);
    margin-bottom: 10px;
}

.checkbox-wrapper-33 .visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.checkbox-wrapper-33 .checkbox {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.checkbox-wrapper-33 .checkbox + .checkbox {
    margin-top: var(--s-small);
}

.checkbox-wrapper-33 .checkbox__symbol {
    display: flex;
    margin-right: calc(var(--s-small) * 0.7);
    border: var(--border-width) solid var(--c-primary);
    position: relative;
    border-radius: 0.1em;
    width: 1.5em;
    height: 1.5em;
    transition: box-shadow var(--t-base) var(--e-out), background-color var(--t-base);
    box-shadow: 0 0 0 0 var(--c-primary-10-percent-opacity);
}

.checkbox-wrapper-33 .checkbox__symbol:after {
    content: "";
    position: absolute;
    top: 0.5em;
    left: 0.5em;
    width: 0.25em;
    height: 0.25em;
    background-color: var(--c-primary-20-percent-opacity);
    opacity: 0;
    border-radius: 3em;
    transform: scale(1);
    transform-origin: 50% 50%;
}

.checkbox-wrapper-33 .checkbox .icon-checkbox {
    width: 1em;
    height: 1em;
    margin: auto;
    fill: none;
    stroke-width: 3;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-miterlimit: 10;
    color: var(--c-primary);
    display: inline-block;
}

.checkbox-wrapper-33 .checkbox .icon-checkbox path {
    transition: stroke-dashoffset var(--t-fast) var(--e-in);
    stroke-dasharray: 30px, 31px;
    stroke-dashoffset: 31px;
}

.checkbox-wrapper-33 .checkbox__textwrapper {
    margin: 0;
    font-size: 14px;
}

.checkbox-wrapper-33 .checkbox__trigger:checked + .checkbox__symbol:after {
    animation: ripple-33 1.5s var(--e-out);
}

.checkbox-wrapper-33 .checkbox__trigger:checked + .checkbox__symbol .icon-checkbox path {
    transition: stroke-dashoffset var(--t-base) var(--e-out);
    stroke-dashoffset: 0px;
}

.checkbox-wrapper-33 .checkbox__trigger:focus + .checkbox__symbol {
    box-shadow: 0 0 0 0.25em var(--c-primary-20-percent-opacity);
}

@keyframes ripple-33 {
    from {
        transform: scale(0);
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: scale(20);
    }
}

/* ============================================
   SIMBOLOGÍA
   ============================================ */
#simbologia {
    font-size: 14px;
    position: absolute;
    color: white;
    top: 190px; 
    right: 10px;
    width: 120px;
    z-index: 102;
    background-color: var(--primary-color); 
    text-align: center;
    padding: 3px;
    height: 30px;
    cursor: pointer;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: var(--shadow-md);
    transition: height var(--transition-normal);
}



.lista-colores {
    list-style: none;
    padding: 5px;
    margin: 0;
    text-align: left;
}

.lista-colores li {
    display: flex;
    align-items: center;
    margin: 5px 0;
    font-size: 13px;
}

.color-circle {
    width: 15px !important;
    height: 15px !important;
    border-radius: 50% !important;
    display: inline-block;
    margin-right: 8px;
    flex-shrink: 0;
}

/* ============================================
   BÚSQUEDA
   ============================================ */
#divsearch {
    height: 45px;
    padding: 3px;
    top: 90px;
    right: 10px;
    position: absolute;
    z-index: 10000;
    width: 200px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 5px;
    box-shadow: var(--shadow-md);
}

#divsearch .input-group {
    height: 100%;
}

#divsearch .form-control {
    border: 1px solid var(--border-color);
    border-right: none;
}

#divsearch .btn-dark {
    background-color: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
}

#divsearch .btn-dark:hover {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

/* ============================================
   BOTÓN DE FILTROS
   ============================================ */
#filtros_sw {
    position: absolute;
    top: 140px; 
    right: 10px;
    z-index: 101;
    background-color: var(--primary-color);
    border-radius: 5px;
    text-align: center;
    width: 120px;
    height: 40px;
    padding-top: 0px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    color: white;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

#filtros_sw:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

#filtros_sw img {
    width: 28px;
    height: auto;
}

/* ============================================
   PANEL DE FILTROS
   ============================================ */
#filters {
    position: fixed;
    display: none;
    top: 0px;
    width: calc(100% - 10px);
    z-index: 15000;
    background-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    color: white;
    margin: 5px;
    padding: 20px;
    border-radius: 10px;
    max-height: 90vh;
    overflow-y: auto;
}

#close_filters {
    position: absolute;
    top: 15px;
    right: 15px;
    text-align: right;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 600;
    padding: 5px 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: background-color var(--transition-fast);
}

#close_filters:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

#close_filters img {
    width: 16px;
    height: 16px;
}

.bloque-titulo {
    width: 100%;
    padding: 10px 0;
    color: white;
    border-bottom: 2px solid var(--accent-color);	
    margin-bottom: 15px;
    margin-top: 20px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.bloque-titulo:first-of-type {
    margin-top: 0;
}

.gtipo {
    display: inline-block;
    text-transform: uppercase;
    color: white;
    font-size: 13px;
    margin-bottom: 8px;
    margin-right: 5px;
}

.form-group {
    clear: both;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.chk {
    margin-right: 8px;
    width: 40px !important;
    height: 20px;
    margin-top: -2px;
    cursor: pointer;
}

.chk:checked {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

.form-check-label {
    cursor: pointer;
    user-select: none;
}

.filter-actions {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: right;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-light {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-light:hover {
    background-color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 8px 25px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Estilos móviles para panel de filtros */
@media (max-width: 768px) {
    #filters {
        padding: 12px;
        margin: 3px;
        border-radius: 8px;
        max-height: 95vh;
    }
    
    #close_filters {
        top: 8px;
        right: 8px;
        font-size: 12px;
        padding: 4px 8px;
        gap: 3px;
    }
    
    #close_filters img {
        width: 14px;
        height: 14px;
    }
    
    .bloque-titulo {
        padding: 6px 0;
        margin-bottom: 8px;
        margin-top: 12px;
        font-size: 13px;
        border-bottom-width: 1.5px;
    }
    
    .bloque-titulo:first-of-type {
        margin-top: 25px; /* Espacio para el botón cerrar */
    }
    
    .gtipo {
        font-size: 11px;
        margin-bottom: 5px;
        margin-right: 3px;
    }
    
    .form-group {
        gap: 3px;
    }
    
    .form-check-inline {
        margin-right: 0 !important;
        margin-bottom: 5px;
        width: 100%; /* Cada checkbox en su propia línea */
    }
    
    .chk {
        width: 36px !important;
        height: 18px !important;
        margin-right: 6px;
    }
    
    .form-check-label {
        font-size: 12px;
        line-height: 1.3;
    }
    
    .filter-actions {
        margin-top: 15px;
        padding-top: 12px;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .btn-light,
    .btn-primary {
        padding: 8px 15px;
        font-size: 13px;
        flex: 1; /* Botones ocupan igual espacio */
        min-width: 80px;
    }
}

/* ============================================
   PANEL LATERAL FLOTANTE
   ============================================ */
#flota {
    display: none;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 400px;
    height: 100%;
    background-color: #ffffff;
    z-index: 2147483647;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease-in-out;
    overflow: hidden;
}

@media (max-width: 768px) {
    #flota {
        width: 100% !important;
    }
}

#myframe {
    width: 100%;
    border: none;
    height: calc(100% - 50px);
    background-color: #f8f9f9;
}

#dra {
    height: 50px;
    padding: 12px 15px;
    background-color: var(--primary-color);
    text-align: right;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

#dra a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: opacity var(--transition-fast);
}

#dra a:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* ============================================
   CONTENIDO DE DETALLE
   ============================================ */
.contenidos-detalle {
    width: calc(100% - 20px);
    background-color: #f8f9f9;
    color: var(--text-color);
    margin: 0px;
    padding: 15px;
}

.label100 {
    font-size: 16px;
    color: var(--primary-color);
    width: calc(100% - 10px);
    border-bottom: 2px solid var(--secondary-color);
    padding: 8px 5px;
    font-weight: 700;
    margin-top: 15px;
}

.field100 {
    font-size: 15px;
    padding: 10px 5px;
    width: 100%;
    color: var(--text-color);
    line-height: 1.6;
}

/* ============================================
   SCROLLBAR PERSONALIZADO
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-light);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--tertiary-color);
    border-radius: 5px;
    transition: background var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ============================================
   LEAFLET CUSTOMIZATION
   ============================================ */
.leaflet-control-attribution {
    position: absolute;
    bottom: 5px;
    left: 0px;
    z-index: 2147483647 !important;
    font-size: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 2px 5px;
    border-radius: 3px;
}

/* ============================================
   LOGOS ALTERNATIVOS (OCULTOS)
   ============================================ */
#logo,
#logo2 {
    display: none;
}

/* ============================================
   PROTOTIPO (MARCA DE AGUA)
   ============================================ */
#prototipo {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 70%;
    text-align: center;
    transform: translate(-50%, -50%);
    z-index: 100000;
    padding: 25px;
    font-size: 36px;
    background-color: rgba(255, 0, 0, 0.9);
    color: white;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
    border-radius: 10px;
}

/* ============================================
   UTILIDADES
   ============================================ */
.sep25 {
    height: 25px;
    clear: both;
}

.accesibilidad {
    text-align: center;
    padding: 3px;
    background-color: var(--secondary-color);
    color: white;
}




/* ==== FIJAR LA ATRIBUCIÓN DE OPENSTREETMAP ==== */
.leaflet-bottom.leaflet-left {
    width: 100% !important;
}

.leaflet-control-attribution.leaflet-control {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    background: rgba(255, 255, 255, 0.85) !important;
    padding: 4px 8px !important;
    margin: 8px !important;
    margin-right: 100px !important;
    border-radius: 6px !important;
    box-shadow: 0 1px 5px rgba(0,0,0,0.3) !important;
    font-size: 11px !important;
    z-index: 1000 !important;
    max-width: calc(100% - 16px);
}

.leaflet-control-attribution a {
    color: #0D585E !important;
    text-decoration: underline !important;
}













#language-selector {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 10000000;
    display: flex;
    gap: 5px;
    background: white;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.lang-btn {
    padding: 8px 16px;
    border: 2px solid var(--primary-color, #14213d);
    background: white;
    color: var(--primary-color, #14213d);
    font-weight: 600;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Open Sans', sans-serif;
}

.lang-btn:hover {
    background: var(--primary-color, #14213d);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.lang-btn.active {
    background: var(--primary-color, #14213d);
    color: white;
    font-weight: 700;
}

@media (max-width: 768px) {
    #language-selector {
        top: 10px;
        right: 10px;
        padding: 4px;
    }
    
    .lang-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}





/* HEADER - Corregir centrado en desktop */
.header-container {
    max-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    position: relative;
}

#logo_banner {
    position: absolute;
    left: 20px;
    display: flex;
    align-items: center;
    height: 100%;
    z-index: 1;
}

#texto_banner {
    flex: 0 1 auto;
    text-align: center;
    padding: 0 20px;
    z-index: 1;
}

/* SELECTOR DE IDIOMA - Dentro del header */
#language-selector {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 10000;
    display: flex;
    gap: 5px;
    background: white;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.lang-btn {
    padding: 8px 16px;
    border: 2px solid var(--primary-color, #14213d);
    background: white;
    color: var(--primary-color, #14213d);
    font-weight: 600;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Open Sans', sans-serif;
}

.lang-btn:hover {
    background: var(--primary-color, #14213d);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.lang-btn.active {
    background: var(--primary-color, #14213d);
    color: white;
    font-weight: 700;
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
    #banner_titulo {
        height: auto;
        min-height: 60px;
        padding: 8px 0;
    }
    
    .header-container {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 0 10px;
        gap: 8px;
    }
    
    #logo_banner {
        position: static;
        order: 1;
        flex: 0 0 auto;
    }
    
    #logo_banner img {
        height: 35px;
    }
    
    #language-selector {
        position: static;
        transform: none;
        order: 2;
        flex: 0 0 auto;
        padding: 3px;
        right: auto;
        top: auto;
    }
    
    .lang-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    #texto_banner {
        order: 3;
        flex: 1 1 100%;
        text-align: center;
        padding: 8px 0 0 0;
    }
    
    #texto_banner h1 {
        font-size: 13px;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    #texto_banner h1 {
        font-size: 11px;
    }
}