﻿


.select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

    .select-wrapper select {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-color: #f2f2f2;
        color: #333;
        padding: 8px 32px 8px 12px;
        border: none;
        border-radius: 20px;
        font-size: 16px;
        width: 100%;
        cursor: pointer;
    }

    /* Flecha dibujada con pseudo-elemento */
    .select-wrapper::after {
        content: "▼";
        font-size: 12px;
        color: #555;
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
    }




.container-portada-poblacion {
    min-height: 70vh;
}

.sidebar-custom-closed .container-portada-poblacion {
    min-height: calc(70vh + 60px); /* aumenta el alto como compensación */
}



.btn-menu {
    margin-top: 10px;
    margin-right: 15px;
    cursor: pointer;
    border: 1px solid rgb(227, 6, 19);
    padding: 5px;
    border-radius: 10px;
    color: #E30613;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 5px 20px;
    background-color: white;
    white-space: nowrap;
    display: inline-block; /* garantiza que el margin se aplique bien */
    margin-bottom: 5px; /* da espacio entre botones */
}

    .btn-menu:hover {
        color: #e20d16;
    }



.btn-menu-active {
    color: white;
    background-color: #E30613;
}
    .btn-menu-active:hover {
        color: white !important;              
    }


.legend-container {
    display: flex;
    gap: 40px; /* Espacio entre ítems */
    align-items: center;
    margin-top: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #333;
}

.legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.discapacidad {
    background-color: #e57373; /* Rojo suave */
}

.sin-discapacidad {
    background-color: #4fc3f7; /* Celeste suave */
}


.floating-label-centered {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 5px;
    text-align: center;
    font-weight: 400;
}

.dep-label {
    background: transparent;
    border: none;
    box-shadow: none;
    color: #333;
    font-weight: bold;
    font-size: 12px;
    text-align: center;
    pointer-events: none;
    background-color: transparent !important;
    border: 1px solid transparent !important;
    font-size: 8px !important;
    box-shadow: none !important;
}


.leaflet-control.legend {
    background: white;
    padding: 10px;
    line-height: 18px;
    font-size: 13px;
    color: #333;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    border-radius: 5px;
}



.gender-container {
    display: flex;
    gap: 30px; /* Espacio entre los iconos */
    flex-wrap: wrap; /* Permite que los elementos se envuelvan en pantallas pequeñas */
    justify-content: center;
    margin: 20px 0px;
}

.gender-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 150px; /* Ancho base del contenedor de cada icono */
    height: 200px; /* Altura base del contenedor de cada icono */
    position: relative;
}

    .gender-item .icon {
        width: 200px; /* Ancho del icono */
        height: 200px; /* Altura del icono */
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    .gender-item.male .icon {
        background-image: url('../img/man.png');
    }

    .gender-item.female .icon {
        background-image: url('../img/woman.png');
    }


.percentage {
    font-size: 1.5em;
    font-weight: bold;
    color: #fff;
    background: rgba(0,0,0,0.45); /* ← mejora contraste */
    padding: 4px 8px;
    border-radius: 6px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Colores específicos para los porcentajes */
.gender-item.male .percentage {
    color: white; /* Blanco */
}

.gender-item.female .percentage {
    color: white; /* Blanco */
}

/* Media Queries para Responsividad */
@media (max-width: 768px) {
    .gender-container {
        flex-direction: column; /* Apila los elementos en pantallas más pequeñas */
        align-items: center;
    }

    .gender-item {
        width: 120px;
        height: 160px;
    }

        .gender-item .icon {
            width: 80px;
            height: 80px;
        }

    .percentage {
        font-size: 2.5em;
    }
}

@media (max-width: 480px) {
    .gender-item {
        width: 100px;
        height: 140px;
    }

        .gender-item .icon {
            width: 70px;
            height: 70px;
        }

    .percentage {
        font-size: 2em;
    }
}