/* ============================================================
   Subscription plans (landing purchase section)
   ============================================================ */
.sub-plans {
  padding: 72px 20px 88px;
  font-family: "Montserrat", sans-serif;
  color: #0a0a0a;
}

.sub-plans__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.sub-plans__head {
  text-align: center;
  margin-bottom: 52px;
}

.sub-plans__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ea0029;
  margin-bottom: 12px;
}

.sub-plans__title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(44px, 7vw, 62px);
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: #0a0a0a;
}

.sub-plans__subtitle {
  font-size: 15px;
  color: #6a6a6a;
  margin: 0;
}

/* --- Grid --- */
.sub-plans__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
}

/* --- Card (sober & clean: soft surface, rounded, dark featured) ---
   Flex basis gives roomy ~360–384px cards and lets the trailing row
   (an odd plan count) center instead of hugging the left. */
.sub-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 360px;
  max-width: 404px;
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 24px;
  padding: 38px 34px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.07);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.sub-plan:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.1);
}

/* Featured plan lifts out of the row with a soft shadow (pricing-UX cue). */
.sub-plan--featured {
  background: #0a0a0a;
  border-color: #0a0a0a;
  color: #fff;
  box-shadow: 0 24px 60px rgba(10, 10, 10, 0.28);
}

.sub-plan--featured:hover {
  box-shadow: 0 30px 70px rgba(10, 10, 10, 0.34);
}

/* "Más completo" → small sober pill at the top of the card (the reference's
   PRO tag). Rendered only on the featured plan. */
.sub-plan__badge {
  order: -2;
  align-self: flex-start;
  margin-bottom: 14px;
  background: #ea0029;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Ticket-shaped "promo active" badge, only on the all-access card, only
   when SubscriptionCatalog reports an active promotion for that plan
   (MaintenanceNoticeService::hasActivePromotion()). Shape lifted from the
   ticket.html reference: a rotated dark ticket with punched-out side
   notches and a clipped, jagged-edge badge, scaled down to sit at the top
   of a plan card instead of filling a page. */
.sub-plan__promo-ticket {
  order: -2;
  align-self: flex-start;
  margin-bottom: 14px;
  transform: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.sub-plan__promo-ticket-notch {
  display: none;
}

.sub-plan__promo-ticket-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  background: #ea0029;
  color: #fff;
  padding: 4px 11px;
  border-radius: 999px;
  clip-path: none;
  font-style: normal;
  line-height: 1;
}

.sub-plan__promo-ticket-big {
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.sub-plan__promo-ticket-sub {
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

/* Name reads as a small label under the price (reference layout). */
.sub-plan__name {
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a8a8a;
  margin: 12px 0 0;
}

.sub-plan--featured .sub-plan__name {
  color: #b8b8b8;
}

/* Price leads the card. */
.sub-plan__price {
  order: -1;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.sub-plan__price-currency {
  font-size: 20px;
  font-weight: 700;
  align-self: flex-start;
  margin-top: 6px;
}

.sub-plan__price-amount {
  font-family: "Montserrat", sans-serif;
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.sub-plan__price-period {
  font-size: 12px;
  color: #8a8a8a;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sub-plan--featured .sub-plan__price-period {
  color: #b8b8b8;
}

.sub-plan__divider {
  height: 1px;
  background: #ececec;
  margin: 22px 0;
}

.sub-plan--featured .sub-plan__divider {
  background: rgba(255, 255, 255, 0.12);
}

/* --- Features --- */
.sub-plan__features {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sub-plan__features::before {
  content: "Qué incluye";
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a9a9a;
  margin-bottom: 4px;
}

.sub-plan__feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: #3a3a3a;
}

.sub-plan--featured .sub-plan__feature {
  color: #d8d8d8;
}

.sub-plan__feature svg {
  flex-shrink: 0;
  color: #ea0029;
  margin-top: 2px;
}

.sub-plan__feature--star svg {
  color: #ea0029;
}

.sub-plan__feature strong {
  font-weight: 700;
  color: #0a0a0a;
}

.sub-plan--featured .sub-plan__feature strong {
  color: #fff;
}

/* --- Parking chip (distinct from the feature checklist) --- */
.sub-plan__parking {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  margin: 18px 0 22px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef0f2;
  color: #6a6a6a;
  font-size: 12px;
  font-weight: 600;
}

.sub-plan__parking svg {
  flex-shrink: 0;
}

.sub-plan__parking--free {
  background: #eef0f2;
  color: #6a6a6a;
}

.sub-plan--featured .sub-plan__parking,
.sub-plan--featured .sub-plan__parking--free {
  background: rgba(255, 255, 255, 0.1);
  color: #c0c0c0;
}

/* --- CTA (pill, pinned to card bottom) --- */
.sub-plan__cta {
  display: block;
  margin-top: auto;
  text-align: center;
  background: #0a0a0a;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 16px;
  border-radius: 14px;
  text-decoration: none;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}

.sub-plan__cta:hover {
  background: #262626;
}

.sub-plan__cta:focus-visible {
  outline: 3px solid #ea0029;
  outline-offset: 3px;
}

.sub-plan--featured .sub-plan__cta {
  background: #ea0029;
}

.sub-plan--featured .sub-plan__cta:hover {
  background: #c8001f;
}

.sub-plan--featured .sub-plan__cta:focus-visible {
  outline-color: #fff;
}

/* Respect reduced-motion: drop the lift/transition for users who opt out. */
@media (prefers-reduced-motion: reduce) {
  .sub-plan,
  .sub-plan__cta {
    transition: none;
  }
  .sub-plan:hover {
    transform: none;
  }
}

/* --- Notice (kill-switch / empty) --- */
.sub-plans__notice {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  max-width: 580px;
  margin: 0 auto;
  background: #fff;
  border: 1.5px solid #ececec;
  border-radius: 16px;
  padding: 24px 26px;
  color: #6a6a6a;
  font-size: 14.5px;
}

.sub-plans__notice svg {
  flex-shrink: 0;
  color: #ea0029;
}

.sub-plans__notice p {
  margin: 0;
}

.sub-plans__foot {
  text-align: center;
  margin: 36px 0 0;
  font-size: 13px;
  color: #8a8a8a;
}

.sub-plans__link {
  display: block;
  width: fit-content;
  margin: 20px auto 0;
  text-align: center;
  background: transparent;
  color: #ea0029;
  border: 1.5px solid #ea0029;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 11px 28px;
  border-radius: 12px;
  text-decoration: none;
}

.sub-plans__link:hover {
  background: #ea0029;
  color: #fff;
}

/* ============================================================
   Signup plan summary (SignupForm's pre-registration plan preview)
   ============================================================ */
.subscribe-summary {
  text-align: center;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid #ececec;
}

.subscribe-summary h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 40px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 4px;
  color: #0a0a0a;
}

.subscribe-summary__price {
  font-size: 18px;
  font-weight: 700;
  color: #ea0029;
  margin: 0;
}

/* ============================================================
   Subscribe checkout (two-column: features + summary)
   ============================================================ */
.subscribe-checkout {
  position: relative;
  width: 100%;
  min-height: 60vh;
  font-family: "Montserrat", sans-serif;
  overflow: hidden;
}

.subscribe-checkout__inner {
  display: grid;
  grid-template-columns: 2fr 330px;
  gap: 22px;
  max-width: 900px;
  margin-inline: auto;
}

.subscribe-checkout__breadcrumb {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14.4px;
  color: #9a9a9a;
}

.subscribe-checkout__breadcrumb a {
  color: #111;
  font-weight: 800;
  text-decoration: none;
}

.subscribe-checkout__breadcrumb a:hover {
  text-decoration: underline;
}

.subscribe-checkout__features {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 36px 32px;
  background: #0a0a0a;
  color: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.14);
}

/* Red glow in the corner — same brand cue as the dashboard credential. */
.subscribe-checkout__features::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -70px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 0, 41, 0.3), transparent 70%);
  pointer-events: none;
}

.subscribe-checkout__features > * {
  position: relative;
  z-index: 1;
}

.subscribe-checkout__plan-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: 36px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: #fff;
}

.subscribe-checkout__plan-price {
  font-family: "Bebas Neue", sans-serif;
  font-size: 44px;
  letter-spacing: 0.02em;
  margin: 0;
}

.subscribe-checkout__plan-price span {
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  color: #b8b8b8;
  margin-left: 4px;
}

.subscribe-checkout__plan-renewal {
  font-size: 13px;
  color: #b8b8b8;
  margin: 6px 0 24px;
}

.subscribe-checkout__feature-list {
  list-style: none;
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.subscribe-checkout__feature-list li {
  font-size: 13.5px;
  line-height: 1.45;
  padding-left: 22px;
  position: relative;
}

.subscribe-checkout__feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 10px;
  height: 6px;
  border-left: 2px solid #ea0029;
  border-bottom: 2px solid #ea0029;
  transform: rotate(-45deg);
}

.subscribe-checkout__summary {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 20px;
  padding: 32px 28px;
  align-self: start;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.07);
}

.subscribe-checkout__summary-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6a6a6a;
  margin: 0 0 20px;
}

.subscribe-checkout__summary-line,
.subscribe-checkout__summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 14.5px;
}

.subscribe-checkout__summary-line {
  color: #3a3a3a;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid #ececec;
}

.subscribe-checkout__summary-total {
  font-weight: 700;
  font-size: 16px;
  color: #0a0a0a;
}

.subscribe-checkout__cta {
  display: block;
  width: 100%;
  margin-top: 26px;
  border: none;
  cursor: pointer;
  background: #0a0a0a;
  color: #fff;
  font-family: "Bebas Neue", sans-serif;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 15px;
  border-radius: 12px;
  transition: background 0.15s ease;
  text-align: center;
}

.subscribe-checkout__cta:hover {
  background: #2a2a2a;
}

/* --- Corner keychain decor (decorative only, pinned to the form's own edges) ---
   Each item's transform below IS its pre-animation (off-position) state —
   js/subscribe-checkout-decor.js tweens x/y to 0 and leaves rotate/scaleX
   alone. Keeping the entrance offset in CSS, not set by JS on attach, is
   what avoids a flash of the resting position before gsap ever runs. */
.subscribe-checkout__corner-decor {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

@media (min-width: 1280px) {
  .subscribe-checkout__corner-decor {
    display: block;
  }
}

.subscribe-checkout__corner-decor-item {
  position: absolute;
  width: clamp(64px, 8vw, 80px);
  height: auto;
}

.subscribe-checkout__corner-decor-item--tl {
  top: 0;
  left: 10px;
  transform: translate(-200px, -20px) rotate(-17deg) scaleX(-1);
}

.subscribe-checkout__corner-decor-item--tr {
  top: 0;
  right: 10px;
  transform: translate(200px, -20px) rotate(45deg) scaleX(-1);
}

.subscribe-checkout__corner-decor-item--bl {
  bottom: 0;
  left: 10px;
  transform: translate(-200px, 20px);
}

.subscribe-checkout__corner-decor-item--br {
  bottom: 0;
  right: 10px;
  transform: translate(200px, 20px);
}

@media (max-width: 1000px) {
  .sub-plans__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 720px) {
  .subscribe-checkout__inner {
    grid-template-columns: 1fr;
  }
  .sub-plan__promo-ticket {
    right: -6px;
  }
}

@media (max-width: 560px) {
  /* The grid is flex now, so one card per row happens on its own; cap and
     center each card so it keeps clear side margins instead of stretching
     edge-to-edge on a phone. */
  .sub-plan {
    flex-basis: 100%;
    max-width: 360px;
    margin-inline: auto;
  }
}
