
/* HOME 29N - SIMULADOR NACIONAL */

/* PESTAÑAS CONGRESO Y SENADO */

.electoral-tabs {
  display: flex;
  gap: 8px;
  padding: 0 24px 16px;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

.electoral-tab {
  padding: 12px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #f8fafc;
  color: #475569;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: all .2s ease;
}

.electoral-tab:hover {
  border-color: #79183d;
  color: #79183d;
}

.electoral-tab.active {
  background: #79183d;
  color: white;
  border-color: #79183d;
}

/* BOTONES 2023 Y HOY */

.electoral-period-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  flex-wrap: wrap;
}

.electoral-period-row strong {
  font-size: 1.04rem;
}

.electoral-period-row p {
  font-size: .84rem;
  color: #64748b;
  max-width: 640px;
  margin-top: 5px;
}

.electoral-period-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #f1f5f9;
  border-radius: 10px;
}

.electoral-period {
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #475569;
  padding: 10px 18px;
  font: inherit;
  font-size: .86rem;
  font-weight: 800;
  cursor: pointer;
}

.electoral-period.active {
  background: #79183d;
  color: white;
}

/* VISTAS DEL SIMULADOR */

.electoral-content-view[hidden],
.electoral-pending-view[hidden] {
  display: none !important;
}

.electoral-pending-view {
  text-align: center;
  padding: 65px 24px 75px;
  border-top: 1px solid #e2e8f0;
  background: linear-gradient(
    180deg,
    #ffffff,
    #f8fafc
  );
}

.pending-symbol {
  font-size: 42px;
  color: #79183d;
}

.electoral-pending-view h3 {
  font-size: 1.4rem;
  margin: 10px 0;
}

.electoral-pending-view p {
  max-width: 550px;
  margin: 10px auto;
  color: #475569;
  line-height: 1.7;
}

.electoral-pending-view .pending-note {
  font-size: .78rem;
  color: #64748b;
}

/* LABORATORIO INTERACTIVO */

.district-analysis-heading {
  display: block;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 28px 30px;
  margin: 15px 0 0;
}

.district-analysis-heading .scenario-eyebrow {
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .1em;
  color: #79183d;
  margin-bottom: 9px;
}

.district-analysis-heading h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.25;
  margin-bottom: 10px;
}

.district-analysis-heading p {
  max-width: 800px;
  font-size: .92rem;
  line-height: 1.7;
  color: #475569;
}

/* INSTRUCCIONES */

.scenario-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.scenario-steps span {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: .81rem;
  font-weight: 700;
  color: #334155;
}

.scenario-steps b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #79183d;
  color: white;
  border-radius: 50%;
  width: 23px;
  height: 23px;
  font-size: .75rem;
}

.config-panel,
.parties-panel {
  border-radius: 14px;
}

.home-intro {
  justify-content: flex-start;
}

.home-intro > div {
  max-width: 960px;
}

/* MÓVIL */

@media (max-width: 650px) {
  .electoral-tabs {
    padding: 0 15px 15px;
  }

  .electoral-tab {
    flex: 1;
    padding: 11px;
    font-size: .8rem;
  }

  .electoral-period-row {
    padding: 18px 15px;
  }

  .district-analysis-heading {
    padding: 22px 18px;
  }

  .scenario-steps {
    flex-direction: column;
  }

  .scenario-steps span {
    width: 100%;
  }
}
