/* ============================================================
   ICFES // CYBERDECK — Home Dashboard "00 INICIO"
   ============================================================ */

.dash-root {
  padding: 24px 28px 110px;
  max-width: 1440px;
  margin: 0 auto;
}

.dash-zone-label { margin-bottom: 10px; margin-top: 0; }

/* ── ZONA 1 · Bienvenida + mantra ─────────────────── */
.dash-welcome { margin-bottom: 36px; }

.dash-statusline {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.dash-online { display: inline-flex; align-items: center; gap: 8px; }
.dash-online-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 8px var(--lime);
}
.dash-utc { font-size: 10px; color: var(--muted); letter-spacing: 0.06em; }

.dash-welcome-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
}
.dash-greet { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.dash-name {
  font-size: clamp(40px, 7vw, 72px);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.dash-substatus { margin-top: 10px; flex-wrap: wrap; }

.dash-motto {
  padding: 16px 22px;
  background: var(--surface);
  border-left: 3px solid var(--acento, var(--red));
  min-width: 280px;
}
.dash-motto-jp { font-size: 22px; color: var(--ink); margin-bottom: 4px; letter-spacing: 0.02em; }
.dash-motto-es { font-size: 13px; color: var(--acento, var(--red)); letter-spacing: 0.03em; }

/* ── ZONA 2 · Prioridad ───────────────────────────── */
.dash-priority {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 14px;
  margin-bottom: 36px;
}

.dash-continue {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.dash-continue-title { font-size: 28px; margin-bottom: 6px; }
.dash-continue-ghost {
  position: absolute; right: -16px; bottom: -28px;
  font-size: 140px; color: var(--acento, var(--red));
  opacity: 0.05; pointer-events: none; line-height: 1;
}

/* Corner brackets */
.dash-cb {
  position: absolute; width: 8px; height: 8px;
  border: 1.5px solid var(--acento, var(--red));
}
.dash-cb-tl { top: 7px; left: 7px;  border-right: none; border-bottom: none; }
.dash-cb-tr { top: 7px; right: 7px; border-left: none;  border-bottom: none; }
.dash-cb-bl { bottom: 7px; left: 7px;  border-right: none; border-top: none; }
.dash-cb-br { bottom: 7px; right: 7px; border-left: none;  border-top: none; }

.dash-countdown {
  background: var(--acento, var(--red));
  color: #0A0A0A;
  padding: 20px;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.dash-countdown-num { font-size: 68px; line-height: 0.86; letter-spacing: -0.03em; }
.dash-countdown-foot {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid rgba(10,10,10,0.22);
}
.dash-countdown-ghost {
  position: absolute; right: -4px; bottom: -30px;
  font-size: 100px; opacity: 0.1; line-height: 1;
}

/* Progress bar */
.dash-progress {
  position: relative; width: 100%; height: 4px;
  background: var(--surface-2); overflow: hidden;
}
.dash-progress-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--red-deep), var(--acento, var(--red)));
  box-shadow: 0 0 10px var(--red-glow);
  transition: width 0.5s ease;
}

/* ── ZONA 3 · Acciones ────────────────────────────── */
.dash-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
.dash-action-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 22px;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  transition: border-color 0.18s, box-shadow 0.18s;
  width: 100%;
}
.dash-action-card:hover {
  border-color: var(--acento, var(--red));
  box-shadow: 0 0 0 1px var(--red-glow), 0 4px 24px var(--red-glow);
}
.dash-action-card.highlight { background: var(--surface-2); border-color: var(--acento, var(--red)); }
.dash-action-stripe { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--acento, var(--red)); }
.dash-action-desc { font-size: 11px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.dash-action-meta { font-size: 10px; color: var(--muted); letter-spacing: 0.1em; }
.dash-action-enter { font-size: 12px; color: var(--ink-2); font-weight: 700; }

/* Respondedor banner */
.dash-responder {
  width: 100%;
  padding: 20px 26px;
  cursor: pointer;
  text-align: left;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--acento, var(--red));
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 24px rgba(var(--acento-rgb, 255,42,42), 0.06);
  transition: box-shadow 0.18s;
  margin-bottom: 36px;
}
.dash-responder:hover { box-shadow: 0 0 36px rgba(var(--acento-rgb, 255,42,42), 0.16); }
.dash-responder-kanji { font-size: 58px; color: var(--acento, var(--red)); opacity: 0.88; line-height: 1; flex: 0 0 auto; }
.dash-responder-title { font-size: 24px; margin-bottom: 6px; }
.dash-responder-desc { font-size: 11px; color: var(--muted); line-height: 1.6; }

/* ── ZONA 4 · Telemetría ──────────────────────────── */
.dash-telemetry {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 14px;
  margin-bottom: 36px;
}
.dash-streak {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.dash-flame { filter: drop-shadow(0 0 8px var(--red-glow)); }
.dash-streak-num {
  font-size: 84px; color: var(--acento, var(--red));
  line-height: 0.9; text-shadow: 0 0 24px var(--red-glow);
}
.dash-heat { margin-top: 18px; }
.dash-heat-cell { flex: 1; height: 20px; background: var(--acento, var(--red)); }
.dash-heat-axis { font-size: 9px; color: var(--muted); margin-top: 6px; letter-spacing: 0.1em; }

.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dash-stat { background: var(--surface); border: 1px solid var(--line); padding: 14px; }
.dash-stat-numrow { display: flex; align-items: baseline; }
.dash-stat-num { font-size: 32px; line-height: 1; }
.dash-stat-suffix { font-size: 20px; line-height: 1; }
.dash-stat-tag { font-size: 9px; color: var(--muted); margin-top: 6px; letter-spacing: 0.08em; }

.dash-weekly { background: var(--surface); border: 1px solid var(--line); padding: 20px; }
.dash-weekly-bars { display: flex; align-items: flex-end; height: 110px; gap: 10px; }
.dash-wbar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.dash-wbar-val { font-size: 10px; color: var(--ink-2); }
.dash-wbar-track { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.dash-wbar-fill {
  width: 100%;
  background: linear-gradient(180deg, rgba(var(--acento-rgb, 255,42,42),0.7), rgba(var(--acento-rgb, 255,42,42),0.3));
  animation: dash-grow 0.6s ease both;
}
.dash-wbar-fill.peak { background: var(--acento, var(--red)); box-shadow: 0 0 12px var(--red-glow); }
.dash-wbar-label { flex: 0 0 auto; font-size: 10px; color: var(--muted); letter-spacing: 0.1em; }
.dash-wbar-label.peak { color: var(--acento, var(--red)); }

@keyframes dash-grow { from { height: 0 !important; } }

/* ── ZONA 5 · Atención ────────────────────────────── */
.dash-focus {
  background: var(--bg-2);
  border: 1px solid var(--acento, var(--red));
  padding: 22px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 36px;
}
.dash-hazard {
  display: inline-block; width: 56px; height: 10px;
  background-image: repeating-linear-gradient(-45deg, var(--acento, var(--red)) 0, var(--acento, var(--red)) 4px, #0A0A0A 4px, #0A0A0A 8px);
}
.dash-focus-ghost {
  position: absolute; right: 18px; top: -20px;
  font-size: 120px; opacity: 0.06; color: var(--acento, var(--red));
  pointer-events: none; line-height: 1;
}

/* ── Footer ────────────────────────────────────────── */
.dash-foot {
  display: flex; align-items: center; gap: 12px;
  margin-top: 40px; padding-top: 14px;
  border-top: 1px solid var(--line); opacity: 0.7;
}

/* Glitch (minimal) */
.glitch { position: relative; }

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 1100px) {
  .dash-priority   { grid-template-columns: 1fr; }
  .dash-telemetry  { grid-template-columns: 1fr; }
  .dash-actions    { grid-template-columns: 1fr; }
  .dash-focus      { grid-template-columns: 1fr; gap: 16px; }
  .dash-welcome-grid { grid-template-columns: 1fr; }
  .dash-motto { min-width: 0; }
}
@media (max-width: 768px) {
  .dash-root { padding: 16px 16px 100px; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .dash-countdown-num { font-size: 56px; }
  .dash-streak-num { font-size: 60px; }
}
