/* Menú lateral de todo el sitio (feat/menu-lateral) — "app shell". Lo arma assets/menu-lateral/menu-lateral.js.
   Solo con html.ml-on (pantallas ≥1100px). html.ml-mini = barra achicada a solo íconos.
   Cero texto gris: la jerarquía sale del peso y el tamaño; el dorado marca dónde estás. */
:root {
  --ml-w: 272px; --ml-w-mini: 78px;
  --ml-bg: #070e1b; --ml-top: rgba(7,14,27,.82); --ml-ink: #eef3fa; --ml-gold: #f2c94c; --ml-gold2: #f7dc8a;
  --ml-line: rgba(214,226,244,.09); --ml-line2: rgba(214,226,244,.15); --ml-hover: rgba(214,226,244,.055);
  --ml-sel: rgba(242,201,76,.11); --ml-sel2: rgba(242,201,76,.07);
  --ml-sans: 'Instrument Sans', 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ml-ui: 'Instrument Sans', 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ml-serif: 'Instrument Serif', 'DM Serif Display', Georgia, serif;
  --ml-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --ml-ease: cubic-bezier(.23,1,.32,1);
}
.ml-side, .ml-crumb { display: none; }

/* ---------- estructura ---------- */
html.ml-on { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
html.ml-on body { padding-left: var(--ml-w); transition: padding-left .32s var(--ml-ease); }
html.ml-on.ml-mini body { padding-left: var(--ml-w-mini); }
html.ml-on .ml-side {
  display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 120;
  width: var(--ml-w); background: var(--ml-bg); border-right: 1px solid var(--ml-line);
  font-family: var(--ml-sans); color: var(--ml-ink); transition: width .32s var(--ml-ease);
}
html.ml-on.ml-mini .ml-side { width: var(--ml-w-mini); }

/* ---------- barra de arriba ---------- */
html.ml-on .navbar { background: var(--ml-top); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--ml-line); box-shadow: none; }
html.ml-on .navbar .nav-inner { max-width: none; height: 68px; padding: 0 36px; gap: 20px; }
html.ml-on .navbar .logo, html.ml-on .nav-links, html.ml-on .nav-burger { display: none !important; }
html.ml-on .ml-crumb { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; font: 500 15px/1 var(--ml-ui); color: var(--ml-ink); }
html.ml-on .ml-crumb .ml-cr-ic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--ml-sel); color: var(--ml-gold); }
html.ml-on .ml-crumb .ml-cr-ic svg { width: 18px; height: 18px; }
html.ml-on .ml-crumb .ml-cr-g { font-weight: 600; letter-spacing: -.005em; }
html.ml-on .ml-crumb .ml-cr-s { width: 5px; height: 5px; border-radius: 50%; background: var(--ml-gold); flex: none; }
html.ml-on .ml-crumb .ml-cr-o { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: mlFade .35s var(--ml-ease) both; }
html.ml-on #navUserArea { margin-left: auto; }
html.ml-on .nav-login-btn { background: none !important; border: 1px solid rgba(242,201,76,.55) !important; color: var(--ml-gold) !important; font: 600 14px/1 var(--ml-sans) !important; padding: 10px 18px !important; border-radius: 10px !important; transition: background-color .2s var(--ml-ease); }
html.ml-on .nav-login-btn:hover { background: var(--ml-sel) !important; }
/* la cinta de precios va debajo de la barra, fina y discreta */
html.ml-on .ticker-bar { border-bottom: 1px solid var(--ml-line); background: rgba(7,14,27,.55); }

/* las pestañas internas que ya están en el menú se esconden; Mercados las conserva debajo del título */
html.ml-on #calTabs, html.ml-on #pfSecNav, html.ml-on #proNav, html.ml-on .nt-switch, html.ml-on #adNav { display: none !important; }

/* ---------- cabecera del menú ---------- */
.ml-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 96px; padding: 0 14px 0 20px; border-bottom: 1px solid var(--ml-line); flex: none; }
.ml-logo { display: flex; align-items: center; gap: 13px; min-width: 0; text-decoration: none; color: var(--ml-ink); border-radius: 12px; }
.ml-mark { width: 46px; height: 46px; flex: none; display: grid; place-items: center; filter: drop-shadow(0 6px 18px rgba(242,201,76,.18)); }
.ml-mark .mi-mark { width: 46px; height: 46px; }
.ml-brand { display: flex; flex-direction: column; line-height: 1; white-space: nowrap; overflow: hidden; }
.ml-brand b { font: 400 22px/1 'Instrument Serif', 'DM Serif Display', Georgia, serif; letter-spacing: .005em; color: var(--ml-ink); }
.ml-brand small { font: 600 10px/1 var(--ml-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ml-gold); margin-top: 7px; }
.ml-col { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--ml-line); background: none; color: var(--ml-ink); cursor: pointer; transition: background-color .15s, border-color .15s, transform .32s var(--ml-ease); }
.ml-col svg { width: 17px; height: 17px; }
.ml-col:hover { background: var(--ml-hover); border-color: var(--ml-line2); }

/* ---------- lista ---------- */
.ml-list { flex: 1; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 20px 12px 28px; display: flex; flex-direction: column; gap: 3px; scrollbar-width: thin; scrollbar-color: rgba(214,226,244,.14) transparent; }
.ml-sep { border: 0; height: 1px; background: var(--ml-line); margin: 13px 10px; flex: none; }
.ml-ic { width: 20px; height: 20px; flex: none; }
.ml-ic--s { width: 17px; height: 17px; }

.ml-gh { position: relative; display: flex; align-items: center; border-radius: 11px; transition: background-color .2s var(--ml-ease); }
.ml-gl, .ml-chev, .ml-item { background: none; border: 0; color: var(--ml-ink); cursor: pointer; font-family: var(--ml-ui); }
.ml-gl { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 11px 13px; font-size: 15.5px; font-weight: 500; letter-spacing: -.01em; text-align: left; border-radius: 11px; }
.ml-gl:active, .ml-item:active { transform: scale(.985); }
.ml-chev { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 9px; margin-right: 4px; }
.ml-chev svg { width: 16px; height: 16px; transition: transform .3s var(--ml-ease); }
.ml-g.open .ml-chev svg { transform: rotate(180deg); }
@media (hover: hover) { .ml-gh:hover { background: var(--ml-hover); } .ml-chev:hover { background: var(--ml-hover); } .ml-item:hover:not(.on) { background: var(--ml-hover); } }
.ml-g.act > .ml-gh { background: var(--ml-sel); }
.ml-g.act > .ml-gh::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--ml-gold); box-shadow: 0 0 12px rgba(242,201,76,.55); }
.ml-g.act > .ml-gh .ml-gl, .ml-g.act > .ml-gh .ml-chev { color: var(--ml-gold); }
.ml-g.act > .ml-gh .ml-gl { font-weight: 600; }
.ml-t { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-pro { font: 600 9px/1 var(--ml-sans); letter-spacing: .12em; color: var(--ml-gold); margin-left: 9px; padding: 3px 5px; border: 1px solid rgba(242,201,76,.45); border-radius: 4px; vertical-align: 2px; }

.ml-gb { position: relative; display: flex; flex-direction: column; gap: 0; margin: 4px 0 10px 23px; padding: 2px 0 2px 0; border-left: 1px solid var(--ml-line2); animation: mlDrop .32s var(--ml-ease) both; }
.ml-gb .ml-item { animation: mlFade .4s var(--ml-ease) both; }
.ml-gb .ml-item:nth-child(2) { animation-delay: .02s; } .ml-gb .ml-item:nth-child(3) { animation-delay: .04s; } .ml-gb .ml-item:nth-child(4) { animation-delay: .06s; }
.ml-gb .ml-item:nth-child(5) { animation-delay: .08s; } .ml-gb .ml-item:nth-child(n+6) { animation-delay: .1s; }
.ml-item { position: relative; display: flex; align-items: center; gap: 10px; width: calc(100% - 8px); margin-left: 8px; padding: 8px 12px; font-size: 14.5px; font-weight: 500; letter-spacing: -.006em; text-align: left; border-radius: 8px; transition: background-color .18s var(--ml-ease), color .18s var(--ml-ease); }
.ml-item::before { content: ""; position: absolute; left: -9px; top: 50%; width: 5px; height: 1px; background: var(--ml-line2); transition: background-color .18s, width .18s var(--ml-ease); }
.ml-item.on { color: var(--ml-gold); font-weight: 600; background: var(--ml-sel2); }
.ml-item.on::after { content: ""; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 3px; border-radius: 3px; background: var(--ml-gold); box-shadow: 0 0 10px rgba(242,201,76,.5); }
.ml-item.on::before { background: var(--ml-gold); width: 7px; }
.ml-new { font: 600 9px/1 var(--ml-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ml-gold); margin-left: auto; }
.ml-cant { margin-left: auto; min-width: 22px; text-align: center; font: 500 11.5px/20px var(--ml-mono); color: var(--ml-ink); background: rgba(214,226,244,.07); border-radius: 6px; padding: 0 6px; }
.ml-item.on .ml-cant { background: rgba(242,201,76,.16); color: var(--ml-gold); }
.ml-new + .ml-cant { margin-left: 8px; }
.ml-sub-h { display: block; font: 600 10px/1 var(--ml-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--ml-gold); padding: 14px 12px 6px 20px; }
.ml-sub-h:first-child { padding-top: 6px; }
.ml-vacio { font: 400 13.5px var(--ml-ui); color: var(--ml-ink); padding: 8px 12px 8px 20px; }
.ml-gl:focus-visible, .ml-chev:focus-visible, .ml-item:focus-visible, .ml-col:focus-visible, .ml-logo:focus-visible { outline: 2px solid var(--ml-gold); outline-offset: 1px; }

/* pie del menú: Ayuda */
.ml-foot { flex: none; padding: 10px 12px 14px; border-top: 1px solid var(--ml-line); }
.ml-foot .ml-gl:hover { background: var(--ml-hover); }

/* ---------- versión achicada: solo íconos ---------- */
html.ml-mini .ml-top { padding: 0; justify-content: center; flex-direction: column; gap: 8px; height: 118px; }
html.ml-mini .ml-brand { display: none; }
html.ml-mini .ml-col { transform: rotate(180deg); }
html.ml-mini .ml-list { padding: 20px 11px; }
html.ml-mini .ml-gl { justify-content: center; padding: 12px 0; }
html.ml-mini .ml-gl .ml-t, html.ml-mini .ml-chev { display: none; }
html.ml-mini .ml-g.act > .ml-gh::before { left: -11px; }
html.ml-mini .ml-sep { margin: 10px 8px; }

/* ---------- movimiento: cada sección entra con un fundido suave al mostrarse ---------- */
@keyframes mlFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes mlDrop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes mlRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ====================================================================
   MERCADOS · panel derecho más prolijo
   ==================================================================== */
html.ml-on #mercados.mt { padding: 30px 0 48px; background: transparent; }
html.ml-on #mercados .mt-wrap { width: min(1480px, 100% - 72px); }
/* título sobrio, con subtítulo; las pestañas de activos quedan justo debajo */
html.ml-on #mercados .mt-top { padding-bottom: 0; align-items: flex-end; }
html.ml-on #mercados .mt-title { font-size: 38px; gap: 14px; letter-spacing: -.01em; }
html.ml-on #mercados .mt-live { width: 9px; height: 9px; }

/* pestañas de tipos de activo: subrayado dorado que se desliza, con ícono */
html.ml-on #mercados .mt-bar { margin: 22px 0 24px; padding: 0; border-bottom: 1px solid var(--ml-line); gap: 16px; align-items: flex-end; }
html.ml-on #mercados .mt-bar .mt-tabs { position: relative; gap: 2px; margin: 0; padding: 0; overflow-x: auto; }
html.ml-on #mercados .mt-tabs .mkt-tab {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 0 !important;
  background: none !important; border: 0 !important; color: var(--ml-ink) !important; font: 500 14.5px/1 var(--ml-ui) !important;
  letter-spacing: -.003em; transition: color .2s var(--ml-ease);
}
html.ml-on #mercados .mt-tabs .mkt-tab:hover { color: var(--ml-gold2) !important; }
html.ml-on #mercados .mt-tabs .mkt-tab.active { color: var(--ml-gold) !important; font-weight: 600 !important; }
html.ml-on #mercados .mt-tabs .mkt-tab:not(.mkt-tab-fav) > svg { display: none; }
html.ml-on #mercados .mt-tabs .mkt-tab-fav > svg { width: 15px; height: 15px; color: var(--ml-gold); fill: var(--ml-gold); }
html.ml-on #mercados .mt-dl { padding: 0 10px; }
html.ml-on #mercados .mt-dl b { font-size: 18px; }
html.ml-on #mercados .mt-card b { font-size: 20px; }
html.ml-on #mercados .mt-tabs .mkt-tab-fav-count { font: 500 11px/18px var(--ml-mono); padding: 0 6px; border-radius: 5px; background: rgba(214,226,244,.08); color: var(--ml-ink); }
html.ml-on #mercados .mt-new { background: none !important; color: var(--ml-gold) !important; font: 600 9px/1 var(--ml-sans); letter-spacing: .12em; text-transform: uppercase; padding: 0; margin-left: 2px; }
html.ml-on #mercados .ml-tab-ind { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; border-radius: 2px 2px 0 0; background: var(--ml-gold); box-shadow: 0 0 14px rgba(242,201,76,.55); transition: transform .42s var(--ml-ease), width .42s var(--ml-ease); pointer-events: none; }
html.ml-on #mercados .mt-search { flex: 0 0 240px; margin-bottom: 7px; }

/* carteles de arriba: más aire y cifras más nítidas */
html.ml-on #mercados .mt-strip { gap: 14px; margin-bottom: 28px; }
html.ml-on #mercados .mt-card { border-radius: 16px; padding: 18px 18px 14px; transition: border-color .25s var(--ml-ease), transform .25s var(--ml-ease); }
@media (hover: hover) { html.ml-on #mercados .mt-card:hover { border-color: rgba(242,201,76,.32); transform: translateY(-2px); } }
html.ml-on #mercados .mt-c-top { font: 500 13.5px var(--ml-sans); }
html.ml-on #mercados .mt-card b, html.ml-on #mercados .mt-dl b { letter-spacing: -.02em; }

/* cuerpo: lista + detalle dentro de un panel con borde, como una app */
html.ml-on #mercados .mt-body { gap: 0; border: 1px solid var(--ml-line); border-radius: 18px; background: linear-gradient(180deg, rgba(15,30,54,.55), rgba(8,16,31,.55)); overflow: clip; }
html.ml-on #mercados .mt-left { padding: 6px 6px 8px; }
html.ml-on #mercados .mt-table { border-top: 0; }
html.ml-on #mercados .mt-head { padding: 15px 14px 13px; font: 600 10.5px/1 var(--ml-sans); letter-spacing: .14em; color: var(--ml-ink); }
html.ml-on #mercados .mt-body .mkt-row { padding: 13px 14px; border-radius: 10px; border-bottom-color: rgba(214,226,244,.05); transition: background-color .2s var(--ml-ease); }
html.ml-on #mercados .mt-body .mkt-row:hover { background: rgba(214,226,244,.04); }
html.ml-on #mercados .mt-body .mkt-row.mt-sel { background: var(--ml-sel2); box-shadow: inset 3px 0 0 var(--ml-gold); }
html.ml-on #mercados .mkt-row .mr-ticker { font: 600 14px/1.2 var(--ml-sans); }
html.ml-on #mercados .mkt-row .mr-name { font-size: 12.5px; color: var(--ml-ink); }
html.ml-on #mercados .mkt-row .mr-price, html.ml-on #mercados .mkt-row .mr-chg { font-size: 13.5px; }
/* solo escritorio: en el celular el panel es una hoja fija y necesita su fondo opaco */
@media (min-width: 1001px) { html.ml-on #mercados .mt-detail { top: 88px; padding: 26px 28px 24px; border-left: 1px solid var(--ml-line); background: rgba(7,14,27,.35); } }
html.ml-on #mercados .mt-d-h h3 { font-size: 24px; }
html.ml-on #mercados .mt-d-px b { font-size: 34px; }
html.ml-on #mercados .mt-seg button.on { background: var(--ml-sel); color: var(--ml-gold); }

@media (prefers-reduced-motion: reduce) {
  html.ml-on body, html.ml-on .ml-side, .ml-col, .ml-chev svg, .ml-item, .ml-gh, html.ml-on #mercados .ml-tab-ind { transition: none; }
  .ml-gb, .ml-gb .ml-item, html.ml-on .ml-crumb .ml-cr-o { animation: none; }
}

/* ====================================================================
   ENCABEZADO PAREJO EN TODAS LAS SECCIONES
   Mismo ancho, misma letra, misma posición; sin animación. Los títulos
   originales de cada sección se esconden para no repetir.
   ==================================================================== */
html.ml-on section[data-tab]:not([data-tab="inicio"]):not([data-tab="asesoria"]) { padding-top: 0 !important; }
html.ml-on section[data-tab]:not([data-tab="inicio"]):not([data-tab="asesoria"]) > .container,
html.ml-on section[data-tab] > .mt-wrap, html.ml-on section[data-tab] > .cal-wrap, html.ml-on section[data-tab] > .nt-wrap,
html.ml-on .ml-ph {
  width: min(1360px, 100% - 96px) !important; max-width: none !important; margin-left: auto !important; margin-right: auto !important;
  padding-left: 0 !important; padding-right: 0 !important; box-sizing: border-box;
}
html.ml-on .ml-ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 44px 0 26px !important; margin-bottom: 26px; border-bottom: 1px solid var(--ml-line); }
.ml-ph-in { min-width: 0; }
.ml-ph-t { margin: 0; font: 400 40px/1.05 var(--ml-serif); letter-spacing: -.012em; color: var(--ml-ink); font-style: normal; }
.ml-ph-d { margin: 12px 0 0; font: 400 16px/1.5 var(--ml-ui); letter-spacing: -.004em; color: var(--ml-ink); max-width: 62ch; }
.ml-ph-live { flex: none; display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1 var(--ml-ui); color: var(--ml-ink); padding: 8px 12px; border: 1px solid var(--ml-line2); border-radius: 999px; }
.ml-ph-live i { width: 7px; height: 7px; border-radius: 50%; background: #4fc48c; box-shadow: 0 0 0 3px rgba(79,196,140,.16); }

/* títulos originales: fuera (el encabezado nuevo los reemplaza) */
html.ml-on #mercados .mt-top { display: none !important; }
html.ml-on section[data-tab]:not([data-tab="inicio"]):not([data-tab="asesoria"]) h2.section-title { display: none !important; }
html.ml-on #mercados.mt { padding-top: 0 !important; }
html.ml-on #mercados .mt-bar { margin-top: 0 !important; }

/* Pro: la marca "Manfredi PRO" repetía el encabezado */
html.ml-on #inversiones .pro-top { display: none !important; }

/* ====================================================================
   CELULAR Y TABLET (<1100px): el mismo menú, como cajón
   html.ml-on.ml-movil · se abre con el botón de la barra de arriba
   ==================================================================== */
.ml-burger, .ml-cerrar, .ml-velo { display: none; }
html.ml-movil body { padding-left: 0; }
html.ml-movil .ml-side {
  width: min(318px, 86vw); z-index: 1300; transform: translateX(-102%); visibility: hidden;
  transition: transform .42s var(--ml-ease), visibility 0s linear .42s; box-shadow: none;
}
html.ml-movil.ml-abierto .ml-side { transform: none; visibility: visible; transition: transform .42s var(--ml-ease), visibility 0s; box-shadow: 30px 0 80px -30px rgba(0,0,0,.8); }
html.ml-movil .ml-velo {
  display: block; position: fixed; inset: 0; z-index: 1290; background: rgba(3,7,15,.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .35s var(--ml-ease);
}
html.ml-movil.ml-abierto .ml-velo { opacity: 1; pointer-events: auto; }
html.ml-movil.ml-abierto, html.ml-movil.ml-abierto body { overflow: hidden; }
html.ml-movil .ml-top { height: 76px; padding: 0 12px 0 18px; }
html.ml-movil .ml-col { display: none; }
html.ml-movil .ml-cerrar { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; border: 1px solid var(--ml-line2); background: none; color: var(--ml-ink); cursor: pointer; }
html.ml-movil .ml-cerrar svg { width: 17px; height: 17px; }
html.ml-movil .ml-mark, html.ml-movil .ml-mark .mi-mark { width: 40px; height: 40px; }
html.ml-movil .ml-gl { padding: 12px 13px; font-size: 16px; }
html.ml-movil .ml-item { padding: 10px 12px; font-size: 15px; }
html.ml-movil .ml-foot { padding-bottom: max(14px, env(safe-area-inset-bottom)); }

/* barra de arriba en celular: oscura, fina, con el botón del menú y dónde estás */
html.ml-movil .navbar { position: sticky; top: 0; z-index: 1200; background: rgba(7,14,27,.86); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--ml-line); box-shadow: none; }
html.ml-movil .navbar .nav-inner { height: 60px; padding: 0 14px; gap: 10px; max-width: none; }
html.ml-movil .nav-sheet, html.ml-movil .nav-burger { display: none !important; }
html.ml-movil .ml-burger { display: grid; place-items: center; width: 40px; height: 40px; flex: none; margin-left: -4px; border-radius: 12px; border: 1px solid var(--ml-line2); background: rgba(214,226,244,.04); color: var(--ml-ink); cursor: pointer; transition: border-color .2s var(--ml-ease), transform .2s var(--ml-ease); }
html.ml-movil .ml-burger svg { width: 20px; height: 20px; }
html.ml-movil .ml-burger:active { transform: scale(.94); }
html.ml-movil .ml-burger:focus-visible, html.ml-movil .ml-cerrar:focus-visible { outline: 2px solid var(--ml-gold); outline-offset: 2px; }
html.ml-movil .ml-crumb { gap: 9px; font-size: 15px; }
html.ml-movil .ml-crumb .ml-cr-ic { display: none; }
html.ml-movil .ml-crumb .ml-cr-s, html.ml-movil .ml-crumb .ml-cr-o { display: none; }
html.ml-movil .ml-crumb .ml-cr-g { font: 400 21px/1 var(--ml-serif); letter-spacing: -.01em; }
html.ml-movil .mi-tema { width: 36px; height: 36px; margin-right: 2px; }
html.ml-movil #navUserArea .np-btn .np-name, html.ml-movil #navUserArea .np-btn .np-caret { display: none !important; }
html.ml-movil .nav-login-btn { padding: 9px 13px !important; font-size: 13.5px !important; }

/* en celular las sub-pestañas de cada sección quedan a mano (deslizables), con el mismo estilo que Mercados */
html.ml-movil #calTabs, html.ml-movil #pfSecNav, html.ml-movil #proNav, html.ml-movil .nt-switch, html.ml-movil #adNav { display: flex !important; }

/* encabezado parejo, a la medida del celular */
html.ml-movil section[data-tab]:not([data-tab="inicio"]):not([data-tab="asesoria"]) > .container,
html.ml-movil section[data-tab] > .mt-wrap, html.ml-movil section[data-tab] > .cal-wrap, html.ml-movil section[data-tab] > .nt-wrap,
html.ml-movil .ml-ph { width: calc(100% - 32px) !important; }
html.ml-movil .ml-ph { padding: 30px 0 18px !important; margin-bottom: 18px; gap: 14px; align-items: flex-start; flex-direction: column; }
html.ml-movil .ml-ph-t { font-size: 34px; }
html.ml-movil .ml-ph-d { font-size: 15px; margin-top: 8px; }
html.ml-movil .ml-ph-live { padding: 6px 10px; font-size: 12px; }
html.ml-movil #mercados .mt-wrap { width: calc(100% - 32px); }
html.ml-movil #mercados .mt-bar { flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
html.ml-movil #mercados .mt-bar .mt-tabs { width: 100%; scrollbar-width: none; }
html.ml-movil #mercados .mt-bar .mt-tabs::-webkit-scrollbar { display: none; }
html.ml-movil #mercados .mt-tabs .mkt-tab { height: 42px; padding: 0 11px; flex: none; }
html.ml-movil #mercados .mt-search { flex: 1 1 100%; margin-bottom: 4px; }
html.ml-movil #mercados .mt-body { border-radius: 16px; }
html.ml-movil #mercados .mt-detail { border-left: 0; border-top: 1px solid var(--ml-line); padding: 20px 16px; }
@media (prefers-reduced-motion: reduce) { html.ml-movil .ml-side, html.ml-movil .ml-velo { transition: none; } }
html.ml-movil[data-ml-g="datos"] .nt-switch { display: none !important; }

/* ====================================================================
   TERMINACIONES (fix/carga-movil-bienvenida): las mismas de la bienvenida
   títulos más ajustados, entrada de borroso a nítido, botón de ingreso en píldora
   ==================================================================== */
.ml-ph-t { letter-spacing: -.022em; }
html.ml-on .ml-ph-in { animation: mlNitido .7s var(--ml-ease) both; }
html.ml-on .ml-ph-live { animation: mlNitido .7s var(--ml-ease) .08s both; }
@keyframes mlNitido { from { opacity: 0; filter: blur(8px); transform: translateY(8px); } to { opacity: 1; filter: none; transform: none; } }
html.ml-on .nav-login-btn {
  display: inline-flex !important; align-items: center; gap: 10px; height: 40px; padding: 0 5px 0 16px !important;
  background: #fffdf8 !important; color: #0b1526 !important; border: 0 !important; border-radius: 999px !important;
  font: 500 14px/1 var(--ml-ui) !important; letter-spacing: -.005em; transition: transform .2s var(--ml-ease), box-shadow .3s var(--ml-ease) !important;
}
html.ml-on .nav-login-btn::after {
  content: ""; width: 30px; height: 30px; border-radius: 50%; flex: none; background: #0b1526 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fffdf8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .35s var(--ml-ease);
}
html.ml-on .nav-login-btn:hover { background: #fffdf8 !important; box-shadow: 0 0 0 4px rgba(255,253,248,.12); }
html.ml-on .nav-login-btn:hover::after { transform: translateX(2px); }
html.ml-on .nav-login-btn:active { transform: scale(.97); }
html.ml-movil .nav-login-btn { height: 38px; padding: 0 4px 0 14px !important; font-size: 13.5px !important; }
html.ml-movil .nav-login-btn::after { width: 30px; height: 30px; }
@media (prefers-reduced-motion: reduce) { html.ml-on .ml-ph-in, html.ml-on .ml-ph-live { animation: none; } }

/* ====================================================================
   27-nov · títulos sin bajada y panel izquierdo más fino
   ==================================================================== */
/* encabezado: solo el título, el contenido sube */
.ml-ph-d { display: none !important; }
html.ml-on .ml-ph { padding: 30px 0 18px !important; margin-bottom: 22px; align-items: center; }
html.ml-movil .ml-ph { padding: 22px 0 14px !important; margin-bottom: 16px; flex-direction: row; align-items: center; }
/* otras bajadas debajo de títulos */
.ad-chart__d, .uv-head__meta { display: none !important; }

/* panel izquierdo: letra más liviana, más aire, menos peso visual en lo activo */
.ml-brand b { font: 400 25px/1 'Instrument Serif', 'DM Serif Display', Georgia, serif; letter-spacing: -.01em; font-size-adjust: .47; }
.ml-brand small { font: 500 9.5px/1 'Instrument Sans', sans-serif; letter-spacing: .24em; margin-top: 6px; }
.ml-side .ml-ic { stroke-width: 1.45; width: 19px; height: 19px; }
.ml-gl { font-weight: 400; font-size: 15px; letter-spacing: -.004em; gap: 13px; padding: 10px 12px; }
.ml-g.act > .ml-gh .ml-gl { font-weight: 500; }
.ml-g.act > .ml-gh { background: rgba(242,201,76,.065); }
.ml-g.act > .ml-gh::before { width: 2px; box-shadow: none; top: 11px; bottom: 11px; }
.ml-item { font-weight: 400; font-size: 14px; letter-spacing: -.002em; padding: 7px 12px; }
.ml-item.on { font-weight: 500; background: none; }
.ml-item.on::after { width: 2px; box-shadow: none; left: -10px; }
.ml-sub-h { font: 500 9.5px/1 'Instrument Sans', sans-serif; letter-spacing: .2em; padding: 16px 12px 6px 20px; }
.ml-gb { border-left-color: rgba(214,226,244,.1); margin-top: 2px; }
.ml-pro { font-weight: 500; letter-spacing: .14em; padding: 2px 5px; border-color: rgba(242,201,76,.35); }
.ml-new { font-weight: 500; letter-spacing: .14em; }
.ml-cant { font-size: 11px; background: none; border: 1px solid rgba(214,226,244,.12); line-height: 18px; }
.ml-sep { margin: 12px 12px; background: rgba(214,226,244,.07); }
.ml-chev svg { width: 14px; height: 14px; stroke-width: 1.6; }
