/* ==========================================================
   PLANES – GRID CORREGIDO + NUEVO PLAN KIOSKO DIGITAL
   ========================================================== */

/* ======= Card general ======= */
.plan-card {
  background-color: var(--color-card, #fff);
  border-radius: 1rem;
  box-shadow: var(--shadow-light, 0 2px 8px rgba(0, 0, 0, 0.05));
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 2px solid transparent;
  transition: all 0.25s ease-in-out;
  position: relative;
  overflow: hidden;
  text-align: left;
}

/* Hover */
.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium, 0 6px 20px rgba(0, 0, 0, 0.08));
}

/* Activo (destacado) */
.plan-card.active-plan {
  border-color: var(--color-primary, #635BFF);
  background: linear-gradient(180deg, #F9FAFB 0%, #FFFFFF 100%);
  box-shadow: var(--shadow-hover, 0 8px 24px rgba(99, 91, 255, 0.08));
}

/* “Más popular” */
.plan-card.active-plan::after {
  content: "Más popular";
  position: absolute;
  top: 16px;
  right: -36px;
  background-color: var(--color-accent, #00C2A8);
  color: var(--color-ink, #fff);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 30px;
  transform: rotate(45deg);
  letter-spacing: 0.02em;
}

/* ======= Header ======= */
.plan-header {
  text-align: center;
}

.plan-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-ink, #1E293B);
  margin-bottom: 0.25rem;
}

.plan-header .plan-description {
  color: var(--color-muted, #475569);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  margin-top: 0.25rem;
  line-height: 1.5;
}

.plan-header .plan-price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-primary, #635BFF);
  line-height: 1;
  display: ruby;
}

/* ======= Beneficios ======= */
.plan-benefits h4 {
  border-left: 4px solid var(--color-primary, #635BFF);
  padding-left: 0.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary, #635BFF);
  font-weight: 600;
  font-size: 1.05rem;
}

.plan-benefits ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.plan-benefits li {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--color-ink-light, #334155);
  line-height: 1.6;
  font-size: 0.95rem;
  text-align: left;
}

.plan-benefits li .icon {
  color: var(--color-accent, #00C2A8);
  margin-right: 0.35rem;
  vertical-align: middle;
}

.plan-benefits strong {
  display: inline;
  font-weight: 600;
  color: var(--color-ink, #1E293B);
}

/* ======= CTA ======= */
.btn.primary.large {
  background: linear-gradient(90deg, var(--color-primary, #635BFF) 0%, var(--color-accent, #00C2A8) 100%);
  color: #fff;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.9rem 1.5rem;
  cursor: pointer;
  display: inline-block;
  transition: all 0.25s ease;
  text-align: center;
  width: 100%;
  margin-top: 1rem;
}

.btn.primary.large:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.highlight {
  font-weight: 600;
  color: var(--color-accent, #00C2A8);
  margin-top: 1rem;
  text-align: center;
}

/* ======= Facturación ======= */
.billing-options {
  text-align: center;
  margin-top: 1.5rem;
}

.billing-option {
  font-size: 0.9rem;
  color: var(--color-muted, #475569);
  margin-bottom: 0.25rem;
}

.badge.discount-badge {
  background: var(--color-accent, #00C2A8);
  color: #fff;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
}

/* ======= GRID ======= */
.pricing-plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 planes en fila */
  gap: 32px;
  margin-top: 60px;
  align-items: stretch;
}

/* ======= NUEVO PLAN KIOSKO DIGITAL ======= */
.plan-card.kiosko {
  border-color: #FFB200;
  background: linear-gradient(180deg, #FFF9E6 0%, #FFFFFF 100%);
}

.plan-card.kiosko .plan-header h2 {
  color: #B45309;
}

.plan-card.kiosko {
  border-color: var(--color-accent);
  background: linear-gradient(180deg, #E6FFFA 0%, #FFFFFF 100%);
}
.plan-card.kiosko .btn.primary.large {
  background: linear-gradient(90deg, #00C2A8 0%, #635BFF 100%);
}

/* ======= Responsivo ======= */

/* Tablets */
@media (max-width: 1024px) {
  .pricing-plans {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Móviles */
@media (max-width: 768px) {
  .pricing-plans {
    grid-template-columns: 1fr;
  }
  .plan-header .plan-price {
    font-size: 2.5rem;
    
  }
  .plan-benefits li {
    font-size: 0.9rem;
  }
  .btn.primary.large {
    width: 100%;
  }
}
