/*BoxDowngrade.css*/

.scheduled-plan-box {
  max-width: 850px;
  margin: 50px auto 50px;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  color: white;
  position: relative;
  overflow: hidden;
}

.scheduled-plan-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--plan-gradient);
}

.scheduled-content {
  position: relative;
  z-index: 2;
}

.scheduled-plan-box h3 {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 25px;
}

.scheduled-item strong {
  font-size: 20px;
  color: white;
}

.plan-current {
  font-weight: bold;
}

.plan-next {
  font-weight: bold;
}

.scheduled-content {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.scheduled-item {
  flex: 1;
  text-align: center;
}

.scheduled-item span {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 5px;
}

.hidden {
  display: none;
}

.cancel-scheduled-btn {
  margin-top: 15px;
  background: #e14a47;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  width: 100%;
}











/*********************************SELECCIONAR PERIODO*********************/


.billing-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0); /* empezamos transparente */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;             /* invisible al inicio */
  pointer-events: none;   /* no clickeable mientras está oculto */
  transition: opacity 0.3s ease;
  z-index: 2000;
}

.billing-popup.active {
  opacity: 1;
  background: rgba(0,0,0,0.6); /* fondo oscuro visible */
  pointer-events: auto;        /* habilitamos clics */
}

.billing-popup-content {
  background: #fffdf5;
  border: 2px dashed #d4af37;
  padding: 24px;
  border-radius: 14px;
  text-align: center;
  min-width: 300px;
  transform: translateY(-20px);  /* inicia un poco arriba */
  opacity: 0;                     /* inicia invisible */
  transition: all 0.3s ease;
}

.billing-popup.active .billing-popup-content {
  transform: translateY(0); /* baja suavemente a su posición */
  opacity: 1;               /* se vuelve visible */
}

.billing-popup-content h3 {
  margin-bottom: 16px;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.billing-options {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.billing-btn {
  flex: 1;
  padding: 12px 0;
  border: 1px solid var(--primary);
  border-radius: 12px;
  cursor: pointer;
  background: #f9fbfd;
  font-weight: 600;
  transition: all 0.3s;
}

.billing-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.billing-btn:hover {
  background: var(--primary-light);
  color: #fff;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  border-radius: 30px;
  border: none;
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--primary-light)
  );
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(5,42,81,0.35);
}

.submit-btn:active {
  transform: scale(0.97);
}