.plans {
  width: 100%;
}
.plans a:active {
  text-decoration: none;
}
.plans * {
  margin: 0;
  padding: 0;
  list-style: none;
  transition: all .3s ease;
}

.plans__tab {
  overflow: hidden;
  display: flex;
  justify-content: center;
}
.plans__tab-item {
  cursor: pointer;
}
.plans__tab-item.active img {
  filter: grayscale(0%) brightness(1);
}

.plans__tab-item img {
  filter: grayscale(100%) brightness(0.5);
  transition: filter 0.3s ease, box-shadow 0.3s ease;
}
.plans__tab-item img:hover {
  filter: grayscale(0%) brightness(1);
}
.plans__tab-type-text,
.plans__tab-frecuency-text {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
}
.plans__tab-type-text {  
  margin-bottom: 20px;  
}
.plans__tab-frecuency-text {  
  margin-top: 50px;
}
.plans__tab-content-calendar img {
  width: 50px;
}
.plans__sub-tab {
  margin: 20px auto 40px;
}
.plans__sub-tab.toggle {
  position: relative;
  display: flex;  
  border-radius: 30px;
  padding: 5px;
  cursor: pointer;
  width: 300px;
  user-select: none;
}
.plans__sub-tab .toggle-option {
  flex: 1;
  text-align: center;
  color: white;
  font-size: 16px;
  font-weight: bold;
  padding: 10px;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}
.plans__sub-tab .toggle-option.active {
  color: black;
}
.plans__sub-tab .toggle-slider {
  position: absolute;
  top: 5px;
  left: 0;
  height: calc(100% - 10px);
  width: 0;  
  border-radius: 30px;
  transition: transform 0.4s ease, width 0.4s ease;
  z-index: 0;
}
.plans__tab-content, .plans__sub-tab-content {
  display: none;
}
.plans__tab-content.active, .plans__sub-tab-content.active {
  display: block;
}
.plans__card-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.plans__card {
  box-shadow: 0px 0px 5px 0px rgba(143,143,143,1);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  background-color: #FFFFFF;
  overflow: hidden;
}

@media (min-width:766px) {
  .plans__card:hover {
    transform: scale(1.08);
  }
}

.plans__card-body-container {
  padding: 20px 20px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plans__card-body {
  display: flex;
  flex-direction: column;
  gap: 5px;  
  height: 170px; 
  overflow: hidden;
  transition: height 0.5s ease;
  position: relative;
}
.plans__card-body:not(.expanded)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
  pointer-events: none;
}
.plans__card-body-item {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid #f3f3f3;
  position: relative;
}
.plans__card-body-value {
  text-align: right;
}
.plans__card-header {
  padding: 30px 20px;
  text-align: center;
}
.plans__card-header__price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  align-items: center;
}
.plans__card-header__price-old-new {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
}
.plans__card-header__image {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.plans__card-header__image > img {
  width: 150px;
}
.plans__card-header__title {
  text-align: center;
  font-weight: 900;
  font-size: 25px;
}
.plans__card-button {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}
.plans__card-button-element {
  background: #5dbc98;
  border-radius: 15px;
  padding: 10px 20px;
  transition: all .3s ease;
  line-height: 1;
  text-decoration: none;
}
.plans__card-button-element:hover,
.plans__card-button-element:active {
  background: #23173d;
  color: #fbf1e4;
  transform: scale(1.05);
}

{# ---- Mobile Breakpoint ---- #}
@media (max-width: 765px) {
  .plans__card-container {
    grid-template-columns: repeat(1, 1fr);
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 400px) {
  .plans__tab-type-text,
  .plans__tab-frecuency-text {
    font-size: 18px;
  }
  .plans__tab-content-calendar img {
    width: 35px
  }
  .plans__sub-tab {
    gap: 20px;
  }
  .plans__sub-tab-item {
    font-size: 12px;
  }  
}

@media (max-width: 350px) {
  .plans__sub-tab.toggle {
    width: 100%;
  }
}

.plans__card-event-expander {
  transition: opacity 0.5s ease;
}
.plans__card-event {
  display: flex;
  justify-content: center;
}
.plans__card-event-expander {
  text-decoration: none;
}
.plans__card-info {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
}