/* WIQON · v4 "producto primero" (/ y /br/). Dark fintech: azul-negro, superficies algo más claras,
   cyan para acciones y datos activos, dorado tenue para lo regional/institucional,
   verde/rojo solo para estados de mercado. Bordes finos, glow mínimo. */
:root {
  --fondo: #02040b; --fondo2: #050a18; --sup: #081129; --sup2: #0c1834; --borde: #152447; --borde2: #1e3260;
  --texto: #eaf3ff; --suave: #b4c3dd; --gris: #8d9cb6; --gris2: #7b8aa6;
  --cian: #3fe0ff; --cian2: #8aebff; --compra: #3fe0ff; --venta: #3d6dff; --oro: #c9a45a; --sube: #2fc47f; --baja: #ef5f67; --aviso: #e7b54a;
  --sans: "Geist", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; --titulos: "Unbounded", "Geist", system-ui, sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
  --r: 12px; --ancho: 1240px;
  --nav-bg: rgba(2, 4, 11, .82); --caja-bg: rgba(2, 4, 11, .35); --pie-bg: #01030a; --atajo-bg: rgba(12, 22, 36, .7); --grilla: rgba(26, 42, 64, .8); --eje: #7a8797;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--fondo); color: var(--texto); font-family: var(--sans); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
svg.ic { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.c { max-width: var(--ancho); margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--mono); }
[hidden] { display: none !important; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--cian); outline-offset: 2px; border-radius: 4px; }
.sube { color: var(--sube); } .baja { color: var(--baja); }

/* ---------- header ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--nav-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--borde); }
.nav .c { display: flex; align-items: center; gap: 34px; height: 66px; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: .08em; font-size: 1.15rem; }
.marca img { width: 32px; height: 32px; border-radius: 50%; }
.nav-l { display: flex; gap: 26px; font-size: .9rem; }
.nav-l a { text-decoration: none; color: var(--suave); padding: 22px 0; border-bottom: 2px solid transparent; }
.nav-l a:hover { color: var(--texto); border-color: var(--cian); }
.nav-d { margin-left: auto; display: flex; align-items: center; gap: 16px; font-size: .84rem; }
.idioma { display: flex; gap: 2px; border: 1px solid var(--borde2); border-radius: 8px; padding: 2px; }
.idioma a { text-decoration: none; color: var(--gris); padding: 4px 9px; border-radius: 6px; font-weight: 600; }
.idioma a.on { background: var(--sup2); color: var(--texto); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 9px; font: 600 .92rem var(--sans);
       text-decoration: none; border: 1px solid var(--borde2); color: var(--texto); background: transparent; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.btn:hover { border-color: var(--gris); transform: translateY(-1px); }
.btn.p { background: var(--cian); border-color: var(--cian); color: #04121c; }
.btn.p:hover { background: var(--cian2); }
.btn.wa { background: #1b8f52; border-color: #1b8f52; color: #fff; }
.btn.ch { padding: 8px 14px; font-size: .84rem; }
.btn svg.ic { width: 18px; height: 18px; }
.enl { color: var(--cian); text-decoration: none; font-weight: 600; font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; }
.enl:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- hero ---------- */
.hero { padding: 54px 0 40px; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 78% 30%, rgba(34, 195, 238, .07), transparent 70%); }
.hero .c { display: grid; grid-template-columns: 1fr 1.08fr; gap: 48px; align-items: center; position: relative; }
.kicker { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--suave); display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; width: 34px; height: 2px; background: var(--cian); }
.hero h1 { font-size: clamp(2.2rem, 3.8vw, 3.15rem); line-height: 1.07; letter-spacing: -.025em; font-weight: 800; margin: 18px 0 18px; }
.hero h1 span { color: var(--cian); }
.hero .sub { font-size: 1.1rem; color: var(--suave); max-width: 560px; }
.hero .acc { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.panel { background: linear-gradient(180deg, var(--sup2), var(--sup)); border: 1px solid var(--borde2); border-radius: 16px; padding: 16px; display: grid; grid-template-columns: 1.45fr 1fr; gap: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.grafico { border-right: 1px solid var(--borde); padding-right: 14px; min-width: 0; }
.g-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.par { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.par .btc { width: 24px; height: 24px; border-radius: 50%; background: #f7931a; color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 800; }
.precio { font-family: var(--mono); font-size: 1.35rem; margin-top: 6px; }
.precio small { font-size: .82rem; margin-left: 8px; }
.est { font-size: .7rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; white-space: nowrap; letter-spacing: .03em; }
.est.btc { color: var(--sube); border: 1px solid rgba(47, 196, 127, .45); background: rgba(47, 196, 127, .08); }
.est.usdt { color: var(--cian); border: 1px solid rgba(34, 195, 238, .45); background: rgba(34, 195, 238, .08); }
#lienzo { width: 100%; height: 230px; display: block; margin-top: 8px; }
.rangos { display: flex; gap: 4px; margin-top: 6px; }
.rangos button { font: 600 .74rem var(--sans); color: var(--gris); background: none; border: 0; padding: 5px 9px; border-radius: 6px; cursor: pointer; }
.rangos button[aria-pressed="true"] { background: var(--sup2); color: var(--texto); }
.leyenda { display: flex; gap: 14px; font-size: .72rem; color: var(--gris); margin-top: 6px; flex-wrap: wrap; }
.leyenda i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 5px; }
.estado { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.caja { border: 1px solid var(--borde); border-radius: 10px; padding: 13px; background: var(--caja-bg); }
.caja .fila { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: .84rem; color: var(--suave); padding: 4px 0; }
.caja .fila b { font-family: var(--mono); font-weight: 500; color: var(--texto); font-size: 1rem; }
.caja .act { font-size: .7rem; color: var(--gris); }
.caja h4 { font-size: .92rem; display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.caja h4 svg { color: var(--cian); }
.caja p { font-size: .82rem; color: var(--suave); }
.caja .enl { font-size: .8rem; margin-top: 8px; }

/* ---------- proof bar ---------- */
.prueba { border-top: 1px solid var(--borde); border-bottom: 1px solid var(--borde); background: var(--fondo2); }
.prueba .c { display: grid; grid-template-columns: repeat(4, 1fr) 1.15fr; align-items: stretch; padding: 0; }
.pr { display: flex; gap: 12px; align-items: center; padding: 18px 20px; border-right: 1px solid var(--borde); }
.pr svg { color: var(--cian); width: 28px; height: 28px; }
.pr b { display: block; font-size: .9rem; }
.pr span { font-size: .78rem; color: var(--gris); }
.region-foto { position: relative; overflow: hidden; min-height: 76px; }
.region-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.region-foto span { position: absolute; left: 14px; right: 14px; text-align: right; font-size: .7rem !important; bottom: 10px; font-size: .7rem; letter-spacing: .16em; color: var(--suave); text-transform: uppercase; text-shadow: 0 1px 4px #000; }

/* ---------- secciones ---------- */
section.s { padding: 64px 0; }
section.s + section.s { border-top: 1px solid var(--borde); }
.cab { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: end; margin-bottom: 28px; }
.cab .der { color: var(--suave); font-size: .95rem; max-width: 560px; border-left: 1px solid var(--borde2); padding-left: 24px; }
.vol { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cian); font-weight: 700; display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.vol::before { content: ""; width: 26px; height: 2px; background: var(--cian); }
h2.t { font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
h2.t span { color: var(--cian); }

/* ---------- tres pilares ---------- */
.pilares { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pilar { background: var(--sup); border: 1px solid var(--borde); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 14px; transition: border-color .2s; }
.pilar:hover { border-color: var(--borde2); }
.pilar.dest { border-color: rgba(34, 195, 238, .35); }
.p-cab { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.p-ic { width: 46px; height: 46px; border-radius: 11px; border: 1px solid var(--borde2); display: grid; place-items: center; color: var(--cian); background: var(--fondo2); }
.p-ic svg { width: 24px; height: 24px; }
.pilar h3 { font-size: 1.22rem; font-weight: 700; }
.chip-e { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; border: 1px solid rgba(34, 195, 238, .4); color: var(--cian); }
.chip-e.ok { border-color: rgba(47, 196, 127, .45); color: var(--sube); }
.chip-e.pronto { border-color: rgba(201, 164, 90, .5); color: var(--oro); }
.pilar .que { color: var(--suave); font-size: .93rem; }
.pilar .problema { font-size: .84rem; color: var(--gris); }
.pilar .problema b { color: var(--suave); font-weight: 600; }
.evid { background: var(--fondo2); border: 1px solid var(--borde); border-radius: 10px; padding: 14px; }
.evid .num { font-family: var(--mono); font-size: 1.6rem; color: var(--texto); line-height: 1.1; }
.evid .num small { font-size: .78rem; color: var(--gris); font-family: var(--sans); margin-left: 6px; }
.evid .comp { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.evid .lbl { font-size: .7rem; color: var(--gris); text-transform: uppercase; letter-spacing: .06em; }
.barra-c { height: 6px; border-radius: 3px; background: var(--borde); margin-top: 6px; overflow: hidden; }
.barra-c i { display: block; height: 100%; border-radius: 3px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.tags span { font-size: .7rem; border: 1px solid var(--borde2); color: var(--suave); padding: 2px 7px; border-radius: 5px; }
.mt5 { font-family: var(--mono); font-size: .78rem; }
.mt5 .t5 { display: flex; justify-content: space-between; color: var(--gris); margin-bottom: 8px; }
.mt5 ul { list-style: none; }
.mt5 li { display: flex; gap: 8px; align-items: center; padding: 3px 0; color: var(--suave); }
.mt5 li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sube); flex: none; }
.servs { list-style: none; display: grid; gap: 6px; }
.servs li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--borde); border-radius: 8px; font-size: .86rem; background: var(--fondo2); }
.servs li svg { color: var(--cian); width: 18px; height: 18px; }
.servs li .chip-e { margin-left: auto; }
.pilar .pie-p { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.limite { font-size: .76rem; color: var(--gris); }

/* ---------- metodología ---------- */
.metodo { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 8px; }
.paso { padding: 18px 18px 18px 0; position: relative; }
.paso:not(:last-child)::after { content: "→"; position: absolute; right: 8px; top: 18px; color: var(--gris2); }
.paso .n { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--cian); color: var(--cian); display: grid; place-items: center; font-weight: 700; font-size: .86rem; }
.paso h3 { font-size: .98rem; margin: 12px 0 4px; }
.paso p { font-size: .82rem; color: var(--gris); padding-right: 22px; }
.principios { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.principios span { font-size: .82rem; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--borde2); color: var(--suave); background: var(--sup); }
.principios span b { color: var(--texto); }
.lab-g { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; margin-top: 34px; align-items: start; }
.tabla { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tabla th { text-align: left; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gris2); font-weight: 600; padding: 10px; border-bottom: 1px solid var(--borde2); }
.tabla td { padding: 11px 10px; border-bottom: 1px solid var(--borde); vertical-align: top; color: var(--suave); }
.tabla td:first-child a { color: var(--texto); text-decoration: none; font-weight: 600; }
.tabla td:first-child a:hover { color: var(--cian); }
.tipo { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.tipo.real { color: var(--sube); border: 1px solid rgba(47, 196, 127, .45); }
.tipo.hist { color: var(--cian); border: 1px solid rgba(34, 195, 238, .45); }
.tipo.med { color: var(--aviso); border: 1px solid rgba(231, 181, 74, .45); }
.ver.si { color: var(--sube); } .ver.no { color: var(--baja); } .ver.ojo { color: var(--aviso); }
.ver::before { margin-right: 4px; } .ver.si::before { content: "✓"; } .ver.no::before { content: "✕"; } .ver.ojo::before { content: "!"; }
.vivo { background: var(--sup); border: 1px solid var(--borde2); border-radius: 12px; padding: 18px; }
.vivo .et { display: flex; justify-content: space-between; font-size: .72rem; color: var(--gris); text-transform: uppercase; letter-spacing: .06em; gap: 8px; }
.senal { font-size: 2.2rem; font-weight: 800; margin: 8px 0 0; }
.senal.btc { color: var(--sube); } .senal.usdt { color: var(--cian); }
.datos-v { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.datos-v div { background: var(--fondo2); border: 1px solid var(--borde); border-radius: 8px; padding: 10px; }
.datos-v b { display: block; font-family: var(--mono); font-weight: 500; font-size: .92rem; }
.datos-v span { font-size: .7rem; color: var(--gris); }
.actualizado { font-size: .76rem; color: var(--sube); margin-top: 10px; }
.actualizado.viejo { color: var(--aviso); }
.nota { font-size: .76rem; color: var(--gris); margin-top: 10px; }

/* ---------- market snapshot ---------- */
.snap { display: grid; grid-template-columns: 1.1fr repeat(4, 1fr); gap: 14px; align-items: stretch; }
.snap .intro h2 { font-size: 1.45rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: 6px; }
.snap .intro p { font-size: .86rem; color: var(--gris); }
.dato-m { background: var(--sup); border: 1px solid var(--borde); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.dato-m .q { font-size: .76rem; color: var(--suave); display: flex; gap: 6px; align-items: center; }
.dato-m .q i { font-style: normal; font-size: .7rem; font-weight: 700; color: var(--oro); border: 1px solid rgba(201, 164, 90, .45); border-radius: 4px; padding: 0 4px; }
.dato-m .v { font-family: var(--mono); font-size: 1.32rem; }
.dato-m .f { font-size: .7rem; color: var(--gris); }
.dato-m .f.viejo { color: var(--aviso); }
details.mas { margin-top: 16px; }
details.mas summary { cursor: pointer; color: var(--cian); font-size: .86rem; font-weight: 600; list-style: none; }
details.mas summary::-webkit-details-marker { display: none; }
details.mas summary::before { content: "+ "; }
details.mas[open] summary::before { content: "– "; }
details.mas .tabla { margin-top: 12px; }
.tabla td.v { font-family: var(--mono); text-align: right; white-space: nowrap; color: var(--texto); }
.tabla th.v { text-align: right; }
.tabla .u { color: var(--gris); font-size: .76rem; }
.tabla a { color: var(--suave); }

/* ---------- news radar (complementario) ---------- */
.radar-cab { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.radar-cab h2 { font-size: 1.45rem; font-weight: 800; }
.radar-cab p { font-size: .86rem; color: var(--gris); }
.meta { font-size: .76rem; color: var(--gris); }
.meta b { color: var(--suave); font-weight: 600; }
.filtros { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; padding: 10px 0; border-top: 1px solid var(--borde); border-bottom: 1px solid var(--borde); margin-bottom: 14px; }
.grupo { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.grupo > span, .grupo label span { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gris2); margin-right: 3px; }
.chip { font: 500 .8rem var(--sans); padding: 4px 11px; border-radius: 999px; border: 1px solid var(--borde2); background: transparent; color: var(--gris); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--texto); color: var(--fondo); border-color: var(--texto); font-weight: 600; }
.sel { font: .8rem var(--sans); padding: 5px 8px; border-radius: 6px; border: 1px solid var(--borde2); background: var(--sup); color: var(--texto); }
.notas { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.notas.completo { grid-template-columns: repeat(2, 1fr); }
.nota-n { background: var(--sup); border: 1px solid var(--borde); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.nota-n { overflow: hidden; }
.mini { display: block; position: relative; margin: -14px -14px 2px; aspect-ratio: 16 / 9; overflow: hidden; background:
  radial-gradient(120% 90% at 85% 10%, color-mix(in srgb, var(--cian) 28%, transparent), transparent 60%),
  linear-gradient(135deg, var(--sup2), var(--fondo)); }
.mini img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.nota-n:hover .mini img { transform: scale(1.04); }
.mini-f { position: absolute; left: 12px; bottom: 10px; font: 600 .8rem var(--titulos); letter-spacing: -.01em; color: #fff; opacity: 0; }
.sin-img .mini-f { opacity: .9; font-size: 1.05rem; }
.mini::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 -1px 0 var(--borde); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .mini img { transition: none; } .nota-n:hover .mini img { transform: none; } }
.nota-n h3 { font-size: .92rem; line-height: 1.38; font-weight: 600; }
.nota-n h3 a { text-decoration: none; }
.nota-n h3 a:hover { color: var(--cian); text-decoration: underline; text-underline-offset: 3px; }
.lm { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .7rem; color: var(--gris); align-items: center; }
.pais { font-weight: 700; color: var(--oro); }
.cat { text-transform: uppercase; letter-spacing: .06em; font-size: .7rem; color: var(--gris2); }
.fte-b { color: var(--suave); }
.fte-b.of::after { content: "oficial"; margin-left: 5px; font-size: .7rem; text-transform: uppercase; color: var(--aviso); border: 1px solid rgba(231, 181, 74, .4); padding: 0 4px; border-radius: 3px; }
.idi { font-size: .7rem; font-weight: 700; border: 1px solid var(--borde2); padding: 0 4px; border-radius: 3px; }
.mas-f { font-size: .72rem; color: var(--gris); }
.mas-f summary { cursor: pointer; }
.mas-f a { color: var(--suave); }
.estado-r { color: var(--gris); padding: 16px 0; grid-column: 1 / -1; }
.estado-r.error { color: var(--baja); }
.esq { height: 118px; border-radius: 10px; background: linear-gradient(90deg, var(--sup), var(--sup2), var(--sup)); background-size: 200% 100%; animation: esq 1.4s linear infinite; }
@keyframes esq { from { background-position: 0 0; } to { background-position: -200% 0; } }
.aviso-r { font-size: .74rem; color: var(--aviso); margin: -6px 0 10px; }
.radar-pie { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }

/* ---------- historias (secundario) ---------- */
.historias { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.historias article { border-top: 1px solid var(--borde2); padding-top: 14px; }
.historias h3 { font-size: 1rem; font-weight: 700; margin: 6px 0 6px; line-height: 1.35; }
.historias p { font-size: .86rem; color: var(--gris); }
.historias .orig { font-style: italic; font-size: .8rem; }
.etq { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--oro); }
.firma { font-size: .74rem; color: var(--gris2); margin-top: 8px; }
.firma a { color: var(--gris); }

/* ---------- bloque humano ---------- */
.humano { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: start; }
.humano blockquote { font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.humano blockquote span { color: var(--cian); }
.humano p { color: var(--suave); margin-top: 14px; font-size: .95rem; }
.fundador { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--borde); }
.fundador img { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--borde2); box-shadow: 0 0 0 3px rgba(34, 195, 238, .12); }
.fundador b { display: block; font-size: .95rem; }
.fundador span { font-size: .8rem; color: var(--gris); }
.redes { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 18px; font-size: .84rem; }
.redes a { color: var(--gris); text-decoration: none; }
.redes a:hover { color: var(--texto); }
.videos { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.vid { position: relative; display: block; width: 100%; border: 1px solid var(--borde); padding: 0; background: #000; cursor: pointer; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; }
.vid img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.vid:hover img { opacity: 1; }
.vid .play { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%; background: rgba(0, 0, 0, .6); border: 2px solid #fff; }
.vid .play::after { content: ""; position: absolute; left: 21px; top: 15px; border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.vid iframe { width: 100%; height: 100%; border: 0; }
.vid-t { font-size: .9rem; font-weight: 600; margin-top: 8px; line-height: 1.35; }
.vid-l { list-style: none; display: grid; gap: 10px; }
.vid-l .vid .play { width: 30px; height: 30px; border-width: 1.5px; }
.vid-l .vid .play::after { left: 11px; top: 8px; border-left-width: 9px; border-top-width: 6px; border-bottom-width: 6px; }
.vid-l p { font-size: .78rem; color: var(--suave); margin-top: 4px; line-height: 1.3; }
.faq { margin-top: 26px; }
.faq details { border-bottom: 1px solid var(--borde); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: .92rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gris); }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--gris); margin-top: 6px; font-size: .88rem; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--borde); padding: 52px 0 30px; background: var(--pie-bg); font-size: .85rem; }
.pie { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr 1fr; gap: 30px; }
.pie h5 { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gris2); margin-bottom: 12px; }
.pie a { display: block; color: var(--suave); text-decoration: none; margin-bottom: 7px; }
.pie a:hover { color: var(--texto); }
.pie a .af { font-size: .7rem; color: var(--oro); border: 1px solid rgba(201, 164, 90, .45); border-radius: 3px; padding: 0 4px; margin-left: 6px; vertical-align: middle; }
.pie p { color: var(--gris); margin-top: 10px; }
.legal { border-top: 1px solid var(--borde); margin-top: 32px; padding-top: 18px; color: var(--gris2); font-size: .74rem; line-height: 1.75; }
.legal a { color: var(--gris); }

/* ---------- aparición suave ---------- */
.ap { opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease; }
.ap.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .ap { opacity: 1; transform: none; transition: none; } .esq { animation: none; } html { scroll-behavior: auto; } .btn:hover { transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-l { display: none; }
  .hero .c, .humano, .lab-g { grid-template-columns: 1fr; }
  .pilares { grid-template-columns: 1fr 1fr; }
  .prueba .c { grid-template-columns: 1fr 1fr; }
  .region-foto { grid-column: 1 / -1; min-height: 90px; }
  .snap { grid-template-columns: repeat(2, 1fr); }
  .snap .intro { grid-column: 1 / -1; }
  .notas { grid-template-columns: repeat(2, 1fr); }
  .historias { grid-template-columns: 1fr 1fr; }
  .pie { grid-template-columns: 1fr 1fr; }
  .cab { grid-template-columns: 1fr; gap: 12px; }
  .cab .der { border-left: 0; padding-left: 0; }
}
@media (max-width: 680px) {
  .c { padding: 0 16px; }
  .nav .c { gap: 12px; }
  .nav-d .btn { display: none; }
  .hero { padding: 34px 0 30px; }
  .panel { grid-template-columns: 1fr; }
  .grafico { border-right: 0; padding-right: 0; border-bottom: 1px solid var(--borde); padding-bottom: 12px; }
  .pilares, .notas, .notas.completo, .historias, .videos, .pie, .prueba .c { grid-template-columns: 1fr; }
  .pr { border-right: 0; border-bottom: 1px solid var(--borde); }
  .metodo { grid-template-columns: 1fr; }
  .paso { padding: 12px 0 12px 46px; }
  .paso .n { position: absolute; left: 0; top: 12px; }
  .paso h3 { margin-top: 2px; }
  .paso:not(:last-child)::after { content: "↓"; left: 9px; right: auto; top: 46px; }
  section.s { padding: 48px 0; }
  .tabla .om { display: none; }
  .hero .c > *, .humano > *, .lab-g > *, .snap > *, .pilares > * { min-width: 0; }
}

/* ---------- logo con corona resplandeciente (anillo que gira + brillo que respira) ---------- */
.corona { position: relative; display: inline-block; border-radius: 50%; flex: none; isolation: isolate; }
.corona::before, .corona::after { content: ""; position: absolute; border-radius: 50%;
  background: conic-gradient(from 0deg, #22c3ee, #2f6bff, #8b5cf6, #d946ef, #22c3ee); animation: girar 6s linear infinite; }
.corona::before { inset: 0; z-index: -1; }
.corona::after { inset: -22%; z-index: -2; filter: blur(14px); opacity: .55; animation: girar 6s linear infinite, respirar 3s ease-in-out infinite; }
.corona img { position: relative; border-radius: 50%; background: #000; border: 2px solid #000; }
.corona.s { width: 38px; height: 38px; padding: 2px; } .corona.s img { width: 34px; height: 34px; }
.corona.s::after { inset: -14%; filter: blur(7px); }
.corona.l { width: 92px; height: 92px; padding: 4px; } .corona.l img { width: 84px; height: 84px; border-width: 3px; }
.corona.m { width: 56px; height: 56px; padding: 3px; } .corona.m img { width: 50px; height: 50px; }
@keyframes girar { to { transform: rotate(360deg); } }
@keyframes respirar { 50% { opacity: .95; } }
@media (prefers-reduced-motion: reduce) { .corona::before, .corona::after { animation: none; } }
.marca .corona.s + span { letter-spacing: .1em; }
.sello { display: flex; align-items: center; gap: 20px; margin-bottom: 4px; }
.sello .nombre { font-weight: 800; font-size: 1.9rem; letter-spacing: .14em; line-height: 1; }
.sello .nombre small { display: block; font-size: .7rem; letter-spacing: .2em; color: var(--cian); font-weight: 700; margin-top: 8px; text-transform: uppercase; }

/* ---------- productos visibles desde la portada ---------- */
.atajos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; }
.atajo { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 11px; border: 1px solid var(--borde2); background: var(--atajo-bg); text-decoration: none; transition: border-color .15s; }
.atajo:hover { border-color: var(--cian); }
.atajo svg { color: var(--cian); width: 26px; height: 26px; }
.atajo b { display: block; font-size: .88rem; }
.atajo span { font-size: .72rem; color: var(--gris); }
.pilar h3 { font-size: 1.35rem; }
.pilar { padding: 26px; }

/* ---------- en vivo ---------- */
.vivo-b { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 800; letter-spacing: .08em; color: var(--baja); }
.vivo-b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--baja); animation: latir 1.4s infinite; }
@keyframes latir { 0% { box-shadow: 0 0 0 0 rgba(239, 95, 103, .6); } 70% { box-shadow: 0 0 0 7px rgba(239, 95, 103, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 95, 103, 0); } }
.envivo { display: grid; grid-template-columns: 1fr 1.25fr; gap: 18px; align-items: stretch; }
.mercados { background: var(--sup); border: 1px solid var(--borde); border-radius: 14px; padding: 8px 6px; }
.mercados table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.mercados th { text-align: left; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gris2); font-weight: 600; padding: 8px 12px; }
.mercados td { padding: 11px 12px; border-top: 1px solid var(--borde); }
.mercados td.p, .mercados td.ch, .mercados th.r { text-align: right; font-family: var(--mono); }
.mercados td.p { transition: color .4s; }
.mercados td.p.sube-f { color: var(--sube); } .mercados td.p.baja-f { color: var(--baja); }
.mercados .sim { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.mercados .sim i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .7rem; font-weight: 800; color: #04121c; }
.mercados .sim small { display: block; font-weight: 400; color: var(--gris); font-size: .72rem; }
.mercados svg.spark { width: 90px; height: 28px; display: block; margin-left: auto; }
.tv { background: var(--sup); border: 1px solid var(--borde); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; min-height: 460px; }
.tv-cab { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--borde); font-size: .82rem; gap: 10px; flex-wrap: wrap; }
.tv-cuerpo { flex: 1; position: relative; min-height: 420px; }
.tv-cuerpo > .tradingview-widget-container, .tv-cuerpo > .tradingview-widget-container > div { height: 100% !important; width: 100%; }
.tv-espera { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gris); font-size: .86rem; text-align: center; padding: 20px; }
.ilus { width: 100%; border-radius: 14px; border: 1px solid var(--borde); aspect-ratio: 16 / 6; object-fit: cover; }
.pie-fund { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.pie-fund img { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--borde2); }
@media (max-width: 1080px) { .envivo { grid-template-columns: 1fr; } .atajos { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 680px) { .atajos { grid-template-columns: 1fr; } .sello .nombre { font-size: 1.5rem; } .corona.l { width: 72px; height: 72px; } .corona.l img { width: 64px; height: 64px; }
  .mercados svg.spark { width: 60px; } .mercados td, .mercados th { padding: 9px 8px; } .tv, .tv-cuerpo { min-height: 380px; } }

/* ---------- tema claro (se activa con el botón sol/luna) ---------- */
:root[data-tema="claro"] {
  --fondo: #f2f6ff; --fondo2: #e8eefa; --sup: #ffffff; --sup2: #f6f9ff; --borde: #d3def2; --borde2: #bfcde6;
  --texto: #061233; --suave: #2c3c5c; --gris: #4f5f7d; --gris2: #5e6b84;
  --cian: #1c46d9; --cian2: #1638b0; --compra: #0087b3; --venta: #1c46d9; --oro: #866523; --sube: #0f7b4c; --baja: #c23740; --aviso: #8d630d;
  --nav-bg: rgba(255, 255, 255, .9); --caja-bg: #f7f9fc; --pie-bg: #e9edf4; --atajo-bg: #ffffff; --grilla: rgba(160, 175, 195, .45); --eje: #626c7b;
}
:root[data-tema="claro"] .btn.p { color: #fff; }
:root[data-tema="claro"] .panel { box-shadow: 0 18px 50px rgba(20, 40, 80, .12); }
:root[data-tema="claro"] .chip[aria-pressed="true"] { color: #fff; }
:root[data-tema="claro"] .hero::before { background: radial-gradient(ellipse 60% 70% at 78% 30%, rgba(10, 143, 184, .08), transparent 70%); }
.tema-btn { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--borde2); background: transparent; color: var(--suave); cursor: pointer; display: grid; place-items: center; }
.tema-btn:hover { color: var(--texto); border-color: var(--gris); }
.tema-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.tema-btn .sol { display: none; } :root[data-tema="claro"] .tema-btn .sol { display: block; } :root[data-tema="claro"] .tema-btn .luna { display: none; }

/* ---------- planeta de fondo en la portada ---------- */
.hero { overflow: hidden; }
#globo { position: absolute; z-index: 0; pointer-events: none; width: 820px; height: 820px; right: max(-60px, calc(50% - 680px)); top: 50%; transform: translateY(-50%); opacity: .95; transition: opacity .6s; }
:root.logueado #globo { opacity: .45; }
.hero { min-height: 640px; }
:root[data-tema="claro"] #globo { opacity: .7; }
@media (max-width: 1080px) { #globo { top: 30px; transform: none; right: 50%; margin-right: -380px; width: 760px; height: 760px; opacity: .5; } .hero { min-height: 0; } }
@media (max-width: 680px) { #globo { width: 560px; height: 560px; margin-right: -280px; opacity: .4; } }

/* ---------- barra de mercados con pestañas ---------- */
.pestanas { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px; border: 1px solid var(--borde); border-radius: 999px; background: var(--sup); width: fit-content; max-width: 100%; margin-bottom: 18px; }
.pestanas button { font: 600 .86rem var(--sans); color: var(--suave); background: transparent; border: 0; padding: 8px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.pestanas button:hover { color: var(--texto); }
.pestanas button[aria-selected="true"] { background: var(--texto); color: var(--fondo); }
.panel-m[hidden] { display: none !important; }
.panel-m .widget { background: var(--sup); border: 1px solid var(--borde); border-radius: 14px; overflow: hidden; height: 520px; position: relative; }
.panel-m .widget > .tradingview-widget-container, .panel-m .widget > .tradingview-widget-container > div { height: 100% !important; width: 100%; }
.panel-m .dos { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; }
.panel-m .nota-w { font-size: .76rem; color: var(--gris); margin-top: 10px; }
.panel-m .nota-w a { color: var(--suave); }
.mapa { background: var(--sup); border: 1px solid var(--borde); border-radius: 14px; padding: 16px; position: relative; }
.mapa h3 { font-size: 1.1rem; margin-bottom: 2px; }
.mapa svg { width: 100%; height: auto; display: block; margin-top: 8px; }
.mapa path.pais { stroke: var(--fondo); stroke-width: .4; cursor: pointer; transition: opacity .15s; }
.mapa path.pais:hover, .mapa path.pais:focus { opacity: .75; outline: none; stroke: var(--texto); stroke-width: .9; }
.mapa path.pais.sin { fill: var(--borde); }
.mapa path.pais.destacado { stroke: var(--oro); stroke-width: 1.4; }
.mapa .tip { position: absolute; pointer-events: none; background: var(--sup2); border: 1px solid var(--borde2); border-radius: 8px; padding: 7px 10px; font-size: .8rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); white-space: nowrap; }
.mapa .tip b { font-family: var(--mono); }
.escala { display: flex; align-items: center; gap: 0; margin-top: 10px; font-size: .7rem; color: var(--gris); flex-wrap: wrap; }
.escala span { display: inline-flex; align-items: center; gap: 4px; margin-right: 10px; }
.escala i { width: 14px; height: 10px; border-radius: 2px; display: inline-block; }
.ranking { list-style: none; margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; font-size: .82rem; }
.ranking li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--borde); padding: 4px 0; }
.ranking li b { font-family: var(--mono); font-weight: 500; }
@media (max-width: 1080px) { .panel-m .dos { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .pestanas { border-radius: 14px; } .pestanas button { padding: 7px 11px; font-size: .8rem; } .panel-m .widget { height: 460px; } }

/* ---------- barra de mercados flotante (queda fija mientras se recorre la sección) ---------- */
.pestanas { position: sticky; top: 76px; z-index: 30; margin-left: auto; margin-right: auto; background: var(--nav-bg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
:root[data-tema="claro"] .pestanas { box-shadow: 0 10px 26px rgba(20, 40, 80, .12); }
@media (max-width: 680px) { .pestanas { top: 70px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; } .pestanas::-webkit-scrollbar { display: none; } }

/* ---------- cuentas: qué ve el visitante y qué ve el usuario registrado ---------- */
:root:not(.logueado) .privado { display: none !important; }
:root.logueado .solo-visitante, :root.logueado .bloqueo { display: none !important; }
:root:not(.logueado) .solo-usuario { display: none !important; }
.bloqueo { border: 1px dashed var(--borde2); border-radius: 14px; padding: 26px; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--sup); }
.bloqueo .txt { display: flex; gap: 14px; align-items: center; }
.bloqueo .candado { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--fondo2); border: 1px solid var(--borde2); color: var(--cian); flex: none; }
.bloqueo b { display: block; font-size: 1rem; }
.bloqueo span { font-size: .86rem; color: var(--gris); }
.usuario { display: flex; align-items: center; gap: 8px; }
.usuario .ini { width: 32px; height: 32px; border-radius: 50%; background: var(--cian); color: #04121c; display: grid; place-items: center; font-weight: 800; font-size: .9rem; }
.usuario button { font: 600 .8rem var(--sans); background: none; border: 1px solid var(--borde2); color: var(--suave); border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.registro { border: 1px solid rgba(34, 195, 238, .35); border-radius: 18px; padding: 38px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center;
  background: radial-gradient(ellipse 80% 120% at 100% 0%, rgba(34, 195, 238, .10), transparent 60%), var(--sup); }
.registro h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.registro h2 span { color: var(--cian); }
.registro p { color: var(--suave); margin-top: 10px; }
.registro ul { list-style: none; display: grid; gap: 8px; }
.registro li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--suave); }
.registro li::before { content: "✓"; color: var(--sube); font-weight: 800; }
.registro li.pronto::before { content: "◷"; color: var(--oro); }
dialog.acceso { border: 1px solid var(--borde2); border-radius: 18px; padding: 0; background: var(--sup); color: var(--texto); width: min(440px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
dialog.acceso::backdrop { background: rgba(2, 6, 12, .7); backdrop-filter: blur(4px); }
.acceso .cuerpo { padding: 28px; }
.acceso .cab-d { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.acceso h3 { font-size: 1.35rem; }
.acceso .cerrar { background: none; border: 0; color: var(--gris); font-size: 1.4rem; cursor: pointer; line-height: 1; }
.acceso p { color: var(--gris); font-size: .9rem; }
.acceso label.campo { display: block; font-size: .8rem; color: var(--suave); margin: 18px 0 6px; font-weight: 600; }
.acceso input[type=email] { width: 100%; font: 1rem var(--sans); padding: 12px 14px; border-radius: 10px; border: 1px solid var(--borde2); background: var(--fondo2); color: var(--texto); }
.acceso input[type=email]:focus { outline: 2px solid var(--cian); outline-offset: 1px; }
.acceso .check { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--suave); margin-top: 12px; }
.acceso .check input { margin-top: 3px; accent-color: var(--cian); }
.acceso .check a { color: var(--cian); }
.acceso .btn { width: 100%; margin-top: 18px; }
.acceso .msg { margin-top: 14px; font-size: .88rem; }
.acceso .msg.ok { color: var(--sube); } .acceso .msg.error { color: var(--baja); }
.acceso .pie-d { margin-top: 16px; font-size: .74rem; color: var(--gris2); }
@media (max-width: 860px) { .registro { grid-template-columns: 1fr; padding: 26px; } }

/* planeta visible detrás del panel de la portada */
#globo { width: 980px; height: 980px; right: max(0px, calc(50% - 760px)); }
.hero .panel { background: rgba(10, 19, 32, .58); backdrop-filter: blur(2.5px); -webkit-backdrop-filter: blur(2.5px); }
.hero .panel .caja { background: rgba(6, 11, 20, .45); }
:root[data-tema="claro"] .hero .panel { background: rgba(255, 255, 255, .62); }
:root[data-tema="claro"] .hero .panel .caja { background: rgba(247, 249, 252, .6); }
:root.logueado .hero .panel { background: linear-gradient(180deg, var(--sup2), var(--sup)); backdrop-filter: none; }

/* vista previa del laboratorio para visitantes: se ven las 2 primeras filas, el resto borroso */
:root:not(.logueado) .vista-previa { position: relative; }
:root:not(.logueado) .vista-previa tbody tr:nth-child(n+3), :root:not(.logueado) .vista-previa .vivo { filter: blur(5px); user-select: none; pointer-events: none; }
:root:not(.logueado) .vista-previa .nota { visibility: hidden; }
:root:not(.logueado) .vista-previa::after { content: ""; position: absolute; inset: 40% 0 0 0; background: linear-gradient(180deg, transparent, var(--fondo) 85%); pointer-events: none; }

/* ---------- refinamiento visual (octubre 2026) ----------
   Ideas tomadas de una guía de estilo de referencia, manteniendo los colores de la marca:
   dos radios (6 px controles, 16 px tarjetas), profundidad sin sombras, títulos de peso medio
   con letras más juntas, cifras clave grandes, más aire entre secciones. */

/* 1. dos radios: 6 px para controles y etiquetas, 16 px para tarjetas y paneles */
.btn, .tema-btn, .idioma, .idioma a, .rangos button, .chip-e, .tags span, .tipo, .sel, .usuario button,
.servs li, .datos-v div, .mapa .tip, .idi, .pie a .af, .p-ic, .atajo, .bloqueo .candado, .dato-m .q i,
.est, .chip, .pestanas, .pestanas button, .principios span { border-radius: 6px; }
.panel, .caja, .pilar, .evid, .vivo, .dato-m, .nota-n, .esq, .vid, .mercados, .tv, .ilus,
.panel-m .widget, .mapa, .bloqueo, .registro { border-radius: 16px; }

/* 2. profundidad por escalones de fondo, sin sombras ni degradados en las superficies */
.panel, :root[data-tema="claro"] .panel { box-shadow: none; background: var(--sup); }
:root:not([data-tema="claro"]) .pilar, :root:not([data-tema="claro"]) .caja,
:root:not([data-tema="claro"]) .vivo, :root:not([data-tema="claro"]) .mercados { border-color: rgba(255, 255, 255, .06); }
:root:not([data-tema="claro"]) .pilar { background: var(--sup); }

/* 3. títulos de peso medio con espaciado negativo: más "instrumento", menos "aviso" */
.hero h1 { font-weight: 600; letter-spacing: -.035em; line-height: 1.04; }
h2.t, .snap .intro h2, .radar-cab h2, .registro h2 { font-weight: 600; letter-spacing: -.03em; line-height: 1.08; }
.pilar h3, .historias h3 { font-weight: 600; letter-spacing: -.01em; }
.humano blockquote { font-weight: 500; letter-spacing: -.02em; }
.senal { font-weight: 600; letter-spacing: -.02em; }

/* etiquetas de sección: mayúsculas con espaciado amplio, como rótulos de instrumento */
.vol, .kicker { letter-spacing: .16em; font-weight: 600; }

/* 4. cifras clave grandes, en cian claro */
.pilar .comp .num { font-size: 2.4rem !important; font-weight: 600; letter-spacing: -.03em; line-height: 1; color: var(--cian2); }
.pilar .comp .num small { display: inline-block; font-size: .8rem; font-weight: 500; letter-spacing: 0; color: var(--gris); margin-left: 6px; }
.pilar .comp .lbl { letter-spacing: .12em; }
:root[data-tema="claro"] .pilar .comp .num { color: var(--cian); }

/* 5. más aire entre secciones y textos en columnas más angostas */
section.s { padding: 96px 0; }
section.s + section.s { border-top-color: rgba(255, 255, 255, .04); }
:root[data-tema="claro"] section.s + section.s { border-top-color: var(--borde); }
.hero { padding: 72px 0 56px; }
.hero .sub, .intro p { max-width: 600px; }

/* 6. flecha en un botón cuadrado para los enlaces "ir a" */
.enl svg.ic { width: 28px; height: 28px; padding: 6px; border-radius: 6px; background: rgba(34, 195, 238, .12); transition: background .15s; }
.enl:hover { text-decoration: none; }
.enl:hover svg.ic { background: rgba(34, 195, 238, .24); }

@media (max-width: 680px) {
  section.s { padding: 64px 0; }
  .pilar .comp .num { font-size: 2rem !important; }
}

/* ---------- accesibilidad (auditoría octubre 2026) ---------- */
/* la portada recorta el globo: sin desplazamiento horizontal en celular */
.hero { overflow-x: hidden; overflow-x: clip; }
/* cursor de mano en todo lo que se puede tocar */
button:not(:disabled), summary, label.check, [data-acceso], .opcion { cursor: pointer; }
/* pantallas táctiles: controles de al menos 44 px */
@media (pointer: coarse) {
  .rangos button, .chip, .sel, .pestanas button, .btn.ch { min-height: 44px; }  /* solo altura: no tocar display (el menú móvil oculta botones) */
  .idioma a { min-height: 44px; display: inline-flex; align-items: center; }
  .tema-btn { width: 44px; height: 44px; }
}
/* quien pide menos movimiento no ve animaciones */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
/* tabla de precios en vivo: en pantallas angostas se oculta la minigráfica y nunca empuja la página */
.mercados { overflow-x: auto; }
@media (max-width: 420px) { .mercados th.om, .mercados td.om { display: none; } }
/* pantallas muy angostas (320–380 px): la barra superior entra completa */
.idioma a { white-space: nowrap; }
@media (max-width: 380px) { .nav .c { gap: 8px; padding: 0 12px; } .nav-d { gap: 6px; } .idioma a { padding: 4px 5px; font-size: .78rem; } .marca span:last-child { letter-spacing: .04em; } }
/* pantallas táctiles: filas de enlaces con área tocable más alta (sin cambiar el aspecto) */
@media (pointer: coarse) {
  .redes a, .pie a, .pilar .pie-p a.enl { padding-top: 10px; padding-bottom: 10px; }
  .redes a { display: inline-block; }
}

/* ---------- identidad "río de operaciones" (octubre 2026) ---------- */
.hero h1, h2.t, .snap .intro h2, .radar-cab h2, .registro h2, .pilar h3, .marca, .sello .nombre { font-family: var(--titulos); font-weight: 500; }
h2.t, .snap .intro h2, .radar-cab h2, .registro h2 { letter-spacing: -.03em; }
.marca { letter-spacing: .06em; }

.hero.rio { position: relative; min-height: calc(100svh - 66px); display: grid; align-items: end; padding: 96px 0 44px; isolation: isolate; overflow: hidden; overflow: clip; }
.hero.rio::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, color-mix(in srgb, var(--fondo) 45%, transparent) 0%, color-mix(in srgb, var(--fondo) 30%, transparent) 40%, transparent 66%),
              linear-gradient(0deg, var(--fondo) 0%, transparent 32%); }
#rio { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero.rio .c { display: block; width: 100%; }
.rio-copia { max-width: 720px; }
.hero.rio h1 { font-size: clamp(34px, 4.6vw, 70px); line-height: 1.04; letter-spacing: -.035em; max-width: 15ch; margin: 0; text-wrap: balance; }
.hero.rio .sub { margin-top: 24px; max-width: 54ch; color: var(--suave); font-size: clamp(16px, 1.3vw, 18.5px); }
.hero.rio .acc { margin-top: 30px; }
.rio-lectura { margin-top: 40px; display: grid; grid-template-columns: max-content max-content minmax(200px, 1fr); gap: 16px 40px; align-items: end; max-width: 860px; }
.rio-dato { display: grid; gap: 4px; }
.rio-dato b { font: 500 clamp(24px, 2.4vw, 34px)/1 var(--titulos); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rio-dato span, .rio-presion .rotulos { color: var(--suave); font-size: 14px; }
.rio-presion { display: grid; gap: 8px; }
.rio-presion .tira { height: 8px; border-radius: 99px; background: var(--venta); overflow: hidden; }
.rio-presion .tira i { display: block; height: 100%; width: 50%; background: var(--compra); border-radius: 99px; transition: width .6s ease; }
.rio-presion .rotulos { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
/* la regla de la estrategia, compacta, con su aguja en vivo */
.rio-regla { margin-top: 26px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px 16px; border: 1px solid var(--borde); border-radius: 16px; text-decoration: none; color: var(--suave); font-size: 14px; max-width: 760px;
  background: color-mix(in srgb, var(--fondo) 70%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: border-color .2s; }
.rio-regla:hover { border-color: var(--cian); }
.rio-regla b { color: var(--texto); font-weight: 600; }
.rr-escala { position: relative; flex: 1 1 140px; min-width: 120px; height: 18px;
  background: repeating-linear-gradient(90deg, var(--borde2) 0 1px, transparent 1px 10%) center / 100% 8px no-repeat,
              linear-gradient(90deg, transparent 50%, color-mix(in srgb, var(--venta) 22%, transparent) 50%) center / 100% 8px no-repeat; }
.rr-cero { position: absolute; left: 50%; top: 0; bottom: 0; width: 1.5px; background: var(--texto); }
.rr-aguja { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--compra); box-shadow: 0 0 10px var(--compra); transition: left .9s cubic-bezier(.2, .7, .2, 1); }
.rio-leyenda { margin-top: 18px; max-width: 64ch; font-size: 13.5px; color: var(--suave); }
@media (max-width: 860px) {
  .hero.rio { padding-top: 40px; align-items: start; }
  .hero.rio::before { background: linear-gradient(0deg, var(--fondo) 0%, var(--fondo) 62%, color-mix(in srgb, var(--fondo) 60%, transparent) 72%, transparent 82%); }
  .hero.rio .rio-copia { padding-top: 30vh; }
  .rio-lectura { grid-template-columns: 1fr 1fr; } .rio-presion { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .rr-aguja, .rio-presion .tira i { transition: none; } }

/* ---------- panel "Dólares digitales" (stablecoins y DeFi) ---------- */
.defi-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; }
.defi-total, .defi-monedas, .defi-rend, .defi-cadenas { background: var(--sup); border: 1px solid var(--borde); border-radius: 16px; padding: 24px; }
.defi-lbl { color: var(--suave); font-size: 14px; }
.defi-cifra { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.defi-cifra b { font: 500 clamp(30px, 3.4vw, 48px)/1.05 var(--titulos); letter-spacing: -.03em; }
.defi-var { font-size: 15px; font-variant-numeric: tabular-nums; }
.defi-cifra b small { font: 500 .42em var(--titulos); letter-spacing: 0; color: var(--suave); margin-left: .2em; }
:root:not(.logueado) .defi-cadenas li:nth-child(n+3) { filter: blur(5px); user-select: none; }
.defi-serie { width: 100%; height: 150px; margin-top: 14px; display: block; }
.defi-nota { color: var(--gris); font-size: 13px; }
.defi-monedas ul, .defi-cadenas ul { list-style: none; display: grid; gap: 14px; margin-top: 14px; }
.defi-fila { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; gap: 4px 14px; align-items: baseline; }
.defi-fila b { font: 500 16px var(--titulos); }
.defi-meta { color: var(--gris); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.defi-num { font-variant-numeric: tabular-nums; font-size: 15px; }
.defi-cambio { font-size: 13px; font-variant-numeric: tabular-nums; min-width: 92px; text-align: right; }
.defi-barra { height: 6px; border-radius: 99px; background: var(--fondo2); margin-top: 7px; overflow: hidden; }
.defi-barra i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--venta), var(--compra)); }
.defi-bajo { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; }
.defi-h3 { font: 500 18px/1.2 var(--titulos); letter-spacing: -.01em; margin-bottom: 10px; }
.defi-tabla td a { color: var(--texto); text-decoration: none; border-bottom: 1px solid var(--borde2); }
.defi-tabla td a:hover { border-color: var(--cian); }
.defi-premio { display: block; color: var(--aviso); font-size: 12px; font-weight: 500; }
.defi-cadenas li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: 15px; }
.defi-cadenas li .defi-barra { grid-column: 1 / -1; margin-top: 2px; }
.defi-fuente { margin-top: 16px; }
#defi .bloqueo { margin-top: 20px; }
@media (max-width: 900px) { .defi-top, .defi-bajo { grid-template-columns: 1fr; } .defi-fila { grid-template-columns: 56px minmax(0, 1fr) auto; } .defi-cambio { grid-column: 2 / -1; text-align: left; min-width: 0; } }
/* celular con sesión iniciada: el logo queda solo para dar lugar a la inicial y a "Salir" */
@media (max-width: 680px) { :root.logueado .nav .marca span:last-child { display: none; } :root.logueado .nav .c { gap: 10px; } }
.defi-rend { overflow-x: auto; }
@media (max-width: 420px) { .defi-tabla .om { display: none; } .defi-total, .defi-monedas, .defi-rend, .defi-cadenas { padding: 18px; } }

.servs li a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--borde2); }
.servs li a:hover { border-color: var(--cian); }
.radar-mas-v { margin-top: 18px; }
@media (max-width: 680px) {
  .nota-n { display: grid; grid-template-columns: 104px 1fr; column-gap: 12px; row-gap: 6px; align-items: start; }
  .nota-n > * { grid-column: 2; }
  .nota-n > .mini { grid-column: 1; grid-row: 1 / span 4; margin: 0; aspect-ratio: 1; border-radius: 8px; }
  .nota-n h3 { font-size: .88rem; }
  .sin-img .mini-f { font-size: .72rem; left: 8px; right: 8px; bottom: 8px; }
}

/* ---------- banderas del selector de idioma (ES = Paraguay, PT-BR = Brasil, EN = EE. UU.) ---------- */
.idioma a { display: inline-flex; align-items: center; gap: 6px; }
.idioma a::before { content: ""; width: 18px; height: 12px; flex: none; border-radius: 2px; background: center / cover no-repeat;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .18); }
.idioma a[lang="es"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 30 20%22%3E%3Crect width=%2230%22 height=%2220%22 fill=%22%230038a8%22/%3E%3Crect width=%2230%22 height=%2213.34%22 fill=%22%23fff%22/%3E%3Crect width=%2230%22 height=%226.67%22 fill=%22%23d52b1e%22/%3E%3Ccircle cx=%2215%22 cy=%2210%22 r=%222.6%22 fill=%22none%22 stroke=%22%231f6b2c%22 stroke-width=%22.9%22/%3E%3Ccircle cx=%2215%22 cy=%2210%22 r=%221%22 fill=%22%23f6c800%22/%3E%3C/svg%3E"); }
.idioma a[lang="pt-BR"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 30 20%22%3E%3Crect width=%2230%22 height=%2220%22 fill=%22%23009c3b%22/%3E%3Cpath d=%22M15 2.2 27.6 10 15 17.8 2.4 10z%22 fill=%22%23ffdf00%22/%3E%3Ccircle cx=%2215%22 cy=%2210%22 r=%224.6%22 fill=%22%23002776%22/%3E%3Cpath d=%22M10.6 9.1q4.6-.9 8.8 1.6%22 stroke=%22%23fff%22 stroke-width=%22.8%22 fill=%22none%22/%3E%3C/svg%3E"); }
.idioma a[lang="en"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 30 20%22%3E%3Crect width=%2230%22 height=%2220%22 fill=%22%23fff%22/%3E%3Crect y=%220.000%22 width=%2230%22 height=%221.538%22 fill=%22%23b22234%22/%3E%3Crect y=%223.077%22 width=%2230%22 height=%221.538%22 fill=%22%23b22234%22/%3E%3Crect y=%226.154%22 width=%2230%22 height=%221.538%22 fill=%22%23b22234%22/%3E%3Crect y=%229.231%22 width=%2230%22 height=%221.538%22 fill=%22%23b22234%22/%3E%3Crect y=%2212.308%22 width=%2230%22 height=%221.538%22 fill=%22%23b22234%22/%3E%3Crect y=%2215.385%22 width=%2230%22 height=%221.538%22 fill=%22%23b22234%22/%3E%3Crect y=%2218.462%22 width=%2230%22 height=%221.538%22 fill=%22%23b22234%22/%3E%3Crect width=%2212.6%22 height=%2210.769%22 fill=%22%233c3b6e%22/%3E%3Ccircle cx=%221.40%22 cy=%221.20%22 r=%22.38%22 fill=%22%23fff%22/%3E%3Ccircle cx=%223.60%22 cy=%221.20%22 r=%22.38%22 fill=%22%23fff%22/%3E%3Ccircle cx=%225.80%22 cy=%221.20%22 r=%22.38%22 fill=%22%23fff%22/%3E%3Ccircle cx=%228.00%22 cy=%221.20%22 r=%22.38%22 fill=%22%23fff%22/%3E%3Ccircle cx=%2210.20%22 cy=%221.20%22 r=%22.38%22 fill=%22%23fff%22/%3E%3Ccircle cx=%222.50%22 cy=%223.15%22 r=%22.38%22 fill=%22%23fff%22/%3E%3Ccircle cx=%224.70%22 cy=%223.15%22 r=%22.38%22 fill=%22%23fff%22/%3E%3Ccircle cx=%226.90%22 cy=%223.15%22 r=%22.38%22 fill=%22%23fff%22/%3E%3Ccircle cx=%229.10%22 cy=%223.15%22 r=%22.38%22 fill=%22%23fff%22/%3E%3Ccircle cx=%221.40%22 cy=%225.10%22 r=%22.38%22 fill=%22%23fff%22/%3E%3Ccircle cx=%223.60%22 cy=%225.10%22 r=%22.38%22 fill=%22%23fff%22/%3E%3Ccircle cx=%225.80%22 cy=%225.10%22 r=%22.38%22 fill=%22%23fff%22/%3E%3Ccircle cx=%228.00%22 cy=%225.10%22 r=%22.38%22 fill=%22%23fff%22/%3E%3Ccircle cx=%2210.20%22 cy=%225.10%22 r=%22.38%22 fill=%22%23fff%22/%3E%3Ccircle cx=%222.50%22 cy=%227.05%22 r=%22.38%22 fill=%22%23fff%22/%3E%3Ccircle cx=%224.70%22 cy=%227.05%22 r=%22.38%22 fill=%22%23fff%22/%3E%3Ccircle cx=%226.90%22 cy=%227.05%22 r=%22.38%22 fill=%22%23fff%22/%3E%3Ccircle cx=%229.10%22 cy=%227.05%22 r=%22.38%22 fill=%22%23fff%22/%3E%3Ccircle cx=%221.40%22 cy=%229.00%22 r=%22.38%22 fill=%22%23fff%22/%3E%3Ccircle cx=%223.60%22 cy=%229.00%22 r=%22.38%22 fill=%22%23fff%22/%3E%3Ccircle cx=%225.80%22 cy=%229.00%22 r=%22.38%22 fill=%22%23fff%22/%3E%3Ccircle cx=%228.00%22 cy=%229.00%22 r=%22.38%22 fill=%22%23fff%22/%3E%3Ccircle cx=%2210.20%22 cy=%229.00%22 r=%22.38%22 fill=%22%23fff%22/%3E%3C/svg%3E"); }
@media (max-width: 480px) { .idioma a { font-size: 0; gap: 0; padding: 4px 8px; } .idioma a::before { width: 20px; height: 14px; } }

/* ---------- capturas reales de cada producto ---------- */
.p-img { margin: -4px -4px 4px; }
.p-img a { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--borde); background: #05070d; aspect-ratio: 16 / 9; }
.p-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.p-img a:hover img { transform: scale(1.03); }
.p-img a:focus-visible { outline: 2px solid var(--cian); outline-offset: 2px; }
.p-img figcaption { font-size: .72rem; line-height: 1.4; color: var(--gris); margin-top: 7px; }
@media (prefers-reduced-motion: reduce) { .p-img img { transition: none; } .p-img a:hover img { transform: none; } }
@media (max-width: 400px) { .idioma a { padding: 4px 5px; } .idioma a::before { width: 18px; height: 12px; } }

/* ---------- estado de cada dato (salud.json) ---------- */
.est-l { margin-top: 8px; }
.est { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: .72rem; color: var(--gris); line-height: 1.4; }
.est::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gris2); flex: none; }
.est b { font-weight: 700; }
.est a { color: var(--suave); }
.est-al_dia::before { background: var(--sube); } .est-al_dia b { color: var(--sube); }
.est-atrasado::before { background: var(--aviso); } .est-atrasado b { color: var(--aviso); }
.est-caido::before, .est-error::before { background: var(--baja); } .est-caido b, .est-error b { color: var(--baja); }
.est[title] { cursor: help; }
.vivo-b[data-estado="conectando"] { color: var(--gris); } .vivo-b[data-estado="conectando"]::before { background: var(--gris2); animation: none; }
.vivo-b[data-estado="vivo"] { color: var(--sube); } .vivo-b[data-estado="vivo"]::before { background: var(--sube); }
.vivo-b[data-estado="sin"] { color: var(--aviso); } .vivo-b[data-estado="sin"]::before { background: var(--aviso); animation: none; }

/* ---------- redes sociales con ícono (Simple Icons, CC0) ---------- */
.ic-red { width: 18px; height: 18px; fill: currentColor; flex: none; }
.redes { gap: 8px; }
.redes .red { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 10px; min-height: 40px; border: 1px solid var(--borde2);
  border-radius: 999px; color: var(--suave); font-size: .8rem; font-weight: 600; transition: color .2s, border-color .2s, background .2s; }
.redes .red:hover, .redes .red:focus-visible { color: var(--texto); border-color: var(--red, var(--cian)); background: color-mix(in srgb, var(--red, var(--cian)) 12%, transparent); }
.redes .red:hover .ic-red, .redes .red:focus-visible .ic-red { color: var(--red, var(--cian)); }
.redes-pie { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.redes-pie .red { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--borde2); color: var(--gris); text-decoration: none; transition: color .2s, border-color .2s; }
.redes-pie .red:hover, .redes-pie .red:focus-visible { color: var(--red, var(--cian)); border-color: var(--red, var(--cian)); }
.redes-pie .ic-red { width: 16px; height: 16px; }
.red-youtube { --red: #ff0033; } .red-instagram { --red: #e4405f; } .red-tiktok { --red: #25f4ee; } .red-x { --red: var(--texto); }
.red-telegram { --red: #26a5e4; } .red-whatsapp { --red: #25d366; } .red-discord { --red: #5865f2; } .red-linkedin { --red: #0a66c2; }
.red-facebook { --red: #1877f2; } .red-github { --red: var(--texto); }
@media (max-width: 480px) { .redes .red span { display: none; } .redes .red { padding: 0; width: 42px; justify-content: center; } }

/* ---------- miniaturas de los pasos, informes y adelanto en el registro ---------- */
.paso-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; border: 1px solid var(--borde); margin-bottom: 12px; background: #080b14; }
.inf-img { display: block; width: calc(100% + 2px); height: auto; aspect-ratio: 8 / 5; object-fit: cover; object-position: top; border-radius: 8px; border: 1px solid var(--borde); margin-bottom: 4px; background: #fff; }
.reg-informes { display: flex; gap: 10px; margin-top: 16px; }
.reg-informes img { width: 31%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; object-position: top; border-radius: 6px; border: 1px solid var(--borde2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transform: rotate(-2deg); }
.reg-informes img:nth-child(2) { transform: translateY(-6px); }
.reg-informes img:nth-child(3) { transform: rotate(2deg); }

/* ---------- terminal de mercados: fila elegida y ficha del instrumento ---------- */
.mercados button.sim { font: inherit; font-weight: 700; color: inherit; background: none; border: 0; padding: 4px 0; cursor: pointer; text-align: left; min-height: 40px; }
.mercados button.sim:focus-visible { outline: 2px solid var(--cian); outline-offset: 3px; border-radius: 6px; }
.mercados tbody tr { cursor: pointer; transition: background .15s; }
.mercados tbody tr:hover { background: color-mix(in srgb, var(--cian) 5%, transparent); }
.mercados tbody tr.sel { background: color-mix(in srgb, var(--cian) 10%, transparent); box-shadow: inset 3px 0 0 var(--cian); }
.mv-ficha { border-top: 1px solid var(--borde); padding: 12px; }
.mv-ficha:empty { display: none; }
.mf-cab { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .86rem; margin-bottom: 8px; }
.mf-cab span { color: var(--gris); font-size: .74rem; }
.mv-ficha dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 8px; }
.mv-ficha dt { font-size: .68rem; color: var(--gris); }
.mv-ficha dd { margin: 2px 0 0; font: 600 .84rem var(--mono, monospace); font-variant-numeric: tabular-nums; }
.mv-ficha .meta a { color: var(--suave); }
@media (max-width: 520px) { .mv-ficha dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- gráfico: instrumento y comparación ---------- */
.tv-ctl { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 8px 14px; border-bottom: 1px solid var(--borde); font-size: .76rem; color: var(--gris); }
.tv-ctl:empty { display: none; }
.tv-ctl label { display: inline-flex; align-items: center; gap: 6px; }
.tv-ctl .sel { min-height: 34px; max-width: 220px; }
.mv-ficha .mf-meta { grid-template-columns: 2fr 1fr 1fr; }
.mv-ficha .mf-meta dd { font: 500 .8rem var(--sans); line-height: 1.4; }
@media (max-width: 520px) { .mv-ficha .mf-meta { grid-template-columns: 1fr; } .tv-ctl label { width: 100%; justify-content: space-between; } .tv-ctl .sel { max-width: 65%; } }

/* ---------- Sprint 3: estrella en la tabla, Mis favoritos y alertas ---------- */
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mercados td.con-estrella { display: flex; align-items: center; gap: 4px; }
.estrella { flex: none; width: 34px; height: 40px; display: grid; place-items: center; background: none; border: 0; border-radius: 8px; color: var(--gris2); cursor: pointer; padding: 0; }
.estrella svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; transition: transform .18s; }
.estrella:hover { color: var(--oro); }
.estrella[aria-pressed="true"] { color: var(--oro); }
.estrella[aria-pressed="true"] svg { fill: currentColor; }
.estrella:active svg { transform: scale(.85); }
.estrella:focus-visible, .favs .ico:focus-visible, .favs .btn-t:focus-visible { outline: 2px solid var(--cian); outline-offset: 2px; }

.favs { margin-top: 18px; background: var(--sup); border: 1px solid var(--borde); border-radius: 14px; padding: 18px; }
.favs-cab { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 12px; }
.favs-cab h3 { margin: 0; font-size: 1.05rem; }
.favs-cab p { margin: 0; }
.favs .msg { margin: 0 0 12px; font-size: .86rem; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--borde2); background: var(--fondo2); }
.favs .msg.ok { color: var(--sube); } .favs .msg.error { color: var(--baja); }
.favs-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; align-items: start; }
.favs-barra { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 10px; font-size: .78rem; color: var(--gris); }
.favs-barra label { display: inline-flex; align-items: center; gap: 6px; }
.favs .sel { min-height: 38px; }
.favs-tabla caption { caption-side: bottom; text-align: left; padding: 8px 12px 2px; }
.favs-tabla th[scope="row"] { padding: 8px 12px; border-top: 1px solid var(--borde); text-transform: none; letter-spacing: 0; font-size: .9rem; }
.favs-tabla th[scope="row"] a { color: var(--texto); text-decoration: none; font-weight: 700; }
.favs-tabla th[scope="row"] a:hover { color: var(--cian); }
.favs-tabla th[scope="row"] small { display: block; font-weight: 400; color: var(--gris); font-size: .72rem; }
.favs-tabla td.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; padding: 8px 10px; }
.favs-tabla abbr { text-decoration: underline dotted; cursor: help; }
.favs-tabla td.acc { padding: 4px 6px; white-space: nowrap; text-align: right; }
.favs .ico { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--gris); cursor: pointer; padding: 0; }
.favs .ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.favs .ico:hover { color: var(--cian); border-color: var(--borde2); background: var(--fondo2); }
.favs .ico[data-acc="quitar"]:hover { color: var(--baja); }
.favs-vacio { display: flex; align-items: center; gap: 14px; padding: 22px 18px; border: 1px dashed var(--borde2); border-radius: 12px; color: var(--suave); font-size: .9rem; }
.favs-vacio svg { flex: none; width: 30px; height: 30px; fill: none; stroke: var(--oro); stroke-width: 1.5; stroke-linejoin: round; }
.favs-vacio p { margin: 0; }

.favs-alertas { background: var(--fondo2); border: 1px solid var(--borde); border-radius: 12px; padding: 14px; }
.favs-alertas h4 { margin: 0 0 10px; font-size: .95rem; display: flex; justify-content: space-between; align-items: baseline; }
.al-frase { margin: 0 0 6px; font-size: .86rem; color: var(--suave); }
.al-campos { display: grid; grid-template-columns: 92px 1fr; gap: 8px; }
.al-campos input.sel { font-family: var(--mono); }
.al-campos .btn { padding: 9px 14px; font-size: .86rem; }
.al-campos .btn:disabled { opacity: .5; cursor: not-allowed; }
#al-form .meta { margin: 8px 0 0; font-size: .74rem; line-height: 1.45; }
#al-pista { color: var(--suave); min-height: 1.1em; }
.al-lista { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.al-lista li { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; padding: 10px; border: 1px solid var(--borde); border-radius: 9px; background: var(--sup); font-size: .84rem; }
.al-lista li.vacio { display: block; color: var(--gris); border-style: dashed; background: none; }
.al-lista li b { font-weight: 600; display: block; }
.al-lista li small { color: var(--gris); font-size: .74rem; }
.al-acc { grid-column: 1 / -1; display: flex; gap: 6px; justify-content: flex-end; }
.btn-t { font: 600 .74rem var(--sans); color: var(--suave); background: none; border: 1px solid var(--borde2); border-radius: 7px; padding: 6px 10px; min-height: 32px; cursor: pointer; }
.btn-t:hover { color: var(--texto); border-color: var(--cian); }
.btn-t[data-al="borrar"]:hover { border-color: var(--baja); color: var(--baja); }
.al-lista li[data-estado="activa"] .chip-e { color: var(--sube); border-color: rgba(47, 196, 127, .45); }
.al-lista li[data-estado="pausada"] .chip-e { color: var(--gris); border-color: var(--borde2); }
.al-lista li[data-estado="disparada"] .chip-e { color: var(--oro); border-color: rgba(201, 164, 90, .5); }
.al-lista li[data-estado="error"] .chip-e { color: var(--baja); border-color: rgba(239, 95, 103, .5); }
.al-lista li[data-estado="pausada"] b, .al-lista li[data-estado="disparada"] b { color: var(--suave); }

.favs-invita { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 18px; border: 1px dashed var(--borde2); border-radius: 12px; }
.favs-invita > div { flex: 1 1 320px; max-width: 64ch; }
.favs-invita h4 { margin: 0 0 6px; font-size: 1rem; }
.favs-invita p { margin: 0 0 6px; color: var(--suave); font-size: .9rem; }
.favs-invita .meta { color: var(--gris); font-size: .8rem; }

@media (max-width: 1080px) { .favs-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .favs { padding: 14px 10px; }
  .favs-barra label { width: 100%; justify-content: space-between; }
  .favs-barra .sel { width: 58%; min-width: 0; }
  .favs-tabla .om { display: none; }
  .favs-tabla td.num { padding: 8px 6px; font-size: .84rem; }
  .favs-tabla th[scope="row"] { padding: 8px 6px; }
  .favs .ico { width: 34px; height: 34px; }
  .favs-tabla td.acc { padding: 4px 2px; }
  .favs-invita .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .estrella svg { transition: none; } }

/* ---------- favoritos: panel destacado y caso real ---------- */
.favs { position: relative; border-color: transparent;
  background: linear-gradient(var(--sup), var(--sup)) padding-box,
              linear-gradient(120deg, var(--cian), var(--borde2) 38%, var(--borde2) 70%, var(--oro)) border-box;
  box-shadow: 0 18px 50px -28px rgba(63, 224, 255, .45); }
.favs-cab h3 { display: inline-flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.nuevo { font: 700 .66rem var(--sans); letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; color: #04121c; background: var(--oro); }
.favs-invita { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 22px; align-items: center; border: 0; padding: 4px; }
.favs-invita > div { max-width: none; }
.fi-texto h4 { font-size: 1.25rem; line-height: 1.25; margin: 0 0 8px; }
.fi-puntos { list-style: none; padding: 0; margin: 12px 0 18px; display: grid; gap: 8px; }
.fi-puntos li { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; color: var(--suave); }
.fi-puntos svg { flex: none; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: var(--sube); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.fi-demo { margin: 0; background: var(--fondo2); border: 1px solid var(--borde); border-radius: 12px; padding: 14px; }
.fi-demo figcaption { font-size: .84rem; color: var(--suave); margin-bottom: 10px; }
.fi-demo figcaption b { display: block; color: var(--texto); font-size: .7rem; letter-spacing: .06em; margin-bottom: 2px; color: var(--oro); }
.fi-demo p { margin: 10px 0 0; font-size: .86rem; }
.fi-demo p.meta { margin-top: 4px; font-size: .72rem; }
.fi-graf { position: relative; height: 190px; }
.fi-graf svg { width: 100%; height: 100%; display: block; overflow: visible; }
.fi-linea { fill: none; stroke: var(--cian); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.fi-nivel { stroke: var(--oro); stroke-width: 1.5; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; }
.fi-etq { position: absolute; left: 0; transform: translateY(-120%); font: 600 .68rem var(--mono); color: var(--oro); background: var(--fondo2); padding: 1px 6px 1px 0; }
.fi-punto { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--oro); box-shadow: 0 0 0 4px rgba(201, 164, 90, .25); }
.fi-punto::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--oro); animation: fi-pulso 2.2s ease-out infinite; }
@keyframes fi-pulso { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
.fi-burbuja { position: absolute; display: flex; gap: 9px; align-items: center; max-width: 62%; padding: 9px 12px; border-radius: 11px;
  background: var(--sup2); border: 1px solid var(--borde2); box-shadow: 0 10px 28px -12px rgba(0, 0, 0, .55); }
.fi-burbuja svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--oro); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fi-burbuja b { display: block; font-size: .8rem; line-height: 1.25; }
.fi-burbuja small { display: block; font-size: .7rem; color: var(--sube); }
.al-lista li.demo { display: block; padding: 0; border: 0; background: none; }
.al-lista li.demo .fi-graf { height: 150px; }
@media (max-width: 860px) { .favs-invita { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .fi-graf { height: 160px; } .fi-burbuja { max-width: 78%; padding: 7px 9px; } .fi-texto h4 { font-size: 1.1rem; } }
@media (prefers-reduced-motion: reduce) { .fi-punto::after { animation: none; opacity: 0; } }
