:root {
  --yellow-secbyte: #fdd500;
  --blue1-secbyte: #04102b;
  --blue2-secbyte: #082256;
  --grey1-secbyte: #333333;
  --grey2-secbyte: #7f7f7f;
  --white-secbyte: #ffffff;
}

.cctv{
  height: 500px;
  padding: 50px 0;
  /* background: linear-gradient(180deg, rgba(253,213,0,1) 0%, rgba(255,255,255,1) 9%); */
  background-color: rgb(212, 212, 212);
  
}
.cctv__container {
  border: 5px solid var(--grey1-secbyte);
  background-color:var(--blue1-secbyte);
  border-radius: 40px;
  width: 90%;
  max-width: 1140px;
  height: 400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.cctv__left-content,
.cctv__right-content {
  /* border: 2px solid red; */
  overflow: hidden; /* esto evita que crezca un poco la caja y que la imagen haga caso al height*/
}

.cctv__right-content {
  display: flex;
  align-items: center;
  justify-content: center;

}

.cctv__box-articles {
  color: var(--white-secbyte);
  padding: 30px;
}

.cctv__box-articles p {
  color: var(--white-secbyte);
  padding: 0px 0;
  margin-top: 30px;
}

.cctv__lista {
  display: flex;
  height: 50px;
  width: 90%;
  margin: 0 auto;
  justify-content: center;
  list-style: none;
  padding: 0;
  gap: 15px;
  /* background-color: var(--grey1-secbyte); */
}

.cctv__lista li {
  display: flex;
  align-items: center;
  justify-content: center;

}

.cctv__lista a {
  /* background-color: rebeccapurple; */
  text-decoration: none;
  color: var(--white-secbyte);
  position: relative;
  display: block;
  font-family:'Sora', sans-serif;
  text-align: center;
  height: 100%;
}

.cctv__lista a::after {
  content: '';
  background-color: var(--yellow-secbyte);
  border-radius: 20px;
  position: absolute;
  width: 100%;
  height: 5px;
  left: 0;
  top: 100%;
  
  opacity: 0;
  transition: opacity 0.3s ease-in-out;


}

.cctv__lista li.selected a::after,
.cctv__lista a:hover::after {
  opacity: 1;
}
.selected{
  /* background-color: var(--blue2-secbyte); */
  background-color: transparent;
}

.cctv__image-box {
  height: 90%;
}

.cctv__image {
  height: 100%;
  width: 100%;
  object-fit: contain;
  border-radius: 10px;
}

/* animaciones */
.cctv__animation-entrada {
  animation: entrada 0.3s ease-in-out forwards;
}

.cctv__animation-salida {
  animation: salida 0.3s ease-in-out forwards;
}

@keyframes entrada {
  0% {
    transform: translateX(-30px);
    opacity: 0;
  }
  100% {
    transform: translateX(0px);
    opacity: 1;
  }
}

@keyframes salida {
  0% {
    transform: translateX(0px);
    opacity: 1;
  }
  100% {
    transform: translateX(30px);
    opacity: 0;
  }
}

@media (max-width: 992px) {
  .cctv {
    height: 600px;
  }
  .cctv__container {
    height: 500px;
    grid-template-columns: none;
    grid-template-rows: repeat(2, 1fr) ;
  }

  .cctv__left-content {
    order: 2;
  }

  .cctv__right-content {
    order: 1;
  }

  .cctv__box-articles {
    padding: 10px 20px 20px 20px;
    font-size: 15px;
  }
}

@media (max-width: 600px) {
  .cctv__lista span {
    font-size: 15px;
  }
  .cctv__lista {
    gap: 0;
  }
  .cctv__lista li {
    flex: 1;
  }

  .cctv__lista a {
    margin: 0;
  }

  .cctv__box-articles {
    padding: 15px 20px;
    font-size: 15px;
  }
  .cctv__box-articles h2 {
    font-size: 20px;
  }

  .cctv__box-articles p {
    color: var(--white-secbyte);
    padding: 0px;
    margin-top: 0px;
  }
}