/* ==========================================================================
   GestIA · Inicio: cumpleaños cercanos de toda DWConsulware
   Las animaciones quedan neutralizadas por el bloque prefers-reduced-motion de base.css.
   ========================================================================== */

.bday-body { display: grid; gap: 14px; padding: 12px 22px 16px; }
.bday-group { display: grid; gap: 8px; }
.bday-group-title { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.bday-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }

.bday-item {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 7px 12px 7px 7px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-soft);
  background: var(--surface-2);
  animation: rise .4s var(--ease) backwards;
  animation-delay: calc(min(var(--i, 0), 8) * 35ms);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.bday-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.bday-item .date-block { width: 40px; height: 42px; border-radius: 11px; }
.bday-item .date-block b { font-size: 17px; }
.bday-item .list-main strong { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.bday-item .list-main small { font-size: 12px; }
.bday-me { min-height: 20px; padding: 0 7px; font-size: 10.5px; }
.bday-when { flex: none; font-size: 12px; font-weight: 700; color: var(--ink-2); }

/* Hoy: franja con el degradado cálido y el día resaltado en rosa. */
.bday-item.is-today { border-color: transparent; background: var(--tone-soft); animation: pop .45s var(--spring) backwards; }
.bday-item.is-today::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--grad-warm); }
.bday-item.is-today .bday-when { display: inline-flex; align-items: center; gap: 4px; color: var(--tone-ink); }
.bday-item.is-today .bday-when .i { width: 15px; height: 15px; }

.bday-more { justify-self: start; }
.bday-more .i { transition: transform .25s var(--ease); }
.bday-more[aria-expanded="true"] .i { transform: rotate(180deg); }
.bday-list[hidden] { display: none; }

.bday-foot { display: flex; align-items: flex-start; gap: 6px; font-size: 12px; line-height: 1.5; color: var(--ink-3); }
.bday-foot .i { flex: none; width: 14px; height: 14px; margin-top: 2px; }
.bday-foot .link-btn { font-size: 12px; }

.bday-sk { height: 56px; }
.bday-error {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 12px 22px 18px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  color: var(--tone-ink);
  background: var(--tone-soft);
  animation: pop .3s var(--spring) both;
}
.bday-error > .i { width: 20px; height: 20px; }
.bday-error strong { display: block; font-size: 13.5px; }
.bday-error p { font-size: 13px; color: var(--ink-2); }

@media (max-width: 720px) {
  .bday-body { padding: 10px 16px 14px; }
  .bday-list { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .bday-item { gap: 9px; padding: 5px 10px 5px 5px; }
  .bday-item .date-block { width: 36px; height: 38px; border-radius: 10px; }
  .bday-item .date-block small { font-size: 9px; }
  .bday-item .date-block b { font-size: 15px; }
  .bday-error { margin: 12px 16px 16px; }
}
