body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  background-color: #ffffff;
  color:  #1b225f;
  overflow-x: hidden;
  margin-bottom: 5%;
}

p {
  line-height: 1.5;
}

/* header */

.navbar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  background-color: #ffffff;
  padding: 15px 0;
  width: 100%;
  /* position: fixed; */
}

.logo {
  width: 22vw;
  height: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  color:  #1b225f;
  text-decoration: none;
  font-size: 1.2vw;
  transition: color 0.3s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;            
  width: 0;                  
  height: 0.5px;               
  background-color: #606060; 
  transition: width 0.4s ease;
}

.nav-links a:hover::after {
  width: 100%;
}
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 25px;
  cursor: pointer;
  margin-bottom: 3%;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #1b225f;
  border-radius: 2px;
}


/* main */

.divBarra{
  width: fit-content;
  height: 4vh;
  overflow: hidden;
}
.barra{
    width: 100vw;
    height: 4vh;
    overflow: hidden;
  }

.timeline {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow-x: auto;  
  overflow-y: hidden;
  padding: 30px 0;
  display: flex;
  justify-content: flex-start;
  scroll-behavior: smooth; 
}

.timeline-title{
  display: flex;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5vw;
  margin-bottom: 2vh;
  color: #372e79;
}

.timeline-subtitle{
  display: flex;
  justify-content: center;
  font-weight: 400;
  font-size: 1.1vw;
  color: #1b225f;
  margin: 20px;
}

.timeline-track {
  display: flex;
  align-items: center;
  position: relative;
  width: max-content;
  padding: 0 20px;
}

.timeline-track::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  height: 4px;
  width: 100%;
  background-color:#1b225f;
  transform: translateY(-50%);
  z-index: 1;
}

.timeline-item {
  flex: 0 0 min(420px, 40vw);
  margin: 0 15px;
  text-align: center;
  z-index: 2;
  scroll-snap-align: start;
}


.timeline-item {
  scroll-snap-align: start;
}

.timeline-content {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: all 0.6s ease;
  opacity: 0;
  transform: translateY(50px);
}

.timeline-content.show {
  opacity: 1;
  transform: translateY(0);
}

.rojo{
  color: #ba6543;
  margin-bottom: 10px;
  font-size: 1.1vw;
}

.verde{
  color:  #46ba43;
  margin-bottom: 10px;
  font-size: 1.1vw;
}

.timeline-content p {
  color:  #1b225f;
  margin-bottom: 10px;
  font-size: 1vw;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}

.timeline-content:hover p,
.timeline-content.active p {
  opacity: 1;
  max-height: 900px;
  margin-top: 10px;
}

.timeline-periods {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  margin: 50px auto;
  flex-wrap: wrap;
  max-width: 1000px;
  margin-bottom: 0%;
  padding-bottom: 5rem;
}
.colores{
  display: flex;
  gap: 20px;
}

.period {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: "Poppins", sans-serif;
  background-color: #ffffff;
  border-radius: 10px;
  padding: 10px 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.period:hover {
  transform: translateY(-5px);
}

.period p {
  margin: 0;
  color:  #372e79;
  font-size: 1vw;
  text-align: center;
}

.brace {
  font-size: 40px;
  color: #46ba43;
  line-height: 1;
}
.aRojo{
  text-decoration: none;
}
.aRojo:hover{
  text-decoration:underline;
  color: #ba6543;
}
.aVerde{
  text-decoration: none;
}
.aVerde:hover{
  text-decoration:underline;
  color: #46ba43;
}
.info-btn {
  display: none;
  margin-top: 10px;
  background-color: #1b225f;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 4vw;
  cursor: pointer;
  transition: background 0.3s;
}

.info-btn:hover {
  background-color: #46ba43;
}

/* ——————————————————————————
   MAPA FILOSÓFICO
—————————————————————————— */
.mapa-test-wrapper {
  display: flex;
  width: 100%;
  gap: 30px;
  height: fit-content;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

#mapa-filosofos {
  margin-bottom: 200px;
  text-align: center;
  margin-bottom: 0;
}

.map-title {
  font-weight: 700;
  font-size: 1.3vw;
  margin-bottom: 8vh;
  color: #372e79;
  margin-left: 2vw;
}

/* Contenedor del mapa */
.map-container {
  position: relative;
  width: 100%;
  max-width: 650px;
  aspect-ratio: 1/1;
  margin: 0 auto;
}

/* Ejes */
.axis-y, .axis-x {
  position: absolute;
  background: #000;
}

.axis-y {
  width: 2px;
  height: 95%;
  left: 50%;
  top: 0;
}

.axis-x {
  height: 2px;
  width: 100%;
  top: 50%;
  left: 0;
}

/* Filósofos — más chicos */
.thinker {
  position: absolute;
  width: clamp(45px, 5vw, 80px);
  height: clamp(45px, 5vw, 80px);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.15);
  border: 2px solid #46ba43;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.thinker:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 25px rgba(0,0,0,0.25);
  border: 2px solid #46ba43;
}

.thinker img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Arriba izquierda */
.luxemburgo { top: 20%; left: 10%; }
.rawls      { top: 32%; left: 27%; }

/* Arriba derecha */
.mill       { top: 25%; left: 50%; }
.vaz        { top: 32%; left: 65%; }

/* Abajo izquierda */
.locke      { top: 50%; left: 27%; }
.nozick     { top: 60%; left: 10%; }

/* Abajo derecha */
.george     { top: 50%; left: 45%; }
.steiner    { top: 60%; left: 60%; }

/* Oculto en desktop */
.scroll-controls {
  display: none;
}

/* Etiquetas de ejes — más chicas y más lejos */
.axis-label {
  position: absolute;
  font-size: 0.8vw;
  font-weight: 500;
  color: #1b225f;
}

.top-label {
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
}

.bottom-label {
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.left-label {
  left: clamp(-80px, -12vw, -160px);
  top: calc(50% + 15px);
  transform: translateY(-50%);
  width: clamp(100px, 12vw, 160px);
  text-align: right;
}

.right-label {
  right: clamp(-80px, -12vw, -160px);
  top: calc(50% + 15px);
  transform: translateY(-50%);
  width: clamp(100px, 12vw, 160px);
  text-align: left;
}

.quad-label {
  position: absolute;
  font-weight: 700;
  font-size: 0.8vw;
  line-height: 1.2;
  white-space: pre-line;
}

.quad-1 { color: #E63946; top: 7%; left: 10%; }
.quad-2 { color: #E8A110; top: 7%; right: 10%; }
.quad-3 { color: #2563EB; bottom: 7%; left: 10%; }
.quad-4 { color: #22C55E; bottom: 7%; right: 10%; }

.tooltip {
  position: absolute;
  background: #ffffff;
  border: 1px solid #46ba43;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.8vw;
  width: 550px;
  max-width: none;
  line-height: 1.35;
  box-shadow: 0 6px 22px rgba(0,0,0,.18);
  display: none;
  z-index: 999;
  text-align: left;
  width: clamp(260px, 35vw, 480px); /* se achica o agranda según la pantalla */
  max-width: 90%;
}

.tooltip strong {
  display: block;
  font-size: 1vw;
}

.col-left{
  width: 70vw;
  display: flex;
  justify-content: center;
  height: fit-content;
}
.col-right {
  width: 30vw;
  display: flex;
  justify-content: center;
}

#auto-test {
  width: 90%;
  max-width: 500px;
  text-align: left;
  margin-top: 12vh;
}

#auto-test h2 {
  font-size: 1.3vw;
  margin-bottom: 20px;
  color: #372e79;
}
#auto-test h3 {
  font-size: 1.1vw;
  color: #372e79;
}

#auto-test select {
  width: 100%;
  margin: 12px 0 25px;
  padding: 12px 14px;
  font-size: 1vw;
  border-radius: 8px;
  border: 1px solid #1b225f;
  background: #ffffff;
  color: #372e79;
  appearance: none;
  cursor: pointer;
  transition: 0.3s ease;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='%231b225f' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

#auto-test select:hover {
  border-color: #46ba43;
}

#auto-test select:focus {
  outline: none;
  border-color: #46ba43;
  box-shadow: 0 0 0 3px rgba(70,186,67,0.25);
}

/* Opciones */
#auto-test select option {
  padding: 10px;
  background: #ffffff;
  color: #1b225f;
  font-size: 1vw;
}

#btn-result {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border-radius: 8px;
  background: #1b225f;
  border: none;
  color: white;
  font-size: 1vw;
  cursor: pointer;
  transition: 0.3s;
  font-family: "Montserrat", sans-serif;
}

#btn-result:hover {
  background: #46ba43;
}

#resultado {
  margin-top: 20px;
  font-weight: 600;
  line-height: 1.4;
}
.dropdown {
  position: relative;
  width: 100%;
  margin: 12px 0 25px;
  font-size: 1vw;
}

.dropdown-selected {
  background: white;
  border: 1px solid #1b225f;
  border-radius: 8px;
  padding: 12px 14px;
  cursor: pointer;
  transition: 0.3s;
  position: relative;
}

.dropdown-selected::after {
  content: "▾";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #1b225f;
}

.dropdown-selected:hover {
  border-color: #46ba43;
}

.dropdown-options {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #1b225f;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  padding: 6px 0;
  list-style: none;
  max-height: 230px;
  overflow-y: auto;
  z-index: 1000;
}

.dropdown-options li {
  padding: 10px 14px;
  cursor: pointer;
  transition: 0.2s;
}

.dropdown-options li:hover {
  background: #e8f6ec;
  color: #1b225f;
}


.highlight-thinker {
  transform: scale(1.25) !important;
  box-shadow: 0 0 22px rgba(70,186,67,0.6) !important;
  border-color: #46ba43 !important;
}

.highlight-label {
  background: rgba(70,186,67,0.18);
  padding: 6px 10px;
  border-radius: 6px;
}
.select-box {
  position: relative;
  width: 100%;
  margin: 12px 0 25px;
  font-size: 1vw;
}

.select-selected {
  background: white;
  border: 1px solid #1b225f;
  border-radius: 8px;
  padding: 12px 14px;
  cursor: pointer;
  transition: 0.3s;
  position: relative;
}

.select-selected::after {
  content: "▾";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #1b225f;
}

.select-selected:hover {
  border-color: #46ba43;
}

.select-options {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #1b225f;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  padding: 6px 0;
  list-style: none;
  z-index: 999;
}

.select-options li {
  padding: 10px 14px;
  cursor: pointer;
  transition: 0.2s;
}

.select-options li:hover {
  background: #e8f6ec;
}

#simulador-redistributivo {
  padding: 3rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

#simulador-redistributivo .sim-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #372e79;
}

#simulador-redistributivo .sim-header p {
  max-width: 720px;
  line-height: 1.5;
}

.sim-controles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.sim-control-block h3 {
  margin-bottom: 0.75rem;
}

.sim-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sim-btn {
  border: 1px solid #d0d4e8;
  background: #ffffff;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.sim-btn:hover {
  background: #f2f4ff;
}

.sim-btn.active {
  background: #1b225f;
  color: #ffffff;
  border-color: #1b225f;
  box-shadow: 0 4px 12px rgba(27, 34, 95, 0.2);
}

.sim-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.5fr);
  gap: 1.5rem;
}

.sim-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(55, 46, 121, 0.06);
  padding: 1.25rem 1.5rem;
}

.sim-card h3 {
  margin-top: 0;
  margin-bottom: 0.25rem;
  color: #372e79;
}

.sim-subtitle {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1rem;
}

.sim-note {
  display: block;
  font-size: 0.8rem;
  color: #777;
}

.sim-delta {
  margin-top: 0.7rem;
  font-weight: 600;
}

.sim-delta--mejor {
  color: #0c8a4b;
}

.sim-delta--peor {
  color: #c13535;
}

/* ============================
   ESTILO INSTITUCIONAL GINI
   ============================ */

.gini-container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 5vh;
}

/* Panel izquierdo: sobrio y serio */
.gini-panel {
  background: #ffffff;
  border: 1px solid #e0e4ee;
  border-radius: 6px;
  padding: 1.5rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.gini-panel h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #1b225f;
  font-weight: 600;
}

.gini-panel p {
  margin: 0.25rem 0;
  font-size: 0.95rem;
  color: #1b225f;
}

.gini-delta-text {
  margin-top: 0.7rem;
  font-size: 1rem;
  font-weight: 600;
}

/* Gráfica Gini */
.gini-chart {
  background: #ffffff;
  border: 1px solid #e0e4ee;
  border-radius: 6px;
  padding: 1.5rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.gini-chart canvas {
  width: 100% !important;
  max-height: 360px;
}

/* Caja explicativa institucional */
.gini-info {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: #f5f7fb;
  border-left: 4px solid #1b225f;
  border-radius: 4px;
}

.gini-info h4 {
  color: #1b225f;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.gini-info p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #1b225f;
}

#gini-delta.sim-delta--mejor,
.sim-delta--mejor#gini-delta {
  color: #067743 !important;
  font-weight: 600;
}

#gini-delta.sim-delta--peor,
.sim-delta--peor#gini-delta {
  color: #b3261e !important;
  font-weight: 600;
}


@media screen and (max-width: 768px) {

body {
  margin: 0;
  font-family: "Monserrat", sans-serif;
  background-color: #ffffff;
  overflow-x: hidden;
  width: 100vw;
}

main{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100vw;
}

/* header */
.navbar {
  flex-direction: column;
  align-items: stretch;
  position: relative;
  margin-top: 3%;
  margin-bottom: 3%;
}

.nav-top {
  display: flex;
  justify-content: center; 
  align-items: center;
  position: relative;
  width: 100%;
  padding-top: 10px;
  padding-bottom: 10px;
}

.logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: auto;
  z-index: 1;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 18px;
  cursor: pointer;
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #1b225f;
  border-radius: 2px;
}

.nav-links {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  background-color: #ffffff;
  padding: 15px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 100;
}

.nav-links a {
  position: relative;
  color:  #1b225f;
  text-decoration: none;
  font-size: 5vw;
  transition: color 0.3s;
}

.nav-links.active {
  display: flex;
  margin-top: 3%;
}

/* TIMELINE */
.timeline {
  overflow-x: hidden;
  overflow-y: visible;
  width: 100%;
  max-width: 100%;
  padding: 0;
}

.timeline-title{
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 5vh;
  margin-top: 10vh;
}
.timeline-subtitle{
  margin-bottom: 7vh;
  font-size: 4.5vw;
}
.timeline-content p {
  font-size: 3.5vw;
}
.timeline-track {
  display: block;
  position: relative;
  padding: 0;
}

.timeline-track::before {
  left: 10px;
  top: 0;
  width: 4px;
  height: 100%;
  transform: none;
  left: 20px;
}

.timeline-item {
  flex: none;
  margin: 40px 0 0 20px;
  margin-bottom: 5vh;
  text-align: left;
}

.timeline-content {
  width: 90vw;
  padding: 0%;
  padding: 5px 18px;
  box-sizing: border-box;
}

.timeline-periods {
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-bottom: 0;
  margin-bottom: 7vh;
}

.period {
  width: 90%;
  justify-content: space-between;
}

.brace {
  font-size: 6vw;
}

.info-btn {
  display: inline-block;
  margin-top: 0%;
  font-size: 3vw;
}

.period p {
  font-size: 4vw;
}

.rojo{
  color: #ba6543;
  font-size: 4vw;
}

.verde{
  color:  #46ba43;
  font-size: 4vw;
}

.timeline-content:hover p {
  opacity: 0;
  max-height: 0;
  margin-top: 0;
}

.timeline-content.active p {
  opacity: 1;
  max-height: 500px;
  margin-top: 10px;
}

.colores{
  display: flex;
  flex-direction: column;
  gap: 0px;
}


/* ----------------------------
   MAPA FILOSÓFICO (MOBILE)
-----------------------------*/

.mapa-test-wrapper {
  flex-direction: column;
  align-items: center;
  gap: 60px;
  padding: 30px 0;
  padding-bottom: 0;
}

.map-title {
  font-size: 5vw;
}

.col-left {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  display: block;
}


.map-container {
  width: 180vw;
  height: 180vw;
  position: relative;
  overflow: visible;
  margin: 0 auto;
}

.scroll-controls {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
  display: flex;
}

.scroll-btn {
  background: #1b225f;
  color: white;
  font-size: 4vw;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.scroll-btn:active {
  background: #46ba43;
}

.fake-scrollbar {
  flex: 1;
  height: 4px;
  background: #dcdcdc;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  margin-left: 5px;
  margin-right: 5px;
}

.fake-thumb {
  height: 100%;
  width: 40%;
  background: #1b225f;
  border-radius: 4px;
  position: absolute;
  left: 0;
  top: 0;
  transition: left 0.1s linear;
}

.map-inner {
  width: 180vw;
  height: 180vw;
  position: relative;
}

.axis-y {
  position: absolute;
  width: 3px;
  height: 100%;
  left: 50%;
  top: 0;
  background: #000;
  z-index: 2;
  top: 12%;
  height: 75%;
}

.axis-x {
  position: absolute;
  height: 3px;
  width: 100%;
  top: 50%;
  left: 0;
  background: #000;
  z-index: 2;
}


.thinker {
  width: 70px;
  height: 70px;
}

.luxemburgo { top: 20%; left: 10%; }
.rawls      { top: 35%; left: 25%; }

.mill       { top: 25%; left: 50%; }
.vaz        { top: 33%; left: 70%; }

.locke      { top: 52%; left: 25%; }
.nozick     { top: 65%; left: 5%; }

.george     { top: 52%; left: 48%; }
.steiner    { top: 65%; left: 62%; }

/* Labels */
.axis-label {
  font-size: 3.5vw;
  width: 150px;
}

/* Mejor ubicación para que no se corten */
.top-label { top: 3%; left: 50%; transform: translateX(-50%); }
.bottom-label { bottom: 3%; left: 50%; transform: translateX(-50%); }

.left-label { left: 1vw; top: 52%; transform: translateY(-50%); }
.right-label { right: 1vw; top: 52%; transform: translateY(-50%); }

/* Cuadrantes */
.quad-label {
  font-size: 3.5vw;
}

.quad-1 { top: 12%; left: 8%; }
.quad-2 { top: 12%; right: 8%; }
.quad-3 { bottom: 12%; left: 8%; }
.quad-4 { bottom: 12%; right: 8%; }

/* Tooltip */
.tooltip {
  width: 240px;
  padding: 12px;
  font-size: 3.2vw;
}

/* AUTO-TEST */
.col-right{
  width: 100vw;
}
#auto-test {
  width: 90%;
  max-width: none;
  margin-bottom: 50px;
  margin-top: 0;
  text-align: left;
}

#auto-test h2 {
  font-size: 6vw;
  margin-bottom: 20px;
}
#auto-test h3 {
  font-size: 4vw;
}

.select-selected {
  font-size: 4vw;
  padding: 12px;
}

.select-options li {
  font-size: 4vw;
  padding: 10px;
}

#btn-result {
  font-size: 4vw;
  padding: 12px;
}

#resultado {
  margin-top: 20px;
  font-size: 4vw;
  line-height: 1.35;
}

/* ----------------------------
---------SIMULADOR------------- */

  /* Contenedor general del simulador */
  #simulador-redistributivo {
    width: 100%;
    padding: 0 1rem;               /* ← ESPACIADO LATERAL */
    box-sizing: border-box;
    margin-top: 5vh;
  }

  /* Controles IVA / IRPF */
  .sim-controles {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0 0;                  /* ya tienen padding por contenedor padre */
    box-sizing: border-box;
  }

  /* Bloque de botones */
  .sim-control-panel {
    width: 100%;
    box-sizing: border-box;
  }

  /* Layout de gráficos */
  .sim-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    box-sizing: border-box;
  }

  /* Cada tarjeta del simulador */
  .sim-card {
    width: 100%;
    padding: 1rem;                 /* ← NO usar 100vw */
    margin: 0;
    box-sizing: border-box;
  }

  .sim-card canvas {
    width: 100% !important;
    height: 320px !important;
  }

  /* Gini */
  .gini-container {
    grid-template-columns: 1fr;
    width: 100%;
    padding: 0;                    /* Se apoya en padding del contenedor general */
    box-sizing: border-box;
  }

  .gini-chart canvas {
    height: 300px !important;
  }
}