#mapa {
    height: 600px;
    width: 100%;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.insights-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.insight-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.insight-card h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.source-table {
    width: 100%;
    border-collapse: collapse;
}

.source-table th,
.source-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

/* Estilos responsive */
@media (max-width: 768px) {
    .insight-card {
        padding: 10px;
        font-size: 0.9em;
    }

    .insight-card h2 {
        font-size: 1em;
    }

    .fecha-valor {
        font-size: 0.9em;
    }

    .source-table th,
    .source-table td {
        padding: 4px;
        font-size: 0.9em;
    }
}

.popup-content {
    padding: 10px;
}

.popup-content h3 {
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-size: 1.2em;
}

.popup-content p {
    margin: 5px 0;
    color: #666;
}

.popup-content strong {
    color: #2c3e50;
}

/* Estilos para los clusters del mapa */
.marker-cluster {
    background-color: rgba(75, 192, 192, 0.6);
}

.marker-cluster div {
    background-color: rgba(75, 192, 192, 0.8);
    color: white;
    font-weight: bold;
}

@media (max-width: 768px) {
    .graficos-container {
        grid-template-columns: 1fr;
    }
    
    .grafico-card {
        height: 300px;
    }
}

/* Agregamos los nuevos estilos para los marcadores personalizados */
.custom-marker-icon {
    background: none;
    border: none;
}

.marker-icon {
    background: white;
    border: 2px solid #2c3e50;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.marker-icon i {
    color: #2c3e50;
    font-size: 14px;
    margin-bottom: 2px;
}

.marker-icon span {
    font-weight: bold;
    color: #2c3e50;
}

/* Estilos para la tabla de estadísticas */
.stats-container {
    margin: 20px 0;
}

.stats-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.table-responsive {
    overflow-x: auto;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.stats-table th,
.stats-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.stats-table th {
    background-color: #f8f9fa;
    color: #2c3e50;
    font-weight: bold;
}

.stats-table tr:hover {
    background-color: #f5f5f5;
}

.departamento-header {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.departamento-header i {
    transition: transform 0.3s ease;
}

.sectores-container {
    display: none;
    background-color: #f8f9fa;
}

.sectores-table {
    width: 100%;
    margin: 10px 0;
    border-collapse: collapse;
}

.sectores-table th,
.sectores-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.sector-row:hover {
    background-color: #f5f5f5;
}

.nota-expansion {
    color: red;
    font-size: 0.9em;
    margin-top: 5px;
} 