/* =====================================================================
   v3 · MENÚ DE CARGA, OJOS, TABLERO MODERNO, HORÓMETRO, ÍCONOS CIRCULARES
   ===================================================================== */
/* ---------- Menú de carga / selección de maquinaria ---------- */
#loader { background: radial-gradient(ellipse at 50% 40%, #2b2e33 0%, #16181a 70%); overflow-y: auto; padding: 24px 16px; }
#loader.ready { background: radial-gradient(ellipse at 50% 40%, rgba(43,46,51,.78) 0%, rgba(14,15,17,.93) 70%); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.start-wrap { width: min(1040px, 100%); margin: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.start-head { display: flex; align-items: center; gap: 12px; width: 100%; font-family: var(--mono); font-size: 11px; letter-spacing: .3em; color: var(--accent); }
.sh-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line)); }
.sh-line:last-child { background: linear-gradient(270deg, transparent, var(--line)); }
.start-title { margin: 0 0 6px; font-family: var(--disp); font-weight: 700; font-size: clamp(24px, 3.4vw, 36px); letter-spacing: .04em; color: var(--text); text-transform: uppercase; }
.machine-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 12px; width: 100%; }
.mcard { position: relative; display: flex; flex-direction: column; text-align: left; padding: 0; color: var(--text); font-family: var(--disp);
  background: rgba(22,24,27,.92); border: 1px solid var(--line-faint); clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px)); }
.mcard.active { border-color: var(--line); cursor: pointer; transition: transform .2s, border-color .2s, box-shadow .2s; }
.mcard.active:not(:disabled):hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.mcard.active:disabled { cursor: progress; }
.mcard.soon { opacity: .5; filter: grayscale(1); }
.mthumb { position: relative; height: 150px; background: #23262a; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line-faint); }
.mthumb svg { width: 70%; height: 70%; fill: #4a4e54; stroke: #4a4e54; stroke-linecap: round; }
.mthumb.photo { height: 210px; background: #fff url(assets/maquina-416e.jpg) 0% 51.5% / 192% auto no-repeat; }
.mtag { position: absolute; top: 10px; left: 10px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; padding: 3px 7px; background: #141517; color: var(--text-dim); border: 1px solid var(--line-faint); }
.mcard.active .mtag { background: var(--accent); color: #141517; border-color: var(--accent); }
.minfo { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.minfo small { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--text-faint); }
.minfo b { font-size: 22px; font-weight: 700; letter-spacing: .03em; }
.mcard.active .minfo b { font-size: 28px; color: var(--accent); }
.mspec { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 6px; }
.mspec span { font-family: var(--mono); font-size: 10px; color: var(--text-dim); border: 1px solid var(--line-faint); padding: 2px 6px; }
.mgo { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; background: var(--accent); color: #141517; font-weight: 700; font-size: 16px; letter-spacing: .1em; }
.mgo svg { width: 16px; height: 16px; fill: #141517; }
.mcard.active:disabled .mgo { background: rgba(255,196,20,.18); color: var(--accent); }
.spin { width: 14px; height: 14px; border: 2px solid rgba(255,196,20,.3); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.start-foot { display: flex; justify-content: space-between; width: 100%; font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; color: var(--text-faint); border-top: 1px dashed var(--line-faint); padding-top: 10px; gap: 10px; flex-wrap: wrap; }
body.menu #quick, body.menu #showUI { display: none; }
@media (max-width: 900px) { .machine-grid { grid-template-columns: 1fr 1fr; } .mcard.active { grid-column: span 2; } }

/* ---------- Botón ojo ---------- */
.eye-btn { flex: none; width: 24px; height: 24px; padding: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  background: none; border: 1px solid var(--line-faint); color: var(--text-dim); margin-left: 6px; }
.eye-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.eye-btn:hover { color: var(--accent); border-color: var(--line); }
.eye-btn.off { color: var(--accent); border-color: var(--accent); background: rgba(255,196,20,.1); }
.eye-btn.sm { width: 20px; height: 18px; margin-left: 4px; border-color: transparent; }
.eye-btn.sm svg { width: 13px; height: 13px; }
.panel-head.mini { padding: 7px 10px 6px 14px; }
#left.min { bottom: auto; }
#left.min .tabs, #left.min .tab-body { display: none !important; }
#left.collapsed .panel-head.mini { padding: 6px 0; justify-content: center; font-size: 0; gap: 0; }
#left.collapsed .panel-head.mini .idx, #left.collapsed .panel-head.mini .grow { display: none; }
#left.collapsed .panel-head.mini .eye-btn { margin: 0; }
#detail.min .body, #specs.min .body { display: none; }
#detail.min, #specs.min { max-height: none; }
.sec-title.sec-off { color: var(--accent); }
.sec-hidden { display: none !important; }
.joy-title { display: flex; align-items: center; gap: 4px; }
.joy-col.min .pad { display: none; }
body.min-left #joyWrap { left: 14px; }
body.min-left #compass { left: 18px; }
#dock .dock-eye { align-self: center; margin: 0 2px; width: 26px; height: 26px; }
#dock.min > :not(.dock-eye) { display: none; }
#dock.min { padding: 4px; }
#dock.min::before, #dock.min::after { display: none; }

/* ---------- Tipos visuales: íconos circulares simples ---------- */
.vm-grid { grid-template-columns: repeat(6, 1fr); gap: 2px; }
.vmbtn { background: none; border: 0; padding: 2px 0; gap: 4px; font-size: 10.5px; font-weight: 600; letter-spacing: .02em; }
.vmbtn i { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line-faint); background: rgba(255,255,255,.03); display: flex; align-items: center; justify-content: center; transition: .15s; }
.vmbtn i svg { width: 22px; height: 22px; fill: none; stroke-width: 1.6; }
.vmbtn:hover { border: 0; }
.vmbtn:hover i { border-color: var(--line); }
.vmbtn.on { background: none; }
.vmbtn.on i { border-color: var(--accent); background: rgba(255,196,20,.14); box-shadow: 0 0 0 3px rgba(255,196,20,.12); }
.vmbtn .f-acc { fill: var(--accent); stroke: none; } .vmbtn .hl { stroke: #fff; stroke-width: 1.4; opacity: .8; }
.vmbtn .f-ao { fill: #d8d6d1; stroke: none; filter: drop-shadow(1px 2px 1.5px rgba(0,0,0,.8)); }
.vmbtn .s-cy { stroke: #48bfff; } .vmbtn .f-sol { fill: #c99a1e; stroke: none; } .vmbtn .s-dk { stroke: #3a3d42; stroke-width: 1.2; }
.vmbtn .s-wt { stroke: #d5d9de; stroke-width: 1.3; } .vmbtn .s-acc { stroke: var(--accent); stroke-width: 1.1; }

/* ---------- Horómetro en la barra superior ---------- */
.hm-chip { display: flex; align-items: center; gap: 5px; padding: 2px 4px 2px 8px !important; color: var(--text-dim); }
.hm-chip .hg { width: 13px; height: 13px; stroke: var(--accent); fill: none; stroke-width: 1.6; }
.hm-chip b { font-family: var(--mono); color: #9fd36a !important; letter-spacing: .06em; }
.hm-btn { width: 22px; height: 22px; padding: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 50%;
  background: rgba(255,255,255,.05); border: 1px solid var(--line-faint); color: var(--text); flex: none; }
.hm-btn svg { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.hm-btn.hm-reset svg { fill: none; stroke: currentColor; stroke-width: 2.2; }
.hm-btn:hover { border-color: var(--accent); color: var(--accent); }
.hm-btn.hm-play { color: var(--ok); border-color: rgba(69,212,131,.5); }
.hm-btn.hm-play.on { color: var(--danger); border-color: rgba(255,90,79,.6); }
.hm-btn.pulse { animation: hmPulse .5s ease-in-out 4; }
@keyframes hmPulse { 50% { box-shadow: 0 0 0 6px rgba(69,212,131,.35); transform: scale(1.15); } }

/* ---------- Tablero moderno (pantalla LCD de la máquina) ---------- */
.joy-mid.dash { width: 292px; padding: 0; background: linear-gradient(180deg, #2a2d31, #17191c); border: 1px solid #3c4046; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06); overflow: hidden; }
.dash-head { display: flex; align-items: center; gap: 6px; padding: 6px 8px 5px 10px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em; color: var(--text-dim); border-bottom: 1px solid #33373c; }
.dash-head .grow { flex: 1; }
.dh-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.dash.min .dash-body { display: none; }
.dash-body { padding: 7px 8px 8px; }
.dash-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 6px; }
.dash-modes .jm { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 5px 4px; border-radius: 5px; font-size: 10px; letter-spacing: .1em;
  background: linear-gradient(180deg, #3a3e44, #24272b); border: 1px solid #484c53; color: var(--text-dim); box-shadow: 0 2px 0 #0e0f10; }
.dash-modes .jm svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.dash-modes .jm .led { width: 6px; height: 6px; border-radius: 50%; background: #3b3f44; }
.dash-modes .jm.on { color: var(--accent); background: linear-gradient(180deg, #2c2f33, #1c1e21); box-shadow: inset 0 2px 3px rgba(0,0,0,.6); border-color: rgba(255,196,20,.6); }
.dash-modes .jm.on .led { background: #45d483; box-shadow: 0 0 6px #45d483; }
.lcd { position: relative; border-radius: 6px; padding: 6px 8px 6px; background: radial-gradient(ellipse at 50% 0%, #10263a 0%, #070d14 75%); border: 2px solid #0a0b0c; box-shadow: inset 0 0 18px rgba(0,0,0,.9), 0 0 0 1px #45494f; font-family: var(--mono); color: #cfe8ff; }
.lcd::after { content: ""; position: absolute; inset: 0; border-radius: 4px; pointer-events: none; background: linear-gradient(160deg, rgba(255,255,255,.07), transparent 40%); }
.lcd-top { display: flex; justify-content: space-between; align-items: center; font-size: 9.5px; color: #7fa7c9; border-bottom: 1px solid rgba(127,167,201,.18); padding-bottom: 3px; }
.lcd-mode { color: var(--accent); letter-spacing: .12em; }
.lcd-gear { display: flex; align-items: baseline; gap: 2px; }
.lcd-gear b { font-size: 13px; color: #fff; } .lcd-gear i { font-style: normal; font-size: 10px; color: #7fa7c9; }
.lcd-gauges { display: grid; grid-template-columns: 1fr 70px 1fr; align-items: center; }
.lcd .g { position: relative; text-align: center; }
.lcd .g svg { width: 100%; display: block; }
.lcd .g .arc-bg { fill: none; stroke: rgba(127,167,201,.15); stroke-width: 7; stroke-linecap: round; }
.lcd .g .arc { fill: none; stroke: #45d483; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray .12s linear; }
.lcd .g .arc.cy { stroke: #48bfff; } .lcd .g .arc.red { stroke: rgba(255,90,79,.55); stroke-width: 3; stroke-linecap: butt; }
.lcd .g .arc.hot { stroke: var(--danger); }
.lcd .g b { position: absolute; left: 0; right: 0; top: 34%; font-size: 17px; color: #fff; font-weight: 500; }
.lcd .g small { position: absolute; left: 0; right: 0; bottom: 2px; font-size: 8px; letter-spacing: .14em; color: #7fa7c9; }
.lcd-center { text-align: center; font-size: 8px; letter-spacing: .1em; color: #7fa7c9; line-height: 1.25; }
.eng { width: 30px; height: 30px; margin: 0 auto 2px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(127,167,201,.3); }
.eng svg { width: 18px; height: 18px; fill: #3b4d5e; }
.eng.on { border-color: #45d483; box-shadow: 0 0 8px rgba(69,212,131,.5); } .eng.on svg { fill: #45d483; }
.lcd-bars { display: grid; grid-template-columns: 1fr 1fr 70px; gap: 6px; align-items: center; margin-top: 2px; }
.lb { display: grid; grid-template-columns: 14px 1fr; align-items: center; column-gap: 4px; row-gap: 1px; }
.lb svg { width: 13px; height: 13px; fill: none; stroke: #7fa7c9; stroke-width: 1.6; grid-row: span 2; }
.lb .segbar { grid-column: 2; }
.lb small { font-size: 7.5px; color: #5d7a94; grid-column: 2; }
.lb small + small { margin-top: -10px; justify-self: end; }
.segbar { display: grid; grid-template-columns: repeat(10, 1fr); gap: 1.5px; height: 7px; }
.segbar i { background: rgba(127,167,201,.14); border-radius: 1px; }
.segbar i.on { background: #45d483; } .segbar i.lo { background: #e8a21b; } .segbar i.hi { background: var(--danger); }
.lb.flow { display: block; text-align: right; border-left: 1px solid rgba(127,167,201,.18); padding-left: 4px; }
.lb.flow small { display: block; font-size: 7.5px; letter-spacing: .12em; margin: 0; }
.lb.flow b { font-size: 14px; color: #48bfff; font-weight: 500; } .lb.flow i { font-style: normal; font-size: 8px; color: #5d7a94; margin-left: 2px; }
.lcd-icons { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; margin: 6px 0 5px; }
.lcd-icons i { height: 18px; border-radius: 3px; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 8.5px; font-weight: 700; color: #26323d; background: rgba(127,167,201,.06); }
.lcd-icons i svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lcd-icons i.lit { color: #ff5a4f; background: rgba(255,90,79,.12); text-shadow: 0 0 6px rgba(255,90,79,.7); }
.lcd-icons i[data-ic="light"].lit, .lcd-icons i[data-ic="awd"].lit { color: #45d483; background: rgba(69,212,131,.12); }
.lcd-icons i[data-ic="beacon"].lit, .lcd-icons i[data-ic="glow"].lit { color: #ffb21a; background: rgba(255,178,26,.12); }
.hm-row { display: flex; align-items: center; gap: 5px; padding: 4px 6px; border-radius: 4px; background: #0a1620; border: 1px solid rgba(127,167,201,.2); }
.hm-row .hg { width: 14px; height: 14px; stroke: #9fd36a; fill: none; stroke-width: 1.6; }
.hm-row b { font-size: 16px; color: #9fd36a; letter-spacing: .08em; font-weight: 500; text-shadow: 0 0 6px rgba(159,211,106,.4); }
.hm-row > i { font-style: normal; font-size: 10px; color: #6f8f4c; }
.hm-row .sess { margin-left: auto; font-size: 9.5px; color: #7fa7c9; }
.dash .holds { margin-top: 7px; }
.dash .hold-row { grid-template-columns: 70px 1fr 1fr; font-size: 11px; }
.dash .hb { border-radius: 4px; background: linear-gradient(180deg, #34383d, #222528); border-color: #43474d; box-shadow: 0 2px 0 #0e0f10; }
.dash .hb.on { box-shadow: inset 0 2px 3px rgba(0,0,0,.5); }
@media (max-width: 1100px) { .joy-mid.dash { width: 262px; } }
