

* {
  box-sizing: border-box;
}
body {
  overflow-x: hidden;
}

svg {
    font-family: 'Titillium Web', sans-serif;
      width: 100%;
      height: auto;
      position: relative;}

svg text {
  font-family: 'Titillium Web', sans-serif;
}
.axis-y path{
      display: none;
    }
.axis-y line {
  stroke: #f2f2f2;
}
.col-12 { position: relative;}
.axis-y .tick:nth-child(even) {
  display: none;
}
.viz_tooltip {
      font-family: 'Titillium Web', sans-serif;
      position: absolute;
      background: #333;
      color: #fff;
      padding: 6px 10px;
      border-radius: 4px;
      font-size: 12px;
      pointer-events: none;
      display: none;
      z-index: 100000; /* 👈 para que esté por encima del SVG */
    }
/* Scroll */
#scroll_container_comic {
  width: 100vw;
  height: 100vh;
  padding: 50px;
  overflow-x: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #132531;
}
#comic_container {
  position: relative;
  overflow: hidden;
  max-height: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: minmax(250px, 400px) minmax(250px, 400px) minmax(
      250px,
      400px
    );
  grid-template-rows: 1fr 1fr;
  place-content: center;
  gap: 50px;
}
.comic_card {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.comic_card img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}
.container_texts_abs {
  position: absolute;
  width: 50%;
  top: 0;
  bottom: 0;
  right: 0;
  margin: auto;
  padding: 0 50px;
}
.container_texts {
  position: relative;
  height: 100%;
  width: 100%;
}
.container_text {
  position: absolute;
  bottom: 20%;
  margin: 0;
  padding: 0;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.text_comic {
  position: relative;
  width: 90%;
  height: auto;
  padding: 20px;
  margin: 0;
  background: white;
  box-shadow: 1px 12px 33px rgba(0, 0, 0, 0.5);
}
.text_comic:before {
  border: 25px solid white;
  content: "";
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-right-color: transparent;
  position: absolute;
  bottom: calc(50% - (25px / 2));
  left: -46px;
  transform: rotate(90deg);
}
.container_text--end {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}
.text_comic--end {
  position: relative;
  width: 90%;
  padding: 50px;
  margin: 0;
  background: white;
  font-size: 18px;
  text-align: center;
  font-weight: 600;
  box-shadow: 1px 12px 33px rgba(0, 0, 0, 0.3);
  border-radius: 5px;
}
@media (max-width: 960px) {
  #scroll_container_comic {
    padding: 0;
  }
  #comic_container {
    grid-template-columns: minmax(100px, 300px) minmax(100px, 300px);
    grid-template-rows: 1fr 1fr 1fr;
    column-gap: 50px;
    row-gap: 30px;
  }
  .container_texts_abs {
    position: absolute;
    width: 100%;
    height: 50%;
    bottom: 50%;
    margin: auto;
    padding: 0 50px;
  }
  .text_comic {
    font-size: 16px !important;
    width: 100%;
    padding: 5px;
  }
  .text_comic:before {
    bottom: -46px;
    left: calc(50% - (25px));
    transform: rotate(0deg);
  }
  .text_comic--end {
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  #scroll_container_comic {
    padding: 15px;
  }
  #comic_container {
    grid-template-columns: minmax(100px, 248px) minmax(100px, 248px);
  }
  .text_comic {
    font-size: 12px !important;
  }
  .text_comic--end {
    font-size: 14px;
  }
}
