/* ===== Herramientas y El momento (visual) ===== */
.sx-panel { padding: 18px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; position: relative; }
.sx-panel h3 { margin: 0 0 2px; font-size: var(--fs-head); letter-spacing: -0.02em; }
.sx-ph { display: flex; gap: 12px; align-items: flex-start; }
.sx-ph-e { font-size: 26px; width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 14px; background: radial-gradient(circle at 30% 25%, #2B3A7A, #18204A); box-shadow: inset 0 0 0 1px #34427E, 0 8px 20px -10px #7C8CFF; }
.sx-sub { margin: 0; font-weight: 600; font-size: 14px; }
.sx-in { animation: sxIn .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes sxIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sx-in, .sx-in *, .sx-fz-bar i, .sx-pulso { animation: none !important; transition: none !important; } }

/* calculadora */
.sx-calc-top { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.sx-idea { display: flex; gap: 8px; flex: 1 1 320px; }
.sx-idea-b { flex: 1; border: 1px solid var(--line); background: #10173A; color: var(--fg); border-radius: 16px; padding: 12px; font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 2px; text-align: left; transition: transform .15s, background .2s, border-color .2s, box-shadow .2s; }
.sx-idea-b b { font-size: 17px; } .sx-idea-b span { font-size: 12px; color: var(--muted); }
.sx-idea-b:hover { transform: translateY(-1px); }
.sx-idea-b.buy.on { background: linear-gradient(135deg, rgba(60,240,166,.22), rgba(60,240,166,.06)); border-color: rgba(60,240,166,.6); box-shadow: 0 10px 24px -14px var(--ok); }
.sx-idea-b.sell.on { background: linear-gradient(135deg, rgba(255,92,122,.22), rgba(255,92,122,.06)); border-color: rgba(255,92,122,.6); box-shadow: 0 10px 24px -14px var(--bad); }
.sx-hoy-b { border: 1px dashed #4A5BA8; background: rgba(124,140,255,.08); color: #C7CEFF; border-radius: 16px; padding: 10px 14px; font: inherit; font-size: 13px; cursor: pointer; transition: background .2s; }
.sx-hoy-b:hover { background: rgba(124,140,255,.18); }
.sx-filtros { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 10px 16px; }
.sx-grupo { display: flex; flex-direction: column; gap: 6px; }
.sx-glab { font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.sx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sx-chip { border: 1px solid var(--line); background: #10173A; color: #C4CAE6; border-radius: 999px; padding: 6px 11px; font: inherit; font-size: 12.5px; cursor: pointer; transition: all .15s; }
.sx-chip:hover { border-color: #3A4A8A; color: #fff; }
.sx-chip.on { background: linear-gradient(135deg, #3A4CB0, #5A4FD0); border-color: #7C8CFF; color: #fff; box-shadow: 0 6px 16px -8px #7C8CFF; }
.sx-chip.big { padding: 9px 16px; font-size: 14px; }
.sx-res { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 14px; }
.sx-res-box { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.sx-res-izq { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; margin: 0 auto; }
.sx-res-der { flex: 1 1 280px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sx-dona { width: 140px; height: 140px; }
.sx-dona-bg { fill: none; stroke: #1E2650; stroke-width: 12; }
.sx-dona-fg { fill: none; stroke-width: 12; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 60px 60px; transition: stroke-dashoffset .8s cubic-bezier(.2,.8,.2,1); }
.sx-dona.up .sx-dona-fg { stroke: var(--ok); filter: drop-shadow(0 0 6px rgba(60,240,166,.5)); }
.sx-dona.dn .sx-dona-fg { stroke: var(--bad); filter: drop-shadow(0 0 6px rgba(255,92,122,.5)); }
.sx-dona.nt .sx-dona-fg { stroke: var(--amber); }
.sx-dona-n { fill: var(--fg); font-size: 28px; font-weight: 700; text-anchor: middle; letter-spacing: -1px; }
.sx-dona-l { fill: var(--muted); font-size: 10px; text-anchor: middle; }
.sx-aviso { font-size: 11px; color: var(--amber); text-align: center; max-width: 150px; }
.sx-veredicto { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.sx-veredicto.up { color: var(--ok); } .sx-veredicto.dn { color: var(--bad); } .sx-veredicto.nt { color: var(--amber); }
.sx-cmp { display: flex; flex-direction: column; gap: 4px; }
.sx-cmp-track { position: relative; height: 10px; border-radius: 999px; background: #1A2148; }
.sx-cmp-fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; transition: width .6s; }
.sx-cmp-fill.up { background: linear-gradient(90deg, #1E8F66, var(--ok)); } .sx-cmp-fill.dn { background: linear-gradient(90deg, #8F2B40, var(--bad)); } .sx-cmp-fill.nt { background: linear-gradient(90deg, #8F6A2B, var(--amber)); }
.sx-cmp-mk { position: absolute; top: -4px; width: 3px; height: 18px; background: #fff; border-radius: 2px; transform: translateX(-1px); box-shadow: 0 0 6px rgba(255,255,255,.6); }
.sx-cmp-l { font-size: 11px; color: var(--muted); }
.sx-rep { display: flex; height: 26px; border-radius: 10px; overflow: hidden; font-size: 11px; font-weight: 600; }
.sx-rep span { display: grid; place-items: center; white-space: nowrap; overflow: hidden; color: #0B1020; min-width: 4px; }
.sx-rep-f { background: var(--ok); } .sx-rep-c { background: var(--bad); } .sx-rep-n { background: #2A3260; color: #C4CAE6 !important; }
.sx-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sx-stat { background: #10173A; border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sx-stat-e { font-size: 16px; } .sx-stat-l { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; } .sx-stat b { font-size: 16px; font-variant-numeric: tabular-nums; }
.sx-vacio { margin: 0; color: var(--muted); }
.sx-etapas { display: flex; flex-direction: column; gap: 7px; }
.sx-et { display: grid; grid-template-columns: minmax(90px, 160px) 1fr 42px; gap: 10px; align-items: center; font-size: 12.5px; }
.sx-et-n { color: #C4CAE6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-et.ahora .sx-et-n { color: #fff; font-weight: 600; }
.sx-et-bar { height: 8px; background: #1A2148; border-radius: 999px; overflow: hidden; }
.sx-et-bar i { display: block; height: 100%; border-radius: 999px; }
.sx-et-bar i.up { background: var(--ok); } .sx-et-bar i.dn { background: var(--bad); } .sx-et-bar i.nt { background: var(--amber); }
.sx-et b { text-align: right; font-variant-numeric: tabular-nums; }

/* mapa del dato */
.sx-evtabs { display: flex; gap: 8px; }
.sx-proximo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 14px; background: linear-gradient(90deg, rgba(255,181,71,.14), rgba(255,181,71,.03)); border: 1px solid rgba(255,181,71,.35); font-size: 13px; }
.sx-proximo b { color: var(--amber); margin-left: auto; }
.sx-pulso { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); animation: sxPulso 1.8s infinite; flex: none; }
@keyframes sxPulso { 0% { box-shadow: 0 0 0 0 rgba(255,181,71,.6); } 70% { box-shadow: 0 0 0 10px rgba(255,181,71,0); } 100% { box-shadow: 0 0 0 0 rgba(255,181,71,0); } }
.sx-heat { display: grid; grid-template-columns: minmax(96px, 1.1fr) repeat(4, minmax(0, 1fr)); gap: 6px; align-items: stretch; }
.sx-heat-h { font-size: 12px; color: var(--muted); text-align: center; padding-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sx-heat-r { font-size: 12.5px; color: #C4CAE6; display: flex; align-items: center; line-height: 1.25; }
.sx-cell { border-radius: 14px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; border: 1px solid transparent; min-height: 66px; transition: transform .15s; }
.sx-cell:hover { transform: scale(1.04); }
.sx-cell b { font-size: 18px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.sx-cell span { font-size: 10px; opacity: .85; line-height: 1.2; }
.sx-cell.up { background: rgba(60,240,166, calc(.08 + var(--a) * .32)); border-color: rgba(60,240,166, calc(.2 + var(--a) * .5)); color: #DFFFF1; }
.sx-cell.dn { background: rgba(255,92,122, calc(.08 + var(--a) * .32)); border-color: rgba(255,92,122, calc(.2 + var(--a) * .5)); color: #FFE3E8; }
.sx-cell.nt { background: #141B3C; border-color: var(--line); color: var(--muted); }
@media (max-width: 560px) { .sx-heat { grid-template-columns: 74px repeat(4, minmax(0, 1fr)); gap: 4px; } .sx-cell { padding: 8px 2px; min-height: 58px; } .sx-cell b { font-size: 15px; } .sx-cell span { font-size: 9px; } .sx-heat-h { font-size: 10.5px; } .sx-heat-r { font-size: 11px; } }

/* el momento */
#momento-hoy { background: radial-gradient(120% 90% at 100% 0%, rgba(255,92,122,.16), transparent 55%), radial-gradient(90% 80% at 0% 100%, rgba(124,140,255,.18), transparent 60%), linear-gradient(180deg, #161D3D, #111733); }
.sx-hero { display: flex; flex-direction: column; gap: 10px; }
.sx-badge { align-self: flex-start; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: #FFB3C1; background: rgba(255,92,122,.14); border: 1px solid rgba(255,92,122,.4); padding: 4px 10px; border-radius: 999px; }
.sx-hero-t { margin: 0; font-size: clamp(20px, 4.4vw, 26px); letter-spacing: -0.03em; line-height: 1.15; }
.sx-hero-p { margin: 0; color: #C4CAE6; line-height: 1.55; font-size: 14px; }
.sx-hero-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 8px; }
.sx-hk { background: rgba(11,16,32,.55); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; display: flex; flex-direction: column; gap: 1px; }
.sx-hk-e { font-size: 18px; } .sx-hk b { font-size: 24px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; } .sx-hk-l { font-size: 11px; color: var(--muted); }
.sx-amber { color: var(--amber); }
.sx-linea { width: 100%; height: 56px; display: block; }
.sx-linea-l { fill: none; stroke-width: 2; }
.sx-linea.up .sx-linea-l { stroke: var(--ok); } .sx-linea.dn .sx-linea-l { stroke: var(--bad); }
.sx-linea.up .sx-linea-a { fill: rgba(60,240,166,.12); } .sx-linea.dn .sx-linea-a { fill: rgba(255,92,122,.12); }
.sx-fuerzas { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.sx-fz { display: grid; grid-template-columns: 26px minmax(110px, 170px) 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; }
.sx-fz-e { font-size: 18px; grid-row: span 2; } .sx-fz-n { font-size: 13px; font-weight: 600; }
.sx-fz-bar { height: 10px; background: #1A2148; border-radius: 999px; overflow: hidden; }
.sx-fz-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #7C8CFF, #FF5C7A); transform-origin: left; }
.sx-fuerzas.sx-in .sx-fz-bar i { animation: sxGrow .9s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d); }
@keyframes sxGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.sx-fz-t { grid-column: 2 / 4; font-size: 11px; color: var(--muted); }
.sx-vigila { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.sx-vg-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 8px; }
.sx-vg { background: rgba(11,16,32,.5); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.sx-vg-e { font-size: 20px; } .sx-vg b { font-size: 14px; } .sx-vg span:last-child { font-size: 12px; color: var(--muted); }
.sx-ir { align-self: flex-start; border: 0; background: linear-gradient(135deg, #3A4CB0, #5A4FD0); color: #fff; font: inherit; font-size: 13px; font-weight: 600; padding: 9px 14px; border-radius: 999px; cursor: pointer; box-shadow: 0 8px 20px -10px #7C8CFF; }
.sx-tl { position: relative; display: flex; flex-direction: column; gap: 12px; padding-left: 4px; }
.sx-tl::before { content: ''; position: absolute; left: 23px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(180deg, #2B3566, #7C8CFF 70%, #FF5C7A); border-radius: 2px; }
.sx-tl-i { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.sx-tl.sx-in .sx-tl-i { animation: sxIn .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * .07s); }
.sx-tl-n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; background: #18204A; border: 2px solid #34427E; position: relative; z-index: 1; }
.sx-tl-i.ahora .sx-tl-n { border-color: var(--bad); box-shadow: 0 0 0 5px rgba(255,92,122,.15), 0 0 18px rgba(255,92,122,.5); }
.sx-tl-c { background: #10173A; border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sx-tl-i.ahora .sx-tl-c { border-color: rgba(255,92,122,.5); background: linear-gradient(180deg, rgba(255,92,122,.08), #10173A); }
.sx-tl-h { display: flex; justify-content: space-between; align-items: center; }
.sx-tl-cuando { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.sx-tl-ahora { font-size: 10px; font-weight: 700; color: #fff; background: var(--bad); padding: 2px 8px; border-radius: 999px; letter-spacing: .06em; }
.sx-tl-t { font-size: 15px; }
.sx-tl-fila { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.sx-tl-tot { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; white-space: nowrap; }
.sx-tl-fila .sx-linea { height: 34px; }
.sx-tl-q { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.45; }
.sx-tl-l { margin: 2px 0 0; font-size: 12.5px; color: #DDE2FF; line-height: 1.45; background: rgba(124,140,255,.1); border-radius: 10px; padding: 7px 9px; }
