2025-09-17 11:31:17 -03:00
|
|
|
/* src/features/legislativas/nacionales/PanelNaciona.css */
|
|
|
|
|
.panel-nacional-container {
|
|
|
|
|
font-family: 'Roboto', sans-serif;
|
|
|
|
|
max-width: 1200px;
|
|
|
|
|
margin: auto;
|
|
|
|
|
border: 1px solid #e0e0e0;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.panel-header {
|
|
|
|
|
padding: 1rem 1.5rem;
|
|
|
|
|
border-bottom: 1px solid #e0e0e0;
|
|
|
|
|
}
|
|
|
|
|
|
2025-09-19 17:19:10 -03:00
|
|
|
/* Contenedor para alinear título y selector */
|
2025-09-17 11:31:17 -03:00
|
|
|
.header-top-row {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: center;
|
|
|
|
|
margin-bottom: 0.5rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.panel-header h1 {
|
|
|
|
|
font-size: 1.5rem;
|
|
|
|
|
margin: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.categoria-selector {
|
|
|
|
|
min-width: 220px;
|
|
|
|
|
}
|
|
|
|
|
|
2025-09-19 17:19:10 -03:00
|
|
|
/* --- ESTILOS MODERNOS PARA BREADCRUMBS --- */
|
|
|
|
|
|
|
|
|
|
.breadcrumbs-container {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 0.5rem; /* Espacio entre elementos */
|
2025-09-17 11:31:17 -03:00
|
|
|
font-size: 0.9rem;
|
|
|
|
|
}
|
|
|
|
|
|
2025-09-19 17:19:10 -03:00
|
|
|
.breadcrumb-item, .breadcrumb-item-actual {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
padding: 0.4rem 0.8rem;
|
|
|
|
|
border-radius: 8px; /* Bordes redondeados para efecto píldora */
|
|
|
|
|
transition: background-color 0.2s ease-in-out;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.breadcrumb-item {
|
|
|
|
|
background-color: #f0f0f0;
|
|
|
|
|
border: 1px solid #e0e0e0;
|
|
|
|
|
color: #333;
|
2025-09-17 11:31:17 -03:00
|
|
|
cursor: pointer;
|
2025-09-19 17:19:10 -03:00
|
|
|
font-weight: 500;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.breadcrumb-item:hover {
|
|
|
|
|
background-color: #e0e0e0;
|
|
|
|
|
border-color: #d1d1d1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.breadcrumb-item-actual {
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
color: #000;
|
|
|
|
|
font-weight: 700; /* Más peso para el nivel actual */
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.breadcrumb-icon {
|
|
|
|
|
margin-right: 0.4rem;
|
|
|
|
|
font-size: 1rem;
|
2025-09-17 11:31:17 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.breadcrumb-separator {
|
2025-09-19 17:19:10 -03:00
|
|
|
color: #a0a0a0; /* Color sutil para el separador */
|
|
|
|
|
font-size: 1.2rem;
|
2025-09-17 11:31:17 -03:00
|
|
|
}
|
|
|
|
|
|
2025-09-19 17:19:10 -03:00
|
|
|
|
2025-09-17 11:31:17 -03:00
|
|
|
.panel-main-content {
|
|
|
|
|
display: flex;
|
|
|
|
|
height: 75vh;
|
|
|
|
|
min-height: 500px;
|
|
|
|
|
transition: all 0.5s ease-in-out;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Columna del mapa */
|
|
|
|
|
.mapa-column {
|
|
|
|
|
flex: 2; /* Por defecto, ocupa 2/3 del espacio */
|
|
|
|
|
position: relative;
|
|
|
|
|
transition: flex 0.5s ease-in-out;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Columna de resultados */
|
|
|
|
|
.resultados-column {
|
|
|
|
|
flex: 1; /* Por defecto, ocupa 1/3 */
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
padding: 1.5rem;
|
|
|
|
|
transition: all 0.5s ease-in-out;
|
|
|
|
|
min-width: 320px; /* Un ancho mínimo para que no se comprima demasiado */
|
|
|
|
|
}
|
|
|
|
|
|
2025-09-19 17:19:10 -03:00
|
|
|
/* --- NUEVO LAYOUT PARA TARJETAS DE PARTIDO --- */
|
|
|
|
|
.partido-fila {
|
2025-09-17 11:31:17 -03:00
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
2025-09-19 17:19:10 -03:00
|
|
|
gap: 1rem;
|
|
|
|
|
padding: 1rem 0;
|
|
|
|
|
border-bottom: 1px solid #f0f0f0; /* Separador sutil */
|
|
|
|
|
border-left: 5px solid; /* El color se aplica inline */
|
|
|
|
|
padding-left: 1rem;
|
2025-09-17 11:31:17 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.partido-logo {
|
|
|
|
|
flex-shrink: 0;
|
2025-09-19 17:19:10 -03:00
|
|
|
width: 75px;
|
|
|
|
|
height: 75px;
|
2025-09-17 11:31:17 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.partido-logo img {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
object-fit: contain;
|
2025-09-19 17:19:10 -03:00
|
|
|
border-radius: 10%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.partido-main-content {
|
|
|
|
|
flex-grow: 1;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 0.5rem; /* Espacio entre la fila superior y la barra */
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.partido-top-row {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: flex-start; /* Alinea los elementos al tope */
|
2025-09-17 11:31:17 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.partido-info-wrapper {
|
2025-09-19 17:19:10 -03:00
|
|
|
/* Ocupa el espacio disponible a la izquierda */
|
|
|
|
|
min-width: 0;
|
2025-09-17 11:31:17 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.partido-nombre {
|
|
|
|
|
font-weight: 500;
|
2025-09-19 17:19:10 -03:00
|
|
|
white-space: nowrap;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
2025-09-17 11:31:17 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.candidato-nombre {
|
|
|
|
|
font-size: 0.85rem;
|
|
|
|
|
color: #666;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.partido-stats {
|
2025-09-19 17:19:10 -03:00
|
|
|
flex-shrink: 0;
|
2025-09-17 11:31:17 -03:00
|
|
|
text-align: right;
|
2025-09-19 17:19:10 -03:00
|
|
|
padding-left: 1rem; /* Espacio para que no se pegue al nombre */
|
2025-09-17 11:31:17 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.partido-porcentaje {
|
2025-09-19 17:19:10 -03:00
|
|
|
font-size: 1.5rem;
|
2025-09-17 11:31:17 -03:00
|
|
|
font-weight: 700;
|
|
|
|
|
display: block;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.partido-votos {
|
2025-09-19 17:19:10 -03:00
|
|
|
font-size: 1rem;
|
2025-09-17 11:31:17 -03:00
|
|
|
color: #666;
|
|
|
|
|
display: block;
|
|
|
|
|
}
|
|
|
|
|
|
2025-09-19 17:19:10 -03:00
|
|
|
.partido-barra-background {
|
|
|
|
|
height: 20px;
|
|
|
|
|
background-color: #f0f0f0;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.partido-barra-foreground {
|
|
|
|
|
height: 100%;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
transition: width 0.5s ease-in-out;
|
|
|
|
|
}
|
|
|
|
|
/* ------------------------------------------- */
|
|
|
|
|
|
2025-09-17 11:31:17 -03:00
|
|
|
.panel-estado-recuento {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-around;
|
2025-09-19 17:19:10 -03:00
|
|
|
padding-bottom: 1.5rem;
|
|
|
|
|
margin-bottom: 1.5rem;
|
|
|
|
|
border-bottom: 1px solid #e0e0e0;
|
2025-09-17 11:31:17 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.estado-item {
|
2025-09-19 17:19:10 -03:00
|
|
|
width: 100px;
|
2025-09-17 11:31:17 -03:00
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.estado-item span {
|
2025-09-19 17:19:10 -03:00
|
|
|
margin-top: 0.5rem;
|
|
|
|
|
font-size: 0.9rem;
|
2025-09-17 11:31:17 -03:00
|
|
|
color: #666;
|
|
|
|
|
display: block;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2025-09-19 17:19:10 -03:00
|
|
|
/* --- MAPA Y ELEMENTOS ASOCIADOS (sin cambios) --- */
|
|
|
|
|
.mapa-componente-container {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
position: relative;
|
|
|
|
|
overflow: hidden;
|
2025-09-17 11:31:17 -03:00
|
|
|
}
|
2025-09-19 17:19:10 -03:00
|
|
|
.mapa-render-area {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
2025-09-17 11:31:17 -03:00
|
|
|
}
|
2025-09-19 17:19:10 -03:00
|
|
|
.mapa-volver-btn {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 10px;
|
|
|
|
|
left: 10px;
|
|
|
|
|
z-index: 10;
|
|
|
|
|
padding: 8px 12px;
|
|
|
|
|
background-color: white;
|
|
|
|
|
border: 1px solid #ccc;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
2025-09-17 11:31:17 -03:00
|
|
|
}
|
2025-09-19 17:19:10 -03:00
|
|
|
.rsm-zoomable-group {
|
|
|
|
|
transition: transform 0.75s ease-in-out;
|
2025-09-17 11:31:17 -03:00
|
|
|
}
|
|
|
|
|
.panel-main-content.panel-collapsed .mapa-column {
|
2025-09-19 17:19:10 -03:00
|
|
|
flex: 1 1 100%;
|
2025-09-17 11:31:17 -03:00
|
|
|
}
|
|
|
|
|
.panel-main-content.panel-collapsed .resultados-column {
|
|
|
|
|
flex-basis: 0;
|
|
|
|
|
min-width: 0;
|
|
|
|
|
max-width: 0;
|
|
|
|
|
padding: 0;
|
2025-09-19 17:19:10 -03:00
|
|
|
overflow: hidden;
|
2025-09-17 11:31:17 -03:00
|
|
|
}
|
|
|
|
|
.panel-toggle-btn {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 50%;
|
|
|
|
|
right: 10px;
|
|
|
|
|
transform: translateY(-50%);
|
|
|
|
|
z-index: 10;
|
|
|
|
|
width: 30px;
|
|
|
|
|
height: 50px;
|
|
|
|
|
border: 1px solid #ccc;
|
|
|
|
|
background-color: white;
|
|
|
|
|
border-radius: 4px 0 0 4px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
font-size: 1.5rem;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
color: #555;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
box-shadow: -2px 0 5px rgba(0,0,0,0.1);
|
|
|
|
|
transition: background-color 0.2s;
|
|
|
|
|
}
|
|
|
|
|
.panel-toggle-btn:hover {
|
|
|
|
|
background-color: #f0f0f0;
|
|
|
|
|
}
|
|
|
|
|
.rsm-geography {
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
stroke: #000000;
|
2025-09-19 17:19:10 -03:00
|
|
|
stroke-width: 0.25px;
|
2025-09-17 11:31:17 -03:00
|
|
|
outline: none;
|
2025-09-19 17:19:10 -03:00
|
|
|
transition: filter 0.2s ease-in-out;
|
2025-09-17 11:31:17 -03:00
|
|
|
}
|
|
|
|
|
.rsm-geography:not(.selected):hover {
|
2025-09-19 17:19:10 -03:00
|
|
|
filter: brightness(1.15);
|
|
|
|
|
stroke: #ffffff;
|
|
|
|
|
stroke-width: 0.25px;
|
2025-09-17 11:31:17 -03:00
|
|
|
}
|
|
|
|
|
.rsm-geography.selected {
|
2025-09-19 17:19:10 -03:00
|
|
|
stroke: #000000;
|
|
|
|
|
stroke-width: 0.25px;
|
|
|
|
|
filter: none;
|
|
|
|
|
pointer-events: none;
|
2025-09-17 11:31:17 -03:00
|
|
|
}
|
|
|
|
|
.rsm-geography-faded,
|
|
|
|
|
.rsm-geography-faded-municipality {
|
2025-09-19 17:19:10 -03:00
|
|
|
opacity: 0.5;
|
2025-09-17 11:31:17 -03:00
|
|
|
pointer-events: none;
|
|
|
|
|
}
|
2025-09-19 17:19:10 -03:00
|
|
|
.caba-comuna-geography {
|
|
|
|
|
stroke: #000000;
|
|
|
|
|
stroke-width: 0.05px;
|
2025-09-17 11:31:17 -03:00
|
|
|
}
|
2025-09-19 17:19:10 -03:00
|
|
|
.caba-comuna-geography:not(.selected):hover {
|
|
|
|
|
stroke: #000000;
|
|
|
|
|
stroke-width: 0.055px;
|
|
|
|
|
filter: brightness(1.25);
|
2025-09-17 11:31:17 -03:00
|
|
|
}
|
|
|
|
|
.transition-spinner {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
2025-09-19 17:19:10 -03:00
|
|
|
background-color: rgba(255, 255, 255, 0.5);
|
2025-09-17 11:31:17 -03:00
|
|
|
z-index: 20;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
}
|
|
|
|
|
.transition-spinner::after {
|
|
|
|
|
content: '';
|
|
|
|
|
width: 50px;
|
|
|
|
|
height: 50px;
|
|
|
|
|
border: 5px solid rgba(0, 0, 0, 0.2);
|
|
|
|
|
border-top-color: #007bff;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
animation: spin 1s linear infinite;
|
|
|
|
|
}
|
|
|
|
|
@keyframes spin {
|
|
|
|
|
to { transform: rotate(360deg); }
|
2025-09-19 17:19:10 -03:00
|
|
|
}
|
|
|
|
|
.caba-magnifier-container {
|
|
|
|
|
position: absolute;
|
|
|
|
|
height: auto;
|
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
}
|
|
|
|
|
.caba-lupa-svg {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: auto;
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
}
|
|
|
|
|
.caba-lupa-interactive-area {
|
|
|
|
|
pointer-events: all;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.25));
|
|
|
|
|
transition: transform 0.2s ease-in-out;
|
|
|
|
|
}
|
|
|
|
|
.caba-lupa-interactive-area:hover {
|
|
|
|
|
filter: brightness(1.15);
|
|
|
|
|
stroke: #ffffff;
|
|
|
|
|
stroke-width: 0.25px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.skeleton-fila div {
|
|
|
|
|
background: #f6f7f8;
|
|
|
|
|
background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
|
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
|
background-size: 800px 104px;
|
|
|
|
|
animation: shimmer 1s linear infinite;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.skeleton-logo { width: 65px; height: 65px; }
|
|
|
|
|
.skeleton-text { height: 1em; }
|
|
|
|
|
.skeleton-bar { height: 20px; margin-top: 4px; }
|
|
|
|
|
|