/* 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; } /* Contenedor para alinear título y selector */ .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; } /* --- ESTILOS MODERNOS PARA BREADCRUMBS --- */ .breadcrumbs-container { display: flex; align-items: center; gap: 0.5rem; /* Espacio entre elementos */ font-size: 0.9rem; } .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; cursor: pointer; 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; } .breadcrumb-separator { color: #a0a0a0; /* Color sutil para el separador */ font-size: 1.2rem; } .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 */ } /* --- NUEVO LAYOUT PARA TARJETAS DE PARTIDO --- */ .partido-fila { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #f0f0f0; /* Separador sutil */ border-left: 5px solid; /* El color se aplica inline */ padding-left: 1rem; } .partido-logo { flex-shrink: 0; width: 75px; height: 75px; } .partido-logo img { width: 100%; height: 100%; object-fit: contain; 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 */ } .partido-info-wrapper { /* Ocupa el espacio disponible a la izquierda */ min-width: 0; } .partido-nombre { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .candidato-nombre { font-size: 0.85rem; color: #666; } .partido-stats { flex-shrink: 0; text-align: right; padding-left: 1rem; /* Espacio para que no se pegue al nombre */ } .partido-porcentaje { font-size: 1.5rem; font-weight: 700; display: block; } .partido-votos { font-size: 1rem; color: #666; display: block; } .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; } /* ------------------------------------------- */ .panel-estado-recuento { display: flex; justify-content: space-around; padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid #e0e0e0; } .estado-item { width: 100px; text-align: center; } .estado-item span { margin-top: 0.5rem; font-size: 0.9rem; color: #666; display: block; } /* --- MAPA Y ELEMENTOS ASOCIADOS (sin cambios) --- */ .mapa-componente-container { width: 100%; height: 100%; position: relative; overflow: hidden; } .mapa-render-area { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } .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); } .rsm-zoomable-group { transition: transform 0.75s ease-in-out; } .panel-main-content.panel-collapsed .mapa-column { flex: 1 1 100%; } .panel-main-content.panel-collapsed .resultados-column { flex-basis: 0; min-width: 0; max-width: 0; padding: 0; overflow: hidden; } .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; stroke-width: 0.25px; outline: none; transition: filter 0.2s ease-in-out; } .rsm-geography:not(.selected):hover { filter: brightness(1.15); stroke: #ffffff; stroke-width: 0.25px; } .rsm-geography.selected { stroke: #000000; stroke-width: 0.25px; filter: none; pointer-events: none; } .rsm-geography-faded, .rsm-geography-faded-municipality { opacity: 0.5; pointer-events: none; } .caba-comuna-geography { stroke: #000000; stroke-width: 0.05px; } .caba-comuna-geography:not(.selected):hover { stroke: #000000; stroke-width: 0.055px; filter: brightness(1.25); } .transition-spinner { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(255, 255, 255, 0.5); 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); } } .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; }