:root {
  --bg: #0a0d14;
  --surface: #10141f;
  --surface-strong: #171c2a;
  --text: #f5f7fb;
  --text-muted: #abb2c5;
  --text-dim: #7a8296;
  --text-primary: #f5f7fb;
  --text-secondary: #c7d5e6;
  --border: rgba(255, 255, 255, 0.09);
  --border-color: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --accent: #00ff87;
  --accent-ink: #001b10;
  --accent-soft: rgba(0, 255, 135, 0.1);
  --accent-dim: rgba(0, 255, 135, 0.3);
  --accent-glow: rgba(0, 255, 135, 0.55);
  --ticket-flat-bg: #08231a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
}

body {
  background: var(--bg);
  color: var(--text);
}

.site-header {
  background: rgba(10, 13, 20, 0.92);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}

.site-header.scrolled {
  background: rgba(10, 13, 20, 0.98);
  border-color: var(--border-strong);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

.header-inner {
  padding: 0.78rem 0;
}

.brand img {
  height: 34px;
  width: 34px;
}

.brand span {
  font-size: 1rem;
  letter-spacing: 0;
}

.nav-links {
  gap: 1.2rem;
}

.nav-links a,
.nav-dropdown > span {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-dropdown-content {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

main.container {
  max-width: 1120px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  overflow-x: clip;
}

.section {
  background: transparent !important;
  border-top: 1px solid var(--border);
  margin: 0;
  padding: 36px 0;
}

main.container > .section:first-child {
  border-top: 0;
  padding-top: 28px;
}

.section h1 {
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0.4rem 0 0.75rem;
  max-width: 940px;
  overflow-wrap: anywhere;
}

.section h2 {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.9rem;
}

.section h3,
.section h4 {
  color: var(--text);
  letter-spacing: 0;
}

.section p,
.section li {
  color: var(--text-muted);
}

.section p.lead {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 860px;
  overflow-wrap: anywhere;
}

.section a:not(.btn) {
  color: var(--accent);
  text-decoration: none;
}

.section strong {
  color: var(--text);
}

.section code,
.code-copy {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

main [style*="background: rgba(0,255,135"],
main [style*="background: rgba(0, 255, 135"],
main [style*="background: rgba(0,120,255"],
main [style*="background: rgba(0, 120, 255"],
main [style*="background: linear-gradient"] {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

main [style*="border-left: 3px solid"] {
  border-left: 1px solid var(--border) !important;
}

.discount-banner {
  align-items: center;
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: none;
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
  margin: 0 0 26px;
  overflow: hidden;
  padding: 16px !important;
}

.discount-banner > *,
.discount-banner-left > *,
.discount-banner-right > * {
  min-width: 0;
}

.discount-banner:hover {
  border-color: var(--accent-dim) !important;
}

.discount-banner-left {
  align-items: center;
  display: grid;
  gap: 12px 18px;
  grid-template-columns: 1fr;
  min-width: 0;
}

.discount-banner-left > div:first-child {
  align-items: center !important;
  background: var(--ticket-flat-bg);
  border: 1.5px solid var(--accent);
  border-radius: 10px;
  display: flex !important;
  gap: 12px !important;
  grid-row: span 3;
  height: 112px;
  justify-content: center;
  margin: 0 !important;
  min-width: 196px;
  padding: 12px 14px;
}

.discount-banner-left img {
  background: #000;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  height: 48px !important;
  object-fit: contain;
  padding: 7px;
  width: 48px !important;
}

.discount-badge-large {
  background: transparent;
  color: var(--text);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.discount-badge-large::before {
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent);
  content: "OFERTA";
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  margin: 0 0 12px;
  padding: 4px 9px;
  text-align: center;
  width: max-content;
}

.discount-prices {
  align-items: baseline;
  display: flex;
  gap: 10px;
  margin: 0;
}

.price-before-large {
  color: var(--text-dim);
  font-size: 0.95rem;
  text-decoration: line-through;
}

.price-after-large {
  color: var(--accent);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.discount-saving,
.discount-verified {
  margin: 0;
}

.discount-saving {
  color: var(--text) !important;
  font-size: 0.95rem;
  font-weight: 700;
}

.discount-verified {
  color: var(--text-muted) !important;
  font-size: 0.82rem;
}

.discount-banner-right {
  align-items: stretch;
  border-left: 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding-left: 0;
  padding-top: 16px;
  width: 100%;
}

.discount-banner-right .btn {
  display: flex;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
  white-space: normal;
  width: 100%;
}

.code-block {
  align-items: stretch;
  background: transparent;
  border: 1px solid var(--accent-dim);
  border-radius: 999px;
  display: inline-flex !important;
  height: 38px !important;
  justify-self: start;
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  opacity: 1 !important;
  visibility: visible !important;
  width: max-content;
}

.code-copy {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--text);
  display: inline-flex !important;
  font-size: 13px;
  font-weight: 700;
  height: auto !important;
  letter-spacing: 0;
  opacity: 1 !important;
  overflow: visible !important;
  padding: 0 14px;
  visibility: visible !important;
  width: auto !important;
  white-space: nowrap;
}

.copy-btn {
  align-items: center;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--accent-dim);
  border-radius: 0;
  color: var(--accent);
  cursor: pointer;
  display: inline-flex !important;
  font-size: 11px;
  font-weight: 800;
  height: auto !important;
  justify-content: center;
  letter-spacing: 0.06em;
  min-width: 86px;
  opacity: 1 !important;
  overflow: visible !important;
  padding: 0 14px;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  visibility: visible !important;
  width: auto !important;
}

.copy-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: none;
}

.copy-btn.is-copied {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent-dim), 0 0 0 3px rgba(0, 255, 135, 0.1);
  transform: translateY(-1px);
}

.code-block.is-copied {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 3px rgba(0, 255, 135, 0.1);
}

/* === ANCHOR DEAL BAR (debajo de la nav de anclas) === */
.anchor-deal-bar {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  margin: 0 0 8px;
  padding: 14px 18px;
}

.anchor-deal-firm {
  align-items: center;
  display: flex;
  flex: 1;
  gap: 12px;
  min-width: 0;
}

.anchor-deal-logo {
  background: #000;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  flex-shrink: 0;
  height: 44px;
  object-fit: contain;
  padding: 6px;
  width: 44px;
}

.anchor-deal-info {
  min-width: 0;
}

.anchor-deal-name {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  margin: 0 0 3px;
  white-space: nowrap;
}

.anchor-deal-meta {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 0;
}

.anchor-deal-meta strong {
  color: var(--accent);
  font-weight: 700;
}

.anchor-deal-actions {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: 10px;
}

.anchor-deal-code {
  height: 42px !important;
}

.anchor-deal-trust {
  color: var(--text-dim);
  font-size: 0.76rem;
  margin: 0 0 26px;
  padding: 0 4px;
}

@media (max-width: 680px) {
  .anchor-deal-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .anchor-deal-actions {
    flex-direction: column;
  }

  .anchor-deal-actions .code-block {
    width: 100%;
  }

  .anchor-deal-actions .code-copy {
    flex: 1;
    justify-content: center;
  }

  .anchor-deal-actions .btn {
    text-align: center;
    width: 100%;
  }
}

/* Code-block full-width en contextos de columna */
.discount-banner-right .code-block,
.mid-cta-actions .code-block,
.final-cta-section .code-block {
  width: 100%;
}

.discount-banner-right .code-copy,
.mid-cta-actions .code-copy,
.final-cta-section .code-copy {
  flex: 1;
  justify-content: center;
  text-align: center;
}

/* Sticky CTA: code-block integrado al contenedor, sin píldora anidada */
.sticky-cta-inner .code-block {
  background: rgba(255, 255, 255, 0.04);
  border-color: transparent;
  border-radius: 8px;
}

.btn,
.btn-primary,
.btn-outline {
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: 0 0 0 1px var(--accent-dim), 0 8px 24px -12px var(--accent-glow);
  color: var(--accent-ink) !important;
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink) !important;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.btn-large {
  padding: 0.88rem 1.35rem;
}

.stats-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  margin: 1.35rem 0 2rem;
}

.stat-item {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
  padding: 0.9rem 1rem;
}

.stat-item.highlight {
  background: var(--surface);
  border-color: var(--accent-dim);
}

.stat-label {
  color: var(--text-dim);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 0 0 0.4rem;
}

.stat-value {
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
}

.stat-item.highlight .stat-value,
.price-after-large,
.plans-table td strong,
.comparison-table td strong {
  color: var(--accent);
}

.decision-grid,
.features-grid,
.ideal-trader-grid,
.payout-details-grid,
.comparison-grid {
  gap: 12px;
}

.decision-card,
.feature-item,
.trader-profile,
.payout-card,
.comparison-category,
.quick-comparison-box,
.plan-recommendation,
.highlight-box {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25) !important;
}

.decision-card:hover,
.feature-item:hover,
.trader-profile:hover,
.payout-card:hover {
  border-color: var(--accent-dim) !important;
  transform: none;
}

.decision-label {
  color: var(--text-dim);
}

.decision-links {
  gap: 8px;
  margin: 1rem 0 2rem;
}

.decision-links a {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 0.48rem 0.75rem;
}

.decision-links a:hover {
  background: var(--surface-strong);
  border-color: var(--border-strong);
  color: var(--text);
}

.pros-cons-grid {
  gap: 14px;
  margin: 1.5rem 0 2rem;
}

.pros-col,
.cons-col {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  padding: 1.1rem 1.2rem;
}

.pros-col h3,
.cons-col h3 {
  color: var(--text);
}

.pros-col li,
.cons-col li {
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.plans-table-container,
.comparison-table-container {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 1.5rem 0;
  overflow-x: auto;
}

.plans-table,
.comparison-table,
.table-slim {
  background: var(--surface);
  border: 0;
  border-collapse: separate;
  border-radius: 0;
  border-spacing: 0;
  overflow: hidden;
}

.plans-table th,
.comparison-table th,
.table-slim th {
  background: var(--surface-strong);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.plans-table td,
.comparison-table td,
.table-slim td {
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.plans-table tr:hover,
.comparison-table tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.recommended-plan {
  background: rgba(0, 255, 135, 0.04) !important;
}

.discount-badge {
  background: var(--surface-strong);
  border: 1px solid var(--accent-dim);
  border-radius: 999px;
  color: var(--accent);
  padding: 0.24rem 0.56rem;
}

.mid-cta-box {
  background: var(--surface);
  border: 1px solid var(--accent-dim);
  border-radius: 14px;
  margin: 2rem 0;
  padding: 1.2rem 1.35rem;
}

.mid-cta-actions {
  align-items: stretch;
}

.steps-container {
  display: grid;
  gap: 12px;
  margin: 1.5rem 0;
}

.step-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
  padding: 1rem;
}

.step-number {
  background: var(--surface-strong);
  border: 1px solid var(--accent-dim);
  color: var(--accent);
}

.code-reminder-box {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
}

.faq-grid {
  border-top: 1px solid var(--border);
  counter-reset: faqcount;
  display: block;
  gap: 0;
}

.faq-item {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  margin: 0;
}

.faq-question {
  align-items: center;
  color: var(--text);
  display: flex;
  font-size: 0.94rem;
  font-weight: 650;
  gap: 14px;
  padding: 15px 0;
}

.faq-question::before {
  color: var(--text-dim);
  content: counter(faqcount, decimal-leading-zero);
  counter-increment: faqcount;
  flex: 0 0 28px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
}

.faq-question::after {
  color: var(--accent);
  content: "+" !important;
  font-size: 20px;
  margin-left: auto;
  transform: none;
  transition: transform 0.2s ease;
}

.faq-question.active::after {
  transform: rotate(45deg);
}

.faq-answer,
.faq-answer.open {
  padding-left: 42px;
  padding-right: 0;
}

.faq-answer.open {
  padding-bottom: 18px;
  padding-top: 0;
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 840px;
}

.verdict-box {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px;
  padding: 1.8rem;
}

.verdict-score {
  color: var(--accent);
}

.verdict-summary {
  color: var(--text-muted);
  max-width: 760px;
}

.final-cta-section {
  background: var(--surface);
  border: 1px solid var(--accent-dim);
  border-radius: 14px;
  padding: 1.8rem;
}

.breadcrumb {
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
  padding-bottom: 0.9rem;
}

.footer {
  background: transparent;
  border-top: 1px solid var(--border);
  margin-top: 0;
}

.footer-links a:hover {
  color: var(--accent);
}

.sticky-cta-bar {
  background: rgba(10, 13, 20, 0.72);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.sticky-cta-inner {
  background: var(--surface-strong);
  border: 1px solid var(--accent-dim);
  border-radius: 999px;
  gap: 8px;
  margin: 0 auto;
  max-width: 520px;
  padding: 8px;
}

.sticky-cta-inner .btn {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 42px;
  padding: 0.65rem 0.9rem;
}

.sticky-cta-trust {
  color: var(--text-muted);
}

@media (min-width: 900px) {
  .discount-banner {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr);
  }

  .discount-banner-left {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .discount-banner-right {
    border-left: 1px solid var(--border);
    border-top: 0;
    padding-left: 22px;
    padding-top: 0;
  }
}

@media (max-width: 860px) {
  .discount-banner,
  .discount-banner-left {
    grid-template-columns: 1fr;
  }

  .discount-banner-right {
    border-left: 0;
    border-top: 1px solid var(--border);
    min-width: 0;
    padding-left: 0;
    padding-top: 16px;
    width: 100%;
  }

  .discount-banner-left > div:first-child {
    grid-row: auto;
    justify-content: flex-start;
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 768px) {
  main.container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section {
    padding: 30px 0;
  }

  .section h1 {
    font-size: 28px;
    line-height: 1.08;
    max-width: 320px !important;
    width: 320px !important;
    word-break: break-word;
  }

  .header-inner {
    padding: 0.72rem 0;
  }

  .nav-links {
    background: var(--surface);
    border-color: var(--border);
    border-radius: 12px;
  }
}

@media (max-width: 520px) {
  body {
    overflow-x: hidden;
  }

  main.container {
    max-width: 100vw;
    width: 100vw;
  }

  .section,
  .section h1,
  .section p,
  .discount-banner,
  .stats-grid,
  .decision-grid,
  .decision-links,
  .mid-cta-box,
  .final-cta-section,
  .verdict-box {
    max-width: calc(100vw - 2rem);
  }

  .section h1,
  .section p {
    width: 100%;
  }

  .discount-banner {
    padding: 14px !important;
    width: 100%;
  }

  .discount-banner-left > div:first-child {
    align-items: flex-start !important;
    flex-direction: column;
    height: auto;
  }

  .discount-badge-large {
    font-size: 38px;
  }

  .code-block {
    width: 100% !important;
  }

  .code-copy {
    flex: 1;
    min-width: 0;
  }

  .copy-btn {
    min-width: 78px;
  }

  .discount-banner-right .btn {
    align-items: center;
    display: block;
    font-size: 0.82rem;
    justify-content: center;
    line-height: 1.25;
    min-height: 48px;
    overflow-wrap: anywhere;
    padding-left: 1rem;
    padding-right: 1rem;
    white-space: normal !important;
    width: 100%;
  }

  .mid-cta-actions {
    align-items: stretch;
    width: 100%;
  }

  .sticky-cta-inner {
    border-radius: 18px;
    grid-template-columns: 1fr;
  }
}
