| 
									
										
										
										
											2025-09-17 11:31:17 -03:00
										 |  |  | /* src/features/legislativas/provinciales/TickerWidget.css */ | 
					
						
							| 
									
										
										
										
											2025-09-05 13:56:09 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | /* --- Contenedor Principal del Widget --- */ | 
					
						
							| 
									
										
										
										
											2025-09-01 14:04:40 -03:00
										 |  |  | .ticker-card { | 
					
						
							|  |  |  |     background-color: #ffffff; | 
					
						
							|  |  |  |     border: 1px solid #e0e0e0; | 
					
						
							|  |  |  |     box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); | 
					
						
							| 
									
										
										
										
											2025-09-05 13:56:09 -03:00
										 |  |  |     padding: 1rem; /* Usamos rem para un padding relativo */ | 
					
						
							| 
									
										
										
										
											2025-09-01 14:04:40 -03:00
										 |  |  |     border-radius: 8px; | 
					
						
							|  |  |  |     display: flex; | 
					
						
							|  |  |  |     flex-direction: column; | 
					
						
							| 
									
										
										
										
											2025-09-05 13:56:09 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  |     /* --- CAMBIO CLAVE: Establecemos un tamaño de fuente base --- */ | 
					
						
							|  |  |  |     /* 1rem = al tamaño de fuente del contenedor padre. Si la página usa 16px, | 
					
						
							|  |  |  |        el widget usará 16px como base. Si usa 14px, se adaptará a 14px. */ | 
					
						
							|  |  |  |     font-size: 1rem;  | 
					
						
							| 
									
										
										
										
											2025-08-22 21:55:03 -03:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-09-05 13:56:09 -03:00
										 |  |  | /* --- Cabecera del Ticker --- */ | 
					
						
							| 
									
										
										
										
											2025-08-22 21:55:03 -03:00
										 |  |  | .ticker-header { | 
					
						
							|  |  |  |   display: flex; | 
					
						
							|  |  |  |   justify-content: space-between; | 
					
						
							|  |  |  |   align-items: center; | 
					
						
							| 
									
										
										
										
											2025-09-02 20:34:49 -03:00
										 |  |  |   border-bottom: 1px solid #e0e0e0; | 
					
						
							| 
									
										
										
										
											2025-09-05 13:56:09 -03:00
										 |  |  |   padding-bottom: 0.8rem; | 
					
						
							|  |  |  |   margin-bottom: 1rem; | 
					
						
							| 
									
										
										
										
											2025-08-22 21:55:03 -03:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .ticker-header h3 { | 
					
						
							|  |  |  |   margin: 0; | 
					
						
							| 
									
										
										
										
											2025-09-02 20:34:49 -03:00
										 |  |  |   color: #212529; | 
					
						
							| 
									
										
										
										
											2025-09-05 13:56:09 -03:00
										 |  |  |   /* El tamaño del título es 1.1 veces el tamaño base del widget */ | 
					
						
							|  |  |  |   font-size: 1.1rem;  | 
					
						
							| 
									
										
										
										
											2025-08-25 10:25:54 -03:00
										 |  |  |   font-weight: 700; | 
					
						
							| 
									
										
										
										
											2025-09-05 13:56:09 -03:00
										 |  |  |   padding-right: 1rem; | 
					
						
							| 
									
										
										
										
											2025-08-22 21:55:03 -03:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .ticker-stats { | 
					
						
							|  |  |  |   display: flex; | 
					
						
							| 
									
										
										
										
											2025-09-05 13:56:09 -03:00
										 |  |  |   gap: 1.25rem; /* 20px / 16px */ | 
					
						
							|  |  |  |   font-size: 0.875rem; /* 14px / 16px */ | 
					
						
							| 
									
										
										
										
											2025-08-25 10:25:54 -03:00
										 |  |  |   color: #555; | 
					
						
							| 
									
										
										
										
											2025-08-22 21:55:03 -03:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .ticker-stats strong { | 
					
						
							| 
									
										
										
										
											2025-09-02 20:34:49 -03:00
										 |  |  |   color: #0073e6; | 
					
						
							| 
									
										
										
										
											2025-09-05 13:56:09 -03:00
										 |  |  |   font-size: 1.1em; /* 1.1 veces el tamaño de su padre (0.875rem) */ | 
					
						
							| 
									
										
										
										
											2025-08-22 21:55:03 -03:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-09-05 13:56:09 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | /* --- Resultados (Grid de Partidos) --- */ | 
					
						
							| 
									
										
										
										
											2025-08-22 21:55:03 -03:00
										 |  |  | .ticker-results { | 
					
						
							| 
									
										
										
										
											2025-09-05 13:56:09 -03:00
										 |  |  |     display: grid; | 
					
						
							|  |  |  |     /* Mantenemos minmax para la responsividad de las columnas */ | 
					
						
							|  |  |  |     grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));  | 
					
						
							|  |  |  |     gap: 1.25rem; /* 20px */ | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .ticker-party { | 
					
						
							| 
									
										
										
										
											2025-09-01 14:04:40 -03:00
										 |  |  |     display: flex; | 
					
						
							| 
									
										
										
										
											2025-09-05 13:56:09 -03:00
										 |  |  |     align-items: center; | 
					
						
							|  |  |  |     gap: 0.8rem; /* 10px */ | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /* Logo del partido */ | 
					
						
							|  |  |  | .party-logo { | 
					
						
							|  |  |  |     flex-shrink: 0; | 
					
						
							|  |  |  |     width: 65px; /* Ligeramente más pequeño para no ser tan dominante */ | 
					
						
							|  |  |  |     height: 65px; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | .party-logo img { | 
					
						
							|  |  |  |     width: 100%; | 
					
						
							|  |  |  |     height: 100%; | 
					
						
							|  |  |  |     object-fit: contain; /* Usar 'contain' es más seguro para logos */ | 
					
						
							|  |  |  |     border-radius: 4px; | 
					
						
							|  |  |  |     border: 1px solid #ddd; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /* Detalles (Nombre, Barra, Candidato) */ | 
					
						
							|  |  |  | .party-details { | 
					
						
							|  |  |  |     flex-grow: 1; | 
					
						
							|  |  |  |     min-width: 0; | 
					
						
							| 
									
										
										
										
											2025-08-22 21:55:03 -03:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .ticker-party .party-info { | 
					
						
							|  |  |  |   display: flex; | 
					
						
							|  |  |  |   justify-content: space-between; | 
					
						
							| 
									
										
										
										
											2025-09-05 13:56:09 -03:00
										 |  |  |   align-items: baseline; /* Alinea la base del texto */ | 
					
						
							|  |  |  |   margin-bottom: 0.3rem; /* 5px */ | 
					
						
							| 
									
										
										
										
											2025-08-22 21:55:03 -03:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .ticker-party .party-name { | 
					
						
							| 
									
										
										
										
											2025-09-05 14:04:38 -03:00
										 |  |  |   font-weight: 800; | 
					
						
							| 
									
										
										
										
											2025-08-22 21:55:03 -03:00
										 |  |  |   white-space: nowrap; | 
					
						
							|  |  |  |   overflow: hidden; | 
					
						
							|  |  |  |   text-overflow: ellipsis; | 
					
						
							| 
									
										
										
										
											2025-09-05 14:04:38 -03:00
										 |  |  |   padding-right: 0.6rem; | 
					
						
							| 
									
										
										
										
											2025-09-05 13:56:09 -03:00
										 |  |  |   font-size: 0.9rem; | 
					
						
							|  |  |  |   color: #343a40; | 
					
						
							| 
									
										
										
										
											2025-08-22 21:55:03 -03:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .ticker-party .party-percent { | 
					
						
							| 
									
										
										
										
											2025-08-25 10:25:54 -03:00
										 |  |  |   font-weight: 700; | 
					
						
							| 
									
										
										
										
											2025-09-05 13:56:09 -03:00
										 |  |  |   font-size: 0.95rem; /* Un poco más grande para destacar */ | 
					
						
							|  |  |  |   flex-shrink: 0; /* Evita que el porcentaje se comprima */ | 
					
						
							| 
									
										
										
										
											2025-08-22 21:55:03 -03:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .party-bar-background { | 
					
						
							| 
									
										
										
										
											2025-09-02 20:34:49 -03:00
										 |  |  |   background-color: #e9ecef; | 
					
						
							| 
									
										
										
										
											2025-08-22 21:55:03 -03:00
										 |  |  |   border-radius: 4px; | 
					
						
							| 
									
										
										
										
											2025-09-05 13:56:09 -03:00
										 |  |  |   height: 8px; /* Un poco más delgada */ | 
					
						
							| 
									
										
										
										
											2025-08-22 21:55:03 -03:00
										 |  |  |   overflow: hidden; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | .party-bar-foreground { | 
					
						
							|  |  |  |   height: 100%; | 
					
						
							|  |  |  |   border-radius: 4px; | 
					
						
							|  |  |  |   transition: width 0.5s ease-in-out; | 
					
						
							| 
									
										
										
										
											2025-09-01 14:04:40 -03:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-09-05 13:56:09 -03:00
										 |  |  | .party-candidate-name { | 
					
						
							|  |  |  |   font-size: 0.8rem; /* 12.8px / 16px */ | 
					
						
							|  |  |  |   color: #555; | 
					
						
							|  |  |  |   margin-top: 0.3rem; /* 4px */ | 
					
						
							|  |  |  |   font-weight: 400; /* Ligeramente menos pesado */ | 
					
						
							|  |  |  |   text-transform: uppercase; | 
					
						
							|  |  |  |   letter-spacing: 0.5px; | 
					
						
							|  |  |  |   white-space: nowrap; | 
					
						
							|  |  |  |   overflow: hidden; | 
					
						
							|  |  |  |   text-overflow: ellipsis; | 
					
						
							| 
									
										
										
										
											2025-09-02 20:34:49 -03:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-09-05 13:56:09 -03:00
										 |  |  | 
 | 
					
						
							|  |  |  | /* --- Media Query para Móviles --- */ | 
					
						
							| 
									
										
										
										
											2025-09-02 20:34:49 -03:00
										 |  |  | @media (max-width: 600px) { | 
					
						
							|  |  |  |   .ticker-header { | 
					
						
							|  |  |  |     flex-direction: column; | 
					
						
							|  |  |  |     align-items: center; | 
					
						
							| 
									
										
										
										
											2025-09-05 13:56:09 -03:00
										 |  |  |     gap: 0.8rem; | 
					
						
							| 
									
										
										
										
											2025-09-02 20:34:49 -03:00
										 |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   .ticker-header h3 { | 
					
						
							| 
									
										
										
										
											2025-09-05 13:56:09 -03:00
										 |  |  |     font-size: 1.1rem; | 
					
						
							|  |  |  |     padding-right: 0; | 
					
						
							| 
									
										
										
										
											2025-09-02 20:34:49 -03:00
										 |  |  |   } | 
					
						
							| 
									
										
										
										
											2025-09-05 13:56:09 -03:00
										 |  |  |    | 
					
						
							|  |  |  |   .ticker-results { | 
					
						
							|  |  |  |       /* En móvil, forzamos una sola columna */ | 
					
						
							|  |  |  |       grid-template-columns: 1fr; | 
					
						
							| 
									
										
										
										
											2025-09-02 20:34:49 -03:00
										 |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-09-05 13:56:09 -03:00
										 |  |  |   .ticker-party .party-name, | 
					
						
							|  |  |  |   .party-candidate-name { | 
					
						
							|  |  |  |     white-space: normal; /* Permitimos que el texto se divida en varias líneas */ | 
					
						
							| 
									
										
										
										
											2025-09-02 20:34:49 -03:00
										 |  |  |   } | 
					
						
							| 
									
										
										
										
											2025-08-22 21:55:03 -03:00
										 |  |  | } |