/* V7: vista Mi familia + contexto académico. Siempre posterior a responsive V6.2. */
.family-body {overflow-x:clip;}
.family-body .family-workspace, .family-body .family-main, .family-body .family-page {min-width:0;}
.family-body .family-page {width:100%;}
.family-body .family-overview-hero {display:flex;justify-content:space-between;align-items:center;gap:28px;flex-wrap:wrap;min-width:0;}
.family-body .family-overview-hero .welcome-copy {flex:1 1 410px;min-width:0;position:relative;z-index:1;}
.family-body .family-overview-hero .welcome-copy h1 {margin-block:12px 8px;}
.family-body .family-overview-hero .welcome-subtitle {max-width:640px;}
.family-body .overview-family-pill {position:relative;z-index:1;display:flex;gap:13px;align-items:center;flex:0 1 245px;min-width:205px;padding:15px;background:#fff;border-radius:15px;color:#254568;box-shadow:0 10px 26px rgba(24,55,107,.14);}
.family-body .overview-family-pill-icon {flex:none;display:grid;place-items:center;height:48px;width:48px;border-radius:13px;background:#e4f5fa;color:#087e9d;}
.family-body .overview-family-pill div {min-width:0;display:flex;flex-direction:column;gap:2px;}
.family-body .overview-family-pill small {font-size:10px;color:#50729b;font-weight:800;letter-spacing:.8px;}
.family-body .overview-family-pill strong {font-size:17px;line-height:1.25;}
.family-body .overview-family-pill div > span {font-size:11px;color:#637b94;}
.family-body .family-summary-insights .insight {cursor:default;}
.family-body .family-summary-insights a.insight {cursor:pointer;}
.family-body .family-children-heading {align-items:flex-end;}
.family-body .family-students-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;margin-bottom:24px;}
.family-body .family-student-card {display:flex;flex-direction:column;min-width:0;border:1px solid #dbe6f5;background:#fff;border-radius:17px;padding:22px 23px;box-shadow:0 5px 18px rgba(20,64,122,.045);}
.family-body .family-student-card:nth-child(2n) {border-color:#d3ece6;}
.family-body .student-card-top {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;}
.family-body .student-card-avatar {display:grid;place-items:center;width:49px;height:49px;border-radius:14px;flex:none;}
.family-body .student-card-avatar.blue {background:#e5f0ff;color:#2257c5;}
.family-body .student-card-avatar.mint {background:#def8ef;color:#07846d;}
.family-body .student-card-year {display:inline-block;white-space:normal;text-align:right;font-size:11px;color:#58708f;background:#f1f5fb;border-radius:8px;padding:6px 9px;}
.family-body .family-student-card h3 {font:800 17px/1.35 'Plus Jakarta Sans','DM Sans',sans-serif;color:#20385d;overflow-wrap:anywhere;margin:0 0 5px;}
.family-body .family-student-card > p {font-size:12px;color:#607893;line-height:1.5;margin:0 0 15px;overflow-wrap:anywhere;}
.family-body .student-card-stats {display:flex;align-items:center;flex-wrap:wrap;gap:9px 15px;margin-bottom:17px;}
.family-body .student-card-stats > span {display:inline-flex;align-items:center;gap:5px;font-size:11px;color:#486584;}
.family-body .student-card-stats svg {width:15px;height:15px;color:#477cb8;}
.family-body .student-card-stats strong {font-size:13px;color:#1e3b63;}
.family-body .family-student-card form {margin-top:auto;}
.family-body .student-card-action {width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;background:#ebf3ff;color:#1d50b9;border:1px solid #d8e6ff;border-radius:11px;padding:11px 13px;font-size:12px;line-height:1.35;font-weight:800;cursor:pointer;text-align:left;}
.family-body .student-card-action:hover {background:#dcecff;border-color:#bad4fa;}
.family-body .family-student-card:nth-child(2n) .student-card-action {background:#eaf8f3;color:#08735e;border-color:#d4efe5;}
.family-body .family-student-card:nth-child(2n) .student-card-action:hover {background:#dbf4e9;}
.family-body .family-overview-columns {grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;margin-top:4px;}
.family-body .family-overview-columns > .content-panel {min-width:0;}
.family-body .family-aggregate-list {display:flex;flex-direction:column;}
.family-body .family-aggregate-form {margin:0;min-width:0;}
.family-body .family-aggregate-row {display:flex;align-items:center;gap:12px;text-align:left;width:100%;min-width:0;background:transparent;border:0;border-bottom:1px solid #e7edf6;padding:14px 4px;color:#233b60;cursor:pointer;}
.family-body .family-aggregate-row:hover {background:#f5f9ff;}
.family-body .family-aggregate-form:last-child .family-aggregate-row {border-bottom:0;}
.family-body .family-aggregate-content {display:flex;flex:1 1 0;flex-direction:column;gap:4px;min-width:0;}
.family-body .family-aggregate-content small {font-size:11px;color:#65809c;overflow-wrap:anywhere;}
.family-body .family-aggregate-content strong {font-size:12.5px;line-height:1.4;overflow-wrap:anywhere;}
.family-body .family-aggregate-content > span {font-size:11px;}
.family-body .family-aggregate-row > svg:last-child {flex:none;color:#7793ad;}
.family-body .family-aggregate-row .notice-symbol,.family-body .family-aggregate-row .task-marker {flex:none;}
.family-body .family-aggregate-row .tag-unread {flex:none;margin:0;font-size:10px;}
.family-body .family-aggregate-row.is-unread {background:#fffafa;}
.family-body .due-overdue {color:#bc3955;font-weight:700;}
.family-body .due-soon {color:#6b7895;}
.family-body .family-overview-footnote {font-size:11px;line-height:1.6;color:#6e8097;margin:17px 0 0;}
.family-body .family-empty-state {text-align:center;padding:38px 20px;margin-top:24px;}
.family-body .family-empty-state .empty-symbol {margin:0 auto 12px;}
.family-body .family-empty-state h2 {color:#233b60;font-weight:800;font-size:17px;}
.family-body .family-empty-state p {color:#67809b;font-size:13px;max-width:470px;margin:10px auto 0;}
.family-body .child-switcher small,.family-body .family-student-card p {overflow-wrap:anywhere;}
.family-body .family-children-heading .overview-date {max-width:265px;text-align:right;}
@media (max-width:1180px) {
  .family-body .family-overview-columns {grid-template-columns:1fr;}
}
@media (max-width:950px) {
  .family-body .family-overview-hero {gap:18px;}
  .family-body .overview-family-pill {flex:1 1 220px;max-width:320px;}
}
@media (max-width:740px) {
  .family-body .family-overview-hero {display:flex;flex-direction:column;align-items:stretch;gap:16px;}
  .family-body .family-overview-hero .welcome-copy {flex:0 1 auto;}
  .family-body .overview-family-pill {flex:0 1 auto;width:100%;max-width:none;min-width:0;padding:12px;}
  .family-body .family-students-grid {grid-template-columns:1fr;gap:13px;}
  .family-body .family-student-card {padding:19px 17px;}
  .family-body .family-children-heading {align-items:flex-start;flex-direction:column;gap:5px;}
  .family-body .family-children-heading .overview-date {text-align:left;max-width:100%;}
  .family-body .family-overview-columns {grid-template-columns:1fr;}
  .family-body .family-mobile-nav {gap:0;padding-left:2px;padding-right:2px;}
  .family-body .family-mobile-nav > a {font-size:10px;gap:4px;padding:0 1px;overflow-wrap:anywhere;}
  .family-body .family-mobile-nav > a > svg {width:19px;height:19px;}
}
@media (max-width:360px) {
  .family-body .family-summary-insights {grid-template-columns:1fr;}
  .family-body .family-summary-insights .insight {grid-column:auto;min-height:84px;}
  .family-body .student-card-stats {gap:7px 10px;}
  .family-body .family-mobile-nav > a {font-size:9px;}
  .family-body .family-aggregate-row {gap:8px;}
  .family-body .family-aggregate-row .tag-unread {display:none;}
}
