/* ═══════════════════════════════════════════════════════════
   Melocotones en busca de LLMs — sistema de diseño SOC
   ═══════════════════════════════════════════════════════════ */

:root {
  /* marca */
  --peach: #ff8f43;
  --peach-br: #ffb067;
  --peach-dp: #e06a26;
  --peach-glow: rgba(255,143,67,.45);

  /* superficies (oscuro, profundo, cálido) */
  --bg-0: #0b0d11;
  --bg-1: #0f1217;
  --surface: #141820;
  --surface-2: #1a1f29;
  --surface-3: #212734;
  --hair: #262d3a;      /* líneas finas */
  --hair-soft: #1d222c;

  /* tinta */
  --ink: #eef1f6;
  --ink-2: #aeb6c6;
  --ink-3: #6f7889;

  /* semánticos */
  --real: #35d49a;
  --real-bg: rgba(53,212,154,.1);
  --clasico: #f2b23e;
  --clasico-bg: rgba(242,178,62,.1);
  --ia: #ff5d73;
  --ia-bg: rgba(255,93,115,.1);
  --ia-glow: rgba(255,93,115,.4);

  --r-sm: 10px; --r: 16px; --r-lg: 22px;
  --ff: 'Sora', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --maxw: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff);
  background: var(--bg-0);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--mono); }

/* textura de grano + viñeta para profundidad (nada de planos sosos) */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.vignette {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 70% -5%, rgba(255,143,67,.07), transparent 55%),
    radial-gradient(900px 600px at 10% 100%, rgba(53,212,154,.04), transparent 55%);
}
main { position: relative; z-index: 2; }

/* ─── topbar ─── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,13,17,.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--hair-soft);
}
.topbar-in {
  max-width: var(--maxw); margin: 0 auto; padding: 13px 24px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.02rem; letter-spacing: -.01em; }
.brand-mark { width: 30px; height: 30px; display: inline-block; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-dim { color: var(--ink-3); font-weight: 400; }
.topnav { display: flex; gap: 22px; margin-left: 8px; font-size: .9rem; color: var(--ink-2); }
.topnav a { transition: color .18s; position: relative; }
.topnav a:hover { color: var(--ink); }
.topnav a::after { content:''; position:absolute; left:0; bottom:-4px; width:0; height:1.5px; background: var(--peach); transition: width .22s; }
.topnav a:hover::after { width: 100%; }
.status-chip {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .78rem; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--hair);
  padding: 6px 12px; border-radius: 100px;
}
.status-chip .s-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--real); box-shadow: 0 0 8px var(--real); animation: breathe 2.4s infinite; }

/* ─── layout de sección ─── */
section { max-width: var(--maxw); margin: 0 auto; padding: 78px 24px 0; }
.panel-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 30px; }
.panel-head .idx { font-family: var(--mono); font-size: .85rem; color: var(--peach); font-weight: 600; }
.panel-head h2 { font-size: 1.7rem; font-weight: 600; letter-spacing: -.02em; }
.panel-head::after { content:''; flex:1; height:1px; background: linear-gradient(90deg, var(--hair), transparent); align-self:center; }

/* ─── hero ─── */
.hero { padding-top: 60px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: center; }
.kicker { font-family: var(--mono); font-size: .76rem; letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; margin-bottom: 22px; animation: rise .7s both; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); font-weight: 600; line-height: 1.08; letter-spacing: -.03em; animation: rise .8s .05s both; }
.hero h1 .accent { background: linear-gradient(100deg, var(--peach-br), var(--peach-dp)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 22px; max-width: 540px; color: var(--ink-2); font-size: 1.06rem; font-weight: 300; animation: rise .8s .12s both; }
.hero-cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; animation: rise .8s .2s both; }
.btn { padding: 12px 24px; border-radius: 100px; font-family: var(--ff); font-weight: 500; font-size: .94rem; cursor: pointer; transition: all .2s; border: 1px solid transparent; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary { background: linear-gradient(120deg, var(--peach), var(--peach-dp)); color: #1a0e05; box-shadow: 0 6px 22px -6px var(--peach-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px var(--peach-glow); }
.btn-ghost { background: transparent; border-color: var(--hair); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--peach); color: var(--ink); }

/* escena de la mascota en el hero */
.hero-stage { position: relative; display: grid; place-items: center; min-height: 320px; animation: rise 1s .15s both; }
.stage-mascot { width: 230px; z-index: 2; filter: drop-shadow(0 20px 40px rgba(0,0,0,.5)); animation: bob 5s ease-in-out infinite; }
.stage-mascot svg { width: 100%; height: auto; }
.stage-ring { position: absolute; width: 300px; height: 300px; border-radius: 50%; border: 1px solid var(--hair); z-index: 1; }
.stage-ring::before, .stage-ring::after { content:''; position:absolute; inset:-30px; border-radius:50%; border:1px solid var(--hair-soft); }
.stage-ring::after { inset:-70px; border-style: dashed; animation: spin 40s linear infinite; }

/* ─── métricas ─── */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: var(--r); overflow: hidden; }
.metric { background: var(--surface); padding: 26px 24px; position: relative; transition: background .2s; }
.metric:hover { background: var(--surface-2); }
.metric .m-top { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--ink-3); margin-bottom: 14px; }
.metric .m-num { font-size: 3rem; font-weight: 600; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.metric .m-unit { font-size: .84rem; color: var(--ink-3); margin-top: 8px; }
.metric.real .m-num { color: var(--real); } .metric.real .k { background: var(--real); }
.metric.clasico .m-num { color: var(--clasico); } .metric.clasico .k { background: var(--clasico); }
.metric.ia .m-num { color: var(--ia); } .metric.ia .k { background: var(--ia); box-shadow: 0 0 12px var(--ia-glow); }
.metric.ia { background: linear-gradient(160deg, rgba(255,93,115,.07), var(--surface)); }
.metric.total .m-num { color: var(--peach); } .metric.total .k { background: var(--peach); }
.k { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.metric .spark { position:absolute; right:20px; bottom:18px; opacity:.5; }

/* ─── impostor ─── */
.imp-card { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-lg); overflow: hidden; }
.imp-top { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 26px 30px; border-bottom: 1px solid var(--hair); background: linear-gradient(120deg, rgba(255,93,115,.08), transparent); }
.imp-mascot { width: 74px; }
.imp-mascot svg { width: 100%; }
.imp-port .p-label { font-family: var(--mono); font-size: .76rem; color: var(--ink-3); letter-spacing: .1em; }
.imp-port .p-num { font-family: var(--mono); font-size: 1.9rem; font-weight: 600; color: var(--ink); }
.imp-port .p-svc { color: var(--ink-2); font-size: .9rem; }
.tag-ia { font-family: var(--mono); font-size: .74rem; font-weight: 600; letter-spacing: .06em; color: var(--ia); background: var(--ia-bg); border: 1px solid rgba(255,93,115,.3); padding: 7px 14px; border-radius: 100px; white-space: nowrap; }
.imp-body { padding: 28px 30px; }
.imp-body > p { color: var(--ink-2); max-width: 760px; font-weight: 300; }
.imp-body > p b { color: var(--ink); font-weight: 500; }
.imp-body code { font-family: var(--mono); font-size: .88em; background: var(--surface-3); padding: 2px 7px; border-radius: 5px; color: var(--peach-br); }
.convo { margin-top: 24px; display: grid; gap: 10px; }
.turn { border-radius: var(--r-sm); padding: 14px 18px; font-size: .92rem; border: 1px solid var(--hair); }
.turn.q { background: var(--surface-2); }
.turn.q .who { font-family: var(--mono); font-size: .76rem; color: var(--peach); margin-bottom: 5px; }
.turn.a { background: var(--ia-bg); border-color: rgba(255,93,115,.22); }
.turn.a .who { font-family: var(--mono); font-size: .76rem; color: var(--ia); margin-bottom: 5px; }
.turn .txt { color: var(--ink); line-height: 1.6; font-weight: 300; }
.halluc { color: var(--ia); font-weight: 500; border-bottom: 1px dashed var(--ia); padding: 0 2px; }

/* ─── escáner ─── */
.scan-card { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-lg); overflow: hidden; }
.scan-grid { display: grid; grid-template-columns: 300px 1fr; }
.scan-left { padding: 28px; border-right: 1px solid var(--hair); background: var(--bg-1); }
.scan-left h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.scan-left p { color: var(--ink-3); font-size: .85rem; margin-bottom: 20px; font-weight: 300; }
.scan-inputs { display: grid; gap: 12px; }
.field label { font-family: var(--mono); font-size: .72rem; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.field input, .field select { width: 100%; background: var(--surface-2); border: 1px solid var(--hair); border-radius: var(--r-sm); padding: 11px 14px; color: var(--ink); font-family: var(--mono); font-size: .92rem; transition: border .18s; }
.field input:focus, .field select:focus { outline: none; border-color: var(--peach); }
.scan-run { margin-top: 6px; width: 100%; justify-content: center; }
.backend-state { margin-top: 16px; font-family: var(--mono); font-size: .74rem; color: var(--ink-3); display: flex; align-items: center; gap: 7px; }
.backend-state .bdot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.backend-state.on .bdot { background: var(--real); box-shadow: 0 0 8px var(--real); }

/* pantalla CRT donde investiga el melocotón */
.scan-right { padding: 24px; display: grid; grid-template-columns: 1fr 120px; gap: 18px; align-items: end; min-height: 300px; }
.crt { background: #06090d; border: 1px solid var(--hair); border-radius: 12px; padding: 18px; font-family: var(--mono); font-size: .82rem; min-height: 250px; position: relative; overflow: hidden; }
.crt::before { content:''; position:absolute; inset:0; pointer-events:none; background: repeating-linear-gradient(0deg, rgba(255,255,255,.015) 0 1px, transparent 1px 3px); }
.crt::after { content:''; position:absolute; inset:0; pointer-events:none; background: radial-gradient(120% 120% at 50% 0%, transparent 60%, rgba(0,0,0,.4)); }
.crt-head { color: var(--ink-3); border-bottom: 1px solid var(--hair-soft); padding-bottom: 8px; margin-bottom: 10px; display: flex; gap: 8px; }
.crt-head .dot { width: 9px; height: 9px; border-radius: 50%; }
.crt-head .d1 { background:#ff5f56 } .crt-head .d2 { background:#ffbd2e } .crt-head .d3 { background:#27c93f }
.crt-body { display: grid; gap: 4px; }
.crt-line { opacity: 0; animation: typein .3s forwards; color: var(--ink-2); }
.crt-line .ok { color: var(--real); } .crt-line .wk { color: var(--clasico); } .crt-line .er { color: var(--ia); }
.crt-line .pk { color: var(--peach); }
.crt-cursor { display:inline-block; width:8px; height:14px; background: var(--peach); animation: blink 1s steps(2) infinite; vertical-align: middle; }
.scan-mascot { width: 110px; align-self: end; }
.scan-mascot svg { width: 100%; }
.scan-mascot.looking { animation: lean 2.5s ease-in-out infinite; }
.verdict-badge { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 100px; font-size: .86rem; font-weight: 600; }

/* ─── tabla de servicios ─── */
.svc-controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--hair); border-radius: 100px; padding: 4px; }
.seg-btn { background: transparent; border: none; color: var(--ink-3); font-family: var(--ff); font-size: .86rem; font-weight: 500; padding: 8px 15px; border-radius: 100px; cursor: pointer; transition: all .18s; display: inline-flex; align-items: center; gap: 7px; }
.seg-btn:hover { color: var(--ink-2); }
.seg-btn.active { background: var(--surface-3); color: var(--ink); }
.seg-btn i.k { width: 7px; height: 7px; }
.seg-btn .k1 { background: var(--real); } .seg-btn .k2 { background: var(--clasico); } .seg-btn .k3 { background: var(--ia); }
.seg-n { font-family: var(--mono); font-size: .76rem; color: var(--ink-3); }
.svc-search { margin-left: auto; display: flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--hair); border-radius: 100px; padding: 9px 16px; color: var(--ink-3); transition: border .18s; }
.svc-search:focus-within { border-color: var(--peach); color: var(--ink-2); }
.svc-search input { background: transparent; border: none; color: var(--ink); font-family: var(--ff); font-size: .88rem; width: 200px; }
.svc-search input:focus { outline: none; }

.svc-table { border: 1px solid var(--hair); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.srow { display: grid; grid-template-columns: 92px 1fr 160px 150px 34px; align-items: center; gap: 16px; padding: 0 22px; border-bottom: 1px solid var(--hair-soft); cursor: pointer; transition: background .15s; }
.srow:last-child { border-bottom: none; }
.srow:hover { background: var(--surface-2); }
.srow .cell { padding: 15px 0; }
.srow.hrow { background: var(--bg-1); cursor: default; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.srow.hrow:hover { background: var(--bg-1); }
.s-port { font-family: var(--mono); font-weight: 600; font-size: 1.02rem; }
.s-svc .n { font-weight: 500; }
.s-svc .d { color: var(--ink-3); font-size: .8rem; font-weight: 300; }
.s-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 100px; font-size: .79rem; font-weight: 600; }
.s-pill .pdot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.s-pill.c1 { background: var(--real-bg); color: var(--real); }
.s-pill.c2 { background: var(--clasico-bg); color: var(--clasico); }
.s-pill.c3 { background: var(--ia-bg); color: var(--ia); box-shadow: 0 0 14px var(--ia-glow); }
.s-pill.c3 .pdot { animation: breathe 1.4s infinite; }
.s-conf { font-family: var(--mono); font-size: .78rem; color: var(--ink-3); }
.s-conf .cbar { height: 4px; border-radius: 2px; background: var(--surface-3); margin-top: 6px; overflow: hidden; }
.s-conf .cfill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--peach-dp), var(--peach)); width: 0; transition: width .7s cubic-bezier(.2,.8,.2,1); }
.s-chev { color: var(--ink-3); transition: transform .22s; text-align: center; font-family: var(--mono); }
.srow.open .s-chev { transform: rotate(90deg); color: var(--peach); }
.sdetail { grid-column: 1/-1; max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.srow.open + .sdetail { max-height: 400px; }
.sdetail-in { padding: 2px 0 20px; }
.ev { background: var(--bg-1); border: 1px solid var(--hair); border-left: 2px solid var(--peach); border-radius: var(--r-sm); padding: 16px 18px; }
.ev .ev-l { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; color: var(--peach); margin-bottom: 8px; }
.ev .ev-t { color: var(--ink); line-height: 1.6; font-size: .92rem; font-weight: 300; }
.ev .ev-m { margin-top: 10px; font-family: var(--mono); font-size: .74rem; color: var(--ink-3); }

/* ─── método ─── */
.method-lead { color: var(--ink-2); max-width: 680px; font-weight: 300; margin-bottom: 28px; margin-top: -14px; }
.method-list { display: grid; gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: var(--r); overflow: hidden; }
.mstep { background: var(--surface); padding: 26px 28px; display: grid; grid-template-columns: 50px 1fr; gap: 22px; align-items: start; transition: background .2s; }
.mstep:hover { background: var(--surface-2); }
.mstep .m-i { font-family: var(--mono); font-size: 1.5rem; font-weight: 600; color: var(--peach); opacity: .5; }
.mstep h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: 6px; }
.mstep p { color: var(--ink-2); font-size: .92rem; font-weight: 300; max-width: 740px; }

/* ─── footer ─── */
.foot { border-top: 1px solid var(--hair-soft); margin-top: 90px; }
.foot-in { max-width: var(--maxw); margin: 0 auto; padding: 40px 24px; display: flex; align-items: center; gap: 20px; }
.foot-mascot { width: 48px; } .foot-mascot svg { width: 100%; }
.foot-title { font-weight: 600; }
.foot-sub { color: var(--ink-3); font-size: .85rem; margin-top: 3px; }
.foot-tool { color: var(--ink-3); font-size: .82rem; margin-top: 8px; }
.foot-tool code { font-family: var(--mono); background: var(--surface); border: 1px solid var(--hair); padding: 2px 8px; border-radius: 5px; color: var(--peach); font-size: .8rem; }

/* ─── animaciones ─── */
@keyframes rise { from { opacity:0; transform: translateY(20px); } to { opacity:1; transform:none; } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%,100% { opacity:1; } 50% { opacity:.3; } }
@keyframes blink { 0%,50% { opacity:1; } 51%,100% { opacity:0; } }
@keyframes typein { from { opacity:0; transform: translateX(-6px); } to { opacity:1; transform:none; } }
@keyframes lean { 0%,100% { transform: rotate(0) translateX(0); } 50% { transform: rotate(-5deg) translateX(-6px); } }
.reveal { opacity: 0; }
.reveal.in { animation: rise .7s both; }

/* ─── terminal reproducible de la sesión SSH ─── */
.replay-wrap { margin-top: 20px; background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-lg); overflow: hidden; }
.replay-bar { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--hair); background: var(--bg-1); }
.replay-bar .lights { display: flex; gap: 7px; }
.replay-bar .lights span { width: 11px; height: 11px; border-radius: 50%; }
.replay-bar .l1 { background:#ff5f56 } .replay-bar .l2 { background:#ffbd2e } .replay-bar .l3 { background:#27c93f }
.replay-bar .title { font-family: var(--mono); font-size: .8rem; color: var(--ink-3); }
.replay-bar .title b { color: var(--ink-2); font-weight: 500; }
.replay-bar .rp-btn { margin-left: auto; background: var(--surface-3); border: 1px solid var(--hair); color: var(--ink); font-family: var(--ff); font-size: .82rem; font-weight: 500; padding: 7px 16px; border-radius: 100px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: all .18s; }
.replay-bar .rp-btn:hover { border-color: var(--peach); color: var(--peach-br); }
.replay-bar .rp-btn:disabled { opacity: .5; cursor: default; }

.replay-term { font-family: var(--mono); font-size: .86rem; line-height: 1.7; padding: 22px 24px; min-height: 340px; max-height: 480px; overflow-y: auto; background:
  linear-gradient(180deg, #080b0f, #06090d); position: relative; }
.replay-term::-webkit-scrollbar { width: 8px; } .replay-term::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 4px; }
.rt-line { white-space: pre-wrap; word-break: break-word; }
.rt-sys { color: var(--ink-3); }
.rt-banner { color: var(--peach); opacity: .85; }
.rt-prompt { color: var(--real); }
.rt-cmd { color: var(--ink); }
.rt-out { color: var(--ink-2); }
.rt-ai { color: #e7d4ff; }                     /* respuestas IA en lila tenue */
.rt-ai-label { color: var(--ia); font-size: .72rem; letter-spacing:.05em; }
.rt-shell-err { color: var(--clasico); }
.rt-note { color: var(--ink-3); font-style: italic; font-size: .8rem; padding-left: 2px; }
.rt-halluc { color: var(--ia); border-bottom: 1px dashed var(--ia); }
.rt-thinking { color: var(--ia); }
.rt-cursor { display:inline-block; width:8px; height:15px; background: var(--peach); vertical-align:-2px; margin-left:2px; animation: blink 1s steps(2) infinite; }
.rt-tag { display:inline-block; font-size:.68rem; letter-spacing:.06em; padding:1px 8px; border-radius:100px; margin-left:8px; vertical-align:1px; }
.rt-tag.ai { background: var(--ia-bg); color: var(--ia); }
.rt-tag.shell { background: var(--clasico-bg); color: var(--clasico); }

/* ─── análisis completo end-to-end ─── */
.full-card { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-lg); overflow: hidden; }
.full-head { padding: 26px 30px; border-bottom: 1px solid var(--hair); display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(255,143,67,.06), transparent); }
.full-head .fh-txt { flex: 1; min-width: 240px; }
.full-head h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 4px; }
.full-head p { color: var(--ink-3); font-size: .88rem; font-weight: 300; }
.full-run { white-space: nowrap; }
.full-stage { display: grid; grid-template-columns: 1fr 300px; gap: 0; }
.full-console { background: #06090d; font-family: var(--mono); font-size: .82rem; padding: 20px 22px;
  min-height: 420px; max-height: 560px; overflow-y: auto; position: relative; border-right: 1px solid var(--hair); }
.full-console::before { content:''; position:absolute; inset:0; pointer-events:none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px); }
.fc-phase { color: var(--peach); font-weight: 600; margin: 14px 0 8px; display: flex; align-items: center; gap: 8px;
  opacity: 0; animation: typein .4s forwards; }
.fc-phase:first-child { margin-top: 0; }
.fc-line { opacity: 0; animation: typein .25s forwards; color: var(--ink-2); padding: 2px 0; display: flex; gap: 10px; align-items: baseline; }
.fc-line .port { color: var(--ink); font-weight: 600; min-width: 54px; }
.fc-found { color: var(--real); }
.fc-nmap { color: var(--ink-3); }
.fc-v1 { color: var(--real); } .fc-v2 { color: var(--clasico); } .fc-v3 { color: var(--ia); }
.fc-busy { color: var(--ink-3); font-style: italic; }
.fc-cursor { display:inline-block; width:8px; height:14px; background: var(--peach); animation: blink 1s steps(2) infinite; vertical-align:-2px; }

/* panel lateral con el recuento en vivo */
.full-side { padding: 24px; display: flex; flex-direction: column; gap: 14px; background: var(--bg-1); }
.full-side h4 { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.live-count { display: grid; gap: 10px; }
.lc-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--hair); }
.lc-row .lc-lbl { display: flex; align-items: center; gap: 9px; font-size: .86rem; }
.lc-row .lc-lbl i { width: 9px; height: 9px; border-radius: 3px; }
.lc-row.r1 i { background: var(--real); } .lc-row.r2 i { background: var(--clasico); } .lc-row.r3 i { background: var(--ia); box-shadow: 0 0 10px var(--ia-glow); }
.lc-row .lc-n { font-family: var(--mono); font-weight: 600; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.lc-row.r1 .lc-n { color: var(--real); } .lc-row.r2 .lc-n { color: var(--clasico); } .lc-row.r3 .lc-n { color: var(--ia); }
.full-progress { margin-top: auto; }
.full-progress .pbar { height: 6px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.full-progress .pfill { height: 100%; background: linear-gradient(90deg, var(--peach-dp), var(--peach)); width: 0; transition: width .4s; }
.full-progress .ptxt { font-family: var(--mono); font-size: .74rem; color: var(--ink-3); margin-top: 8px; }
.full-mascot { position: absolute; width: 56px; right: 14px; bottom: 14px; z-index: 5; pointer-events: none; opacity: 0; transition: opacity .3s; }
.full-mascot.active { opacity: 1; animation: bob 3s ease-in-out infinite; }
.full-mascot svg { width: 100%; }

@media (max-width: 860px) {
  .full-stage { grid-template-columns: 1fr; }
  .full-console { border-right: none; border-bottom: 1px solid var(--hair); }
}

/* ─── mascota animada: saludo del brazo (hero) ─── */
#wave-arm { opacity: 0; }
.stage-mascot.saludando #wave-arm { opacity: 1; animation: saludar 1.1s ease-in-out; }
@keyframes saludar {
  0%   { transform: rotate(0deg); }
  15%  { transform: rotate(-22deg); }
  30%  { transform: rotate(8deg); }
  45%  { transform: rotate(-18deg); }
  60%  { transform: rotate(6deg); }
  75%  { transform: rotate(-12deg); }
  100% { transform: rotate(0deg); }
}

/* ─── bocadillos del hero ─── */
.hero-stage { overflow: visible; }
.bubble {
  position: absolute; top: 8%; left: 50%;
  background: var(--surface-2); border: 1px solid var(--hair);
  color: var(--ink); font-size: .86rem; font-weight: 500;
  padding: 10px 16px; border-radius: 14px 14px 14px 4px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.6);
  white-space: nowrap; pointer-events: none; z-index: 5;
  opacity: 0; transform: translate(-30%, 10px) scale(.9);
}
.bubble.show { animation: bubblePop 3.4s ease forwards; }
.bubble .b-ico { color: var(--peach); margin-right: 6px; }
.bubble::after {
  content:''; position:absolute; bottom:-7px; left:14px;
  width:12px; height:12px; background: var(--surface-2);
  border-right:1px solid var(--hair); border-bottom:1px solid var(--hair);
  transform: rotate(45deg);
}
@keyframes bubblePop {
  0%   { opacity:0; transform: translate(-30%, 10px) scale(.85); }
  12%  { opacity:1; transform: translate(-30%, 0) scale(1); }
  85%  { opacity:1; transform: translate(-30%, 0) scale(1); }
  100% { opacity:0; transform: translate(-30%, -8px) scale(.9); }
}

/* ─── mascota voladora del escáner ─── */
.fly-mascot {
  position: absolute; width: 70px; z-index: 20; pointer-events: none;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.5));
  transition: left .9s cubic-bezier(.34,1.3,.5,1), top .9s cubic-bezier(.34,1.3,.5,1), transform .5s ease;
  opacity: 0;
}
.fly-mascot svg { width: 100%; }
.fly-mascot.active { opacity: 1; }
.fly-mascot.flying { animation: wobble 1.4s ease-in-out infinite; }
.fly-mascot.facing-code { transform: scaleX(-1) rotate(-6deg); }   /* girado mirando la pantalla */
@keyframes wobble { 0%,100% { rotate: -3deg; } 50% { rotate: 3deg; } }
.scan-right { position: relative; }
.crt { position: relative; }
.crt-line.focus-line { background: linear-gradient(90deg, rgba(255,143,67,.12), transparent); margin: 0 -8px; padding: 0 8px; border-radius: 4px; }

/* la mascota estática del escáner se oculta cuando vuela la dinámica */
.scan-mascot.hidden { opacity: 0; }

/* ─── responsive ─── */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-stage { min-height: 240px; order: -1; }
  .stage-mascot { width: 170px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .scan-grid { grid-template-columns: 1fr; }
  .scan-left { border-right: none; border-bottom: 1px solid var(--hair); }
  .scan-right { grid-template-columns: 1fr; }
  .scan-mascot { display: none; }
  .topnav { display: none; }
  .srow { grid-template-columns: 64px 1fr 120px; }
  .srow .s-conf, .srow .s-chev { display: none; }
  .srow.hrow { grid-template-columns: 64px 1fr 120px; }
  .svc-search { margin-left: 0; width: 100%; }
  .svc-search input { width: 100%; }
}
