:root {
  --primary-color-rgb: 37, 99, 235;
}

/* Selector de período */
.period-selector {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 0.5rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.period-btn {
  background: transparent;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-color);
  position: relative;
  z-index: 1;
  flex: 1;
}

.period-btn.active {
  color: white;
}

.period-btn.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-color);
  border-radius: 50px;
  z-index: -1;
  animation: fadeIn 0.3s ease;
}

.period-btn1 {
  background: transparent;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-color);
  position: relative;
  z-index: 1;
  flex: 1;
}

.period-btn1.active {
  color: white;
}

.period-btn1.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-color);
  border-radius: 50px;
  z-index: -1;
  animation: fadeIn 0.3s ease;
}

.price-option {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.price-option.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.pricing-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.pricing-header h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  /* color: var(--text-color); */
}

.pricing-tag {
  color: var(--light-text);
  font-size: 0.9rem;
}

.pricing-price {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  /* height: 100px; Altura fija para evitar saltos */
  height: 80px;
}

.price {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.period {
  font-size: 1rem;
  /* color: var(--light-text); */
}

.savings {
  background: rgba(var(--primary-color-rgb), 0.1);
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-top: 0.5rem;
}

.savings2 {
  background: rgba(var(--primary-color-rgb), 0.1);
  /* color: var(--primary-color); */
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .period-selector {
    max-width: 100%;
    width: 100%;
  }

  .period-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .price {
    font-size: 2.8rem;
  }
}

@media (max-width: 480px) {
  .period-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }

  .pricing-header h3 {
    font-size: 1.5rem;
  }

  .price {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .period-selector {
    max-width: 100%;
    width: 100%;
  }

  .period-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .price {
    font-size: 2.8rem;
  }
}
