/* ============================================================
   『 𝑬𝑳 𝑪𝑼𝑬𝑹𝑽𝑶 』 — CYBER TERMINAL THEME
   Hacker Aesthetic · Neon Emerald & Electric Cyan · JetBrains Mono
   ============================================================ */

:root {
  --bg-void: #04060a;
  --bg-deep: #070b12;
  --bg-panel: rgba(10, 16, 26, 0.78);
  --bg-panel-hover: rgba(14, 23, 38, 0.92);
  --bg-card: rgba(12, 20, 32, 0.65);
  
  --neon-green: #00ff9d;
  --neon-green-glow: rgba(0, 255, 157, 0.28);
  --neon-green-dim: rgba(0, 255, 157, 0.12);
  
  --neon-cyan: #00f0ff;
  --neon-cyan-glow: rgba(0, 240, 255, 0.25);
  --neon-cyan-dim: rgba(0, 240, 255, 0.12);
  
  --line-cyber: rgba(0, 255, 157, 0.18);
  --line-cyber-bright: rgba(0, 255, 157, 0.45);
  --line-cyan: rgba(0, 240, 255, 0.22);
  
  --text-main: #f0f7fc;
  --text-muted: #8ea5bb;
  --text-dim: #4d667c;
  
  --font-mono: "JetBrains Mono", monospace;
  --font-head: "Space Grotesk", sans-serif;
  --font-tech: "Orbitron", monospace;
  
  --radius: 18px;
  --radius-sm: 10px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: var(--bg-void);
}

body {
  min-height: 100vh;
  color: var(--text-main);
  font-family: var(--font-head);
  background-color: var(--bg-void);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

a, button {
  font-family: inherit;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

/* ============================================================
   BACKGROUND: CYBER GRID, SCANLINES & NEON GLOWS
   ============================================================ */

.cyber-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(0, 255, 157, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 255, 157, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
}

.cyber-glow-1 {
  position: fixed;
  top: -10%;
  left: 15%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.14) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

.cyber-glow-2 {
  position: fixed;
  top: 25%;
  right: -5%;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 157, 0.12) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
  filter: blur(45px);
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.25) 50%
  );
  background-size: 100% 4px;
  opacity: 0.35;
}

/* ============================================================
   LAYOUT SHELL
   ============================================================ */

.shell {
  position: relative;
  z-index: 2;
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}

/* ============================================================
   HEADER / TOPBAR
   ============================================================ */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 38px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(0, 255, 157, 0.12);
}

.mark {
  display: flex;
  align-items: center;
  gap: 12px;
}

.beacon {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 10px var(--neon-green);
}

.beacon::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--neon-green);
  animation: beacon-pulse 2s infinite ease-out;
}

@keyframes beacon-pulse {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.brand-title {
  font-family: var(--font-head);
  font-size: 1.18rem;
  letter-spacing: 0.05em;
  color: #fff;
  text-shadow: 0 0 12px rgba(0, 255, 157, 0.3);
}

.cyber-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 255, 157, 0.1);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 157, 0.3);
}

.top-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid var(--line-cyan);
  padding: 8px 16px;
  border-radius: 999px;
  transition: all 0.22s ease;
}

.top-phone:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 18px var(--neon-cyan-glow);
  transform: translateY(-1px);
}

.prompt-sym {
  color: var(--neon-green);
  font-weight: 800;
}

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

.hero {
  display: grid;
  gap: 20px;
  margin-bottom: 34px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--neon-green);
  background: rgba(0, 255, 157, 0.06);
  border: 1px solid var(--line-cyber);
  padding: 6px 14px;
  border-radius: 999px;
}

.kicker-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.3rem, 7vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #fff;
  min-height: 2.15em;
}

.glow-cyan {
  font-style: normal;
  color: var(--neon-cyan);
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.45);
}

.tw-cursor {
  display: inline-block;
  margin-left: 2px;
  color: var(--neon-green);
  font-family: var(--font-mono);
  font-weight: 300;
  text-shadow: 0 0 12px var(--neon-green);
  animation: tw-blink 0.85s infinite;
  vertical-align: baseline;
}

@keyframes tw-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.hero-lead {
  font-family: var(--font-mono);
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 58ch;
}

.term-green {
  color: var(--neon-green);
  font-weight: 800;
  margin-right: 4px;
}

.people {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}

.person {
  display: grid;
  gap: 4px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--line-cyber);
  backdrop-filter: blur(12px);
  min-width: 210px;
  transition: all 0.22s ease;
}

.person:hover {
  transform: translateY(-2px);
  background: var(--bg-panel-hover);
  border-color: var(--neon-green);
  box-shadow: 0 6px 20px var(--neon-green-glow);
}

.person-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--neon-green);
}

.person-tag--cyan {
  color: var(--neon-cyan);
}

.person strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.person small {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ============================================================
   GRID & PANELS
   ============================================================ */

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}

@media (max-width: 820px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--line-cyber);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-green), var(--neon-cyan), transparent);
  opacity: 0.6;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.panel h2 {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

.status-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 255, 157, 0.12);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 157, 0.35);
}

.panel-desc {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

/* ============================================================
   APPS CARDS (BANCOLOMBIA + NEQUI)
   ============================================================ */

.apps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.app {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 22px 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(0, 255, 157, 0.15);
  background: rgba(8, 14, 22, 0.7);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.app:hover {
  transform: translateY(-3px);
  background: rgba(12, 22, 36, 0.9);
  border-color: var(--neon-green);
  box-shadow: 0 10px 30px var(--neon-green-glow);
}

.app--highlight {
  border-color: rgba(0, 240, 255, 0.35);
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.08) 0%, rgba(8, 14, 22, 0.7) 100%);
}

.app--highlight:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 10px 30px var(--neon-cyan-glow);
}

.app-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.app-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.app-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.app-tag--neon {
  color: var(--neon-cyan);
}

/* ============================================================
   PREVIEW CARD (ACCESO DIRECTO)
   ============================================================ */

.preview {
  display: grid;
  gap: 16px;
}

.panel--preview {
  text-align: center;
  padding: 24px 20px;
  border-color: var(--line-cyan);
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.06) 0%, var(--bg-panel) 60%);
}

.preview-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.35);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.preview-hero-icon img {
  margin: 0 auto 12px;
  border-radius: 18px;
  border: 2px solid rgba(0, 240, 255, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 25px var(--neon-cyan-glow);
}

.preview-title {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.preview-desc {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

/* ============================================================
   CYBER BUTTON
   ============================================================ */

.btn-cyber {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 20px;
  border-radius: 12px;
  background: linear-gradient(90deg, #00ff9d 0%, #00f0ff 100%);
  color: #020907;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  box-shadow: 0 6px 20px rgba(0, 255, 157, 0.35);
  transition: all 0.22s ease;
}

.btn-cyber:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 10px 30px rgba(0, 255, 157, 0.6);
}

/* ============================================================
   COMMUNITY / LINKS STACK
   ============================================================ */

.links-stack {
  display: grid;
  gap: 10px;
}

.community {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line-cyber);
  backdrop-filter: blur(12px);
  transition: all 0.22s ease;
}

.community:hover {
  transform: translateY(-2px);
  background: var(--bg-panel-hover);
  border-color: var(--neon-cyan);
  box-shadow: 0 8px 24px var(--neon-cyan-glow);
}

.comm-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--neon-cyan);
}

.community--channel .comm-icon {
  background: rgba(0, 240, 255, 0.1);
  color: var(--neon-cyan);
  border-color: rgba(0, 240, 255, 0.3);
}

.community--group .comm-icon {
  background: rgba(0, 255, 157, 0.1);
  color: var(--neon-green);
  border-color: rgba(0, 255, 157, 0.3);
}

.community--support .comm-icon {
  background: rgba(240, 185, 11, 0.1);
  color: #f0b90b;
  border-color: rgba(240, 185, 11, 0.3);
}

.comm-text {
  display: grid;
  gap: 2px;
  flex: 1;
}

.comm-text strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.comm-text small {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-dim);
}

.comm-arrow {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--neon-green);
  transition: transform 0.2s ease;
}

.community:hover .comm-arrow {
  transform: translateX(4px);
  color: var(--neon-cyan);
}

/* ============================================================
   FOOTER
   ============================================================ */

.sign {
  margin-top: 48px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 255, 157, 0.08);
}

.sign a {
  color: var(--neon-green);
  font-weight: 700;
  transition: color 0.2s ease;
}

.sign a:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px var(--neon-cyan);
}

/* ============================================================
   PANEL TELEMETRÍA & MINI GRÁFICA
   ============================================================ */

.panel--telemetry {
  border-color: rgba(0, 255, 157, 0.2);
  background: linear-gradient(180deg, rgba(10, 18, 28, 0.85) 0%, rgba(6, 12, 20, 0.9) 100%);
}

.telemetry-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--neon-green);
  background: rgba(0, 255, 157, 0.1);
  border: 1px solid rgba(0, 255, 157, 0.3);
  padding: 3px 8px;
  border-radius: 4px;
}

.live-blink {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
  animation: beacon-pulse 1.4s infinite ease-out;
}

.telemetry-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

@media (max-width: 600px) {
  .telemetry-stats {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(8, 14, 22, 0.7);
  border: 1px solid rgba(0, 255, 157, 0.12);
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.stat-card:hover {
  border-color: rgba(0, 255, 157, 0.35);
  background: rgba(12, 22, 34, 0.85);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.stat-val {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  transition: all 0.25s ease;
}

.stat-card--visits .stat-val {
  color: var(--neon-green);
  text-shadow: 0 0 10px rgba(0, 255, 157, 0.35);
}

.stat-card--bancolombia .stat-val {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.35);
}

.stat-card--nequi .stat-val {
  color: #e040fb;
  text-shadow: 0 0 10px rgba(224, 64, 251, 0.35);
}

.stat-trend {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

.metric-pulse {
  transform: scale(1.1);
  filter: brightness(1.4);
}

/* Gráfica Contenedor */
.chart-container {
  border: 1px solid rgba(0, 255, 157, 0.14);
  border-radius: 12px;
  background: rgba(4, 8, 14, 0.75);
  padding: 14px 16px 12px;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.chart-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--neon-green);
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 12px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.legend-visits .legend-dot {
  background: #00ff9d;
  box-shadow: 0 0 6px #00ff9d;
}

.legend-bancol .legend-dot {
  background: #00f0ff;
  box-shadow: 0 0 6px #00f0ff;
}

.legend-nequi .legend-dot {
  background: #e040fb;
  box-shadow: 0 0 6px #e040fb;
}

.chart-svg-wrap {
  width: 100%;
  height: 120px;
}

.telemetry-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-dim);
}

.label-today {
  color: var(--neon-green);
  font-weight: 800;
}

/* ============================================================
   MOBILE RESPONSIVENESS
   ============================================================ */

@media (max-width: 580px) {
  .shell {
    padding: 16px 14px 48px;
  }
  
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .people {
    flex-direction: column;
  }
  
  .person {
    width: 100%;
  }
  
  .apps {
    grid-template-columns: 1fr;
  }
}
