/* ============================================================
   VIEWS · dashboard + placeholder de herramientas
   ============================================================ */

/* ---------------------------------------------------------- */
/*  HERO (bienvenida + estado de sesión)                     */
/* ---------------------------------------------------------- */
.hero {
  position: relative;
  padding: var(--s-8);
  border-radius: var(--r-xl);
  background:
    linear-gradient(135deg, var(--surface-2) 0%, var(--surface) 60%);
  border: 1px solid var(--line);
  overflow: hidden;
  margin-bottom: var(--s-8);
}
/* rejilla técnica muy tenue de fondo */
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(600px 300px at 85% 0%, #000, transparent 75%);
          mask-image: radial-gradient(600px 300px at 85% 0%, #000, transparent 75%);
  pointer-events: none;
}
.hero > * { position: relative; }

.hero__eyebrow { margin-bottom: var(--s-4); display: flex; align-items: center; gap: var(--s-3); }
.hero__title {
  font-size: var(--t-2xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  max-width: 20ch;
}
.hero__title em { color: var(--text-3); font-style: normal; }
.hero__sub {
  margin-top: var(--s-4);
  color: var(--text-2);
  font-size: var(--t-md);
  max-width: 52ch;
  line-height: var(--lh-snug);
}
.hero__meta {
  margin-top: var(--s-6);
  display: flex; flex-wrap: wrap; gap: var(--s-3);
}

/* Fila de indicadores rápidos (sin datos reales aún) */
.pulse-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--s-3);
  margin-top: var(--s-6);
}
.pulse {
  padding: var(--s-4);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--void) 40%, transparent);
  border: 1px solid var(--line);
}
.pulse__k { display: block; margin-bottom: 6px; }
.pulse__v { font-family: var(--font-mono); font-size: var(--t-lg); font-weight: 500; font-variant-numeric: tabular-nums; }
.pulse__v small { font-size: var(--t-sm); color: var(--text-3); }

/* ---------------------------------------------------------- */
/*  REJILLA DE ACCESOS RÁPIDOS                                */
/* ---------------------------------------------------------- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--s-4);
}

/* ---------------------------------------------------------- */
/*  COLUMNAS INFERIORES (actividad + resumen)                */
/* ---------------------------------------------------------- */
.dash-columns {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-4);
  align-items: start;
}
@media (max-width: 780px) { .dash-columns { grid-template-columns: 1fr; } }

/* Lista de actividad */
.activity { display: flex; flex-direction: column; }
.activity__item {
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-4) var(--s-6);
  border-bottom: 1px solid var(--line);
  transition: background var(--dur-1) var(--ease);
}
.activity__item:last-child { border-bottom: none; }
.activity__item:hover { background: var(--surface-2); }
.activity__dot {
  width: 30px; height: 30px; border-radius: var(--r-sm); flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--text-3);
}
.activity__dot svg { width: 15px; height: 15px; stroke-width: 1.7; }
.activity__body { min-width: 0; }
.activity__label { font-size: var(--t-sm); font-weight: 500; color: var(--text); }
.activity__time { font-family: var(--font-mono); font-size: var(--t-xs); color: var(--text-3); }
.activity__meta { margin-left: auto; }

/* Resumen diario */
.summary__row {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-4) var(--s-6);
  border-bottom: 1px solid var(--line);
}
.summary__row:last-child { border-bottom: none; }
.summary__k { font-size: var(--t-sm); color: var(--text-2); }
.summary__v { font-family: var(--font-mono); font-size: var(--t-sm); color: var(--text); font-variant-numeric: tabular-nums; }

/* Estado vacío */
.empty {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: var(--s-3); padding: var(--s-12) var(--s-6);
  color: var(--text-3);
}
.empty svg { width: 30px; height: 30px; stroke-width: 1.4; color: var(--text-faint); }
.empty p { font-size: var(--t-sm); max-width: 34ch; }

/* ---------------------------------------------------------- */
/*  VISTA PLACEHOLDER DE HERRAMIENTA                          */
/* ---------------------------------------------------------- */
.tool-view { max-width: 760px; margin: 0 auto; }
.tool-view__head {
  display: flex; align-items: center; gap: var(--s-5);
  margin-bottom: var(--s-8);
}
.tool-view__icon {
  width: 60px; height: 60px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: var(--r-lg);
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--electric-bright);
}
.tool-view__icon svg { width: 28px; height: 28px; stroke-width: 1.5; }
.tool-view__title { font-size: var(--t-xl); }
.tool-view__desc { color: var(--text-2); margin-top: 4px; }

.tool-view__panel { padding: var(--s-10); text-align: center; }
.tool-view__panel .badge { margin-bottom: var(--s-5); }
.tool-view__panel h3 { font-size: var(--t-lg); margin-bottom: var(--s-3); }
.tool-view__panel p { color: var(--text-2); max-width: 46ch; margin: 0 auto var(--s-2); line-height: var(--lh-snug); }
.tool-view__phase {
  margin-top: var(--s-6);
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-mono); font-size: var(--t-xs); letter-spacing: 0.08em;
  color: var(--text-3);
  padding: var(--s-3) var(--s-4);
  border: 1px dashed var(--line-strong); border-radius: var(--r-md);
}

/* Migas de secciones futuras dentro de la herramienta */
.tool-view__future {
  margin-top: var(--s-8);
  display: grid; gap: var(--s-2);
}
.future-row {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); color: var(--text-3);
  font-size: var(--t-sm);
}
.future-row svg { width: 16px; height: 16px; color: var(--text-faint); stroke-width: 1.7; }
