/* Estilo del blog de McBet. Sale de la maqueta D (web/maquetas/maquetas/d-mezcla.html): mismos tokens, letra,
   botones, boleto, cabecera, pie y aviso +18. Oscuro de base. Si cambias un token en la maqueta, cámbialo aquí. */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fuentes/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fuentes/manrope-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  color-scheme: dark;
  --f: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --noche: #07130B; --noche-2: #0C1D11; --tiza: #EEF3EF; --tiza-2: #A8B8AD; --raya: rgba(238,243,239,.15); --cal: rgba(90,215,117,.34);
  --luz: #5AD775; --ambar: #F5B266; --ambar-f: #3A2810; --foco: #93B2FF;
  --btn-luz: #EEF3EF; --btn-luz-txt: #07130B; --btn-luz-hover: #FFFFFF;
  --logo-mark: #3EC45A; --logo-text: #EEF3EF;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --r-md: 14px; --r-lg: 24px; --r-pill: 999px; --max: 1240px;
  --t-art: clamp(34px, 5.4vw, 60px); --t-2: clamp(26px, 3.2vw, 34px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--noche); color: var(--tiza); font: 400 17px/1.6 var(--f); font-variant-numeric: tabular-nums; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { text-wrap: balance; }
p, li, dd, blockquote { text-wrap: pretty; }
a { color: var(--luz); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--foco); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.saltar { position: absolute; left: 16px; top: -60px; background: var(--tiza); color: var(--noche); padding: 10px 16px; border-radius: var(--r-pill); z-index: 100; font-weight: 700; }
.saltar:focus { top: 12px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.logo { width: 114px; height: 35px; display: block; }
.t { font-weight: 800; letter-spacing: -0.045em; line-height: 1; }

/* Botones (píldora, como la app) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: var(--r-pill); font: 700 16px/1.1 var(--f); text-decoration: none; border: 0; cursor: pointer; text-align: center; transition: background-color 160ms ease, box-shadow 160ms ease, transform 140ms var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn-luz { background: var(--btn-luz); color: var(--btn-luz-txt); }
.btn-linea { background: transparent; color: var(--tiza); box-shadow: inset 0 0 0 1.5px var(--tiza-2); }
@media (hover: hover) and (pointer: fine) {
  .btn-luz:hover { background: var(--btn-luz-hover); }
  .btn-linea:hover { box-shadow: inset 0 0 0 1.5px var(--tiza); }
  .nav a:hover, .pie-web ul a:hover { color: var(--tiza); }
  .pie-web ul a:hover { text-decoration: underline; }
}

/* Cabecera */
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.inicio { border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center; }
.top .inicio { margin-right: auto; }
.nav { display: flex; gap: 24px; }
.nav a { color: var(--tiza-2); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 0; min-height: 44px; display: inline-flex; align-items: center; transition: color 160ms ease; }
.nav a[aria-current="page"] { color: var(--tiza); box-shadow: inset 0 -2px 0 var(--luz); }
.top .btn { min-height: 44px; padding: 0 20px; font-size: 15px; }
@media (max-width: 719px) { .nav .solo-ancho { display: none; } }
@media (max-width: 479px) { .top .btn { display: none; } }

/* Boleto de ejemplo (igual que en la maqueta) */
.boleto { background: var(--noche-2); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); box-shadow: inset 0 0 0 1px var(--raya); }
.boleto .cab { display: flex; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; color: var(--tiza-2); font-size: 15px; padding-bottom: 16px; border-bottom: 1px dashed var(--raya); }
.boleto .fila { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 18px 0; border-bottom: 1px dashed var(--raya); align-items: baseline; }
.boleto .quien { font-weight: 700; }
.boleto .casa { color: var(--tiza-2); font-size: 15px; }
.boleto .cuota { font-size: 38px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; grid-row: span 2; align-self: center; text-align: right; }
.boleto .cuota small { font-size: 13px; font-weight: 600; color: var(--tiza-2); display: block; letter-spacing: 0; }
.boleto .res { grid-template-columns: 1fr; gap: 6px; padding-top: 20px; border-bottom: 0; }
.boleto .res p { color: var(--tiza-2); }
.boleto .res p:first-child { color: var(--tiza); font-weight: 700; }
.boleto .res b { font-size: clamp(52px, 6.4vw, 84px); font-weight: 800; letter-spacing: -0.05em; line-height: .95; color: var(--luz); }
@media (max-width: 359px) { .boleto .cuota { font-size: 30px; } .btn { padding: 0 18px; font-size: 15px; } }

/* Cuerpo de página */
main { padding-block: 8px 96px; }
.migas ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; font-size: 14px; color: var(--tiza-2); }
.migas li + li::before { content: "/"; margin: 0 .55em; opacity: .6; }
.migas a { color: var(--tiza-2); min-height: 44px; display: inline-flex; align-items: center; }
.migas li:has([aria-current]) { display: none; }
.etiqueta { color: var(--luz); font-weight: 700; font-size: 14px; letter-spacing: .02em; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.cabecera-pag { padding-block: 16px 40px; }
.cabecera-pag h1 { font-size: var(--t-art); letter-spacing: -0.04em; line-height: 1.04; margin-top: 4px; max-width: 18ch; }
.cabecera-pag .entradilla { font-size: clamp(18px, 1.6vw, 21px); color: var(--tiza-2); margin-top: 20px; max-width: 52ch; }
.meta { color: var(--tiza-2); font-size: 15px; margin-top: 20px; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.otros-idiomas { margin-top: 8px; font-size: 15px; color: var(--tiza-2); display: flex; flex-wrap: wrap; gap: 0 16px; align-items: center; }
.otros-idiomas a { min-height: 44px; display: inline-flex; align-items: center; }

/* Artículo: columna de lectura */
.art { max-width: 74ch; margin-inline: auto; }
.art .cabecera-pag h1 { max-width: none; }
.art .portada { margin-top: 28px; }
.prosa { font-size: 18px; line-height: 1.7; }
.prosa > * + * { margin-top: 1.1em; }
.prosa > h2 { font-size: var(--t-2); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; margin-top: 2.2em; scroll-margin-top: 16px; }
.prosa > h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.25; margin-top: 1.8em; scroll-margin-top: 16px; }
.prosa > h4 { font-size: 18px; font-weight: 800; margin-top: 1.6em; }
.prosa > h2 + *, .prosa > h3 + *, .prosa > h4 + * { margin-top: .7em; }
.prosa ul, .prosa ol { padding-left: 1.4em; }
.prosa li + li { margin-top: .4em; }
.prosa li > ul, .prosa li > ol { margin-top: .4em; }
.prosa ::marker { color: var(--tiza-2); }
.prosa strong { font-weight: 800; }
.prosa a { text-decoration-thickness: 1.5px; overflow-wrap: anywhere; }
.prosa blockquote { border-left: 3px solid var(--luz); padding: 2px 0 2px 1.2em; font-size: 1.08em; color: var(--tiza); }
.prosa blockquote > * + * { margin-top: .7em; }
.prosa hr { border: 0; border-top: 1px solid var(--raya); margin-block: 2.2em; }
.prosa code { font: 500 .88em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--noche-2); box-shadow: inset 0 0 0 1px var(--raya); border-radius: 6px; padding: .1em .4em; }
.prosa pre { background: var(--noche-2); box-shadow: inset 0 0 0 1px var(--raya); border-radius: var(--r-md); padding: 16px 18px; overflow-x: auto; font-size: 15px; line-height: 1.55; }
.prosa pre code { background: none; box-shadow: none; padding: 0; font-size: inherit; }
.prosa figure { margin-block: 1.8em; }
.prosa figure img, .portada img { display: block; border-radius: var(--r-md); }
.prosa figcaption, .portada figcaption { color: var(--tiza-2); font-size: 15px; margin-top: 10px; }
.prosa .boleto { margin-block: 1.8em; }
.tabla { overflow-x: auto; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--raya); margin-block: 1.8em; }
.tabla table { border-collapse: collapse; width: 100%; min-width: 30em; font-size: 16px; line-height: 1.45; }
.tabla th, .tabla td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--raya); }
.tabla th { font-weight: 800; background: var(--noche-2); white-space: nowrap; }
.tabla tr:last-child td { border-bottom: 0; }
.tabla .der { text-align: right; }
.tabla .cen { text-align: center; }
.nota-aviso { margin-top: 2em; padding: 14px 18px; border-left: 3px solid var(--raya); font-size: 15px; line-height: 1.5; color: var(--tiza-2); }
.nota-aviso a { color: inherit; }
/* En el móvil la tabla cabe entera: sin ancho mínimo, menos relleno y cabeceras que pueden partirse */
@media (max-width: 560px) { .tabla table { min-width: 0; font-size: 14px; } .tabla th, .tabla td { padding: 9px 7px; } .tabla th { white-space: normal; } }

/* Llamada a la acción y relacionados */
.cta { margin-top: 64px; background: var(--noche-2); border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--raya); padding: clamp(24px, 4vw, 40px); display: grid; gap: 22px; justify-items: start; }
.cta p { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; text-wrap: balance; }
.relacionados { margin-top: 64px; }
.relacionados h2, .listado h2 { font-size: var(--t-2); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; }

/* Listados (portada del blog y temas) */
.listado { margin-top: 48px; }
.listado:first-of-type { margin-top: 0; }
.lista-art { list-style: none; padding: 0; margin-top: 12px; border-top: 1px solid var(--raya); }
.lista-art li { border-bottom: 1px solid var(--raya); }
.lista-art a { display: grid; gap: 6px; padding: 20px 0; text-decoration: none; color: var(--tiza); min-height: 44px; }
.lista-art h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.lista-art p { color: var(--tiza-2); font-size: 16px; }
.lista-art time { color: var(--tiza-2); font-size: 14px; }
@media (hover: hover) and (pointer: fine) { .lista-art a:hover h3 { color: var(--luz); text-decoration: underline; text-underline-offset: 4px; } }
.temas { list-style: none; padding: 0; margin-top: 12px; display: grid; gap: 0 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.temas li { border-top: 1px solid var(--raya); }
.temas a { display: grid; gap: 4px; padding: 18px 0; text-decoration: none; color: var(--tiza); min-height: 44px; }
.temas b { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.temas span { color: var(--tiza-2); font-size: 15px; }
@media (hover: hover) and (pointer: fine) { .temas a:hover b { color: var(--luz); text-decoration: underline; text-underline-offset: 4px; } }
.vacio { color: var(--tiza-2); margin-top: 16px; }
.ver-todos { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; font-weight: 700; }

/* Pie (igual que la maqueta) */
.pie-web { padding-block: 56px 72px; font-size: 15px; color: var(--tiza-2); border-top: 1px solid var(--raya); }
.pie-web .cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.pie-web h3 { font-size: 15px; font-weight: 800; color: var(--tiza); margin-bottom: 6px; letter-spacing: 0; }
.pie-web ul { list-style: none; padding: 0; }
.pie-web ul a { color: var(--tiza-2); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.legal { margin-top: 36px; display: grid; gap: 6px; font-size: 14px; }
.mas18 { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--tiza); color: var(--tiza); font-weight: 800; font-size: 15px; }
.pie-web .traders { margin-top: 12px; }
.pie-web .traders a { color: var(--tiza-2); display: inline-flex; align-items: center; min-height: 44px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } }
