/* ═══════════════════════════════════════════════════════════════════════════
   REDISEÑO 2026-09 · «Papel de precisión»

   Capa visual que se carga DESPUÉS de style.css (ver index.html). No cambia
   datos, APIs ni lógica: solo cómo se dibuja. La paleta es la del manual de
   identidad, sin un color nuevo de marca; lo que cambia es la forma:
     · profundidad (sombras cálidas) en lugar de bordes dentro de bordes
     · micro-gráficos donde antes había texto y guiones
     · la importancia decide el tamaño; el color de alerta vive en el medidor
     · movimiento solo donde hay un dato vivo
     · un sistema: 8 tamaños de letra, 5 radios, 3 sombras, íconos de línea

   Letras: Archivo (la del logotipo) en su versión ancha para títulos y cifras
   sueltas; Geist para la interfaz; Geist Mono para toda cifra que se compara
   (la regla de la casa: los números en columna van en monoespaciada).
   Geist y Geist Mono: SIL Open Font License 1.1, ver static/fonts/LEEME-GEIST.txt
   ═══════════════════════════════════════════════════════════════════════════ */

@font-face {
    font-family: "Geist";
    src: url("/static/fonts/geist-latin.woff2") format("woff2");
    font-weight: 100 900; font-style: normal; font-display: swap;
    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: "Geist";
    src: url("/static/fonts/geist-latin-ext.woff2") format("woff2");
    font-weight: 100 900; font-style: normal; font-display: swap;
    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;
}
@font-face {
    font-family: "Geist Mono";
    src: url("/static/fonts/geist-mono-latin.woff2") format("woff2");
    font-weight: 100 900; font-style: normal; font-display: swap;
    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: "Geist Mono";
    src: url("/static/fonts/geist-mono-latin-ext.woff2") format("woff2");
    font-weight: 100 900; font-style: normal; font-display: swap;
    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;
}

/* ── TOKENS ─────────────────────────────────────────────────────────────────
   Los nombres viejos (--bg, --text2, --mono…) se conservan con el mismo valor
   de marca, así todo style.css hereda la tipografía y los matices nuevos. */
:root {
    color-scheme: light;
    --bg:          #F6F5F1;
    --paper:       #F6F5F1;
    --paper-2:     #EFEBE3;   /* paso intermedio entre Papel y Borde: fondos de control */
    --paper-3:     #E4DED3;   /* pistas, barras vacías, punto medio del mapa */
    --surface:     #FFFFFF;
    --surface2:    #FAF6EE;
    --border:      #D9D3C7;
    --line:        rgba(51, 41, 27, .09);
    --line-2:      rgba(51, 41, 27, .16);
    --text:        #33291B;
    --text2:       #6E6656;
    --text3:       #938B7C;
    --ink:         #33291B;
    --up:          #0F9D6B;
    --up-ink:      #0A7A53;   /* verde alcista para cifras pequeñas (manual §4.4) */
    --up-tint:     rgba(15, 157, 107, .11);
    --down:        #C33B34;
    --down-tint:   rgba(195, 59, 52, .10);
    --warn:        #B5651D;
    --warn-tint:   rgba(181, 101, 29, .13);
    --yellow:      #9A6B24;
    --amber:       #9A6B24;
    --amber-tint:  rgba(154, 107, 36, .14);
    --brand:       #7ECB20;   /* identidad y «en vivo»: nunca texto, nunca «sube» */
    --brand-ink:   #416D10;   /* el verde de marca cuando tiene que leerse */
    --brand-tint:  rgba(126, 203, 32, .20);
    --brand-glow:  rgba(126, 203, 32, .55);
    --acento-marca:#7ECB20;
    --sh-1: 0 1px 2px rgba(51,41,27,.07), 0 0 0 1px rgba(51,41,27,.045);
    --sh-2: 0 1px 2px rgba(51,41,27,.05), 0 12px 28px -14px rgba(51,41,27,.24), 0 0 0 1px rgba(51,41,27,.045);
    --sh-3: 0 2px 6px rgba(51,41,27,.05), 0 30px 70px -28px rgba(51,41,27,.36), 0 0 0 1px rgba(51,41,27,.06);
    --r-xs: 6px; --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-pill: 999px;
    --f-display: "Archivo", "Segoe UI", system-ui, sans-serif;
    --f-ui:      "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
    --mono:      "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
    --ease:      cubic-bezier(.22, .61, .36, 1);
    --gutter:    clamp(12px, 2.2vw, 28px);
}

html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--f-ui);
    font-size: 13px;
    line-height: 1.45;
    background: var(--paper);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "ss01" 0;
}
button, input, select, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
[hidden] { display: none !important; }
.mono, .num, td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico {
    width: 16px; height: 16px; flex: none;
    fill: none; stroke: currentColor; stroke-width: 1.6;
    stroke-linecap: round; stroke-linejoin: round;
}
::selection { background: rgba(126, 203, 32, .28); }

/* El logotipo NO sigue al tema oscuro del sistema: el producto es claro.
   Antes, con Windows en modo oscuro, «ABM» se pintaba casi blanco sobre papel. */
.logo-svg   { color: var(--ink) !important; }
.logo-title { color: var(--ink) !important; }

/* ── BARRA SUPERIOR ─────────────────────────────────────────────────────── */
.header {
    position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60;
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
    gap: 18px; padding: 8px var(--gutter);
    background: rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
    border-bottom: 1px solid var(--line);
}
.logo-wrap { gap: 9px; }
.logo-title { font-size: 17px; }
.logo-update { font-family: var(--mono); font-size: 11px; color: var(--text2); letter-spacing: 0; }

.tabs-bar {
    display: flex; gap: 2px; padding: 0; margin: 0; min-width: 0;
    background: transparent; border: 0; overflow-x: auto; scrollbar-width: none;
}
.tabs-bar::-webkit-scrollbar { display: none; }
.tab-btn {
    position: relative; display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 12px; margin: 0; border: 0 !important; border-radius: var(--r-sm);
    background: none; color: var(--text2); font-size: 13px; font-weight: 500; letter-spacing: 0;
    white-space: nowrap; cursor: pointer; transition: color .2s, background-color .2s;
}
.tab-btn:hover { color: var(--ink); background: var(--paper-2); }
.tab-btn.active { color: var(--ink) !important; font-weight: 600; background: none; }
.tab-btn.active::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: -9px; height: 2px;
    border-radius: 2px; background: var(--brand); box-shadow: 0 0 10px var(--brand-glow);
}
.tab-btn .ico { width: 15px; height: 15px; }
.tab-btn.active .ico { color: var(--ink); }
.tab-btn-pago { color: var(--text3); }
.tab-lock { width: 12px !important; height: 12px !important; color: var(--text3); margin-left: -2px; }

.header-right { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text2); }
.live-pill {
    display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
    padding: 5px 11px 5px 10px; border-radius: var(--r-pill);
    background: var(--surface); box-shadow: var(--sh-1); font-size: 12px; color: var(--text2);
}
.status-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; box-shadow: none !important; }
.status-dot.live, .status-dot.ok { background: var(--brand) !important; }
.status-dot.live::after, .status-dot.ok::after {
    content: ""; position: absolute; inset: -4px; border-radius: 50%;
    border: 1.5px solid var(--brand); opacity: 0; animation: rd-pulso 2.2s var(--ease) infinite;
}
.status-dot.connecting { background: var(--amber); }
.status-dot.error { background: var(--down); }
@keyframes rd-pulso { 0% { transform: scale(.45); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }

.icon-btn, .gear-btn {
    width: 32px; height: 32px; display: inline-grid; place-items: center;
    border: 0; border-radius: var(--r-sm); background: var(--surface); box-shadow: var(--sh-1);
    color: var(--text2); cursor: pointer; font-size: 14px; padding: 0;
    transition: color .2s, box-shadow .2s;
}
.icon-btn:hover, .gear-btn:hover { color: var(--ink); box-shadow: var(--sh-2); }
.hdr-link {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: var(--r-sm);
    color: var(--text2); text-decoration: none; font-weight: 500; font-size: 12px; white-space: nowrap;
}
.hdr-link:hover { color: var(--ink); background: var(--paper-2); }
.hdr-link .ico { width: 15px; height: 15px; }
.hdr-btn { border-radius: var(--r-sm); border-color: var(--line-2); font-weight: 600; }
.hdr-btn-primario { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Aviso de datos diferidos (lo inserta el JS arriba de todo) */
#aviso-nivel {
    background: var(--ink) !important; color: var(--paper-2) !important;
    border: 0 !important; font-size: 12px !important;
}
#aviso-nivel a { color: var(--brand) !important; }

/* ── PULSO DEL MERCADO ───────────────────────────────────────────────────── */
.market-summary.pulso {
    position: relative;
    display: grid; grid-template-columns: 1.75fr 1fr 1fr 1fr 1.35fr; gap: 0;
    padding: 0; margin: 14px var(--gutter) 0;
    background: var(--surface); border: 0; border-radius: var(--r-lg); box-shadow: var(--sh-2);
    overflow: hidden;
}
.p-mod {
    min-width: 0; padding: 14px 16px 14px; border-left: 1px solid var(--line);
    display: flex; flex-direction: column; gap: 6px;
}
.p-mod:first-child { border-left: 0; }
.p-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 20px; }
.p-lab {
    font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
    color: var(--text2); font-weight: 600; white-space: nowrap;
}
.p-lab em { font-style: normal; letter-spacing: .04em; text-transform: none; font-weight: 500; color: var(--text3); }
.p-lab2 { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text2); font-weight: 600; }
.p-val {
    display: flex; align-items: baseline; gap: 4px;
    font-family: var(--f-display); font-stretch: 112%; font-weight: 700;
    font-size: 28px; letter-spacing: -.02em; line-height: 1.05; color: var(--ink);
}
.p-val .ri-price { font: inherit; color: inherit; }
.p-of { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--text2); letter-spacing: 0; }
.p-bar { position: relative; display: flex; gap: 2px; height: 6px; margin-top: 6px; }
.p-bar .pz { border-radius: 3px; }
.z-piso    { background: rgba(15, 157, 107, .42); }
.z-calma   { background: rgba(15, 157, 107, .26); }
.z-neutral { background: rgba(154, 107, 36, .30); }
.z-alerta  { background: rgba(181, 101, 29, .36); }
.z-crisis  { background: rgba(195, 59, 52, .34); }
.z-dxy1, .z-dxy5 { background: #E4DED3; }
.z-dxy2, .z-dxy4 { background: #DCD5C8; }
.z-dxy3    { background: #CDC5B6; }
.z-fg1 { background: rgba(195, 59, 52, .55); }
.z-fg2 { background: rgba(195, 59, 52, .26); }
.z-fg3 { background: #DCD5C8; }
.z-fg4 { background: rgba(15, 157, 107, .28); }
.z-fg5 { background: rgba(10, 122, 83, .55); }
.p-bar .ri-marker {
    position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px;
    border-radius: 50%; background: var(--surface); border: 2px solid var(--ink);
    box-shadow: 0 1px 3px rgba(51,41,27,.3); transition: left .6s var(--ease); z-index: 2;
}
.p-bar .ri-marker-prev {
    position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px;
    border-radius: 1px; background: var(--text3); transition: left .6s var(--ease);
}
.p-scale { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; color: var(--text2); }
.p-fg .p-scale { font-family: var(--f-ui); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }
.p-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.ri-badge {
    display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; letter-spacing: .06em;
    text-transform: uppercase; padding: 2px 8px; border-radius: var(--r-pill);
    background: var(--paper-2); color: var(--text2); border: 0; white-space: nowrap;
}
.ri-badge.up      { background: var(--up-tint);   color: var(--up-ink); }
.ri-badge.down    { background: var(--down-tint); color: var(--down); }
.ri-badge.neutral { background: var(--amber-tint); color: var(--amber); }
.ri-arrow {
    display: inline-flex; align-items: center; gap: 3px;
    font-family: var(--mono); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums;
    padding: 2px 8px; border-radius: var(--r-pill); background: var(--paper-2); color: var(--text2); white-space: nowrap;
}
.ri-arrow.up   { background: var(--up-tint); color: var(--up-ink); }
.ri-arrow.down { background: var(--down-tint); color: var(--down); }
.ri-arrow:empty { display: none; }
.ri-warn { font-size: 11px; color: var(--warn); font-weight: 600; }
.ri-warn:empty { display: none; }
.ri-corr {
    font-size: 11.5px; line-height: 1.4; color: var(--text2);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.vix-term-mini { display: flex; flex-wrap: wrap; gap: 0 4px; font-family: var(--mono); font-size: 11px; color: var(--text2); }
.vix-term-mini:empty { display: none; }

/* Sesiones: regla de 24 horas con la línea de ahora (la dibuja renderSessions) */
.p-clock { display: inline-flex; align-items: center; gap: 8px; }
.summary-mood {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px !important; font-weight: 700 !important; letter-spacing: .08em !important;
    text-transform: uppercase; color: var(--text2) !important;
}
.summary-mood::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--text3); }
.summary-mood.abierto::before, .summary-mood.up::before { background: var(--brand); box-shadow: 0 0 8px var(--brand-glow); }
.summary-hora { font-family: var(--mono); font-size: 11px; color: var(--text2); }
.ses { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; margin-top: 18px; }
.ses-names { display: flex; flex-direction: column; gap: 5px; }
.ses-names span { height: 13px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text2); white-space: nowrap; }
.ses-names span em { font-style: normal; font-family: var(--mono); font-size: 11px; }
.ses-names span.on { color: var(--ink); font-weight: 600; }
.ses-tracks { position: relative; display: flex; flex-direction: column; gap: 5px; }
.ses-row { position: relative; height: 13px; }
.ses-row::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed var(--line-2); }
.ses-row i { position: absolute; top: 2px; bottom: 2px; border-radius: 5px; background: var(--paper-3); }
.ses-row.on i { background: var(--brand-tint); box-shadow: inset 0 0 0 1px rgba(126,203,32,.6); }
.ses-row i.core { background: rgba(126, 203, 32, .62) !important; box-shadow: none !important; }
.ses-row i.ovl { background: repeating-linear-gradient(135deg, rgba(126,203,32,.35) 0 3px, transparent 3px 6px) !important; box-shadow: none !important; }
.ses-axis { position: relative; height: 13px; font-family: var(--mono); font-size: 10px; color: var(--text2); }
.ses-axis span { position: absolute; top: 1px; transform: translateX(-50%); }
.ses-axis span:first-child { transform: none; }
.ses-axis span:last-child { transform: translateX(-100%); }
.ses-now { position: absolute; top: -4px; bottom: 13px; width: 0; border-left: 1.5px solid var(--ink); transition: left .6s var(--ease); }
.ses-now b {
    position: absolute; bottom: 100%; left: 0; transform: translate(-50%, -2px);
    font-family: var(--mono); font-size: 10px; font-weight: 500; line-height: 1.5;
    background: var(--ink); color: var(--paper); padding: 0 5px; border-radius: 4px; white-space: nowrap;
}
.ses-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12px; color: var(--text2); margin-top: 4px; }
.cd-lbl {
    font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    padding: 2px 8px; border-radius: var(--r-pill); background: var(--paper-2); color: var(--text2);
}
.cd-lbl.abierto { background: var(--up-tint); color: var(--up-ink); }
.cd-lbl.cierre-cerca { background: var(--down-tint); color: var(--down); }
.cd-lbl.pre { background: var(--amber-tint); color: var(--amber); }
#market-countdown { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--ink); }
.p-sep { width: 1px; height: 14px; background: var(--line-2); margin: 0 2px; }
.srow-badge { font-family: var(--mono); font-size: 12px; background: none !important; padding: 0; }

/* Amplitud */
.panel-amplitud { margin-top: 0 !important; }
.amp-barra-fila { display: flex; align-items: center; gap: 8px; margin: 4px 0 2px; }
.amp-num { font-family: var(--mono); font-size: 18px; font-weight: 500; min-width: 0; }
.amp-num.amp-sube { color: var(--up-ink); }
.amp-num.amp-baja { color: var(--down); }
.amp-barra { flex: 1; display: flex; gap: 2px; height: 8px; border: 0; background: var(--paper-3); border-radius: 4px; overflow: hidden; }
.amp-b-sube, .amp-b-baja { border-radius: 4px; }
.amp-pie { font-size: 11.5px; color: var(--text2); margin: 0 0 4px; }
.amp-movers { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.amp-col-tit { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--text2); margin: 2px 0 2px; }
.amp-mover { font-size: 12px; line-height: 1.6; }
.amp-m-sym { font-weight: 600; }
.amp-m-pct { font-family: var(--mono); font-size: 11.5px; }
.amp-m-pct.sube { color: var(--up-ink) !important; }
.amp-cargando { font-size: 12px; color: var(--text2); padding: 6px 0; }

/* Plegar el pulso (el botón lo añade el JS dentro de la franja) */
.btn-plegar {
    position: absolute; top: 10px; right: 10px; z-index: 3; margin: 0;
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: var(--r-pill);
    border: 0; background: var(--paper-2); color: var(--text2); cursor: pointer;
}
.btn-plegar:hover { color: var(--ink); }
.btn-plegar .ico { width: 12px; height: 12px; transition: transform .3s var(--ease); }
#cabecera-mercado.plegada .btn-plegar .ico { transform: rotate(180deg); }
#cabecera-mercado.plegada .p-bar,
#cabecera-mercado.plegada .p-scale,
#cabecera-mercado.plegada .ri-corr,
#cabecera-mercado.plegada .vix-term-mini,
#cabecera-mercado.plegada .ses,
#cabecera-mercado.plegada .amp-pie,
#cabecera-mercado.plegada .amp-movers { display: none !important; }
#cabecera-mercado.plegada .p-mod { padding-block: 10px; }
#cabecera-mercado.plegada .p-val { font-size: 22px; }

/* ── CONTROLES COMUNES ──────────────────────────────────────────────────── */
.rd-seg {
    position: relative; display: inline-flex; padding: 3px; gap: 0;
    border-radius: var(--r-sm); background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); flex: none;
}
.rd-seg button {
    position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px;
    border: 0; background: none; font-size: 13px; font-weight: 500; color: var(--text2);
    padding: 6px 12px; border-radius: 8px; cursor: pointer; white-space: nowrap; transition: color .2s;
}
.rd-seg button:hover:not(:disabled) { color: var(--ink); }
.rd-seg button.activo, .rd-seg button.active, .rd-seg button[aria-pressed="true"] { color: var(--ink); }
.rd-seg button:disabled { opacity: .38; cursor: not-allowed; }
.rd-seg button em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--text2); }
.rd-seg .rd-thumb {
    position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 0; width: 0;
    border-radius: 8px; background: var(--surface); box-shadow: var(--sh-1);
    transition: transform .34s var(--ease), width .34s var(--ease);
}
.pill {
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 500;
    padding: 3px 8px; border-radius: var(--r-pill); white-space: nowrap; line-height: 1.3;
}
.pill svg { width: 8px; height: 8px; fill: currentColor; }
.pill.up   { color: var(--up-ink); background: var(--up-tint); }
.pill.down { color: var(--down);   background: var(--down-tint); }
.pill.flat { color: var(--text2);  background: var(--paper-2); }
.meter { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; flex: none; }
.meter i { width: 3px; border-radius: 1px; background: var(--line-2); }
.meter i:nth-child(1) { height: 5px; } .meter i:nth-child(2) { height: 8px; } .meter i:nth-child(3) { height: 12px; }
.meter.m3 i { background: var(--down); }
.meter.m2 i:nth-child(-n+2) { background: var(--warn); }
.meter.m1 i:nth-child(1) { background: var(--amber); }
.switch-rd { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text2); cursor: pointer; user-select: none; border: 0; background: none; padding: 4px 2px; }
.switch-rd .sw { width: 30px; height: 18px; border-radius: 9px; background: var(--paper-3); position: relative; transition: background .2s; flex: none; }
.switch-rd .sw::after {
    content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%;
    background: var(--surface); box-shadow: 0 1px 2px rgba(51,41,27,.3); transition: transform .25s var(--ease);
}
.switch-rd.active, .switch-rd[aria-pressed="true"] { color: var(--ink); }
.switch-rd.active .sw, .switch-rd[aria-pressed="true"] .sw { background: var(--ink); }
.switch-rd.active .sw::after, .switch-rd[aria-pressed="true"] .sw::after { transform: translateX(12px); }
.tchip {
    display: inline-flex; align-items: center; gap: 5px; font-size: 11px; padding: 2px 8px;
    border-radius: var(--r-pill); background: var(--paper-2); color: var(--ink); white-space: nowrap;
}
.tkc {
    display: inline-flex; align-items: center; gap: 5px;
    font-family: var(--mono); font-size: 11px; padding: 3px 7px; border-radius: var(--r-pill);
    background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap; color: var(--ink);
}
.tkc.wl { box-shadow: inset 0 0 0 1px var(--text3); }
.tkc .ico { width: 10px; height: 10px; color: var(--text2); }
.tkc .u { color: var(--up-ink); } .tkc .d { color: var(--down); }
.u { color: var(--up-ink); } .d { color: var(--down); }

/* ── WATCHLIST ──────────────────────────────────────────────────────────── */
#tab-watchlist .dashboard-container { padding: 16px var(--gutter) 8px; gap: 12px; }
.wl-barra { margin: 16px var(--gutter) 0; gap: 10px; }
.wl-vistas {
    position: relative; display: inline-flex; padding: 3px; gap: 0;
    background: var(--paper-2); border: 0; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line);
}
.wl-vbtn {
    position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px;
    background: none !important; border: 0 !important; border-radius: 8px;
    color: var(--text2); font-size: 13px; font-weight: 500; letter-spacing: 0;
    padding: 6px 12px; box-shadow: none !important; cursor: pointer; transition: color .2s;
}
.wl-vbtn:hover { color: var(--ink); }
.wl-vbtn.activo { color: var(--ink) !important; font-weight: 600; }
.wl-vbtn:disabled { opacity: .38; cursor: not-allowed; }
.wl-vistas .rd-thumb {
    position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 0; width: 0; border-radius: 8px;
    background: var(--surface); box-shadow: var(--sh-1);
    transition: transform .34s var(--ease), width .34s var(--ease);
}
.wl-personalizar {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--surface); border: 0; box-shadow: var(--sh-1); border-radius: var(--r-sm);
    color: var(--ink); padding: 7px 13px; font-size: 13px; font-weight: 600; letter-spacing: 0;
}
.wl-personalizar:hover { background: var(--surface); color: var(--ink); box-shadow: var(--sh-2); }

.hm-barra { border-bottom: 0; gap: 10px 14px; margin-bottom: 12px; align-items: center; }
.hm-universos { display: flex; flex-wrap: nowrap; gap: 2px; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1 1 320px; }
.hm-universos::-webkit-scrollbar { display: none; }
.hm-uni {
    border: 0 !important; margin: 0; padding: 6px 11px; border-radius: var(--r-pill);
    color: var(--text2); font-size: 13px; font-weight: 500; letter-spacing: 0; white-space: nowrap;
}
.hm-uni:hover:not(:disabled) { color: var(--ink); background: var(--paper-2); }
.hm-uni.activo { background: var(--ink); color: var(--paper) !important; }
.hm-acciones { padding: 0; gap: 8px; }
.hm-periodos {
    position: relative; display: inline-flex; padding: 3px; gap: 0; border-radius: var(--r-sm);
    background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line);
}
.hm-per {
    border-radius: 7px; color: var(--text2); font-family: var(--mono); font-size: 12px; font-weight: 500;
    letter-spacing: 0; padding: 4px 9px;
}
.hm-per:hover:not(:disabled) { background: rgba(255,255,255,.6); color: var(--ink); }
.hm-per.activo { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); font-weight: 600; }
.hm-mini {
    display: inline-flex; align-items: center; gap: 6px; border: 0; box-shadow: var(--sh-1);
    background: var(--surface); color: var(--text2); border-radius: var(--r-sm); font-size: 12px; padding: 6px 11px;
}
.hm-mini:hover { color: var(--ink); box-shadow: var(--sh-2); }

.wl-tabla-barra { margin: 0 0 10px; gap: 10px; }
.wl-tabla-buscar, .wl-tabla-sector {
    background: var(--surface); border: 0; box-shadow: var(--sh-1); border-radius: var(--r-sm);
    color: var(--ink); padding: 8px 12px; font-size: 13px;
}
.wl-tabla-buscar { flex: 0 1 280px; padding-left: 34px;
    background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E6656' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4.5 4.5'/%3E%3C/svg%3E") no-repeat 11px center / 15px;
}
.wl-tabla-buscar:focus, .wl-tabla-sector:focus { box-shadow: 0 0 0 2px var(--brand-tint), var(--sh-1); }
.wl-tabla-cuenta { font-family: var(--mono); font-size: 12px; color: var(--text2); }

/* La tabla: filas flotantes, sin rejilla */
.wl-tabla-caja { border: 0; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--sh-1); padding: 0 6px 6px; max-height: 72vh; }
.wl-tabla { border-collapse: separate; border-spacing: 0; font-size: 13px; }
.wl-tabla thead th {
    background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line); color: var(--text2);
    font-size: 11px; font-weight: 600; letter-spacing: .1em; padding: 12px 10px 9px;
}
.wl-tabla thead th:first-child { padding-left: 12px; }
.wl-tabla thead th.orden-desc::after, .wl-tabla thead th.orden-asc::after { color: var(--ink); }
.wl-tabla tbody tr { border: 0; }
.wl-tabla tbody tr:hover { background: none; }
.wl-tabla td { font-family: var(--f-ui); text-align: left; padding: 9px 10px; border-top: 1px solid var(--line); color: var(--ink); transition: background-color .2s; }
.wl-tabla tbody tr:first-child td { border-top-color: transparent; }
.wl-tabla tbody tr:hover td { background: var(--paper); border-top-color: transparent; }
.wl-tabla tbody tr:hover + tr td { border-top-color: transparent; }
.wl-tabla tbody tr:hover td:first-child { border-radius: 12px 0 0 12px; }
.wl-tabla tbody tr:hover td:last-child  { border-radius: 0 12px 12px 0; }
.wl-tabla td:first-child { padding-left: 12px; }
.wl-tabla td.num { font-family: var(--mono); font-size: 13px; text-align: right; }
.wl-tabla th.dibujo { cursor: default; }
.wl-tabla td.sube { color: var(--up-ink); font-weight: 500; }
.wl-tabla td.baja { color: var(--down); font-weight: 500; }
.wl-tabla td.nulo { color: var(--text3); }
.wl-tabla td.wl-c-sector { font-size: 12px; color: var(--text2); max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.wl-act { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wl-mg {
    width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none;
    background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line);
    font-family: var(--f-display); font-stretch: 110%; font-weight: 700; font-size: 10.5px; color: var(--ink);
}
.wl-act-tx { display: flex; flex-direction: column; min-width: 0; }
.wl-t-sym { font-weight: 600; font-size: 14px; margin: 0; line-height: 1.2; }
.wl-t-nom { color: var(--text2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.wl-spk { display: block; }
.wl-spk .ln { fill: none; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.wl-spk .ln.up { stroke: var(--up); } .wl-spk .ln.down { stroke: var(--down); }
.wl-spk .dt { stroke: var(--surface); stroke-width: 1.5; }
.wl-spk .dt.up { fill: var(--up); } .wl-spk .dt.down { fill: var(--down); }
.wl-spk .pc { stroke: var(--text3); stroke-width: 1; stroke-dasharray: 2 3; opacity: .7; }
.wl-rng { position: relative; height: 4px; border-radius: 2px; background: var(--paper-3); min-width: 90px; }
.wl-rng .fill { position: absolute; top: 0; bottom: 0; border-radius: 2px; }
.wl-rng .fill.up { background: rgba(15,157,107,.55); } .wl-rng .fill.down { background: rgba(195,59,52,.5); }
.wl-rng .mk { position: absolute; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px var(--surface); transition: left .5s var(--ease); }
.wl-rng-l { display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 10.5px; color: var(--text2); margin-top: 5px; }
.wl-tabla td.wl-c-rng { min-width: 130px; }
.wl-tabla td .pill { min-width: 76px; }
.fl-u { animation: rd-flu .8s ease-out; }
.fl-d { animation: rd-fld .8s ease-out; }
@keyframes rd-flu { 0% { background-color: rgba(15,157,107,.30); } 100% { background-color: transparent; } }
@keyframes rd-fld { 0% { background-color: rgba(195,59,52,.26); } 100% { background-color: transparent; } }
.wl-tabla td.num.fl-u, .wl-tabla td.num.fl-d { border-radius: 6px; }

/* Tarjetas (solo Favoritos) */
.wl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.wl-cards[style*="--cols"] { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
.wl-card-cap { font-size: 10.5px; color: var(--text3); margin-top: -4px; }
.wl-card {
    background: var(--surface); border-radius: var(--r-md); box-shadow: var(--sh-1);
    padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0;
    transition: transform .3s var(--ease), box-shadow .3s;
}
.wl-card.con-grafico { cursor: pointer; }
.wl-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.wl-card-h { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wl-card-h .pill { margin-left: auto; }
.wl-card-px { font-family: var(--mono); font-size: 22px; font-weight: 500; letter-spacing: -.01em; padding: 0 2px; border-radius: 6px; align-self: flex-start; }
.wl-card-spk { height: 54px; }
.wl-card-sin { font-size: 12px; color: var(--text2); height: 54px; display: grid; place-items: center; background: var(--paper); border-radius: 10px; }

/* ── MAPA DE CALOR EN PAPEL ────────────────────────────────────────────────
   El mapa era negro con verde y rojo intensos: el «uniforme del nicho» que el
   manual descarta (§8). Ahora vive en la misma paleta que el resto. */
.hm-marco { border-radius: var(--r-md); }
.hm-sector {
    background: var(--surface) !important; border: 0 !important; border-radius: 10px !important;
    box-shadow: var(--sh-1);
}
.hm-sector-cab { background: transparent !important; border-bottom: 0 !important; padding: 0 8px; }
.hm-sector-cab:hover { background: var(--paper) !important; }
.hm-sector-nom { color: var(--text2) !important; font-size: 10px; letter-spacing: .1em; font-weight: 600; }
.hm-sector-pct { font-family: var(--mono); font-size: 10.5px; font-weight: 500; }
.hm-sector-pct.sube { color: var(--up-ink) !important; }
.hm-sector-pct.baja { color: var(--down) !important; }
.hm-sector-pct.plano { color: var(--text2) !important; }
.hm-industria { border: 0 !important; background: transparent !important; }
.hm-industria-cab { color: var(--text3) !important; background: transparent !important; font-size: 8.5px; letter-spacing: .08em; }
.hm-celda { border-radius: 5px; color: #FFFFFF; box-shadow: none !important; }
.hm-celda.hm-tinta { color: var(--ink); }
.hm-celda:hover { filter: none; transform: none; box-shadow: inset 0 0 0 2px var(--ink) !important; z-index: 5; }
.hm-sym, .hm-precio, .hm-pct, .hm-celda.hm-nano .hm-sym { text-shadow: none !important; }
.hm-sym { font-family: var(--f-ui); font-weight: 600; letter-spacing: 0; }
.hm-precio { font-family: var(--mono) !important; font-weight: 500; letter-spacing: 0; }
.hm-pct { font-family: var(--mono); font-weight: 500; opacity: 1; }
.hm-sub { opacity: .8; }
.hm-spark { opacity: .30; }
.hm-spark polyline { stroke: #FFFFFF; }
.hm-celda.hm-tinta .hm-spark { opacity: .22; }
.hm-celda.hm-tinta .hm-spark polyline { stroke: var(--ink); }
.hm-rango { background: rgba(255,255,255,.28); }
.hm-rango i { background: #FFFFFF; box-shadow: none; }
.hm-celda.hm-tinta .hm-rango { background: rgba(51,41,27,.14); }
.hm-celda.hm-tinta .hm-rango i { background: var(--ink); }
.hm-pie { color: var(--text2) !important; font-style: normal; font-size: 11.5px; }
.hm-leyenda { display: inline-flex; align-items: center; gap: 8px; margin-right: 12px; vertical-align: middle; font-family: var(--mono); font-size: 10.5px; color: var(--text2); }
.hm-leyenda i { width: 120px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, hsl(357 55% 45%), #E4DED3 50%, hsl(145 80% 26%)); }
body.hm-pc-activa #watchlist-container.wl-mapa-modo { background: var(--paper) !important; }
.hm-info { border: 0 !important; box-shadow: var(--sh-3) !important; font-family: var(--f-ui) !important; }
.hm-info-precio { font-family: var(--mono) !important; }
.hm-info-fila b { font-family: var(--mono); font-weight: 500; }
.hm-esq-caja { background: var(--paper-2); border: 0; border-radius: 8px; }
.hm-vacio-btn { background: var(--ink) !important; color: var(--paper) !important; border-radius: var(--r-sm) !important; }

/* Panel Personalizar */
.wl-panel { background: rgba(51, 41, 27, .30) !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.wl-panel-caja { border: 0 !important; border-radius: var(--r-lg) !important; box-shadow: var(--sh-3) !important; padding: 20px !important; }
.wl-panel-agregar input { border: 0 !important; box-shadow: var(--sh-1); background: var(--paper) !important; border-radius: var(--r-sm) !important; }
.wl-panel-agregar button { background: var(--ink) !important; color: var(--paper) !important; border-radius: var(--r-sm) !important; }
.wl-fila { border: 0 !important; background: var(--paper) !important; border-radius: var(--r-sm) !important; }

/* ── CONTENEDORES GENERALES ─────────────────────────────────────────────── */
.loading { color: var(--text2); font-size: 13px; }
#pie-legal {
    margin: 30px auto 22px !important; padding: 16px var(--gutter) !important; max-width: 1100px;
    border-top: 1px solid var(--line) !important; font-size: 11px !important; color: var(--text2) !important;
    line-height: 1.6; text-align: center;
}
#pie-legal a { color: var(--text2) !important; }

/* ── SECCIONES (Calendario, Noticias…) ───────────────────────────────────── */
.seccion { padding: 18px var(--gutter) 26px; max-width: 1480px; margin: 0 auto; }
.sec-cab { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 14px; }
.sec-tit {
    font-family: var(--f-display); font-stretch: 118%; font-weight: 760;
    font-size: 28px; letter-spacing: -.02em; line-height: 1.05; margin: 0; color: var(--ink);
}
.sec-sub { margin: 6px 0 0; font-size: 13px; color: var(--text2); }
.sec-sub .cal-timestamp { font-family: var(--mono); font-size: 12px; color: var(--text2); }
.sec-acciones { display: flex; align-items: center; gap: 8px; }
.sec-barra { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 12px; }
.rd-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.rd-seg::-webkit-scrollbar { display: none; }
.switch-rd input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.switch-rd input:checked + .sw { background: var(--ink); }
.switch-rd input:checked + .sw::after { transform: translateX(12px); }
.switch-rd input:focus-visible + .sw { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
.cal-empty {
    display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center;
    padding: 34px 20px; color: var(--text2); font-size: 13px;
    background: var(--surface); border-radius: var(--r-md); box-shadow: var(--sh-1);
}
.cal-empty b { color: var(--ink); font-weight: 600; }
.cal-empty small { font-size: 12px; color: var(--text2); }
.cal-empty.malo b { color: var(--down); }

/* ── CALENDARIO ─────────────────────────────────────────────────────────── */
.ucal-week-tab, .ucal-filter {
    background: none !important; border: 0 !important; border-radius: 8px !important;
    padding: 6px 12px !important; font-size: 13px !important; font-weight: 500 !important;
    color: var(--text2) !important; letter-spacing: 0 !important; margin: 0 !important;
    position: relative; z-index: 1; cursor: pointer; white-space: nowrap; transition: color .2s;
}
.ucal-week-tab:hover, .ucal-filter:hover { color: var(--ink) !important; }
.ucal-week-tab.active, .ucal-filter.active { color: var(--ink) !important; font-weight: 600 !important; }
.ucal-daynav { display: inline-flex; align-items: center; gap: 6px; }
.ucal-day-lbl {
    min-width: 92px; height: 32px; border: 0; border-radius: var(--r-sm); cursor: pointer;
    background: var(--surface); box-shadow: var(--sh-1); color: var(--ink);
    font-size: 13px; font-weight: 600; padding: 0 12px;
}
.ucal-day-lbl.pasado { color: var(--warn); }
.ucal-day-lbl.futuro { color: var(--text2); }

/* Radar de la semana */
.ucal-radar { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; margin: 4px 0 18px; }
.rd-dia {
    display: flex; flex-direction: column; gap: 8px; min-width: 0; text-align: left;
    background: var(--surface); border: 0; border-radius: var(--r-md); box-shadow: var(--sh-1);
    padding: 12px 12px 11px; cursor: pointer; font: inherit; color: inherit;
    transition: box-shadow .25s, transform .25s var(--ease);
}
.rd-dia:hover { box-shadow: var(--sh-2); transform: translateY(-1px); }
.rd-dia.hoy { box-shadow: inset 0 0 0 1.5px rgba(126,203,32,.75), var(--sh-1); }
.rd-dia-h { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.rd-dia-h b { font-family: var(--f-display); font-stretch: 110%; font-weight: 700; font-size: 15px; }
.rd-dia-h span { font-family: var(--mono); font-size: 11px; color: var(--text2); white-space: nowrap; }
.rd-dia-h em.hoy { font-family: var(--f-ui); font-style: normal; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--brand-ink); }
.rd-dia-pila { height: 66px; display: flex; flex-direction: column-reverse; gap: 3px; border-bottom: 1px solid var(--line-2); padding-bottom: 3px; }
.rd-dia-pila i { height: 10px; border-radius: 3px; flex: none; }
.rd-dia-pila em { font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--text2); }
.rd-dia-k { font-size: 12px; line-height: 1.35; min-height: 32px; display: flex; flex-direction: column; }
.rd-dia-k b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-dia-k span { color: var(--text2); }
.rd-leyenda { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--text2); margin-top: -2px; }
.rd-leyenda span { display: inline-flex; align-items: center; gap: 6px; }
.rd-leyenda i { width: 14px; height: 8px; border-radius: 2px; }
.rd-leyenda .rd-nota { color: var(--text3); }
.k-crit { background: var(--down); } .k-alto { background: var(--warn); } .k-medio { background: var(--amber); }
.k-res { background: var(--text3); } .k-ipo { background: var(--border); } .k-bajo { background: var(--paper-3); }

/* Rejilla: línea de tiempo + riel */
.ucal-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; }
.ucal-grid:has(.ucal-rail[hidden]) { grid-template-columns: minmax(0, 1fr); }
.ucal-dia { margin-bottom: 10px; scroll-margin-top: 90px; }
.ucal-day-header {
    display: flex; align-items: baseline; gap: 10px; padding: 10px 0 6px 96px;
    background: none; text-transform: none; letter-spacing: 0; color: var(--ink);
}
.ucal-day-header b { font-family: var(--f-display); font-stretch: 112%; font-weight: 700; font-size: 18px; transition: color .4s; }
.ucal-day-header span { font-size: 12px; color: var(--text2); font-weight: 400; }
.ucal-dia.resalta .ucal-day-header b { color: var(--brand-ink); }
.ucal-slot { display: grid; grid-template-columns: 64px 22px minmax(0, 1fr); column-gap: 10px; }
.ucal-slot.pasado { opacity: .62; }
.ucal-slot.pasado:hover { opacity: 1; }
.ucal-slot-t { text-align: right; padding-top: 14px; display: flex; flex-direction: column; }
.ucal-slot-t b { font-size: 15px; font-weight: 500; color: var(--ink); }
.ucal-slot-t span { font-family: var(--mono); font-size: 10.5px; color: var(--text2); line-height: 1.3; }
.ucal-spine { position: relative; }
.ucal-spine::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line-2); }
.ucal-spine .nodo {
    position: absolute; left: 50%; top: 23px; transform: translate(-50%, -50%);
    width: 10px; height: 10px; border-radius: 50%; background: var(--surface) !important;
    box-shadow: inset 0 0 0 2px var(--amber);
}
.ucal-spine .nodo.k-crit { width: 12px; height: 12px; background: var(--down) !important; box-shadow: 0 0 0 4px var(--down-tint); }
.ucal-spine .nodo.k-alto { box-shadow: inset 0 0 0 2px var(--warn); }
.ucal-spine .nodo.k-res  { box-shadow: inset 0 0 0 2px var(--text3); }
.ucal-spine .nodo.k-ipo  { box-shadow: inset 0 0 0 2px var(--border); }
.ucal-spine .nodo.k-bajo { box-shadow: inset 0 0 0 2px var(--paper-3); }
.ucal-slot-evs { display: flex; flex-direction: column; gap: 6px; padding-block: 4px 6px; min-width: 0; }
.ucal-ahora { display: grid; grid-template-columns: 64px 22px minmax(0, 1fr); column-gap: 10px; align-items: center; margin: 10px 0; }
.ucal-ahora b { font-size: 12px; font-weight: 600; color: var(--brand-ink); text-align: right; }
.ucal-ahora .punto { justify-self: center; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint), 0 0 14px var(--brand-glow); }
.ucal-ahora .linea { position: relative; height: 1.5px; background: linear-gradient(90deg, var(--brand), rgba(126,203,32,0)); }
.ucal-ahora .linea span { position: absolute; left: 0; top: -17px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--brand-ink); }

/* El evento: fila plana; lo crítico se eleva como tarjeta */
.ucal-event-row, .ucal-ev { border: 0 !important; border-radius: var(--r-md); background: transparent; transition: background-color .2s, box-shadow .2s; filter: none !important; }
.ucal-ev:hover { background: var(--surface); box-shadow: var(--sh-1); }
.ucal-ev.elevado { background: var(--surface); box-shadow: var(--sh-2); }
.ucal-ev .ucal-row-main {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, auto) 18px; align-items: center;
    gap: 8px 16px; padding: 11px 14px; cursor: pointer; user-select: none;
}
.ucal-ev-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; font-size: 12px; color: var(--text2); margin-bottom: 3px; }
.cc { font-family: var(--mono); font-size: 10px; font-weight: 600; padding: 1px 5px; border-radius: 4px; background: var(--paper-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.ucal-lbl { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--text2); background: none !important; }
.ucal-lbl.k-crit { color: var(--down); } .ucal-lbl.k-alto { color: var(--warn); } .ucal-lbl.k-medio { color: var(--amber); }
.ucal-dest { font-size: 11px; color: var(--text2); }
.ucal-nota { display: inline-flex; align-items: center; gap: 4px; }
.ucal-nota .ico { width: 13px; height: 13px; }
.ucal-src { color: var(--text2); }
.ucal-src::before { content: "·"; margin-right: 8px; color: var(--text3); }
.ucal-eta { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--text2); white-space: nowrap; }
.ucal-eta.pronto { color: var(--warn); font-weight: 600; }
.ucal-eta.pasado { color: var(--text3); }
.ucal-eta.inminente { display: inline-flex; align-items: center; gap: 6px; color: var(--down); font-weight: 600; }
.ucal-eta.inminente i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--down); }
.ucal-eta.inminente i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--down); opacity: 0; animation: rd-pulso 1.6s var(--ease) infinite; }
.ucal-ev-title { font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--ink); }
.ucal-ev.elevado .ucal-ev-title { font-size: 16px; font-weight: 600; }
.ucal-ev-en { font-size: 12px; color: var(--text2); font-weight: 400; margin-left: 6px; }
.ucal-trio { display: grid; grid-template-columns: repeat(3, minmax(64px, 1fr)); gap: 8px; text-align: right; }
.ucal-trio > div { display: flex; flex-direction: column; align-items: flex-end; min-width: 0; }
.ucal-trio .k { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--text2); }
.ucal-trio .v { font-family: var(--mono); font-size: 13px; color: var(--ink); }
.ucal-val { font-family: var(--mono) !important; font-size: 13px; font-weight: 500; color: var(--ink); }
.ucal-val.beat { color: var(--up-ink); font-weight: 600; }
.ucal-val.miss { color: var(--down); font-weight: 600; }
.ucal-val.inline { color: var(--amber); }
.ucal-val.pending { color: var(--text3); }
.ucal-val.licenciado { color: var(--ink) !important; text-decoration: underline; text-underline-offset: 2px; font-family: var(--f-ui) !important; font-size: 12px !important; }
.ucal-val.hueco { color: var(--down); }
.ucal-rev { font-family: var(--mono); font-size: 10.5px; color: var(--text2); }
.ucal-rev.beat { color: var(--up-ink); } .ucal-rev.miss { color: var(--down); }
.ucal-sorpresa { position: relative; width: 64px; height: 6px; margin-top: 4px; border-radius: 3px; background: var(--paper-3); }
.ucal-sorpresa .eje { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1.5px; margin-left: -.75px; background: var(--ink); }
.ucal-sorpresa .barra { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--text3); }
.ucal-sorpresa.beat .barra { background: rgba(15,157,107,.6); }
.ucal-sorpresa.miss .barra { background: rgba(195,59,52,.55); }
.ucal-pend { display: flex; align-items: center; justify-content: flex-end; gap: 8px; text-align: right; font-size: 12px; color: var(--text2); }
.ucal-pend > span { display: flex; flex-direction: column; }
.ucal-pend b { font-weight: 600; color: var(--ink); }
.ucal-pend .ico { width: 15px; height: 15px; color: var(--text3); }
.ucal-chevron { color: var(--text3); display: grid; place-items: center; min-width: 0; font-size: 0; transition: transform .3s var(--ease); }
.ucal-chevron .ico { width: 15px; height: 15px; }
.ucal-ev.abierto .ucal-chevron { transform: rotate(90deg); color: var(--ink); }
.ucal-detail { border-top: 1px solid var(--line) !important; margin: 0 14px; }
.ucal-detail-inner { padding: 12px 0 14px !important; display: grid !important; gap: 12px !important; }
.ucal-desc { font-size: 13px !important; color: var(--text2) !important; max-width: 76ch; line-height: 1.5; }
.ucal-causa { font-size: 13px !important; color: var(--text2) !important; font-style: normal !important; }
.ucal-si { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ucal-si div { border-radius: 10px; padding: 9px 11px; font-size: 12.5px; line-height: 1.45; color: var(--ink); }
.ucal-si b { display: block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 3px; }
.ucal-si .si-u { background: var(--up-tint); } .ucal-si .si-u b { color: var(--up-ink); }
.ucal-si .si-d { background: var(--down-tint); } .ucal-si .si-d b { color: var(--down); }
.ucal-afecta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px !important; color: var(--text2) !important; }
.ucal-pub, .ucal-meta-grid { background: var(--paper) !important; border: 0 !important; border-radius: 10px !important; padding: 10px 12px !important; margin: 0 !important; }
.ucal-meta-row { border-bottom: 1px solid var(--line) !important; font-size: 12.5px; padding: 4px 0 !important; }
.ucal-meta-row:last-child { border-bottom: 0 !important; }
.ucal-meta-k { color: var(--text2) !important; }
.ucal-meta-v { color: var(--ink) !important; font-weight: 500 !important; }
.ucal-pub-et, .ucal-cita { color: var(--text2) !important; }
.ucal-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px !important; color: var(--ink) !important; font-weight: 500; width: fit-content; }
.ucal-link .ico { width: 13px; height: 13px; }
.ucal-degraded {
    display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 10px 12px;
    border-radius: var(--r-sm); background: var(--down-tint); color: var(--ink); font-size: 13px;
}
.ucal-degraded .ico { color: var(--down); }
.ucal-conf.ok { color: var(--up-ink); }

/* Riel: próximo dato crítico (tinta), resultados y salidas a bolsa */
.ucal-rail { display: flex; flex-direction: column; gap: 14px; min-width: 0; position: sticky; top: 76px; }
.ucal-prox { background: var(--ink); color: var(--paper); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.ucal-prox .k { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: #CBC3B4; }
.ucal-prox h4 { font-family: var(--f-display); font-stretch: 112%; font-weight: 700; font-size: 20px; letter-spacing: -.01em; line-height: 1.15; margin: 0; color: var(--paper); }
.ucal-prox .cuando { font-size: 12px; color: #CBC3B4; }
.ucal-prox .anillo { display: flex; align-items: center; gap: 14px; }
.ucal-prox .anillo svg { width: 64px; height: 64px; flex: none; }
.ucal-prox .anillo .pista { fill: none; stroke: rgba(246,245,241,.16); stroke-width: 5; }
.ucal-prox .anillo .avance { fill: none; stroke: var(--brand); stroke-width: 5; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(126,203,32,.7)); }
.ucal-prox .anillo b { font-size: 18px; font-weight: 500; display: block; color: var(--paper); }
.ucal-prox .anillo span { font-size: 12px; color: #CBC3B4; }
.ucal-prox .mueve { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: #CBC3B4; }
.ucal-prox .tchip { background: rgba(246,245,241,.12); color: var(--paper); }
.ucal-prox .si { display: flex; flex-direction: column; gap: 6px; font-size: 12px; line-height: 1.45; color: #E6E0D4; border-top: 1px solid rgba(246,245,241,.14); padding-top: 10px; }
.ucal-prox .si b { color: var(--paper); font-weight: 600; }
.ucal-rbox { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--sh-1); padding: 14px; }
.ucal-rbox h5 { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--text2); }
.ucal-rbox h5 .ico { width: 14px; height: 14px; }
.ucal-rl { display: flex; flex-direction: column; }
.ucal-rl > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.ucal-rl > div:first-child { border-top: 0; padding-top: 0; }
.ucal-rl b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ucal-rl span { font-size: 12px; color: var(--text2); }
.ucal-rl .mono { font-size: 12px; text-align: right; color: var(--ink); }

@media (max-width: 1100px) {
    .ucal-grid { grid-template-columns: minmax(0, 1fr); }
    .ucal-rail { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 700px) {
    .seccion { padding: 14px 12px 20px; }
    .sec-tit { font-size: 24px; }
    .ucal-radar { grid-auto-flow: column; grid-auto-columns: minmax(118px, 1fr); grid-template-columns: none; overflow-x: auto; padding-bottom: 4px; }
    .rd-leyenda { display: none; }
    .ucal-day-header { padding-left: 0; }
    .ucal-slot, .ucal-ahora { grid-template-columns: 46px 14px minmax(0, 1fr); column-gap: 8px; }
    .ucal-slot-t b { font-size: 13px; }
    .ucal-ev .ucal-row-main { grid-template-columns: minmax(0, 1fr) 16px; padding: 10px 11px; }
    .ucal-ev .ucal-trio, .ucal-ev .ucal-pend { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; text-align: left; }
    .ucal-trio > div { align-items: flex-start; }
    .ucal-ev .ucal-chevron { grid-row: 1; grid-column: 2; }
    .ucal-si { grid-template-columns: 1fr; }
    .ucal-detail { margin: 0 11px; }
}

/* ── NOTICIAS ───────────────────────────────────────────────────────────── */
.news-buscar {
    display: inline-flex; align-items: center; gap: 8px; min-width: 260px;
    padding: 0 12px; border-radius: var(--r-sm); background: var(--surface); box-shadow: var(--sh-1); color: var(--text2);
}
.news-buscar:focus-within { box-shadow: 0 0 0 2px var(--brand-tint), var(--sh-1); }
.news-buscar .news-search {
    flex: 1; min-width: 0; max-width: none !important; border: 0 !important; outline: 0; background: transparent !important;
    padding: 9px 0 !important; font-size: 13px; color: var(--ink); box-shadow: none !important;
}

/* Briefing */
.nai-card {
    background: var(--surface) !important; border: 0 !important; border-top: 0 !important;
    border-radius: var(--r-lg) !important; box-shadow: var(--sh-2) !important;
    padding: 18px 22px 16px !important; margin: 0 0 22px !important;
}
.nai-card.nai-updated { box-shadow: 0 0 0 2px var(--brand-tint), var(--sh-2) !important; }
.nai-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 !important; border: 0 !important; background: none !important; margin-bottom: 4px; }
.nai-header-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nai-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--ink); }
.nai-kicker .ico { width: 14px; height: 14px; color: var(--brand-ink); }
.nai-ts { font-family: var(--mono); font-size: 12px; color: var(--text2); }
.nai-badge {
    font-family: var(--mono); font-size: 11px; padding: 2px 7px; border-radius: 5px;
    background: var(--paper-2) !important; color: var(--text2) !important; border: 0 !important; letter-spacing: 0; text-transform: none;
}
.nai-badge.nai-badge-degradado { background: var(--warn-tint) !important; color: var(--warn) !important; }
.nai-refresh-btn {
    display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px;
    border: 0 !important; border-radius: var(--r-sm); background: var(--surface) !important; box-shadow: var(--sh-1);
    color: var(--text2) !important; font-size: 12px; font-weight: 500; cursor: pointer;
}
.nai-refresh-btn:hover { color: var(--ink) !important; box-shadow: var(--sh-2); }
.nai-refresh-btn .ico { width: 14px; height: 14px; }
.nai-refresh-btn.girando .ico { animation: rd-giro 1s linear infinite; }
@keyframes rd-giro { to { transform: rotate(360deg); } }
.nai-body { padding: 0 !important; }
.nai-loading { padding: 18px 0; color: var(--text2); font-size: 13px; }
.nai-capas { display: flex; flex-direction: column; gap: 16px; }
.nai-titular {
    font-family: var(--f-display); font-stretch: 106%; font-weight: 640; font-size: 22px;
    line-height: 1.28; letter-spacing: -.012em; margin: 8px 0 2px; max-width: 62ch; color: var(--ink); text-wrap: balance;
}
.nai-mundo { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.nai-tarjeta { background: var(--paper); border-radius: var(--r-md); padding: 13px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nai-tarjeta b { font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.nai-tarjeta p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text2);
    display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.nai-tks { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 4px; }
.nai-nota { font-size: 12.5px; color: var(--text2); }
.nai-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 26px; border-top: 1px solid var(--line); padding-top: 14px; }
.nai-col h4, .nai-otro h4 {
    margin: 0 0 8px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--text2);
}
.nai-col ul, .nai-otro ul, .nai-prosa ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.nai-col li, .nai-otro li, .nai-prosa li { position: relative; padding-left: 14px; font-size: 13px; line-height: 1.5; color: var(--text2); }
.nai-col li::before, .nai-otro li::before, .nai-prosa li::before {
    content: ""; position: absolute; left: 1px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--border);
}
.nai-col li b, .nai-otro li b, .nai-col li strong, .nai-otro li strong { color: var(--ink); font-weight: 600; }
.nai-datos { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: 12.5px; color: var(--text2); background: var(--paper); border-radius: var(--r-sm); padding: 9px 12px; }
.nai-datos .k { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--text2); }
.nai-otro { border-top: 1px solid var(--line); padding-top: 12px; }
.nai-otro p { margin: 0 0 8px; font-size: 13px; color: var(--text2); line-height: 1.55; }
.nai-panorama { border-top: 1px solid var(--line); padding-top: 12px; }
.nai-panorama summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.nai-panorama summary::-webkit-details-marker { display: none; }
.nai-panorama summary .ico { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.nai-panorama[open] summary .ico { transform: rotate(90deg); }
.nai-prosa { max-width: 70ch; font-size: 15px; line-height: 1.7; color: var(--ink); margin-top: 10px; }
.nai-prosa p { margin: 0 0 12px; }
.nai-up, .nai-dn { font-family: var(--mono); font-size: .95em; }
.nai-up { color: var(--up-ink) !important; } .nai-dn { color: var(--down) !important; }
.nai-code { font-family: var(--mono); font-size: .92em; background: var(--paper-2); padding: 0 4px; border-radius: 4px; }
.aviso-no-asesoria { color: var(--text2) !important; border-top: 1px solid var(--line) !important; font-size: 11.5px !important; margin-top: 16px !important; padding-top: 10px !important; }
.aviso-no-asesoria b { color: var(--text2) !important; }

/* Feed + radar */
.news-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 26px; align-items: start; }
.news-main { min-width: 0; }
.news-filtros { margin: 4px 0 6px; }
.news-count { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--text2); }
#news-filters .cal-filter-btn {
    background: none !important; border: 0 !important; border-radius: 8px !important; margin: 0 !important;
    padding: 6px 12px !important; font-size: 13px !important; font-weight: 500 !important; letter-spacing: 0 !important;
    color: var(--text2) !important; position: relative; z-index: 1; cursor: pointer; white-space: nowrap;
}
#news-filters .cal-filter-btn:hover { color: var(--ink) !important; }
#news-filters .cal-filter-btn.active { color: var(--ink) !important; font-weight: 600 !important; }
.news-container { padding: 0 !important; display: block !important; }
.news-blk { margin-bottom: 8px; }
.news-blk-h { display: flex; align-items: baseline; gap: 10px; padding: 14px 10px 6px; }
.news-blk-h b { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--ink); }
.news-blk-h span { font-size: 11px; color: var(--text2); }
.news-card {
    display: grid !important; grid-template-columns: 42px 12px minmax(0, 1fr) auto; gap: 4px 12px; align-items: start;
    padding: 12px 10px !important; margin: 0 !important; border: 0 !important; border-left: 0 !important; border-radius: 12px !important;
    background: linear-gradient(var(--line), var(--line)) top / 100% 1px no-repeat !important;
    box-shadow: none; transition: background-color .2s, box-shadow .2s;
}
.news-card.primera, .news-card.destacada, .news-card.destacada + .news-card { background-image: none !important; }
.news-card:hover { background-color: var(--surface) !important; box-shadow: var(--sh-1); }
.news-card.destacada { background-color: var(--surface) !important; box-shadow: var(--sh-2); padding: 14px 12px !important; margin: 6px 0 !important; }
.news-time { font-size: 12px !important; color: var(--text2) !important; padding-top: 2px; }
.news-card .meter { margin-top: 4px; }
.news-body { min-width: 0; }
.news-lbl { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--down); margin-bottom: 2px; }
.news-title {
    display: block; font-size: 15px !important; font-weight: 500 !important; line-height: 1.38 !important;
    color: var(--ink) !important; text-decoration: none;
}
.news-title:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.news-card.destacada .news-title { font-size: 16px !important; font-weight: 600 !important; }
.news-meta { display: flex !important; flex-wrap: wrap; align-items: center; gap: 4px 7px !important; margin: 4px 0 0 !important; font-size: 12px; color: var(--text2); }
.news-meta .ico { width: 13px; height: 13px; }
.news-meta .sep { color: var(--text3); }
.news-source { font-weight: 600 !important; color: var(--ink) !important; font-size: 12px !important; }
.news-extra-sources { font-family: var(--mono); font-size: 11px !important; padding: 0 6px; border-radius: var(--r-pill); background: var(--paper-2) !important; color: var(--text2) !important; border: 0 !important; }
.news-sum { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--text2); max-width: 72ch; }
.news-tks { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; max-width: 230px; }
.news-afecta, .news-wl-badge { display: none !important; }

.brk-lista { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.brk {
    display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px 12px; border-radius: var(--r-sm);
    background: var(--down-tint); color: var(--ink); text-decoration: none; font-size: 13px;
}
.brk:hover { background: rgba(195, 59, 52, .15); }
.brk b { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--down); white-space: nowrap; }
.brk .mono { font-size: 12px; color: var(--text2); }
.brk-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.brk-src { font-size: 12px; color: var(--text2); white-space: nowrap; }
.brk-punto { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--down); flex: none; }
.brk-punto::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--down); opacity: 0; animation: rd-pulso 1.8s var(--ease) infinite; }

.news-rail { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 76px; min-width: 0; }
.nr-box { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--sh-1); padding: 14px; }
.nr-box h5 { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--text2); }
.nr-box h5 .ico { width: 14px; height: 14px; }
.nr-temas { display: flex; flex-direction: column; gap: 2px; }
.nr-tema {
    display: grid; grid-template-columns: 18px minmax(0, 1fr) 30px; align-items: center; gap: 8px;
    border: 0; background: none; padding: 6px; border-radius: 8px; cursor: pointer; text-align: left; font-size: 13px; color: var(--ink);
}
.nr-tema:hover, .nr-tema.on { background: var(--paper-2); }
.nr-tema .ico { width: 14px; height: 14px; color: var(--text2); }
.nr-bar { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nr-bar i { display: block; height: 5px; border-radius: 3px; background: var(--ink); opacity: .72; }
.nr-n { font-size: 12px; color: var(--text2); text-align: right; }
.nr-acts { display: flex; flex-direction: column; }
.nr-act {
    display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px;
    border: 0; background: none; padding: 8px 6px; border-radius: 8px; cursor: pointer; text-align: left; color: var(--ink);
    border-top: 1px solid var(--line);
}
.nr-act:first-child { border-top: 0; }
.nr-act:hover, .nr-act.on { background: var(--paper-2); }
.nr-act b { font-size: 13px; font-weight: 600; }
.nr-cnt { font-size: 11px; color: var(--text2); }
.nr-act .mono { font-size: 12px; }
.nr-vacio { margin: 0; font-size: 12.5px; color: var(--text2); }

@media (max-width: 1100px) {
    .news-grid { grid-template-columns: minmax(0, 1fr); }
    .news-rail { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); order: -1; }
}
@media (max-width: 700px) {
    .news-buscar { min-width: 0; width: 100%; }
    .sec-cab .sec-acciones { width: 100%; }
    .nai-card { padding: 16px !important; }
    .nai-titular { font-size: 19px; }
    .news-card { grid-template-columns: 36px 10px minmax(0, 1fr); padding: 11px 8px !important; }
    .news-tks { grid-column: 3; justify-content: flex-start; max-width: none; margin-top: 6px; }
    .brk-src { display: none; }
    .news-count { margin-left: 0; width: 100%; }
}

/* ── ARREGLOS VISIBLES (fase 0) ───────────────────────────────────────────
   El cajón «Sistema» cerrado dejaba su sombra (−18px 0 50px) dentro de la
   vista: una franja gris en el borde derecho de TODAS las pantallas. */
.sistema-drawer { box-shadow: none !important; }
.sistema-drawer.open { box-shadow: var(--sh-3) !important; }
/* Los controles segmentados no se parten en dos líneas: se deslizan */
.rd-seg { flex-wrap: nowrap !important; }

/* ── PRE-MERCADO, DIARIO, ESCUELA, PANELES (fase 5) ────────────────────────
   Mismo sistema que Watchlist, Calendario y Noticias: tarjetas con profundidad
   en lugar de cajas con borde, etiquetas en mayúsculas pequeñas, campos y
   botones de la casa. Los colores fuera de la paleta (morado, azul) salen. */
.pm-container, .ops-container { max-width: 1300px; margin: 0 auto; padding: 18px var(--gutter) 26px !important; gap: 16px; }
.pm-date-bar { gap: 10px !important; padding: 0 0 6px !important; border: 0 !important; background: none !important; flex-wrap: wrap; }
.pm-date-dot { background: var(--brand) !important; box-shadow: 0 0 8px var(--brand-glow) !important; }
#pm-today-date { font-family: var(--mono); font-size: 13px; color: var(--ink); }
.pm-card, .ops-card, .ops-chart-card, .ops-stats-bar, .price-alerts-panel, .coach-card, .sys-card, .fund-card {
    background: var(--surface) !important; border: 0 !important; border-radius: var(--r-lg) !important;
    box-shadow: var(--sh-1) !important;
}
.pm-card, .ops-card, .ops-chart-card { padding: 18px 20px !important; }
.pm-card-header, .ops-chart-card-header { border: 0 !important; padding-bottom: 6px !important; margin-bottom: 10px !important; }
.pm-card-title, .ops-card-title, .ops-chart-title {
    display: inline-flex !important; align-items: center; gap: 8px;
    font-size: 11px !important; letter-spacing: .12em !important; text-transform: uppercase;
    font-weight: 700 !important; color: var(--ink) !important;
}
.pm-card-title .ico, .ops-card-title .ico, .ops-chart-title .ico { width: 15px; height: 15px; color: var(--text2); }
.pm-card-timer { font-family: var(--mono); font-size: 11px; color: var(--text2) !important; }
.pm-table-head { border-bottom: 1px solid var(--line) !important; }
.pm-table-head > div { font-size: 10.5px !important; letter-spacing: .1em !important; color: var(--text2) !important; font-weight: 600; }
.pm-asset-row { border-bottom: 1px solid var(--line) !important; }
.pm-divider { background: var(--line) !important; height: 1px !important; }
.pm-label, .ops-label { font-size: 10.5px !important; letter-spacing: .1em !important; color: var(--text2) !important; font-weight: 600 !important; }
.pm-pill, .pm-elder-opt, .ops-close-pill, .ops-setup-pill {
    border: 0 !important; border-radius: var(--r-pill) !important; background: var(--paper-2) !important;
    color: var(--text2) !important; font-size: 12px !important; padding: 5px 12px !important; transition: background-color .2s, color .2s;
}
.pm-pill:hover, .pm-elder-opt:hover, .ops-close-pill:hover { color: var(--ink) !important; background: var(--paper-3) !important; }
.pm-pill.green  { background: var(--up-tint) !important;   color: var(--up-ink) !important; }
.pm-pill.red    { background: var(--down-tint) !important; color: var(--down) !important; }
.pm-pill.amber  { background: var(--amber-tint) !important; color: var(--amber) !important; }
.pm-pill.purple, .pm-elder-opt.sel, .ops-close-pill.active, .ops-close-pill.sel, .ops-setup-pill.active {
    background: var(--ink) !important; color: var(--paper) !important; font-weight: 600 !important;
}
input.ops-input, select.ops-input, .ops-input, .pm-textarea, .pm-asset-select, .pm-sr-input, .alerts-input, .alerts-select,
#tab-premarket input[type="text"], #tab-premarket select, #tab-operaciones input[type="text"], #tab-operaciones input[type="number"], #tab-operaciones select {
    background: var(--surface) !important; border: 0 !important; box-shadow: inset 0 0 0 1px var(--line-2) !important;
    border-radius: var(--r-sm) !important; color: var(--ink) !important; font-family: var(--f-ui);
}
.ops-input:focus, .pm-textarea:focus, .alerts-input:focus, .alerts-select:focus,
#tab-premarket input:focus, #tab-premarket select:focus, #tab-operaciones input:focus, #tab-operaciones select:focus {
    box-shadow: inset 0 0 0 1px var(--ink), 0 0 0 3px var(--brand-tint) !important;
}
/* Los textos de ayuda de los campos eran BLANCOS sobre fondo blanco: no se veían */
.ops-input::placeholder, .pm-textarea::placeholder, input::placeholder, textarea::placeholder { color: var(--text3) !important; opacity: 1; }
.pm-btn, .pm-refresh-btn, .pm-ai-btn, .coach-analyze-btn, .ops-btn, .ops-view-btn, .alerts-add-btn, .pm-sr-refresh, .cal-action-btn, #mt5-refresh-btn {
    display: inline-flex !important; align-items: center; gap: 6px;
    background: var(--surface) !important; border: 0 !important; box-shadow: var(--sh-1) !important;
    border-radius: var(--r-sm) !important; color: var(--ink) !important; font-size: 12.5px !important; font-weight: 500 !important;
    padding: 7px 12px !important; cursor: pointer; transition: box-shadow .2s;
}
.pm-btn:hover, .pm-refresh-btn:hover, .pm-ai-btn:hover:not(:disabled), .ops-btn:hover, .ops-view-btn:hover, .alerts-add-btn:hover { box-shadow: var(--sh-2) !important; }
.pm-btn .ico, .pm-ai-btn .ico, .ops-btn .ico, .ops-view-btn .ico { width: 14px; height: 14px; }
.pm-btn-primary, .ops-btn-primary { background: var(--ink) !important; color: var(--paper) !important; }
.ops-view-btn.active { background: var(--ink) !important; color: var(--paper) !important; }
.pm-elder-score { background: var(--paper) !important; border: 0 !important; border-radius: var(--r-md) !important; }
.pm-elder-score-num, .pm-synth-val { font-family: var(--f-display) !important; font-stretch: 112%; font-weight: 700 !important; }
.pm-synth-item { background: var(--paper) !important; border: 0 !important; border-radius: var(--r-sm) !important; }
.pm-decision { background: var(--paper) !important; border: 0 !important; border-radius: var(--r-md) !important; }
.pm-commit-box { border-radius: 5px !important; }
.pm-ai-card { box-shadow: var(--sh-2) !important; }
.pm-ai-badge { background: var(--paper-2) !important; color: var(--text2) !important; border: 0 !important; font-family: var(--mono); }
.ops-stat-val, .ops-stat-value { font-family: var(--f-display) !important; font-stretch: 112%; font-weight: 700 !important; }
.ops-stat-lbl, .ops-stat-label { font-size: 10.5px !important; letter-spacing: .1em !important; color: var(--text2) !important; }
.ops-cal-day { border: 0 !important; background: var(--paper) !important; border-radius: 10px !important; }
.ops-cal-day:hover { box-shadow: var(--sh-1); background: var(--surface) !important; }
.coach-card { padding: 18px 20px !important; }
.esc-fila { background: var(--paper) !important; border: 0 !important; border-radius: var(--r-md) !important; }
.esc-fila.clicable:hover { box-shadow: var(--sh-1); background: var(--surface) !important; }
#tab-escuela .ops-card { margin: 18px var(--gutter); }
.btn-sec { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: var(--r-sm); background: var(--surface); box-shadow: var(--sh-1); color: var(--ink); padding: 7px 12px; font-size: 12.5px; cursor: pointer; }
.esc-admin-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink); text-decoration: none; padding: 6px 11px; border-radius: var(--r-sm); background: var(--surface); box-shadow: var(--sh-1); }
.esc-admin-link .ico { width: 14px; height: 14px; }

/* Alertas de precio (debajo del watchlist) */
.price-alerts-panel { margin: 18px var(--gutter) 10px !important; padding: 4px 16px !important; }
.price-alerts-header { border: 0 !important; background: none !important; padding: 12px 0 !important; font-weight: 600; }
.alerts-count-badge { font-family: var(--mono); background: var(--paper-2) !important; color: var(--text2) !important; border: 0 !important; }

/* Panel Sistema (cajón) */
.sistema-drawer { background: var(--paper) !important; border-left: 0 !important; }
.sistema-drawer-head { background: rgba(255,255,255,.85) !important; border-bottom: 1px solid var(--line) !important; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.sistema-drawer-title { font-family: var(--f-display) !important; font-stretch: 110%; font-weight: 700 !important; }
.sistema-backdrop { background: rgba(51, 41, 27, .28) !important; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
#tab-sistema .sys-card, #tab-sistema [class*="card"] { border: 0 !important; box-shadow: var(--sh-1) !important; border-radius: var(--r-md) !important; }

/* Gráfico de TradingView (modal) */
.tv-modal-overlay { background: rgba(51, 41, 27, .45) !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.tv-modal { border: 0 !important; border-radius: var(--r-lg) !important; box-shadow: var(--sh-3) !important; overflow: hidden; }
.tv-modal-header { border-bottom: 1px solid var(--line) !important; }
.tv-modal-title { font-family: var(--f-display) !important; font-stretch: 110%; font-weight: 700 !important; }

/* Sección bloqueada (modo gratuito) */
.bloqueado-card { border: 0 !important; border-radius: var(--r-lg) !important; box-shadow: var(--sh-2) !important; background: var(--surface) !important; }
.bloqueado-icono { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 12px !important; border-radius: 50%; background: var(--paper-2); color: var(--ink); }
.bloqueado-icono .ico { width: 22px; height: 22px; }
.bloqueado-titulo { font-family: var(--f-display); font-stretch: 112%; font-weight: 700 !important; letter-spacing: -.01em !important; }
.bloqueado-btn { border: 0 !important; box-shadow: var(--sh-1); border-radius: var(--r-sm) !important; }
.bloqueado-btn.primario { background: var(--brand) !important; color: var(--ink) !important; box-shadow: none; }
.bloqueado-nota { color: var(--text2) !important; }

/* ── FAVORITOS (2026-09-28) ────────────────────────────────────────────────
   Estrella en cada fila y tarjeta, panel para buscar y editar la lista, y un
   aviso breve al agregar o quitar. La estrella encendida usa el ámbar de la
   paleta (el «oro» de la casa); apagada es solo un trazo que no compite con
   el nombre del activo. */
.wl-star {
    flex: none; width: 26px; height: 26px; margin: 0 -4px 0 -6px; padding: 0;
    display: grid; place-items: center; border: 0; border-radius: 50%;
    background: transparent; color: var(--text3); cursor: pointer;
    transition: color .18s, background-color .18s, transform .18s var(--ease);
}
.wl-star svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.wl-star:hover { color: var(--amber); background: var(--amber-tint); }
.wl-star:focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; }
.wl-star.on { color: var(--amber); }
.wl-star.on svg { fill: currentColor; }
.wl-star:active { transform: scale(.88); }
.wl-star:disabled { opacity: .5; cursor: progress; }
/* En la tabla, apagada solo aparece al pasar por la fila: 500 estrellas
   vacías serían ruido. Encendida se ve siempre. En pantallas táctiles no
   hay «pasar por encima», así que ahí se ven todas. */
@media (hover: hover) {
    .wl-tabla tbody tr .wl-star:not(.on) { opacity: 0; }
    .wl-tabla tbody tr:hover .wl-star, .wl-tabla tbody tr .wl-star:focus-visible { opacity: 1; }
}
.wl-card-h .wl-star { margin: 0 -2px 0 -4px; }

/* Aviso breve */
.wl-toast {
    position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 9500;
    transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
    background: var(--ink); color: var(--paper); border-radius: var(--r-pill);
    padding: 9px 16px; font-size: 13px; font-weight: 500; box-shadow: var(--sh-3);
    max-width: calc(100vw - 32px); text-align: center;
    transition: opacity .22s, transform .22s var(--ease);
}
.wl-toast.ver { opacity: 1; transform: translate(-50%, 0); }
.wl-toast.malo { background: var(--down); color: #fff; }

/* Panel */
.wl-panel .wl-panel-caja {
    width: min(480px, calc(100vw - 32px)); max-height: min(78vh, 720px); padding: 20px 20px 16px !important;
    display: flex; flex-direction: column; gap: 10px; background: var(--surface);
}
.wl-panel-cab { margin: 0 !important; align-items: flex-start !important; }
.wl-panel-titulo { display: flex; align-items: baseline; gap: 10px; }
.wl-panel-titulo strong { font-family: var(--f-display); font-stretch: 112%; font-size: 19px; font-weight: 700; color: var(--ink); }
.wl-panel-cuenta { font-family: var(--mono); font-size: 12px; color: var(--text2); }
.wl-panel .wl-cerrar {
    width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
    font-size: 0; color: var(--text2); background: transparent; border: 0; cursor: pointer;
}
.wl-panel .wl-cerrar:hover { background: var(--paper-2); color: var(--ink); }
.wl-panel .wl-cerrar .ico { width: 18px; height: 18px; }
.wl-panel-buscar {
    display: flex; align-items: center; gap: 9px; padding: 0 12px; height: 44px;
    background: var(--paper); border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line-2);
    transition: box-shadow .18s;
}
.wl-panel-buscar:focus-within { box-shadow: inset 0 0 0 1px var(--ink), 0 0 0 3px var(--brand-tint); }
.wl-panel-buscar .ico { width: 17px; height: 17px; color: var(--text2); flex: none; }
.wl-panel-buscar input {
    flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
    font: 500 14.5px var(--f-ui); color: var(--ink);
}
/* La «×» nativa del buscador sale azul en Edge/Chrome: se redibuja con la tinta de la casa */
.wl-panel-buscar input::-webkit-search-cancel-button {
    -webkit-appearance: none; appearance: none; width: 18px; height: 18px; cursor: pointer;
    background: var(--text2);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 6.5l11 11M17.5 6.5l-11 11' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 6.5l11 11M17.5 6.5l-11 11' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.wl-panel-buscar input::-webkit-search-cancel-button:hover { background: var(--ink); }
.wl-panel-ayuda { font-size: 12px; color: var(--text2); margin-top: -2px; }
.wl-panel .wl-sugerencias { margin: 0; gap: 2px; }
.wl-panel .wl-sugerencias:empty { display: none; }
.wl-panel .wl-sug {
    display: flex; align-items: center; gap: 11px; width: 100%; padding: 7px 10px;
    border: 0; border-radius: var(--r-sm); background: transparent; text-align: left;
    font: inherit; color: var(--ink); cursor: pointer;
}
.wl-panel .wl-sug:hover, .wl-panel .wl-sug.sel { background: var(--paper-2); border: 0; }
.wl-panel .wl-sug .wl-mg { width: 30px; height: 30px; }
.wl-sug-tx, .wl-fila-tx { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.wl-panel .wl-sug-nom, .wl-fila-nom {
    font-size: 14px; font-weight: 600; opacity: 1; color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wl-sug-meta, .wl-fila-meta { font-size: 12px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-sug-meta b, .wl-fila-meta b { font-family: var(--mono); font-weight: 500; color: var(--ink); letter-spacing: .02em; }
.wl-sug-acc {
    flex: none; display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 600; color: var(--ink);
    padding: 5px 10px; border-radius: var(--r-pill); background: var(--paper-2);
}
.wl-sug-acc .ico { width: 13px; height: 13px; }
.wl-panel .wl-sug.sel .wl-sug-acc, .wl-panel .wl-sug:hover .wl-sug-acc { background: var(--ink); color: var(--paper); }
.wl-panel .wl-sug.ya .wl-sug-acc { background: var(--amber-tint); color: var(--amber); }
.wl-panel .wl-sug.ya .wl-sug-acc .ico { fill: currentColor; }
.wl-panel .wl-panel-aviso { min-height: 0; margin: 0; font-size: 12.5px; }
.wl-panel .wl-panel-aviso:empty { display: none; }
.wl-panel .wl-panel-aviso.malo { color: var(--down); }
.wl-panel .wl-panel-aviso.bien { color: var(--up-ink); }
.wl-panel-lista { overflow-y: auto; min-height: 60px; margin: 0 -6px; padding: 0 6px; }
.wl-panel .wl-seccion {
    font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
    color: var(--text2); margin: 8px 0 6px;
}
.wl-panel .wl-fila {
    display: flex; align-items: center; gap: 11px; padding: 7px 8px 7px 10px; margin: 0 0 4px;
    background: var(--paper) !important; border: 0 !important; border-radius: var(--r-sm) !important; color: var(--ink);
}
.wl-panel .wl-fila .wl-mg { width: 30px; height: 30px; }
.wl-panel .wl-fila button {
    flex: none; border: 0; background: transparent; color: var(--text2); cursor: pointer;
    border-radius: var(--r-sm); padding: 6px 10px; font-size: 12.5px; font-weight: 600;
}
.wl-panel .wl-fila button:hover { background: var(--paper-3); color: var(--ink); border: 0; }
.wl-panel .wl-fila .wl-quitar { width: 30px; height: 30px; padding: 0; display: grid; place-items: center; border-radius: 50%; }
.wl-panel .wl-fila .wl-quitar .ico { width: 15px; height: 15px; }
.wl-panel .wl-fila .wl-quitar:hover { background: var(--down-tint); color: var(--down); }
.wl-panel .wl-vacio { font-size: 13px; line-height: 1.5; color: var(--text2); padding: 10px 2px; }
.hm-vacio-btn { display: inline-flex; align-items: center; gap: 6px; }
.hm-vacio-btn .ico { width: 15px; height: 15px; }
@media (max-width: 560px) {
    .wl-panel { align-items: flex-end !important; }
    .wl-panel .wl-panel-caja {
        width: 100vw; max-height: 86vh; border-radius: var(--r-lg) var(--r-lg) 0 0 !important;
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    }
    .wl-sug-acc { padding: 5px 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .wl-toast, .wl-star { transition: none; }
}


/* ── ADAPTACIÓN ─────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
    .market-summary.pulso { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .p-ses { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
    .p-mod:nth-child(2) { border-left: 0; }
    .header-right .hdr-link span { display: none; }
}
@media (max-width: 900px) {
    .header { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; padding-bottom: 0; }
    .header-left { grid-column: 1; }
    .header-right { grid-column: 2; }
    .tabs-bar { grid-column: 1 / -1; grid-row: 2; margin: 0 calc(-1 * var(--gutter)); padding: 0 calc(var(--gutter) - 6px) 4px; }
    .tab-btn.active::after { bottom: -4px; }
}
@media (max-width: 768px) {
    body { font-size: 13px; }
    .header { padding: 8px 12px 0; }
    .tab-content { padding: 0 !important; }
    .live-pill #status-text { display: none; }
    .live-pill { padding: 8px; }
    .market-summary.pulso { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 10px 10px 0; }
    .p-mod { padding: 12px; }
    .p-mod:nth-child(3) { border-left: 1px solid var(--line); }
    .p-fg, .p-amp { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid var(--line); }
    .p-val { font-size: 24px; }
    .wl-barra { margin: 12px 10px 0; }
    #tab-watchlist .dashboard-container { padding: 12px 10px 8px; }
    .wl-tabla-caja { overflow-x: auto; }
    .wl-tabla [data-col="~rango"], .wl-tabla [data-col="change_pct_1s"], .wl-tabla [data-col="change_pct_1m"],
    .wl-tabla [data-col="change_pct_1a"], .wl-tabla [data-col="volume"], .wl-tabla [data-col="market_cap"],
    .wl-tabla [data-col="sector"] { display: none; }
    .wl-tabla td, .wl-tabla th { padding-left: 6px; padding-right: 6px; }
    .wl-tabla td .pill { min-width: 0; font-size: 11px; padding: 2px 6px; }
    .wl-spk { width: 64px; }
    .wl-t-nom { max-width: 120px; }
    .hm-acciones { width: 100%; justify-content: space-between; }
}
@media (max-width: 480px) {
    .tab-btn { flex-direction: column; gap: 3px; font-size: 11px; padding: 6px 8px; }
    .tab-btn .ico { width: 18px; height: 18px; }
    .tab-lock { display: none; }
    .logo-update { display: none; }
    /* La portada publica en telefono cortaba la marca: se leia "ABMTradin".
       Logo + punto de estado + "Iniciar sesion" + "Registrarse" suman ~367 px y
       un telefono de 375 deja 351. La marca era la que cedia (su columna es
       minmax(0,1fr)); ahora ceden los margenes de los botones. Visto el
       2026-10-03, que es justo por donde entra el trafico de Instagram. */
    .header-right { gap: 6px; }
    .hdr-btn { margin-left: 0; padding: 5px 9px; }
    .live-pill { padding: 6px; }
    .logo-wrap { gap: 7px; }
    .logo-title { font-size: 16px; white-space: nowrap; }
    .header-left { min-width: max-content; }
}
@media (max-width: 380px) {
    .hdr-btn { padding: 5px 7px; font-size: 10.5px; }
    .logo-title { font-size: 15px; }
    .logo-svg { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
