/* Índice de pantallas y kit de componentes */
.idx-legend{display:flex;flex-wrap:wrap;gap:10px 22px;align-items:center;font-size:12.5px;color:var(--muted);flex-direction:row}
.idx-legend > span{display:inline-flex;align-items:center;gap:8px}
.idx-grid{column-count:2;column-gap:16px}
.idx-grid > .idx-group{break-inside:avoid;margin-bottom:16px;width:100%}
.idx-group{border-radius:var(--r-lg);padding:18px;display:flex;flex-direction:column;gap:12px;min-width:0}
.idx-h{display:flex;align-items:center;gap:12px}
.idx-h h2{font-family:var(--font-display);font-size:18px;font-weight:600;letter-spacing:-.02em}
.idx-list{display:flex;flex-direction:column;gap:6px}
.idx-item{display:flex;flex-direction:column;gap:8px;padding:12px 14px;border-radius:16px;background:rgba(255,255,255,.035);box-shadow:inset 0 0 0 1px rgba(255,255,255,.04);transition:background .2s}
.idx-item:hover{background:rgba(255,255,255,.06)}
.idx-item > a{display:flex;flex-direction:column;gap:2px}
.idx-item > a b{font-size:14px;font-weight:600}
.idx-item > a small{font-size:12px;color:var(--dim)}
.idx-item > .idx-t{display:flex;flex-direction:column;gap:2px}
.idx-item > .idx-t b{font-size:14px;font-weight:600}
.idx-item > .idx-t small{font-size:12px;color:var(--dim)}
.idx-st button.badge{font:inherit;font-size:11px;font-weight:700;cursor:pointer;border:0}
.idx-mode b{font-size:13px;color:var(--text)}
.idx-legend.idx-mode > span.dim{display:block;flex:1 1 320px;line-height:1.5}
.idx-mode code{white-space:nowrap;font:600 11px ui-monospace,SFMono-Regular,Menlo,monospace;color:#d8e1ff;background:rgba(255,255,255,.07);padding:1px 6px;border-radius:6px}
.idx-route{font:600 11px ui-monospace,SFMono-Regular,Menlo,monospace;color:#c9c2ff;overflow-wrap:anywhere}
.idx-st{display:flex;flex-wrap:wrap;gap:6px}
.idx-st .badge{height:24px;font-size:11px}
.idx-st .badge:hover{filter:brightness(1.2)}
/* kit */
.kit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.kit-sec{display:flex;flex-direction:column;gap:14px}
.kit-sec h2{font-family:var(--font-display);font-size:17px;font-weight:600;display:flex;justify-content:space-between;align-items:center;gap:10px}
.kit-sec h2 code{font:600 11px ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--dim);background:rgba(255,255,255,.05);padding:3px 7px;border-radius:7px}
.swatches{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:10px}
.sw{border-radius:14px;overflow:hidden;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);font-size:11px}
.sw i{display:block;height:54px;background:var(--c)}
.sw span{display:block;padding:6px 8px;color:var(--muted)}
.type-scale{display:flex;flex-direction:column;gap:8px}
.type-scale .t1{font-family:var(--font-display);font-weight:800;font-size:40px;letter-spacing:-.035em;line-height:1}
.type-scale .t2{font-family:var(--font-display);font-weight:700;font-size:26px;letter-spacing:-.03em}
.type-scale .t3{font-family:var(--font-display);font-weight:600;font-size:18px}
.type-scale .t4{font-size:14px;color:var(--muted)}
/* acceso a la página de flujos desde el índice */
.idx-cta{display:flex;align-items:center;gap:14px;padding:16px 18px;border-radius:var(--r-lg)}
.idx-cta .tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.idx-cta .tx b{font-size:15px;font-weight:700}
.idx-cta .tx small{font-size:12.5px;color:var(--muted)}
@media (max-width:1100px){ .idx-grid{column-count:1} .kit-grid{grid-template-columns:minmax(0,1fr)} }
@media (max-width:640px){ .idx-cta{flex-wrap:wrap} .idx-cta .btn{width:100%} }

/* ---------- Flujos y estados (prototype/flows) ---------- */
.fl-intro{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:16px;align-items:start}
.fl-intro > section{display:flex;flex-direction:column;gap:12px}
.fl-intro h2{font-family:var(--font-display);font-size:16px;font-weight:600;letter-spacing:-.02em}
.fl-types{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.fl-type{display:flex;flex-direction:column;gap:3px;padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.035);box-shadow:inset 0 0 0 1px rgba(255,255,255,.04)}
.fl-type b{font-size:13px;font-weight:700}
.fl-type small{font-size:12px;color:var(--dim);line-height:1.4}
.fl-tones{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:12px;color:var(--dim)}
.fl-ctl{display:flex;flex-direction:column;gap:6px}
.fl-ctl > div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:10px;align-items:baseline;padding:8px 0;border-top:1px solid rgba(255,255,255,.06);font-size:12.5px;color:var(--muted)}
.fl-ctl > div:first-child{border-top:0;padding-top:0}
.fl-ctl > div > span:first-child{display:flex;flex-wrap:wrap;gap:4px}
.page-flows code{font:600 11.5px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;color:#d8e1ff;background:rgba(255,255,255,.07);padding:1px 6px;border-radius:6px;overflow-wrap:anywhere}

.fl-layout{display:grid;grid-template-columns:224px minmax(0,1fr);gap:20px;align-items:start}
.fl-nav{position:sticky;top:calc(var(--hdr-h) + var(--edge) * 2 + 8px);display:flex;flex-direction:column;gap:2px;padding:10px;border-radius:var(--r-lg)}
.fl-nav a{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:12px;font-size:13px;font-weight:600;color:var(--muted);transition:background .2s,color .2s}
.fl-nav a .i{width:16px;height:16px;flex:none;color:#b9adff}
.fl-nav a .n{margin-left:auto;font-size:11px;font-weight:700;color:var(--dim);font-variant-numeric:tabular-nums}
.fl-nav a:hover{background:rgba(255,255,255,.05);color:var(--text)}
.fl-nav a[aria-current="true"]{background:rgba(124,92,255,.16);color:var(--text);box-shadow:inset 0 0 0 1px rgba(124,92,255,.28)}
.fl-main{display:flex;flex-direction:column;gap:18px;min-width:0}
.fl-tools{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.fl-tools .field{flex:1;min-width:min(100%,260px)}
.fl-empty{padding:28px 18px}

.fl-dom{border-radius:var(--r-lg);padding:18px;display:flex;flex-direction:column;gap:12px}
.fl-dom-h{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.fl-dom-h > div{flex:1;min-width:0}
.fl-dom-h h2{font-family:var(--font-display);font-size:20px;font-weight:600;letter-spacing:-.025em}
.fl-dom-h p{font-size:13px;color:var(--muted);margin-top:2px;max-width:80ch}

.fl{display:flex;flex-direction:column;gap:14px;padding:16px;border-radius:18px;background:rgba(255,255,255,.035);box-shadow:inset 0 0 0 1px rgba(255,255,255,.05);min-width:0}
.fl:target{box-shadow:inset 0 0 0 1px rgba(124,92,255,.55),0 0 0 4px rgba(124,92,255,.14)}
.fl-h{display:flex;gap:10px 14px;justify-content:space-between;align-items:flex-start;flex-wrap:wrap}
.fl-h > div:first-child{flex:1;min-width:min(100%,240px)}
.fl-h h3{font-size:15.5px;font-weight:700;letter-spacing:-.01em}
.fl-h h3 a{color:inherit}
.fl-h h3 a:hover{text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(255,255,255,.3)}
.fl-h p{font-size:12.5px;color:var(--dim);margin-top:3px;line-height:1.45}
.fl-tags{display:flex;gap:6px;flex-wrap:wrap}
.fl-tags .badge{height:22px;font-size:10.5px;padding:0 9px}
.fl-b{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:14px 18px}
.fl-b > div{display:flex;flex-direction:column;gap:10px;min-width:0}
.fl-lbl{display:block;font-size:10.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--dim)}
.fl-who{display:flex;gap:8px;align-items:flex-start;font-size:13px;color:var(--muted);line-height:1.5}
.fl-who .badge{height:22px;font-size:10.5px;padding:0 9px;flex:none}
.fl-steps{list-style:none;counter-reset:fl;display:flex;flex-direction:column;margin:0;padding:0}
.fl-steps li{counter-increment:fl;position:relative;padding:1px 0 12px 32px;font-size:13px;line-height:1.45;color:var(--muted)}
.fl-steps li::before{content:counter(fl);position:absolute;left:0;top:0;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:700;color:#e6e0ff;background:rgba(124,92,255,.3);box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}
.fl-steps li::after{content:"";position:absolute;left:10.5px;top:25px;bottom:3px;width:1px;background:rgba(255,255,255,.12)}
.fl-steps li:last-child{padding-bottom:0}
.fl-steps li:last-child::after{display:none}
.fl-steps li.ok::before{background:var(--ok-soft);color:var(--ok-text)}
.fl-steps li.err::before{background:var(--err-soft);color:var(--err-text)}
.fl-steps li.warn::before{background:var(--warn-soft);color:var(--warn-text)}
.fl-steps li.info::before{background:var(--info-soft);color:var(--info-text)}
.fl-say{display:flex;flex-direction:column;gap:10px;min-width:0}
.fl-m{display:flex;flex-direction:column;gap:5px;min-width:0}
.fl-cap{font-size:11px;color:var(--dim);font-weight:500}
.fl-cap b{color:var(--muted);font-weight:700}
/* réplicas estáticas de los componentes reales */
.toast.fl-toast{-webkit-backdrop-filter:none;backdrop-filter:none;opacity:1;transform:none;width:auto;cursor:default;touch-action:auto;padding:10px 14px 10px 10px;border-radius:16px;background:linear-gradient(150deg,rgba(34,37,76,.9),rgba(14,16,36,.94));box-shadow:inset 0 1px 0 rgba(255,255,255,.07),inset 0 0 0 1px rgba(255,255,255,.07),0 14px 30px -18px rgba(0,0,0,.9)}
.toast.fl-toast .t-ico{width:32px;height:32px;border-radius:11px}
.fl-say small,.fl-say p,.fl-say span{overflow-wrap:anywhere}
.fl-say .alert{padding:12px 14px;font-size:12.5px}
.fl-say .alert .act{pointer-events:none}
.fl-fe{display:flex;flex-direction:column;gap:6px;padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.03);box-shadow:inset 0 0 0 1px rgba(255,90,122,.32)}
.fl-fe.ok{box-shadow:inset 0 0 0 1px rgba(61,245,167,.28)}
.fl-fe .msg{display:flex}
.fl-fe .msg.err{color:var(--err-text)}
.fl-fe .msg.ok{color:var(--ok-text)}
.fl-res{display:flex;align-items:flex-start;gap:12px;padding:12px;border-radius:16px;background:rgba(255,255,255,.04);box-shadow:inset 0 0 0 1px rgba(255,255,255,.07);min-width:0}
.fl-res > div{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.fl-res h4{font-family:var(--font-display);font-size:14.5px;font-weight:600;letter-spacing:-.01em}
.fl-res p,.fl-res li{font-size:12.5px;color:var(--muted);line-height:1.45}
.fl-res ul{padding-left:16px;list-style:disc;display:flex;flex-direction:column;gap:2px}
.fl-res li small{display:block;font-size:12px;color:var(--dim)}
.fl-res .spinner{margin:12px;animation:none;transform:rotate(45deg)}
.fl-res .eyebrow{font-size:10px}
.fl-ico{width:40px;height:40px;border-radius:14px;display:grid;place-items:center;flex:none;background:rgba(255,255,255,.07);color:#cfc4ff}
.fl-ico .i{width:20px;height:20px}
.fl-ico.ok{background:var(--ok-soft);color:var(--mint)}
.fl-ico.err{background:var(--err-soft);color:var(--danger)}
.fl-ico.warn{background:var(--warn-soft);color:var(--gold)}
.fl-ico.info{background:var(--info-soft);color:var(--cyan)}
.fl-btns{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.fl-btns .btn{pointer-events:none}
.fl-row{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.fl-say .kv{padding:12px;border-radius:14px;background:rgba(255,255,255,.035);font-size:12.5px}
.fl-say .bonus-box{font-size:13px}
.fl-wide{display:flex;flex-direction:column;gap:8px;min-width:0}
.fl-table{min-width:0;font-size:12.5px}
.fl-table td{padding:10px 12px;color:var(--muted)}
.fl-table td b{color:var(--text)}
.fl-table th{padding:4px 12px}
.fl-f{display:flex;flex-direction:column;gap:10px;padding-top:12px;border-top:1px solid rgba(255,255,255,.06)}
.fl-try{display:flex;flex-wrap:wrap;gap:6px 8px;align-items:center}
.fl-try .fl-lbl{margin-right:4px}
.fl-try .chip{height:30px;padding:0 11px;font-size:12px;gap:6px;color:var(--text)}
.fl-try .chip .i{width:14px;height:14px;color:#b9adff}
.fl-try .chip:hover{background:rgba(255,255,255,.1)}
.fl-val{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--dim)}
.fl-int{font-size:12.5px;color:var(--muted);line-height:1.5;padding:10px 12px;border-radius:12px;background:rgba(124,92,255,.08);box-shadow:inset 0 0 0 1px rgba(124,92,255,.2)}
.fl-int b{color:#cdbfff;margin-right:8px;font-size:10.5px;letter-spacing:.12em;text-transform:uppercase}
.fl-mode{font-size:12.5px;color:var(--muted);line-height:1.5;padding:10px 12px;border-radius:12px;background:rgba(43,224,255,.06);box-shadow:inset 0 0 0 1px rgba(43,224,255,.18)}
.fl-mode b{color:var(--info-text);margin-right:8px;font-size:10.5px;letter-spacing:.12em;text-transform:uppercase}
.fl-try button.chip{font:inherit;font-size:12px;font-weight:600;cursor:pointer}
/* réplicas de la billetera multimoneda (selector y saldos) */
.fl-curs{display:flex;flex-direction:column;gap:2px;padding:8px;border-radius:16px;background:rgba(255,255,255,.035);box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)}
.fl-cur{display:flex;align-items:center;gap:10px;padding:7px 8px;border-radius:10px;font-size:12.5px;min-width:0}
.fl-cur.on{background:rgba(124,92,255,.16);box-shadow:inset 0 0 0 1px rgba(124,92,255,.28)}
.fl-cur > b{font-weight:700}
.fl-cur .n{display:flex;flex-direction:column;min-width:0}
.fl-cur .n b{display:flex;align-items:center;gap:6px;font-weight:700}
.fl-cur .n small,.fl-cur .v small{font-size:11px;color:var(--dim)}
.fl-cur .v{margin-left:auto;display:flex;flex-direction:column;align-items:flex-end;text-align:right;font-variant-numeric:tabular-nums}
.fl-cur-q{display:flex;align-items:center;gap:8px;height:34px;padding:0 10px;margin-bottom:4px;border-radius:10px;background:var(--well);color:var(--dim);font-size:12.5px}
.fl-cur-sec{padding:6px 8px 2px;font-size:10.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--dim)}
.fl-cur-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 8px 2px;margin-top:4px;border-top:1px solid rgba(255,255,255,.06);font-size:12px;color:var(--muted)}
.fl-cur-foot .a{color:#b9adff;font-weight:600}
.fl-row .badge .cur-ico{width:14px;height:14px}
.fl-ico .cur-ico{width:26px;height:26px}
.fl.is-prop{box-shadow:inset 0 0 0 1px rgba(124,92,255,.22);background:rgba(124,92,255,.05)}
.fl-prop-note{font-size:12.5px;color:var(--muted);line-height:1.5}

@media (max-width:1100px){
  .fl-layout{grid-template-columns:minmax(0,1fr)}
  .fl-nav{position:static;flex-direction:row;overflow-x:auto;scrollbar-width:none;padding:6px;gap:4px}
  .fl-nav::-webkit-scrollbar{display:none}
  .fl-nav a{flex:none;white-space:nowrap;padding:7px 12px}
  .fl-intro{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:860px){ .fl-b{grid-template-columns:minmax(0,1fr)} }
@media (max-width:767px){
  .page-flows .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .page-flows .stat{padding:12px 14px;border-radius:16px;gap:2px}
  .page-flows .stat small{font-size:10.5px}
  .page-flows .stat b{font-size:20px}
  .fl-dom{padding:12px 10px;border-radius:22px}
  .fl{padding:12px;border-radius:16px;gap:12px}
  .fl-dom-h{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:6px 10px;padding:0 4px}
  .fl-dom-h > div{display:contents}
  .fl-dom-h .sec-ico{grid-row:1;grid-column:1}
  .fl-dom-h h2{grid-row:1;grid-column:2;font-size:18px}
  .fl-dom-h > .badge{grid-row:1;grid-column:3}
  .fl-dom-h p{grid-row:2;grid-column:1/-1;margin-top:0}
  .fl-types{grid-template-columns:minmax(0,1fr)}
  .fl-ctl > div{grid-template-columns:minmax(0,1fr);gap:4px}
  .fl-table thead{display:none}
  .fl-table,.fl-table tbody,.fl-table tr,.fl-table td{display:block;width:100%}
  .fl-table{border-spacing:0}
  .fl-table tr{padding:8px 12px;margin-bottom:6px;border-radius:14px;background:rgba(255,255,255,.035)}
  .fl-table tr:hover td{background:none}
  .fl-table td{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:10px;padding:5px 0;background:none;border-radius:0}
  .fl-table td::before{content:attr(data-label);font-size:11px;font-weight:600;color:var(--dim)}
  .fl-table td > *{justify-self:start;max-width:100%}
  .fl-table td:first-child{border-radius:0;font-size:13px}
  .fl-table td:last-child{border-radius:0}
}
/* países del sitio (prototype/markets) */
.page-markets .box{display:flex;flex-direction:column;gap:14px}
.page-markets .box > h2{font-family:var(--font-display);font-size:18px;font-weight:600;letter-spacing:-.02em}
.mk-table td:first-child{white-space:nowrap}
.mk-table td:nth-child(6),.mk-table td:nth-child(7){min-width:150px}
.mk-table td:nth-child(10),.mk-table td:nth-child(12){min-width:240px}
.mk-table td:nth-child(9){min-width:110px}
.mk-detail .kv dd{min-width:0;overflow-wrap:anywhere}
.mk-detail section > * + *{margin-top:10px}
/* kit: pieza del mercado */
.kit-mk{display:flex;flex-direction:column;gap:12px}
.kit-mk .f-seals{padding:0}
.kit-mk .sess-clock{display:inline-flex}
.kit-mk .sess-clock[hidden]{display:none}
