/* ============================================================================
   /inicio — 20-10-2026. Referencias 01 y 05.
   ============================================================================ */

.cabeza-pantalla {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin: 0 0 var(--sp-5);
}
.cabeza-pantalla h1 { margin: 0; }
.cabeza-pantalla .bajada { margin: 0; flex-basis: 100%; }

.inicio__rejilla {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: var(--sp-4);
  align-items: start;
}
@media (max-width: 1023px) { .inicio__rejilla { grid-template-columns: minmax(0, 1fr); } }

/* ---- Para hoy ------------------------------------------------------------ */
.para-hoy {
  display: grid;
  grid-template-columns: 64px auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  border-bottom: var(--border-width) solid var(--border);
  font-size: var(--fs-sm);
}
.para-hoy:last-of-type { border-bottom: 0; }
.para-hoy__dia { color: var(--text-muted); font-size: var(--fs-xs); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: var(--tracking-label); }
.para-hoy--urgente .para-hoy__dia { color: var(--aviso-text); }
.para-hoy .ico { color: var(--text-muted); }
.para-hoy__que { min-width: 0; display: flex; flex-direction: column; }
.para-hoy__que span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-muted); }
@media (max-width: 639px) {
  .para-hoy { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .para-hoy > .ico { display: none; }
}

/* ---- Gráficos ------------------------------------------------------------ */
.grafico { position: relative; height: 240px; }
.grafico--dona { height: 200px; }
.grafico__leyenda {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-4);
  margin: var(--sp-3) 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.grafico__leyenda strong { color: var(--text); }

/* ---- Nuevas para ti ------------------------------------------------------ */
.nueva {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  border-bottom: var(--border-width) solid var(--border);
}
.nueva:last-child { border-bottom: 0; }
.nueva__texto { min-width: 0; display: flex; flex-direction: column; }
.nueva__titulo { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text); text-decoration: none; }
.nueva__titulo:hover { color: var(--accent); }
.nueva__sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-xs); color: var(--text-muted); }
.nueva__acciones { display: flex; align-items: center; gap: var(--sp-2); }
.nueva__acciones form { margin: 0; }
@media (max-width: 639px) {
  .nueva { grid-template-columns: minmax(0, 1fr); }
  .nueva__tipo { justify-self: start; }
}

.grafico__tabla { margin-top: var(--sp-3); font-size: var(--fs-sm); }
.grafico__tabla > summary { cursor: pointer; color: var(--accent); }
.grafico__tabla table { margin-top: var(--sp-2); }
