.plan-hero {
  padding: 4rem 0 2rem;
}

.plan-hero-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.plan-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.plan-hero p {
  max-width: 780px;
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: 1.04rem;
}

.plan-hero-card,
.plan-cta-box,
.plan-section,
.plan-faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(18, 22, 34, 0.78);
}

.plan-hero-card {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.plan-hero-card img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.plan-hero-card strong {
  font-size: 1.1rem;
}

.plan-hero-card span,
.plan-hero-card p,
.plan-note,
.plan-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.plan-page {
  padding: 1rem 0 4rem;
}

.plan-layout {
  display: grid;
  gap: 1.25rem;
}

.plan-toc {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 0.55rem;
  align-self: start;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(18, 22, 34, 0.9);
}

.plan-toc strong {
  margin-bottom: 0.25rem;
}

.plan-toc a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.plan-toc a:hover {
  color: var(--accent);
}

.plan-main {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.plan-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.plan-summary div {
  min-height: 92px;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.plan-summary span {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.plan-summary strong {
  display: block;
  margin-top: 0.3rem;
  font-size: 1rem;
  line-height: 1.3;
}

.plan-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(18, 22, 34, 0.78);
}

.plan-table {
  width: 100%;
  min-width: 1060px;
  border-collapse: collapse;
  table-layout: fixed;
}

.plan-table th:first-child,
.plan-table td:first-child {
  width: 18%;
}

.plan-table th:nth-child(2),
.plan-table td:nth-child(2) {
  width: 24%;
}

.plan-table th,
.plan-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-align: left;
  line-height: 1.48;
  vertical-align: top;
}

.plan-table th {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.plan-table tbody tr:last-child td {
  border-bottom: 0;
}

.plan-price {
  display: grid;
  gap: 0.18rem;
}

.plan-price del {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.plan-price strong,
.plan-good {
  color: var(--accent);
}

.plan-price-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-price-list li {
  display: grid;
  gap: 0.08rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.plan-price-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.plan-price-list span {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.plan-price-list strong {
  color: var(--text-primary);
}

.plan-fit-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.9rem;
}

.plan-fit-grid article {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.plan-fit-grid h3 {
  margin: 0;
}

.plan-fit-grid p {
  margin-top: 0.55rem;
}

.plan-section {
  padding: 1.2rem;
}

.plan-section h2,
.plan-section h3 {
  margin: 0;
  line-height: 1.25;
}

.plan-section h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
}

.plan-section h3 {
  font-size: 1.05rem;
}

.plan-section p {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
}

.plan-section p strong,
.plan-section li strong {
  color: var(--text-primary);
}

.plan-section ul {
  margin: 0.85rem 0 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
}

.plan-cta-box {
  display: grid;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem;
}

.plan-cta-box p {
  margin: 0;
  color: var(--text-muted);
}

.plan-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.plan-code {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.55rem 0.8rem;
  border: 1px dashed rgba(0, 255, 135, 0.45);
  border-radius: 8px;
  color: var(--accent);
  font-weight: 800;
}

.plan-faq {
  display: grid;
  gap: 0.75rem;
}

.plan-faq-item {
  padding: 1rem;
}

.plan-faq-item h3 {
  margin: 0;
  font-size: 1rem;
}

.plan-faq-item p {
  margin: 0.55rem 0 0;
  color: var(--text-muted);
}

.plan-source-list {
  display: grid;
  gap: 0.4rem;
  margin: 0.75rem 0 0;
  padding-left: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.plan-source-list a {
  color: var(--accent);
}

@media (min-width: 980px) {
  .plan-hero-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .plan-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
  }
}

@media (max-width: 760px) {
  .plan-hero {
    padding-top: 2.6rem;
  }

  .plan-summary {
    grid-template-columns: 1fr;
  }

  .plan-table-wrap {
    overflow-x: visible;
    border: 0;
    background: transparent;
  }

  .plan-table,
  .plan-table thead,
  .plan-table tbody,
  .plan-table tr,
  .plan-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .plan-table thead {
    display: none;
  }

  .plan-table tbody {
    display: grid;
    gap: 0.8rem;
  }

  .plan-table tr {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(18, 22, 34, 0.82);
  }

  .plan-table td {
    display: grid;
    grid-template-columns: minmax(100px, 34%) minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .plan-table td:last-child {
    border-bottom: 0;
  }

  .plan-table td::before {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .plan-table td:nth-child(1)::before {
    content: "Plan";
  }

  .plan-table td:nth-child(2)::before {
    content: "Price";
  }

  .plan-table td:nth-child(3)::before {
    content: "Account";
  }

  .plan-table td:nth-child(4)::before {
    content: "Daily loss";
  }

  .plan-table td:nth-child(5)::before {
    content: "Split";
  }

  .plan-table td:nth-child(6)::before {
    content: "Payout";
  }

  .plan-table td:nth-child(7)::before {
    content: "Best for";
  }

  html[lang="es"] .plan-table td:nth-child(2)::before {
    content: "Precio";
  }

  html[lang="es"] .plan-table td:nth-child(3)::before {
    content: "Cuenta";
  }

  html[lang="es"] .plan-table td:nth-child(7)::before {
    content: "Ideal para";
  }

  .plan-toc {
    position: static;
  }

  .plan-cta-actions {
    display: grid;
  }

  .plan-cta-actions .btn,
  .plan-code {
    width: 100%;
    justify-content: center;
  }
}
