/* **********/
.cat-card {
  background-color: transparent;
  width: 320px;
  height: 350px;
  perspective: 1000px;
  margin-bottom: 30px;
}

.cat-card-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin: 0;
  padding-bottom: 12px !important;
}

.cat-card-inner-card {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.cat-card:hover .cat-card-inner-card {
  transform: rotateY(180deg);
}

.cat-card-link,
.cat-card-link:visited {
  color: #fff !important;
  text-decoration: none;
}

.cat-card-link:hover {
  text-decoration: underline;
}

.show-all {
  position: absolute;
  bottom: 20px;
  right: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.show-all img {
  margin-left: 10px;
}

.front-side,
.back-side {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border: 2px solid rgba(255, 255, 255, 1);
  border-radius: 1rem;
  color: white;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  font-weight: 700;
  font-size: 1.5rem;
  text-shadow: 0 0 13px rgba(0, 0, 0, .7)
}

.front-side,
.front-side::before {
  background-size: cover;
  background-position: center center;
}

.back-side,
.back-side::before {
  justify-content: start;
  background: var(--gradient-green-0);
  font-size: 1rem;
  font-weight: 500;
  text-shadow: 0 0 13px rgba(0, 0, 0, 0.1);
}

.back-side .title {
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  display: block;
  text-align: center;
  color: var(--color-yellow);
  font-weight: 700;
  font-size: 1.1rem;
}

.title-flex-center {
  height: 200px !important;
  height: 80% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.back-side .card-arrow {
  position: absolute;
  bottom: 15px;
  right: 15px;
}

.back-side ul {
  text-align: left;
  margin-left: 15%;
  padding: 0;
  height: 200px;
  width: 80%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  /* Alinea los elementos en columna */
  justify-content: center;
  /* Centra los elementos verticalmente */
}

.back-side li {
  line-height: 2rem;
  padding-left: 30px;
  list-style-type: none;
  width: 100%;
  background: url('../img/layout/check.svg') no-repeat left center;
  background-size: 34px 34px;
  display: block;
  /* Asegura que los elementos <li> se comporten como bloques */
}

.back-side {
  transform: rotateY(180deg);
}

.front-side::before,
.back-side::before {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 1em;
  animation: animate 5s linear infinite;
}

@keyframes animate {
  0% {
    opacity: 0.3;
  }

  80% {
    opacity: 1;
  }

  100% {
    opacity: 0.3;
  }
}

.card {
  position: relative;
  display: flex;
  align-items: start;
  justify-content: start;
  width: 320px;
  height: 350px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  padding: 32px;
  overflow: hidden;
  border-radius: 10px;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
  margin-bottom: 30px;
  background: linear-gradient(0deg, #eee, #fff);
}

.card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
  flex-basis: 100%;
  width: 100%;
  font-size: 14px;
  line-height: 24px;
}

.card-content .card-date {
  position: absolute;
  right: 16px;
  top: 10px;
  color: #888;
  font-size: .8rem;
}

.card-content .heading {
  font-weight: 700;
  font-size: 17px;
  line-height: 20px;
  color: #666;
}

.card-content .card-body {
  height: 210px;
  width: 100%;
  overflow: hidden;
}

.card-content .card-image {
  width: 100%;
  height: 100px;
  background-position: center center;
  background-size: cover;
  margin-top: 10px;
  transition: all .3s linear;
  opacity: .7;
  border-radius: 4px;
}

.card-content .card-text {
  line-height: 21px;
  color: #555;
}

.card-content .btn {
  color: #e8e8e8 !important;
  text-decoration: none;
  padding: 10px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: var(--gradient-green-0);
  border-radius: 5px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  position: absolute;
  bottom: 20px;
  right: 20px;
}

.news-card-arrow {
  width: 16px;
  margin-left: 10px;
}

.card-content::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 5px;
  height: 100%;
  background: var(--gradient-yellow-0);
  z-index: -1;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
}

.card-content:hover::before {
  width: 100%;
}

.card-content:hover {
  box-shadow: none;
}

.card-content:hover .btn {
  color: #212121 !important;
  background: #e8e8e8;
}

.card-content:hover .card-image {
  opacity: 1;
}

.card-content:hover .heading {
  color: var(--color-green)
}

.card-content:hover .card-date {
  color: #444;
}

.card-content .btn:hover {
  outline: 2px solid #e8e8e8;
  background: #fff;
  color: var(--color-green);
}

.card-content .btn:active {
  box-shadow: none;
}