/* ══════════════════════════════════════════════════════════
   MATRIX OS — Sala de Control · La Casa Inteligente
   ══════════════════════════════════════════════════════════ */

:root {
  --bg:        #05070E;
  --bg-2:      #080C16;
  --panel:     rgba(13, 20, 33, .62);
  --panel-2:   rgba(18, 27, 46, .78);
  --line:      rgba(43, 227, 245, .14);
  --line-2:    rgba(43, 227, 245, .30);
  --cy:        #2BE3F5;
  --am:        #F5B73D;
  --gr:        #3FE08A;
  --rd:        #FF5D72;
  --tx:        #D5E2F0;
  --tx-2:      #9FB1C6;
  --tx-3:      #7A8BA3;
  --rail-w:    96px;
  --top-h:     62px;
  --f-disp:    'Rajdhani', system-ui, sans-serif;
  --f-body:    'Space Grotesk', system-ui, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, Menlo, monospace;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 700px at 84% -10%, rgba(43,227,245,.10), transparent 60%),
    radial-gradient(900px 600px at 6% 108%, rgba(245,183,61,.07), transparent 60%),
    linear-gradient(var(--bg), var(--bg-2));
  color: var(--tx);
  font-family: var(--f-body);
  font-size: 15px;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
body[data-daylight="dia"] { --line: rgba(43,227,245,.18); }
::selection { background: rgba(43,227,245,.32); color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,.02); }
::-webkit-scrollbar-thumb { background: rgba(43,227,245,.22); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: rgba(43,227,245,.42); }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--cy); outline-offset: 2px; }

@keyframes mxPulse { 0%,100% { opacity:1; box-shadow:0 0 0 0 rgba(255,93,114,.55);} 50% { opacity:.5; box-shadow:0 0 0 7px rgba(255,93,114,0);} }
@keyframes mxScan  { 0% { transform: translateY(-110%);} 100% { transform: translateY(760%);} }
@keyframes mxSweep { to { transform: rotate(360deg); } }
@keyframes mxRing  { 0% { transform:scale(.65); opacity:.9;} 100% { transform:scale(1.9); opacity:0;} }
@keyframes mxBars  { 0%,100% { transform:scaleY(.3);} 50% { transform:scaleY(1);} }
@keyframes mxFade  { from { opacity:0; transform:translateY(9px);} to { opacity:1; transform:none;} }
@keyframes mxGrain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-2%)} 80%{transform:translate(3%,1%)} 100%{transform:translate(0,0)} }
@keyframes mxGlitch { 0%{opacity:1;transform:translateX(0)} 12%{transform:translateX(-6px)} 26%{transform:translateX(5px)} 42%{transform:translateX(-3px)} 70%{opacity:.85} 100%{opacity:0;transform:translateX(0)} }
@keyframes mxBlink { 0%,60%{opacity:1} 61%,100%{opacity:.25} }

/* ══ ARRANQUE ══ */
#boot {
  position: fixed; inset: 0; z-index: 200;
  background: radial-gradient(70% 60% at 50% 45%, #0a1120, #04060c 70%);
  display: grid; place-items: center;
  transition: opacity .5s ease, visibility .5s;
}
#boot.done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-inner { width: min(520px, 84vw); text-align: left; }
.boot-mark { display: block; margin: 0 auto 18px; filter: drop-shadow(0 0 14px rgba(43,227,245,.55)); }
.boot-title {
  font-family: var(--f-disp); font-weight: 700; font-size: 27px; letter-spacing: 6px;
  color: #fff; text-align: center; margin-bottom: 22px;
}
.boot-title span { color: var(--cy); font-size: 14px; letter-spacing: 3px; }
.boot-log {
  font-family: var(--f-mono); font-size: 11.5px; line-height: 1.85;
  color: var(--tx-3); height: 152px; overflow: hidden;
}
.boot-log b { color: var(--gr); font-weight: 500; }
.boot-log i { color: var(--cy); font-style: normal; }
.boot-bar { margin-top: 18px; height: 3px; background: rgba(255,255,255,.07); border-radius: 3px; overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cy), var(--am)); box-shadow: 0 0 12px rgba(43,227,245,.7); transition: width .3s ease; }
.boot-skip {
  display: block; margin: 20px auto 0; font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: 2px; color: var(--tx-3); border-bottom: 1px solid transparent; padding-bottom: 2px;
}
.boot-skip:hover { color: var(--cy); border-bottom-color: var(--line-2); }

/* ══ BARRA SUPERIOR ══ */
#topbar {
  height: var(--top-h); display: flex; align-items: center; gap: 12px;
  padding: 0 clamp(12px, 2vw, 20px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10,16,28,.94), rgba(6,10,18,.86));
  backdrop-filter: blur(9px);
  position: relative; z-index: 20;
}
.brand { height: 30px; width: auto; flex-shrink: 0; filter: drop-shadow(0 0 10px rgba(43,227,245,.25)); }
.top-sep { width: 1px; height: 26px; background: var(--line); flex-shrink: 0; }
.spacer { flex: 1; }
.chip {
  display: flex; align-items: center; gap: 7px; flex-shrink: 0;
  padding: 6px 11px; border-radius: 8px; border: 1px solid var(--line);
  background: rgba(13,20,33,.55); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 1px;
}
.chip .k { color: var(--tx-3); }
.chip b { color: #fff; font-weight: 500; }
.chip-live { border-color: rgba(255,93,114,.32); background: rgba(255,93,114,.08); }
.chip-live b { color: #FF8A98; letter-spacing: 2px; font-weight: 700; }
.chip-live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rd); animation: mxPulse 1.6s ease-in-out infinite; }
.chip-hora b { color: var(--cy); }
.chip-hora.live { border-color: rgba(255,93,114,.4); background: rgba(255,93,114,.1); }
.chip-hora.live b { color: #FF8A98; }
.clock { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; flex-shrink: 0; }
.clock b { font-family: var(--f-mono); font-size: 17px; font-weight: 700; color: #fff; letter-spacing: .5px; }
.clock span { font-family: var(--f-mono); font-size: 8.5px; letter-spacing: 1.6px; color: var(--tx-3); }

/* ══ LAYOUT ══ */
#app { display: grid; grid-template-columns: var(--rail-w) 1fr; height: calc(100% - var(--top-h)); }

#rail {
  display: flex; flex-direction: column; gap: 6px; padding: 12px 10px;
  border-right: 1px solid var(--line); background: rgba(8,12,22,.5);
}
.rail-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 4px; border-radius: 11px; border: 1px solid transparent;
  color: var(--tx-3); position: relative; transition: all .18s ease;
}
.rail-btn svg { width: 22px; height: 22px; }
.rail-btn span { font-family: var(--f-disp); font-weight: 600; font-size: 10.5px; letter-spacing: 1.2px; }
.rail-btn:hover { color: var(--tx); background: rgba(43,227,245,.05); border-color: var(--line); }
.rail-btn.is-active { color: #fff; background: rgba(43,227,245,.09); border-color: var(--line-2); }
.rail-btn.is-active::before {
  content: ""; position: absolute; left: -10px; top: 12px; bottom: 12px; width: 3px;
  border-radius: 3px; background: linear-gradient(var(--cy), var(--am)); box-shadow: 0 0 10px rgba(43,227,245,.8);
}
.rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: 7px; padding-top: 12px; border-top: 1px solid var(--line); }
.sys-line { display: flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 8px; letter-spacing: .6px; color: var(--tx-3); }
.sys-line .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tx-3); flex-shrink: 0; }
.sys-line .dot.ok { background: var(--gr); box-shadow: 0 0 7px var(--gr); }
.sys-line .dot.warn { background: var(--am); box-shadow: 0 0 7px var(--am); }
.sys-meter { height: 3px; border-radius: 3px; background: rgba(255,255,255,.06); overflow: hidden; }
.sys-meter i { display: block; height: 100%; width: 30%; background: linear-gradient(90deg, var(--cy), var(--gr)); transition: width .9s ease; }
.sys-tag { font-family: var(--f-mono); font-size: 7.5px; letter-spacing: .5px; color: rgba(122,139,163,.7); text-align: center; }

#stage { position: relative; overflow: hidden; }
.module {
  position: absolute; inset: 0; display: none;
  flex-direction: column; gap: 12px;
  padding: clamp(12px, 1.8vw, 20px);
  overflow-y: auto; overflow-x: hidden;
}
.module.is-active { display: flex; animation: mxFade .38s ease; }

.mod-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }
.mod-head h1 { font-family: var(--f-disp); font-weight: 700; font-size: clamp(16px, 2vw, 20px); letter-spacing: 2.4px; color: #fff; margin: 0; }
.tag { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 1.4px; padding: 3px 9px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--cy); display: inline-flex; align-items: center; gap: 6px; }
.tag-rec { color: #FF8A98; border-color: rgba(255,93,114,.34); }
.tag-rec i { width: 7px; height: 7px; border-radius: 50%; background: var(--rd); animation: mxPulse 1.5s infinite; }
.tag-ok { color: var(--gr); border-color: rgba(63,224,138,.34); }
.tag-ok i { width: 7px; height: 7px; border-radius: 50%; background: var(--gr); box-shadow: 0 0 8px var(--gr); }
.rule { flex: 1; height: 1px; min-width: 20px; background: linear-gradient(90deg, var(--line-2), transparent); }
.hint { font-size: 12px; color: var(--tx-3); }

/* ══ PANELES ══ */
.pane {
  padding: 15px 17px; border-radius: 13px; border: 1px solid var(--line);
  background: linear-gradient(155deg, var(--panel-2), rgba(8,13,24,.8));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.pane-accent { border-color: rgba(245,183,61,.2); }
.pane-h { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 2px; color: var(--tx-3); margin-bottom: 12px; }
.pane-note { font-size: 11.5px; line-height: 1.5; color: var(--tx-3); margin: 12px 0 0; }
.kv { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.kv:last-of-type { border-bottom: 0; }
.kv span { font-size: 12px; color: var(--tx-2); }
.kv b { font-family: var(--f-mono); font-size: 12.5px; color: #fff; font-weight: 500; }

/* ══ PLANO ══ */
.plano-wrap { display: grid; grid-template-columns: 1fr 264px; gap: 14px; align-items: start; min-height: 0; }
.plano { position: relative; border-radius: 15px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 30px 70px -34px #000; }
.plano img { display: block; width: 100%; height: auto; }
.plano-scan { position: absolute; left: 0; right: 0; height: 12%; top: 0; pointer-events: none; background: linear-gradient(180deg, rgba(43,227,245,.14), transparent); animation: mxScan 8s linear infinite; }
.plano-grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(43,227,245,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(43,227,245,.05) 1px, transparent 1px); background-size: 54px 54px; mask-image: radial-gradient(circle at 50% 50%, #000 42%, transparent 88%); }
.plano-hotspots { position: absolute; inset: 0; }
.hot { position: absolute; transform: translate(-50%,-50%); display: grid; place-items: center; }
.hot-btn { position: relative; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--cy); background: rgba(5,7,14,.6); display: grid; place-items: center; transition: transform .2s ease; }
.hot-btn::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cy); box-shadow: 0 0 9px var(--cy); }
.hot-btn::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--cy); animation: mxRing 2.6s ease-out infinite; }
.hot:hover .hot-btn, .hot:focus-within .hot-btn { transform: scale(1.25); }
.hot-lbl {
  position: absolute; top: 32px; white-space: nowrap; font-family: var(--f-mono); font-size: 9px;
  letter-spacing: 1.2px; color: #fff; padding: 3px 8px; border-radius: 5px;
  background: rgba(5,7,14,.82); border: 1px solid var(--line-2);
  opacity: 0; transform: translateY(-4px); transition: all .2s ease; pointer-events: none;
}
.hot:hover .hot-lbl, .hot:focus-within .hot-lbl { opacity: 1; transform: none; }
.hot.agua .hot-btn, .hot.agua .hot-btn::before { border-color: var(--gr); }
.hot.agua .hot-btn::after { background: var(--gr); box-shadow: 0 0 9px var(--gr); }
.hot.link .hot-btn, .hot.link .hot-btn::before { border-color: var(--am); }
.hot.link .hot-btn::after { background: var(--am); box-shadow: 0 0 9px var(--am); }
.plano-side { display: flex; flex-direction: column; gap: 12px; }
.hot-list { display: flex; flex-direction: column; gap: 6px; }
.hot-list button {
  display: flex; align-items: center; gap: 9px; text-align: left; padding: 7px 9px; border-radius: 8px;
  border: 1px solid transparent; font-size: 12px; color: var(--tx-2); transition: all .16s ease;
}
.hot-list button:hover { background: rgba(43,227,245,.07); border-color: var(--line); color: #fff; }
.hot-list i { width: 6px; height: 6px; border-radius: 50%; background: var(--cy); box-shadow: 0 0 7px var(--cy); flex-shrink: 0; }

/* ══ CÁMARAS ══ */
.cam-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tool {
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 1.2px; padding: 6px 11px;
  border-radius: 7px; border: 1px solid var(--line); color: var(--tx-2);
  background: rgba(13,20,33,.5); transition: all .16s ease;
}
.tool:hover { color: #fff; border-color: var(--line-2); }
.tool.on { color: #05070E; background: var(--cy); border-color: var(--cy); font-weight: 700; }
.tool-sep { width: 1px; height: 18px; background: var(--line); }

.cams { display: grid; grid-template-columns: 1fr 232px; gap: 14px; align-items: start; }
.cam-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

.feed {
  position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line-2); background: #04070d;
  box-shadow: 0 30px 70px -34px #000, inset 0 0 60px rgba(0,0,0,.5);
}
.fx-bg, .fx-fg { position: absolute; inset: -6%; background-size: cover; background-position: center; will-change: transform; }
.fx-bg { filter: blur(14px) saturate(1.1) brightness(.65); transform: scale(1.18); }
.fx-fg { filter: saturate(1.05) contrast(1.04); }
.feed[data-filter="ir"] .fx-fg { filter: grayscale(1) sepia(1) hue-rotate(58deg) saturate(4.5) contrast(1.35) brightness(1.05); }
.feed[data-filter="ir"] .fx-bg { filter: blur(14px) grayscale(1) sepia(1) hue-rotate(58deg) saturate(3) brightness(.5); }
.feed[data-filter="termico"] .fx-fg { filter: grayscale(1) contrast(1.5) sepia(1) hue-rotate(178deg) saturate(7) brightness(1.05); }
.feed[data-filter="termico"] .fx-bg { filter: blur(14px) grayscale(1) sepia(1) hue-rotate(178deg) saturate(5) brightness(.5); }
.fx-grain { position: absolute; inset: -20%; background-image: var(--grain); opacity: .05; pointer-events: none; animation: mxGrain 1.1s steps(4) infinite; }
.fx-scan { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.16) 0 1px, transparent 1px 3px); }
.fx-vig { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(78% 68% at 50% 46%, transparent 45%, rgba(2,4,9,.72)); }
.fx-glitch { position: absolute; inset: 0; pointer-events: none; opacity: 0; display: grid; place-items: center; background: repeating-linear-gradient(0deg, rgba(43,227,245,.13) 0 2px, rgba(5,7,14,.55) 2px 5px); }
.feed.switching .fx-glitch { animation: mxGlitch .42s steps(9); }
.feed.switching .fx-fg { animation: mxGlitch .42s steps(7); }
.fx-glitch span { font-family: var(--f-mono); font-size: 11px; letter-spacing: 4px; color: #fff; background: rgba(255,93,114,.85); padding: 5px 12px; border-radius: 4px; }

.ov { position: absolute; display: flex; gap: 8px; align-items: center; font-family: var(--f-mono); font-size: 10px; letter-spacing: 1.2px; pointer-events: none; }
.ov-tl { top: 12px; left: 13px; }
.ov-tr { top: 12px; right: 13px; }
.ov-bl { bottom: 12px; left: 13px; flex-direction: column; align-items: flex-start; gap: 3px; }
.ov-br { bottom: 12px; right: 13px; }
.rec { display: inline-flex; align-items: center; gap: 6px; color: #FF8A98; background: rgba(5,7,14,.55); padding: 3px 8px; border-radius: 5px; }
.rec i { width: 7px; height: 7px; border-radius: 50%; background: var(--rd); animation: mxPulse 1.5s infinite; }
.camid { color: var(--cy); background: rgba(5,7,14,.55); padding: 3px 8px; border-radius: 5px; }
.tc { color: #fff; background: rgba(5,7,14,.6); padding: 3px 8px; border-radius: 5px; font-variant-numeric: tabular-nums; }
.sig { display: inline-flex; align-items: flex-end; gap: 2px; height: 13px; }
.sig i { width: 3px; background: var(--gr); border-radius: 1px; box-shadow: 0 0 5px rgba(63,224,138,.6); }
.sig i:nth-child(1) { height: 35%; } .sig i:nth-child(2) { height: 58%; } .sig i:nth-child(3) { height: 79%; } .sig i:nth-child(4) { height: 100%; }
.camname { font-family: var(--f-disp); font-weight: 700; font-size: clamp(17px, 2.4vw, 25px); letter-spacing: 1.6px; color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.9); }
.camdesc { font-family: var(--f-body); font-size: 11.5px; letter-spacing: 0; color: var(--tx-2); max-width: 46ch; text-shadow: 0 1px 8px rgba(0,0,0,.9); }
.ro { color: var(--tx-2); background: rgba(5,7,14,.5); padding: 3px 8px; border-radius: 5px; }
.ro b { color: var(--cy); font-weight: 500; font-variant-numeric: tabular-nums; }
.reticle { position: absolute; inset: 0; pointer-events: none; }
.reticle i { position: absolute; width: 20px; height: 20px; border: 2px solid rgba(43,227,245,.55); }
.reticle i:nth-child(1) { top: 46px; left: 13px; border-right: 0; border-bottom: 0; }
.reticle i:nth-child(2) { top: 46px; right: 13px; border-left: 0; border-bottom: 0; }
.reticle i:nth-child(3) { bottom: 58px; left: 13px; border-right: 0; border-top: 0; }
.reticle i:nth-child(4) { bottom: 58px; right: 13px; border-left: 0; border-top: 0; }
.zoombox { position: absolute; border: 1px solid rgba(245,183,61,.75); border-radius: 3px; pointer-events: none; box-shadow: 0 0 0 9999px rgba(2,4,9,.12) inset; transition: all 3.6s cubic-bezier(.4,0,.2,1); }
.zoombox::after { content: "FOCUS LOCK"; position: absolute; top: -16px; left: 0; font-family: var(--f-mono); font-size: 8px; letter-spacing: 1.4px; color: var(--am); }

.boxes { position: absolute; inset: 0; pointer-events: none; }
.boxes.off { display: none; }
.bx { position: absolute; border: 1px solid rgba(63,224,138,.85); border-radius: 2px; box-shadow: 0 0 14px rgba(63,224,138,.22) inset; }
.bx span { position: absolute; top: -15px; left: -1px; font-family: var(--f-mono); font-size: 8px; letter-spacing: .8px; color: #05070E; background: var(--gr); padding: 1px 5px; border-radius: 2px; white-space: nowrap; }
.bx.obj { border-color: rgba(43,227,245,.8); }
.bx.obj span { background: var(--cy); }

.telemetry { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 8px; }
.tl { padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); }
.tl b { display: block; font-family: var(--f-disp); font-weight: 700; font-size: 19px; color: #fff; line-height: 1; }
.tl span { display: block; font-family: var(--f-mono); font-size: 8.5px; letter-spacing: 1.1px; color: var(--tx-3); margin-top: 5px; }
.tl.ok b { color: var(--gr); }
.tl.warn b { color: var(--am); }

.cam-side { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.cam-side-h { font-family: var(--f-mono); font-size: 9px; letter-spacing: 1.8px; color: var(--tx-3); }
.cam-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.thumb {
  position: relative; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line); background: #04070d; padding: 0; display: block; width: 100%;
  transition: border-color .18s ease, transform .18s ease;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .72; transition: opacity .25s ease, transform 9s linear; }
.thumb:hover { border-color: var(--line-2); transform: translateY(-2px); }
.thumb:hover img { opacity: .95; transform: scale(1.07); }
.thumb.on { border-color: var(--cy); box-shadow: 0 0 0 1px rgba(43,227,245,.35), 0 0 22px -6px rgba(43,227,245,.6); }
.thumb.on img { opacity: 1; }
.thumb .t-id { position: absolute; top: 5px; left: 6px; font-family: var(--f-mono); font-size: 7.5px; letter-spacing: .8px; color: var(--cy); background: rgba(5,7,14,.7); padding: 2px 5px; border-radius: 3px; }
.thumb .t-nm { position: absolute; bottom: 5px; left: 6px; right: 6px; font-family: var(--f-disp); font-weight: 600; font-size: 10px; letter-spacing: .8px; color: #fff; text-align: left; text-shadow: 0 1px 6px #000; }
.thumb .t-rec { position: absolute; top: 6px; right: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--rd); animation: mxPulse 1.8s infinite; }
.thumb .t-scan { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.2) 0 1px, transparent 1px 3px); }

/* ══ IA ══ */
.ia { display: grid; grid-template-columns: 1fr 400px; gap: 14px; align-items: stretch; min-height: 0; flex: 1; }
.ia-net { position: relative; border-radius: 15px; border: 1px solid var(--line-2); overflow: hidden; background: radial-gradient(110% 90% at 50% 0%, rgba(43,227,245,.09), rgba(6,10,18,.95)); min-height: 340px; }
#net { display: block; width: 100%; height: 100%; }
.net-legend { position: absolute; top: 13px; left: 15px; display: flex; gap: 14px; font-family: var(--f-mono); font-size: 9px; letter-spacing: 1px; color: var(--tx-3); }
.net-legend span { display: inline-flex; align-items: center; gap: 6px; }
.net-legend i { width: 7px; height: 7px; border-radius: 50%; }
.n-in { background: var(--gr); box-shadow: 0 0 8px var(--gr); }
.n-hid { background: var(--cy); box-shadow: 0 0 8px var(--cy); }
.n-out { background: var(--am); box-shadow: 0 0 8px var(--am); }
.net-stat { position: absolute; bottom: 13px; left: 15px; right: 15px; display: flex; gap: 20px; }
.net-stat div { display: flex; flex-direction: column; }
.net-stat b { font-family: var(--f-mono); font-size: 15px; color: #fff; font-variant-numeric: tabular-nums; }
.net-stat span { font-family: var(--f-mono); font-size: 8px; letter-spacing: 1.2px; color: var(--tx-3); margin-top: 3px; }

.ia-chat { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.wave { position: relative; height: 62px; border-radius: 11px; border: 1px solid var(--line); background: rgba(6,10,18,.7); overflow: hidden; flex-shrink: 0; }
#waveCv { display: block; width: 100%; height: 100%; }
.wave-lbl { position: absolute; top: 7px; left: 11px; font-family: var(--f-mono); font-size: 8.5px; letter-spacing: 1.6px; color: var(--tx-3); }
.wave.on .wave-lbl { color: var(--cy); }
.wave.listening { border-color: rgba(63,224,138,.45); }
.wave.listening .wave-lbl { color: var(--gr); }

.log { flex: 1; min-height: 140px; overflow-y: auto; display: flex; flex-direction: column; gap: 9px; padding-right: 4px; }
.msg { max-width: 90%; padding: 10px 13px; border-radius: 12px; font-size: 13.5px; line-height: 1.55; animation: mxFade .3s ease; }
.msg.me { align-self: flex-end; background: rgba(43,227,245,.1); border: 1px solid var(--line-2); color: #fff; border-bottom-right-radius: 4px; }
.msg.ai { align-self: flex-start; background: linear-gradient(155deg, var(--panel-2), rgba(8,13,24,.85)); border: 1px solid var(--line); color: var(--tx); border-bottom-left-radius: 4px; }
.msg.ai .who { display: block; font-family: var(--f-mono); font-size: 8.5px; letter-spacing: 1.8px; color: var(--cy); margin-bottom: 6px; }
.msg.ai .src { display: block; font-family: var(--f-mono); font-size: 8.5px; letter-spacing: .8px; color: var(--tx-3); margin-top: 8px; padding-top: 7px; border-top: 1px solid rgba(255,255,255,.05); }
.msg.think { color: var(--tx-3); font-family: var(--f-mono); font-size: 11px; letter-spacing: 1px; }
.msg.think i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--cy); margin-left: 3px; animation: mxBlink 1s infinite; }
.msg.think i:nth-child(2) { animation-delay: .18s; }
.msg.think i:nth-child(3) { animation-delay: .36s; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; flex-shrink: 0; }
.chips button {
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .6px; padding: 6px 10px;
  border-radius: 20px; border: 1px solid var(--line); color: var(--tx-2); background: rgba(13,20,33,.5);
  transition: all .16s ease;
}
.chips button:hover { color: #fff; border-color: var(--line-2); background: rgba(43,227,245,.08); }

.ask { display: flex; gap: 8px; flex-shrink: 0; }
.ask input {
  flex: 1; min-width: 0; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--line-2);
  background: rgba(5,7,14,.65); color: #fff; font-family: var(--f-body); font-size: 14px; outline: none;
}
.ask input::placeholder { color: var(--tx-3); }
.ask input:focus { border-color: var(--cy); box-shadow: 0 0 0 3px rgba(43,227,245,.12); }
.ask button[type="submit"] {
  width: 46px; border-radius: 11px; border: none; display: grid; place-items: center;
  color: #05070E; background: linear-gradient(135deg, var(--cy), var(--am)); flex-shrink: 0;
}
.ask .mic {
  width: 46px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--tx-2); background: rgba(5,7,14,.65);
  transition: all .18s ease;
}
.ask .mic svg { width: 20px; height: 20px; }
.ask .mic:hover { color: #fff; border-color: var(--cy); }
.ask .mic.on {
  color: #05070E; background: var(--gr); border-color: var(--gr);
  animation: mxPulse 1.4s ease-in-out infinite;
}
#micNote { color: var(--gr); }
.ask button svg { width: 20px; height: 20px; }
.ask button:hover { filter: brightness(1.1); }
.ask-note { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 8.5px; letter-spacing: .9px; color: var(--tx-3); flex-shrink: 0; }
.mute { font-family: var(--f-mono); font-size: 8.5px; letter-spacing: 1.2px; color: var(--gr); border: 1px solid rgba(63,224,138,.3); border-radius: 5px; padding: 3px 8px; }
.mute[aria-pressed="true"] { color: var(--tx-3); border-color: var(--line); }

/* ══ RECURSOS ══ */
.res-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(172px, 1fr)); gap: 11px; flex-shrink: 0; }
.res {
  position: relative; overflow: hidden; padding: 16px; border-radius: 13px;
  border: 1px solid var(--line); background: linear-gradient(155deg, var(--panel-2), rgba(8,13,24,.82));
}
.res-top { display: flex; justify-content: space-between; align-items: flex-start; }
.res svg { width: 25px; height: 25px; }
.res .flag { font-family: var(--f-mono); font-size: 8.5px; letter-spacing: .6px; color: var(--gr); }
.res .flag.real { color: var(--am); }
.res .n { font-family: var(--f-disp); font-weight: 700; font-size: 29px; color: #fff; margin-top: 12px; line-height: 1; font-variant-numeric: tabular-nums; }
.res .n small { font-size: 13px; color: var(--tx-3); font-weight: 500; }
.res .l { font-family: var(--f-mono); font-size: 9px; letter-spacing: 1.2px; color: var(--tx-3); margin-top: 6px; }
.res .spark { margin-top: 10px; height: 26px; display: flex; align-items: flex-end; gap: 2px; }
.res .spark i { flex: 1; border-radius: 1px; background: linear-gradient(180deg, var(--cy), rgba(43,227,245,.18)); transition: height .7s ease; }

.res-low { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 12px; align-items: stretch; flex: 1; min-height: 260px; }
.res-low .pane { display: flex; flex-direction: column; }
.pane-wide { min-width: 0; }
#chart { display: block; width: 100%; flex: 1; min-height: 150px; }
.chart-legend { display: flex; gap: 16px; margin-top: 8px; font-family: var(--f-mono); font-size: 9px; letter-spacing: .8px; color: var(--tx-3); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 9px; height: 3px; border-radius: 2px; }
.goal { text-align: left; }
.goal-n { font-family: var(--f-disp); font-weight: 700; font-size: 33px; color: var(--cy); line-height: 1; font-variant-numeric: tabular-nums; }
.goal-of { font-family: var(--f-mono); font-size: 10px; color: var(--tx-3); margin-top: 5px; }
.goal-bar { margin-top: 13px; height: 11px; border-radius: 7px; background: rgba(255,255,255,.05); border: 1px solid rgba(245,183,61,.2); overflow: hidden; }
.goal-bar i { display: block; height: 100%; width: 0; border-radius: 7px; background: linear-gradient(90deg, var(--am), var(--cy)); box-shadow: 0 0 12px rgba(245,183,61,.45); transition: width 1s ease; }
.goal-pct { font-family: var(--f-mono); font-size: 11px; color: var(--am); margin-top: 8px; }
.decisions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.decisions li { display: flex; gap: 9px; font-size: 12px; line-height: 1.45; color: var(--tx-2); animation: mxFade .35s ease; }
.decisions time { font-family: var(--f-mono); font-size: 9.5px; color: var(--tx-3); flex-shrink: 0; padding-top: 2px; }
.decisions b { color: var(--gr); font-weight: 500; }
.decisions b.warn { color: var(--am); }
.decisions b.bad { color: #FF8A98; }

/* ══ RESPONSIVE ══ */
@media (max-width: 1180px) {
  .cams { grid-template-columns: 1fr; }
  .cam-grid { grid-template-columns: repeat(5, 1fr); }
  .cam-side { order: 2; }
  .ia { grid-template-columns: 1fr; }
  .ia-net { min-height: 260px; }
  .res-low { grid-template-columns: 1fr 1fr; }
  .pane-wide { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .plano-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { overflow: auto; }
  :root { --rail-w: 0px; }
  #topbar { flex-wrap: wrap; height: auto; padding: 10px 12px; gap: 8px; }
  .brand { height: 24px; }
  .clock { display: none; }
  #app { grid-template-columns: 1fr; height: auto; }
  #rail {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
    flex-direction: row; gap: 4px; padding: 7px 8px;
    border-right: 0; border-top: 1px solid var(--line-2);
    background: rgba(5,8,14,.96); backdrop-filter: blur(10px);
  }
  .rail-btn { flex: 1; padding: 7px 2px; }
  .rail-btn.is-active::before { left: 12px; right: 12px; top: -7px; bottom: auto; width: auto; height: 2px; }
  .rail-foot { display: none; }
  #stage { position: static; overflow: visible; }
  .module { position: static; display: none; padding: 14px 12px 92px; overflow: visible; }
  .module.is-active { display: flex; }
  .cam-grid { grid-template-columns: repeat(3, 1fr); }
  .res-low { grid-template-columns: 1fr; }
  .telemetry { grid-template-columns: repeat(2, 1fr); }
  .camdesc, .ov-br, .reticle { display: none; }
  .camname { font-size: 16px; }
  .ov { font-size: 8.5px; }
  .ov-tl, .ov-tr { top: 8px; }
  .ov-tl { left: 8px; } .ov-tr { right: 8px; }
  .ov-bl { bottom: 8px; left: 10px; }
  .bx span { font-size: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .fx-bg, .fx-fg { transform: none !important; }
}

/* ══ MATRIX PASS ══════════════════════════════════════════ */
.tag-sim { color: var(--am); border-color: rgba(245,183,61,.4); }
.pass-wrap { display: grid; grid-template-columns: 1fr 290px; gap: 14px; align-items: start; }
.pass-main { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.pass-side { display: flex; flex-direction: column; gap: 12px; }

.steps { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.steps li {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 130px;
  padding: 9px 12px; border-radius: 9px; border: 1px solid var(--line);
  background: rgba(13,20,33,.5); font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 1px; color: var(--tx-3); transition: all .2s ease;
}
.steps li i {
  width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center;
  font-style: normal; font-size: 9.5px; border: 1px solid currentColor; flex-shrink: 0;
}
.steps li.on { color: #fff; border-color: var(--line-2); background: rgba(43,227,245,.09); }
.steps li.on i { background: var(--cy); color: #05070E; border-color: var(--cy); }
.steps li.done { color: var(--gr); border-color: rgba(63,224,138,.3); }
.steps li.done i { background: var(--gr); color: #05070E; border-color: var(--gr); }

.sim-warn {
  padding: 11px 14px; border-radius: 9px; font-size: 12px; line-height: 1.5;
  border: 1px solid rgba(245,183,61,.3); background: rgba(245,183,61,.07); color: var(--tx-2);
}
.sim-warn b { color: var(--am); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 1.4px; }

.step-panel { display: none; }
.step-panel.on { display: block; animation: mxFade .3s ease; }

.form2 { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.form2 label { display: flex; flex-direction: column; gap: 6px; font-size: 11px; letter-spacing: .6px; color: var(--tx-3); }
.form2 label.wide { grid-column: 1 / -1; }
.form2 input, .form2 select {
  padding: 11px 13px; border-radius: 9px; border: 1px solid var(--line-2);
  background: rgba(5,7,14,.6); color: #fff; font-family: var(--f-body); font-size: 14px; outline: none; width: 100%;
}
.form2 input:focus, .form2 select:focus { border-color: var(--cy); box-shadow: 0 0 0 3px rgba(43,227,245,.12); }
.form2 input::placeholder { color: #4d5967; }
.form-card input { font-family: var(--f-mono); letter-spacing: 1px; }
.inp-wrap { position: relative; display: block; }
.brand-tag {
  position: absolute; right: 11px; top: 50%; transform: translateY(-50%);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 1.4px; color: var(--cy);
  border: 1px solid var(--line-2); border-radius: 4px; padding: 2px 7px; background: rgba(5,7,14,.8);
}
.check { display: flex; align-items: flex-start; gap: 9px; margin-top: 14px; font-size: 12.5px; color: var(--tx-2); line-height: 1.5; cursor: pointer; }
.check input { margin-top: 2px; accent-color: var(--cy); width: 15px; height: 15px; flex-shrink: 0; }
.check b { color: #fff; font-weight: 600; }
.form-err { min-height: 18px; margin-top: 10px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .6px; color: #FF8A98; }

.btn-main {
  padding: 13px 22px; border-radius: 10px; border: none; cursor: pointer;
  font-family: var(--f-disp); font-weight: 700; font-size: 14.5px; letter-spacing: 2px;
  color: #05070E; background: linear-gradient(90deg, var(--cy), var(--am));
  box-shadow: 0 0 22px rgba(43,227,245,.28); transition: all .18s ease;
}
.btn-main:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-main[disabled] { opacity: .45; cursor: not-allowed; transform: none; filter: none; }
.btn-ghost {
  padding: 13px 20px; border-radius: 10px; border: 1px solid var(--line-2);
  font-family: var(--f-disp); font-weight: 600; font-size: 13.5px; letter-spacing: 1.6px; color: var(--tx-2);
}
.btn-ghost:hover { color: #fff; border-color: var(--cy); }
.step-nav { display: flex; gap: 9px; align-items: center; margin-top: 12px; }
.step-nav .btn-main { margin-left: auto; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.plan {
  position: relative; text-align: left; padding: 18px; border-radius: 13px; cursor: pointer;
  border: 1px solid var(--line); background: linear-gradient(155deg, var(--panel-2), rgba(8,13,24,.82));
  transition: all .18s ease;
}
.plan:hover { border-color: var(--line-2); transform: translateY(-2px); }
.plan.on { border-color: var(--cy); box-shadow: 0 0 0 1px rgba(43,227,245,.35), 0 18px 44px -26px rgba(43,227,245,.7); }
.plan .p-tag { font-family: var(--f-mono); font-size: 9px; letter-spacing: 1.4px; color: var(--am); }
.plan h4 { margin: 8px 0 4px; font-family: var(--f-disp); font-weight: 700; font-size: 19px; letter-spacing: 1px; color: #fff; }
.plan .p-price { font-family: var(--f-disp); font-weight: 700; font-size: 27px; color: var(--cy); line-height: 1.1; margin-top: 8px; }
.plan .p-unit { font-family: var(--f-mono); font-size: 10px; color: var(--tx-3); margin-top: 4px; }
.plan ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.plan li { font-size: 12px; color: var(--tx-2); padding-left: 15px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--gr); }

.picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 9px; }
.pick {
  display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px;
  border-radius: 10px; border: 1px solid var(--line); background: rgba(13,20,33,.5); transition: all .16s ease;
}
.pick:hover { border-color: var(--line-2); background: rgba(43,227,245,.06); }
.pick.on { border-color: var(--cy); background: rgba(43,227,245,.1); }
.pick .av {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center;
  font-family: var(--f-disp); font-weight: 700; font-size: 14px; color: #05070E;
  background: linear-gradient(135deg, var(--cy), var(--gr));
}
.pick.e .av { background: linear-gradient(135deg, var(--am), var(--rd)); }
.pick b { display: block; font-size: 12.5px; color: #fff; font-weight: 600; line-height: 1.2; }
.pick span { display: block; font-family: var(--f-mono); font-size: 9px; letter-spacing: .6px; color: var(--tx-3); margin-top: 3px; }

.paytabs { display: flex; gap: 6px; margin-bottom: 14px; }
.paytab { font-family: var(--f-mono); font-size: 10px; letter-spacing: 1.2px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); color: var(--tx-2); }
.paytab.on { color: #05070E; background: var(--cy); border-color: var(--cy); font-weight: 700; }
.pay { display: grid; grid-template-columns: 1fr 268px; gap: 12px; align-items: start; }
.resumen .kv.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.resumen .kv.total b { color: var(--cy); font-size: 16px; }

.proc { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 46px 20px; }
.proc-ring { width: 74px; height: 74px; border-radius: 50%; border: 2px solid rgba(43,227,245,.15); position: relative; }
.proc-ring i { position: absolute; inset: -2px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--cy); animation: mxSweep .9s linear infinite; }
.proc-log { font-family: var(--f-mono); font-size: 11.5px; line-height: 2; color: var(--tx-3); text-align: left; min-width: min(320px, 80vw); }
.proc-log b { color: var(--gr); font-weight: 500; }

.issued { display: grid; grid-template-columns: 340px 1fr; gap: 14px; align-items: start; }
.pass-card {
  padding: 22px; border-radius: 17px; text-align: center;
  border: 1px solid rgba(245,183,61,.35);
  background: linear-gradient(155deg, rgba(30,25,13,.85), rgba(8,13,24,.92));
  box-shadow: 0 26px 60px -30px rgba(245,183,61,.5);
  animation: mxFade .5s ease;
}
.pc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.pc-brand { font-family: var(--f-disp); font-weight: 700; font-size: 14px; letter-spacing: 2px; color: #fff; }
.pc-oficial { font-family: var(--f-mono); font-size: 8.5px; letter-spacing: 1.4px; color: var(--am); border: 1px solid rgba(245,183,61,.35); border-radius: 20px; padding: 3px 9px; }
.pc-seal { display: block; margin: 0 auto; border-radius: 12px; background: #fff; padding: 10px; width: 168px; height: 168px; }
.pc-code { font-family: var(--f-mono); font-weight: 700; font-size: 25px; letter-spacing: 3px; color: var(--am); margin-top: 16px; text-shadow: 0 0 18px rgba(245,194,75,.4); }
.pc-owner { font-size: 12.5px; color: var(--tx-2); margin-top: 5px; }
.pc-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.pc-meta div { padding: 8px 6px; border-radius: 8px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.pc-meta span { display: block; font-family: var(--f-mono); font-size: 7.5px; letter-spacing: 1px; color: var(--tx-3); }
.pc-meta b { display: block; font-size: 11px; color: #fff; margin-top: 4px; line-height: 1.25; }
.pc-foot { font-family: var(--f-mono); font-size: 8.5px; letter-spacing: .7px; color: var(--tx-3); margin-top: 14px; }
.issued-side { display: flex; flex-direction: column; gap: 12px; }
.verify { display: flex; gap: 8px; }
.verify input { flex: 1; min-width: 0; padding: 11px 13px; border-radius: 9px; border: 1px solid var(--line-2); background: rgba(5,7,14,.6); color: #fff; font-family: var(--f-mono); font-size: 13px; letter-spacing: 1.5px; outline: none; }
.verify-out { margin-top: 10px; font-size: 12.5px; line-height: 1.5; color: var(--tx-2); min-height: 18px; }
.verify-out.ok { color: var(--gr); }
.verify-out.bad { color: #FF8A98; }

.rank { display: flex; flex-direction: column; gap: 9px; }
.rank-row { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; align-items: center; font-size: 12px; }
.rank-row .pos { font-family: var(--f-mono); font-size: 10px; color: var(--tx-3); }
.rank-row .nm { color: var(--tx-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row.me .nm { color: #fff; font-weight: 600; }
.rank-row .vl { font-family: var(--f-mono); font-size: 11px; color: var(--cy); }
.rank-bar { grid-column: 2 / -1; height: 4px; border-radius: 3px; background: rgba(255,255,255,.06); overflow: hidden; }
.rank-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--cy), var(--am)); transition: width .8s ease; }
.mypass { display: flex; flex-direction: column; gap: 7px; }
.mypass .empty { font-size: 12px; color: var(--tx-3); }
.mp {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 8px 11px; border-radius: 8px; border: 1px solid var(--line); background: rgba(13,20,33,.5);
}
.mp b { font-family: var(--f-mono); font-size: 11.5px; color: var(--am); }
.mp span { font-size: 10.5px; color: var(--tx-3); }

@media (max-width: 1180px) {
  .pass-wrap { grid-template-columns: 1fr; }
  .pay { grid-template-columns: 1fr; }
  .issued { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .form2 { grid-template-columns: 1fr; }
  .steps li { min-width: 0; flex: 1 1 46%; font-size: 9px; padding: 8px 9px; }
  .pass-card { padding: 16px; }
}
/* El acceso a la tienda es un enlace, no un módulo del tablero */
.rail-link{text-decoration:none}
