body {
  font-family: Arial, sans-serif;
  background: #142d4a;
}

.container {
  display: flex;
  max-width: 1200px;
  margin: auto;
}

#map {
  width: 70%;
}

#panel {
  width: 30%;
  background: white;
  padding: 1rem;
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
}

path {
  fill: #d1d5db;
  stroke: #fff;
  cursor: pointer;
  transition: fill 0.3s ease;
}

path:hover {
  fill: #9ca3af;
}

.bar {
  height: 12px;
  background: #3b82f6;
  margin: 6px 0;
}

/*DISEÑO LATERAL RESULTADOS*/
.header {
  width: 50%;
  background: linear-gradient(135deg, #586390 0%, #2a3c8c 100%);
  color: white;
  padding: 15px;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(216deg, #ac1414 0%, #2a3c8c 100%);
}

.header h1 {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 10px;
  text-transform: uppercase;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.header .subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  letter-spacing: 1px;
}
.provincia{
  background: linear-gradient(216deg, #ac1414 0%, #2a3c8c 100%);
  color: white;
  padding: 15px;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
#results{
  overflow-y: auto;
  height: 600px;
}
.results-container {
  background: white;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
  padding: 40px;
}

.result-item {
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  margin-bottom: 20px;
  border-radius: 15px;
  background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
  border-left: 5px solid;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.result-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.result-item:nth-child(1) {
  border-left-color: #991924;
}

.result-item:nth-child(2) {
  border-left-color: #e74c3c;
}

.result-item:nth-child(3) {
  border-left-color: #2ecc71;
}

.party-name {
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
  text-align: left;
  flex: 1;
}

.percentage {
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #2c3e50, #4a6491);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  min-width: 120px;
  text-align: right;
}

.percentage::after {
  content: '%';
  font-size: 1.5rem;
  margin-left: 2px;
}

.footer {
  margin-top: 30px;
  color: #7f8c8d;
  font-size: 0.9rem;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

/* Efectos decorativos */
.result-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.result-item:hover::after {
  transform: translateX(100%);
}
#map svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    max-width: 100%;
  }

  #map {
    width: 100%;
    min-height: 0vh;
  }

  .header {
    width: 90%;
    border-radius: 20px;
  }
  .header h1 {
    font-size: 2rem;
  }
  #results {
    overflow-y: auto;
    height: 485px;
  }
  .result-item {
    flex-direction: column;
    padding: 15px;
  }
  
  .party-name {
    margin-bottom: 15px;
    font-size: 15px;
  }
  
  .percentage {
    font-size: 1.8rem;
  }
  
  .results-container {
    padding: 20px;
  }
}