.plans-section {
  padding: 96px 0;
  background: #f7f8fa;
}

.plans-header {
  max-width: 1180px;
  margin: 0 auto 36px;
  padding: 0 24px;
  text-align: center;
}

.plans-header h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #0d1b3e;
  margin: 0;
  text-align: center;
}

.plans-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.plans-grid__item {
  min-width: 0;
}

.plan-card {
  height: 100%;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  padding: 0 0 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(13, 27, 62, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
}

.plan-card--featured {
  border: 1px solid rgba(61, 146, 228, 0.25);
}

.plan-card__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 270px;
  margin-bottom: 18px;
  padding: 22px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.plan-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 19, 40, 0.04) 0%, rgba(9, 19, 40, 0.24) 44%, rgba(9, 19, 40, 0.82) 100%);
  pointer-events: none;
}

.plan-card__media--matricula {
  background:
    linear-gradient(180deg, rgba(11, 20, 40, 0.06) 0%, rgba(11, 20, 40, 0.18) 100%),
    url("./img_cards/planmatricula.c758259b19c9.png") center 38% / cover no-repeat;
}

.plan-card__media--completo {
  background:
    linear-gradient(180deg, rgba(11, 20, 40, 0.06) 0%, rgba(11, 20, 40, 0.18) 100%),
    url("./img_cards/plancompleto.96f42c0a3c48.png") center 34% / cover no-repeat;
}

.plan-card__media--vip {
  background:
    linear-gradient(180deg, rgba(11, 20, 40, 0.06) 0%, rgba(11, 20, 40, 0.18) 100%),
    url("./img_cards/planvip.963da518577c.png") center 34% / cover no-repeat;
}

.plan-card h3,
.plan-card p,
.plan-card__price,
.plan-toggle,
.plan-content {
  padding-left: 22px;
  padding-right: 22px;
}

.plan-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.08;
  color: #fff;
  letter-spacing: -0.03em;
  text-shadow: 0 10px 20px rgba(8, 18, 38, 0.22);
}

.plan-card p {
  margin: 0 0 18px;
  color: #58627a;
  font-size: 1rem;
  line-height: 1.6;
  min-height: 76px;
}

.plan-card__price {
  margin: 0 0 20px;
  min-height: 72px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.plan-card__price-main {
  color: #0d1b3e;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.25;
}

.plan-card__price-note {
  max-width: 16rem;
  color: #6b7890;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.plan-card__cta {
  margin: 0 22px 14px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 44px);
  text-decoration: none;
  background: linear-gradient(180deg, #171717 0%, #050505 100%);
  box-shadow: 0 14px 28px rgba(5, 5, 5, 0.16);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.plan-card__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(5, 5, 5, 0.22);
}

.plan-toggle {
  width: 100%;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(13, 27, 62, 0.10);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #0d1b3e;
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.22s ease, background 0.22s ease;
}

.plan-toggle:hover {
  color: #183b73;
}

.plan-toggle .plus {
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.25s ease, color 0.22s ease;
}

.plan-toggle:hover .plus {
  color: #5ca9e8;
}

.plan-card.is-open .plus {
  transform: rotate(45deg);
}

.plan-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease;
  opacity: 0;
}

.plan-card.is-open .plan-content {
  max-height: 420px;
  opacity: 1;
  padding-top: 14px;
}

.plan-content ul {
  margin: 0;
  padding-left: 18px;
}

.plan-content li {
  margin: 0 0 10px;
  color: #33415c;
  line-height: 1.5;
}
