/* CTA section wrapper */
.plans-cta-wrap {
  padding: 0 5% 100px;
}

/* Plans section */
.plans-section {
  padding: 20px 5% 80px;
  max-width: 1300px;
  margin: 0 auto;
}

.plans-section__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
}

/* Plan card */
.plan-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 24px 32px;
  color: #fff;
  backdrop-filter: blur(20px);
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.plan-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.2);
}

.plan-card--featured {
  border: 1px solid var(--saas-accent-1);
}

.plan-card__popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #FF2A00;
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.plan-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.plan-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--saas-accent-1, #FF2A00);
  flex-shrink: 0;
}

.plan-card__name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}

.plan-card__tag {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-card__price {
  font-size: 3rem;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: #fff;
}

.plan-card__currency {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.6);
}

.plan-card__period {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
}

.plan-card__content {
  margin-bottom: 32px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  flex-grow: 1;
}

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

.plan-card__content li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
}

.plan-card__content li .fi {
  color: #FF2A00;
  flex-shrink: 0;
}

.plan-card__btn {
  width: 100% !important;
  justify-content: center !important;
}

/* CTA */
.svc-cta {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 60px 40px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .plans-section__grid {
    grid-template-columns: 1fr;
  }

  .svc-cta {
    padding: 36px 20px;
  }
}

/* OVERRIDES FOR LIGHT THEME TO KEEP PLAN CARDS DARK */
body.light-theme .plan-card {
  background: rgba(18, 18, 18, 0.6) !important;
  backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}

body.light-theme .plan-card:hover {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

body.light-theme .plan-card__name,
body.light-theme .plan-card__currency,
body.light-theme .plan-card__amount {
  color: #fff !important;
}

body.light-theme .plan-card__period,
body.light-theme .plan-card__content li {
  color: rgba(255, 255, 255, 0.7) !important;
}

body.light-theme .plan-card__tag {
  color: rgba(255, 255, 255, 0.5) !important;
}

body.light-theme .plan-card__content i {
  color: #FF2A00 !important;
}

body.light-theme .plan-card__btn {
  background: var(--saas-gradient-primary) !important;
  color: #fff !important;
  border: none !important;
}

body.light-theme .plan-card__btn:hover {
  background: var(--saas-gradient-primary) !important;
  transform: translateY(-2px);
  opacity: 0.9 !important;
}

body.light-theme .plan-card--featured .plan-card__btn {
  background: var(--saas-gradient-primary) !important;
  color: #fff !important;
}

body.light-theme .plan-card--featured .plan-card__btn:hover {
  background: var(--saas-gradient-primary) !important;
  opacity: 0.9 !important;
  transform: translateY(-2px);
}

/* Reducir altura del hero en servicios para que los planes se vean sin scroll */
.nox-hero {
  min-height: auto !important;
  padding-top: 80px !important;
  padding-bottom: 0px !important;
}

/* CENTERED PLAN CARD STYLES */
.plan-card__header-centered {
  text-align: center;
  margin-bottom: 16px;
}

.plan-card__header-centered .plan-card__name {
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 1px;
}

.plan-card__header-centered .plan-card__tag {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

.plan-card__content-centered {
  margin-bottom: 20px;
}

.plan-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-card__price-section {
  text-align: center;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.plan-card__original-price {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: line-through;
  margin-bottom: 4px;
  font-weight: 600;
}

.plan-card__huge-price {
  font-size: 4rem;
  font-weight: 900;
  color: var(--saas-accent-1);
  line-height: 1;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -1px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.plan-card__huge-price .currency {
  font-size: 1.5rem;
  font-weight: 700;
  opacity: 0.9;
  transform: translateY(-8px);
}

.plan-card__period-sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
}

.plan-card__badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}