.sectioncomunicados {
  position: relative;
}

.slider {
  width: 94%;
  padding: 30px 0 20px 0;
  height: auto;
  margin: auto;
  overflow: hidden;
}

.slider-container {
  display: flex;
  width: calc(240px * 16);
  transition: 0.9s all;
}

.slider:hover .animacion {
  animation-play-state: paused;
}

.div-Slider:hover {
  margin-top: -20px;
  box-shadow: 0 0 30px rgb(82 46 146 / 100%);
  animation-play-state: paused;
}

.animacion {
  animation: scroll 30s linear infinite;
  -webkit-animation: scroll 44s linear infinite;
}

@keyframes scroll {
  0% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
  100% {
    -webkit-transform: translateX(calc(-200px * 7));
    transform: translateX(calc(-200px * 7));
  }
}

.div-Slider {
  width: 354px;
  height: 460px;
  background-color: #ffffff;
  /* box-shadow: 0 0 20px rgba(0, 0, 0, 0.4); */
  padding: 20px;
  text-align: center;
  border-radius: 4%;
  display: table-cell;
  /* color: var(--bc); */
  border-style: groove;
  float: left;
  margin-left: 40px;
  margin-top: 20px;
  padding-top: 30px;
  cursor: pointer;
  transition: 1s all;
}

.miniatura {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.miniatura img {
  width: 100%;
  height: 170px;
  border-radius: 4%;
  /* box-shadow: 0px 0px 10px black; */
}

.comunicado-content {
  display: flex;
  justify-content: space-between;
}

.comunicado-txt h2 {
  font-size: 20px;
  color: #522e92;
  text-align: center;
  /* text-shadow: 2px 2px 4px #c0b9b9; */
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 2px;
}

.comunicado-txt h3 {
  font-size: 20px;
  color: #6c6b70;
  text-align: center;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 6px;
  /* text-shadow: 2px 2px 4px #999999; */
  height: 39px;
}

.comunicado-txt p {
  font-size: 14px;
  color: #000000;
  text-align: justify;
  /* text-shadow: 1px 1px 10px #000000; */
  font-weight: bold;
  height: 88px;
  display: grid;
  place-items: center;
}

.btn-comunicados {
  position: relative;
  display: inline-block;
  width: 140px;
  padding: 4px;
  text-decoration: none;
  box-shadow: 1px 4px 10px #522e92;
  border-radius: 8px;
  background: #be5a92;
}

.btn-comunicados:hover {
  background: #522e92;
  box-shadow: 1px 4px 10px #be5a92;
}

.btn-comunicados i {
  color: #fff;
  font-size: 14px;
}

.btn-comunicados:hover i {
  font-size: 15px;
}

/* TARJETAS ALADO DEL VIDEO */

.img-video {
  width: 100%;
  height: 100px;
}

/* CONTROLES SLIDE */

.controls {
  width: 60px;
  height: 42px;
  padding: 10px;
  border-radius: 0;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0);
}

.controls img {
  width: 100%;
  height: auto;
}

.c-left {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  margin-left: -20px;
}

.c-right {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  margin-right: -20px;
}

.carousel-comunicados {
  display: block;
  height: 52vh;
  margin-top: 66px;
  margin-bottom: -190px;
}

.card-comunicados {
  /* background-color: white; */
  border-radius: 6px 6px;
  position: absolute;
  width: 250px;
  height: 190px;
  padding: 12px;
  text-align: center;
  font-size: 10em;
  opacity: 0;
  will-change: transform, opacity;
  animation: carousel-comunicados 15s linear infinite; /* duration should be 3 multiplied by the total number of cards */
}

/* Increment animation delay by 3 for each card */
.card-comunicados:nth-child(1) {
  animation-delay: -3s;
}

.card-comunicados:nth-child(2) {
  animation-delay: 0;
}

.card-comunicados:nth-child(3) {
  animation-delay: 3s;
}

.card-comunicados:nth-child(4) {
  animation-delay: 6s;
}

.card-comunicados:last-child {
  animation-delay: 9s;
}

@keyframes carousel-comunicados {
  0% {
    transform: translateY(100%) scale(0.5);
    opacity: 0;
    visibility: hidden;
  }
  3%,
  20% {
    /* 3, 100/total number of cards */
    transform: translateY(100%) scale(0.7);
    opacity: 0.4;
    visibility: visible;
  }
  23%,
  40% {
    /* [(100/total number of cards) + 3], [(100/number of cards) * 2] */
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
  }
  43%,
  60% {
    /* [(100/total number of cards)*2 + 3], [(100/number of cards) * 3] */
    transform: translateY(-100%) scale(0.7);
    opacity: 0.4;
    visibility: visible;
  }
  63% {
    /* [(100/total number of cards) * 3] + 3 */
    transform: translateY(-100%) scale(0.5);
    opacity: 0;
    visibility: visible;
  }
  100% {
    transform: translateY(-100%) scale(0.5);
    opacity: 0;
    visibility: hidden;
  }
}

.projcard-container {
  margin: 20px 0;
}

.projcard-container,
.projcard-container * {
  box-sizing: border-box;
}

.projcard-container {
  margin-left: auto;
  margin-right: auto;
  width: 591px;
}

.projcard {
  position: relative;
  width: 100%;
  height: 190px;
  margin-bottom: 40px;
  border-radius: 10px;
  background-color: #fff;
  border: 2px solid #ddd;
  font-size: 18px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 21px -12px rgba(0, 0, 0, 0.66);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.projcard:hover {
  box-shadow: 0 34px 32px -33px rgba(0, 0, 0, 0.18);
  transform: translate(0px, -3px);
}

.projcard::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: linear-gradient(-70deg, #424242, transparent 50%);
  opacity: 0.07;
}

.projcard:nth-child(2n)::before {
  background-image: linear-gradient(-250deg, #424242, transparent 50%);
}

.projcard-innerbox {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.projcard-img {
  position: absolute;
  height: 186px;
  width: 310px;
  top: 0;
  left: 0;
  transition: transform 0.2s ease;
}

.projcard:nth-child(2n) .projcard-img {
  left: initial;
  right: 0;
}

.projcard:hover .projcard-img {
  transform: scale(1.05) rotate(1deg);
}

.projcard:hover .projcard-bar {
  width: 70px;
}

.projcard-textbox {
  position: absolute;
  top: 7%;
  bottom: 7%;
  left: 311px;
  width: calc(86% - 244px);
  font-size: 17px;
}

.projcard:nth-child(2n) .projcard-textbox {
  left: initial;
  right: 430px;
}

.projcard-textbox::before,
.projcard-textbox::after {
  content: "";
  position: absolute;
  display: block;
  background: #ff0000bb;
  background: #ffffff;
  top: -48%;
  left: -51px;
  height: 606px;
  width: 44px;
  transform: rotate(12deg);
}

.projcard:nth-child(2n) .projcard-textbox::before {
  display: none;
}

.projcard-textbox::after {
  display: none;
  left: initial;
  right: -55px;
}

.projcard:nth-child(2n) .projcard-textbox::after {
  display: block;
}

.projcard-textbox * {
  position: relative;
}

.projcard-title {
  font-family: "Voces", "Open Sans", arial, sans-serif;
  font-size: 22px;
  margin-top: 0px;
}

.projcard-subtitle {
  font-family: "Voces", "Open Sans", arial, sans-serif;
  color: #888;
  font-size: 14px;
  margin-top: 2px;
}

.projcard-bar {
  left: 10px;
  width: 40px;
  height: 5px;
  margin: 10px 0;
  border-radius: 5px;
  background-color: #424242;
  transition: width 0.2s ease;
}

.projcard-blue .projcard-bar {
  background-color: #522e92;
  margin-top: -1px;
}

.projcard-blue::before {
  background-image: linear-gradient(13deg, #fff, transparent 106%);
}

.projcard-blue:nth-child(2n)::before {
  background-image: linear-gradient(-250deg, #0088ff, transparent 50%);
}

.projcard-customcolor .projcard-bar {
  background-color: var(--projcard-color);
}

.projcard-customcolor::before {
  background-image: linear-gradient(
    -70deg,
    var(--projcard-color),
    transparent 50%
  );
}

.projcard-customcolor:nth-child(2n)::before {
  background-image: linear-gradient(
    -250deg,
    var(--projcard-color),
    transparent 50%
  );
}

.projcard-description {
  z-index: 10;
  font-size: 12px;
  color: #424242;
  height: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
  text-align: justify;
}

.projcard-tagbox button {
  bottom: 4%;
  font-size: 12px;
  cursor: default;
  user-select: none;
  padding: 6px 17px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  outline: none;
  background: #522e92;
  box-shadow: 0 4px 21px -12px rgba(0, 0, 0, 0.66);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  font-weight: 400;
  letter-spacing: 1px;
}

.projcard-tagbox button:hover {
  background-color: #220a4c !important;
}

.projcard-tagbox a {
  text-decoration: none;
  color: #ddd !important;
}

@media only screen and (min-width: 783px) and (max-width: 990px) {
  .projcard-container {
    width: 730px;
  }

  .carousel-comunicados {
    margin-top: 140px;
  }
}

@media only screen and (max-width: 600px) {
  .projcard-container {
    margin-top: 44px;
    width: 344px;
  }

  .card-comunicados {
    height: 220px;
  }

  .projcard-textbox {
    left: 107px;
    width: calc(100% - 113px);
    font-size: 12px;
  }

  .projcard-img {
    height: 190px;
    width: 246px;
  }

  .projcard {
    position: relative;
    width: 100%;
    height: 190px;
  }

  .projcard-textbox::before,
  .projcard-textbox::after {
    top: -50%;
    left: -24px;
    height: 653px;
    width: 178px;
    transform: rotate(8deg);
  }

  .projcard-title {
    font-size: 16px;
    font-weight: 700;
  }
  .projcard-subtitle {
    font-size: 12px;
  }
  .projcard-bar {
  }
  .projcard-description {
    font-size: 14px;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .projcard-tagbox button {
    font-size: 10px;
    padding: 4px 8px;
  }

  .slider {
    width: 80%;
  }

  .controls {
    width: 50px;
    height: 40px;
  }

  .c-left {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-left: -8px;
  }

  .c-right {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-right: -8px;
  }

  .carousel-comunicados {
    height: 62vh;
    margin-bottom: -55px;
  }

  @keyframes carousel-comunicados {
    0% {
      transform: translateY(100%) scale(0.5);
      opacity: 0;
      visibility: hidden;
    }
    3%,
    20% {
      /* 3, 100/total number of cards */
      transform: translateY(77%) scale(0.7);
      opacity: 0.4;
      visibility: visible;
    }
    23%,
    40% {
      /* [(100/total number of cards) + 3], [(100/number of cards) * 2] */
      transform: translateY(0) scale(1);
      opacity: 1;
      visibility: visible;
    }
    43%,
    60% {
      /* [(100/total number of cards)*2 + 3], [(100/number of cards) * 3] */
      transform: translateY(-77%) scale(0.7);
      opacity: 0.4;
      visibility: visible;
    }
    63% {
      /* [(100/total number of cards) * 3] + 3 */
      transform: translateY(-77%) scale(0.5);
      opacity: 0;
      visibility: visible;
    }
    100% {
      transform: translateY(-77%) scale(0.5);
      opacity: 0;
      visibility: hidden;
    }
  }
}
