/* =========================================================
   CyberShield · sections.css
   Estilos de cada sección de la página.
   ========================================================= */

/* ================= HERO ================= */

.hero { min-height: 100svh; display: flex; align-items: center; padding-top: 110px; }
.hero-grid { width: 100%; display: grid; grid-template-columns: 1fr 1.05fr; gap: 24px; align-items: center; }
.hero-grid > * { min-width: 0; }

.live {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: 99px;
  border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent);
  background: color-mix(in srgb, var(--ok) 7%, transparent);
  font: 600 .74rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ok);
}
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: pulse 1.6s infinite; }

h1 {
  margin: 20px 0 22px;
  font-size: clamp(2.5rem, 5.4vw, 5.1rem); line-height: 1.02;
  text-wrap: balance;
}
.h1-line { display: block; color: var(--text); text-shadow: 0 0 40px color-mix(in srgb, var(--a) 25%, transparent); }
h1 .grad {
  display: block;
  background: linear-gradient(100deg, var(--a) 0%, var(--b) 35%, var(--ok) 65%, var(--a) 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: flow 8s linear infinite;
  filter: drop-shadow(0 0 22px color-mix(in srgb, var(--a) 35%, transparent));
}
@keyframes flow { to { background-position: 300% 0; } }

.hero-lead { color: var(--muted); font-size: 1.12rem; max-width: 520px; margin-bottom: 32px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-metrics { display: flex; gap: 0; margin-top: 40px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; width: fit-content; max-width: 100%; }
.hero-metrics div { padding: 14px 22px; border-right: 1px solid var(--line); background: rgba(255, 255, 255, .015); }
.hero-metrics div:last-child { border-right: 0; }
.hero-metrics dt { white-space: nowrap; font: .68rem var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .1em; }
.hero-metrics dd { font: 700 1.25rem var(--display); color: var(--text); margin-top: 2px; }

.globe-box { position: relative; aspect-ratio: 1; width: 100%; max-width: 660px; justify-self: center; }
.globe-halo {
  position: absolute; inset: 12%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--a) 22%, transparent), transparent 65%);
  filter: blur(30px);
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.08); opacity: .7; } }
#globe { position: relative; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
#globe.drag { cursor: grabbing; }
#globe.target { cursor: crosshair; }
.globe-tip {
  position: absolute; top: 0; left: 0; z-index: 3; pointer-events: none;
  padding: 7px 11px; border-radius: 9px;
  background: color-mix(in srgb, var(--bg-2) 88%, transparent);
  border: 1px solid var(--a-mid);
  font: .74rem/1.35 var(--mono); white-space: nowrap;
  box-shadow: 0 0 20px -6px var(--a);
}
.globe-tip b { color: var(--a); }
.hud { position: absolute; z-index: 2; padding: 11px 15px; border-radius: 14px; pointer-events: none; }
.hud span { display: block; font: .66rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hud b { display: block; font: 700 1.5rem/1.2 var(--display); color: var(--text); font-variant-numeric: tabular-nums; }
.hud .hud-small { font-size: .9rem; color: var(--a); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hud.tl { top: 5%; left: 0; }
.hud.tr { top: 15%; right: 0; }
.hud.bl { bottom: 10%; left: 2%; }
.globe-hint { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font: .72rem var(--mono); color: var(--dim); }

.scroll-cue { position: absolute; left: 50%; bottom: 24px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid var(--line-3); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--a); box-shadow: 0 0 8px var(--a); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
}
@media (max-width: 520px) {
  .hero-metrics { width: 100%; }
  .hero-metrics div { flex: 1; padding: 12px 10px; }
  .hero-metrics dd { font-size: 1rem; }
  .hud { padding: 8px 10px; }
  .hud b { font-size: 1.1rem; }
  .hud.bl { display: none; }
}

/* ================= CINTA ================= */

.marquee {
  position: relative; display: flex; align-items: stretch;
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, var(--bg), rgba(255, 255, 255, .02), var(--bg));
  font: .8rem var(--mono); color: var(--muted); white-space: nowrap;
}
.marquee-label { position: relative; z-index: 1; flex: none; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-right: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font-size: .74rem; }
.marquee-label[href]:hover { color: var(--a); }
.marquee-view {
  flex: 1; min-width: 0; overflow: hidden; padding: 14px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track { display: inline-flex; animation: slide 46s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-track > * { display: inline-flex; align-items: center; gap: 10px; margin-right: 54px; }
.marquee-track a:hover { color: var(--text); }
.marquee-track strong { color: var(--a); font-weight: 600; }
.marquee em { color: var(--a); font-style: normal; text-shadow: 0 0 10px var(--a); }
.marquee em.bad { color: var(--bad); text-shadow: 0 0 10px var(--bad); }
.marquee small { color: var(--dim); font-size: .7rem; border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; }
@media (max-width: 640px) { .marquee-label { max-width: 130px; padding: 10px; white-space: normal; line-height: 1.3; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; font-size: .66rem; } }
@keyframes slide { to { transform: translateX(-50%); } }

/* ================= SERVICIOS ================= */

.svc-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .svc-grid { grid-template-columns: 1fr; } }

.svc { height: 330px; perspective: 1200px; }
.svc-in { position: relative; height: 100%; transform-style: preserve-3d; transition: transform .2s ease-out; }
.face {
  --mx: -300px; --my: -300px;
  position: absolute; inset: 0; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 24px; border-radius: var(--r);
  border: 1px solid transparent;
  background:
    radial-gradient(300px circle at var(--mx) var(--my), color-mix(in srgb, var(--a) 16%, transparent), transparent 65%) padding-box,
    url(../img/circuit.svg) right -40px bottom -40px / 220px no-repeat padding-box,
    linear-gradient(160deg, #11152c, #090b17) padding-box,
    radial-gradient(220px circle at var(--mx) var(--my), var(--a), transparent 70%) border-box,
    linear-gradient(160deg, var(--line-3), var(--line)) border-box;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  box-shadow: 0 30px 60px -30px #000;
}
.face::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: url(../img/noise.svg); opacity: .05; mix-blend-mode: overlay;
}
.back { transform: rotateY(180deg); }
.face-top { display: flex; justify-content: space-between; align-items: center; }
.code { font: 600 .7rem var(--mono); letter-spacing: .12em; color: var(--dim); }
.ico-wrap {
  position: relative; width: 74px; height: 74px; margin: 18px 0 18px;
  display: grid; place-items: center; border-radius: 18px;
  background: radial-gradient(circle, var(--a-soft), transparent 70%);
  border: 1px solid var(--line-2);
  transform: translateZ(40px);
}
.ico-wrap::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 1px solid var(--a); opacity: 0; transform: scale(1.25); transition: opacity .4s, transform .6s var(--ease); }
.svc:hover .ico-wrap::before { opacity: .6; transform: scale(1); }
.ico { width: 44px; height: 44px; fill: none; stroke: var(--a); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px var(--a)); }
.svc:hover .ico * { stroke-dasharray: 120; animation: draw 1.2s var(--ease) both; }
@keyframes draw { from { stroke-dashoffset: 120; } to { stroke-dashoffset: 0; } }
.face h3 { font-size: 1.45rem; margin-bottom: 6px; }
.face p, .face li { color: var(--muted); font-size: .93rem; }
.face ul { list-style: none; margin: 14px 0 16px; display: grid; gap: 8px; }
.face li { display: flex; gap: 10px; align-items: center; }
.face li::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--a); box-shadow: 0 0 8px var(--a); flex: none; }
.flip { margin-top: auto; align-self: flex-start; background: none; border: 0; padding: 6px 0; color: var(--a); font: 600 .8rem var(--mono); letter-spacing: .04em; }
.flip:hover { text-shadow: 0 0 12px var(--a); }
.quote { align-self: flex-start; }

.grip {
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
  background: none; border: 1px solid transparent; border-radius: 8px;
  padding: 3px 7px; color: var(--muted); font: .78rem var(--mono);
  transition: color .2s, border-color .2s;
}
.grip:hover { color: var(--a); border-color: var(--line-2); }
.dragging { z-index: 20; opacity: .95; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .7)) drop-shadow(0 0 30px color-mix(in srgb, var(--a) 30%, transparent)); }
.dragging .grip { cursor: grabbing; }

/* ================= PANEL DE AMENAZAS ================= */

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 20px; }
.kpi { position: relative; overflow: hidden; padding: 20px 22px; }
.kpi-label { display: block; font: .7rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.kpi b {
  display: block; margin-top: 6px;
  font: 700 clamp(1.8rem, 4.6vw, 3rem)/1 var(--display);
  color: var(--text); font-variant-numeric: tabular-nums;
  text-shadow: 0 0 30px color-mix(in srgb, var(--a) 45%, transparent);
}
.spark { position: absolute; right: 14px; bottom: 14px; width: 40%; height: 34px; overflow: visible; }
.spark path { fill: none; stroke: var(--a); stroke-width: 2; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px var(--a)); stroke-dasharray: 300; stroke-dashoffset: 300; transition: stroke-dashoffset 1.6s var(--ease); }
.kpis.in .spark path { stroke-dashoffset: 0; }
@media (max-width: 640px) {
  .kpis { gap: 8px; }
  .kpi { padding: 14px 12px; }
  .kpi-label { font-size: .58rem; letter-spacing: .04em; }
  .spark { display: none; }
}

.dash { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 920px) { .dash { grid-template-columns: minmax(0, 1fr); } }
.panel { padding: 20px; min-width: 0; }
.ph { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.ph h3 { display: flex; align-items: center; gap: 10px; font-size: 1.08rem; }
.ph-dot { width: 7px; height: 7px; border-radius: 2px; background: var(--a); box-shadow: 0 0 10px var(--a); transform: rotate(45deg); }
.panel canvas { width: 100%; height: 280px; border-radius: 12px; }
#radar, #game { cursor: crosshair; }

.donut-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; min-height: 280px; }
#donut { width: 220px; height: 220px; margin: auto; overflow: visible; }
#donut circle.seg { fill: none; stroke-width: 22; cursor: pointer; transition: stroke-width .35s var(--spring), opacity .3s, stroke-dasharray 1.4s var(--ease); }
#donut .track { fill: none; stroke: var(--line); stroke-width: 22; }
#donut .inner { fill: none; stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 2 5; }
#donut text { fill: var(--text); text-anchor: middle; font-family: var(--display); }
.legend { flex: 1; min-width: 190px; display: grid; gap: 4px; }
.legend button {
  display: grid; grid-template-columns: 1fr auto; text-align: left;
  background: transparent; border: 1px solid transparent; border-radius: 10px;
  padding: 7px 10px; font-size: .88rem;
  transition: border-color .2s, background .2s;
}
.legend button:hover, .legend button[aria-pressed="true"] { border-color: var(--line-2); background: rgba(255, 255, 255, .035); }
.legend i { grid-column: 1 / -1; height: 3px; border-radius: 3px; margin-top: 5px; box-shadow: 0 0 8px currentColor; }

#feed { height: 280px; overflow: auto; list-style: none; padding-right: 4px; }
#feed li {
  position: relative; overflow: hidden;
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
  padding: 11px 12px 11px 16px; margin-bottom: 8px;
  border: 1px solid var(--line); border-radius: 12px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .03), transparent), var(--bg-2);
  animation: enter .6s var(--spring);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab;
  transition: border-color .2s;
}
#feed li:hover { border-color: var(--line-2); }
#feed li::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: currentColor; box-shadow: 0 0 10px currentColor; }
#feed li.crit::before { color: var(--bad); }
#feed li.alto::before { color: var(--warn); }
#feed li.medio::before { color: var(--info); }
#feed li { color: var(--text); }
#feed small { display: block; color: var(--muted); font: .72rem var(--mono); margin-top: 2px; }
@keyframes enter { from { opacity: 0; transform: translateX(-40px) scale(.96); } }

.game-panel { margin-top: 20px; }
.game-hud { display: flex; gap: 16px; font: .78rem var(--mono); color: var(--a); }
.game-hud #game-best { color: var(--muted); }
.game-wrap { position: relative; }
#game { height: 400px; touch-action: none; }
.overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center;
  padding: 16px; text-align: center; border-radius: 12px;
  background: radial-gradient(circle, rgba(5, 6, 14, .6), rgba(5, 6, 14, .9));
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.overlay strong { font: 700 1.2rem var(--display); max-width: 440px; }
.overlay[hidden] { display: none; }

/* ---------- Terminal ---------- */

.term { margin-top: 20px; font-family: var(--mono); font-size: .85rem; overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 14px; padding: 11px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .76rem; }
.lights { display: flex; gap: 6px; }
.lights i { width: 10px; height: 10px; border-radius: 50%; background: var(--bad); }
.lights i:nth-child(2) { background: var(--warn); }
.lights i:nth-child(3) { background: var(--ok); }
#term-out {
  height: 230px; overflow: auto; padding: 14px 18px;
  white-space: pre-wrap; overflow-wrap: anywhere;
  background: repeating-linear-gradient(0deg, transparent 0 22px, rgba(255, 255, 255, .012) 22px 23px);
  text-shadow: 0 0 8px color-mix(in srgb, var(--a) 25%, transparent);
}
#term-out .cmd { color: var(--a); }
#term-out .ok { color: var(--ok); }
#term-out .bad { color: var(--bad); }
.term form { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); }
.prompt { color: var(--ok); text-shadow: 0 0 8px var(--ok); }
.term input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-family: var(--mono); caret-color: var(--a); }
.caret { width: 9px; height: 17px; background: var(--a); box-shadow: 0 0 10px var(--a); animation: blink 1s steps(1) infinite; }
.term input:focus + .caret { display: none; }
@keyframes blink { 50% { opacity: 0; } }
.quick { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 18px 12px; }

/* ================= RECURSOS ================= */

.tabs { position: relative; display: flex; gap: 4px; flex-wrap: wrap; width: fit-content; max-width: 100%; margin-bottom: 18px; padding: 5px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .02); }
.tabs button { position: relative; z-index: 1; padding: 10px 18px; border-radius: 12px; background: none; border: 0; color: var(--muted); font-size: .9rem; transition: color .25s; }
.tabs button[aria-selected="true"] { color: var(--text); }
.tab-ink {
  position: absolute; z-index: 0; top: 0; left: 0; height: 0; width: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--a-soft), rgba(255, 255, 255, .02));
  box-shadow: inset 0 0 0 1px var(--a-mid), 0 0 20px -8px var(--a);
  transition: transform .5s var(--spring), width .5s var(--spring), height .3s;
}
.tab-box { min-height: 380px; }
.tp { display: none; padding: 30px; }
.tp.on { display: block; animation: pop .5s var(--ease); }

.check-wrap { display: grid; grid-template-columns: 230px 1fr; gap: 30px; align-items: center; }
@media (max-width: 760px) { .check-wrap { grid-template-columns: 1fr; } }
.ring { width: 190px; margin: auto; text-align: center; }
.ring circle { fill: none; stroke-width: 10; }
.ring .ring-bg { stroke: var(--line); }
.ring .ring-ticks { stroke: var(--line-2); stroke-width: 18; stroke-dasharray: 1 7.17; opacity: .5; }
#ring-val { stroke: var(--a); stroke-linecap: round; transition: stroke-dashoffset .8s var(--spring), stroke .4s; filter: drop-shadow(0 0 8px currentColor); }
.ring text { fill: var(--text); font: 700 26px var(--display); text-anchor: middle; }
.ring-label { margin-top: 10px; font: .8rem var(--mono); color: var(--muted); }
.checks { display: grid; gap: 4px; }
.checks label { position: relative; display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 12px; cursor: pointer; transition: background .2s; }
.checks label:hover { background: rgba(255, 255, 255, .035); }
.checks input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.checks .box { position: relative; flex: none; width: 22px; height: 22px; border: 1.5px solid var(--line-3); border-radius: 7px; transition: border-color .25s, background .25s, box-shadow .25s; }
.checks .box::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #02131a; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); transition: transform .35s var(--spring); }
.checks input:checked + .box { background: var(--a); border-color: var(--a); box-shadow: 0 0 16px -2px var(--a); }
.checks input:checked + .box::after { transform: rotate(45deg) scale(1); }
.checks input:focus-visible + .box { outline: 2px solid var(--a); outline-offset: 3px; }
.checks .txt { transition: color .3s; }
.checks input:checked ~ .txt { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--a); }

#t-pass p:first-child { color: var(--muted); margin-bottom: 16px; }
#t-pass .field { font-family: var(--mono); font-size: 1.1rem; letter-spacing: .04em; }

.quiz-status { text-align: center; font: .8rem var(--mono); color: var(--muted); }
.swipe-zone { display: grid; place-items: center; min-height: 290px; perspective: 900px; overflow: hidden; }
.mail {
  width: min(480px, 100%); padding: 24px; border-radius: 18px;
  border: 1px solid var(--line-2);
  background: linear-gradient(160deg, #141938, #0b0e20);
  box-shadow: 0 30px 60px -30px #000;
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  overflow-wrap: anywhere;
}
.mail small { display: block; font: .74rem var(--mono); color: var(--muted); }
.mail h4 { margin: 10px 0; font-size: 1.2rem; }
.mail p { color: var(--muted); }

.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.links a { display: block; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .02); transition: border-color .25s, transform .35s var(--ease), box-shadow .25s; }
.links a:hover { border-color: var(--a-mid); transform: translateY(-5px); box-shadow: 0 16px 30px -18px var(--a); }
.links b { font-family: var(--display); font-size: 1.1rem; }
.links b span { color: var(--a); }
.links small { display: block; color: var(--muted); margin-top: 4px; }

details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { display: flex; justify-content: space-between; gap: 12px; cursor: pointer; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--a); font: 400 1.4rem/1 var(--mono); transition: transform .35s var(--spring); }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); padding-top: 10px; animation: pop .4s var(--ease); }

/* ================= SOBRE NOSOTROS ================= */

.timeline { position: relative; display: flex; gap: 20px; overflow-x: auto; padding: 36px 4px 24px; cursor: grab; user-select: none; -webkit-user-select: none; scrollbar-width: thin; scroll-snap-type: x proximity; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 17px; height: 1px; min-width: 1450px; background: linear-gradient(90deg, var(--a), var(--b), transparent); opacity: .5; }
.node { flex: 0 0 280px; padding: 22px; scroll-snap-align: start; transition: transform .4s var(--ease); }
.node:hover { transform: translateY(-6px); }
.node::before { content: ""; position: absolute; top: -24px; left: 22px; width: 12px; height: 12px; border-radius: 50%; background: var(--a); box-shadow: 0 0 0 4px var(--bg), 0 0 16px var(--a); }
.node b { font: 700 2.2rem/1 var(--display); color: var(--a); text-shadow: 0 0 20px color-mix(in srgb, var(--a) 50%, transparent); }
.node h4 { margin: 8px 0 4px; font-size: 1.05rem; }
.node p { color: var(--muted); font-size: .9rem; }

.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; margin-top: 24px; }
.about-grid > * { min-width: 0; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stats .kpi { display: flex; flex-direction: column-reverse; justify-content: center; text-align: center; }
#bubbles { width: 100%; height: 330px; cursor: grab; touch-action: none; }
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; } }

/* ================= CONTACTO ================= */

.form-box { max-width: 780px; margin: 0 auto; padding: 32px; overflow: hidden; }
.steps { display: flex; gap: 10px; margin-bottom: 26px; }
.steps span { flex: 1; padding-top: 10px; border-top: 3px solid var(--line); font: .76rem var(--mono); color: var(--muted); transition: color .3s, border-color .4s, box-shadow .4s; }
.steps span b { color: var(--dim); margin-right: 6px; }
.steps span.on { color: var(--text); border-color: var(--a); box-shadow: 0 -8px 16px -12px var(--a); }
.steps span.on b { color: var(--a); }
.step { display: none; }
.step.on { display: block; animation: enter .55s var(--spring); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.tiles label { cursor: pointer; }
.tiles input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tiles span { display: block; padding: 18px 14px; text-align: center; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(255, 255, 255, .02); transition: transform .35s var(--spring), border-color .25s, background .25s, box-shadow .25s; }
.tiles span:hover { transform: translateY(-4px); border-color: var(--line-3); }
.tiles input:checked + span { border-color: var(--a); background: var(--a-soft); box-shadow: 0 0 24px -8px var(--a); color: var(--text); }
.tiles input:focus-visible + span { outline: 2px solid var(--a); outline-offset: 2px; }
.lbl { display: block; margin: 14px 0 7px; font-size: .84rem; color: var(--muted); }
.err { min-height: 1.5em; margin-top: 8px; color: var(--bad); font-size: .84rem; }
.nav-row { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }
#sending { padding: 24px 0; text-align: center; }
#cipher { min-height: 5em; margin-bottom: 14px; font: .82rem var(--mono); color: var(--a); overflow-wrap: anywhere; text-shadow: 0 0 10px var(--a); }
#send-title { font-size: 1.5rem; }

/* ================= CONSOLA (área privada) ================= */

.console { padding-top: 120px; padding-bottom: 20px; }
.banner { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 14px 18px; color: var(--ok); font: .85rem var(--mono); }
.console-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; }
.console-grid > * { min-width: 0; }
@media (max-width: 900px) { .console-grid { grid-template-columns: 1fr; } }
.op-card { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; padding: 28px; }
.op-avatar { position: relative; width: 104px; height: 104px; display: grid; place-items: center; }
.op-avatar span { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 22px; background: linear-gradient(135deg, var(--a), var(--b)); color: #02131a; font: 700 2.2rem var(--display); box-shadow: 0 0 40px -6px var(--a); }
.op-avatar i { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed var(--a-mid); animation: spin 12s linear infinite; }
.op-avatar i + i { inset: 8px; border-style: solid; border-color: transparent; border-top-color: var(--a); animation-duration: 3s; }
.op-name { margin: 8px 0 2px; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.op-id { min-width: 0; overflow-wrap: anywhere; }
.op-meta { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.op-meta div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .02); }
.op-meta dt { font: .66rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.op-meta dd { font: 600 .98rem var(--display); margin-top: 2px; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .op-card { grid-template-columns: 1fr; text-align: center; } .op-avatar { margin: auto; } .op-meta { grid-template-columns: 1fr; text-align: left; } }
.qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qa {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 16px; text-align: left;
  border: 1px solid var(--line-2); border-radius: 14px;
  background: rgba(255, 255, 255, .02); color: var(--text); font-size: .9rem;
  transition: border-color .25s, transform .35s var(--spring), box-shadow .25s;
}
.qa b { font-size: 1.3rem; color: var(--a); text-shadow: 0 0 12px var(--a); }
.qa:hover { border-color: var(--a-mid); transform: translateY(-4px); box-shadow: 0 16px 30px -18px var(--a); }
.page-console #amenazas { padding-top: 60px; }

/* ================= DATOS REALES: insignias, capas del globo y ficha ================= */

.badge { display: inline-block; padding: 3px 6px; border: 1px solid currentColor; border-radius: 5px; font: 700 .58rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.badge.real { color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.badge.sim { color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, transparent); }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.infocon { --c: var(--ok); display: inline-flex; align-items: center; gap: 9px; padding: 6px 8px 6px 12px; border: 1px solid var(--line-2); border-radius: 99px; background: rgba(255, 255, 255, .02); font: .72rem var(--mono); color: var(--muted); }
.infocon:hover { border-color: var(--c); }
.infocon i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.infocon b { color: var(--c); }

.globe-col { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.globe-col .globe-box { max-width: 640px; }
#globe.pick { cursor: pointer; }

.globe-dock { width: 100%; max-width: 640px; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 4px; }
.layer-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.layer { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(255, 255, 255, .02); color: var(--muted); font-size: .8rem; transition: border-color .25s, color .25s, background .25s, box-shadow .25s, opacity .25s; }
.layer:hover { border-color: var(--a-mid); color: var(--text); }
.layer[aria-pressed="false"] .badge { opacity: .45; }
.layer[aria-pressed="true"] { color: var(--text); border-color: var(--a-mid); background: var(--a-soft); box-shadow: 0 0 20px -10px var(--a); }
.layer:disabled { opacity: .35; cursor: not-allowed; }
.layer-action { color: #ffd54a; border-color: color-mix(in srgb, #ffd54a 40%, transparent); font-family: var(--mono); font-size: .74rem; }

.root-letters { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.root-letters button { --c: #fff; min-width: 30px; height: 30px; padding: 0 7px; border: 1px solid var(--line); border-radius: 8px; background: rgba(0, 0, 0, .25); color: var(--c); font: 600 .74rem var(--mono); transition: background .2s, border-color .2s, transform .25s var(--spring); }
.root-letters button:hover { transform: translateY(-2px); border-color: var(--c); }
.root-letters button[aria-pressed="true"] { background: color-mix(in srgb, var(--c) 22%, transparent); border-color: var(--c); box-shadow: 0 0 14px -4px var(--c); }

.globe-sources { min-height: 1.5em; text-align: center; font: .68rem/1.6 var(--mono); color: var(--muted); }
.globe-dock .globe-hint { position: static; font: .68rem var(--mono); color: var(--dim); }

.globe-card.glass { position: absolute; z-index: 4; right: 0; bottom: 4%; width: min(270px, 78%); max-height: 80%; overflow: auto; padding: 16px; --panel: rgba(9, 11, 25, .92); animation: pop .35s var(--spring); }
.globe-card h4 { margin: 8px 28px 2px 0; font-size: 1.08rem; line-height: 1.25; }
.globe-card p { font: .72rem var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.globe-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin-top: 12px; font-size: .78rem; }
.globe-card dt { color: var(--dim); }
.globe-card dd { text-align: right; font-family: var(--mono); overflow-wrap: anywhere; }
.globe-card ul { list-style: none; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); display: grid; gap: 5px; font-size: .74rem; }
.globe-card li { display: grid; grid-template-columns: 8px 14px 1fr; gap: 8px; align-items: baseline; }
.globe-card li i { width: 8px; height: 8px; border-radius: 50%; }
.globe-card li span { color: var(--muted); }
.card-close { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border: 1px solid var(--line-2); border-radius: 8px; background: none; color: var(--muted); font-size: .75rem; }
.card-close:hover { color: var(--text); border-color: var(--a); }
@media (max-width: 940px) { .globe-card.glass { position: fixed; left: 12px; right: 12px; bottom: 12px; width: auto; max-height: 55vh; z-index: 115; } }

@media (max-width: 520px) {
  .hero-metrics div { min-width: 0; }
  .hero-metrics dt { white-space: normal; letter-spacing: .03em; font-size: .6rem; }
}

/* El globo se ajusta a la altura de la ventana para que los controles queden a la vista */
@media (min-width: 941px) {
  .globe-col .globe-box { max-width: min(640px, max(380px, calc(100vh - 290px))); }
}

/* ---------- Acceso directo al mapa en vivo ---------- */
.map-portal {
  display: flex; align-items: center; gap: 16px; max-width: 520px; margin-top: 18px; padding: 14px 18px;
  border: 1px solid var(--a-mid); border-radius: var(--r-sm); color: var(--text); text-decoration: none;
  background: linear-gradient(110deg, var(--a-soft), color-mix(in srgb, var(--b) 14%, transparent));
  box-shadow: 0 0 30px -12px var(--a); transition: transform .3s var(--ease), box-shadow .3s;
}
.map-portal:hover, .map-portal:focus-visible { transform: translateY(-2px); box-shadow: 0 0 38px -8px var(--a); }
.map-portal-orb {
  position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--a);
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--a) 45%, transparent), transparent 70%);
}
.map-portal-orb::before, .map-portal-orb::after { content: ""; position: absolute; border: 1px solid var(--a-mid); border-radius: 50%; }
.map-portal-orb::before { inset: -1px 12px; }
.map-portal-orb::after { inset: 14px -1px; }
.map-portal-orb i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: portal-blink 1.8s ease-in-out infinite; }
.map-portal-orb i:nth-child(1) { top: 9px; left: 26px; }
.map-portal-orb i:nth-child(2) { top: 28px; left: 11px; animation-delay: .9s; }
.map-portal-text { flex: 1; min-width: 0; }
.map-portal-text b { display: block; font: 700 1.02rem var(--display); letter-spacing: .03em; }
.map-portal-text small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.map-portal > svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--a); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes portal-blink { 50% { opacity: .2; } }

/* Flecha del globo hacia el mapa completo (debajo de la ficha de un punto) */
.globe-enter {
  position: absolute; right: 0; bottom: 6%; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: 5px 5px 5px 16px; border: 1px solid var(--a-mid); border-radius: 40px;
  background: var(--panel); backdrop-filter: blur(10px); color: var(--text); text-decoration: none;
  font: 700 .78rem var(--mono); letter-spacing: .04em; box-shadow: 0 0 26px -10px var(--a);
}
.globe-enter i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--a); color: #00121a; animation: enter-ring 2s ease-out infinite; }
.globe-enter svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.globe-enter:hover, .globe-enter:focus-visible { border-color: var(--a); box-shadow: 0 0 34px -6px var(--a); }
.globe-enter:hover svg { transform: translateX(3px); }
.globe-card:not([hidden]) ~ .globe-enter, .globe-box:has(.globe-card:not([hidden])) .globe-enter { visibility: hidden; }
@keyframes enter-ring { 0% { box-shadow: 0 0 0 0 var(--a-mid); } 100% { box-shadow: 0 0 0 13px transparent; } }
