/* Mercados · diseño Terminal. Todo va bajo #mercados para pisar los estilos
   viejos de la sección sin tocar el resto del sitio. */
#mercados.mt {
  --mt-bg: #060d19; --mt-p1: #0b1629; --mt-p2: #0f1e36; --mt-line: rgba(226,234,245,.09); --mt-line2: rgba(226,234,245,.16);
  --mt-ink: #f4f7fb; --mt-ink2: #f3f6fb; --mt-soft: #f3f6fb; --mt-gold: #f2c94c; --mt-gold2: #f7dc8a; --mt-up: #4fc48c; --mt-dn: #ee7369;
  background: var(--mt-bg); color: var(--mt-ink); padding: 34px 0 40px;
}
#mercados.mt .up { color: var(--mt-up); } #mercados.mt .dn { color: var(--mt-dn); }
#mercados .mt-wrap { width: min(1440px, 100% - 40px); margin: 0 auto; }

/* encabezado */
#mercados .mt-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 22px; }
#mercados .mt-title { display: flex; align-items: center; gap: 16px; font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: clamp(40px, 4.4vw, 62px); line-height: 1; letter-spacing: -.015em; color: var(--mt-ink); margin: 0; }
#mercados .mt-title em { color: var(--mt-gold); font-style: italic; }
#mercados .mt-live { width: 10px; height: 10px; border-radius: 50%; background: var(--mt-up); box-shadow: 0 0 0 0 rgba(79,196,140,.55); animation: mtPulse 2.2s infinite; flex: none; }
@keyframes mtPulse { 70% { box-shadow: 0 0 0 9px rgba(79,196,140,0); } 100% { box-shadow: 0 0 0 0 rgba(79,196,140,0); } }
#mercados .mt-top { align-items: center; }
#mercados .mt-top-r { display: flex; align-items: center; gap: 14px; flex: 1; justify-content: flex-end; min-width: 280px; }
/* buscador: va en la fila de pestañas, a la derecha, como una píldora fina;
   "/" lo enfoca. Si las pestañas no entran, se esfuman en el borde (.mt-corta) */
#mercados .mt-bar { display: flex; align-items: center; gap: 12px; margin: 26px 0 14px; }
#mercados .mt-bar .mt-tabs { margin: 0; flex: 1 1 auto; min-width: 0; }
#mercados .mt-bar .mt-tabs.mt-corta { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
#mercados .mt-search { position: relative; margin: 0; flex: 0 0 192px; }
#mercados .mt-search .mkt-search-input { height: 40px; padding: 0 38px 0 38px; background: rgba(255,255,255,.03); border: 1px solid var(--mt-line2); border-radius: 999px; font-size: 13.5px; color: var(--mt-ink); transition: border-color .2s, background-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
#mercados .mt-search .mkt-search-input::-webkit-search-cancel-button { display: none; }
#mercados .mt-search .mkt-search-input:hover { border-color: rgba(226,234,245,.26); }
#mercados .mt-search .mkt-search-input:focus { outline: none; background: var(--mt-p1); border-color: rgba(242,201,76,.55); box-shadow: 0 0 0 4px rgba(242,201,76,.08); }
#mercados .mt-search .mkt-search-input::placeholder { color: var(--mt-soft); opacity: .8; }
#mercados .mt-search .mkt-search-icon { left: 15px; color: var(--mt-ink); opacity: .8; }
#mercados .mt-search:focus-within .mkt-search-icon { color: var(--mt-gold2); opacity: 1; }
#mercados .mt-kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); min-width: 20px; height: 20px; display: grid; place-items: center; font: 500 11px/1 'IBM Plex Mono', monospace; color: var(--mt-ink); border: 1px solid var(--mt-line2); border-radius: 5px; pointer-events: none; transition: opacity .15s; }
#mercados .mt-search:focus-within .mt-kbd, #mercados .mt-search.has-q .mt-kbd { opacity: 0; }
#mercados .mt-search .mkt-search-clear { right: 10px; font-size: 17px; }
#mercados #apiStatus { color: var(--mt-soft); white-space: nowrap; }

/* carteles de arriba: líneas que se mueven y brillan */
#mercados .mt-strip { display: grid; grid-template-columns: 2.5fr repeat(5, minmax(0, 1fr)); gap: 12px; }
#mercados .mt-strip-sk { padding: 18px 22px; color: var(--mt-soft); font-size: 14px; grid-column: 1 / -1; }
#mercados .mt-card { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 16px 16px 12px; border-radius: 18px; border: 1px solid var(--mt-line); background: linear-gradient(180deg, var(--mt-p2), var(--mt-p1)); overflow: hidden; }
#mercados .mt-c-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--mt-ink2); white-space: nowrap; }
#mercados .mt-card b, #mercados .mt-dl b { font-family: 'IBM Plex Mono', monospace; font-weight: 500; font-size: 22px; letter-spacing: -.03em; color: var(--mt-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#mercados .mt-c-pill { font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 6px; }
#mercados .mt-c-pill.up { color: var(--mt-up); background: rgba(79,196,140,.13); } #mercados .mt-c-pill.dn { color: var(--mt-dn); background: rgba(238,115,105,.13); }
#mercados .mt-card--dolar { border-color: rgba(242,201,76,.32); background: radial-gradient(90% 140% at 0% 0%, rgba(242,201,76,.12), transparent 60%), linear-gradient(180deg, var(--mt-p2), var(--mt-p1)); }
#mercados .mt-card--dolar > .mt-c-top { color: var(--mt-gold2); font-weight: 600; }
#mercados .mt-c-src { font-weight: 400; font-size: 12px; color: var(--mt-soft); }
#mercados .mt-dls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); flex: 1; }
#mercados .mt-dl { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 0 12px; border-left: 1px solid var(--mt-line); }
#mercados .mt-dl:first-child { padding-left: 0; border-left: 0; }
#mercados .mt-dl-l { font-size: 13px; color: var(--mt-ink2); }
#mercados .mt-dl b { font-size: 21px; }
#mercados .mt-dl:first-child b { color: var(--mt-gold2); }
#mercados .mt-dl-p { line-height: 1; }
#mercados .mt-dl-p .mt-c-pill { font-size: 11.5px; padding: 2px 6px; }
#mercados .mt-dl .mt-spark { height: 30px; margin-top: 6px; }
#mercados .mt-card--rp b { color: var(--mt-gold2); }
#mercados .mt-spark { position: relative; height: 40px; margin-top: auto; }
#mercados .mt-spark svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#mercados .mt-sp-line { fill: none; stroke: var(--c); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .55; }
#mercados .mt-sp-flow { fill: none; stroke: var(--c); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 18 82; stroke-dashoffset: 100; filter: drop-shadow(0 0 3px var(--c)) drop-shadow(0 0 7px var(--c)); animation: mtFlow var(--dur, 3s) linear infinite; }
#mercados .mt-sp-area { animation: mtBreath calc(var(--dur, 3s) * 1.6) ease-in-out infinite; }
#mercados .mt-sp-dot { position: absolute; right: -3px; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--c); animation: mtDot var(--dur, 3s) ease-out infinite; }
@keyframes mtFlow { to { stroke-dashoffset: 0; } }
@keyframes mtBreath { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes mtDot { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 70%, transparent); } 80%, 100% { box-shadow: 0 0 0 9px transparent; } }

/* cuerpo: pestañas arriba; lista + panel fijo al costado */
#mercados .mt-tabs { display: flex; flex-wrap: nowrap; gap: 4px; margin: 26px 0 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
#mercados .mt-tabs::-webkit-scrollbar { display: none; }
#mercados .mt-tabs .mkt-tab { flex: 0 0 auto; white-space: nowrap; border: 1px solid transparent !important; color: var(--mt-ink2); background: transparent; }
#mercados .mt-tabs .mkt-tab:hover { background: rgba(255,255,255,.05); color: var(--mt-ink); border-color: transparent !important; }
#mercados .mt-tabs .mkt-tab.active { background: var(--mt-gold) !important; color: #0a1120 !important; border-color: var(--mt-gold) !important; font-weight: 600 !important; }
#mercados .mt-tabs .mkt-tab-fav { color: var(--mt-gold2); }
#mercados .mt-new { margin-left: 7px; font-size: 10.5px; font-weight: 700; color: #0a1120; background: var(--mt-gold2); border-radius: 5px; padding: 1px 6px; }
#mercados .mkt-tab.active .mt-new { background: #0a1120; color: var(--mt-gold); }
#mercados .mt-body { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 22px; align-items: start; }
#mercados .mt-body.mt-wide { grid-template-columns: minmax(0, 1fr); }
#mercados .mt-body.mt-wide .mt-detail { display: none; }
#mercados .mt-left { min-width: 0; }

/* tabla: mismo lenguaje que la de Portfolio (líneas finas, sin caja, encabezado chico) */
#mercados .mt-table, #mercados .mt-results { background: transparent; border: 0; border-top: 1px solid var(--mt-line); border-radius: 0; overflow: hidden; max-height: none; }
#mercados .mt-head, #mercados .mt-body .mkt-row { grid-template-columns: 22px minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, .8fr) minmax(0, .8fr); gap: 12px; }
#mercados .mt-head { padding: 13px 10px 12px; background: transparent; border-bottom: 1px solid var(--mt-line); font: 600 10.5px/1 'IBM Plex Sans', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--mt-soft); }
#mercados .mt-head .r { text-align: right; }
#mercados .mt-body .mkt-row { padding: 11px 10px; border-bottom: 1px solid rgba(255,255,255,.055); font-size: 13px; transition: background-color .15s; }
#mercados .mt-body .mkt-row:hover { background: rgba(255,255,255,.025); }
#mercados .mt-body .mkt-row.mt-sel { background: rgba(255,255,255,.035); box-shadow: inset 2px 0 0 rgba(217,195,145,.85); }
#mercados .mkt-row .mr-name-wrap { gap: 11px; }
#mercados .mkt-row .mr-tx { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
#mercados .mkt-row .mr-logo { width: 26px; height: 26px; border-radius: 7px; background: #fff; padding: 2px; }
#mercados .mkt-row .mr-logo-fallback { background: #13243b; color: var(--mt-ink); font: 600 11.5px/26px 'IBM Plex Sans', sans-serif; padding: 0; }
#mercados .mkt-row .mr-ticker { font: 600 13.5px/1.2 'IBM Plex Sans', sans-serif; letter-spacing: .01em; color: var(--mt-ink); }
#mercados .mkt-row .mr-name { font-size: 12px; color: var(--mt-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#mercados .mkt-row .mr-fav-badge { margin-left: 6px; font-family: 'IBM Plex Sans', sans-serif; text-transform: none; letter-spacing: 0; }
#mercados .mkt-row .mr-price { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--mt-ink); }
#mercados .mkt-row .mr-chg { font-family: 'IBM Plex Mono', monospace; font-size: 13px; }
#mercados .mkt-row .mr-chg .mt-chip { background: none; padding: 0; }
#mercados .mkt-row .mr-chg.pos { color: var(--mt-up); } #mercados .mkt-row .mr-chg.neg { color: var(--mt-dn); }
#mercados .mkt-row .mr-chg.neutral { color: var(--mt-soft); }
#mercados .mkt-row .mr-vol { text-align: right; font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: var(--mt-ink2); }
#mercados .mkt-star-btn { color: var(--mt-soft); opacity: .5; transition: opacity .15s; }
#mercados .mkt-row:hover .mkt-star-btn, #mercados .mkt-star-btn:focus-visible { opacity: 1; }
#mercados .mkt-show-all { font: 500 12.5px 'IBM Plex Sans', sans-serif; text-transform: none; letter-spacing: 0; color: var(--mt-gold2); padding: 14px; background: none; border: 0; }
#mercados .mkt-show-all:hover { background: rgba(255,255,255,.025); }
#mercados .mkt-row-msg, #mercados .mkt-search-empty { color: var(--mt-soft); font-size: 13px; }
#mercados .mt-foot { margin: 14px 0 0; text-align: right; font-size: 12px; color: var(--mt-soft); }

/* panel del gráfico: sin caja, separado de la tabla por una línea fina */
#mercados .mt-detail { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 18px; padding: 2px 0 0 30px; border: 0; border-left: 1px solid var(--mt-line); border-radius: 0; background: none; min-height: 560px; }
#mercados .mt-d-top { display: flex; flex-direction: column; gap: 16px; }
#mercados .mt-d-id { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
#mercados .mt-d-empty { margin: auto; color: var(--mt-soft); font-size: 13.5px; text-align: center; }
#mercados .mt-d-close { display: none; }
#mercados .mt-d-h { display: flex; align-items: center; gap: 12px; }
#mercados .mt-d-logo { width: 34px !important; height: 34px !important; border-radius: 9px !important; background: #fff; padding: 3px; flex: none; object-fit: contain; }
#mercados .mt-d-logo.mr-logo-fallback { background: #13243b; color: var(--mt-ink); font: 600 14px/34px 'IBM Plex Sans', sans-serif; padding: 0; text-align: center; }
#mercados .mt-d-h h3 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 21px; line-height: 1.1; color: var(--mt-ink); margin: 0; }
#mercados .mt-d-h small { display: block; font-size: 12px; color: var(--mt-soft); margin-top: 3px; }
#mercados .mt-d-px { display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; }
#mercados .mt-d-px b { font-family: 'IBM Plex Mono', monospace; font-weight: 500; font-size: 30px; letter-spacing: -.03em; color: var(--mt-ink); }
#mercados .mt-d-hoy, #mercados .mt-d-var { font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 500; }
#mercados .mt-d-var small { font-family: 'IBM Plex Sans', sans-serif; font-weight: 400; font-size: 12px; color: var(--mt-soft); margin-left: 6px; }
/* controles: texto chico en una sola fila, grupos separados por una línea */
#mercados .mt-d-ctl { display: flex; align-items: center; gap: 6px 0; flex-wrap: wrap; }
#mercados .mt-seg { display: inline-flex; gap: 2px; padding: 0 12px; border: 0; border-left: 1px solid var(--mt-line); border-radius: 0; background: none; }
#mercados .mt-seg:first-child { padding-left: 0; border-left: 0; }
#mercados .mt-seg button { padding: 5px 9px; border-radius: 6px; font: 500 12px 'IBM Plex Sans', sans-serif; color: var(--mt-ink2); background: none; border: 0; cursor: pointer; min-height: 28px; transition: color .15s, background-color .15s; }
#mercados .mt-seg button:hover { background: rgba(255,255,255,.04); }
#mercados .mt-seg button.on { background: rgba(255,255,255,.07); color: #e9d7a9; box-shadow: none; }
#mercados .mt-seg button:disabled { opacity: .35; cursor: not-allowed; }
#mercados .mt-d-chart { position: relative; flex: 1; min-height: 320px; border: 0; border-radius: 0; background: none; padding: 0; }
#mercados .mt-d-cv { position: absolute; inset: 0; }
#mercados .mt-d-msg { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; font-size: 13px; color: var(--mt-soft); background: none; border-radius: 0; }
#mercados .mt-d-msg.err { color: var(--mt-gold2); }
#mercados .mt-d-msg[hidden], #mercados .mt-fci[hidden], #mercados .mt-results[hidden] { display: none; }
/* cifras: fila con separadores finos, como los totales de Portfolio */
#mercados .mt-d-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; min-height: 44px; padding-top: 16px; border-top: 1px solid var(--mt-line); }
#mercados .mt-d-kpis div { display: flex; flex-direction: column; gap: 7px; padding: 0 16px; border: 0; border-left: 1px solid var(--mt-line); border-radius: 0; background: none; min-width: 0; }
#mercados .mt-d-kpis div:first-child { padding-left: 0; border-left: 0; }
#mercados .mt-d-kpis small { display: block; font: 600 10px/1 'IBM Plex Sans', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--mt-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#mercados .mt-d-kpis b { font-family: 'IBM Plex Mono', monospace; font-weight: 500; font-size: 14px; color: var(--mt-ink); white-space: nowrap; }

/* fondos comunes */
#mercados .mt-fci { background: transparent; border: 0; border-top: 1px solid var(--mt-line); border-radius: 0; overflow: hidden; }
#mercados .mt-f-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 10px 4px; }
#mercados .mt-f-h h3 em { color: var(--mt-gold); font-style: italic; }
#mercados .mt-f-src { font-size: 12px; color: var(--mt-gold2); }
#mercados .mt-f-h h3 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 21px; margin: 0; color: var(--mt-ink); }
#mercados .mt-f-cats { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 10px 14px; border-bottom: 1px solid var(--mt-line); }
#mercados .mt-f-cats button { font: 500 12.5px 'IBM Plex Sans', sans-serif; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--mt-line2); background: none; color: var(--mt-ink2); cursor: pointer; }
#mercados .mt-f-cats button.on { border-color: rgba(217,195,145,.55); color: #e9d7a9; background: rgba(255,255,255,.04); }
#mercados .mt-f-r { display: grid; grid-template-columns: 34px minmax(0, 2.6fr) repeat(4, minmax(0, .8fr)) minmax(0, 1fr); gap: 12px; align-items: center; padding: 11px 10px; border-bottom: 1px solid rgba(255,255,255,.055); font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--mt-ink); }
#mercados .mt-f-r > span:nth-child(n+3) { text-align: right; }
#mercados .mt-f-head { font: 600 10.5px/1 'IBM Plex Sans', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--mt-soft); padding-top: 13px; padding-bottom: 12px; border-bottom-color: var(--mt-line); }
#mercados .mt-f-n { font: 500 12px 'IBM Plex Mono', monospace; color: var(--mt-ink); }
#mercados .mt-f-r .mt-chip, #mercados .mt-f-r .mt-chip.up, #mercados .mt-f-r .mt-chip.dn { background: none; padding: 0; }
#mercados .mt-f-name { font-family: 'IBM Plex Sans', sans-serif; min-width: 0; }
#mercados .mt-f-name b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#mercados .mt-f-name small { font-size: 12px; color: var(--mt-soft); }
#mercados .mt-chip { font-style: normal; padding: 3px 8px; border-radius: 6px; }
#mercados .mt-chip.up { background: rgba(79,196,140,.12); } #mercados .mt-chip.dn { background: rgba(238,115,105,.12); }
#mercados .mt-f-note { margin: 0; padding: 14px 10px 6px; font-size: 12px; color: var(--mt-soft); }

/* celular: el gráfico se abre como hoja desde abajo */
@media (max-width: 1000px) {
  #mercados .mt-strip { display: flex; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
  #mercados .mt-strip::-webkit-scrollbar { display: none; }
  #mercados .mt-card { flex: 0 0 172px; scroll-snap-align: start; }
  #mercados .mt-card--dolar { flex-basis: 520px; }
  /* el gráfico es una hoja aparte: la tabla ocupa todo el ancho */
  #mercados .mt-body, #mercados .mt-body.mt-wide { grid-template-columns: minmax(0, 1fr); }
  /* buscador y "Datos en vivo" bajan a su propio renglón (antes se aplastaban a 9px) */
  #mercados .mt-top-r { min-width: 0; width: 100%; flex: 1 1 100%; justify-content: space-between; }
  #mercados .mt-bar { flex-wrap: wrap; gap: 12px; }
  #mercados .mt-search { flex: 1 1 100%; order: -1; }
  #mercados .mt-kbd { display: none; }
  #mercados .mt-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  #mercados .mt-detail { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 900; margin: 0; background: var(--mt-p1); border: 1px solid var(--mt-line2); border-bottom: 0; height: 90vh; height: 90dvh; min-height: 0; border-radius: 22px 22px 0 0; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); overflow-y: auto; transform: translateY(105%); transition: transform .45s cubic-bezier(.16,1,.3,1); box-shadow: 0 -30px 60px rgba(0,0,0,.6); }
  #mercados .mt-detail.open { transform: none; }
  #mercados .mt-body.mt-wide .mt-detail { display: flex; }
  #mercados .mt-d-close { display: grid; place-items: center; position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--mt-line2); background: var(--mt-bg); color: var(--mt-ink); font-size: 22px; line-height: 1; cursor: pointer; }
  #mercados .mt-d-h { padding-right: 46px; }
  #mercados .mt-d-px b { font-size: 28px; }
  #mercados .mt-d-chart { min-height: 280px; flex: none; height: 300px; }
  #mercados .mt-d-top { align-items: flex-start; }
  #mercados .mt-d-kpis { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  #mercados .mt-d-kpis div:nth-child(3) { padding-left: 0; border-left: 0; }
  #mercados .mt-seg, #mercados .mt-seg:first-child { padding: 0 10px 0 0; border-left: 0; }
  body.mt-sheet-open { overflow: hidden; }
  body.mt-sheet-open::after { content: ""; position: fixed; inset: 0; background: rgba(2,6,14,.6); z-index: 899; }
}
@media (max-width: 640px) {
  #mercados .mt-hide-s { display: none !important; }
  #mercados .mt-head, #mercados .mt-body .mkt-row { grid-template-columns: 20px minmax(0, 1.8fr) minmax(0, 1fr) minmax(0, .9fr); padding-left: 4px; padding-right: 4px; }
  #mercados .mkt-row .mr-logo { width: 24px; height: 24px; }
  #mercados .mt-f-r { grid-template-columns: 24px minmax(0, 2fr) repeat(2, minmax(0, .9fr)); padding: 11px 4px; }
  #mercados .mt-f-r > span:nth-child(4), #mercados .mt-f-r > span:nth-child(6) { display: none; }
  #mercados .mt-f-h, #mercados .mt-f-cats { padding-left: 4px; padding-right: 4px; }
  #mercados .mt-wrap { width: calc(100% - 32px); }
  /* dólar: entra entero en la pantalla, 2 x 2 */
  #mercados .mt-card--dolar { flex-basis: 100%; }
  #mercados .mt-dls { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  #mercados .mt-dl:nth-child(3) { padding-left: 0; border-left: 0; }
  #mercados .mt-top-r { flex-wrap: wrap; gap: 10px; }
  #mercados .mt-body .mkt-row > * { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { #mercados .mt-detail { transition: none; } #mercados .mt-sp-flow, #mercados .mt-sp-area, #mercados .mt-sp-dot, #mercados .mt-live { animation: none; } }

/* la regla general del sitio "td { border-bottom }" se metía en la tabla interna
   del gráfico y dibujaba una línea blanca entre precio y volumen */
#mercados .mt-d-cv table, #mercados .mt-d-cv tr, #mercados .mt-d-cv td { border: 0 !important; }
