/** speakers **/
.speakers {
  background-color: var(--nerd-mustard);
  background-image: linear-gradient(to right, hsl(0deg 0% 0% / 15%), hsl(0deg 0% 0% / 15%) 20px, var(--nerd-mustard) 20px, var(--nerd-mustard));
  background-size: 40px 100%;
  border: 2rem solid var(--nerd-mustard);
  margin-block-start: -5px;
  overflow: clip;
  padding: 2rem;
  position: relative;
}

.speakers::before {
  background: url(../img/texture-3.png) repeat;
  background-size: 80%;
  content: "";
  mix-blend-mode: overlay;
  opacity: .7;
  pointer-events: none;
  position: absolute;
  top: -2rem;
  left: -2rem;
  height: calc(100% + 4rem);
  width: calc(100% + 4rem);
}

.speakers .flex-wrapper {
  align-items: flex-start;
  gap: 2rem;
}

.speakers h2 {
  color: black;
  font-size: 11rem;
  hyphens: manual;
  letter-spacing: -.01em;
  line-height: .9;
  word-break: break-word;
}

.mapamundi {
  margin: 4rem 0 0 4rem;
  mix-blend-mode: multiply;
}

.speakers-col-right {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  flex: 1 1 50%;
  max-width: 800px;
}

.speaker-box {
  color: black;
  font-family: var(--title-font);
  line-height: 1;
  text-align: center;
}

.speaker-box .speaker-info {
  background-image: url(../img/img-tornillos.svg);
  background-color: rgba(255, 255, 255, 0.35);
  /* Fondo blanco con transparencia */
  background-blend-mode: lighten;
  /* Esto puede asegurar que el color de fondo se mezcle con la imagen */
  background-repeat: repeat-x;
  background-position: -376% center;
  background-size: 90% 90%;
  border: 1px solid black;
  border-radius: .5rem;
  margin-block-start: .5rem;
  min-height: 110px;
  padding: .5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.speaker-info h3,
.speaker-info p {
  text-transform: lowercase;
  font-size: 1.2rem;
  margin: 0;
  max-width: 28ch;
  width: 100%;
}

.speaker-info h3 {
  margin-block: -.1rem .2rem;
}

.speaker-info p {
  font-family: "Roboto", sans-serif;
  font-size: .8rem;
  line-height: 1.1;
  opacity: .8;
  text-align: center;
  text-transform: none;
}

.speaker-pic {
  background: #ff8e0082 url(../img/texture-paper.png) no-repeat center;
  clip-path: polygon(5px 5px, 240px 0px, 240px 292px, -1px 274px);
  filter: drop-shadow(2px 2px 3px #663a06);
}

.speaker-pic-img {
  min-height: 280px;
  min-width: 200px;
  object-fit: cover;
  opacity: 1.8;
  padding: .8rem .5rem;
}

.speaker-box:nth-child(odd) .speaker-pic {
  transform: rotate(-3deg);
  transition: transform ease-in .2s;
}

.speaker-box:nth-child(even) .speaker-pic {
  transform: rotate(1deg);
  transition: transform ease-in .2s;
}

.speaker-box .speaker-pic:hover {
  transform: rotate(-1deg);
}

.caution {
  animation: rotateUp ease-out forwards;
  animation-timeline: view();
  animation-range: 0 50%;
  will-change: transform;
}

.mapamundi {
  animation: opacityIn ease-out forwards;
  animation-timeline: view();
  animation-range: 0 50%;
  will-change: opacity;
}

.committee-top {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-block-end: 1rem;
  padding: 0 2rem 2rem 5rem;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  letter-spacing: -0.02em;
  padding-inline-start: 8rem;
  margin-left: auto;
}

.legend span {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: .2rem;
}

.legend span:hover,
.legend span.active {
  text-decoration: underline;
}

.legend-tracks {
  background-color: var(--nerd-mustard);
  padding: 10px;
}

.legend-tracks a {
  align-items: center;
  color: initial;
  display: inline-flex;
  gap: .3rem;
  justify-content: space-between;
  line-height: 1;
  text-decoration: none;
}

.legend-tracks a:hover {
  text-decoration: underline;
}

@keyframes rotateUp {
  from {
    opacity: 0;
    transform: rotate(30deg);
  }

  to {
    opacity: 1;
  }
}

@keyframes opacityIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media screen and (max-width: 64em)
/* 1024 */
  {
  .mapamundi {
    position: absolute;
    top: 6rem;
    right: 0;
  }

  .caution {
    position: absolute;
  }
}

@media screen and (max-width: 48em)
/* 768px */
  {
  .speakers h2 {
    font-size: 8rem;
  }

  .mapamundi {
    top: auto;
    bottom: 0;
    right: -2rem;
  }
}

@media screen and (max-width: 40em)
/* 600px */
  {
  .speakers {
    border-width: 1rem;
    padding: 2rem 0;
  }

  .speakers h2 {
    font-size: 5.5rem;
  }

  .mapamundi {
    display: none;
  }

  .speakers-col-right {
    gap: 1rem;
    justify-content: center;
  }

  .speaker-box {
    width: 46%;
  }

  .speaker-pic-img {
    min-height: 220px;
    min-width: 140px;
    width: 100%;
  }
}

@media screen and (min-width: 64em)
/* 1024 */
  {
  .speakers h2 {
    max-width: 3ch;
  }
}