/* betfair502.com — hoja de estilos "exchange" */
:root {
  --yellow: #ffb80c;
  --yellow-deep: #e9a400;
  --ink: #1e1e1e;
  --ink-soft: #303030;
  --back: #a6d8ff;
  --back-soft: #e3f2ff;
  --lay: #fac9d1;
  --lay-soft: #fdebee;
  --paper: #efefed;
  --sheet: #ffffff;
  --line: #dcdcdc;
  --muted: #5d5d5d;
  --slab: "Roboto Slab", Georgia, "Times New Roman", serif;
  --sans: "Roboto", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
}
img { max-width: 100%; height: auto; }
a { color: #0b5fa5; text-underline-offset: 2px; }
a:hover { color: var(--ink); }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- barra amarilla ---------- */
.navbar { background: var(--yellow); position: relative; z-index: 20; }
.navbar > .container { display: flex; align-items: center; justify-content: space-between; min-height: 66px; }
.navbar-brand { display: flex; align-items: center; line-height: 0; }
.navbar-brand img { width: 150px; height: auto; }
.navbar-menu { display: flex; align-items: center; gap: 4px; }
.navbar-item {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 8px 12px; border-bottom: 3px solid transparent; line-height: 1.2;
}
.navbar-item:hover { color: var(--ink); border-bottom-color: var(--ink); }
.navbar-item[aria-current="page"] { font-weight: 700; border-bottom-color: var(--ink); }
.navbar-toggle {
  display: none; background: transparent; border: 2px solid var(--ink); border-radius: 4px;
  width: 44px; height: 40px; padding: 0; cursor: pointer; position: relative;
}
.navbar-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.navbar-toggle span:nth-child(1) { top: 12px; }
.navbar-toggle span:nth-child(2) { top: 18px; }
.navbar-toggle span:nth-child(3) { top: 24px; }
.navbar-toggle.is-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.navbar-toggle.is-active span:nth-child(2) { opacity: 0; }
.navbar-toggle.is-active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- franja negra de guías ---------- */
.subbar { background: var(--ink); color: #fff; font-size: 13.5px; }
.subbar .container { display: flex; align-items: center; gap: 2px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.subbar .container::-webkit-scrollbar { display: none; }
.subbar-label { color: var(--yellow); font-weight: 700; padding: 10px 14px 10px 0; text-transform: uppercase; letter-spacing: .04em; font-size: 12px; }
.subbar a { color: #fff; text-decoration: none; font-weight: 700; padding: 10px 14px; border-left: 1px solid #3a3a3a; }
.subbar a:hover { background: #2c2c2c; color: var(--yellow); }

/* ---------- cuerpo ---------- */
.section { padding: 34px 0 56px; }
.pathway { font-size: 13.5px; color: var(--muted); margin: 0 0 14px; }
.pathway a { color: var(--muted); }
.pathway span[aria-current] { color: var(--ink); }

.content {
  background: var(--sheet);
  max-width: 740px;
  padding: 44px 48px 40px;
  border-radius: 2px;
  box-shadow: 0 1px 0 #d5d5d2, 0 10px 30px -18px rgba(0,0,0,.25);
}
.content.is-home { max-width: none; }
.content h1 {
  font: 700 40px/1.15 var(--slab); margin: 0 0 18px; letter-spacing: -.01em;
}
.content.is-home h1 { font-size: 46px; max-width: 900px; }
.content h2 {
  font: 700 26px/1.25 var(--slab); margin: 42px 0 14px; padding-top: 18px;
  border-top: 3px solid var(--ink); clear: none;
}
.content h3 { font: 600 19px/1.35 var(--slab); margin: 24px 0 8px; }
.content p, .content li { max-width: 68ch; }
.content p { margin: 0 0 16px; }
.content ul, .content ol { padding-left: 22px; margin: 0 0 18px; }
.content li { margin-bottom: 6px; }
.content .lead { font-size: 19px; line-height: 1.6; color: #2a2a2a; }
.content.is-home .lead { max-width: 820px; }
.content .subtitle {
  font-size: 15px; color: var(--muted); margin: -6px 0 20px; padding-left: 12px; border-left: 4px solid var(--lay);
}
.content .formula {
  font: 500 17px/1.5 var(--slab); background: var(--paper); padding: 12px 16px; border-left: 4px solid var(--ink);
}
.content .revised { margin: 36px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* ---------- notas tipo bulma ---------- */
.notification { border-radius: 3px; padding: 18px 20px; margin: 0 0 20px; }
.notification > :last-child { margin-bottom: 0; }
.notification.is-example { background: #fff6dc; border-left: 5px solid var(--yellow); }
.notification.is-example p { max-width: none; }
.notification.is-back { background: var(--back); height: 100%; }
.notification.is-lay { background: var(--lay); height: 100%; }
.tag {
  display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 9px; border-radius: 2px; background: var(--ink); color: #fff; margin: 0 0 10px !important;
}
.tag.is-back { background: #0f4c81; }
.tag.is-lay { background: #8c2338; }

/* notas al margen (escritorio) */
.notification.is-sidenote {
  font-size: 14px; line-height: 1.5; color: #3d3d3d; background: transparent;
  border-top: 3px solid var(--ink); border-radius: 0; padding: 10px 0 0;
}
.notification.is-sidenote::before {
  content: "Al margen"; display: block; font: 700 11px/1 var(--sans); letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.is-sidenote-figure { margin: 0 0 20px; }
.is-sidenote-figure img { display: block; width: 100%; }
.is-sidenote-figure figcaption { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

@media (min-width: 1100px) {
  .page { padding-right: 300px; }
  .page.is-home { padding-right: 0; }
  .notification.is-sidenote, .is-sidenote-figure {
    float: right; clear: right; width: 250px; margin-right: -348px; margin-top: 4px;
  }
  .is-sidenote-figure.is-small { width: 150px; }
}
@media (max-width: 1099px) {
  .content { max-width: none; }
  .notification.is-sidenote { background: var(--paper); padding: 12px 16px; }
  .is-sidenote-figure { max-width: 300px; margin: 0 auto 22px; text-align: center; }
  .is-sidenote-figure.is-small { max-width: 130px; }
}

/* ---------- columnas ---------- */
.columns { display: flex; gap: 20px; margin: 0 0 24px; }
.columns.is-multiline { flex-wrap: wrap; }
.column { flex: 1 1 0; min-width: 0; }
.column.is-half { flex: 0 0 calc(50% - 10px); }
.columns.is-backlay { margin-top: 28px; }
.columns.is-backlay p { max-width: none; }
.columns.is-guides { gap: 8px 32px; }
.columns.is-guides .column.is-half { flex: 0 0 calc(50% - 16px); border-top: 2px solid var(--yellow); padding-top: 4px; }
.columns.is-guides h3 { margin-top: 12px; }
.has-text-centered { text-align: center; }

/* ---------- escalera back/lay ---------- */
.ladder { display: grid; gap: 4px; margin: 18px 0 20px; font-size: 15.5px; }
.ladder-rung { display: grid; grid-template-columns: 1.05fr 1fr 1fr; gap: 4px; }
.ladder-rung > span { padding: 12px 14px; line-height: 1.35; }
.ladder-label { background: #f4f4f2; font-weight: 500; }
.ladder-back { background: var(--back-soft); border-left: 4px solid var(--back); }
.ladder-lay { background: var(--lay-soft); border-left: 4px solid var(--lay); }
.ladder-rung.is-head > span { font-weight: 700; }
.ladder-rung.is-head .ladder-label { background: var(--ink); color: var(--yellow); font-family: var(--slab); }
.ladder-rung.is-head .ladder-back { background: var(--back); }
.ladder-rung.is-head .ladder-lay { background: var(--lay); }
.ladder-rung.is-foot > span { font-weight: 700; }

/* ---------- productos ---------- */
.products { list-style: none; padding: 0 !important; margin: 0 0 22px !important; display: grid; gap: 6px; }
.products .media { display: flex; align-items: stretch; margin: 0; max-width: none; background: #f7f7f5; }
.media-left { flex: 0 0 330px; display: flex; align-items: center; padding: 18px 22px; }
.media-left.is-dark { background: var(--ink); }
.media-left img { display: block; width: 100%; max-width: 280px; }
.media-content { padding: 14px 20px; display: flex; align-items: center; }
.media-content p { margin: 0; }
.wordmark { font: 500 28px/1 var(--slab); color: var(--yellow); letter-spacing: .01em; }

/* ---------- herramientas ---------- */
.tools { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 6px 0 22px !important; }
.tools li { max-width: none; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; font-size: 14.5px; font-weight: 500; background: #f7f7f5; padding: 16px 8px; margin: 0; }
.tools img { width: 44px; height: 44px; }
.tools.is-stacked { grid-template-columns: 1fr; gap: 6px; }
.tools.is-stacked li { flex-direction: row; text-align: left; align-items: flex-start; gap: 14px; font-weight: 400; font-size: 16px; padding: 14px 16px; }
.tools.is-stacked img { flex: 0 0 44px; }

/* ---------- tablas ---------- */
.table-container { overflow-x: auto; margin: 0 0 22px; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; }
.table th { background: var(--ink); color: #fff; text-align: left; font-weight: 500; padding: 10px 12px; font-size: 14px; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tbody tr:nth-child(even) td { background: #fafaf8; }
.table th.is-back { background: var(--back); color: var(--ink); font-weight: 700; }
.table th.is-lay { background: var(--lay); color: var(--ink); font-weight: 700; }
.table tbody tr td.is-back { background: var(--back-soft); }
.table tbody tr td.is-lay { background: var(--lay-soft); }
.table.is-steps td:first-child { font: 700 18px/1.2 var(--slab); width: 56px; text-align: center; background: var(--yellow) !important; }

/* ---------- boleto de la oferta ---------- */
.ticket { display: flex; align-items: stretch; margin: 4px 0 22px; max-width: 520px; }
.ticket > span { display: flex; align-items: center; padding: 14px 18px; }
.ticket-stake { background: var(--back); font-weight: 700; flex: 1 1 auto; }
.ticket-arrow { background: var(--ink); color: var(--yellow); font-weight: 700; font-size: 22px; }
.ticket-prize { background: var(--yellow); font: 700 30px/1 var(--slab); }

/* ---------- botones ---------- */
.cta-line { margin: 26px 0 8px; }
.button {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 16px; line-height: 1;
  padding: 15px 30px; border-radius: 4px; border: 0; cursor: pointer;
}
.button.is-warning { background: var(--yellow); color: var(--ink); box-shadow: 0 3px 0 #b88300; }
.button.is-warning:hover { background: var(--yellow-deep); color: var(--ink); }

/* ---------- preguntas ---------- */
.qa { border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.qa h3 { margin-top: 18px; }

/* ---------- pie ---------- */
.footer { background: var(--ink); color: #c9c9c9; font-size: 14.5px; padding: 44px 0 24px; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: var(--yellow); text-decoration: underline; }
.footer .columns { gap: 36px; }
.footer-logo { width: 160px; height: auto; display: block; margin-bottom: 14px; }
.footer-title { color: var(--yellow); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; margin: 4px 0 10px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 7px; }
.footer p { margin: 0 0 10px; }
.footer-age { display: inline-block; border: 2px solid var(--yellow); color: var(--yellow); font-weight: 700; border-radius: 50%; width: 40px; height: 40px; line-height: 36px; text-align: center; font-size: 14px; margin-right: 10px; float: left; }
.footer-base { border-top: 1px solid #3a3a3a; margin-top: 26px; padding-top: 16px; font-size: 13px; color: #9a9a9a; }

/* ---------- 404 ---------- */
.lost-links { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.lost-links a { display: block; padding: 14px 16px; background: #f7f7f5; border-left: 4px solid var(--yellow); text-decoration: none; color: var(--ink); font-weight: 500; }

/* ---------- móvil ---------- */
@media (max-width: 960px) {
  .navbar-toggle { display: block; }
  .navbar-menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--yellow); flex-direction: column; align-items: stretch; gap: 0;
    border-top: 1px solid rgba(0,0,0,.15); box-shadow: 0 12px 20px -12px rgba(0,0,0,.4);
  }
  .navbar-menu.is-active { display: flex; }
  .navbar-item { padding: 14px 20px; border-bottom: 1px solid rgba(0,0,0,.1); font-size: 16px; }
  .navbar-item[aria-current="page"] { border-bottom-color: rgba(0,0,0,.1); background: rgba(0,0,0,.06); }
}
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .section { padding: 18px 0 36px; }
  .container { padding: 0 14px; }
  .content { padding: 24px 18px 26px; }
  .content h1, .content.is-home h1 { font-size: 30px; }
  .content h2 { font-size: 22px; margin-top: 34px; }
  .content .lead { font-size: 17.5px; }
  .columns { flex-direction: column; gap: 12px; }
  .column.is-half, .columns.is-guides .column.is-half { flex: 1 1 auto; }
  .ladder-rung { grid-template-columns: 1fr 1fr; }
  .ladder-rung .ladder-label { grid-column: 1 / -1; padding: 8px 12px; }
  .ladder { font-size: 14.5px; }
  .ladder-rung > span { padding: 10px; }
  .products .media { flex-direction: column; }
  .media-left { flex: 0 0 auto; padding: 14px 16px; }
  .media-left img { max-width: 220px; }
  .wordmark { font-size: 22px; }
  .tools { grid-template-columns: repeat(2, 1fr); }
  .tools li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .ticket-prize { font-size: 22px; }
  .ticket > span { padding: 12px; }
  .lost-links { grid-template-columns: 1fr; }
  .table { font-size: 14.5px; }
}
