/* Pricing */
.pricing {
  padding: 10px 0;
  background-color: var(--bg-secondary);
  transition: background-color 0.3s ease;
}

.pricing-carousel {
  overflow: visible;
}

.pricing-card {
  position: relative;
  background-color: var(--bg-primary);
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: visible;
  width: 280px;
  flex: 0 0 280px;
  margin: 6px;
  padding: 88px 24px 24px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  z-index: 1;
}

.pricing-card:hover {
  transform: translateY(-18px);
}

.pricing-card:hover .pricing-title {
  background: #4ade80;
}

.pricing-card:hover .badge-coming {
  background-color:azure;
}

.pricing-card.featured {
  border-color: var(--accent-color);
  background-color: var(--bg-tertiary);
  transform: scale(1.01);
  box-shadow: 0 8px 24px var(--accent-shadow);
}

.pricing-card,
.pricing-track,
.pricing-carousel,
#pricingTrack,
section.pricing {
  overflow: visible;
}

.badge-featured {
  position: absolute;
  transform: translateX(-50%);
  top: -30px;
  left: 50px;
  background-color: var(--accent-color);
  color: var(--text-inverse);
  padding: 6px 16px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  transition: background-color 0.3s ease;
  z-index: 5;
  overflow: visible;
}

.badge-coming {
  position: absolute;
  top: 8px;
  left: -15px;
  top: 115px;
  width: 180px;
  background-color: var(--secondary);
  color: var(--text-inverse);
  padding: 6px 0;
  border-radius: 0px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  text-align: center;
  transform: rotate(-55deg);
  transform-origin: left center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.pricing-card.professional-plan .pricing-crown {
  position: absolute;
  top: -50px;
  right: -40px;
  font-size: 52px;
  transform: rotate(35deg);
  transform-origin: center;
  pointer-events: none;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
  z-index: 3;
}

.section-title {
  margin-top: 50px;
}

.pricing-title {
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-color);
  color: var(--text-inverse);
  font-weight: 700;
  font-size: 20px;
  border-radius: 1px;
  padding: 0 12px;
  box-shadow: 0 6px 16px var(--accent-shadow);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
}

.pricing-price-note {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0 0 18px;
  text-align: center;
}

.currency {
  font-size: 15px;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.amount {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent-color);
  transition: color 0.3s ease;
}

.period {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.3s ease;
}

.pricing-features {
  list-style: none;
  margin-bottom: 20px;
  text-align: center;
  flex: 1 1 auto;
  width: 100%;
}

.pricing-features li {
  padding: 6px 0;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  font-size: 17px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-card .btn {
  margin-top: auto;
  width: 100%;
  max-width: 220px;
}

/* Carousel layout */
.pricing-carousel {
  position: relative;
  gap: 12px;
}

.pricing-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 8px 16px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  justify-content: center;
}

.pricing-track::-webkit-scrollbar {
  display: none;
}

.carousel-btn {
  background: var(--accent-color);
  color: var(--text-inverse);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.carousel-btn.prev {
  order: -1;
}

.info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: center;   /* ⭐ centra verticalmente icono + texto */
}

@media (max-width: 768px) {
  .amount {
    font-size: 24px;
  }

  /* GRID 2x2 EN MOBILE */
  .pricing-track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    overflow-x: visible;          /* ya no queremos scroll horizontal */
    padding: 8px 12px 16px;
    justify-items: stretch;
  }

  .pricing-card {
    width: 100%;
    min-width: 0;
    max-width: none;
    flex: 1 1 auto;               /* anulamos el ancho fijo del flex */
    margin: 0;
  }

  .badge-coming {
    width: 130px;   /* más corta para no pisar texto */
    left: -20px;    /* más a la izquierda */
    top: 70px;     /* un pelín más arriba si hace falta */
    font-size: 11px;
  }

  .info-item {
    align-items: center;   /* centra iconos + texto solo en mobile */
  }
}


