/* polymarket.mex.com — hoja única, mobile-first, sin frameworks */

:root {
  --bg: #0a0e17;
  --bg-2: #0f1522;
  --surface: #131b2b;
  --surface-2: #182236;
  --line: #22304a;
  --line-soft: #1a2438;
  --tx: #e8edf7;
  --tx-2: #a9b6cc;
  --tx-3: #7b8aa3;
  --accent: #3f8cff;
  --accent-ink: #0a0e17;
  --accent-2: #17c98a;
  --warn: #ffb020;
  --danger: #ff6b6b;
  --radius: 14px;
  --radius-s: 9px;
  --wrap: 1120px;
  --doc: 780px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, table { max-width: 100%; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 18px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------------------------------------------------------------- topbar */
.topbar {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--tx-3);
}
.topbar__in { padding-top: 7px; padding-bottom: 7px; }
.topbar p { margin: 0; }
.topbar a { color: var(--tx-2); text-decoration: underline; text-underline-offset: 2px; }

/* ---------------------------------------------------------------- header */
.site {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 14, 23, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site__in {
  display: flex; align-items: center; gap: 14px;
  min-height: 58px;
  flex-wrap: wrap;
}
.logo {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-weight: 800; font-size: 18px; letter-spacing: -.03em;
  color: var(--tx); text-decoration: none; margin-right: auto;
}
.logo:hover { text-decoration: none; }
.logo__a { color: var(--tx); }
.logo__b {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: .01em;
}

.navtoggle {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); color: var(--tx);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 12px; font: 600 14px var(--sans); cursor: pointer;
}
.navtoggle__bars { position: relative; width: 16px; height: 2px; background: currentColor; border-radius: 2px; }
.navtoggle__bars::before, .navtoggle__bars::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor; border-radius: 2px;
}
.navtoggle__bars::before { top: -5px; }
.navtoggle__bars::after { top: 5px; }
.navtoggle[aria-expanded="true"] .navtoggle__bars { background: transparent; }
.navtoggle[aria-expanded="true"] .navtoggle__bars::before { top: 0; transform: rotate(45deg); }
.navtoggle[aria-expanded="true"] .navtoggle__bars::after { top: 0; transform: rotate(-45deg); }

.nav { display: none; width: 100%; padding: 6px 0 14px; }
.nav.is-open { display: block; }
.nav ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 2px; }
.nav a {
  display: block; padding: 9px 10px; border-radius: 8px;
  color: var(--tx-2); font-size: 15px; font-weight: 500;
}
.nav a:hover { background: var(--surface); color: var(--tx); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--tx); background: var(--surface); }

/* ------------------------------------------------------------------ btns */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px; border-radius: 11px;
  font: 700 15.5px/1 var(--sans); letter-spacing: -.01em;
  border: 1px solid transparent; cursor: pointer; text-align: center;
}
.btn:hover { text-decoration: none; }
.btn--primary {
  background: var(--accent); color: #041022;
  box-shadow: 0 8px 22px -12px rgba(63, 140, 255, .9);
}
.btn--primary:hover { background: #5b9dff; }
.btn--small { padding: 9px 14px; font-size: 14px; background: var(--accent); color: #041022; width: 100%; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--tx); }

/* ------------------------------------------------------------------ main */
.main { padding: 26px 18px 10px; }
.doc { max-width: var(--doc); margin: 0 auto; }

.crumbs { font-size: 13px; color: var(--tx-3); margin: 0 0 14px; }
.crumbs a { color: var(--tx-3); }
.crumbs span { margin: 0 2px; }

h1 {
  font-size: clamp(28px, 6.4vw, 42px);
  line-height: 1.12; letter-spacing: -.035em; font-weight: 800;
  margin: 0 0 14px;
}
h2 {
  font-size: clamp(21px, 4.4vw, 27px);
  line-height: 1.22; letter-spacing: -.025em; font-weight: 750;
  margin: 0 0 14px;
  scroll-margin-top: 80px;
}
h3 {
  font-size: clamp(17.5px, 3.4vw, 20px);
  line-height: 1.3; letter-spacing: -.015em; font-weight: 700;
  margin: 26px 0 10px;
  scroll-margin-top: 80px;
}
p { margin: 0 0 16px; }
.lead { font-size: 18.5px; color: var(--tx); }

.hero__kicker {
  display: inline-block;
  font: 700 11.5px/1 var(--sans); letter-spacing: .13em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 12px;
}
.hero__lead { font-size: 19px; color: var(--tx-2); margin-bottom: 18px; }
.hero__facts {
  list-style: none; margin: 0 0 20px; padding: 0;
  display: grid; gap: 1px; background: var(--line-soft);
  border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden;
}
.hero__facts li {
  display: flex; justify-content: space-between; gap: 14px;
  background: var(--surface); padding: 11px 14px; font-size: 14.5px;
}
.hero__fk { color: var(--tx-3); }
.hero__fv { color: var(--tx); font-weight: 650; text-align: right; }

.meta { font-size: 13px; color: var(--tx-3); margin: 16px 0 0; }
.meta a { color: var(--tx-2); }

/* ------------------------------------------------------------------- toc */
.toc {
  background: var(--bg-2); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 16px 18px; margin: 26px 0;
}
.toc__h { font: 700 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--tx-3); margin: 0 0 12px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 7px; font-size: 15px; }
.toc a { color: var(--tx-2); }
.toc a:hover, .toc a.is-active { color: var(--accent); }

/* -------------------------------------------------------------- sections */
.sec { margin: 40px 0; }
.sec > h2 { border-top: 1px solid var(--line-soft); padding-top: 26px; }
.hero + .toc + .sec > h2, .hero + .sec > h2 { border-top: 0; padding-top: 0; }

.list { margin: 0 0 16px; padding-left: 22px; }
.list li { margin-bottom: 8px; }
.list--num { list-style: decimal; }

/* ----------------------------------------------------------------- table */
.tablewrap { margin: 0 0 22px; }
.tablewrap__cap {
  font: 700 13px/1.4 var(--sans); color: var(--tx-2); margin: 0 0 9px;
}
.tablescroll {
  overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}
table { border-collapse: collapse; width: 100%; font-size: 14.5px; min-width: 460px; }
thead th {
  background: var(--surface-2); color: var(--tx);
  text-align: left; font-weight: 700; font-size: 13px;
  letter-spacing: .02em; padding: 11px 13px; white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
tbody th { text-align: left; font-weight: 650; color: var(--tx); }
tbody th, tbody td { padding: 11px 13px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(odd) { background: rgba(255, 255, 255, .012); }
.tablewrap__note { font-size: 13px; color: var(--tx-3); margin: 9px 0 0; }

/* ----------------------------------------------------------------- steps */
.steps { list-style: none; counter-reset: s; margin: 0 0 22px; padding: 0; }
.steps__item {
  counter-increment: s; position: relative;
  padding: 0 0 22px 46px; border-left: 2px solid var(--line);
  margin-left: 15px;
}
.steps__item:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps__item::before {
  content: counter(s);
  position: absolute; left: -16px; top: -2px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--accent);
  font: 700 14px/28px var(--sans); text-align: center;
}
.steps__title { font-weight: 700; margin: 3px 0 6px; font-size: 17px; }
.steps__body { color: var(--tx-2); font-size: 15.5px; }
.steps__body p { margin: 0 0 10px; }
.steps__body p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------- callout */
.callout {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  background: var(--bg-2); border-radius: var(--radius-s);
  padding: 15px 17px; margin: 0 0 22px; font-size: 15.5px;
}
.callout__t { font-weight: 700; margin: 0 0 6px; font-size: 15px; }
.callout__b p:last-child { margin-bottom: 0; }
.callout--warn { border-left-color: var(--warn); }
.callout--risk { border-left-color: var(--danger); }
.callout--ok { border-left-color: var(--accent-2); }

/* -------------------------------------------------------------------- kv */
.kv {
  margin: 0 0 22px; border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; display: grid; gap: 1px; background: var(--line-soft);
}
.kv__row { display: grid; grid-template-columns: 1fr; gap: 2px; background: var(--surface); padding: 11px 14px; }
.kv dt { font-size: 13px; color: var(--tx-3); }
.kv dd { margin: 0; font-size: 15px; font-weight: 600; }

/* ----------------------------------------------------------------- cards */
.cards { display: grid; gap: 12px; margin: 0 0 22px; }
.card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 15px 17px;
}
.card__t { font-weight: 700; margin: 0 0 6px; font-size: 16px; }
.card__b { color: var(--tx-2); font-size: 14.5px; }
.card__b p:last-child { margin-bottom: 0; }
.card__l { margin: 10px 0 0; font-size: 14px; font-weight: 600; }

/* ------------------------------------------------------------------- faq */
.faq { display: grid; gap: 9px; }
.faq__item {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius-s); padding: 0;
}
.faq__q {
  cursor: pointer; list-style: none; padding: 14px 44px 14px 16px;
  font-weight: 650; font-size: 16px; position: relative;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: ""; position: absolute; right: 18px; top: 21px;
  width: 9px; height: 9px; border-right: 2px solid var(--tx-3); border-bottom: 2px solid var(--tx-3);
  transform: rotate(45deg); transition: transform .15s ease;
}
.faq__item[open] .faq__q::after { transform: rotate(-135deg); top: 25px; }
.faq__a { padding: 0 16px 15px; color: var(--tx-2); font-size: 15.5px; }
.faq__a p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------- cta */
.cta {
  margin: 26px 0; padding: 20px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius);
  text-align: center;
}
.cta--hero { margin: 22px 0 0; }
.cta__title { font-weight: 700; font-size: 17px; margin: 0 0 13px; letter-spacing: -.015em; }
.cta .btn { width: 100%; }
.cta__note { font-size: 12.5px; color: var(--tx-3); margin: 12px 0 0; }

/* --------------------------------------------------------------- sources */
.sources { font-size: 15px; }
.srclist { padding-left: 20px; margin: 0; display: grid; gap: 8px; color: var(--tx-2); }
.srclist a { color: var(--tx); text-decoration: underline; text-underline-offset: 2px; }
.srclist__d { color: var(--tx-3); font-size: 13px; }

/* ---------------------------------------------------------------- footer */
.foot {
  border-top: 1px solid var(--line-soft);
  background: var(--bg-2);
  margin-top: 50px; padding: 34px 0 100px;
  font-size: 14.5px;
}
.foot__grid { display: grid; gap: 26px; }
.foot__h { font: 700 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--tx-3); margin: 0 0 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot a { color: var(--tx-2); }
.foot a:hover { color: var(--tx); }
.foot__bottom { border-top: 1px solid var(--line-soft); margin-top: 30px; padding-top: 22px; color: var(--tx-3); font-size: 13px; }
.foot__brand { font-weight: 800; font-size: 17px; margin: 0 0 10px; letter-spacing: -.03em; }
.foot__legal { font-size: 12.5px; line-height: 1.6; }

/* ----------------------------------------------------------- sticky cta  */
.stickycta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(10, 14, 23, .93);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .22s ease;
}
.stickycta.is-on { transform: translateY(0); }
.stickycta .btn { width: 100%; }

/* ------------------------------------------------------------- >= 720px  */
@media (min-width: 720px) {
  body { font-size: 17.5px; }
  .main { padding-top: 34px; }
  .hero__facts { grid-template-columns: 1fr 1fr; }
  .kv { grid-template-columns: 1fr 1fr; }
  .kv__row { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .cta { text-align: left; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 22px 24px; }
  .cta__title { margin: 0; flex: 1 1 260px; font-size: 18px; }
  .cta .btn { width: auto; flex: 0 0 auto; }
  .cta__note { flex-basis: 100%; margin: 0; }
  .foot__grid { grid-template-columns: repeat(4, 1fr); }
  table { min-width: 0; }
}

/* ------------------------------------------------------------- >= 980px  */
@media (min-width: 980px) {
  .site__in { flex-wrap: nowrap; min-height: 64px; }
  .navtoggle { display: none; }
  .nav { display: flex !important; align-items: center; gap: 16px; width: auto; padding: 0; }
  .nav ul { display: flex; gap: 2px; margin: 0; }
  .nav a { padding: 8px 11px; font-size: 14.5px; white-space: nowrap; }
  .btn--small { width: auto; }
  .stickycta { display: none; }
  .foot { padding-bottom: 34px; }
  html { scroll-padding-top: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* --------------------------------------------------------------- imprime */
@media print {
  .site, .topbar, .stickycta, .toc, .foot, .cta { display: none !important; }
  body { background: #fff; color: #000; }
}
