| 
									
										
										
										
											2025-08-22 21:55:03 -03:00
										 |  |  | /* src/components/MapaBsAs.css */ | 
					
						
							|  |  |  | :root { | 
					
						
							| 
									
										
										
										
											2025-08-25 10:25:54 -03:00
										 |  |  |   --primary-accent-color: #0073e6; | 
					
						
							|  |  |  |   --background-panel-color: #ffffff; | 
					
						
							|  |  |  |   --border-color: #dee2e6; | 
					
						
							|  |  |  |   --text-color: #212529; | 
					
						
							|  |  |  |   --text-color-muted: #6c757d; | 
					
						
							|  |  |  |   --progress-bar-background: #e9ecef; | 
					
						
							|  |  |  |   --scrollbar-thumb-color: #ced4da; | 
					
						
							|  |  |  |   --scrollbar-track-color: #f1f1f1; | 
					
						
							|  |  |  |   --map-background-color: #f8f9fa; | 
					
						
							| 
									
										
										
										
											2025-08-22 21:55:03 -03:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .mapa-wrapper { | 
					
						
							|  |  |  |   display: flex; | 
					
						
							|  |  |  |   gap: 1.5rem; | 
					
						
							| 
									
										
										
										
											2025-08-25 10:25:54 -03:00
										 |  |  |   background-color: #ffffff; | 
					
						
							|  |  |  |   border: 1px solid var(--border-color); | 
					
						
							|  |  |  |   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); | 
					
						
							| 
									
										
										
										
											2025-08-22 21:55:03 -03:00
										 |  |  |   padding: 1rem; | 
					
						
							| 
									
										
										
										
											2025-08-25 10:25:54 -03:00
										 |  |  |   border-radius: 8px; | 
					
						
							|  |  |  |   max-width: 1600px; | 
					
						
							| 
									
										
										
										
											2025-08-22 21:55:03 -03:00
										 |  |  |   margin: auto; | 
					
						
							| 
									
										
										
										
											2025-08-25 10:25:54 -03:00
										 |  |  |   height: 88vh; | 
					
						
							| 
									
										
										
										
											2025-08-22 21:55:03 -03:00
										 |  |  |   min-height: 650px; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .mapa-container { | 
					
						
							|  |  |  |   flex: 0 0 70%; | 
					
						
							|  |  |  |   height: 100%; | 
					
						
							|  |  |  |   border: 1px solid var(--border-color); | 
					
						
							|  |  |  |   border-radius: 8px; | 
					
						
							|  |  |  |   position: relative; | 
					
						
							|  |  |  |   overflow: hidden; | 
					
						
							|  |  |  |   background-color: var(--map-background-color); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .mapa-container .rsm-svg { | 
					
						
							|  |  |  |   position: absolute; | 
					
						
							|  |  |  |   top: 0; | 
					
						
							|  |  |  |   left: 0; | 
					
						
							|  |  |  |   width: 100%; | 
					
						
							|  |  |  |   height: 100%; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .rsm-geography { | 
					
						
							| 
									
										
										
										
											2025-08-25 10:25:54 -03:00
										 |  |  |   transition: opacity 0.3s ease, transform 0.2s ease, filter 0.2s ease, fill 0.3s ease; | 
					
						
							| 
									
										
										
										
											2025-08-22 21:55:03 -03:00
										 |  |  |   cursor: pointer; | 
					
						
							| 
									
										
										
										
											2025-08-25 10:25:54 -03:00
										 |  |  |   stroke: #b0b0b0; | 
					
						
							|  |  |  |   stroke-width: 0.5px; | 
					
						
							| 
									
										
										
										
											2025-08-22 21:55:03 -03:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .rsm-geography:hover { | 
					
						
							| 
									
										
										
										
											2025-08-25 10:25:54 -03:00
										 |  |  |   stroke: var(--primary-accent-color); | 
					
						
							| 
									
										
										
										
											2025-08-22 21:55:03 -03:00
										 |  |  |   stroke-width: 1.5px; | 
					
						
							| 
									
										
										
										
											2025-08-25 10:25:54 -03:00
										 |  |  |   filter: brightness(1.05); | 
					
						
							| 
									
										
										
										
											2025-08-22 21:55:03 -03:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .rsm-geography.selected { | 
					
						
							| 
									
										
										
										
											2025-08-25 10:25:54 -03:00
										 |  |  |   stroke: #333; | 
					
						
							|  |  |  |   stroke-width: 2px; | 
					
						
							|  |  |  |   filter: none; | 
					
						
							|  |  |  |   pointer-events: none; | 
					
						
							| 
									
										
										
										
											2025-08-22 21:55:03 -03:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .rsm-geography.faded { | 
					
						
							| 
									
										
										
										
											2025-08-25 10:25:54 -03:00
										 |  |  |   opacity: 0.25; | 
					
						
							| 
									
										
										
										
											2025-08-22 21:55:03 -03:00
										 |  |  |   pointer-events: none; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .info-panel { | 
					
						
							|  |  |  |   flex: 1; | 
					
						
							|  |  |  |   display: flex; | 
					
						
							|  |  |  |   flex-direction: column; | 
					
						
							|  |  |  |   overflow-y: auto; | 
					
						
							| 
									
										
										
										
											2025-08-25 10:25:54 -03:00
										 |  |  |   min-height: 0; | 
					
						
							|  |  |  |   background-color: var(--background-panel-color); | 
					
						
							|  |  |  |   border-radius: 8px; | 
					
						
							| 
									
										
										
										
											2025-08-22 21:55:03 -03:00
										 |  |  |   padding: 1.5rem; | 
					
						
							| 
									
										
										
										
											2025-08-25 10:25:54 -03:00
										 |  |  |   border: none; | 
					
						
							| 
									
										
										
										
											2025-08-22 21:55:03 -03:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .info-panel::-webkit-scrollbar { width: 8px; } | 
					
						
							|  |  |  | .info-panel::-webkit-scrollbar-track { background: var(--scrollbar-track-color); border-radius: 4px; } | 
					
						
							|  |  |  | .info-panel::-webkit-scrollbar-thumb { background-color: var(--scrollbar-thumb-color); border-radius: 4px; border: 2px solid var(--scrollbar-track-color); } | 
					
						
							| 
									
										
										
										
											2025-08-25 10:25:54 -03:00
										 |  |  | .info-panel::-webkit-scrollbar-thumb:hover { background-color: #adb5bd; } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-22 21:55:03 -03:00
										 |  |  | .info-panel h3 { margin-top: 0; color: var(--primary-accent-color); border-bottom: 2px solid var(--border-color); padding-bottom: 0.5rem; } | 
					
						
							|  |  |  | .info-panel p { color: var(--text-color-muted); } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .reset-button-panel { | 
					
						
							|  |  |  |   background: none; border: 1px solid var(--primary-accent-color); color: var(--primary-accent-color); padding: 0.5rem 1rem; border-radius: 5px; cursor: pointer; transition: all 0.2s; margin-bottom: 1rem; align-self: flex-start; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | .reset-button-panel:hover { background-color: var(--primary-accent-color); color: white; } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-25 10:25:54 -03:00
										 |  |  | .detalle-placeholder {  | 
					
						
							|  |  |  |   text-align: center;  | 
					
						
							|  |  |  |   margin: auto 0;  | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | .detalle-loading, .detalle-error { text-align: center; margin: auto 0; color: var(--text-color-muted); } | 
					
						
							| 
									
										
										
										
											2025-08-22 21:55:03 -03:00
										 |  |  | .detalle-metricas { display: flex; justify-content: space-between; font-size: 0.9em; padding-bottom: 1rem; border-bottom: 1px solid var(--border-color); margin-bottom: 1rem; } | 
					
						
							|  |  |  | .resultados-lista { list-style: none; padding: 0; margin: 0; } | 
					
						
							|  |  |  | .resultados-lista li { margin-bottom: 1rem; } | 
					
						
							|  |  |  | .resultado-info { display: flex; justify-content: space-between; margin-bottom: 0.25rem; font-size: 0.9em; } | 
					
						
							|  |  |  | .partido-nombre { font-weight: 500; } | 
					
						
							| 
									
										
										
										
											2025-08-25 10:25:54 -03:00
										 |  |  | .partido-votos { font-weight: 400; color: var(--text-color-muted); } | 
					
						
							| 
									
										
										
										
											2025-08-22 21:55:03 -03:00
										 |  |  | .progress-bar { height: 8px; background-color: var(--progress-bar-background); border-radius: 4px; overflow: hidden; } | 
					
						
							|  |  |  | .progress-fill { height: 100%; background-color: var(--primary-accent-color); border-radius: 4px; transition: width 0.5s ease-out; } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .spinner { width: 40px; height: 40px; border: 4px solid var(--border-color); border-top-color: var(--primary-accent-color); border-radius: 50%; animation: spin 1s linear infinite; margin: 1rem auto; } | 
					
						
							|  |  |  | @keyframes spin { to { transform: rotate(360deg); } } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .map-controls { | 
					
						
							|  |  |  |   position: absolute; | 
					
						
							|  |  |  |   top: 15px; | 
					
						
							|  |  |  |   right: 15px; | 
					
						
							|  |  |  |   display: flex; | 
					
						
							|  |  |  |   flex-direction: column; | 
					
						
							|  |  |  |   gap: 5px; | 
					
						
							| 
									
										
										
										
											2025-08-25 10:25:54 -03:00
										 |  |  |   z-index: 10; | 
					
						
							| 
									
										
										
										
											2025-08-22 21:55:03 -03:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2025-08-25 10:25:54 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | /* --- ESTILOS PARA EL BOTÓN DE "VOLVER" (VISTA DESKTOP) --- */ | 
					
						
							| 
									
										
										
										
											2025-08-22 21:55:03 -03:00
										 |  |  | .map-controls button { | 
					
						
							| 
									
										
										
										
											2025-08-25 10:25:54 -03:00
										 |  |  |   /* Se elimina el ancho y alto fijos para que el botón se ajuste al texto. */ | 
					
						
							|  |  |  |   width: auto; | 
					
						
							|  |  |  |   height: auto; | 
					
						
							|  |  |  |   /* Se define un padding para dar espacio interno al texto. */ | 
					
						
							|  |  |  |   padding: 0.5rem 1rem; | 
					
						
							|  |  |  |   /* Se ajusta el tamaño de fuente para el texto. */ | 
					
						
							|  |  |  |   font-size: 0.9em; | 
					
						
							|  |  |  |   font-weight: bold; | 
					
						
							|  |  |  |   background-color: #ffffff; | 
					
						
							|  |  |  |   color: #333; | 
					
						
							|  |  |  |   border: 1px solid var(--border-color); | 
					
						
							|  |  |  |   box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); | 
					
						
							|  |  |  |   border-radius: 4px; | 
					
						
							|  |  |  |   cursor: pointer; | 
					
						
							|  |  |  |   transition: all 0.2s; | 
					
						
							|  |  |  |   /* Se eliminan las propiedades de centrado de íconos que ya no son necesarias. */ | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | .map-controls button:hover { | 
					
						
							|  |  |  |   background-color: #f8f9fa; | 
					
						
							|  |  |  |   border-color: var(--primary-accent-color); | 
					
						
							|  |  |  |   color: var(--primary-accent-color); | 
					
						
							| 
									
										
										
										
											2025-08-22 21:55:03 -03:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-25 10:25:54 -03:00
										 |  |  | .legend { | 
					
						
							|  |  |  |   padding-top: 1rem; | 
					
						
							|  |  |  |   border-top: 1px solid var(--border-color); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | .legend h4 { | 
					
						
							|  |  |  |   margin-top: 0; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2025-08-22 21:55:03 -03:00
										 |  |  | .legend-item { display: flex; align-items: center; margin-bottom: 0.5rem; font-size: 0.85em; } | 
					
						
							| 
									
										
										
										
											2025-08-25 10:25:54 -03:00
										 |  |  | .legend-color-box { width: 16px; height: 16px; margin-right: 8px; border-radius: 3px; border: 1px solid #ccc; } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /* --- ESTILOS PARA RESPONSIVIDAD MÓVIL --- */ | 
					
						
							|  |  |  | @media (max-width: 992px) { | 
					
						
							|  |  |  |   .mapa-wrapper { | 
					
						
							|  |  |  |     flex-direction: column; | 
					
						
							|  |  |  |     height: auto; | 
					
						
							|  |  |  |     min-height: 100vh; | 
					
						
							|  |  |  |     padding: 0.5rem; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   .mapa-container { | 
					
						
							|  |  |  |     flex-basis: auto; | 
					
						
							|  |  |  |     width: 100%; | 
					
						
							|  |  |  |     height: 50vh; | 
					
						
							|  |  |  |     min-height: 400px; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   .info-panel { | 
					
						
							|  |  |  |     flex-basis: auto; | 
					
						
							|  |  |  |     width: 100%; | 
					
						
							|  |  |  |     height: auto; | 
					
						
							|  |  |  |     overflow-y: visible; | 
					
						
							|  |  |  |     box-sizing: border-box; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   .map-controls { | 
					
						
							|  |  |  |     top: 10px; | 
					
						
							|  |  |  |     right: 10px; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   /* --- ESTILOS PARA EL BOTÓN DE "VOLVER" (VISTA MÓVIL) --- */ | 
					
						
							|  |  |  |   .map-controls button { | 
					
						
							|  |  |  |     /* Se elimina el ancho y alto fijos para que el botón se ajuste al texto. */ | 
					
						
							|  |  |  |     width: auto; | 
					
						
							|  |  |  |     height: auto; | 
					
						
							|  |  |  |     /* Se ajusta el padding para que sea un buen objetivo táctil (tappable). */ | 
					
						
							|  |  |  |     padding: 0.6rem 1.2rem; | 
					
						
							|  |  |  |     /* Un tamaño de fuente legible en móviles. */ | 
					
						
							|  |  |  |     font-size: 1em; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | } |