body {
  background-color: #f2f2f2;
}

.fondo {
  background-color: #5464f0;
  padding: 25px;
  align-items: center;
}
.contenido{
  max-width: 1330px;
}

.marco {
  background-color: #e5e4fb;
  align-items: center;
  text-align: center;
}

.titulo1 {
  font-family: 'Times New Roman', Times, serif;
}
.personas{
  font-family: 'Times New Roman', Times, serif;
  font-size: large;
}

th {
  font-size: large;
  font-family: Arial, Helvetica, sans-serif;
}

.texto1 {
  font-size: large;
  text-align: justify;
  margin-left: 40px;
  margin-right: 40px;
  font-family: 'Cambria', 'Cochin', Georgia, Times, 'Times New Roman', serif;
}

h1 {
  font-family: 'Times New Roman', Times, serif;
  text-align: center;
}

.ali {
  width: 60px;
}

.contenedor {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.item {
  height: 250px;
  width: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-family: sans-serif;
  font-weight: bold;
  box-shadow: 8px 8px 16px rgba(165, 177, 198, 0.8), -8px -8px 16px rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  text-align: center;
}

.item img {
  border-radius: 200px;
  width: 100px;
  height: 85px;
}

.item .cantidad {
  font-size: 1.5em;
  padding-bottom: 10px;
}

.item .seguidores {
  padding-bottom: 10px;
  font-size: 1em;
}



.mapa{
  height: 69rem;
  margin: 5px;

}

.contenedor {
    position: relative;
    width: 100%;
    height:100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 67rem;
}

.item {
    padding: 10px 20px;
    margin: 20px;
    background-color: #fff;
    border: 2px solid #800000;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    
    position: absolute; /* Position items absolutely */
}

.central {
    position: relative; /* Center node remains relative */
    z-index: 2; /* Ensure central node is above all other items */
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0; /* Ensure canvas is below items */
}





@media (max-width: 468px) {
  .item {
    position: relative;
}

.item:not(.central) {
    margin: 10px 0; /* Adjusted margin for closer spacing */
}


  .item .cantidad {
      font-size: 1.2em;
  }

  .item .seguidores h5 {
      font-size: 0.9em;
  }
}

@media (max-width: 576px) {
  .item {
      width: 150px;
      height: 180px;
  }
  .item {
    position: relative;
}

.item:not(.central) {
    margin: 0px 0;
}

  .item img {
      width: 60px;
      height: 50px;
  }

  .item .cantidad {
      font-size: 1em;
  }

  .item .seguidores h5 {
      font-size: 0.8em;
  }
}
@media (max-width: 600px) {
  .item {
      width: 100px;
      height: 160px;
  }

  .item img {
      width: 45px;
      height: 45px;
  }
  .contenedor {
    position: relative;
    width: 100%;
    height:100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 47rem;
}
.mapa{
  height: 50rem;
  width: 20rem;

}

}

@media (max-width: 375px) {
  .contenedor {
      flex-direction: column;
      align-items: center;
      width: 100%;
      height: 812px; /* Specific height for mobile */
  }

  .item {
      position: static;
      margin: 10px 0;
      z-index: 2;
  }
}

