:root {
  --ed-rojo: #D0021B;
  --ed-negro: #1a1a1a;
  --ed-azul: #4A90E2;
  --ed-azul-principal: #005695;
  --ed-gris-900: #333333;
  --ed-gris-700: #4a4a4a;
  --ed-gris-500: #939393;
  --ed-gris-300: #c5c5c5;
  --ed-gris-200: #dedede;
  --ed-gris-100: #eaeaea;
  --ed-texto: #1a1a1a;
  --ed-texto-suave: #4a4a4a;
  --ed-radio: 4px;
  --ed-fuente: 'Encode Sans', 'Helvetica Neue', Arial, sans-serif;
}

.ed-chart,
.ed-chart *,
.ed-chart *::before,
.ed-chart *::after { box-sizing: border-box; }

.ed-chart { font-family: var(--ed-fuente); color: var(--ed-texto); line-height: 1.4; margin: 0 0 10px; text-align: left; clear: left; }

.ed-separador { width: 100%; border-top: 2px solid #dddddd; margin-top: 40px; margin-bottom: 10px; }
.ed-titulo { font-family: var(--ed-fuente); font-weight: 700; color: #000; font-size: 22px; line-height: 25px; max-width: 643px; margin: 0 0 10px; }
.ed-subtitulo { font-family: var(--ed-fuente); color: #181818; font-size: 14px; line-height: 20px; max-width: 643px; margin: 0 0 15px; }
.ed-fuente { font-family: var(--ed-fuente); color: var(--ed-gris-500); font-size: 12px; margin-top: 10px; }

.ed-chart .ed-svg { display: block; width: 100%; height: auto; overflow: visible; }

.ed-chart .ed-svg text { font-family: var(--ed-fuente); }
.ed-chart .ed-eje text { font-size: 14px; fill: var(--ed-gris-500); }
.ed-chart .ed-eje path { stroke-width: 0; }
.ed-chart .ed-eje line { stroke: var(--ed-gris-500); stroke-width: 1; }
.ed-chart .ed-eje-grid line { stroke: var(--ed-gris-300); stroke-width: 0.5; stroke-dasharray: 3; }

.ed-chart .ed-halo { stroke: #fff; stroke-width: 3px; stroke-opacity: 0.9; paint-order: stroke; }

.ed-chart .ed-highlight-layer rect,
.ed-chart .ed-highlight-layer circle,
.ed-chart .ed-highlight-layer path { fill: none; stroke: var(--ed-negro); stroke-width: 2px; }

.chart-sistema-electoral .se-barra { cursor: pointer; }

.chart-sistema-electoral .se-poblacion,
.chart-sistema-electoral .se-escanos { color: #fff; padding: 0 3px; }
.chart-sistema-electoral .se-poblacion { background-color: var(--ed-rojo); }
.chart-sistema-electoral .se-escanos { background-color: var(--ed-azul-principal); }

.chart-sistema-electoral .se-marca { color: #fff; padding: 0 3px; }
.chart-sistema-electoral .se-marca--oscuro { color: var(--ed-negro); }

.chart-sistema-electoral svg text { font-family: var(--ed-fuente); }
.chart-sistema-electoral .se-etiqueta-bloque { font-size: 12px; fill: #fff; pointer-events: none; }
.chart-sistema-electoral .se-etiqueta-serie { font-size: 13px; font-weight: 700; fill: var(--ed-negro); pointer-events: none; }
.chart-sistema-electoral .se-etiqueta-partido { font-size: 13px; font-weight: 700; pointer-events: none; }
.chart-sistema-electoral .se-etiqueta-dif { font-size: 13px; font-weight: 700; fill: var(--ed-negro); pointer-events: none; }
.chart-sistema-electoral .se-etiqueta-mapa { font-size: 12px; fill: var(--ed-negro); pointer-events: none; }
.chart-sistema-electoral .se-anotacion { font-size: 11px; fill: var(--ed-gris-700); pointer-events: none; }
.chart-sistema-electoral .se-clave-linea { stroke: var(--ed-gris-700); stroke-width: 1; pointer-events: none; }
.chart-sistema-electoral .se-eje-nombres text { font-size: 12px; fill: var(--ed-negro); }

.chart-sistema-electoral .se-scroll { width: 100%; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
.chart-sistema-electoral .se-scroll::-webkit-scrollbar { display: none; }
.chart-sistema-electoral .se-svg { display: block; overflow: visible; }
.chart-sistema-electoral .se-nombre-provincia { font-size: 13px; font-weight: 600; fill: var(--ed-gris-900); }
.chart-sistema-electoral .se-desliza { font-size: 12px; text-align: center; margin: 4px 0 8px; }
.chart-sistema-electoral .se-mano { width: 30px; vertical-align: middle; animation: se-shake 1.5s infinite; }
@keyframes se-shake { 50% { margin-left: 15px; } 100% { margin-left: 0; } }

.chart-sistema-electoral .se-leyenda-evolucion { display: flex; justify-content: center; margin: 0 0 6px; }
.chart-sistema-electoral .se-leyenda-evolucion text { font-size: 11px; fill: var(--ed-gris-700); }
.chart-sistema-electoral .se-leyenda-evolucion .se-leyenda-nombre { font-size: 13px; font-weight: 600; fill: var(--ed-gris-900); }
.chart-sistema-electoral .se-leyenda-evolucion .se-sobre { font-weight: 700; fill: var(--ed-azul-principal); }
.chart-sistema-electoral .se-leyenda-evolucion .se-infra { font-weight: 700; fill: var(--ed-rojo); }

.chart-sistema-electoral .se-leyenda { display: flex; align-items: center; gap: 6px; font-size: 13px; margin: 0 0 6px; }
.chart-sistema-electoral .se-muestra-raya { display: inline-block; width: 4px; height: 16px; background: var(--ed-negro); }
.chart-sistema-electoral .se-muestra-circulo { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--ed-negro); margin-left: 12px; }

.chart-sistema-electoral .se-tabla-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.chart-sistema-electoral .se-tabla { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 480px; }
.chart-sistema-electoral .se-tabla th { color: #9b9b9b; font-weight: 400; font-size: 11px; text-transform: uppercase; vertical-align: bottom; text-align: left; }
.chart-sistema-electoral .se-tabla td,
.chart-sistema-electoral .se-tabla th { padding: 6px; border-bottom: 1px solid #ddd; }
.chart-sistema-electoral .se-tabla .se-centro { text-align: center; }
.chart-sistema-electoral .se-col-partido { white-space: nowrap; }
.chart-sistema-electoral .se-col-barra { width: 50%; }
.chart-sistema-electoral .se-col-partido-pct { font-weight: 500; }
.chart-sistema-electoral .se-barra-votos { display: flex; align-items: center; height: 20px; min-width: max-content; padding: 2px 5px; }
.chart-sistema-electoral .se-boton {
  font-family: var(--ed-fuente); font-size: 13px; padding: 5px 12px; margin-top: 10px; border: 1px solid #cecece;
  border-radius: var(--ed-radio); background: #fff; color: #555; cursor: pointer;
}
.chart-sistema-electoral .se-boton:hover { background: var(--ed-gris-100); }

.chart-sistema-electoral .se-scrolly { position: relative; }
.chart-sistema-electoral .se-scrolly-aviso { font-size: 14px; color: var(--ed-gris-700); text-align: center; margin: 0 0 12px; }
.chart-sistema-electoral .se-scrolly-aviso span { font-size: 24px; vertical-align: middle; }
.chart-sistema-electoral .se-scrolly-figura { position: absolute; top: 0; left: 0; width: 100%; background: #fff; overflow: hidden; z-index: 0; }
.chart-sistema-electoral .se-scrolly-pasos { position: relative; z-index: 1; pointer-events: none; }

.chart-sistema-electoral .se-scrolly-paso { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 0 4%; }
.chart-sistema-electoral .se-scrolly-paso--derecha { justify-content: flex-end; }
.chart-sistema-electoral .se-scrolly-paso--centro { justify-content: center; }
.chart-sistema-electoral .se-scrolly-tarjeta {

  pointer-events: auto; max-width: 350px; padding: 10px 15px; background: #fff;
  border: 1px solid #d0cccc; border-radius: 0; box-shadow: 0 3px 3px 1px rgba(0, 0, 0, 0.11);
  font-size: 16px; line-height: 25px; color: #000;
}
.chart-sistema-electoral .se-scrolly-tarjeta p { margin: 0 0 8px; }
.chart-sistema-electoral .se-scrolly-tarjeta p:last-child { margin-bottom: 0; }

.chart-sistema-electoral .se-scrolly-paso:last-child { min-height: 120vh; min-height: 120svh; }

.chart-sistema-electoral .se-scrolly--ancho .se-scrolly-paso { justify-content: center; padding: 0 2%; }
.chart-sistema-electoral .se-scrolly--ancho .se-scrolly-tarjeta { width: 350px; }
.chart-sistema-electoral .se-scrolly:not(.se-scrolly--ancho) .se-scrolly-paso { align-items: flex-end; justify-content: center; padding: 0 12px 7vh; }
.chart-sistema-electoral .se-scrolly:not(.se-scrolly--ancho) .se-scrolly-tarjeta { max-width: 520px; width: 100%; font-size: 15px; line-height: 22px; }

.chart-sistema-electoral .se-linea { fill: none; stroke-width: 2.5; stroke-linejoin: round; }
.chart-sistema-electoral .se-linea-poblacion { stroke: var(--ed-rojo); }
.chart-sistema-electoral .se-linea-escanos { stroke: var(--ed-azul-principal); }
.chart-sistema-electoral .se-linea-etiqueta { font-size: 13px; font-weight: 700; pointer-events: none; }
.chart-sistema-electoral .se-linea-etiqueta-poblacion { fill: var(--ed-rojo); }
.chart-sistema-electoral .se-linea-etiqueta-escanos { fill: var(--ed-azul-principal); }
.chart-sistema-electoral .se-area-etiqueta { font-size: 14px; font-weight: 700; pointer-events: none; }
.chart-sistema-electoral .se-prov text { pointer-events: none; }
.chart-sistema-electoral .se-prov rect { cursor: pointer; }
.chart-sistema-electoral .se-prov-nombre.se-prov-nombre--bloque,
.chart-sistema-electoral .se-prov-nombre2 { font-size: 11px; font-weight: 400; fill: #fff; }
.chart-sistema-electoral .se-prov-cero { stroke: var(--ed-gris-500); stroke-width: 0.5; }
.chart-sistema-electoral .se-cero-ranking { stroke: var(--ed-negro); stroke-width: 1; }
.chart-sistema-electoral .se-prov-nombre { font-size: 11px; font-weight: 600; fill: var(--ed-gris-900); }
.chart-sistema-electoral .se-prov-nombre.se-prov-nombre--vacia { fill: var(--ed-gris-300); }
.chart-sistema-electoral .se-prov-nombre--grande { font-size: 16px; font-weight: 700; }
.chart-sistema-electoral .se-prov-valor { font-size: 12px; font-weight: 700; fill: var(--ed-negro); }

.chart-sistema-electoral .se-leyenda-mapa { width: 200px; margin: 0 0 6px; }
.chart-sistema-electoral .se-leyenda-titulo { font-size: 11px; text-transform: uppercase; color: var(--ed-gris-700); margin-bottom: 4px; }
.chart-sistema-electoral .se-leyenda-escala { display: flex; border: 1px solid var(--ed-gris-200); }
.chart-sistema-electoral .se-leyenda-escala span { flex: 1 1 auto; height: 10px; }
.chart-sistema-electoral .se-leyenda-labels { display: flex; justify-content: space-between; margin-top: 3px; font-size: 12px; color: var(--ed-gris-500); }

.chart-sistema-electoral .se-partido-fondo { pointer-events: none; }
.chart-sistema-electoral .se-partido-voto { pointer-events: none; }
.chart-sistema-electoral .se-partido-escano { cursor: pointer; }
.chart-sistema-electoral .se-partido-etiqueta { font-size: 13px; font-weight: 700; pointer-events: none; }
.chart-sistema-electoral .se-leyenda-partidos { font-size: 12px; fill: var(--ed-gris-700); }
.chart-sistema-electoral .se-guia-voto { stroke: var(--ed-negro); stroke-width: 1; stroke-dasharray: 3,3; }
.chart-sistema-electoral .se-grupos-leyenda-texto { font-size: 13px; font-weight: 700; fill: #fff; }

.chart-sistema-electoral .se-capa { position: absolute; top: 0; left: 0; }
.chart-sistema-electoral .se-capa-canvas,
.chart-sistema-electoral .se-capa-arriba { pointer-events: none; }
.chart-sistema-electoral .se-provincia-fondo { fill: #f0f0f0; stroke: #fff; stroke-width: 0.5; cursor: pointer; }
.chart-sistema-electoral .se-provincia-destacada { fill: none; stroke: var(--ed-negro); stroke-width: 1.5; }
.chart-sistema-electoral .se-provincia-etiqueta { font-size: 12px; font-weight: 700; fill: var(--ed-negro); }
.chart-sistema-electoral .se-provincia-linea { stroke: var(--ed-negro); stroke-width: 1; }
.chart-sistema-electoral .se-pila-titulo { font-size: 15px; font-weight: 700; fill: var(--ed-negro); }
.chart-sistema-electoral .se-columna-anio { font-size: 12px; fill: var(--ed-gris-500); }
.chart-sistema-electoral .se-columna-valor { font-size: 11px; font-weight: 700; fill: var(--ed-gris-700); }

.chart-sistema-electoral .se-congreso-bloque { margin: 0 0 14px; }
.chart-sistema-electoral .se-congreso-bloque:last-of-type { margin-bottom: 26px; }
.chart-sistema-electoral .se-congreso-titulo { font-size: 14px; color: var(--ed-negro); margin: 0 0 6px; }
.chart-sistema-electoral .se-congreso-titulo span,
.chart-sistema-electoral .se-congreso-nombre span { color: var(--ed-gris-700); }
.chart-sistema-electoral .se-congreso-fila { display: grid; grid-template-columns: 130px 1fr; align-items: center; column-gap: 10px; margin: 0 0 6px; }
.chart-sistema-electoral .se-congreso-nombre { font-size: 13px; color: var(--ed-negro); }
.chart-sistema-electoral .se-congreso { position: relative; display: flex; width: 100%; height: 32px; }

.chart-sistema-electoral .se-cong-seg { position: relative; height: 100%; flex: 0 0 auto; min-width: 0; border-radius: 3px; box-shadow: inset 1px 0 #fff, inset -1px 0 #fff; display: flex; align-items: center; justify-content: center; gap: 4px; overflow: hidden; white-space: nowrap; cursor: pointer; }
.chart-sistema-electoral .se-cong-seg--hover { outline: 1.5px solid var(--ed-negro); outline-offset: -1px; z-index: 2; }
.chart-sistema-electoral .se-cong-num { font-size: 12px; font-weight: 500; }
.chart-sistema-electoral .se-cong-lab { font-size: 12px; font-weight: 700; }
@media (max-width: 599px) {
  .chart-sistema-electoral .se-congreso-fila { grid-template-columns: 1fr; row-gap: 3px; margin-bottom: 8px; }
}
.chart-sistema-electoral .se-cong-176 { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--ed-negro); pointer-events: none; }
.chart-sistema-electoral .se-cong-176[data-label]::after { content: attr(data-label); position: absolute; top: calc(100% + 5px); left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--ed-gris-700); white-space: nowrap; }
.chart-sistema-electoral .se-puntos-etiqueta { font-size: 12px; font-weight: 700; }
.chart-sistema-electoral .se-partido-dif { font-weight: 400; fill: var(--ed-gris-700); }
