/* =========================
   Pricing section (read-only)
   ========================= */

.pricing {
  padding: 48px 16px;
}

.pricing__container {
  max-width: 960px;
  margin: 0 auto;
}

.pricing h2 {
  margin: 0 0 6px;
}

#pricing-status {
  margin: 6px 0 12px;
  font-size: 10px;
  opacity: 0.8;
}

/* Table wrapper for mobile overflow */
.pricing__tableWrap {
  overflow-x: auto;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: #fff;
}

/* Table */
.pricing__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.pricing__table th,
.pricing__table td {
  padding: 10px 16px;
  text-align: left;
  vertical-align: middle;
}

/* Header */
.pricing__table thead th {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.75;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.pricing__title {
  color: var(--primary);
  margin: 0 0 6px;
}

/* Group headers – calm, text-based */
.pricing__group-header td {
  padding: 5px 3px 2px;
  font-weight: 600;
  background: transparent;
  border: none;
  color: var(--text-dark);
}

/* Thin separator before each group (very subtle) */
.pricing__group-header {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}



/* Rows */
/* Indent rows under each pricing group */
#pricing-individual tr td:first-child,
#pricing-pareja tr td:first-child {
  padding-left: 32px;
  /* subtle nesting */
}

/* Keep headers aligned */
.pricing__group-header td {
  padding-left: 16px;
}


.pricing__table tbody tr:not(:last-child) td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Price emphasis */
.pricing__table td strong {
  font-weight: 600;
}

/* Footnote */
.pricing__note {
  margin-top: 10px;
  font-size: 13px;
  opacity: 0.75;
  line-height: 1.4;
}

.pricing-recommended {
  background: rgba(0, 0, 0, 0.03);
}

.pricing-badge {
  display: inline-block;
  font-size: 0.7rem;
  background: var(--accent);
  color: white;
  padding: 2px 6px;
  border-radius: 6px;
  margin-right: 6px;
}

.pricing-sub {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Pricing CTA */
.pricing__cta {
  margin-top: 20px;
}

.pricing__button:hover {
  opacity: 0.9;
}

/* CTA under pricing table */
.pricing__cta {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  /* centered looks best under a table */
}

/* If btn-primary is too wide / blocky here, normalize it */
.pricing__cta .btn-primary {
  width: auto;
  max-width: 320px;
  /* prevents it from feeling huge */
  padding: 12px 22px;
  /* slightly calmer than hero */
  text-align: center;
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .pricing {
    padding: 36px 12px;
  }

  .pricing__table {
    min-width: 375px;
  }
}

/* =========================
   Interactive pricing rows
   ========================= */

.pricing__table tbody tr {
  cursor: pointer;
}

.pricing__table tbody tr td {
  transition: background-color 0.18s ease, transform 0.18s ease;
}

/* Interactive rows (exclude group headers) */
.pricing__table tbody tr:not(.pricing__group-header) {
  cursor: pointer;
}

.pricing__table tbody tr:not(.pricing__group-header) td {
  transition: background-color 0.18s ease, transform 0.18s ease;
}

/* Hover only on real pricing rows */
.pricing__table tbody tr:not(.pricing__group-header):hover td {
  background: rgba(var(--primary-rgb), 0.06);
}

/* Selected row */
.pricing-selected td {
  background: rgba(var(--primary-rgb), 0.10);
}

/* Bounce animation when selecting */
.pricing-bounce td {
  animation: pricingBounce 0.35s ease;
}

@keyframes pricingBounce {
  0% {
    transform: scale(1);
  }

  35% {
    transform: scale(1.02);
  }

  65% {
    transform: scale(0.995);
  }

  100% {
    transform: scale(1);
  }
}